diff --git a/src/uds/REST/methods/dashboard.py b/src/uds/REST/methods/dashboard.py index 7ccb38539..fd5912036 100644 --- a/src/uds/REST/methods/dashboard.py +++ b/src/uds/REST/methods/dashboard.py @@ -216,6 +216,9 @@ def failed_logins() -> typing.Any: 'days': days, 'since': since, 'until': until, + # When this payload was built. Stays frozen in the cached copy, so + # the GUI "Updated" label reflects the real data age, not the fetch time. + 'generated': until, 'kpis': self._kpis(), 'peak_concurrency': self._widget('peak_concurrency', peak_concurrency), 'pool_saturation': self._widget('pool_saturation', pool_saturation), @@ -237,9 +240,14 @@ def _data(self) -> dict[str, typing.Any]: days = max(MIN_DAYS, min(MAX_DAYS, days)) cache_key = f'dashboard-{days}' - cached: dict[str, typing.Any] | None = cache.get(cache_key) - if cached is not None: - return cached + # The GUI refresh button sends flush=1 to bypass the cached payload and + # force a rebuild from fresh queries; otherwise the range/timestamps and + # counters stay frozen for up to CACHE_TIME. + flush = str(self.query_params().get('flush', '')).lower() in ('1', 'true', 'yes') + if not flush: + cached: dict[str, typing.Any] | None = cache.get(cache_key) + if cached is not None: + return cached data = self._build(days) cache.put(cache_key, data, CACHE_TIME) diff --git a/src/uds/static/admin/main.js b/src/uds/static/admin/main.js index add562842..e478ba663 100644 --- a/src/uds/static/admin/main.js +++ b/src/uds/static/admin/main.js @@ -1,77 +1,77 @@ -import{Ag as fF,Bg as gF,Cg as _F,De as $P,Dg as vF,Dh as TF,Eg as bF,Ff as YP,Fg as yF,Gg as CF,Hf as QP,Hg as wF,Ig as xF,Jg as DF,Jh as IF,Ka as UP,Kg as SF,Lf as KP,Lg as Tu,Lh as kF,Mg as EF,Mh as AF,Nb as WP,Nf as ZP,Nh as RF,Oh as OF,Ph as PF,Qh as FF,Rg as MF,Sh as NF,Th as LF,Uh as VF,Vh as BF,_ as jP,_e as qP,a as L,b as Qe,c as u_,d as FP,di as px,e as mx,ei as jF,f as NP,fb as HP,fi as zF,g as Mu,gg as XP,gi as hx,h as LP,hi as UF,i as V,ii as fx,jg as JP,ji as HF,kg as eF,l as VP,lg as tF,mg as m_,ng as nF,og as iF,pa as zP,pg as oF,q as BP,qg as rF,rg as aF,sg as sF,tg as lF,ug as cF,vg as dF,wg as uF,xg as mF,ye as GP,yg as pF,zg as hF}from"./chunk-4DTB3P4O.js";var ag=mx((kC,AC)=>{"use strict";(function(t,i){typeof define=="function"&&define.amd?define([],i):typeof kC<"u"?i():(i(),t.FileSaver={})})(kC,function(){"use strict";function t(s,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s}function i(s,c,m){var f=new XMLHttpRequest;f.open("GET",s),f.responseType="blob",f.onload=function(){a(f.response,c,m)},f.onerror=function(){console.error("could not download file")},f.send()}function e(s){var c=new XMLHttpRequest;c.open("HEAD",s,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function n(s){try{s.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),s.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,r=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!r?function(s,c,m){var f=o.URL||o.webkitURL,v=document.createElement("a");c=c||s.name||"download",v.download=c,v.rel="noopener",typeof s=="string"?(v.href=s,v.origin===location.origin?n(v):e(v.href)?i(s,c,m):n(v,v.target="_blank")):(v.href=f.createObjectURL(s),setTimeout(function(){f.revokeObjectURL(v.href)},4e4),setTimeout(function(){n(v)},0))}:"msSaveOrOpenBlob"in navigator?function(s,c,m){if(c=c||s.name||"download",typeof s!="string")navigator.msSaveOrOpenBlob(t(s,m),c);else if(e(s))i(s,c,m);else{var f=document.createElement("a");f.href=s,f.target="_blank",setTimeout(function(){n(f)})}}:function(s,c,m,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof s=="string")return i(s,c,m);var v=s.type==="application/octet-stream",D=/constructor/i.test(o.HTMLElement)||o.safari,x=/CriOS\/[\d]+/.test(navigator.userAgent);if((x||v&&D||r)&&typeof FileReader<"u"){var M=new FileReader;M.onloadend=function(){var U=M.result;U=x?U:U.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=U:location=U,f=null},M.readAsDataURL(s)}else{var O=o.URL||o.webkitURL,K=O.createObjectURL(s);f?f.location=K:location.href=K,f=null,setTimeout(function(){O.revokeObjectURL(K)},4e4)}});o.saveAs=a.saveAs=a,typeof AC<"u"&&(AC.exports=a)})});var kP={};NP(kP,{Axis:()=>FF,ChartView:()=>KP,ComponentModel:()=>qP,ComponentView:()=>QP,List:()=>MF,Model:()=>GP,PRIORITY:()=>tF,SeriesModel:()=>YP,color:()=>HP,connect:()=>nF,dataTool:()=>DF,default:()=>hK,dependencies:()=>eF,disConnect:()=>oF,disconnect:()=>iF,dispose:()=>rF,env:()=>VP,extendChartView:()=>BF,extendComponentModel:()=>NF,extendComponentView:()=>LF,extendSeriesModel:()=>VF,format:()=>OF,getCoordinateSystemDimensions:()=>gF,getInstanceByDom:()=>aF,getInstanceById:()=>sF,getMap:()=>wF,graphic:()=>RF,helper:()=>TF,init:()=>m_,innerDrawElementOnCanvas:()=>XP,matrix:()=>UP,number:()=>kF,parseGeoJSON:()=>IF,parseGeoJson:()=>IF,registerAction:()=>hF,registerCoordinateSystem:()=>fF,registerLayout:()=>_F,registerLoading:()=>bF,registerLocale:()=>$P,registerMap:()=>CF,registerPostInit:()=>uF,registerPostUpdate:()=>mF,registerPreprocessor:()=>cF,registerProcessor:()=>dF,registerTheme:()=>lF,registerTransform:()=>xF,registerUpdateLifecycle:()=>pF,registerVisual:()=>vF,setCanvasCreator:()=>yF,setPlatformAPI:()=>BP,throttle:()=>ZP,time:()=>AF,use:()=>Tu,util:()=>PF,vector:()=>zP,version:()=>JP,zrUtil:()=>jP,zrender:()=>WP});var hK,AP=FP(()=>{"use strict";zF();EF();SF();UF();HF();jF();Tu([hx,fx]);hK={init:function(){return m_.apply(null,arguments)}};Tu(px)});var RP=mx(Su=>{"use strict";(function(t,i){typeof define=="function"&&define.amd?define(["exports","echarts"],i):typeof Su=="object"&&typeof Su.nodeName!="string"?i(Su,(AP(),LP(kP))):i({},t.echarts)})(Su,function(t,i){var e=function(s){typeof console<"u"&&console&&console.error&&console.error(s)};if(!i){e("ECharts is not Loaded");return}var n="#eee",o=function(){return{axisLine:{lineStyle:{color:n}},axisTick:{lineStyle:{color:n}},axisLabel:{color:n},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:n}}}},r=["#52656b","#ff3b77","#a3cc00","#ffffff","#b8b89f","#ffccdb","#e5ff80","#f4f4f0"],a={color:r,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:n},crossStyle:{color:n}}},legend:{textStyle:{color:n}},title:{textStyle:{color:n}},toolbox:{iconStyle:{borderColor:n}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(200,200,200,0.2)",handleColor:"#52656b"},timeline:{itemStyle:{color:r[1]},lineStyle:{color:n},controlStyle:{color:n,borderColor:n},label:{color:n}},timeAxis:o(),logAxis:o(),valueAxis:o(),categoryAxis:o(),line:{symbol:"circle"},graph:{color:r},gauge:{axisLine:{lineStyle:{color:[[.2,"#ff3b77"],[.8,"#52656b"],[1,"#b8b89f"]],width:8}}}};a.categoryAxis.splitLine.show=!1,i.registerTheme("dark-digerati",a)})});function g_(t,i){return Object.is(t,i)}var Dn=null,Iu=!1,__=1,hi=Symbol("SIGNAL");function ct(t){let i=Dn;return Dn=t,i}function v_(){return Dn}var Os={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function hc(t){if(Iu)throw new Error("");if(Dn===null)return;Dn.consumerOnSignalRead(t);let i=Dn.nextProducerIndex++;if(Pu(Dn),it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Ru(t){Pu(t);for(let i=0;i0}function Pu(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function vx(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function bx(t){return t.producerNode!==void 0}function Fu(t,i){let e=Object.create(GF);e.computation=t,i!==void 0&&(e.equal=i);let n=()=>{if(b_(e),hc(e),e.value===ku)throw e.error;return e.value};return n[hi]=e,n}var p_=Symbol("UNSET"),h_=Symbol("COMPUTING"),ku=Symbol("ERRORED"),GF=Qe(L({},Os),{value:p_,dirty:!0,error:null,equal:g_,kind:"computed",producerMustRecompute(t){return t.value===p_||t.value===h_},producerRecomputeValue(t){if(t.value===h_)throw new Error("Detected cycle in computations.");let i=t.value;t.value=h_;let e=fc(t),n,o=!1;try{n=t.computation(),ct(null),o=i!==p_&&i!==ku&&n!==ku&&t.equal(i,n)}catch(r){n=ku,t.error=r}finally{Au(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function $F(){throw new Error}var yx=$F;function Cx(t){yx(t)}function w_(t){yx=t}var qF=null;function x_(t,i){let e=Object.create(Nu);e.value=t,i!==void 0&&(e.equal=i);let n=()=>(hc(e),e.value);return n[hi]=e,n}function _c(t,i){C_()||Cx(t),t.equal(t.value,i)||(t.value=i,YF(t))}function D_(t,i){C_()||Cx(t),_c(t,i(t.value))}var Nu=Qe(L({},Os),{equal:g_,value:void 0,kind:"signal"});function YF(t){t.version++,gx(),y_(t),qF?.()}function S_(t){let i=ct(null);try{return t()}finally{ct(i)}}var E_;function vc(){return E_}function sr(t){let i=E_;return E_=t,i}var Lu=Symbol("NotFound");function Ve(t){return typeof t=="function"}function Br(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 Vu=Br(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: +import{Ag as vF,Bg as bF,Cg as yF,De as QP,Dg as CF,Dh as AF,Eg as wF,Ff as ZP,Fg as xF,Gg as DF,Hf as XP,Hg as SF,Ig as EF,Jg as MF,Jh as RF,Ka as GP,Kg as TF,Lf as JP,Lg as Tu,Lh as OF,Mg as IF,Mh as PF,Nb as qP,Nf as eF,Nh as FF,Oh as NF,Ph as LF,Qh as VF,Rg as kF,Sh as BF,Th as jF,Uh as zF,Vh as UF,_ as HP,_e as KP,a as V,b as Qe,c as p_,d as VP,di as fx,e as hx,ei as HF,f as BP,fb as $P,fi as WF,g as Mu,gg as tF,gi as gx,h as jP,hi as GF,i as N,ii as _x,jg as nF,ji as $F,kg as iF,l as zP,lg as oF,mg as h_,ng as rF,og as aF,pa as WP,pg as sF,q as UP,qg as lF,rg as cF,sg as dF,tg as uF,ug as mF,vg as pF,wg as hF,xg as fF,ye as YP,yg as gF,zg as _F}from"./chunk-4DTB3P4O.js";var lg=hx((RC,OC)=>{"use strict";(function(t,i){typeof define=="function"&&define.amd?define([],i):typeof RC<"u"?i():(i(),t.FileSaver={})})(RC,function(){"use strict";function t(s,c){return typeof c>"u"?c={autoBom:!1}:typeof c!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s}function i(s,c,m){var f=new XMLHttpRequest;f.open("GET",s),f.responseType="blob",f.onload=function(){a(f.response,c,m)},f.onerror=function(){console.error("could not download file")},f.send()}function e(s){var c=new XMLHttpRequest;c.open("HEAD",s,!1);try{c.send()}catch{}return 200<=c.status&&299>=c.status}function n(s){try{s.dispatchEvent(new MouseEvent("click"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),s.dispatchEvent(c)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,r=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!r?function(s,c,m){var f=o.URL||o.webkitURL,v=document.createElement("a");c=c||s.name||"download",v.download=c,v.rel="noopener",typeof s=="string"?(v.href=s,v.origin===location.origin?n(v):e(v.href)?i(s,c,m):n(v,v.target="_blank")):(v.href=f.createObjectURL(s),setTimeout(function(){f.revokeObjectURL(v.href)},4e4),setTimeout(function(){n(v)},0))}:"msSaveOrOpenBlob"in navigator?function(s,c,m){if(c=c||s.name||"download",typeof s!="string")navigator.msSaveOrOpenBlob(t(s,m),c);else if(e(s))i(s,c,m);else{var f=document.createElement("a");f.href=s,f.target="_blank",setTimeout(function(){n(f)})}}:function(s,c,m,f){if(f=f||open("","_blank"),f&&(f.document.title=f.document.body.innerText="downloading..."),typeof s=="string")return i(s,c,m);var v=s.type==="application/octet-stream",D=/constructor/i.test(o.HTMLElement)||o.safari,x=/CriOS\/[\d]+/.test(navigator.userAgent);if((x||v&&D||r)&&typeof FileReader<"u"){var M=new FileReader;M.onloadend=function(){var U=M.result;U=x?U:U.replace(/^data:[^;]*;/,"data:attachment/file;"),f?f.location.href=U:location=U,f=null},M.readAsDataURL(s)}else{var O=o.URL||o.webkitURL,K=O.createObjectURL(s);f?f.location=K:location.href=K,f=null,setTimeout(function(){O.revokeObjectURL(K)},4e4)}});o.saveAs=a.saveAs=a,typeof OC<"u"&&(OC.exports=a)})});var OP={};BP(OP,{Axis:()=>VF,ChartView:()=>JP,ComponentModel:()=>KP,ComponentView:()=>XP,List:()=>kF,Model:()=>YP,PRIORITY:()=>oF,SeriesModel:()=>ZP,color:()=>$P,connect:()=>rF,dataTool:()=>MF,default:()=>EK,dependencies:()=>iF,disConnect:()=>sF,disconnect:()=>aF,dispose:()=>lF,env:()=>zP,extendChartView:()=>UF,extendComponentModel:()=>BF,extendComponentView:()=>jF,extendSeriesModel:()=>zF,format:()=>NF,getCoordinateSystemDimensions:()=>bF,getInstanceByDom:()=>cF,getInstanceById:()=>dF,getMap:()=>SF,graphic:()=>FF,helper:()=>AF,init:()=>h_,innerDrawElementOnCanvas:()=>tF,matrix:()=>GP,number:()=>OF,parseGeoJSON:()=>RF,parseGeoJson:()=>RF,registerAction:()=>_F,registerCoordinateSystem:()=>vF,registerLayout:()=>yF,registerLoading:()=>wF,registerLocale:()=>QP,registerMap:()=>DF,registerPostInit:()=>hF,registerPostUpdate:()=>fF,registerPreprocessor:()=>mF,registerProcessor:()=>pF,registerTheme:()=>uF,registerTransform:()=>EF,registerUpdateLifecycle:()=>gF,registerVisual:()=>CF,setCanvasCreator:()=>xF,setPlatformAPI:()=>UP,throttle:()=>eF,time:()=>PF,use:()=>Tu,util:()=>LF,vector:()=>WP,version:()=>nF,zrUtil:()=>HP,zrender:()=>qP});var EK,PP=VP(()=>{"use strict";WF();IF();TF();GF();$F();HF();Tu([gx,_x]);EK={init:function(){return h_.apply(null,arguments)}};Tu(fx)});var FP=hx(Su=>{"use strict";(function(t,i){typeof define=="function"&&define.amd?define(["exports","echarts"],i):typeof Su=="object"&&typeof Su.nodeName!="string"?i(Su,(PP(),jP(OP))):i({},t.echarts)})(Su,function(t,i){var e=function(s){typeof console<"u"&&console&&console.error&&console.error(s)};if(!i){e("ECharts is not Loaded");return}var n="#eee",o=function(){return{axisLine:{lineStyle:{color:n}},axisTick:{lineStyle:{color:n}},axisLabel:{color:n},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:n}}}},r=["#52656b","#ff3b77","#a3cc00","#ffffff","#b8b89f","#ffccdb","#e5ff80","#f4f4f0"],a={color:r,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:n},crossStyle:{color:n}}},legend:{textStyle:{color:n}},title:{textStyle:{color:n}},toolbox:{iconStyle:{borderColor:n}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(200,200,200,0.2)",handleColor:"#52656b"},timeline:{itemStyle:{color:r[1]},lineStyle:{color:n},controlStyle:{color:n,borderColor:n},label:{color:n}},timeAxis:o(),logAxis:o(),valueAxis:o(),categoryAxis:o(),line:{symbol:"circle"},graph:{color:r},gauge:{axisLine:{lineStyle:{color:[[.2,"#ff3b77"],[.8,"#52656b"],[1,"#b8b89f"]],width:8}}}};a.categoryAxis.splitLine.show=!1,i.registerTheme("dark-digerati",a)})});function v_(t,i){return Object.is(t,i)}var Sn=null,Iu=!1,b_=1,hi=Symbol("SIGNAL");function ct(t){let i=Sn;return Sn=t,i}function y_(){return Sn}var Os={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function hc(t){if(Iu)throw new Error("");if(Sn===null)return;Sn.consumerOnSignalRead(t);let i=Sn.nextProducerIndex++;if(Pu(Sn),it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Ru(t){Pu(t);for(let i=0;i0}function Pu(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function yx(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Cx(t){return t.producerNode!==void 0}function Fu(t,i){let e=Object.create(YF);e.computation=t,i!==void 0&&(e.equal=i);let n=()=>{if(C_(e),hc(e),e.value===ku)throw e.error;return e.value};return n[hi]=e,n}var f_=Symbol("UNSET"),g_=Symbol("COMPUTING"),ku=Symbol("ERRORED"),YF=Qe(V({},Os),{value:f_,dirty:!0,error:null,equal:v_,kind:"computed",producerMustRecompute(t){return t.value===f_||t.value===g_},producerRecomputeValue(t){if(t.value===g_)throw new Error("Detected cycle in computations.");let i=t.value;t.value=g_;let e=fc(t),n,o=!1;try{n=t.computation(),ct(null),o=i!==f_&&i!==ku&&n!==ku&&t.equal(i,n)}catch(r){n=ku,t.error=r}finally{Au(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function QF(){throw new Error}var wx=QF;function xx(t){wx(t)}function D_(t){wx=t}var KF=null;function S_(t,i){let e=Object.create(Nu);e.value=t,i!==void 0&&(e.equal=i);let n=()=>(hc(e),e.value);return n[hi]=e,n}function _c(t,i){x_()||xx(t),t.equal(t.value,i)||(t.value=i,ZF(t))}function E_(t,i){x_()||xx(t),_c(t,i(t.value))}var Nu=Qe(V({},Os),{equal:v_,value:void 0,kind:"signal"});function ZF(t){t.version++,vx(),w_(t),KF?.()}function M_(t){let i=ct(null);try{return t()}finally{ct(i)}}var T_;function vc(){return T_}function sr(t){let i=T_;return T_=t,i}var Lu=Symbol("NotFound");function Be(t){return typeof t=="function"}function Br(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 Vu=Br(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 Da(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var be=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(Ve(n))try{n()}catch(r){i=r instanceof Vu?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{wx(r)}catch(a){i=i??[],a instanceof Vu?i=[...i,...a.errors]:i.push(a)}}if(i)throw new Vu(i)}}add(i){var e;if(i&&i!==this)if(this.closed)wx(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)&&Da(e,i)}remove(i){let{_finalizers:e}=this;e&&Da(e,i),i instanceof t&&i._removeParent(this)}};be.EMPTY=(()=>{let t=new be;return t.closed=!0,t})();var M_=be.EMPTY;function Bu(t){return t instanceof be||t&&"closed"in t&&Ve(t.remove)&&Ve(t.add)&&Ve(t.unsubscribe)}function wx(t){Ve(t)?t():t.unsubscribe()}var po={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ps={setTimeout(t,i,...e){let{delegate:n}=Ps;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=Ps;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ju(t){Ps.setTimeout(()=>{let{onUnhandledError:i}=po;if(i)i(t);else throw t})}function Sa(){}var xx=T_("C",void 0,void 0);function Dx(t){return T_("E",void 0,t)}function Sx(t){return T_("N",t,void 0)}function T_(t,i,e){return{kind:t,value:i,error:e}}var Ea=null;function Fs(t){if(po.useDeprecatedSynchronousErrorHandling){let i=!Ea;if(i&&(Ea={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=Ea;if(Ea=null,e)throw n}}else t()}function Ex(t){po.useDeprecatedSynchronousErrorHandling&&Ea&&(Ea.errorThrown=!0,Ea.error=t)}var Ma=class extends be{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,Bu(i)&&i.add(this)):this.destination=eN}static create(i,e,n){return new ho(i,e,n)}next(i){this.isStopped?k_(Sx(i),this):this._next(i)}error(i){this.isStopped?k_(Dx(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?k_(xx,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()}}},XF=Function.prototype.bind;function I_(t,i){return XF.call(t,i)}var A_=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){zu(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){zu(n)}else zu(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){zu(e)}}},ho=class extends Ma{constructor(i,e,n){super();let o;if(Ve(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let r;this&&po.useDeprecatedNextContext?(r=Object.create(i),r.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&I_(i.next,r),error:i.error&&I_(i.error,r),complete:i.complete&&I_(i.complete,r)}):o=i}this.destination=new A_(o)}};function zu(t){po.useDeprecatedSynchronousErrorHandling?Ex(t):ju(t)}function JF(t){throw t}function k_(t,i){let{onStoppedNotification:e}=po;e&&Ps.setTimeout(()=>e(t,i))}var eN={closed:!0,next:Sa,error:JF,complete:Sa};var Ns=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Jn(t){return t}function R_(...t){return O_(t)}function O_(t){return t.length===0?Jn:t.length===1?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}var Fe=(()=>{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=nN(e)?e:new ho(e,n,o);return Fs(()=>{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=Mx(n),new n((o,r)=>{let a=new ho({next:s=>{try{e(s)}catch(c){r(c),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)}[Ns](){return this}pipe(...e){return O_(e)(this)}toPromise(e){return e=Mx(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 Mx(t){var i;return(i=t??po.Promise)!==null&&i!==void 0?i:Promise}function tN(t){return t&&Ve(t.next)&&Ve(t.error)&&Ve(t.complete)}function nN(t){return t&&t instanceof Ma||tN(t)&&Bu(t)}function P_(t){return Ve(t?.lift)}function Ne(t){return i=>{if(P_(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 Re(t,i,e,n,o){return new F_(t,i,e,n,o)}var F_=class extends Ma{constructor(i,e,n,o,r,a){super(i),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(c){i.error(c)}}:super._next,this._error=o?function(s){try{o(s)}catch(c){i.error(c)}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 Ls(){return Ne((t,i)=>{let e=null;t._refCount++;let n=Re(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 jr=class extends Fe{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,P_(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 be;let e=this.getSubject();i.add(this.source.subscribe(Re(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=be.EMPTY)}return i}refCount(){return Ls()(this)}};var Tx=Br(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var z=(()=>{class t extends Fe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let n=new Uu(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new Tx}next(e){Fs(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){Fs(()=>{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(){Fs(()=>{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?M_:(this.currentObservers=null,r.push(e),new be(()=>{this.currentObservers=null,Da(r,e)}))}_checkFinalizedStatuses(e){let{hasError:n,thrownError:o,isStopped:r}=this;n?e.error(o):r&&e.complete()}asObservable(){let e=new Fe;return e.source=this,e}}return t.create=(i,e)=>new Uu(i,e),t})(),Uu=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:M_}};var bt=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 bc={now(){return(bc.delegate||Date).now()},delegate:void 0};var $i=class extends z{constructor(i=1/0,e=1/0,n=bc){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;at.complete());function $u(t){return t&&Ve(t.schedule)}function L_(t){return t[t.length-1]}function qu(t){return Ve(L_(t))?t.pop():void 0}function Fo(t){return $u(L_(t))?t.pop():void 0}function Ix(t,i){return typeof L_(t)=="number"?t.pop():i}function Ax(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(f){try{m(n.next(f))}catch(v){a(v)}}function c(f){try{m(n.throw(f))}catch(v){a(v)}}function m(f){f.done?r(f.value):o(f.value).then(s,c)}m((n=n.apply(t,i||[])).next())})}function kx(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 Ta(t){return this instanceof Ta?(this.v=t,this):new Ta(t)}function Rx(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(M){return Promise.resolve(M).then(x,v)}}function s(x,M){n[x]&&(o[x]=function(O){return new Promise(function(K,U){r.push([x,O,K,U])>1||c(x,O)})},M&&(o[x]=M(o[x])))}function c(x,M){try{m(n[x](M))}catch(O){D(r[0][3],O)}}function m(x){x.value instanceof Ta?Promise.resolve(x.value.v).then(f,v):D(r[0][2],x)}function f(x){c("next",x)}function v(x){c("throw",x)}function D(x,M){x(M),r.shift(),r.length&&c(r[0][0],r[0][1])}}function Ox(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 kx=="function"?kx(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,c){a=t[r](a),o(s,c,a.done,a.value)})}}function o(r,a,s,c){Promise.resolve(c).then(function(m){r({value:m,done:s})},a)}}var Bs=t=>t&&typeof t.length=="number"&&typeof t!="function";function Yu(t){return Ve(t?.then)}function Qu(t){return Ve(t[Ns])}function Ku(t){return Symbol.asyncIterator&&Ve(t?.[Symbol.asyncIterator])}function Zu(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 iN(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Xu=iN();function Ju(t){return Ve(t?.[Xu])}function em(t){return Rx(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:o}=yield Ta(e.read());if(o)return yield Ta(void 0);yield yield Ta(n)}}finally{e.releaseLock()}})}function tm(t){return Ve(t?.getReader)}function Ct(t){if(t instanceof Fe)return t;if(t!=null){if(Qu(t))return oN(t);if(Bs(t))return rN(t);if(Yu(t))return aN(t);if(Ku(t))return Px(t);if(Ju(t))return sN(t);if(tm(t))return lN(t)}throw Zu(t)}function oN(t){return new Fe(i=>{let e=t[Ns]();if(Ve(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function rN(t){return new Fe(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,ju)})}function sN(t){return new Fe(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function Px(t){return new Fe(i=>{cN(t,i).catch(e=>i.error(e))})}function lN(t){return Px(em(t))}function cN(t,i){var e,n,o,r;return Ax(this,void 0,void 0,function*(){try{for(e=Ox(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 Gn(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 nm(t,i=0){return Ne((e,n)=>{e.subscribe(Re(n,o=>Gn(n,t,()=>n.next(o),i),()=>Gn(n,t,()=>n.complete(),i),o=>Gn(n,t,()=>n.error(o),i)))})}function im(t,i=0){return Ne((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function Fx(t,i){return Ct(t).pipe(im(i),nm(i))}function Nx(t,i){return Ct(t).pipe(im(i),nm(i))}function Lx(t,i){return new Fe(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}function Vx(t,i){return new Fe(e=>{let n;return Gn(e,i,()=>{n=t[Xu](),Gn(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)}),()=>Ve(n?.return)&&n.return()})}function om(t,i){if(!t)throw new Error("Iterable cannot be null");return new Fe(e=>{Gn(e,i,()=>{let n=t[Symbol.asyncIterator]();Gn(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function Bx(t,i){return om(em(t),i)}function jx(t,i){if(t!=null){if(Qu(t))return Fx(t,i);if(Bs(t))return Lx(t,i);if(Yu(t))return Nx(t,i);if(Ku(t))return om(t,i);if(Ju(t))return Vx(t,i);if(tm(t))return Bx(t,i)}throw Zu(t)}function zt(t,i){return i?jx(t,i):Ct(t)}function ae(...t){let i=Fo(t);return zt(t,i)}function No(t,i){let e=Ve(t)?t:()=>t,n=o=>o.error(e());return new Fe(i?o=>i.schedule(n,0,o):n)}function js(t){return!!t&&(t instanceof Fe||Ve(t.lift)&&Ve(t.subscribe))}var fo=Br(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function rm(t,i){let e=typeof i=="object";return new Promise((n,o)=>{let r=new ho({next:a=>{n(a),r.unsubscribe()},error:o,complete:()=>{e?n(i.defaultValue):o(new fo)}});t.subscribe(r)})}function am(t){return t instanceof Date&&!isNaN(t)}var dN=Br(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function V_(t,i){let{first:e,each:n,with:o=uN,scheduler:r=i??Wn,meta:a=null}=am(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&n==null)throw new TypeError("No timeout provided.");return Ne((s,c)=>{let m,f,v=null,D=0,x=M=>{f=Gn(c,r,()=>{try{m.unsubscribe(),Ct(o({meta:a,lastValue:v,seen:D})).subscribe(c)}catch(O){c.error(O)}},M)};m=s.subscribe(Re(c,M=>{f?.unsubscribe(),D++,c.next(v=M),n>0&&x(n)},void 0,void 0,()=>{f?.closed||f?.unsubscribe(),v=null})),!D&&x(e!=null?typeof e=="number"?e:+e-r.now():n)})}function uN(t){throw new dN(t)}function pe(t,i){return Ne((e,n)=>{let o=0;e.subscribe(Re(n,r=>{n.next(t.call(i,r,o++))}))})}var{isArray:mN}=Array;function pN(t,i){return mN(i)?t(...i):t(i)}function zs(t){return pe(i=>pN(t,i))}var{isArray:hN}=Array,{getPrototypeOf:fN,prototype:gN,keys:_N}=Object;function sm(t){if(t.length===1){let i=t[0];if(hN(i))return{args:i,keys:null};if(vN(i)){let e=_N(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function vN(t){return t&&typeof t=="object"&&fN(t)===gN}function lm(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}function Ri(...t){let i=Fo(t),e=qu(t),{args:n,keys:o}=sm(t);if(n.length===0)return zt([],i);let r=new Fe(bN(n,i,o?a=>lm(o,a):Jn));return e?r.pipe(zs(e)):r}function bN(t,i,e=Jn){return n=>{zx(i,()=>{let{length:o}=t,r=new Array(o),a=o,s=o;for(let c=0;c{let m=zt(t[c],i),f=!1;m.subscribe(Re(n,v=>{r[c]=v,f||(f=!0,s--),s||n.next(e(r.slice()))},()=>{--a||n.complete()}))},n)},n)}}function zx(t,i,e){t?Gn(e,t,i):i()}function Ux(t,i,e,n,o,r,a,s){let c=[],m=0,f=0,v=!1,D=()=>{v&&!c.length&&!m&&i.complete()},x=O=>m{r&&i.next(O),m++;let K=!1;Ct(e(O,f++)).subscribe(Re(i,U=>{o?.(U),r?x(U):i.next(U)},()=>{K=!0},void 0,()=>{if(K)try{for(m--;c.length&&mM(U)):M(U)}D()}catch(U){i.error(U)}}))};return t.subscribe(Re(i,x,()=>{v=!0,D()})),()=>{s?.()}}function Jt(t,i,e=1/0){return Ve(i)?Jt((n,o)=>pe((r,a)=>i(n,r,o,a))(Ct(t(n,o))),e):(typeof i=="number"&&(e=i),Ne((n,o)=>Ux(n,o,t,e)))}function zr(t=1/0){return Jt(Jn,t)}function Hx(){return zr(1)}function Lo(...t){return Hx()(zt(t,Fo(t)))}function qi(t){return new Fe(i=>{Ct(t()).subscribe(i)})}function Cc(...t){let i=qu(t),{args:e,keys:n}=sm(t),o=new Fe(r=>{let{length:a}=e;if(!a){r.complete();return}let s=new Array(a),c=a,m=a;for(let f=0;f{v||(v=!0,m--),s[f]=D},()=>c--,void 0,()=>{(!c||!v)&&(m||r.next(n?lm(n,s):s),r.complete())}))}});return i?o.pipe(zs(i)):o}var yN=["addListener","removeListener"],CN=["addEventListener","removeEventListener"],wN=["on","off"];function Ia(t,i,e,n){if(Ve(e)&&(n=e,e=void 0),n)return Ia(t,i,e).pipe(zs(n));let[o,r]=SN(t)?CN.map(a=>s=>t[a](i,s,e)):xN(t)?yN.map(Wx(t,i)):DN(t)?wN.map(Wx(t,i)):[];if(!o&&Bs(t))return Jt(a=>Ia(a,i,e))(Ct(t));if(!o)throw new TypeError("Invalid event target");return new Fe(a=>{let s=(...c)=>a.next(1r(s)})}function Wx(t,i){return e=>n=>t[e](i,n)}function xN(t){return Ve(t.addListener)&&Ve(t.removeListener)}function DN(t){return Ve(t.on)&&Ve(t.off)}function SN(t){return Ve(t.addEventListener)&&Ve(t.removeEventListener)}function go(t=0,i,e=N_){let n=-1;return i!=null&&($u(i)?e=i:n=i),new Fe(o=>{let r=am(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 wc(t=0,i=Wn){return t<0&&(t=0),go(t,t,i)}function _t(...t){let i=Fo(t),e=Ix(t,1/0),n=t;return n.length?n.length===1?Ct(n[0]):zr(e)(zt(n,i)):_n}function Ke(t,i){return Ne((e,n)=>{let o=0;e.subscribe(Re(n,r=>t.call(i,r,o++)&&n.next(r)))})}function Gx(t){return Ne((i,e)=>{let n=!1,o=null,r=null,a=!1,s=()=>{if(r?.unsubscribe(),r=null,n){n=!1;let m=o;o=null,e.next(m)}a&&e.complete()},c=()=>{r=null,a&&e.complete()};i.subscribe(Re(e,m=>{n=!0,o=m,r||Ct(t(m)).subscribe(r=Re(e,s,c))},()=>{a=!0,(!n||!r||r.closed)&&e.complete()}))})}function cm(t,i=Wn){return Gx(()=>go(t,i))}function Rn(t){return Ne((i,e)=>{let n=null,o=!1,r;n=i.subscribe(Re(e,void 0,void 0,a=>{r=Ct(t(a,Rn(t)(i))),n?(n.unsubscribe(),n=null,r.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,r.subscribe(e))})}function $x(t,i,e,n,o){return(r,a)=>{let s=e,c=i,m=0;r.subscribe(Re(a,f=>{let v=m++;c=s?t(c,f,v):(s=!0,f),n&&a.next(c)},o&&(()=>{s&&a.next(c),a.complete()})))}}function Vo(t,i){return Ve(i)?Jt(t,i,1):Jt(t,1)}function lr(t,i=Wn){return Ne((e,n)=>{let o=null,r=null,a=null,s=()=>{if(o){o.unsubscribe(),o=null;let m=r;r=null,n.next(m)}};function c(){let m=a+t,f=i.now();if(f{r=m,a=i.now(),o||(o=i.schedule(c,t),n.add(o))},()=>{s(),n.complete()},void 0,()=>{r=o=null}))})}function Ur(t){return Ne((i,e)=>{let n=!1;i.subscribe(Re(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function wt(t){return t<=0?()=>_n:Ne((i,e)=>{let n=0;i.subscribe(Re(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function qx(){return Ne((t,i)=>{t.subscribe(Re(i,Sa))})}function Yx(t){return pe(()=>t)}function B_(t,i){return i?e=>Lo(i.pipe(wt(1),qx()),e.pipe(B_(t))):Jt((e,n)=>Ct(t(e,n)).pipe(wt(1),Yx(e)))}function xc(t,i=Wn){let e=go(t,i);return B_(()=>e)}function dm(t,i=Jn){return t=t??EN,Ne((e,n)=>{let o,r=!0;e.subscribe(Re(n,a=>{let s=i(a);(r||!t(o,s))&&(r=!1,o=s,n.next(a))}))})}function EN(t,i){return t===i}function um(t=MN){return Ne((i,e)=>{let n=!1;i.subscribe(Re(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function MN(){return new fo}function Bo(t){return Ne((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function cr(t,i){let e=arguments.length>=2;return n=>n.pipe(t?Ke((o,r)=>t(o,r,n)):Jn,wt(1),e?Ur(i):um(()=>new fo))}function Us(t){return t<=0?()=>_n:Ne((i,e)=>{let n=[];i.subscribe(Re(e,o=>{n.push(o),t{for(let o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}function j_(t,i){let e=arguments.length>=2;return n=>n.pipe(t?Ke((o,r)=>t(o,r,n)):Jn,Us(1),e?Ur(i):um(()=>new fo))}function mm(){return Ne((t,i)=>{let e,n=!1;t.subscribe(Re(i,o=>{let r=e;e=o,n&&i.next([r,o]),n=!0}))})}function z_(t,i){return Ne($x(t,i,arguments.length>=2,!0))}function Dc(t={}){let{connector:i=()=>new z,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,c,m=0,f=!1,v=!1,D=()=>{s?.unsubscribe(),s=void 0},x=()=>{D(),a=c=void 0,f=v=!1},M=()=>{let O=a;x(),O?.unsubscribe()};return Ne((O,K)=>{m++,!v&&!f&&D();let U=c=c??i();K.add(()=>{m--,m===0&&!v&&!f&&(s=U_(M,o))}),U.subscribe(K),!a&&m>0&&(a=new ho({next:Xe=>U.next(Xe),error:Xe=>{v=!0,D(),s=U_(x,e,Xe),U.error(Xe)},complete:()=>{f=!0,D(),s=U_(x,n),U.complete()}}),Ct(O).subscribe(a))})(r)}}function U_(t,i,...e){if(i===!0){t();return}if(i===!1)return;let n=new ho({next:()=>{n.unsubscribe(),t()}});return Ct(i(...e)).subscribe(n)}function pm(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,Dc({connector:()=>new $i(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function ka(t){return Ke((i,e)=>t<=e)}function xt(...t){let i=Fo(t);return Ne((e,n)=>{(i?Lo(t,e,i):Lo(t,e)).subscribe(n)})}function Dt(t,i){return Ne((e,n)=>{let o=null,r=0,a=!1,s=()=>a&&!o&&n.complete();e.subscribe(Re(n,c=>{o?.unsubscribe();let m=0,f=r++;Ct(t(c,f)).subscribe(o=Re(n,v=>n.next(i?i(c,v,f,m++):v),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function Te(t){return Ne((i,e)=>{Ct(t).subscribe(Re(e,()=>e.complete(),Sa)),!e.closed&&i.subscribe(e)})}function H_(t,i=!1){return Ne((e,n)=>{let o=0;e.subscribe(Re(n,r=>{let a=t(r,o++);(a||i)&&n.next(r),!a&&n.complete()}))})}function Ut(t,i,e){let n=Ve(t)||i||e?{next:t,error:i,complete:e}:t;return n?Ne((o,r)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let s=!0;o.subscribe(Re(r,c=>{var m;(m=n.next)===null||m===void 0||m.call(n,c),r.next(c)},()=>{var c;s=!1,(c=n.complete)===null||c===void 0||c.call(n),r.complete()},c=>{var m;s=!1,(m=n.error)===null||m===void 0||m.call(n,c),r.error(c)},()=>{var c,m;s&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(m=n.finalize)===null||m===void 0||m.call(n)}))}):Jn}function Qx(t,i){return Ne((e,n)=>{let{leading:o=!0,trailing:r=!1}=i??{},a=!1,s=null,c=null,m=!1,f=()=>{c?.unsubscribe(),c=null,r&&(x(),m&&n.complete())},v=()=>{c=null,m&&n.complete()},D=M=>c=Ct(t(M)).subscribe(Re(n,f,v)),x=()=>{if(a){a=!1;let M=s;s=null,n.next(M),!m&&D(M)}};e.subscribe(Re(n,M=>{a=!0,s=M,!(c&&!c.closed)&&(o?x():D(M))},()=>{m=!0,!(r&&a&&c&&!c.closed)&&n.complete()}))})}function W_(t,i=Wn,e){let n=go(t,i);return Qx(()=>n,e)}var UD="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",Q=class extends Error{code;constructor(i,e){super(hb(i,e)),this.code=i}};function TN(t){return`NG0${Math.abs(t)}`}function hb(t,i){return`${TN(t)}${i?": "+i:""}`}var HD=Symbol("InputSignalNode#UNSET"),IN=Qe(L({},Nu),{transformFn:void 0,applyValueToInputSignal(t,i){_c(t,i)}});function WD(t,i){let e=Object.create(IN);e.value=t,e.transformFn=i?.transform;function n(){if(hc(e),e.value===HD){let o=null;throw new Q(-950,o)}return e.value}return n[hi]=e,n}function Nc(t){return{toString:t}.toString()}var hm="__parameters__";function kN(t){return function(...e){if(t){let n=t(...e);for(let o in n)this[o]=n[o]}}}function GD(t,i,e){return Nc(()=>{let n=kN(i);function o(...r){if(this instanceof o)return n.apply(this,r),this;let a=new o(...r);return s.annotation=a,s;function s(c,m,f){let v=c.hasOwnProperty(hm)?c[hm]:Object.defineProperty(c,hm,{value:[]})[hm];for(;v.length<=f;)v.push(null);return(v[f]=v[f]||[]).push(a),c}}return o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var _i=globalThis;function Gt(t){for(let i in t)if(t[i]===Gt)return i;throw Error("Could not find renamed property on target object.")}function AN(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function gi(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(gi).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 rv(t,i){return t?i?`${t} ${i}`:t:i||""}var RN=Gt({__forward_ref__:Gt});function en(t){return t.__forward_ref__=en,t.toString=function(){return gi(this())},t}function Fn(t){return $D(t)?t():t}function $D(t){return typeof t=="function"&&t.hasOwnProperty(RN)&&t.__forward_ref__===en}function N(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function X(t){return{providers:t.providers||[],imports:t.imports||[]}}function np(t){return Kx(t,YD)||Kx(t,QD)}function qD(t){return np(t)!==null}function Kx(t,i){return t.hasOwnProperty(i)?t[i]:null}function ON(t){let i=t&&(t[YD]||t[QD]);return i||null}function Zx(t){return t&&(t.hasOwnProperty(Xx)||t.hasOwnProperty(PN))?t[Xx]:null}var YD=Gt({\u0275prov:Gt}),Xx=Gt({\u0275inj:Gt}),QD=Gt({ngInjectableDef:Gt}),PN=Gt({ngInjectorDef:Gt}),R=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=N({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function KD(t){return t&&!!t.\u0275providers}var FN=Gt({\u0275cmp:Gt}),NN=Gt({\u0275dir:Gt}),LN=Gt({\u0275pipe:Gt}),VN=Gt({\u0275mod:Gt}),Sm=Gt({\u0275fac:Gt}),Tc=Gt({__NG_ELEMENT_ID__:Gt}),Jx=Gt({__NG_ENV_ID__:Gt});function Oa(t){return typeof t=="string"?t:t==null?"":String(t)}function BN(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Oa(t)}function ZD(t,i){throw new Q(-200,t)}function fb(t,i){throw new Q(-201,!1)}var lt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(lt||{}),av;function XD(){return av}function fi(t){let i=av;return av=t,i}function JD(t,i,e){let n=np(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e<.Optional)return null;if(i!==void 0)return i;fb(t,"Injector")}var jN={},Aa=jN,sv="__NG_DI_FLAG__",Em=class{injector;constructor(i){this.injector=i}retrieve(i,e){let n=e;return this.injector.get(i,n.optional?Lu:Aa,n)}},Mm="ngTempTokenPath",zN="ngTokenPath",UN=/\n/gm,HN="\u0275",eD="__source";function WN(t,i=lt.Default){if(vc()===void 0)throw new Q(-203,!1);if(vc()===null)return JD(t,void 0,i);{let e=vc(),n;return e instanceof Em?n=e.injector:n=e,n.get(t,i<.Optional?null:void 0,i)}}function se(t,i=lt.Default){return(XD()||WN)(Fn(t),i)}function p(t,i=lt.Default){return se(t,ip(i))}function ip(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function lv(t){let i=[];for(let e=0;e ");else if(typeof i=="object"){let r=[];for(let a in i)if(i.hasOwnProperty(a)){let s=i[a];r.push(a+":"+(typeof s=="string"?JSON.stringify(s):gi(s)))}o=`{${r.join(", ")}}`}return`${e}${n?"("+n+")":""}[${o}]: ${t.replace(UN,` - `)}`}var yo=eS(GD("Optional"),8);var hr=eS(GD("SkipSelf"),4);function Pa(t,i){let e=t.hasOwnProperty(Sm);return e?t[Sm]:null}function YN(t,i,e){if(t.length!==i.length)return!1;for(let n=0;nArray.isArray(e)?gb(e,i):i(e))}function tS(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function Tm(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function KN(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 op(t,i,e){let n=Lc(t,i);return n>=0?t[n|1]=e:(n=~n,ZN(t,n,i,e)),n}function G_(t,i){let e=Lc(t,i);if(e>=0)return t[e|1]}function Lc(t,i){return XN(t,i,1)}function XN(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 gb(i,a=>{let s=a;cv(s,r,[],n)&&(o||=[],o.push(s))}),o!==void 0&&sS(o,r),e}function sS(t,i){for(let e=0;e{i(r,n)})}}function cv(t,i,e,n){if(t=Fn(t),!t)return!1;let o=null,r=Zx(t),a=!r&&Gr(t);if(!r&&!a){let c=t.ngModule;if(r=Zx(c),r)o=c;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 c=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let m of c)cv(m,i,e,n)}}else if(r){if(r.imports!=null&&!s){n.add(o);let m;try{gb(r.imports,f=>{cv(f,i,e,n)&&(m||=[],m.push(f))})}finally{}m!==void 0&&sS(m,i)}if(!s){let m=Pa(o)||(()=>new o);i({provide:o,useFactory:m,deps:ei},o),i({provide:iS,useValue:o,multi:!0},o),i({provide:Qs,useValue:()=>se(o),multi:!0},o)}let c=r.providers;if(c!=null&&!s){let m=t;_b(c,f=>{i(f,m)})}}else return!1;return o!==t&&t.providers!==void 0}function _b(t,i){for(let e of t)KD(e)&&(e=e.\u0275providers),Array.isArray(e)?_b(e,i):i(e)}var t2=Gt({provide:String,useValue:Gt});function lS(t){return t!==null&&typeof t=="object"&&t2 in t}function n2(t){return!!(t&&t.useExisting)}function i2(t){return!!(t&&t.useFactory)}function Ks(t){return typeof t=="function"}function o2(t){return!!t.useClass}var rp=new R(""),ym={},tD={},$_;function ap(){return $_===void 0&&($_=new Im),$_}var an=class{},Ic=class extends an{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,uv(i,a=>this.processProvider(a)),this.records.set(nS,Hs(void 0,this)),o.has("environment")&&this.records.set(an,Hs(void 0,this));let r=this.records.get(rp);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(iS,ei,lt.Self))}retrieve(i,e){let n=e;return this.get(i,n.optional?Lu:Aa,n)}destroy(){Ec(this),this._destroyed=!0;let i=ct(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(),ct(i)}}onDestroy(i){return Ec(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){Ec(this);let e=sr(this),n=fi(void 0),o;try{return i()}finally{sr(e),fi(n)}}get(i,e=Aa,n=lt.Default){if(Ec(this),i.hasOwnProperty(Jx))return i[Jx](this);n=ip(n);let o,r=sr(this),a=fi(void 0);try{if(!(n<.SkipSelf)){let c=this.records.get(i);if(c===void 0){let m=c2(i)&&np(i);m&&this.injectableDefInScope(m)?c=Hs(dv(i),ym):c=null,this.records.set(i,c)}if(c!=null)return this.hydrate(i,c,n)}let s=n<.Self?ap():this.parent;return e=n<.Optional&&e===Aa?null:e,s.get(i,e)}catch(s){if(s.name==="NullInjectorError"){if((s[Mm]=s[Mm]||[]).unshift(gi(i)),r)throw s;return $N(s,i,"R3InjectorError",this.source)}else throw s}finally{fi(a),sr(r)}}resolveInjectorInitializers(){let i=ct(null),e=sr(this),n=fi(void 0),o;try{let r=this.get(Qs,ei,lt.Self);for(let a of r)a()}finally{sr(e),fi(n),ct(i)}}toString(){let i=[],e=this.records;for(let n of e.keys())i.push(gi(n));return`R3Injector[${i.join(", ")}]`}processProvider(i){i=Fn(i);let e=Ks(i)?i:Fn(i&&i.provide),n=a2(i);if(!Ks(i)&&i.multi===!0){let o=this.records.get(e);o||(o=Hs(void 0,ym,!0),o.factory=()=>lv(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let o=ct(null);try{return e.value===tD?ZD(gi(i)):e.value===ym&&(e.value=tD,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&l2(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{ct(o)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=Fn(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 dv(t){let i=np(t),e=i!==null?i.factory:Pa(t);if(e!==null)return e;if(t instanceof R)throw new Q(204,!1);if(t instanceof Function)return r2(t);throw new Q(204,!1)}function r2(t){if(t.length>0)throw new Q(204,!1);let e=ON(t);return e!==null?()=>e.factory(t):()=>new t}function a2(t){if(lS(t))return Hs(void 0,t.useValue);{let i=cS(t);return Hs(i,ym)}}function cS(t,i,e){let n;if(Ks(t)){let o=Fn(t);return Pa(o)||dv(o)}else if(lS(t))n=()=>Fn(t.useValue);else if(i2(t))n=()=>t.useFactory(...lv(t.deps||[]));else if(n2(t))n=(o,r)=>se(Fn(t.useExisting),r!==void 0&&r<.Optional?lt.Optional:void 0);else{let o=Fn(t&&(t.useClass||t.provide));if(s2(t))n=()=>new o(...lv(t.deps));else return Pa(o)||dv(o)}return n}function Ec(t){if(t.destroyed)throw new Q(205,!1)}function Hs(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function s2(t){return!!t.deps}function l2(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function c2(t){return typeof t=="function"||typeof t=="object"&&t instanceof R}function uv(t,i){for(let e of t)Array.isArray(e)?uv(e,i):e&&KD(e)?uv(e.\u0275providers,i):i(e)}function vi(t,i){let e;t instanceof Ic?(Ec(t),e=t):e=new Em(t);let n,o=sr(e),r=fi(void 0);try{return i()}finally{sr(o),fi(r)}}function vb(){return XD()!==void 0||vc()!=null}function bb(t){if(!vb())throw new Q(-203,!1)}function d2(t){let i=_i.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function u2(t){return typeof t=="function"}var fr=0,it=1,Je=2,qn=3,bo=4,bi=5,Zs=6,km=7,Sn=8,Xs=9,dr=10,sn=11,kc=12,nD=13,ol=14,Oi=15,Fa=16,Ws=17,ur=18,sp=19,dS=20,Hr=21,q_=22,Na=23,Yi=24,qs=25,vn=26,uS=1;var La=7,Am=8,Js=9,$n=10;function Wr(t){return Array.isArray(t)&&typeof t[uS]=="object"}function gr(t){return Array.isArray(t)&&t[uS]===!0}function yb(t){return(t.flags&4)!==0}function rl(t){return t.componentOffset>-1}function lp(t){return(t.flags&1)===1}function Uo(t){return!!t.template}function Rm(t){return(t[Je]&512)!==0}function al(t){return(t[Je]&256)===256}var mv=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}};function mS(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var Be=(()=>{let t=()=>pS;return t.ngInherit=!0,t})();function pS(t){return t.type.prototype.ngOnChanges&&(t.setInput=p2),m2}function m2(){let t=fS(this),i=t?.current;if(i){let e=t.previous;if(e===zo)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function p2(t,i,e,n,o){let r=this.declaredInputs[n],a=fS(t)||h2(t,{previous:zo,current:null}),s=a.current||(a.current={}),c=a.previous,m=c[r];s[r]=new mv(m&&m.currentValue,e,c===zo),mS(t,i,o,e)}var hS="__ngSimpleChanges__";function fS(t){return t[hS]||null}function h2(t,i){return t[hS]=i}var iD=null;var Kt=function(t,i=null,e){iD?.(t,i,e)},gS="svg",f2="math";function Ho(t){for(;Array.isArray(t);)t=t[fr];return t}function _S(t,i){return Ho(i[t])}function qo(t,i){return Ho(i[t.index])}function Cb(t,i){return t.data[i]}function wb(t,i){return t[i]}function vS(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function Wo(t,i){let e=i[t];return Wr(e)?e:e[fr]}function g2(t){return(t[Je]&4)===4}function xb(t){return(t[Je]&128)===128}function _2(t){return gr(t[qn])}function $r(t,i){return i==null?null:t[i]}function bS(t){t[Ws]=0}function yS(t){t[Je]&1024||(t[Je]|=1024,xb(t)&&sl(t))}function v2(t,i){for(;t>0;)i=i[ol],t--;return i}function cp(t){return!!(t[Je]&9216||t[Yi]?.dirty)}function pv(t){t[dr].changeDetectionScheduler?.notify(8),t[Je]&64&&(t[Je]|=1024),cp(t)&&sl(t)}function sl(t){t[dr].changeDetectionScheduler?.notify(0);let i=Va(t);for(;i!==null&&!(i[Je]&8192||(i[Je]|=8192,!xb(i)));)i=Va(i)}function CS(t,i){if(al(t))throw new Q(911,!1);t[Hr]===null&&(t[Hr]=[]),t[Hr].push(i)}function b2(t,i){if(t[Hr]===null)return;let e=t[Hr].indexOf(i);e!==-1&&t[Hr].splice(e,1)}function Va(t){let i=t[qn];return gr(i)?i[qn]:i}function Db(t){return t[km]??=[]}function Sb(t){return t.cleanup??=[]}function y2(t,i,e,n){let o=Db(i);o.push(e),t.firstCreatePass&&Sb(t).push(n,o.length-1)}var rt={lFrame:MS(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var hv=!1;function C2(){return rt.lFrame.elementDepthCount}function w2(){rt.lFrame.elementDepthCount++}function x2(){rt.lFrame.elementDepthCount--}function Eb(){return rt.bindingsEnabled}function wS(){return rt.skipHydrationRootTNode!==null}function D2(t){return rt.skipHydrationRootTNode===t}function S2(){rt.skipHydrationRootTNode=null}function We(){return rt.lFrame.lView}function tn(){return rt.lFrame.tView}function C(t){return rt.lFrame.contextLView=t,t[Sn]}function w(t){return rt.lFrame.contextLView=null,t}function Yn(){let t=xS();for(;t!==null&&t.type===64;)t=t.parent;return t}function xS(){return rt.lFrame.currentTNode}function E2(){let t=rt.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function qr(t,i){let e=rt.lFrame;e.currentTNode=t,e.isParent=i}function Mb(){return rt.lFrame.isParent}function Tb(){rt.lFrame.isParent=!1}function M2(){return rt.lFrame.contextLView}function DS(){return hv}function Om(t){let i=hv;return hv=t,i}function Bc(){let t=rt.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function T2(){return rt.lFrame.bindingIndex}function I2(t){return rt.lFrame.bindingIndex=t}function Ga(){return rt.lFrame.bindingIndex++}function Ib(t){let i=rt.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function k2(){return rt.lFrame.inI18n}function A2(t,i){let e=rt.lFrame;e.bindingIndex=e.bindingRootIndex=t,fv(i)}function R2(){return rt.lFrame.currentDirectiveIndex}function fv(t){rt.lFrame.currentDirectiveIndex=t}function O2(t){let i=rt.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function kb(){return rt.lFrame.currentQueryIndex}function dp(t){rt.lFrame.currentQueryIndex=t}function P2(t){let i=t[it];return i.type===2?i.declTNode:i.type===1?t[bi]:null}function SS(t,i,e){if(e<.SkipSelf){let o=i,r=t;for(;o=o.parent,o===null&&!(e<.Host);)if(o=P2(r),o===null||(r=r[ol],o.type&10))break;if(o===null)return!1;i=o,t=r}let n=rt.lFrame=ES();return n.currentTNode=i,n.lView=t,!0}function Ab(t){let i=ES(),e=t[it];rt.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function ES(){let t=rt.lFrame,i=t===null?null:t.child;return i===null?MS(t):i}function MS(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 TS(){let t=rt.lFrame;return rt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var IS=TS;function Rb(){let t=TS();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 F2(t){return(rt.lFrame.contextLView=v2(t,rt.lFrame.contextLView))[Sn]}function _r(){return rt.lFrame.selectedIndex}function Ba(t){rt.lFrame.selectedIndex=t}function jc(){let t=rt.lFrame;return Cb(t.tView,t.selectedIndex)}function nn(){rt.lFrame.currentNamespace=gS}function vr(){N2()}function N2(){rt.lFrame.currentNamespace=null}function L2(){return rt.lFrame.currentNamespace}var kS=!0;function up(){return kS}function mp(t){kS=t}function V2(t,i,e){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:r}=i.type.prototype;if(n){let a=pS(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 Ob(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[c]<0&&(t[Ws]+=65536),(s>14>16&&(t[Je]&3)===i&&(t[Je]+=16384,oD(s,r)):oD(s,r)}var Ys=-1,ja=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n){this.factory=i,this.canSeeViewProviders=e,this.injectImpl=n}};function j2(t){return(t.flags&8)!==0}function z2(t){return(t.flags&16)!==0}function U2(t,i,e){let n=0;for(;ni){a=r-1;break}}}for(;r>16}function Fm(t,i){let e=W2(t),n=i;for(;e>0;)n=n[ol],e--;return n}var gv=!0;function Nm(t){let i=gv;return gv=t,i}var G2=256,PS=G2-1,FS=5,$2=0,jo={};function q2(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(Tc)&&(n=e[Tc]),n==null&&(n=e[Tc]=$2++);let o=n&PS,r=1<>FS)]|=r}function Lm(t,i){let e=NS(t,i);if(e!==-1)return e;let n=i[it];n.firstCreatePass&&(t.injectorIndex=i.length,Q_(n.data,t),Q_(i,null),Q_(n.blueprint,null));let o=Pb(t,i),r=t.injectorIndex;if(OS(o)){let a=Pm(o),s=Fm(o,i),c=s[it].data;for(let m=0;m<8;m++)i[r+m]=s[a+m]|c[a+m]}return i[r+8]=o,r}function Q_(t,i){t.push(0,0,0,0,0,0,0,0,i)}function NS(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function Pb(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=zS(o),n===null)return Ys;if(e++,o=o[ol],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return Ys}function _v(t,i,e){q2(t,i,e)}function Y2(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,v=n?s:s+f,D=o?s+f:m;for(let x=v;x=c&&M.type===e)return x}if(o){let x=a[c];if(x&&Uo(x)&&x.type===e)return c}return null}function Ac(t,i,e,n,o){let r=t[e],a=i.data;if(r instanceof ja){let s=r;s.resolving&&ZD(BN(a[e]));let c=Nm(s.canSeeViewProviders);s.resolving=!0;let m,f=s.injectImpl?fi(s.injectImpl):null,v=SS(t,n,lt.Default);try{r=t[e]=s.factory(void 0,o,a,t,n),i.firstCreatePass&&e>=n.directiveStart&&V2(e,a[e],i)}finally{f!==null&&fi(f),Nm(c),s.resolving=!1,IS()}}return r}function K2(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(Tc)?t[Tc]:void 0;return typeof i=="number"?i>=0?i&PS:Z2:i}function aD(t,i,e){let n=1<>FS)]&n)}function sD(t,i){return!(t<.Self)&&!(t<.Host&&i)}var Ra=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return BS(this._tNode,this._lView,i,ip(n),e)}};function Z2(){return new Ra(Yn(),We())}function nt(t){return Nc(()=>{let i=t.prototype.constructor,e=i[Sm]||vv(i),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[Sm]||vv(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function vv(t){return $D(t)?()=>{let i=vv(Fn(t));return i&&i()}:Pa(t)}function X2(t,i,e,n,o){let r=t,a=i;for(;r!==null&&a!==null&&a[Je]&2048&&!Rm(a);){let s=jS(r,a,e,n|lt.Self,jo);if(s!==jo)return s;let c=r.parent;if(!c){let m=a[dS];if(m){let f=m.get(e,jo,n);if(f!==jo)return f}c=zS(a),a=a[ol]}r=c}return o}function zS(t){let i=t[it],e=i.type;return e===2?i.declTNode:e===1?t[bi]:null}function pp(t){return Y2(Yn(),t)}function lD(t,i=null,e=null,n){let o=US(t,i,e,n);return o.resolveInjectorInitializers(),o}function US(t,i=null,e=null,n,o=new Set){let r=[e||ei,e2(t)];return n=n||(typeof t=="object"?void 0:gi(t)),new Ic(r,i||ap(),n||null,o)}var Ie=class t{static THROW_IF_NOT_FOUND=Aa;static NULL=new Im;static create(i,e){if(Array.isArray(i))return lD({name:""},e,i,"");{let n=i.name??"";return lD({name:n},i.parent,i.providers,n)}}static \u0275prov=N({token:t,providedIn:"any",factory:()=>se(nS)});static __NG_ELEMENT_ID__=-1};var Nn=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>pp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},J2=new R("");J2.__NG_ELEMENT_ID__=t=>{let i=Yn();if(i===null)throw new Q(204,!1);if(i.type&2)return i.value;if(t<.Optional)return null;throw new Q(204,!1)};var HS=!1,Yr=(()=>{class t{static __NG_ELEMENT_ID__=eL;static __NG_ENV_ID__=e=>e}return t})(),Vm=class extends Yr{_lView;constructor(i){super(),this._lView=i}onDestroy(i){let e=this._lView;return al(e)?(i(),()=>{}):(CS(e,i),()=>b2(e,i))}};function eL(){return new Vm(We())}var za=class{},Fb=new R("",{providedIn:"root",factory:()=>!1});var WS=new R(""),GS=new R(""),br=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new bt(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=N({token:t,providedIn:"root",factory:()=>new t})}return t})();var bv=class extends z{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(i=!1){super(),this.__isAsync=i,vb()&&(this.destroyRef=p(Yr,{optional:!0})??void 0,this.pendingTasks=p(br,{optional:!0})??void 0)}emit(i){let e=ct(null);try{super.next(i)}finally{ct(e)}}subscribe(i,e,n){let o=i,r=e||(()=>null),a=n;if(i&&typeof i=="object"){let c=i;o=c.next?.bind(c),r=c.error?.bind(c),a=c.complete?.bind(c)}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 be&&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)}})}}},k=bv;function Rc(...t){}function $S(t){let i,e;function n(){t=Rc;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i)}catch{}}return i=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n()})),()=>n()}function cD(t){return queueMicrotask(()=>t()),()=>{t=Rc}}var Nb="isAngularZone",Bm=Nb+"_ID",tL=0,ie=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new k(!1);onMicrotaskEmpty=new k(!1);onStable=new k(!1);onError=new k(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:r=HS}=i;if(typeof Zone>"u")throw new Q(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,oL(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Nb)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new Q(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new Q(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,nL,Rc,Rc);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)}},nL={};function Lb(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 iL(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){$S(()=>{t.callbackScheduled=!1,yv(t),t.isCheckStableRunning=!0,Lb(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),yv(t)}function oL(t){let i=()=>{iL(t)},e=tL++;t._inner=t._inner.fork({name:"angular",properties:{[Nb]:!0,[Bm]:e,[Bm+e]:!0},onInvokeTask:(n,o,r,a,s,c)=>{if(rL(c))return n.invokeTask(r,a,s,c);try{return dD(t),n.invokeTask(r,a,s,c)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),uD(t)}},onInvoke:(n,o,r,a,s,c,m)=>{try{return dD(t),n.invoke(r,a,s,c,m)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!aL(c)&&i(),uD(t)}},onHasTask:(n,o,r,a)=>{n.hasTask(r,a),o===r&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,yv(t),Lb(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 yv(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function dD(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function uD(t){t._nesting--,Lb(t)}var jm=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new k;onMicrotaskEmpty=new k;onStable=new k;onError=new k;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 rL(t){return qS(t,"__ignore_ng_zone__")}function aL(t){return qS(t,"__scheduler_tick__")}function qS(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}function sL(t="zone.js",i){return t==="noop"?new jm:t==="zone.js"?new ie(i):t}var ti=class{_console=console;handleError(i){this._console.error("ERROR",i)}},lL=new R("",{providedIn:"root",factory:()=>{let t=p(ie),i=p(ti);return e=>t.runOutsideAngular(()=>i.handleError(e))}});function mD(t,i){return WD(t,i)}function cL(t){return WD(HD,t)}var YS=(mD.required=cL,mD);function dL(){return ll(Yn(),We())}function ll(t,i){return new Z(qo(t,i))}var Z=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=dL}return t})();function QS(t){return t instanceof Z?t.nativeElement:t}function Qr(t){return typeof t=="function"&&t[hi]!==void 0}function yi(t,i){let e=x_(t,i?.equal),n=e[hi];return e.set=o=>_c(n,o),e.update=o=>D_(n,o),e.asReadonly=uL.bind(e),e}function uL(){let t=this[hi];if(t.readonlyFn===void 0){let i=()=>this();i[hi]=t,t.readonlyFn=i}return t.readonlyFn}function KS(t){return Qr(t)&&typeof t.set=="function"}function mL(){return this._results[Symbol.iterator]()}var Qi=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=QN(i);(this._changesDetected=!YN(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]=mL};function ZS(t){return(t.flags&128)===128}var XS=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(XS||{}),JS=new Map,pL=0;function hL(){return pL++}function fL(t){JS.set(t[sp],t)}function Cv(t){JS.delete(t[sp])}var pD="__ngContext__";function cl(t,i){Wr(i)?(t[pD]=i[sp],fL(i)):t[pD]=i}function eE(t){return nE(t[kc])}function tE(t){return nE(t[bo])}function nE(t){for(;t!==null&&!gr(t);)t=t[bo];return t}var wv;function iE(t){wv=t}function oE(){if(wv!==void 0)return wv;if(typeof document<"u")return document;throw new Q(210,!1)}var $a=new R("",{providedIn:"root",factory:()=>gL}),gL="ng",Vb=new R(""),Kr=new R("",{providedIn:"platform",factory:()=>"unknown"});var tt=new R(""),zc=new R("",{providedIn:"root",factory:()=>oE().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var _L="h",vL="b";var rE=!1,bL=new R("",{providedIn:"root",factory:()=>rE});var Bb=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(Bb||{}),dl=new R(""),hD=new Set;function yr(t){hD.has(t)||(hD.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var jb=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=yL}return t})();function yL(){return new jb(We(),Yn())}var Gs=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Gs||{}),aE=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=N({token:t,providedIn:"root",factory:()=>new t})}return t})(),CL=[Gs.EarlyRead,Gs.Write,Gs.MixedReadWrite,Gs.Read],wL=(()=>{class t{ngZone=p(ie);scheduler=p(za);errorHandler=p(ti,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){p(dl,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Kt(16),this.executing=!0;for(let n of CL)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&&Kt(17)}register(e){let{view:n}=e;n!==void 0?((n[qs]??=[]).push(e),sl(n),n[Je]|=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(Bb.AFTER_NEXT_RENDER,e):e()}static \u0275prov=N({token:t,providedIn:"root",factory:()=>new t})}return t})(),xv=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?.[qs];i&&(this.view[qs]=i.filter(e=>e!==this))}};function qa(t,i){!i?.injector&&bb(qa);let e=i?.injector??p(Ie);return yr("NgAfterRender"),sE(t,e,i,!1)}function Ht(t,i){!i?.injector&&bb(Ht);let e=i?.injector??p(Ie);return yr("NgAfterNextRender"),sE(t,e,i,!0)}function xL(t,i){if(t instanceof Function){let e=[void 0,void 0,void 0,void 0];return e[i]=t,e}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function sE(t,i,e,n){let o=i.get(aE);o.impl??=i.get(wL);let r=i.get(dl,null,{optional:!0}),a=e?.phase??Gs.MixedReadWrite,s=e?.manualCleanup!==!0?i.get(Yr):null,c=i.get(jb,null,{optional:!0}),m=new xv(o.impl,xL(t,a),c?.view,n,s,r?.snapshot(null));return o.impl.register(m),m}var DL=(t,i,e,n)=>{};function SL(t,i,e,n){DL(t,i,e,n)}var EL=()=>null;function lE(t,i,e=!1){return EL(t,i,e)}function cE(t,i){let e=t.contentQueries;if(e!==null){let n=ct(null);try{for(let o=0;ot,createScript:t=>t,createScriptURL:t=>t})}catch{}return fm}function hp(t){return ML()?.createHTML(t)||t}var gm;function dE(){if(gm===void 0&&(gm=null,_i.trustedTypes))try{gm=_i.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return gm}function fD(t){return dE()?.createHTML(t)||t}function gD(t){return dE()?.createScriptURL(t)||t}var mr=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${UD})`}},Sv=class extends mr{getTypeName(){return"HTML"}},Ev=class extends mr{getTypeName(){return"Style"}},Mv=class extends mr{getTypeName(){return"Script"}},Tv=class extends mr{getTypeName(){return"URL"}},Iv=class extends mr{getTypeName(){return"ResourceURL"}};function Zi(t){return t instanceof mr?t.changingThisBreaksApplicationSecurity:t}function Cr(t,i){let e=TL(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${UD})`)}return e===i}function TL(t){return t instanceof mr&&t.getTypeName()||null}function uE(t){return new Sv(t)}function mE(t){return new Ev(t)}function pE(t){return new Mv(t)}function hE(t){return new Tv(t)}function fE(t){return new Iv(t)}function IL(t){let i=new Av(t);return kL()?new kv(i):i}var kv=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(hp(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch{return null}}},Av=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=hp(i),e}};function kL(){try{return!!new window.DOMParser().parseFromString(hp(""),"text/html")}catch{return!1}}var AL=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function fp(t){return t=String(t),t.match(AL)?t:"unsafe:"+t}function wr(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function Uc(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var gE=wr("area,br,col,hr,img,wbr"),_E=wr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),vE=wr("rp,rt"),RL=Uc(vE,_E),OL=Uc(_E,wr("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")),PL=Uc(vE,wr("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")),_D=Uc(gE,OL,PL,RL),bE=wr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),FL=wr("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"),NL=wr("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"),LL=Uc(bE,FL,NL),VL=wr("script,style,template"),Rv=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=zL(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=jL(e);if(r){e=r;break}e=o.pop()}}return this.buf.join("")}startElement(i){let e=vD(i).toLowerCase();if(!_D.hasOwnProperty(e))return this.sanitizedSomething=!0,!VL.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let o=0;o"),!0}endElement(i){let e=vD(i).toLowerCase();_D.hasOwnProperty(e)&&!gE.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(bD(i))}};function BL(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function jL(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw yE(i);return i}function zL(t){let i=t.firstChild;if(i&&BL(t,i))throw yE(i);return i}function vD(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function yE(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var UL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,HL=/([^\#-~ |!])/g;function bD(t){return t.replace(/&/g,"&").replace(UL,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(HL,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var _m;function Ub(t,i){let e=null;try{_m=_m||IL(t);let n=i?String(i):"";e=_m.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=_m.getInertBodyElement(n)}while(n!==r);let s=new Rv().sanitizeChildren(yD(e)||e);return hp(s)}finally{if(e){let n=yD(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function yD(t){return"content"in t&&WL(t)?t.content:null}function WL(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Ln=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}(Ln||{});function Wt(t){let i=Hb();return i?fD(i.sanitize(Ln.HTML,t)||""):Cr(t,"HTML")?fD(Zi(t)):Ub(oE(),Oa(t))}function Ee(t){let i=Hb();return i?i.sanitize(Ln.URL,t)||"":Cr(t,"URL")?Zi(t):fp(Oa(t))}function GL(t){let i=Hb();if(i)return gD(i.sanitize(Ln.RESOURCE_URL,t)||"");if(Cr(t,"ResourceURL"))return gD(Zi(t));throw new Q(904,!1)}function $L(t,i){return i==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||i==="href"&&(t==="base"||t==="link")?GL:Ee}function CE(t,i,e){return $L(i,e)(t)}function Hb(){let t=We();return t&&t[dr].sanitizer}var qL=/^>|^->||--!>|)/g,QL="\u200B$1\u200B";function KL(t){return t.replace(qL,i=>i.replace(YL,QL))}function ul(t){return t.ownerDocument.defaultView}function wE(t){return t.ownerDocument}function xE(t){return t instanceof Function?t():t}function ZL(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 DE="ng-template";function XL(t,i,e,n){let o=0;if(n){for(;o-1){let r;for(;++or?v="":v=o[f+1].toLowerCase(),n&2&&m!==v){if(_o(n))return!1;a=!0}}}}return _o(n)||a}function _o(t){return(t&1)===0}function tV(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!==""&&!_o(a)&&(i+=CD(r,o),o=""),n=a,r=r||!_o(n);e++}return o!==""&&(i+=CD(r,o)),i}function sV(t){return t.map(aV).join(",")}function lV(t){let i=[],e=[],n=1,o=2;for(;nvn&&AE(t,i,vn,!1),Kt(a?2:0,o),e(n,o)}finally{Ba(r),Kt(a?3:1,o)}}function _p(t,i,e){xV(t,i,e),(e.flags&64)===64&&DV(t,i,e)}function Yb(t,i,e=qo){let n=i.localNames;if(n!==null){let o=i.index+1;for(let r=0;rnull;function CV(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function vp(t,i,e,n,o,r,a,s){if(!s&&Kb(i,t,e,n,o)){rl(i)&&wV(e,i.index);return}if(i.type&3){let c=qo(i,e);n=CV(n),o=a!=null?a(o,i.value||"",n):o,r.setProperty(c,n,o)}else i.type&12}function wV(t,i){let e=Wo(i,t);e[Je]&16||(e[Je]|=64)}function xV(t,i,e){let n=e.directiveStart,o=e.directiveEnd;rl(e)&&_V(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||Lm(e,i);let r=e.initialInputs;for(let a=n;a=0?n[s]():n[-s].unsubscribe(),a+=2}else{let s=n[e[a+1]];e[a].call(s)}n!==null&&(i[km]=null);let o=i[Hr];if(o!==null){i[Hr]=null;for(let a=0;a{sl(t.lView)},consumerOnSignalRead(){this.lView[Yi]=this}});function KV(t){let i=t[Yi]??Object.create(ZV);return i.lView=t,i}var ZV=Qe(L({},Os),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=Va(t.lView);for(;i&&!jE(i[it]);)i=Va(i);i&&yS(i)},consumerOnSignalRead(){this.lView[Yi]=this}});function jE(t){return t.type!==2}function zE(t){if(t[Na]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[Na])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[Je]&8192)}}var XV=100;function UE(t,i=!0,e=0){let o=t[dr].rendererFactory,r=!1;r||o.begin?.();try{JV(t,e)}catch(a){throw i&&IV(t,a),a}finally{r||o.end?.()}}function JV(t,i){let e=DS();try{Om(!0),Fv(t,i);let n=0;for(;cp(t);){if(n===XV)throw new Q(103,!1);n++,Fv(t,1)}}finally{Om(e)}}function eB(t,i,e,n){if(al(i))return;let o=i[Je],r=!1,a=!1;Ab(i);let s=!0,c=null,m=null;r||(jE(t)?(m=$V(i),c=fc(m)):v_()===null?(s=!1,m=KV(i),c=fc(m)):i[Yi]&&(gc(i[Yi]),i[Yi]=null));try{bS(i),I2(t.bindingStartIndex),e!==null&&RE(t,i,e,2,n);let f=(o&3)===3;if(!r)if(f){let x=t.preOrderCheckHooks;x!==null&&Cm(i,x,null)}else{let x=t.preOrderHooks;x!==null&&wm(i,x,0,null),Y_(i,0)}if(a||tB(i),zE(i),HE(i,0),t.contentQueries!==null&&cE(t,i),!r)if(f){let x=t.contentCheckHooks;x!==null&&Cm(i,x)}else{let x=t.contentHooks;x!==null&&wm(i,x,1),Y_(i,1)}iB(t,i);let v=t.components;v!==null&&GE(i,v,0);let D=t.viewQuery;if(D!==null&&Dv(2,D,n),!r)if(f){let x=t.viewCheckHooks;x!==null&&Cm(i,x)}else{let x=t.viewHooks;x!==null&&wm(i,x,2),Y_(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[q_]){for(let x of i[q_])x();i[q_]=null}r||(VE(i),i[Je]&=-73)}catch(f){throw r||sl(i),f}finally{m!==null&&(Au(m,c),s&&YV(m)),Rb()}}function HE(t,i){for(let e=eE(t);e!==null;e=tE(e))for(let n=$n;n0&&(t[e-1][bo]=n[bo]);let r=Tm(t,$n+i);PV(n[it],n);let a=r[ur];a!==null&&a.detachView(r[it]),n[qn]=null,n[bo]=null,n[Je]&=-129}return n}function oB(t,i,e,n){let o=$n+n,r=e.length;n>0&&(e[o-1][bo]=i),n-1&&(Oc(i,n),Tm(e,n))}this._attachedToViewContainer=!1}bp(this._lView[it],this._lView)}onDestroy(i){CS(this._lView,i)}markForCheck(){n0(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Je]&=-129}reattach(){pv(this._lView),this._lView[Je]|=128}detectChanges(){this._lView[Je]|=1024,UE(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Q(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=Rm(this._lView),e=this._lView[Fa];e!==null&&!i&&e0(e,this._lView),OE(this._lView[it],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Q(902,!1);this._appRef=i;let e=Rm(this._lView),n=this._lView[Fa];n!==null&&!e&&QE(n,this._lView),pv(this._lView)}};var St=(()=>{class t{static __NG_ELEMENT_ID__=sB}return t})(),rB=St,aB=class extends rB{_declarationLView;_declarationTContainer;elementRef;constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,e){return this.createEmbeddedViewImpl(i,e)}createEmbeddedViewImpl(i,e,n){let o=Hc(this._declarationLView,this._declarationTContainer,i,{embeddedViewInjector:e,dehydratedView:n});return new Pc(o)}};function sB(){return wp(Yn(),We())}function wp(t,i){return t.type&4?new aB(i,t,ll(t,i)):null}function ml(t,i,e,n,o){let r=t.data[i];if(r===null)r=lB(t,i,e,n,o),k2()&&(r.flags|=32);else if(r.type&64){r.type=e,r.value=n,r.attrs=o;let a=E2();r.injectorIndex=a===null?-1:a.injectorIndex}return qr(r,!0),r}function lB(t,i,e,n,o){let r=xS(),a=Mb(),s=a?r:r&&r.parent,c=t.data[i]=dB(t,s,e,i,n,o);return cB(t,c,r,a),c}function cB(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 dB(t,i,e,n,o,r){let a=i?i.injectorIndex:-1,s=0;return wS()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,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}}var Roe=new RegExp(`^(\\d+)*(${vL}|${_L})*(.*)`);var uB=()=>null;function nl(t,i){return uB(t,i)}var mB=class{},KE=class{},Nv=class{resolveComponentFactory(i){throw Error(`No component factory found for ${gi(i)}.`)}},xp=class{static NULL=new Nv},hn=class{},It=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>pB()}return t})();function pB(){let t=We(),i=Yn(),e=Wo(i.index,t);return(Wr(e)?e:t)[sn]}var hB=(()=>{class t{static \u0275prov=N({token:t,providedIn:"root",factory:()=>null})}return t})();var Z_={},Lv=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=ip(n);let o=this.injector.get(i,Z_,n);return o!==Z_||e===Z_?o:this.parentInjector.get(i,e,n)}};function Vv(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 D=0;D0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function DB(t,i,e){if(e){if(i.exportAs)for(let n=0;n{let[e,n,o]=t[i],r={propName:e,templateName:i,isSignal:(n&gp.SignalBased)!==0};return o&&(r.transform=o),r})}function MB(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function TB(t,i,e){let n=i instanceof an?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new Lv(e,n):e}function IB(t){let i=t.get(hn,null);if(i===null)throw new Q(407,!1);let e=t.get(hB,null),n=t.get(za,null);return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n}}function kB(t,i){let e=(t.selectors[0][0]||"div").toLowerCase();return EE(i,e,e==="svg"?gS:e==="math"?f2:null)}var Ua=class extends KE{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=EB(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=MB(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=sV(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,o){Kt(22);let r=ct(null);try{let a=this.componentDef,s=n?["ng-version","19.2.15"]:lV(this.componentDef.selectors[0]),c=Gb(0,null,null,1,0,null,null,null,null,[s],null),m=TB(a,o||this.ngModule,i),f=IB(m),v=f.rendererFactory.createRenderer(null,a),D=n?vV(v,n,a.encapsulation,m):kB(a,v),x=$b(null,c,null,512|IE(a),null,null,f,v,m,null,lE(D,m,!0));x[vn]=D,Ab(x);let M=null;try{let O=XE(vn,c,x,"#host",()=>[this.componentDef],!0,0);D&&(TE(v,D,O),cl(D,x)),_p(c,x,O),zb(c,O,x),JE(c,O),e!==void 0&&AB(O,this.ngContentSelectors,e),M=Wo(O.index,x),x[Sn]=M[Sn],Zb(c,x,null)}catch(O){throw M!==null&&Cv(M),Cv(x),O}finally{Kt(23),Rb()}return new Bv(this.componentType,x)}finally{ct(r)}}},Bv=class extends mB{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e){super(),this._rootLView=e,this._tNode=Cb(e[it],vn),this.location=ll(this._tNode,e),this.instance=Wo(this._tNode.index,e)[Sn],this.hostView=this.changeDetectorRef=new Pc(e,void 0,!1),this.componentType=i}setInput(i,e){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=Kb(n,o[it],o,i,e);this.previousInputValues.set(i,e);let a=Wo(n.index,o);n0(a,1)}get injector(){return new Ra(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function AB(t,i,e){let n=t.projection=[];for(let o=0;o{class t{static __NG_ELEMENT_ID__=RB}return t})();function RB(){let t=Yn();return tM(t,We())}var OB=Rt,eM=class extends OB{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return ll(this._hostTNode,this._hostLView)}get injector(){return new Ra(this._hostTNode,this._hostLView)}get parentInjector(){let i=Pb(this._hostTNode,this._hostLView);if(OS(i)){let e=Fm(i,this._hostLView),n=Pm(i),o=e[it].data[n+8];return new Ra(o,e)}else return new Ra(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=MD(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-$n}createEmbeddedView(i,e,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let a=nl(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,tl(this._hostTNode,a)),s}createComponent(i,e,n,o,r){let a=i&&!u2(i),s;if(a)s=e;else{let M=e||{};s=M.index,n=M.injector,o=M.projectableNodes,r=M.environmentInjector||M.ngModuleRef}let c=a?i:new Ua(Gr(i)),m=n||this.parentInjector;if(!r&&c.ngModule==null){let O=(a?m:this.parentInjector).get(an,null);O&&(r=O)}let f=Gr(c.componentType??{}),v=nl(this._lContainer,f?.id??null),D=v?.firstChild??null,x=c.create(m,o,D,r);return this.insertImpl(x.hostView,s,tl(this._hostTNode,v)),x}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let o=i._lView;if(_2(o)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let c=o[qn],m=new eM(c,c[bi],c[qn]);m.detach(m.indexOf(i))}}let r=this._adjustIndex(e),a=this._lContainer;return Wc(a,o,r,n),i.attachToViewContainerRef(),tS(X_(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=MD(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=Oc(this._lContainer,e);n&&(Tm(X_(this._lContainer),e),bp(n[it],n))}detach(i){let e=this._adjustIndex(i,-1),n=Oc(this._lContainer,e);return n&&Tm(X_(this._lContainer),e)!=null?new Pc(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function MD(t){return t[Am]}function X_(t){return t[Am]||(t[Am]=[])}function tM(t,i){let e,n=i[t.index];return gr(n)?e=n:(e=$E(n,i,null,t),i[t.index]=e,qb(i,e)),FB(e,i,t,n),new eM(e,t,i)}function PB(t,i){let e=t[sn],n=e.createComment(""),o=qo(i,t),r=e.parentNode(o);return zm(e,r,n,e.nextSibling(o),!1),n}var FB=VB,NB=()=>!1;function LB(t,i,e){return NB(t,i,e)}function VB(t,i,e,n){if(t[La])return;let o;e.type&8?o=Ho(n):o=PB(i,e),t[La]=o}var jv=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},zv=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 m=r[s+1],f=i[-c];for(let v=$n;vi.trim())}function rM(t,i,e){t.queries===null&&(t.queries=new Uv),t.queries.track(new Hv(i,e))}function GB(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 r0(t,i){return t.queries.getByIndex(i)}function aM(t,i){let e=t[it],n=r0(e,i);return n.crossesNgTemplate?Wv(e,t,i,[]):nM(e,t,n,i)}function sM(t,i,e){let n,o=Fu(()=>{n._dirtyCounter();let r=QB(n,t);if(i&&r===void 0)throw new Q(-951,!1);return r});return n=o[hi],n._dirtyCounter=yi(0),n._flatValue=void 0,o}function $B(t){return sM(!0,!1,t)}function qB(t){return sM(!0,!0,t)}function YB(t,i){let e=t[hi];e._lView=We(),e._queryIndex=i,e._queryList=o0(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function QB(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[Je]&4)return i?void 0:ei;let o=o0(e,n),r=aM(e,n);return o.reset(r,QS),i?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}function TD(t,i){return $B(i)}function KB(t,i){return qB(i)}var lM=(TD.required=KB,TD);function ZB(t){let i=[],e=new Map;function n(o){let r=e.get(o);if(!r){let a=t(o);e.set(o,r=a.then(tj))}return r}return Gm.forEach((o,r)=>{let a=[];o.templateUrl&&a.push(n(o.templateUrl).then(m=>{o.template=m}));let s=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=s,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let m=o.styles.length,f=o.styleUrls;o.styleUrls.forEach((v,D)=>{s.push(""),a.push(n(v).then(x=>{s[m+D]=x,f.splice(f.indexOf(v),1),f.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&a.push(n(o.styleUrl).then(m=>{s.push(m),o.styleUrl=void 0}));let c=Promise.all(a).then(()=>nj(r));i.push(c)}),JB(),Promise.all(i).then(()=>{})}var Gm=new Map,XB=new Set;function JB(){let t=Gm;return Gm=new Map,t}function ej(){return Gm.size===0}function tj(t){return typeof t=="string"?t:t.text()}function nj(t){XB.delete(t)}var pr=class{},a0=class{};var $m=class extends pr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Hm(this);constructor(i,e,n,o=!0){super(),this.ngModuleType=i,this._parent=e;let r=oS(i);this._bootstrapComponents=xE(r.bootstrap),this._r3Injector=US(i,e,[{provide:pr,useValue:this},{provide:xp,useValue:this.componentFactoryResolver},...n],gi(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)}},qm=class extends a0{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new $m(this.moduleType,i,[])}};function ij(t,i,e){return new $m(t,i,e,!1)}var Gv=class extends pr{injector;componentFactoryResolver=new Hm(this);instance=null;constructor(i){super();let e=new Ic([...i.providers,{provide:pr,useValue:this},{provide:xp,useValue:this.componentFactoryResolver}],i.parent||ap(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function Gc(t,i,e=null){return new Gv({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var oj=(()=>{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=aS(!1,e.type),o=n.length>0?Gc([n],this._injector,`Standalone[${e.type.name}]`):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=N({token:t,providedIn:"environment",factory:()=>new t(se(an))})}return t})();function S(t){return Nc(()=>{let i=cM(t),e=Qe(L({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===XS.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?o=>o.get(oj).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Go.Emulated,styles:t.styles||ei,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&yr("NgStandalone"),dM(e);let n=t.dependencies;return e.directiveDefs=Ym(n,!1),e.pipeDefs=Ym(n,!0),e.id=cj(e),e})}function rj(t){return Gr(t)||rS(t)}function aj(t){return t!==null}function J(t){return Nc(()=>({type:t.type,bootstrap:t.bootstrap||ei,declarations:t.declarations||ei,imports:t.imports||ei,exports:t.exports||ei,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function sj(t,i){if(t==null)return zo;let e={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],r,a,s,c;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r,c=o[3]||null):(r=o,a=o,s=gp.None,c=null),e[r]=[n,s,c],i[r]=a}return e}function lj(t){if(t==null)return zo;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function B(t){return Nc(()=>{let i=cM(t);return dM(i),i})}function Yo(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 cM(t){let i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||zo,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||ei,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:sj(t.inputs,i),outputs:lj(t.outputs),debugInfo:null}}function dM(t){t.features?.forEach(i=>i(t))}function Ym(t,i){if(!t)return null;let e=i?JN:rj;return()=>(typeof t=="function"?t():t).map(n=>e(n)).filter(aj)}function cj(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 dj(t){return Object.getPrototypeOf(t.prototype).constructor}function _e(t){let i=dj(t.type),e=!0,n=[t];for(;i;){let o;if(Uo(t))o=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new Q(903,!1);o=i.\u0275dir}if(o){if(e){n.push(o);let a=t;a.inputs=J_(t.inputs),a.declaredInputs=J_(t.declaredInputs),a.outputs=J_(t.outputs);let s=o.hostBindings;s&&fj(t,s);let c=o.viewQuery,m=o.contentQueries;if(c&&pj(t,c),m&&hj(t,m),uj(t,o),AN(t.outputs,o.outputs),Uo(o)&&o.data.animation){let f=t.data;f.animation=(f.animation||[]).concat(o.data.animation)}}let r=o.features;if(r)for(let a=0;a=0;n--){let o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=el(o.hostAttrs,e=el(e,o.hostAttrs))}}function J_(t){return t===zo?{}:t===ei?[]:t}function pj(t,i){let e=t.viewQuery;e?t.viewQuery=(n,o)=>{i(n,o),e(n,o)}:t.viewQuery=i}function hj(t,i){let e=t.contentQueries;e?t.contentQueries=(n,o,r)=>{i(n,o,r),e(n,o,r)}:t.contentQueries=i}function fj(t,i){let e=t.hostBindings;e?t.hostBindings=(n,o)=>{i(n,o),e(n,o)}:t.hostBindings=i}function uM(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.findHostDirectiveDefs=mM,e.hostDirectives=n?t.map($v):[t]):n?e.hostDirectives.unshift(...t.map($v)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function mM(t,i,e){if(t.hostDirectives!==null)for(let n of t.hostDirectives)if(typeof n=="function"){let o=n();for(let r of o)ID($v(r),i,e)}else ID(n,i,e)}function ID(t,i,e){let n=rS(t.directive);gj(n.declaredInputs,t.inputs),mM(n,i,e),e.set(n,t),i.push(n)}function $v(t){return typeof t=="function"?{directive:Fn(t),inputs:zo,outputs:zo}:{directive:Fn(t.directive),inputs:kD(t.inputs),outputs:kD(t.outputs)}}function kD(t){if(t===void 0||t.length===0)return zo;let i={};for(let e=0;e{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var d0=new R(""),$c=new R(""),Sp=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,o){this._ngZone=e,this.registry=n,vb()&&(this._destroyRef=p(Yr,{optional:!0})??void 0),u0||(wj(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:()=>{ie.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)(se(ie),se(Ep),se($c))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),Ep=(()=>{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 u0?.findTestabilityInTree(this,e,n)??null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function wj(t){u0=t}var u0,fM=(()=>{class t{static \u0275prov=N({token:t,providedIn:"root",factory:()=>new qv})}return t})(),qv=class{queuedEffectCount=0;queues=new Map;schedule(i){this.enqueue(i)}remove(i){let e=i.zone,n=this.queues.get(e);n.has(i)&&(n.delete(i),this.queuedEffectCount--)}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)||(this.queuedEffectCount++,n.add(i))}flush(){for(;this.queuedEffectCount>0;)for(let[i,e]of this.queues)i===null?this.flushQueue(e):i.run(()=>this.flushQueue(e))}flushQueue(i){for(let e of i)i.delete(e),this.queuedEffectCount--,e.run()}};function Zr(t){return!!t&&typeof t.then=="function"}function m0(t){return!!t&&typeof t.subscribe=="function"}var gM=new R("");function p0(t){return Vc([{provide:gM,multi:!0,useValue:t}])}var _M=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=p(gM,{optional:!0})??[];injector=p(Ie);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let o of this.appInits){let r=vi(this.injector,o);if(Zr(r))e.push(r);else if(m0(r)){let a=new Promise((s,c)=>{r.subscribe({complete:s,error:c})});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=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),h0=new R("");function xj(){w_(()=>{throw new Q(600,!1)})}function Dj(t){return t.isBoundToModule}var Sj=10;function vM(t,i){return Array.isArray(i)?i.reduce(vM,t):L(L({},t),i)}var ni=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(lL);afterRenderManager=p(aE);zonelessEnabled=p(Fb);rootEffectScheduler=p(fM);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new z;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=p(br).hasPendingTasks.pipe(pe(e=>!e));constructor(){p(dl,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:o=>{o&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=p(an);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,o=Ie.NULL){Kt(10);let r=e instanceof KE;if(!this._injector.get(_M).done){let x="";throw new Q(405,x)}let s;r?s=e:s=this._injector.get(xp).resolveComponentFactory(e),this.componentTypes.push(s.componentType);let c=Dj(s)?void 0:this._injector.get(pr),m=n||s.selector,f=s.create(o,[],m,c),v=f.location.nativeElement,D=f.injector.get(d0,null);return D?.registerApplication(v),f.onDestroy(()=>{this.detachView(f.hostView),Dm(this.components,f),D?.unregisterApplication(v)}),this._loadComponent(f),Kt(11,f),f}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Kt(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Bb.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new Q(101,!1);let e=ct(null);try{this._runningTick=!0,this.synchronize()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,ct(e),this.afterTick.next(),Kt(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(hn,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;Dm(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(h0,[]).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),()=>Dm(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Q(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=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Dm(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function Ej(t,i,e,n){if(!e&&!cp(t))return;UE(t,i,e&&!n?0:1)}function ne(t,i,e,n){let o=We(),r=Ga();if(Ki(o,r,i)){let a=tn(),s=jc();EV(s,o,t,i,e,n)}return ne}function f0(t,i,e,n){return Ki(t,Ga(),e)?i+Oa(e)+n:Ci}function Mj(t,i,e,n,o,r){let a=T2(),s=hM(t,a,e,o);return Ib(2),s?i+Oa(e)+n+Oa(o)+r:Ci}function vm(t,i){return t<<17|i<<2}function Ha(t){return t>>17&32767}function Tj(t){return(t&2)==2}function Ij(t,i){return t&131071|i<<17}function Yv(t){return t|2}function il(t){return(t&131068)>>2}function ev(t,i){return t&-131069|i<<2}function kj(t){return(t&1)===1}function Qv(t){return t|1}function Aj(t,i,e,n,o,r){let a=r?i.classBindings:i.styleBindings,s=Ha(a),c=il(a);t[n]=e;let m=!1,f;if(Array.isArray(e)){let v=e;f=v[1],(f===null||Lc(v,f)>0)&&(m=!0)}else f=e;if(o)if(c!==0){let D=Ha(t[s+1]);t[n+1]=vm(D,s),D!==0&&(t[D+1]=ev(t[D+1],n)),t[s+1]=Ij(t[s+1],n)}else t[n+1]=vm(s,0),s!==0&&(t[s+1]=ev(t[s+1],n)),s=n;else t[n+1]=vm(c,0),s===0?s=n:t[c+1]=ev(t[c+1],n),c=n;m&&(t[n+1]=Yv(t[n+1])),AD(t,f,n,!0),AD(t,f,n,!1),Rj(i,f,t,n,r),a=vm(s,c),r?i.classBindings=a:i.styleBindings=a}function Rj(t,i,e,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof i=="string"&&Lc(r,i)>=0&&(e[n+1]=Qv(e[n+1]))}function AD(t,i,e,n){let o=t[e+1],r=i===null,a=n?Ha(o):il(o),s=!1;for(;a!==0&&(s===!1||r);){let c=t[a],m=t[a+1];Oj(c,i)&&(s=!0,t[a+1]=n?Qv(m):Yv(m)),a=n?Ha(m):il(m)}s&&(t[e+1]=n?Yv(o):Qv(o))}function Oj(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?Lc(t,i)>=0:!1}var vo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Pj(t){return t.substring(vo.key,vo.keyEnd)}function Fj(t){return Nj(t),bM(t,yM(t,0,vo.textEnd))}function bM(t,i){let e=vo.textEnd;return e===i?-1:(i=vo.keyEnd=Lj(t,vo.key=i,e),yM(t,i,e))}function Nj(t){vo.key=0,vo.keyEnd=0,vo.value=0,vo.valueEnd=0,vo.textEnd=t.length}function yM(t,i,e){for(;i32;)i++;return i}function _(t,i,e){let n=We(),o=Ga();if(Ki(n,o,i)){let r=tn(),a=jc();vp(r,a,n,t,i,n[sn],e,!1)}return _}function Kv(t,i,e,n,o){Kb(i,t,e,o?"class":"style",n)}function Vn(t,i,e){return wM(t,i,e,!1),Vn}function ee(t,i){return wM(t,i,null,!0),ee}function Vt(t){xM(Hj,CM,t,!0)}function CM(t,i){for(let e=Fj(i);e>=0;e=bM(i,e))op(t,Pj(i),!0)}function wM(t,i,e,n){let o=We(),r=tn(),a=Ib(2);if(r.firstUpdatePass&&SM(r,t,a,n),i!==Ci&&Ki(o,a,i)){let s=r.data[_r()];EM(r,s,o,o[sn],t,o[a+1]=Gj(i,e),n,a)}}function xM(t,i,e,n){let o=tn(),r=Ib(2);o.firstUpdatePass&&SM(o,null,r,n);let a=We();if(e!==Ci&&Ki(a,r,e)){let s=o.data[_r()];if(MM(s,n)&&!DM(o,r)){let c=n?s.classesWithoutHost:s.stylesWithoutHost;c!==null&&(e=rv(c,e||"")),Kv(o,s,a,e,n)}else Wj(o,s,a,a[sn],a[r+1],a[r+1]=Uj(t,i,e),n,r)}}function DM(t,i){return i>=t.expandoStartIndex}function SM(t,i,e,n){let o=t.data;if(o[e+1]===null){let r=o[_r()],a=DM(t,e);MM(r,n)&&i===null&&!a&&(i=!1),i=Vj(o,r,i,n),Aj(o,r,i,e,a,n)}}function Vj(t,i,e,n){let o=O2(t),r=n?i.residualClasses:i.residualStyles;if(o===null)(n?i.classBindings:i.styleBindings)===0&&(e=tv(null,t,i,e,n),e=Fc(e,i.attrs,n),r=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==o)if(e=tv(o,t,i,e,n),r===null){let c=Bj(t,i,n);c!==void 0&&Array.isArray(c)&&(c=tv(null,t,i,c[1],n),c=Fc(c,i.attrs,n),jj(t,i,n,c))}else r=zj(t,i,n)}return r!==void 0&&(n?i.residualClasses=r:i.residualStyles=r),e}function Bj(t,i,e){let n=e?i.classBindings:i.styleBindings;if(il(n)!==0)return t[Ha(n)]}function jj(t,i,e,n){let o=e?i.classBindings:i.styleBindings;t[Ha(o)]=n}function zj(t,i,e){let n,o=i.directiveEnd;for(let r=1+i.directiveStylingLast;r0;){let c=t[o],m=Array.isArray(c),f=m?c[1]:c,v=f===null,D=e[o+1];D===Ci&&(D=v?ei:void 0);let x=v?G_(D,n):f===n?D:void 0;if(m&&!Km(x)&&(x=G_(c,n)),Km(x)&&(s=x,a))return s;let M=t[o+1];o=a?Ha(M):il(M)}if(i!==null){let c=r?i.residualClasses:i.residualStyles;c!=null&&(s=G_(c,n))}return s}function Km(t){return t!==void 0}function Gj(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=gi(Zi(t)))),t}function MM(t,i){return(t.flags&(i?8:16))!==0}function TM(t,i,e){let n=We(),o=f0(n,t,i,e);xM(op,CM,o,!0)}var Zv=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 nv(t,i,e,n,o){return t===e&&Object.is(i,n)?1:Object.is(o(t,i),o(e,n))?-1:0}function $j(t,i,e){let n,o,r=0,a=t.length-1,s=void 0;if(Array.isArray(i)){let c=i.length-1;for(;r<=a&&r<=c;){let m=t.at(r),f=i[r],v=nv(r,m,r,f,e);if(v!==0){v<0&&t.updateValue(r,f),r++;continue}let D=t.at(a),x=i[c],M=nv(a,D,c,x,e);if(M!==0){M<0&&t.updateValue(a,x),a--,c--;continue}let O=e(r,m),K=e(a,D),U=e(r,f);if(Object.is(U,K)){let Xe=e(c,x);Object.is(Xe,O)?(t.swap(r,a),t.updateValue(a,x),c--,a--):t.move(a,r),t.updateValue(r,f),r++;continue}if(n??=new Zm,o??=PD(t,r,a,e),Xv(t,n,r,U))t.updateValue(r,f),r++,a++;else if(o.has(U))n.set(O,t.detach(r)),a--;else{let Xe=t.create(r,i[r]);t.attach(r,Xe),r++,a++}}for(;r<=c;)OD(t,n,e,r,i[r]),r++}else if(i!=null){let c=i[Symbol.iterator](),m=c.next();for(;!m.done&&r<=a;){let f=t.at(r),v=m.value,D=nv(r,f,r,v,e);if(D!==0)D<0&&t.updateValue(r,v),r++,m=c.next();else{n??=new Zm,o??=PD(t,r,a,e);let x=e(r,v);if(Xv(t,n,r,x))t.updateValue(r,v),r++,a++,m=c.next();else if(!o.has(x))t.attach(r,t.create(r,v)),r++,a++,m=c.next();else{let M=e(r,f);n.set(M,t.detach(r)),a--}}}for(;!m.done;)OD(t,n,e,t.length,m.value),m=c.next()}for(;r<=a;)t.destroy(t.detach(a--));n?.forEach(c=>{t.destroy(c)})}function Xv(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function OD(t,i,e,n,o){if(Xv(t,i,n,e(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function PD(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 Zm=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 I(t,i){yr("NgControlFlow");let e=We(),n=Ga(),o=e[n]!==Ci?e[n]:-1,r=o!==-1?Xm(e,vn+o):void 0,a=0;if(Ki(e,n,t)){let s=ct(null);try{if(r!==void 0&&YE(r,a),t!==-1){let c=vn+t,m=Xm(e,c),f=nb(e[it],c),v=nl(m,f.tView.ssrId),D=Hc(e,f,i,{dehydratedView:v});Wc(m,D,a,tl(f,v))}}finally{ct(s)}}else if(r!==void 0){let s=qE(r,a);s!==void 0&&(s[Sn]=i)}}var Jv=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-$n}};function le(t,i){return i}var eb=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function oe(t,i,e,n,o,r,a,s,c,m,f,v,D){yr("NgControlFlow");let x=We(),M=tn(),O=c!==void 0,K=We(),U=s?a.bind(K[Oi][Sn]):a,Xe=new eb(O,U);K[vn+t]=Xe,Qm(x,M,t+1,i,e,n,o,$r(M.consts,r)),O&&Qm(x,M,t+2,c,m,f,v,$r(M.consts,D))}var tb=class extends Zv{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-$n}at(i){return this.getLView(i)[Sn].$implicit}attach(i,e){let n=e[Zs];this.needsIndexUpdate||=i!==this.length,Wc(this.lContainer,e,i,tl(this.templateTNode,n))}detach(i){return this.needsIndexUpdate||=i!==this.length-1,qj(this.lContainer,i)}create(i,e){let n=nl(this.lContainer,this.templateTNode.tView.ssrId),o=Hc(this.hostLView,this.templateTNode,new Jv(this.lContainer,e,i),{dehydratedView:n});return this.operationsCounter?.recordCreate(),o}destroy(i){bp(i[it],i),this.operationsCounter?.recordDestroy()}updateValue(i,e){this.getLView(i)[Sn].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i(mp(!0),EE(n,o,L2()));function Kj(t,i,e,n,o){let r=i.consts,a=$r(r,n),s=ml(i,t,8,"ng-container",a);a!==null&&Vv(s,a,!0);let c=$r(r,o);return Eb()&&i0(i,e,s,c,Qb),s.mergedAttrs=el(s.mergedAttrs,s.attrs),i.queries!==null&&i.queries.elementStart(i,s),s}function xr(t,i,e){let n=We(),o=tn(),r=t+vn,a=o.firstCreatePass?Kj(r,o,n,i,e):o.data[r];qr(a,!0);let s=Zj(o,n,a,t);return n[r]=s,up()&&yp(o,n,s,a),cl(s,n),lp(a)&&(_p(o,n,a),zb(o,a,n)),e!=null&&Yb(n,a),xr}function Dr(){let t=Yn(),i=tn();return Mb()?Tb():(t=t.parent,qr(t,!1)),i.firstCreatePass&&(Ob(i,t),yb(t)&&i.queries.elementEnd(t)),Dr}function En(t,i,e){return xr(t,i,e),Dr(),En}var Zj=(t,i,e,n)=>(mp(!0),uV(i[sn],""));function A(){return We()}function bn(t,i,e){let n=We(),o=Ga();if(Ki(n,o,i)){let r=tn(),a=jc();vp(r,a,n,t,i,n[sn],e,!0)}return bn}var Jm="en-US";var Xj=Jm;function Jj(t){typeof t=="string"&&(Xj=t.toLowerCase().replace(/_/g,"-"))}function FD(t,i,e){return function n(o){if(o===Function)return e;let r=rl(t)?Wo(t.index,i):i;n0(r,5);let a=i[Sn],s=ND(i,a,e,o),c=n.__ngNextListenerFn__;for(;c;)s=ND(i,a,c,o)&&s,c=c.__ngNextListenerFn__;return s}}function ND(t,i,e,n){let o=ct(null);try{return Kt(6,i,e),e(n)!==!1}catch(r){return e3(t,r),!1}finally{Kt(7,i,e),ct(o)}}function e3(t,i){let e=t[Xs],n=e?e.get(ti,null):null;n&&n.handleError(i)}function LD(t,i,e,n,o,r){let a=i[e],s=i[it],m=s.data[e].outputs[n],f=a[m],v=s.firstCreatePass?Sb(s):null,D=Db(i),x=f.subscribe(r),M=D.length;D.push(r,x),v&&v.push(o,t.index,M,-(M+1))}function b(t,i,e,n){let o=We(),r=tn(),a=Yn();return IM(r,o,o[sn],a,t,i,n),b}function t3(t,i,e,n){let o=t.cleanup;if(o!=null)for(let r=0;rc?s[c]:null}typeof a=="string"&&(r+=2)}return null}function IM(t,i,e,n,o,r,a){let s=lp(n),m=t.firstCreatePass?Sb(t):null,f=Db(i),v=!0;if(n.type&3||a){let D=qo(n,i),x=a?a(D):D,M=f.length,O=a?U=>a(Ho(U[n.index])):n.index,K=null;if(!a&&s&&(K=t3(t,i,o,n.index)),K!==null){let U=K.__ngLastListenerFn__||K;U.__ngNextListenerFn__=r,K.__ngLastListenerFn__=r,v=!1}else{r=FD(n,i,r),SL(i,x,o,r);let U=e.listen(x,o,r);f.push(r,U),m&&m.push(o,O,M,M+1)}}else r=FD(n,i,r);if(v){let D=n.outputs?.[o],x=n.hostDirectiveOutputs?.[o];if(x&&x.length)for(let M=0;M(mp(!0),cV(i[sn],n));function de(t){return F("",t,""),de}function F(t,i,e){let n=We(),o=f0(n,t,i,e);return o!==Ci&&OM(n,_r(),o),F}function wi(t,i,e,n,o){let r=We(),a=Mj(r,t,i,e,n,o);return a!==Ci&&OM(r,_r(),a),wi}function OM(t,i,e){let n=_S(i,t);dV(t[sn],n,e)}function H(t,i,e){KS(i)&&(i=i());let n=We(),o=Ga();if(Ki(n,o,i)){let r=tn(),a=jc();vp(r,a,n,t,i,n[sn],e,!1)}return H}function G(t,i){let e=KS(t);return e&&t.set(i),e}function W(t,i){let e=We(),n=tn(),o=Yn();return IM(n,e,e[sn],o,t,i),W}var r3={};function g0(t){let i=tn(),e=We(),n=t+vn,o=ml(i,n,128,null,null);return qr(o,!1),vS(i,e,n,r3),g0}function a3(t,i,e){let n=tn();if(n.firstCreatePass){let o=Uo(t);ib(e,n.data,n.blueprint,o,!0),ib(i,n.data,n.blueprint,o,!1)}}function ib(t,i,e,n,o){if(t=Fn(t),Array.isArray(t))for(let r=0;r>20;if(Ks(t)||!t.multi){let x=new ja(m,o,y),M=ov(c,i,o?f:f+D,v);M===-1?(_v(Lm(s,a),r,c),iv(r,t,i.length),i.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(x),a.push(x)):(e[M]=x,a[M]=x)}else{let x=ov(c,i,f+D,v),M=ov(c,i,f,f+D),O=x>=0&&e[x],K=M>=0&&e[M];if(o&&!K||!o&&!O){_v(Lm(s,a),r,c);let U=c3(o?l3:s3,e.length,o,n,m);!o&&K&&(e[M].providerFactory=U),iv(r,t,i.length,0),i.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(U),a.push(U)}else{let U=PM(e[o?M:x],m,!o&&n);iv(r,t,x>-1?x:M,U)}!o&&n&&K&&e[M].componentProviders++}}}function iv(t,i,e,n){let o=Ks(i),r=o2(i);if(o||r){let c=(r?Fn(i.useClass):i).prototype.ngOnDestroy;if(c){let m=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){let f=m.indexOf(e);f===-1?m.push(e,[n,c]):m[f+1].push(n,c)}else m.push(e,c)}}}function PM(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function ov(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>a3(n,o?o(t):t,i)}}function FM(t,i,e){let n=t.\u0275cmp;n.directiveDefs=Ym(i,!1),n.pipeDefs=Ym(e,!0)}function pl(t,i,e){let n=Bc()+t,o=We();return o[n]===Ci?l0(o,n,e?i.call(e):i()):vj(o,n)}function Qn(t,i,e,n){return LM(We(),Bc(),t,i,e,n)}function Mp(t,i,e,n,o){return VM(We(),Bc(),t,i,e,n,o)}function NM(t,i){let e=t[i];return e===Ci?void 0:e}function LM(t,i,e,n,o,r){let a=i+e;return Ki(t,a,o)?l0(t,a+1,r?n.call(r,o):n(o)):NM(t,a+1)}function VM(t,i,e,n,o,r,a){let s=i+e;return hM(t,s,o,r)?l0(t,s+2,a?n.call(a,o,r):n(o,r)):NM(t,s+2)}function dt(t,i){let e=tn(),n,o=t+vn;e.firstCreatePass?(n=d3(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=Pa(n.type,!0)),a,s=fi(y);try{let c=Nm(!1),m=r();return Nm(c),vS(e,We(),o,m),m}finally{fi(s)}}function d3(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function vt(t,i,e){let n=t+vn,o=We(),r=wb(o,n);return BM(o,n)?LM(o,Bc(),i,r.transform,e,r):r.transform(e)}function _0(t,i,e,n){let o=t+vn,r=We(),a=wb(r,o);return BM(r,o)?VM(r,Bc(),i,a.transform,e,n,a):a.transform(e,n)}function BM(t,i){return t[it].data[i].pure}function Ya(t,i){return wp(t,i)}var bm=null;function u3(t){bm!==null&&(t.defaultEncapsulation!==bm.defaultEncapsulation||t.preserveWhitespaces!==bm.preserveWhitespaces)||(bm=t)}var Wa=class{full;major;minor;patch;constructor(i){this.full=i;let e=i.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}},v0=new Wa("19.2.15"),rb=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},jM=(()=>{class t{compileModuleSync(e){return new qm(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),o=oS(e),r=xE(o.declarations).reduce((a,s)=>{let c=Gr(s);return c&&a.push(new Ua(c)),a},[]);return new rb(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=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),m3=new R("");function p3(t,i,e){let n=new qm(e);return Promise.resolve(n)}function VD(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var h3=(()=>{class t{zone=p(ie);changeDetectionScheduler=p(za);applicationRef=p(ni);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function f3({ngZoneFactory:t,ignoreChangesOutsideZone:i,scheduleInRootZone:e}){return t??=()=>new ie(Qe(L({},zM()),{scheduleInRootZone:e})),[{provide:ie,useFactory:t},{provide:Qs,multi:!0,useFactory:()=>{let n=p(h3,{optional:!0});return()=>n.initialize()}},{provide:Qs,multi:!0,useFactory:()=>{let n=p(g3);return()=>{n.initialize()}}},i===!0?{provide:WS,useValue:!0}:[],{provide:GS,useValue:e??HS}]}function zM(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var g3=(()=>{class t{subscription=new be;initialized=!1;zone=p(ie);pendingTasks=p(br);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(()=>{ie.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ie.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _3=(()=>{class t{appRef=p(ni);taskService=p(br);ngZone=p(ie);zonelessEnabled=p(Fb);tracing=p(dl,{optional:!0});disableScheduling=p(WS,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new be;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Bm):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(GS,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof jm||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let n=!1;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,n=!0;break}case 12:{this.appRef.dirtyFlags|=16,n=!0;break}case 13:{this.appRef.dirtyFlags|=2,n=!0;break}case 11:{n=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(n))return;let o=this.useMicrotaskScheduler?cD:$S;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Bm+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){throw this.taskService.remove(e),n}finally{this.cleanup()}this.useMicrotaskScheduler=!0,cD(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}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=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function v3(){return typeof $localize<"u"&&$localize.locale||Jm}var qc=new R("",{providedIn:"root",factory:()=>p(qc,lt.Optional|lt.SkipSelf)||v3()});var ep=new R(""),b3=new R("");function Sc(t){return!t.moduleRef}function y3(t){let i=Sc(t)?t.r3Injector:t.moduleRef.injector,e=i.get(ie);return e.run(()=>{Sc(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(ti,null),o;if(e.runOutsideAngular(()=>{o=e.onError.subscribe({next:r=>{n.handleError(r)}})}),Sc(t)){let r=()=>i.destroy(),a=t.platformInjector.get(ep);a.add(r),i.onDestroy(()=>{o.unsubscribe(),a.delete(r)})}else{let r=()=>t.moduleRef.destroy(),a=t.platformInjector.get(ep);a.add(r),t.moduleRef.onDestroy(()=>{Dm(t.allPlatformModules,t.moduleRef),o.unsubscribe(),a.delete(r)})}return w3(n,e,()=>{let r=i.get(_M);return r.runInitializers(),r.donePromise.then(()=>{let a=i.get(qc,Jm);if(Jj(a||Jm),!i.get(b3,!0))return Sc(t)?i.get(ni):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Sc(t)){let c=i.get(ni);return t.rootComponent!==void 0&&c.bootstrap(t.rootComponent),c}else return C3(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function C3(t,i){let e=t.injector.get(ni);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new Q(-403,!1);i.push(t)}function w3(t,i,e){try{let n=e();return Zr(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}var UM=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let o=n?.scheduleInRootZone,r=()=>sL(n?.ngZone,Qe(L({},zM({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),a=n?.ignoreChangesOutsideZone,s=[f3({ngZoneFactory:r,ignoreChangesOutsideZone:a}),{provide:za,useExisting:_3}],c=ij(e.moduleType,this.injector,s);return y3({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let o=vM({},n);return p3(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 Q(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(ep,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(se(Ie))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),b0=null;function x3(t){if(C0())throw new Q(400,!1);xj(),b0=t;let i=t.get(UM);return E3(t),i}function y0(t,i,e=[]){let n=`Platform: ${i}`,o=new R(n);return(r=[])=>{let a=C0();if(!a){let s=[...e,...r,{provide:o,useValue:!0}];a=t?.(s)??x3(D3(s,n))}return S3(o)}}function D3(t=[],i){return Ie.create({name:i,providers:[{provide:rp,useValue:"platform"},{provide:ep,useValue:new Set([()=>b0=null])},...t]})}function S3(t){let i=C0();if(!i)throw new Q(401,!1);return i}function C0(){return b0?.get(UM)??null}function E3(t){let i=t.get(Vb,null);vi(t,()=>{i?.forEach(e=>e())})}var xe=(()=>{class t{static __NG_ELEMENT_ID__=M3}return t})();function M3(t){return T3(Yn(),We(),(t&16)===16)}function T3(t,i,e){if(rl(t)&&!e){let n=Wo(t.index,i);return new Pc(n,n)}else if(t.type&175){let n=i[Oi];return new Pc(n,i)}return null}var ab=class{constructor(){}supports(i){return pM(i)}create(i){return new sb(i)}},I3=(t,i)=>i,sb=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||I3}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 lb(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 tp),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 tp),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}},lb=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}},cb=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}},tp=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new cb,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 BD(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 mb(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))}},mb=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function jD(){return new Sr([new ab])}var Sr=(()=>{class t{factories;static \u0275prov=N({token:t,providedIn:"root",factory:jD});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:n=>t.create(e,n||jD()),deps:[[t,new hr,new yo]]}}find(e){let n=this.factories.find(o=>o.supports(e));if(n!=null)return n;throw new Q(901,!1)}}return t})();function zD(){return new Tp([new db])}var Tp=(()=>{class t{static \u0275prov=N({token:t,providedIn:"root",factory:zD});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:n=>t.create(e,n||zD()),deps:[[t,new hr,new yo]]}}find(e){let n=this.factories.find(o=>o.supports(e));if(n)return n;throw new Q(901,!1)}}return t})();var HM=y0(null,"core",[]),WM=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(se(ni))};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();function $(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Zt(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}function xi(t){return S_(t)}function Qo(t,i){return Fu(t,i?.equal)}var pb=class{[hi];constructor(i){this[hi]=i}destroy(){this[hi].destroy()}};function Yc(t,i){!i?.injector&&bb(Yc);let e=i?.injector??p(Ie),n=i?.manualCleanup!==!0?e.get(Yr):null,o,r=e.get(jb,null,{optional:!0}),a=e.get(za);return r!==null&&!i?.forceRoot?(o=R3(r.view,a,t),n instanceof Vm&&n._lView===r.view&&(n=null)):o=O3(t,e.get(fM),a),o.injector=e,n!==null&&(o.onDestroyFn=n.onDestroy(()=>o.destroy())),new pb(o)}var GM=Qe(L({},Os),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:Rc,run(){if(this.dirty=!1,this.hasRun&&!Ru(this))return;this.hasRun=!0;let t=n=>(this.cleanupFns??=[]).push(n),i=fc(this),e=Om(!1);try{this.maybeCleanup(),this.fn(t)}finally{Om(e),Au(this,i)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),k3=Qe(L({},GM),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){gc(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),A3=Qe(L({},GM),{consumerMarkedDirty(){this.view[Je]|=8192,sl(this.view),this.notifier.notify(13)},destroy(){gc(this),this.onDestroyFn(),this.maybeCleanup(),this.view[Na]?.delete(this)}});function R3(t,i,e){let n=Object.create(A3);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=e,t[Na]??=new Set,t[Na].add(n),n.consumerMarkedDirty(n),n}function O3(t,i,e){let n=Object.create(k3);return n.fn=t,n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.schedule(n),n.notifier.notify(12),n}function Ip(t,i){let e=Gr(t),n=i.elementInjector||ap();return new Ua(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector)}function $M(t){let i=Gr(t);if(!i)return null;let e=new Ua(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 he=new R("");var QM=null;function Pi(){return QM}function w0(t){QM??=t}var Qc=class{},Kc=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:()=>p(KM),providedIn:"platform"})}return t})(),x0=new R(""),KM=(()=>{class t extends Kc{_location;_history;_doc=p(he);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Pi().getBaseHref(this._doc)}onPopState(e){let n=Pi().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=Pi().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=N({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function kp(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function qM(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function Co(t){return t&&t[0]!=="?"?`?${t}`:t}var wo=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:()=>p(Rp),providedIn:"root"})}return t})(),Ap=new R(""),Rp=(()=>{class t extends wo{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??p(he).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 kp(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+Co(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+Co(r));this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+Co(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)(se(Kc),se(Ap,8))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ko=(()=>{class t{_subject=new z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=N3(qM(YM(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+Co(n))}normalize(e){return t.stripTrailingSlash(F3(this._basePath,YM(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+Co(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Co(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=Co;static joinWithSlash=kp;static stripTrailingSlash=qM;static \u0275fac=function(n){return new(n||t)(se(wo))};static \u0275prov=N({token:t,factory:()=>P3(),providedIn:"root"})}return t})();function P3(){return new Ko(se(wo))}function F3(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function YM(t){return t.replace(/\/index.html$/,"")}function N3(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var M0=(()=>{class t extends wo{_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=kp(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+Co(r))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+Co(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)(se(Kc),se(Ap,8))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var D0=/\s+/,ZM=[],ii=(()=>{class t{_ngEl;_renderer;initialClasses=ZM;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(D0):ZM}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(D0):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(D0).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)(y(Z),y(It))};static \u0275dir=B({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var T0=(()=>{class t{_viewContainer;_context=new Op;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,n){this._viewContainer=e,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){XM(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){XM(e,!1),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(y(Rt),y(St))};static \u0275dir=B({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),Op=class{$implicit=null;ngIf=null};function XM(t,i){if(t&&!t.createEmbeddedView)throw new Q(2020,!1)}var Zc=(()=>{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:$o.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)(y(Z),y(Tp),y(It))};static \u0275dir=B({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Xc=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;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.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)(y(Rt))};static \u0275dir=B({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Be]})}return t})();function L3(t,i){return new Q(2100,!1)}var S0=class{createSubscription(i,e){return xi(()=>i.subscribe({next:e,error:n=>{throw n}}))}dispose(i){xi(()=>i.unsubscribe())}},E0=class{createSubscription(i,e){return i.then(n=>e?.(n),n=>{throw n}),{unsubscribe:()=>{e=null}}}dispose(i){i.unsubscribe()}},V3=new E0,B3=new S0,Jc=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;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))}_selectStrategy(e){if(Zr(e))return V3;if(m0(e))return B3;throw L3(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)(y(xe,16))};static \u0275pipe=Yo({name:"async",type:t,pure:!1})}return t})();function j3(t,i){return{key:t,value:i}}var I0=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=JM;transform(e,n=JM){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(j3(a.key,a.currentValue))})),(o||r)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(y(Tp,16))};static \u0275pipe=Yo({name:"keyvalue",type:t,pure:!1})}return t})();function JM(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=J({type:t});static \u0275inj=X({})}return t})();function ed(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 Pp="browser",e1="server";function k0(t){return t===Pp}function Fp(t){return t===e1}var Ka=class{};var t1=(()=>{class t{static \u0275prov=N({token:t,providedIn:"root",factory:()=>new A0(p(he),window)})}return t})(),A0=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){this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){let e=U3(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){this.window.history.scrollRestoration=i}scrollToElement(i){let e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],o-r[1])}};function U3(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 Vp=new R(""),F0=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}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 Q(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(se(Vp),se(ie))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),td=class{_doc;constructor(i){this._doc=i}manager},Np="ng-app-id";function n1(t){for(let i of t)i.remove()}function i1(t,i){let e=i.createElement("style");return e.textContent=t,e}function H3(t,i,e,n){let o=t.head?.querySelectorAll(`style[${Np}="${i}"],link[${Np}="${i}"]`);if(o)for(let r of o)r.removeAttribute(Np),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 O0(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var N0=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,n,o,r={}){this.doc=e,this.appId=n,this.nonce=o,this.isServer=Fp(r),H3(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let o of e)this.addUsage(o,this.inline,i1);n?.forEach(o=>this.addUsage(o,this.external,O0))}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&&(n1(o.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])n1(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:o}]of this.inline)o.push(this.addElement(e,i1(n,this.doc)));for(let[n,{elements:o}]of this.external)o.push(this.addElement(e,O0(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(Np,this.appId),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(se(he),se($a),se(zc,8),se(Kr))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),R0={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"},L0=/%COMP%/g;var r1="%COMP%",W3=`_nghost-${r1}`,G3=`_ngcontent-${r1}`,$3=!0,q3=new R("",{providedIn:"root",factory:()=>$3});function Y3(t){return G3.replace(L0,t)}function Q3(t){return W3.replace(L0,t)}function a1(t,i){return i.map(e=>e.replace(L0,t))}var od=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,o,r,a,s,c,m=null,f=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.platformId=s,this.ngZone=c,this.nonce=m,this.tracingService=f,this.platformIsServer=Fp(s),this.defaultRenderer=new nd(e,a,c,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Go.ShadowDom&&(n=Qe(L({},n),{encapsulation:Go.Emulated}));let o=this.getOrCreateRenderer(e,n);return o instanceof Lp?o.applyToHost(e):o instanceof id&&o.applyStyles(),o}getOrCreateRenderer(e,n){let o=this.rendererByCompId,r=o.get(n.id);if(!r){let a=this.doc,s=this.ngZone,c=this.eventManager,m=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,v=this.platformIsServer,D=this.tracingService;switch(n.encapsulation){case Go.Emulated:r=new Lp(c,m,n,this.appId,f,a,s,v,D);break;case Go.ShadowDom:return new P0(c,m,e,n,a,s,this.nonce,v,D);default:r=new id(c,m,n,f,a,s,v,D);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)(se(F0),se(N0),se($a),se(q3),se(he),se(Kr),se(ie),se(zc),se(dl,8))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),nd=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,o,r){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=o,this.tracingService=r}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(R0[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(o1(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(o1(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 Q(-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=R0[o];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let o=R0[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&($o.DashCase|$o.Important)?i.style.setProperty(e,n,o&$o.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&$o.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=Pi().getGlobalEventTarget(this.doc,i),!i))throw new Q(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;(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))===!1&&e.preventDefault()}}};function o1(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var P0=class extends nd{sharedStylesHost;hostEl;shadowRoot;constructor(i,e,n,o,r,a,s,c,m){super(i,r,a,c,m),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let f=o.styles;f=a1(o.id,f);for(let D of f){let x=document.createElement("style");s&&x.setAttribute("nonce",s),x.textContent=D,this.shadowRoot.appendChild(x)}let v=o.getExternalStyles?.();if(v)for(let D of v){let x=O0(D,r);s&&x.setAttribute("nonce",s),this.shadowRoot.appendChild(x)}}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.removeHost(this.shadowRoot)}},id=class extends nd{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,o,r,a,s,c,m){super(i,r,a,s,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let f=n.styles;this.styles=m?a1(m,f):f,this.styleUrls=n.getExternalStyles?.(m)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Lp=class extends id{contentAttr;hostAttr;constructor(i,e,n,o,r,a,s,c,m){let f=o+"-"+n.id;super(i,e,n,r,a,s,c,m,f),this.contentAttr=Y3(f),this.hostAttr=Q3(f)}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 Bp=class t extends Qc{supportsDOMEvents=!0;static makeCurrent(){w0(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=K3();return e==null?null:Z3(e)}resetBaseElement(){rd=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return ed(document.cookie,i)}},rd=null;function K3(){return rd=rd||document.head.querySelector("base"),rd?rd.getAttribute("href"):null}function Z3(t){return new URL(t,document.baseURI).pathname}var jp=class{addToWindow(i){_i.getAngularTestability=(n,o=!0)=>{let r=i.findTestabilityInTree(n,o);if(r==null)throw new Q(5103,!1);return r},_i.getAllAngularTestabilities=()=>i.getAllTestabilities(),_i.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let o=_i.getAllAngularTestabilities(),r=o.length,a=function(){r--,r==0&&n()};o.forEach(s=>{s.whenStable(a)})};_i.frameworkStabilizers||(_i.frameworkStabilizers=[]),_i.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let o=i.getTestability(e);return o??(n?Pi().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},X3=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),l1=(()=>{class t extends td{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)(se(he))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),s1=["alt","control","meta","shift"],J3={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ez={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},c1=(()=>{class t extends td{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(()=>Pi().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."),s1.forEach(m=>{let f=n.indexOf(m);f>-1&&(n.splice(f,1),a+=m+".")}),a+=r,n.length!=0||r.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(e,n){let o=J3[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"),s1.forEach(a=>{if(a!==o){let s=ez[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)(se(he))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function tz(){Bp.makeCurrent()}function nz(){return new ti}function iz(){return iE(document),document}var oz=[{provide:Kr,useValue:Pp},{provide:Vb,useValue:tz,multi:!0},{provide:he,useFactory:iz}],V0=y0(HM,"browser",oz);var rz=[{provide:$c,useClass:jp},{provide:d0,useClass:Sp,deps:[ie,Ep,$c]},{provide:Sp,useClass:Sp,deps:[ie,Ep,$c]}],az=[{provide:rp,useValue:"root"},{provide:ti,useFactory:nz},{provide:Vp,useClass:l1,multi:!0,deps:[he]},{provide:Vp,useClass:c1,multi:!0,deps:[he]},od,N0,F0,{provide:hn,useExisting:od},{provide:Ka,useClass:X3},[]],ad=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[...az,...rz],imports:[Qa,WM]})}return t})();var fl=class{},sd=class{},oi=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 Up=class{encodeKey(i){return d1(i)}encodeValue(i){return d1(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function sz(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))],c=e.get(a)||[];c.push(s),e.set(a,c)}),e}var lz=/%(\d[a-f0-9])/gi,cz={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function d1(t){return encodeURIComponent(t).replace(lz,(i,e)=>cz[e]??i)}function zp(t){return`${t}`}var Er=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Up,i.fromString){if(i.fromObject)throw new Q(2805,!1);this.map=sz(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(zp):[zp(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(zp(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(zp(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)}};var Hp=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()}};function dz(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function u1(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function m1(t){return typeof Blob<"u"&&t instanceof Blob}function p1(t){return typeof FormData<"u"&&t instanceof FormData}function uz(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var h1="Content-Type",f1="Accept",_1="X-Request-URL",v1="text/plain",b1="application/json",mz=`${b1}, ${v1}, */*`,hl=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(i,e,n,o){this.url=e,this.method=i.toUpperCase();let r;if(dz(this.method)||o?(this.body=n!==void 0?n:null,r=o):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new oi,this.context??=new Hp,!this.params)this.params=new Er,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),c=s===-1?"?":sD.set(x,i.setHeaders[x]),m)),i.setParams&&(f=Object.keys(i.setParams).reduce((D,x)=>D.set(x,i.setParams[x]),f)),new t(e,n,a,{params:f,headers:m,context:v,reportProgress:c,responseType:o,withCredentials:s,transferCache:r})}},Xa=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}(Xa||{}),gl=class{headers;status;statusText;url;ok;type;constructor(i,e=200,n="OK"){this.headers=i.headers||new oi,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}},Wp=class t extends gl{constructor(i={}){super(i)}type=Xa.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})}},ld=class t extends gl{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Xa.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})}},cd=class extends gl{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}},pz=200,hz=204;function B0(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,transferCache:t.transferCache}}var _l=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,o={}){let r;if(e instanceof hl)r=e;else{let c;o.headers instanceof oi?c=o.headers:c=new oi(o.headers);let m;o.params&&(o.params instanceof Er?m=o.params:m=new Er({fromObject:o.params})),r=new hl(e,n,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:m,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=ae(r).pipe(Vo(c=>this.handler.handle(c)));if(e instanceof hl||o.observe==="events")return a;let s=a.pipe(Ke(c=>c instanceof ld));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(pe(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Q(2806,!1);return c.body}));case"blob":return s.pipe(pe(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Q(2807,!1);return c.body}));case"text":return s.pipe(pe(c=>{if(c.body!==null&&typeof c.body!="string")throw new Q(2808,!1);return c.body}));case"json":default:return s.pipe(pe(c=>c.body))}case"response":return s;default:throw new Q(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 Er().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,B0(o,n))}post(e,n,o={}){return this.request("POST",e,B0(o,n))}put(e,n,o={}){return this.request("PUT",e,B0(o,n))}static \u0275fac=function(n){return new(n||t)(se(fl))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var fz=new R("");function y1(t,i){return i(t)}function gz(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}function _z(t,i,e){return(n,o)=>vi(e,()=>i(n,r=>t(r,o)))}var C1=new R(""),z0=new R(""),w1=new R(""),U0=new R("",{providedIn:"root",factory:()=>!0});function vz(){let t=null;return(i,e)=>{t===null&&(t=(p(C1,{optional:!0})??[]).reduceRight(gz,y1));let n=p(br);if(p(U0)){let r=n.add();return t(i,e).pipe(Bo(()=>n.remove(r)))}else return t(i,e)}}var Gp=(()=>{class t extends fl{backend;injector;chain=null;pendingTasks=p(br);contributeToStability=p(U0);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(z0),...this.injector.get(w1,[])]));this.chain=n.reduceRight((o,r)=>_z(o,r,this.injector),y1)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Bo(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(se(sd),se(an))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var bz=/^\)\]\}',?\n/,yz=RegExp(`^${_1}:`,"m");function Cz(t){return"responseURL"in t&&t.responseURL?t.responseURL:yz.test(t.getAllResponseHeaders())?t.getResponseHeader(_1):null}var j0=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new Q(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?zt(n.\u0275loadImpl()):ae(null)).pipe(Dt(()=>new Fe(r=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((O,K)=>a.setRequestHeader(O,K.join(","))),e.headers.has(f1)||a.setRequestHeader(f1,mz),!e.headers.has(h1)){let O=e.detectContentTypeHeader();O!==null&&a.setRequestHeader(h1,O)}if(e.responseType){let O=e.responseType.toLowerCase();a.responseType=O!=="json"?O:"text"}let s=e.serializeBody(),c=null,m=()=>{if(c!==null)return c;let O=a.statusText||"OK",K=new oi(a.getAllResponseHeaders()),U=Cz(a)||e.url;return c=new Wp({headers:K,status:a.status,statusText:O,url:U}),c},f=()=>{let{headers:O,status:K,statusText:U,url:Xe}=m(),gt=null;K!==hz&&(gt=typeof a.response>"u"?a.responseText:a.response),K===0&&(K=gt?pz:0);let pn=K>=200&&K<300;if(e.responseType==="json"&&typeof gt=="string"){let Lr=gt;gt=gt.replace(bz,"");try{gt=gt!==""?JSON.parse(gt):null}catch(Wi){gt=Lr,pn&&(pn=!1,gt={error:Wi,text:gt})}}pn?(r.next(new ld({body:gt,headers:O,status:K,statusText:U,url:Xe||void 0})),r.complete()):r.error(new cd({error:gt,headers:O,status:K,statusText:U,url:Xe||void 0}))},v=O=>{let{url:K}=m(),U=new cd({error:O,status:a.status||0,statusText:a.statusText||"Unknown Error",url:K||void 0});r.error(U)},D=!1,x=O=>{D||(r.next(m()),D=!0);let K={type:Xa.DownloadProgress,loaded:O.loaded};O.lengthComputable&&(K.total=O.total),e.responseType==="text"&&a.responseText&&(K.partialText=a.responseText),r.next(K)},M=O=>{let K={type:Xa.UploadProgress,loaded:O.loaded};O.lengthComputable&&(K.total=O.total),r.next(K)};return a.addEventListener("load",f),a.addEventListener("error",v),a.addEventListener("timeout",v),a.addEventListener("abort",v),e.reportProgress&&(a.addEventListener("progress",x),s!==null&&a.upload&&a.upload.addEventListener("progress",M)),a.send(s),r.next({type:Xa.Sent}),()=>{a.removeEventListener("error",v),a.removeEventListener("abort",v),a.removeEventListener("load",f),a.removeEventListener("timeout",v),e.reportProgress&&(a.removeEventListener("progress",x),s!==null&&a.upload&&a.upload.removeEventListener("progress",M)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(n){return new(n||t)(se(Ka))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),x1=new R(""),wz="XSRF-TOKEN",xz=new R("",{providedIn:"root",factory:()=>wz}),Dz="X-XSRF-TOKEN",Sz=new R("",{providedIn:"root",factory:()=>Dz}),dd=class{},Ez=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n){this.doc=e,this.cookieName=n}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=ed(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(se(he),se(xz))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function Mz(t,i){let e=t.url.toLowerCase();if(!p(x1)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return i(t);let n=p(dd).getToken(),o=p(Sz);return n!=null&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),i(t)}var H0=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}(H0||{});function Tz(t,i){return{\u0275kind:t,\u0275providers:i}}function W0(...t){let i=[_l,j0,Gp,{provide:fl,useExisting:Gp},{provide:sd,useFactory:()=>p(fz,{optional:!0})??p(j0)},{provide:z0,useValue:Mz,multi:!0},{provide:x1,useValue:!0},{provide:dd,useClass:Ez}];for(let e of t)i.push(...e.\u0275providers);return Vc(i)}var g1=new R("");function G0(){return Tz(H0.LegacyInterceptors,[{provide:g1,useFactory:vz},{provide:z0,useExisting:g1,multi:!0}])}var S1=(()=>{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)(se(he))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ja=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=se(Iz),o},providedIn:"root"})}return t})(),Iz=(()=>{class t extends Ja{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ln.NONE:return n;case Ln.HTML:return Cr(n,"HTML")?Zi(n):Ub(this._doc,String(n)).toString();case Ln.STYLE:return Cr(n,"Style")?Zi(n):n;case Ln.SCRIPT:if(Cr(n,"Script"))return Zi(n);throw new Q(5200,!1);case Ln.URL:return Cr(n,"URL")?Zi(n):fp(String(n));case Ln.RESOURCE_URL:if(Cr(n,"ResourceURL"))return Zi(n);throw new Q(5201,!1);default:throw new Q(5202,!1)}}bypassSecurityTrustHtml(e){return uE(e)}bypassSecurityTrustStyle(e){return mE(e)}bypassSecurityTrustScript(e){return pE(e)}bypassSecurityTrustUrl(e){return hE(e)}bypassSecurityTrustResourceUrl(e){return fE(e)}static \u0275fac=function(n){return new(n||t)(se(he))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var at="primary",Dd=Symbol("RouteTitle"),K0=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 ns(t){return new K0(t)}function O1(t,i,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(i.hasChildren()||n.lengthn[r]===o)}else return t===i}function F1(t){return t.length>0?t[t.length-1]:null}function ia(t){return js(t)?t:Zr(t)?zt(Promise.resolve(t)):ae(t)}var Az={exact:L1,subset:V1},N1={exact:Rz,subset:Oz,ignored:()=>!0};function E1(t,i,e){return Az[e.paths](t.root,i.root,e.matrixParams)&&N1[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function Rz(t,i){return Zo(t,i)}function L1(t,i,e){if(!es(t.segments,i.segments)||!Yp(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!L1(t.children[n],i.children[n],e))return!1;return!0}function Oz(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>P1(t[e],i[e]))}function V1(t,i,e){return B1(t,i,i.segments,e)}function B1(t,i,e,n){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!es(o,e)||i.hasChildren()||!Yp(o,e,n))}else if(t.segments.length===e.length){if(!es(t.segments,e)||!Yp(t.segments,e,n))return!1;for(let o in i.children)if(!t.children[o]||!V1(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!es(t.segments,o)||!Yp(t.segments,o,n)||!t.children[at]?!1:B1(t.children[at],i,r,n)}}function Yp(t,i,e){return i.every((n,o)=>N1[e](t[o].parameters,n.parameters))}var Jo=class{root;queryParams;fragment;_queryParamMap;constructor(i=new Ot([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ns(this.queryParams),this._queryParamMap}toString(){return Nz.serialize(this)}},Ot=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 Qp(this)}},Jr=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=ns(this.parameters),this._parameterMap}toString(){return z1(this)}};function Pz(t,i){return es(t,i)&&t.every((e,n)=>Zo(e.parameters,i[n].parameters))}function es(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function Fz(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===at&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==at&&(e=e.concat(i(o,n)))}),e}var is=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:()=>new ea,providedIn:"root"})}return t})(),ea=class{parse(i){let e=new J0(i);return new Jo(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${md(i.root,!0)}`,n=Bz(i.queryParams),o=typeof i.fragment=="string"?`#${Lz(i.fragment)}`:"";return`${e}${n}${o}`}},Nz=new ea;function Qp(t){return t.segments.map(i=>z1(i)).join("/")}function md(t,i){if(!t.hasChildren())return Qp(t);if(i){let e=t.children[at]?md(t.children[at],!1):"",n=[];return Object.entries(t.children).forEach(([o,r])=>{o!==at&&n.push(`${o}:${md(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=Fz(t,(n,o)=>o===at?[md(t.children[at],!1)]:[`${o}:${md(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[at]!=null?`${Qp(t)}/${e[0]}`:`${Qp(t)}/(${e.join("//")})`}}function j1(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function $p(t){return j1(t).replace(/%3B/gi,";")}function Lz(t){return encodeURI(t)}function X0(t){return j1(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Kp(t){return decodeURIComponent(t)}function M1(t){return Kp(t.replace(/\+/g,"%20"))}function z1(t){return`${X0(t.path)}${Vz(t.parameters)}`}function Vz(t){return Object.entries(t).map(([i,e])=>`;${X0(i)}=${X0(e)}`).join("")}function Bz(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(o=>`${$p(e)}=${$p(o)}`).join("&"):`${$p(e)}=${$p(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var jz=/^[^\/()?;#]+/;function $0(t){let i=t.match(jz);return i?i[0]:""}var zz=/^[^\/()?;=#]+/;function Uz(t){let i=t.match(zz);return i?i[0]:""}var Hz=/^[^=?&#]+/;function Wz(t){let i=t.match(Hz);return i?i[0]:""}var Gz=/^[^&#]+/;function $z(t){let i=t.match(Gz);return i?i[0]:""}var J0=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ot([],{}):new Ot([],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(){if(this.remaining==="")return{};this.consumeOptional("/");let i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[at]=new Ot(i,e)),n}parseSegment(){let i=$0(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new Q(4009,!1);return this.capture(i),new Jr(Kp(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=Uz(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=$0(this.remaining);o&&(n=o,this.capture(n))}i[Kp(e)]=Kp(n)}parseQueryParam(i){let e=Wz(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=$z(this.remaining);a&&(n=a,this.capture(n))}let o=M1(e),r=M1(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){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=$0(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new Q(4010,!1);let r;n.indexOf(":")>-1?(r=n.slice(0,n.indexOf(":")),this.capture(r),this.capture(":")):i&&(r=at);let a=this.parseChildren();e[r]=Object.keys(a).length===1?a[at]:new Ot([],a),this.consumeOptional("//")}return e}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 Q(4011,!1)}};function U1(t){return t.segments.length>0?new Ot([],{[at]:t}):t}function H1(t){let i={};for(let[n,o]of Object.entries(t.children)){let r=H1(o);if(n===at&&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 Ot(t.segments,i);return qz(e)}function qz(t){if(t.numberOfChildren===1&&t.children[at]){let i=t.children[at];return new Ot(t.segments.concat(i.segments),i.children)}return t}function ta(t){return t instanceof Jo}function W1(t,i,e=null,n=null){let o=G1(t);return $1(o,i,e,n)}function G1(t){let i;function e(r){let a={};for(let c of r.children){let m=e(c);a[c.outlet]=m}let s=new Ot(r.url,a);return r===t&&(i=s),s}let n=e(t.root),o=U1(n);return i??o}function $1(t,i,e,n){let o=t;for(;o.parent;)o=o.parent;if(i.length===0)return q0(o,o,o,e,n);let r=Yz(i);if(r.toRoot())return q0(o,o,new Ot([],{}),e,n);let a=Qz(r,o,t),s=a.processChildren?hd(a.segmentGroup,a.index,r.commands):Y1(a.segmentGroup,a.index,r.commands);return q0(o,a.segmentGroup,s,e,n)}function Xp(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function gd(t){return typeof t=="object"&&t!=null&&t.outlets}function q0(t,i,e,n,o){let r={};n&&Object.entries(n).forEach(([c,m])=>{r[c]=Array.isArray(m)?m.map(f=>`${f}`):`${m}`});let a;t===i?a=e:a=q1(t,i,e);let s=U1(H1(a));return new Jo(s,r,o)}function q1(t,i,e){let n={};return Object.entries(t.children).forEach(([o,r])=>{r===i?n[o]=e:n[o]=q1(r,i,e)}),new Ot(t.segments,n)}var Jp=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Xp(n[0]))throw new Q(4003,!1);let o=n.find(gd);if(o&&o!==F1(n))throw new Q(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Yz(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Jp(!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(([c,m])=>{s[c]=typeof m=="string"?m.split("/"):m}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return typeof r!="string"?[...o,r]:a===0?(r.split("/").forEach((s,c)=>{c==0&&s==="."||(c==0&&s===""?e=!0:s===".."?i++:s!=""&&o.push(s))}),o):[...o,r]},[]);return new Jp(e,i,n)}var yl=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function Qz(t,i,e){if(t.isAbsolute)return new yl(i,!0,0);if(!e)return new yl(i,!1,NaN);if(e.parent===null)return new yl(e,!0,0);let n=Xp(t.commands[0])?0:1,o=e.segments.length-1+n;return Kz(e,o,t.numberOfDoubleDots)}function Kz(t,i,e){let n=t,o=i,r=e;for(;r>o;){if(r-=o,n=n.parent,!n)throw new Q(4005,!1);o=n.segments.length}return new yl(n,!1,o-r)}function Zz(t){return gd(t[0])?t[0].outlets:{[at]:t}}function Y1(t,i,e){if(t??=new Ot([],{}),t.segments.length===0&&t.hasChildren())return hd(t,i,e);let n=Xz(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexr!==at)&&t.children[at]&&t.numberOfChildren===1&&t.children[at].segments.length===0){let r=hd(t.children[at],i,e);return new Ot(t.segments,r.children)}return Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=Y1(t.children[r],i,a))}),Object.entries(t.children).forEach(([r,a])=>{n[r]===void 0&&(o[r]=a)}),new Ot(t.segments,o)}}function Xz(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(gd(s))break;let c=`${s}`,m=n0&&c===void 0)break;if(c&&m&&typeof m=="object"&&m.outlets===void 0){if(!I1(c,m,a))return r;n+=2}else{if(!I1(c,{},a))return r;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function ey(t,i,e){let n=t.segments.slice(0,i),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=ey(new Ot([],{}),0,n))}),i}function T1(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function I1(t,i,e){return t==e.path&&Zo(i,e.parameters)}var Zp="imperative",Mn=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}(Mn||{}),Ni=class{id;url;constructor(i,e){this.id=i,this.url=e}},na=class extends Ni{type=Mn.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}')`}},Xi=class extends Ni{urlAfterRedirects;type=Mn.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Di=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Di||{}),wl=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(wl||{}),Xo=class extends Ni{reason;code;type=Mn.NavigationCancel;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},er=class extends Ni{reason;code;type=Mn.NavigationSkipped;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}},xl=class extends Ni{error;target;type=Mn.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})`}},_d=class extends Ni{urlAfterRedirects;state;type=Mn.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})`}},eh=class extends Ni{urlAfterRedirects;state;type=Mn.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})`}},th=class extends Ni{urlAfterRedirects;state;shouldActivate;type=Mn.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})`}},nh=class extends Ni{urlAfterRedirects;state;type=Mn.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})`}},ih=class extends Ni{urlAfterRedirects;state;type=Mn.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})`}},oh=class{route;type=Mn.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},rh=class{route;type=Mn.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ah=class{snapshot;type=Mn.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},sh=class{snapshot;type=Mn.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},lh=class{snapshot;type=Mn.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ch=class{snapshot;type=Mn.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Dl=class{routerEvent;position;anchor;type=Mn.Scroll;constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},vd=class{},Sl=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function e4(t,i){return t.providers&&!t._injector&&(t._injector=Gc(t.providers,i,`Route: ${t.path}`)),t._injector??i}function xo(t){return t.outlet||at}function t4(t,i){let e=t.filter(n=>xo(n)===i);return e.push(...t.filter(n=>xo(n)!==i)),e}function Sd(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){let e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var dh=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Sd(this.route?.snapshot)??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new os(this.rootInjector)}},os=(()=>{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 dh(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(se(an))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uh=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=ty(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=ty(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=ny(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return ny(i,this._root).map(e=>e.value)}};function ty(t,i){if(t===i.value)return i;for(let e of i.children){let n=ty(t,e);if(n)return n}return null}function ny(t,i){if(t===i.value)return[i];for(let e of i.children){let n=ny(t,e);if(n.length)return n.unshift(i),n}return[]}var Fi=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function bl(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var bd=class extends uh{snapshot;constructor(i,e){super(i),this.snapshot=e,dy(this,i)}toString(){return this.snapshot.toString()}};function Q1(t){let i=n4(t),e=new bt([new Jr("",{})]),n=new bt({}),o=new bt({}),r=new bt({}),a=new bt(""),s=new ke(e,n,r,a,o,at,t,i.root);return s.snapshot=i.root,new bd(new Fi(s,[]),i)}function n4(t){let i={},e={},n={},o="",r=new ts([],i,n,o,e,at,t,null,{});return new yd("",new Fi(r,[]))}var ke=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,c){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(pe(m=>m[Dd]))??ae(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(pe(i=>ns(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(pe(i=>ns(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function mh(t,i,e="emptyOnly"){let n,{routeConfig:o}=t;return i!==null&&(e==="always"||o?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:L(L({},i.params),t.params),data:L(L({},i.data),t.data),resolve:L(L(L(L({},t.data),i.data),o?.data),t._resolvedData)}:n={params:L({},t.params),data:L({},t.data),resolve:L(L({},t.data),t._resolvedData??{})},o&&Z1(o)&&(n.resolve[Dd]=o.title),n}var ts=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Dd]}constructor(i,e,n,o,r,a,s,c,m){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=c,this._resolve=m}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??=ns(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ns(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}')`}},yd=class extends uh{url;constructor(i,e){super(e),this.url=i,dy(this,e)}toString(){return K1(this._root)}};function dy(t,i){i.value._routerState=t,i.children.forEach(e=>dy(t,e))}function K1(t){let i=t.children.length>0?` { ${t.children.map(K1).join(", ")} } `:"";return`${t.value}${i}`}function Y0(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Zo(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Zo(i.params,e.params)||t.paramsSubject.next(e.params),kz(i.url,e.url)||t.urlSubject.next(e.url),Zo(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function iy(t,i){let e=Zo(t.params,i.params)&&Pz(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||iy(t.parent,i.parent))}function Z1(t){return typeof t.title=="string"||t.title===null}var X1=new R(""),Ed=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=at;activateEvents=new k;deactivateEvents=new k;attachEvents=new k;detachEvents=new k;routerOutletData=YS(void 0);parentContexts=p(os);location=p(Rt);changeDetector=p(xe);inputBinder=p(Md,{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 Q(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Q(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Q(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 Q(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new oy(e,s,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:c,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=B({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Be]})}return t})(),oy=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===ke?this.route:i===os?this.childContexts:i===X1?this.outletData:this.parent.get(i,e)}},Md=new R(""),uy=(()=>{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=Ri([n.queryParams,n.params,n.data]).pipe(Dt(([r,a,s],c)=>(s=L(L(L({},r),a),s),c===0?ae(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let a=$M(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=N({token:t,factory:t.\u0275fac})}return t})(),my=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,o){n&1&&T(0,"router-outlet")},dependencies:[Ed],encapsulation:2})}return t})();function py(t){let i=t.children&&t.children.map(py),e=i?Qe(L({},t),{children:i}):L({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==at&&(e.component=my),e}function i4(t,i,e){let n=Cd(t,i._root,e?e._root:void 0);return new bd(n,i)}function Cd(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let o=o4(t,i,e);return new Fi(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=>Cd(t,s)),a}}let n=r4(i.value),o=i.children.map(r=>Cd(t,r));return new Fi(n,o)}}function o4(t,i,e){return i.children.map(n=>{for(let o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return Cd(t,n,o);return Cd(t,n)})}function r4(t){return new ke(new bt(t.url),new bt(t.params),new bt(t.queryParams),new bt(t.fragment),new bt(t.data),t.outlet,t.component,t)}var El=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},J1="ngNavigationCancelingError";function ph(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=ta(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=eT(!1,Di.Redirect);return o.url=e,o.navigationBehaviorOptions=n,o}function eT(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[J1]=!0,e.cancellationCode=i,e}function a4(t){return tT(t)&&ta(t.url)}function tT(t){return!!t&&t[J1]}var s4=(t,i,e,n)=>pe(o=>(new ry(i,o.targetRouterState,o.currentRouterState,e,n).activate(t),o)),ry=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),Y0(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let o=bl(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=bl(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=bl(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=bl(e);i.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],n),this.forwardEvent(new ch(r.value.snapshot))}),i.children.length&&this.forwardEvent(new sh(i.value.snapshot))}activateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(Y0(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),Y0(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)}},hh=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},Cl=class{component;route;constructor(i,e){this.component=i,this.route=e}};function l4(t,i,e){let n=t._root,o=i?i._root:null;return pd(n,o,e,[n.value])}function c4(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function Tl(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!qD(t)?t:i.get(t):n}function pd(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=bl(i);return t.children.forEach(a=>{d4(a,r[a.value.outlet],e,n.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>fd(s,e.getContext(a),o)),o}function d4(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 c=u4(a,r,r.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new hh(n)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?pd(t,i,s?s.children:null,n,o):pd(t,i,e,n,o),c&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new Cl(s.outlet.component,a))}else a&&fd(i,s,o),o.canActivateChecks.push(new hh(n)),r.component?pd(t,null,s?s.children:null,n,o):pd(t,null,e,n,o);return o}function u4(t,i,e){if(typeof e=="function")return e(t,i);switch(e){case"pathParamsChange":return!es(t.url,i.url);case"pathParamsOrQueryParamsChange":return!es(t.url,i.url)||!Zo(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!iy(t,i)||!Zo(t.queryParams,i.queryParams);case"paramsChange":default:return!iy(t,i)}}function fd(t,i,e){let n=bl(t),o=t.value;Object.entries(n).forEach(([r,a])=>{o.component?i?fd(a,i.children.getContext(r),e):fd(a,null,e):fd(a,i,e)}),o.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new Cl(i.outlet.component,o)):e.canDeactivateChecks.push(new Cl(null,o)):e.canDeactivateChecks.push(new Cl(null,o))}function Td(t){return typeof t=="function"}function m4(t){return typeof t=="boolean"}function p4(t){return t&&Td(t.canLoad)}function h4(t){return t&&Td(t.canActivate)}function f4(t){return t&&Td(t.canActivateChild)}function g4(t){return t&&Td(t.canDeactivate)}function _4(t){return t&&Td(t.canMatch)}function nT(t){return t instanceof fo||t?.name==="EmptyError"}var qp=Symbol("INITIAL_VALUE");function Ml(){return Dt(t=>Ri(t.map(i=>i.pipe(wt(1),xt(qp)))).pipe(pe(i=>{for(let e of i)if(e!==!0){if(e===qp)return qp;if(e===!1||v4(e))return e}return!0}),Ke(i=>i!==qp),wt(1)))}function v4(t){return ta(t)||t instanceof El}function b4(t,i){return Jt(e=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return a.length===0&&r.length===0?ae(Qe(L({},e),{guardsResult:!0})):y4(a,n,o,t).pipe(Jt(s=>s&&m4(s)?C4(n,r,t,i):ae(s)),pe(s=>Qe(L({},e),{guardsResult:s})))})}function y4(t,i,e,n){return zt(t).pipe(Jt(o=>E4(o.component,o.route,e,i,n)),cr(o=>o!==!0,!0))}function C4(t,i,e,n){return zt(i).pipe(Vo(o=>Lo(x4(o.route.parent,n),w4(o.route,n),S4(t,o.path,e),D4(t,o.route,e))),cr(o=>o!==!0,!0))}function w4(t,i){return t!==null&&i&&i(new lh(t)),ae(!0)}function x4(t,i){return t!==null&&i&&i(new ah(t)),ae(!0)}function D4(t,i,e){let n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||n.length===0)return ae(!0);let o=n.map(r=>qi(()=>{let a=Sd(i)??e,s=Tl(r,a),c=h4(s)?s.canActivate(i,t):vi(a,()=>s(i,t));return ia(c).pipe(cr())}));return ae(o).pipe(Ml())}function S4(t,i,e){let n=i[i.length-1],r=i.slice(0,i.length-1).reverse().map(a=>c4(a)).filter(a=>a!==null).map(a=>qi(()=>{let s=a.guards.map(c=>{let m=Sd(a.node)??e,f=Tl(c,m),v=f4(f)?f.canActivateChild(n,t):vi(m,()=>f(n,t));return ia(v).pipe(cr())});return ae(s).pipe(Ml())}));return ae(r).pipe(Ml())}function E4(t,i,e,n,o){let r=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!r||r.length===0)return ae(!0);let a=r.map(s=>{let c=Sd(i)??o,m=Tl(s,c),f=g4(m)?m.canDeactivate(t,i,e,n):vi(c,()=>m(t,i,e,n));return ia(f).pipe(cr())});return ae(a).pipe(Ml())}function M4(t,i,e,n){let o=i.canLoad;if(o===void 0||o.length===0)return ae(!0);let r=o.map(a=>{let s=Tl(a,t),c=p4(s)?s.canLoad(i,e):vi(t,()=>s(i,e));return ia(c)});return ae(r).pipe(Ml(),iT(n))}function iT(t){return R_(Ut(i=>{if(typeof i!="boolean")throw ph(t,i)}),pe(i=>i===!0))}function T4(t,i,e,n){let o=i.canMatch;if(!o||o.length===0)return ae(!0);let r=o.map(a=>{let s=Tl(a,t),c=_4(s)?s.canMatch(i,e):vi(t,()=>s(i,e));return ia(c)});return ae(r).pipe(Ml(),iT(n))}var wd=class{segmentGroup;constructor(i){this.segmentGroup=i||null}},xd=class extends Error{urlTree;constructor(i){super(),this.urlTree=i}};function vl(t){return No(new wd(t))}function I4(t){return No(new Q(4e3,!1))}function k4(t){return No(eT(!1,Di.GuardRejected))}var ay=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return ae(n);if(o.numberOfChildren>1||!o.children[at])return I4(`${i.redirectTo}`);o=o.children[at]}}applyRedirectCommands(i,e,n,o,r){if(typeof e!="string"){let s=e,{queryParams:c,fragment:m,routeConfig:f,url:v,outlet:D,params:x,data:M,title:O}=o,K=vi(r,()=>s({params:x,data:M,queryParams:c,fragment:m,routeConfig:f,url:v,outlet:D,title:O}));if(K instanceof Jo)throw new xd(K);e=K}let a=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,n);if(e[0]==="/")throw new xd(a);return a}applyRedirectCreateUrlTree(i,e,n,o){let r=this.createSegmentGroup(i,e.root,n,o);return new Jo(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,c])=>{a[s]=this.createSegmentGroup(i,c,n,o)}),new Ot(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 Q(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}},sy={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function A4(t,i,e,n,o){let r=oT(t,i,e);return r.matched?(n=e4(i,n),T4(n,i,e,o).pipe(pe(a=>a===!0?r:L({},sy)))):ae(r)}function oT(t,i,e){if(i.path==="**")return R4(e);if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?L({},sy):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(i.matcher||O1)(e,t,i);if(!o)return L({},sy);let r={};Object.entries(o.posParams??{}).forEach(([s,c])=>{r[s]=c.path});let a=o.consumed.length>0?L(L({},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 R4(t){return{matched:!0,parameters:t.length>0?F1(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function k1(t,i,e,n){return e.length>0&&F4(t,e,n)?{segmentGroup:new Ot(i,P4(n,new Ot(e,t.children))),slicedSegments:[]}:e.length===0&&N4(t,e,n)?{segmentGroup:new Ot(t.segments,O4(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new Ot(t.segments,t.children),slicedSegments:e}}function O4(t,i,e,n){let o={};for(let r of e)if(gh(t,i,r)&&!n[xo(r)]){let a=new Ot([],{});o[xo(r)]=a}return L(L({},n),o)}function P4(t,i){let e={};e[at]=i;for(let n of t)if(n.path===""&&xo(n)!==at){let o=new Ot([],{});e[xo(n)]=o}return e}function F4(t,i,e){return e.some(n=>gh(t,i,n)&&xo(n)!==at)}function N4(t,i,e){return e.some(n=>gh(t,i,n))}function gh(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function L4(t,i,e){return i.length===0&&!t.children[e]}var ly=class{};function V4(t,i,e,n,o,r,a="emptyOnly"){return new cy(t,i,e,n,o,a,r).recognize()}var B4=31,cy=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,n,o,r,a,s){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new ay(this.urlSerializer,this.urlTree)}noMatchError(i){return new Q(4002,`'${i.segmentGroup}'`)}recognize(){let i=k1(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(i).pipe(pe(({children:e,rootSnapshot:n})=>{let o=new Fi(n,e),r=new yd("",o),a=W1(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){let e=new ts([],Object.freeze({}),Object.freeze(L({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),at,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,i,at,e).pipe(pe(n=>({children:n,rootSnapshot:e})),Rn(n=>{if(n instanceof xd)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof wd?this.noMatchError(n):n}))}processSegmentGroup(i,e,n,o,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(i,e,n,r):this.processSegment(i,e,n,n.segments,o,!0,r).pipe(pe(a=>a instanceof Fi?[a]:[]))}processChildren(i,e,n,o){let r=[];for(let a of Object.keys(n.children))a==="primary"?r.unshift(a):r.push(a);return zt(r).pipe(Vo(a=>{let s=n.children[a],c=t4(e,a);return this.processSegmentGroup(i,c,s,a,o)}),z_((a,s)=>(a.push(...s),a)),Ur(null),j_(),Jt(a=>{if(a===null)return vl(n);let s=rT(a);return j4(s),ae(s)}))}processSegment(i,e,n,o,r,a,s){return zt(e).pipe(Vo(c=>this.processSegmentAgainstRoute(c._injector??i,e,c,n,o,r,a,s).pipe(Rn(m=>{if(m instanceof wd)return ae(null);throw m}))),cr(c=>!!c),Rn(c=>{if(nT(c))return L4(n,o,r)?ae(new ly):vl(n);throw c}))}processSegmentAgainstRoute(i,e,n,o,r,a,s,c){return xo(n)!==a&&(a===at||!gh(o,r,n))?vl(o):n.redirectTo===void 0?this.matchSegmentAgainstRoute(i,o,n,r,a,c):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,r,a,c):vl(o)}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,r,a,s){let{matched:c,parameters:m,consumedSegments:f,positionalParamSegments:v,remainingSegments:D}=oT(e,o,r);if(!c)return vl(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>B4&&(this.allowRedirects=!1));let x=new ts(r,m,Object.freeze(L({},this.urlTree.queryParams)),this.urlTree.fragment,A1(o),xo(o),o.component??o._loadedComponent??null,o,R1(o)),M=mh(x,s,this.paramsInheritanceStrategy);x.params=Object.freeze(M.params),x.data=Object.freeze(M.data);let O=this.applyRedirects.applyRedirectCommands(f,o.redirectTo,v,x,i);return this.applyRedirects.lineralizeSegments(o,O).pipe(Jt(K=>this.processSegment(i,n,e,K.concat(D),a,!1,s)))}matchSegmentAgainstRoute(i,e,n,o,r,a){let s=A4(e,n,o,i,this.urlSerializer);return n.path==="**"&&(e.children={}),s.pipe(Dt(c=>c.matched?(i=n._injector??i,this.getChildConfig(i,n,o).pipe(Dt(({routes:m})=>{let f=n._loadedInjector??i,{parameters:v,consumedSegments:D,remainingSegments:x}=c,M=new ts(D,v,Object.freeze(L({},this.urlTree.queryParams)),this.urlTree.fragment,A1(n),xo(n),n.component??n._loadedComponent??null,n,R1(n)),O=mh(M,a,this.paramsInheritanceStrategy);M.params=Object.freeze(O.params),M.data=Object.freeze(O.data);let{segmentGroup:K,slicedSegments:U}=k1(e,D,x,m);if(U.length===0&&K.hasChildren())return this.processChildren(f,m,K,M).pipe(pe(gt=>new Fi(M,gt)));if(m.length===0&&U.length===0)return ae(new Fi(M,[]));let Xe=xo(n)===r;return this.processSegment(f,m,K,U,Xe?at:r,!0,M).pipe(pe(gt=>new Fi(M,gt instanceof Fi?[gt]:[])))}))):vl(e)))}getChildConfig(i,e,n){return e.children?ae({routes:e.children,injector:i}):e.loadChildren?e._loadedRoutes!==void 0?ae({routes:e._loadedRoutes,injector:e._loadedInjector}):M4(i,e,n,this.urlSerializer).pipe(Jt(o=>o?this.configLoader.loadChildren(i,e).pipe(Ut(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):k4(e))):ae({routes:[],injector:i})}};function j4(t){t.sort((i,e)=>i.value.outlet===at?-1:e.value.outlet===at?1:i.value.outlet.localeCompare(e.value.outlet))}function z4(t){let i=t.value.routeConfig;return i&&i.path===""}function rT(t){let i=[],e=new Set;for(let n of t){if(!z4(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=rT(n.children);i.push(new Fi(n.value,o))}return i.filter(n=>!e.has(n))}function A1(t){return t.data||{}}function R1(t){return t.resolve||{}}function U4(t,i,e,n,o,r){return Jt(a=>V4(t,i,e,n,a.extractedUrl,o,r).pipe(pe(({state:s,tree:c})=>Qe(L({},a),{targetSnapshot:s,urlAfterRedirects:c}))))}function H4(t,i){return Jt(e=>{let{targetSnapshot:n,guards:{canActivateChecks:o}}=e;if(!o.length)return ae(e);let r=new Set(o.map(c=>c.route)),a=new Set;for(let c of r)if(!a.has(c))for(let m of aT(c))a.add(m);let s=0;return zt(a).pipe(Vo(c=>r.has(c)?W4(c,n,t,i):(c.data=mh(c,c.parent,t).resolve,ae(void 0))),Ut(()=>s++),Us(1),Jt(c=>s===a.size?ae(e):_n))})}function aT(t){let i=t.children.map(e=>aT(e)).flat();return[t,...i]}function W4(t,i,e,n){let o=t.routeConfig,r=t._resolve;return o?.title!==void 0&&!Z1(o)&&(r[Dd]=o.title),G4(r,t,i,n).pipe(pe(a=>(t._resolvedData=a,t.data=mh(t,t.parent,e).resolve,null)))}function G4(t,i,e,n){let o=Z0(t);if(o.length===0)return ae({});let r={};return zt(o).pipe(Jt(a=>$4(t[a],i,e,n).pipe(cr(),Ut(s=>{if(s instanceof El)throw ph(new ea,s);r[a]=s}))),Us(1),pe(()=>r),Rn(a=>nT(a)?_n:No(a)))}function $4(t,i,e,n){let o=Sd(i)??n,r=Tl(t,o),a=r.resolve?r.resolve(i,e):vi(o,()=>r(i,e));return ia(a)}function Q0(t){return Dt(i=>{let e=t(i);return e?zt(e).pipe(pe(()=>i)):ae(i)})}var hy=(()=>{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===at);return n}getResolvedTitleForRoute(e){return e.data[Dd]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:()=>p(sT),providedIn:"root"})}return t})(),sT=(()=>{class t extends hy{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)(se(S1))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rs=new R("",{providedIn:"root",factory:()=>({})}),Il=new R(""),_h=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(jM);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ae(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=ia(e.loadComponent()).pipe(pe(cT),Ut(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),Bo(()=>{this.componentLoaders.delete(e)})),o=new jr(n,()=>new z).pipe(Ls());return this.componentLoaders.set(e,o),o}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return ae({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let r=lT(n,this.compiler,e,this.onLoadEndListener).pipe(Bo(()=>{this.childrenLoaders.delete(n)})),a=new jr(r,()=>new z).pipe(Ls());return this.childrenLoaders.set(n,a),a}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lT(t,i,e,n){return ia(t.loadChildren()).pipe(pe(cT),Jt(o=>o instanceof a0||Array.isArray(o)?ae(o):zt(i.compileModuleAsync(o))),pe(o=>{n&&n(t);let r,a,s=!1;return Array.isArray(o)?(a=o,s=!0):(r=o.create(e).injector,a=r.get(Il,[],{optional:!0,self:!0}).flat()),{routes:a.map(py),injector:r}}))}function q4(t){return t&&typeof t=="object"&&"default"in t}function cT(t){return q4(t)?t.default:t}var vh=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:()=>p(Y4),providedIn:"root"})}return t})(),Y4=(()=>{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=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fy=new R(""),gy=new R("");function dT(t,i,e){let n=t.get(gy),o=t.get(he);return t.get(ie).runOutsideAngular(()=>{if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(m=>setTimeout(m));let r,a=new Promise(m=>{r=m}),s=o.startViewTransition(()=>(r(),Q4(t))),{onViewTransitionCreated:c}=n;return c&&vi(t,()=>c({transition:s,from:i,to:e})),a})}function Q4(t){return new Promise(i=>{Ht({read:()=>setTimeout(i)},{injector:t})})}var _y=new R(""),bh=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new z;transitionAbortSubject=new z;configLoader=p(_h);environmentInjector=p(an);destroyRef=p(Yr);urlSerializer=p(is);rootContexts=p(os);location=p(Ko);inputBindingEnabled=p(Md,{optional:!0})!==null;titleStrategy=p(hy);options=p(rs,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(vh);createViewTransition=p(fy,{optional:!0});navigationErrorHandler=p(_y,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>ae(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=o=>this.events.next(new oh(o)),n=o=>this.events.next(new rh(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;this.transitions?.next(Qe(L({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n}))}setupNavigations(e){return this.transitions=new bt(null),this.transitions.pipe(Ke(n=>n!==null),Dt(n=>{let o=!1,r=!1;return ae(n).pipe(Dt(a=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",Di.SupersededByNewNavigation),_n;this.currentTransition=n,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Qe(L({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),c=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&c!=="reload"){let m="";return this.events.next(new er(a.id,this.urlSerializer.serialize(a.rawUrl),m,wl.IgnoredSameUrlNavigation)),a.resolve(!1),_n}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return ae(a).pipe(Dt(m=>(this.events.next(new na(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),m.id!==this.navigationId?_n:Promise.resolve(m))),U4(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Ut(m=>{n.targetSnapshot=m.targetSnapshot,n.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation=Qe(L({},this.currentNavigation),{finalUrl:m.urlAfterRedirects});let f=new _d(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(f)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:m,extractedUrl:f,source:v,restoredState:D,extras:x}=a,M=new na(m,this.urlSerializer.serialize(f),v,D);this.events.next(M);let O=Q1(this.rootComponentType).snapshot;return this.currentTransition=n=Qe(L({},a),{targetSnapshot:O,urlAfterRedirects:f,extras:Qe(L({},x),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,ae(n)}else{let m="";return this.events.next(new er(a.id,this.urlSerializer.serialize(a.extractedUrl),m,wl.IgnoredByUrlHandlingStrategy)),a.resolve(!1),_n}}),Ut(a=>{let s=new eh(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),pe(a=>(this.currentTransition=n=Qe(L({},a),{guards:l4(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),n)),b4(this.environmentInjector,a=>this.events.next(a)),Ut(a=>{if(n.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw ph(this.urlSerializer,a.guardsResult);let s=new th(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s)}),Ke(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",Di.GuardRejected),!1)),Q0(a=>{if(a.guards.canActivateChecks.length!==0)return ae(a).pipe(Ut(s=>{let c=new nh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}),Dt(s=>{let c=!1;return ae(s).pipe(H4(this.paramsInheritanceStrategy,this.environmentInjector),Ut({next:()=>c=!0,complete:()=>{c||this.cancelNavigationTransition(s,"",Di.NoDataFromResolver)}}))}),Ut(s=>{let c=new ih(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}))}),Q0(a=>{let s=c=>{let m=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&m.push(this.configLoader.loadComponent(c.routeConfig).pipe(Ut(f=>{c.component=f}),pe(()=>{})));for(let f of c.children)m.push(...s(f));return m};return Ri(s(a.targetSnapshot.root)).pipe(Ur(null),wt(1))}),Q0(()=>this.afterPreactivation()),Dt(()=>{let{currentSnapshot:a,targetSnapshot:s}=n,c=this.createViewTransition?.(this.environmentInjector,a.root,s.root);return c?zt(c).pipe(pe(()=>n)):ae(n)}),pe(a=>{let s=i4(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=n=Qe(L({},a),{targetRouterState:s}),this.currentNavigation.targetRouterState=s,n}),Ut(()=>{this.events.next(new vd)}),s4(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),wt(1),Ut({next:a=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Xi(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{o=!0}}),Te(this.transitionAbortSubject.pipe(Ut(a=>{throw a}))),Bo(()=>{!o&&!r&&this.cancelNavigationTransition(n,"",Di.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation=null,this.currentTransition=null)}),Rn(a=>{if(this.destroyed)return n.resolve(!1),_n;if(r=!0,tT(a))this.events.next(new Xo(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode)),a4(a)?this.events.next(new Sl(a.url,a.navigationBehaviorOptions)):n.resolve(!1);else{let s=new xl(n.id,this.urlSerializer.serialize(n.extractedUrl),a,n.targetSnapshot??void 0);try{let c=vi(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(c instanceof El){let{message:m,cancellationCode:f}=ph(this.urlSerializer,c);this.events.next(new Xo(n.id,this.urlSerializer.serialize(n.extractedUrl),m,f)),this.events.next(new Sl(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(s),a}catch(c){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(c)}}return _n}))}))}cancelNavigationTransition(e,n,o){let r=new Xo(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=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function K4(t){return t!==Zp}var uT=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:()=>p(Z4),providedIn:"root"})}return t})(),fh=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}},Z4=(()=>{class t extends fh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mT=(()=>{class t{urlSerializer=p(is);options=p(rs,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(Ko);urlHandlingStrategy=p(vh);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Jo;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 Jo?this.urlSerializer.serialize(a):a}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=Q1(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:()=>p(X4),providedIn:"root"})}return t})(),X4=(()=>{class t extends mT{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}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")})})}handleRouterEvent(e,n){e instanceof na?this.updateStateMemento():e instanceof er?this.commitTransition(n):e instanceof _d?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof vd?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Xo&&(e.code===Di.GuardRejected||e.code===Di.NoDataFromResolver)?this.restoreHistory(n):e instanceof xl?this.restoreHistory(n,!0):e instanceof Xi&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:n,id:o}){let{replaceUrl:r,state:a}=n;if(this.location.isCurrentPathEqualTo(e)||r){let s=this.browserPageId,c=L(L({},a),this.generateNgRouterState(o,s));this.location.replaceState(e,"",c)}else{let s=L(L({},a),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(e,"",s)}}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())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yh(t,i){t.events.pipe(Ke(e=>e instanceof Xi||e instanceof Xo||e instanceof xl||e instanceof er),pe(e=>e instanceof Xi||e instanceof er?0:(e instanceof Xo?e.code===Di.Redirect||e.code===Di.SupersededByNewNavigation:!1)?2:1),Ke(e=>e!==2),wt(1)).subscribe(()=>{i()})}var J4={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eU={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Do=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(c0);stateManager=p(mT);options=p(rs,{optional:!0})||{};pendingTasks=p(br);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(bh);urlSerializer=p(is);location=p(Ko);urlHandlingStrategy=p(vh);_events=new z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(uT);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(Il,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(Md,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new be;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(n,r),n instanceof Xo&&n.code!==Di.Redirect&&n.code!==Di.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof Xi)this.navigated=!0;else if(n instanceof Sl){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),c=L({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||K4(o.source)},a);this.scheduleNavigation(s,Zp,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}nU(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortSubject.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),Zp,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,o)=>{this.navigateToSyncWithBrowser(e,o,n)})}navigateToSyncWithBrowser(e,n,o){let r={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=L({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(r.state=c)}let s=this.parseUrl(e);this.scheduleNavigation(s,n,a,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(py),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(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:c}=n,m=c?this.currentUrlTree.fragment:a,f=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":f=L(L({},this.currentUrlTree.queryParams),r);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=r||null}f!==null&&(f=this.removeEmptyProps(f));let v;try{let D=o?o.snapshot:this.routerState.snapshot.root;v=G1(D)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root}return $1(v,e,f,m??null)}navigateByUrl(e,n={skipLocationChange:!1}){let o=ta(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,Zp,null,n)}navigate(e,n={skipLocationChange:!1}){return tU(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,n){let o;if(n===!0?o=L({},J4):n===!1?o=L({},eU):o=n,ta(e))return E1(this.currentUrlTree,e,o);let r=this.parseUrl(e);return E1(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,c,m;a?(s=a.resolve,c=a.reject,m=a.promise):m=new Promise((v,D)=>{s=v,c=D});let f=this.pendingTasks.add();return yh(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(f))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:c,promise:m,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),m.catch(v=>Promise.reject(v))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function tU(t){for(let i=0;i{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new z;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 c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=e.events.subscribe(m=>{m instanceof Xi&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ta(e)?this.routerLinkInput=e:this.routerLinkInput=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 c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let n=this.href===null?null:CE(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(e,n){let o=this.renderer,r=this.el.nativeElement;n!==null?o.setAttribute(r,e,n):o.removeAttribute(r,e)}get urlTree(){return this.routerLinkInput===null?null:ta(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(n){return new(n||t)(y(Do),y(ke),pp("tabindex"),y(It),y(Z),y(wo))};static \u0275dir=B({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,o){n&1&&b("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&ne("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",$],skipLocationChange:[2,"skipLocationChange","skipLocationChange",$],replaceUrl:[2,"replaceUrl","replaceUrl",$],routerLink:"routerLink"},features:[Be]})}return t})();var Id=class{};var pT=(()=>{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(Ke(e=>e instanceof Xi),Vo(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){let o=[];for(let r of n){r.providers&&!r._injector&&(r._injector=Gc(r.providers,e,`Route: ${r.path}`));let a=r._injector??e,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 zt(o).pipe(zr())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let o;n.loadChildren&&n.canLoad===void 0?o=this.loader.loadChildren(e,n):o=ae(null);let r=o.pipe(Jt(a=>a===null?ae(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(n);return zt([r,a]).pipe(zr())}else return r})}static \u0275fac=function(n){return new(n||t)(se(Do),se(an),se(Id),se(_h))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),hT=new R(""),iU=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,n,o,r,a={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=o,this.zone=r,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof na?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Xi?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof er&&e.code===wl.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Dl&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Dl(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){Dp()};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function oU(t){return t.routerState.root}function kd(t,i){return{\u0275kind:t,\u0275providers:i}}function rU(){let t=p(Ie);return i=>{let e=t.get(ni);if(i!==e.components[0])return;let n=t.get(Do),o=t.get(fT);t.get(by)===1&&n.initialNavigation(),t.get(vT,null,lt.Optional)?.setUpPreloading(),t.get(hT,null,lt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var fT=new R("",{factory:()=>new z}),by=new R("",{providedIn:"root",factory:()=>1});function gT(){let t=[{provide:by,useValue:0},p0(()=>{let i=p(Ie);return i.get(x0,Promise.resolve()).then(()=>new Promise(n=>{let o=i.get(Do),r=i.get(fT);yh(o,()=>{n(!0)}),i.get(bh).afterPreactivation=()=>(n(!0),r.closed?ae(void 0):r),o.initialNavigation()}))})];return kd(2,t)}function _T(){let t=[p0(()=>{p(Do).setUpLocationChangeListener()}),{provide:by,useValue:2}];return kd(3,t)}var vT=new R("");function bT(t){return kd(0,[{provide:vT,useExisting:pT},{provide:Id,useExisting:t}])}function yT(){return kd(8,[uy,{provide:Md,useExisting:uy}])}function CT(t){yr("NgRouterViewTransitions");let i=[{provide:fy,useValue:dT},{provide:gy,useValue:L({skipNextTransition:!!t?.skipInitialTransition},t)}];return kd(9,i)}var wT=[Ko,{provide:is,useClass:ea},Do,os,{provide:ke,useFactory:oU,deps:[Do]},_h,[]],Ch=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[wT,[],{provide:Il,multi:!0,useValue:e},[],n?.errorHandler?{provide:_y,useValue:n.errorHandler}:[],{provide:rs,useValue:n||{}},n?.useHash?sU():lU(),aU(),n?.preloadingStrategy?bT(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?cU(n):[],n?.bindToComponentInputs?yT().\u0275providers:[],n?.enableViewTransitions?CT().\u0275providers:[],dU()]}}static forChild(e){return{ngModule:t,providers:[{provide:Il,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();function aU(){return{provide:hT,useFactory:()=>{let t=p(t1),i=p(ie),e=p(rs),n=p(bh),o=p(is);return e.scrollOffset&&t.setOffset(e.scrollOffset),new iU(o,n,t,i,e)}}}function sU(){return{provide:wo,useClass:M0}}function lU(){return{provide:wo,useClass:Rp}}function cU(t){return[t.initialNavigation==="disabled"?_T().\u0275providers:[],t.initialNavigation==="enabledBlocking"?gT().\u0275providers:[]]}var vy=new R("");function dU(){return[{provide:vy,useFactory:rU},{provide:h0,multi:!0,useExisting:vy}]}var wh=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 kl=class{_attachedHost;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}},ri=class extends kl{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(i,e,n,o,r){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=r}},yn=class extends kl{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()}},xh=class extends kl{element;constructor(i){super(),this.element=i instanceof Z?i.nativeElement:i}},Mr=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof ri)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof yn)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof xh)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)}};var as=class extends Mr{outletElement;_appRef;_defaultInjector;_document;constructor(i,e,n,o,r){super(),this.outletElement=i,this._appRef=n,this._defaultInjector=o,this._document=r}attachComponentPortal(i){let e;if(i.viewContainerRef){let n=i.injector||i.viewContainerRef.injector,o=n.get(pr,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let n=this._appRef,o=i.injector||this._defaultInjector||Ie.NULL,r=o.get(an,n.injector);e=Ip(i.component,{elementInjector:o,environmentInjector:r,projectableNodes:i.projectableNodes||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._document.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]}};var yy=(()=>{class t extends yn{constructor(){let e=p(St),n=p(Rt);super(e,n)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[_e]})}return t})();var Kn=(()=>{class t extends Mr{_moduleRef=p(pr,{optional:!0});_document=p(he);_viewContainerRef=p(Rt);_isInitialized=!1;_attachedRef;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 k;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});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=B({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[_e]})}return t})();var Si=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();function ss(t){return t.buttons===0||t.detail===0}function ls(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 Cy;function xT(){if(Cy==null){let t=typeof document<"u"?document.head:null;Cy=!!(t&&(t.createShadowRoot||t.attachShadow))}return Cy}function wy(t){if(xT()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Ji(){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 Bn(t){return t.composedPath?t.composedPath()[0]:t.target}function $t(t,i,e,n,o){let r=parseInt(v0.major),a=parseInt(v0.minor);return r>19||r===19&&a>0||r===0&&a===0?t.listen(i,e,n,o):(i.addEventListener(e,n,o),()=>{i.removeEventListener(e,n,o)})}var xy;try{xy=typeof Intl<"u"&&Intl.v8BreakIterator}catch{xy=!1}var et=(()=>{class t{_platformId=p(Kr);isBrowser=this._platformId?k0(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||xy)&&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=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ad;function DT(){if(Ad==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ad=!0}))}finally{Ad=Ad||!1}return Ad}function oa(t){return DT()?t:!!t.capture}function So(t,i=0){return Dh(t)?Number(t):arguments.length===2?i:0}function Dh(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function ai(t){return t instanceof Z?t.nativeElement:t}var ST=new R("cdk-input-modality-detector-options"),ET={ignoreKeys:[18,17,224,91,16]},MT=650,Dy={passive:!0,capture:!0},TT=(()=>{class t{_platform=p(et);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new bt(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Bn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(ls(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Bn(e)};constructor(){let e=p(ie),n=p(he),o=p(ST,{optional:!0});if(this._options=L(L({},ET),o),this.modalityDetected=this._modality.pipe(ka(1)),this.modalityChanged=this.modalityDetected.pipe(dm()),this._platform.isBrowser){let r=p(hn).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[$t(r,n,"keydown",this._onKeydown,Dy),$t(r,n,"mousedown",this._onMousedown,Dy),$t(r,n,"touchstart",this._onTouchstart,Dy)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rd=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(Rd||{}),IT=new R("cdk-focus-monitor-default-options"),Sh=oa({passive:!0,capture:!0}),Cn=(()=>{class t{_ngZone=p(ie);_platform=p(et);_inputModalityDetector=p(TT);_origin=null;_lastFocusOrigin;_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(he,{optional:!0});_stopInputModalityDetector=new z;constructor(){let e=p(IT,{optional:!0});this._detectionMode=e?.detectionMode||Rd.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=Bn(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=ai(e);if(!this._platform.isBrowser||o.nodeType!==1)return ae();let r=wy(o)||this._getDocument(),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=ai(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=ai(e),a=this._getDocument().activeElement;r===a?this._getClosestElementsInfo(r).forEach(([s,c])=>this._originChanged(s,n,c)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().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===Rd.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===Rd.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?MT:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,n){let o=this._elementInfo.get(n),r=Bn(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,Sh),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Sh)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Te(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,Sh),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Sh),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(Z);_focusMonitor=p(Cn);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new k;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&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var Eh=new WeakMap,yt=(()=>{class t{_appRef;_injector=p(Ie);_environmentInjector=p(an);load(e){let n=this._appRef=this._appRef||this._injector.get(ni),o=Eh.get(n);o||(o={loaders:new Set,refs:[]},Eh.set(n,o),n.onDestroy(()=>{Eh.get(n)?.refs.forEach(r=>r.destroy()),Eh.delete(n)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(Ip(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var eo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({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;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} -`],encapsulation:2,changeDetection:0})}return t})();function Al(t){return Array.isArray(t)?t:[t]}var kT=new Set,cs,RT=(()=>{class t{_platform=p(et);_nonce=p(zc,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):mU}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&uU(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function uU(t,i){if(!kT.has(t))try{cs||(cs=document.createElement("style"),i&&cs.setAttribute("nonce",i),cs.setAttribute("type","text/css"),document.head.appendChild(cs)),cs.sheet&&(cs.sheet.insertRule(`@media ${t} {body{ }}`,0),kT.add(t))}catch(e){console.error(e)}}function mU(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var ds=(()=>{class t{_mediaMatcher=p(RT);_zone=p(ie);_queries=new Map;_destroySubject=new z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return AT(Al(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=AT(Al(e)).map(a=>this._registerQuery(a).observable),r=Ri(o);return r=Lo(r.pipe(wt(1)),r.pipe(ka(1),lr(0))),r.pipe(pe(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:m})=>{s.matches=s.matches||c,s.breakpoints[m]=c}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),r={observable:new Fe(a=>{let s=c=>this._zone.run(()=>a.next(c));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(xt(n),pe(({matches:a})=>({query:e,matches:a})),Te(this._destroySubject)),mql:n};return this._queries.set(e,r),r}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function AT(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function pU(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=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),PT=(()=>{class t{_mutationObserverFactory=p(OT);_observedElements=new Map;_ngZone=p(ie);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=ai(e);return new Fe(o=>{let a=this._observeElement(n).pipe(pe(s=>s.filter(c=>!pU(c))),Ke(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=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),FT=(()=>{class t{_contentObserver=p(PT);_elementRef=p(Z);event=new k;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=So(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(lr(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",$],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Mh=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[OT]})}return t})();var My=(()=>{class t{_platform=p(et);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return fU(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=hU(xU(e));if(n&&(NT(n)===-1||!this.isVisible(n)))return!1;let o=e.nodeName.toLowerCase(),r=NT(e);return e.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!CU(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 wU(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function hU(t){try{return t.frameElement}catch{return null}}function fU(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function gU(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function _U(t){return bU(t)&&t.type=="hidden"}function vU(t){return yU(t)&&t.hasAttribute("href")}function bU(t){return t.nodeName.toLowerCase()=="input"}function yU(t){return t.nodeName.toLowerCase()=="a"}function BT(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function NT(t){if(!BT(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function CU(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function wU(t){return _U(t)?!1:gU(t)||vU(t)||t.hasAttribute("contenteditable")||BT(t)}function xU(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var Ey=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_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?Ht(i,{injector:this._injector}):setTimeout(i)}},Th=(()=>{class t{_checker=p(My);_ngZone=p(ie);_document=p(he);_injector=p(Ie);constructor(){p(yt).load(eo)}create(e,n=!1){return new Ey(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ty=(()=>{class t{_elementRef=p(Z);_focusTrapFactory=p(Th);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){p(et).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=Ji(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",$],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",$]},exportAs:["cdkTrapFocus"],features:[Be]})}return t})(),jT=new R("liveAnnouncerElement",{providedIn:"root",factory:zT});function zT(){return null}var UT=new R("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),DU=0,Pd=(()=>{class t{_ngZone=p(ie);_defaultOptions=p(UT,{optional:!0});_liveElement;_document=p(he);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=p(jT,{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(()=>{this._liveElement.textContent=e,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(et);_hasCheckedHighContrastMode;_document=p(he);_breakpointSubscription;constructor(){this._breakpointSubscription=p(ds).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return ra.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 ra.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return ra.BLACK_ON_WHITE}return ra.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(Sy,LT,VT),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===ra.BLACK_ON_WHITE?e.add(Sy,LT):n===ra.WHITE_ON_BLACK&&e.add(Sy,VT)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),us=(()=>{class t{constructor(){p(Ih)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[Mh]})}return t})();function Iy(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function fn(t){return t==null?"":typeof t=="string"?t:`${t}px`}var SU=new R("cdk-dir-doc",{providedIn:"root",factory:EU});function EU(){return p(he)}var MU=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function HT(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?MU.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var Pt=(()=>{class t{value="ltr";change=new k;constructor(){let e=p(SU,{optional:!0});if(e){let n=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.value=HT(n||o||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Eo=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(Eo||{}),kh,ms;function Ah(){if(ms==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return ms=!1,ms;if("scrollBehavior"in document.documentElement.style)ms=!0;else{let t=Element.prototype.scrollTo;t?ms=!/\{\s*\[native code\]\s*\}/.test(t.toString()):ms=!1}}return ms}function Rl(){if(typeof document!="object"||!document)return Eo.NORMAL;if(kh==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),kh=Eo.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,kh=t.scrollLeft===0?Eo.NEGATED:Eo.INVERTED),t.remove()}return kh}var aa=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();var ps=class{};function Fd(t){return t&&typeof t.connect=="function"&&!(t instanceof jr)}var sa=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t}(sa||{}),Ol=new R("_ViewRepeater");var TU=20,Pl=(()=>{class t{_ngZone=p(ie);_platform=p(et);_renderer=p(hn).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=TU){return this._platform.isBrowser?new Fe(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=e>0?this._scrolled.pipe(cm(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):ae()}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(Ke(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=ai(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=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nd=(()=>{class t{elementRef=p(Z);scrollDispatcher=p(Pl);ngZone=p(ie);dir=p(Pt,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new z;_renderer=p(It);_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&&Rl()!=Eo.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),Rl()==Eo.INVERTED?e.left=e.right:Rl()==Eo.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;Ah()?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&&Rl()==Eo.INVERTED?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&Rl()==Eo.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=B({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),IU=20,Ei=(()=>{class t{_platform=p(et);_listeners;_viewportSize;_change=new z;_document=p(he,{optional:!0});constructor(){let e=p(ie),n=p(hn).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=IU){return e>0?this._change.pipe(cm(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=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Li=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})(),Ld=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[aa,Li,aa,Li]})}return t})();var ky={},ut=(()=>{class t{_appId=p($a);getId(e){return this._appId!=="ng"&&(e+=this._appId),ky.hasOwnProperty(e)||(ky[e]=0),`${e}${ky[e]++}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Et(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var GT=Ah(),Rh=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=fn(-this._previousScrollPosition.left),i.style.top=fn(-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"),GT&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),GT&&(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}};var Oh=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(Ke(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())}},Vd=class{enable(){}disable(){}attach(){}};function Ay(t,i){return i.some(e=>{let n=t.bottome.bottom,r=t.righte.right;return n||o||r||a})}function $T(t,i){return i.some(e=>{let n=t.tope.bottom,r=t.lefte.right;return n||o||r||a})}var Ph=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();Ay(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}},XT=(()=>{class t{_scrollDispatcher=p(Pl);_viewportRuler=p(Ei);_ngZone=p(ie);_document=p(he);constructor(){}noop=()=>new Vd;close=e=>new Oh(this._scrollDispatcher,this._ngZone,this._viewportRuler,e);block=()=>new Rh(this._viewportRuler,this._document);reposition=e=>new Ph(this._scrollDispatcher,this._viewportRuler,this._ngZone,e);static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),si=class{positionStrategy;scrollStrategy=new Vd;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(i){if(i){let e=Object.keys(i);for(let n of e)i[n]!==void 0&&(this[n]=i[n])}}};var Fh=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var JT=(()=>{class t{_attachedOverlays=[];_document=p(he);_isAttached;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()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),eI=(()=>{class t extends JT{_ngZone=p(ie);_renderer=p(hn).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--)if(n[o]._keydownEvents.observers.length>0){this._ngZone.run(()=>n[o]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),tI=(()=>{class t extends JT{_platform=p(et);_ngZone=p(ie);_renderer=p(hn).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let n=this._document.body,o={capture:!0};this._cleanups=this._ngZone.runOutsideAngular(()=>[$t(this._renderer,n,"pointerdown",this._pointerDownListener,o),$t(this._renderer,n,"click",this._clickListener,o),$t(this._renderer,n,"auxclick",this._clickListener,o),$t(this._renderer,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=Bn(e)};_clickListener=e=>{let n=Bn(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];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(qT(s.overlayElement,n)||qT(s.overlayElement,o))break;let c=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(e)):c.next(e)}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qT(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 nI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({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;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll} -`],encapsulation:2,changeDetection:0})}return t})(),Lh=(()=>{class t{_platform=p(et);_containerElement;_document=p(he);_styleLoader=p(yt);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||Iy()){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()}},fs=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=be.EMPTY;_backdropRef=null;_previousHostParent;_keydownEvents=new z;_outsidePointerEvents=new z;_renders=new z;_afterRenderRef;_afterNextRenderRef;constructor(i,e,n,o,r,a,s,c,m,f=!1,v,D){this._portalOutlet=i,this._host=e,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=s,this._location=c,this._outsideClickDispatcher=m,this._animationsDisabled=f,this._injector=v,this._renderer=D,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy,this._afterRenderRef=xi(()=>qa(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Ht(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof 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._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){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._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=L(L({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Qe(L({},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=fn(this._config.width),i.height=fn(this._config.height),i.minWidth=fn(this._config.minWidth),i.minHeight=fn(this._config.minHeight),i.maxWidth=fn(this._config.maxWidth),i.maxHeight=fn(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Ry(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._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._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=Al(e||[]).filter(r=>!!r);o.length&&(n?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let i=this._renders.pipe(Te(_t(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),i.unsubscribe())})})}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},YT="cdk-overlay-connected-position-bounding-box",kU=/([A-Za-z%]+)$/,Fl=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_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;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new z;_resizeSubscription=be.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;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(YT),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._overlayContainer.getContainerElement().getBoundingClientRect();let i=this._originRect,e=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[],a;for(let s of this._preferredPositions){let c=this._getOriginPoint(i,o,s),m=this._getOverlayPoint(c,e,s),f=this._getOverlayFit(m,e,n,s);if(f.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,c);return}if(this._canFitWithFlexibleDimensions(f,m,n)){r.push({position:s,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,s)});continue}(!a||a.overlayFit.visibleAreac&&(c=f,s=m)}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&&hs(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(YT),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;if(i){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,e)}else 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}_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=KT(e),{x:a,y:s}=i,c=this._getOffset(o,"x"),m=this._getOffset(o,"y");c&&(a+=c),m&&(s+=m);let f=0-a,v=a+r.width-n.width,D=0-s,x=s+r.height-n.height,M=this._subtractOverflows(r.width,f,v),O=this._subtractOverflows(r.height,D,x),K=M*O;return{visibleArea:K,isCompletelyWithinViewport:r.width*r.height===K,fitsInViewportVertically:O===r.height,fitsInViewportHorizontally:M==r.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let o=n.bottom-e.y,r=n.right-e.x,a=QT(this._overlayRef.getConfig().minHeight),s=QT(this._overlayRef.getConfig().minWidth),c=i.fitsInViewportVertically||a!=null&&a<=o,m=i.fitsInViewportHorizontally||s!=null&&s<=r;return c&&m}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=KT(e),r=this._viewportRect,a=Math.max(i.x+o.width-r.width,0),s=Math.max(i.y+o.height-r.height,0),c=Math.max(r.top-n.top-i.y,0),m=Math.max(r.left-n.left-i.x,0),f=0,v=0;return o.width<=r.width?f=m||-a:f=i.xM&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-M/2)}let c=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,m=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,f,v,D;if(m)D=n.width-i.x+this._viewportMargin*2,f=i.x-this._viewportMargin;else if(c)v=i.x,f=n.right-i.x;else{let x=Math.min(n.right-i.x+n.left,i.x),M=this._lastBoundingBoxSize.width;f=x*2,v=i.x-x,f>M&&!this._isInitialRender&&!this._growAfterOpen&&(v=i.x-M/2)}return{top:a,left:v,bottom:s,right:D,width:f,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=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.height=fn(n.height),o.top=fn(n.top),o.bottom=fn(n.bottom),o.width=fn(n.width),o.left=fn(n.left),o.right=fn(n.right),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=fn(r)),a&&(o.maxWidth=fn(a))}this._lastBoundingBoxSize=n,hs(this._boundingBox.style,o)}_resetBoundingBoxStyles(){hs(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){hs(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 f=this._viewportRuler.getViewportScrollPosition();hs(n,this._getExactOverlayY(e,i,f)),hs(n,this._getExactOverlayX(e,i,f))}else n.position="static";let s="",c=this._getOffset(e,"x"),m=this._getOffset(e,"y");c&&(s+=`translateX(${c}px) `),m&&(s+=`translateY(${m}px)`),n.transform=s.trim(),a.maxHeight&&(o?n.maxHeight=fn(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=fn(a.maxWidth):r&&(n.maxWidth="")),hs(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=fn(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=fn(r.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:$T(i,n),isOriginOutsideView:Ay(i,n),isOverlayClipped:$T(e,n),isOverlayOutsideView:Ay(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._viewportMargin,left:n.left+this._viewportMargin,right:n.left+i-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:i-2*this._viewportMargin,height:e-2*this._viewportMargin}}_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&&Al(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=[])}_getOriginRect(){let i=this._origin;if(i instanceof Z)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}}};function hs(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function QT(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(kU);return!e||e==="px"?parseFloat(i):null}return t||null}function KT(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 AU(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var ZT="cdk-global-overlay-wrapper",Nh=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(ZT),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,c=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),m=(r==="100%"||r==="100vh")&&(!s||s==="100%"||s==="100vh"),f=this._xPosition,v=this._xOffset,D=this._overlayRef.getConfig().direction==="rtl",x="",M="",O="";c?O="flex-start":f==="center"?(O="center",D?M=v:x=v):D?f==="left"||f==="end"?(O="flex-end",x=v):(f==="right"||f==="start")&&(O="flex-start",M=v):f==="left"||f==="start"?(O="flex-start",x=v):(f==="right"||f==="end")&&(O="flex-end",M=v),i.position=this._cssPosition,i.marginLeft=c?"0":x,i.marginTop=m?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=c?"0":M,e.justifyContent=O,e.alignItems=m?"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(ZT),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},iI=(()=>{class t{_viewportRuler=p(Ei);_document=p(he);_platform=p(et);_overlayContainer=p(Lh);constructor(){}global(){return new Nh}flexibleConnectedTo(e){return new Fl(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kt=(()=>{class t{scrollStrategies=p(XT);_overlayContainer=p(Lh);_positionBuilder=p(iI);_keyboardDispatcher=p(eI);_injector=p(Ie);_ngZone=p(ie);_document=p(he);_directionality=p(Pt);_location=p(Ko);_outsideClickDispatcher=p(tI);_animationsModuleType=p(tt,{optional:!0});_idGenerator=p(ut);_renderer=p(hn).createRenderer(null,null);_appRef;_styleLoader=p(yt);constructor(){}create(e){this._styleLoader.load(nI);let n=this._createHostElement(),o=this._createPaneElement(n),r=this._createPortalOutlet(o),a=new si(e);return a.direction=a.direction||this._directionality.value,new fs(r,n,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(an),this._renderer)}position(){return this._positionBuilder}_createPaneElement(e){let n=this._document.createElement("div");return n.id=this._idGenerator.getId("cdk-overlay-"),n.classList.add("cdk-overlay-pane"),e.appendChild(n),n}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(ni)),new as(e,null,this._appRef,this._injector,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),RU=[{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"}],oI=new R("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(kt);return()=>t.scrollStrategies.reposition()}}),Nl=(()=>{class t{elementRef=p(Z);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),Vh=(()=>{class t{_overlay=p(kt);_dir=p(Pt,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=be.EMPTY;_attachSubscription=be.EMPTY;_detachSubscription=be.EMPTY;_positionSubscription=be.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=p(oI);_disposeOnNavigation=!1;_ngZone=p(ie);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;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new k;positionChange=new k;attach=new k;detach=new k;overlayKeydown=new k;overlayOutsideClick=new k;constructor(){let e=p(St),n=p(Rt);this._templatePortal=new yn(e,n),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this.width,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=RU);let e=this._overlayRef=this._overlay.create(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&&!Et(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),r=Bn(n);(!o||o!==r&&!o.contains(r))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new si({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(n.width=this.width),(this.height||this.height===0)&&(n.height=this.height),(this.minWidth||this.minWidth===0)&&(n.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(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)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Nl?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Nl?this.origin.elementRef.nativeElement:this.origin instanceof Z?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(H_(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({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",$],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",$],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",$],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",$],push:[2,"cdkConnectedOverlayPush","push",$],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",$]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Be]})}return t})();function OU(t){return()=>t.scrollStrategies.reposition()}var PU={provide:oI,deps:[kt],useFactory:OU},jn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[kt,PU],imports:[aa,Si,Ld,Ld]})}return t})();function FU(t,i){}var la=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;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;componentFactoryResolver;providers;container;templateContext};var Py=(()=>{class t extends Mr{_elementRef=p(Z);_focusTrapFactory=p(Th);_config;_interactivityChecker=p(My);_ngZone=p(ie);_overlayRef=p(fs);_focusMonitor=p(Cn);_renderer=p(It);_changeDetectorRef=p(xe);_injector=p(Ie);_platform=p(et);_document=p(he,{optional:!0});_portalOutlet;_focusTrapped=new z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=p(la,{optional:!0})||new la,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._handleBackdropClicks(),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||Ht(()=>{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=Ji(),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&&this._elementRef.nativeElement.focus(e)}_containsFocus(){let e=this._elementRef.nativeElement,n=Ji();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Ji()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&me(Kn,7),n&2){let r;q(r=Y())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){n&2&&ne("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:[_e],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){n&1&&E(0,FU,0,0,"ng-template",0)},dependencies:[Kn],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} -`],encapsulation:2})}return t})(),Bd=class{overlayRef;config;componentInstance;componentRef;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&&!Et(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=i.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(i,e){if(this.containerInstance){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}},NU=new R("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=p(kt);return()=>t.scrollStrategies.block()}}),LU=new R("DialogData"),VU=new R("DefaultDialogConfig");var Fy=(()=>{class t{_overlay=p(kt);_injector=p(Ie);_defaultOptions=p(VU,{optional:!0});_parentDialog=p(t,{optional:!0,skipSelf:!0});_overlayContainer=p(Lh);_idGenerator=p(ut);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;_ariaHiddenElements=new Map;_scrollStrategy=p(NU);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=qi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(xt(void 0)));constructor(){}open(e,n){let o=this._defaultOptions||new la;n=L(L({},o),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let r=this._getOverlayConfig(n),a=this._overlay.create(r),s=new Bd(a,n),c=this._attachContainer(a,s,n);if(s.containerInstance=c,!this.openDialogs.length){let m=this._overlayContainer.getContainerElement();c._focusTrapped?c._focusTrapped.pipe(wt(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(m)}):this._hideNonDialogContentFromAssistiveTechnology(m)}return this._attachDialogContent(e,s,c,n),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){Oy(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){Oy(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),Oy(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new si({positionStrategy:e.positionStrategy||this._overlay.position().global().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});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,o){let r=o.injector||o.viewContainerRef?.injector,a=[{provide:la,useValue:o},{provide:Bd,useValue:n},{provide:fs,useValue:e}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=Py;let c=new ri(s,o.viewContainerRef,Ie.create({parent:r||this._injector,providers:a}));return e.attach(c).instance}_attachDialogContent(e,n,o,r){if(e instanceof St){let a=this._createInjector(r,n,o,void 0),s={$implicit:r.data,dialogRef:n};r.templateContext&&(s=L(L({},s),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),o.attachTemplatePortal(new yn(e,null,s,a))}else{let a=this._createInjector(r,n,o,this._injector),s=o.attachComponentPortal(new ri(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:LU,useValue:e.data},{provide:Bd,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(Pt,null,{optional:!0}))&&s.push({provide:Pt,useValue:{value:e.direction,change:ae()}}),Ie.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")&&(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=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Oy(t,i){let e=t.length;for(;e--;)i(t[e])}var rI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[Fy],imports:[jn,Si,us,Si]})}return t})();function Vi(t){return t!=null&&`${t}`!="false"}function aI(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 BU=200,Bh=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:BU;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(Ut(e=>this._pressedLetters.push(e)),lr(i),Ke(()=>this._pressedLetters.length>0),pe(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;ni.disabled;constructor(i,e){this._items=i,i instanceof Qi?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):Qr(i)&&(this._effectRef=Yc(()=>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 Bh(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=n,this._typeahead?.setCurrentSelectedItemIndex(n))}}};var gs=class extends Ll{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var Tr=class extends Ll{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};var cI=" ";function jl(t,i,e){let n=Uh(t,i);e=e.trim(),!n.some(o=>o.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(cI)))}function ca(t,i,e){let n=Uh(t,i);e=e.trim();let o=n.filter(r=>r!==e);o.length?t.setAttribute(i,o.join(cI)):t.removeAttribute(i)}function Uh(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var dI="cdk-describedby-message",zh="cdk-describedby-host",Ly=0,Hh=(()=>{class t{_platform=p(et);_document=p(he);_messageRegistry=new Map;_messagesContainer=null;_id=`${Ly++}`;constructor(){p(yt).load(eo),this._id=p($a)+"-"+Ly++}describe(e,n,o){if(!this._canBeDescribed(e,n))return;let r=Ny(n,o);typeof n!="string"?(lI(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=Ny(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(`[${zh}="${this._id}"]`);for(let n=0;no.indexOf(dI)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let o=this._messageRegistry.get(n);jl(e,"aria-describedby",o.messageElement.id),e.setAttribute(zh,this._id),o.referenceCount++}_removeMessageReference(e,n){let o=this._messageRegistry.get(n);o.referenceCount--,ca(e,"aria-describedby",o.messageElement.id),e.removeAttribute(zh)}_isElementDescribedByMessage(e,n){let o=Uh(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=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ny(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function lI(t,i){t.id||(t.id=`${dI}-${i}-${Ly++}`)}var fe=(()=>{class t{constructor(){p(Ih)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[aa,aa]})}return t})();function jU(t,i){}var Hd=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;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;componentFactoryResolver;enterAnimationDuration;exitAnimationDuration},Vy="mdc-dialog--open",uI="mdc-dialog--opening",mI="mdc-dialog--closing",zU=150,UU=75,fI=(()=>{class t extends Py{_animationMode=p(tt,{optional:!0});_animationStateChanged=new k;_animationsEnabled=this._animationMode!=="NoopAnimations";_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?hI(this._config.enterAnimationDuration)??zU:0;_exitAnimationDuration=this._animationsEnabled?hI(this._config.exitAnimationDuration)??UU:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(pI,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(uI,Vy)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Vy),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Vy),this._animationsEnabled?(this._hostElement.style.setProperty(pI,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(mI)),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(uI,mI)}_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=nt(t)))(o||t)}})();static \u0275cmp=S({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(bn("id",o._config.id),ne("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),ee("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},features:[_e],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&&(l(0,"div",0)(1,"div",1),E(2,jU,0,0,"ng-template",2),d()())},dependencies:[Kn],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents} -`],encapsulation:2})}return t})(),pI="--mat-dialog-transition-duration";function hI(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?So(t.substring(0,t.length-2)):t.endsWith("s")?So(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var Ud=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(Ud||{}),Oe=class{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new z;_beforeClosed=new z;_result;_closeFallbackTimeout;_state=Ud.OPEN;_closeInteractionType;constructor(i,e,n){this._ref=i,this._containerInstance=n,this.disableClose=e.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(Ke(o=>o.state==="opened"),wt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(Ke(o=>o.state==="closed"),wt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),_t(this.backdropClick(),this.keydownEvents().pipe(Ke(o=>o.keyCode===27&&!this.disableClose&&!Et(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),By(this,o.type==="keydown"?"keyboard":"mouse"))})}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe(Ke(e=>e.state==="closing"),wt(1)).subscribe(e=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=Ud.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=Ud.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function By(t,i,e){return t._closeInteractionType=i,t.close(e)}var ze=new R("MatMdcDialogData"),gI=new R("mat-mdc-dialog-default-options"),_I=new R("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(kt);return()=>t.scrollStrategies.block()}});var zl=(()=>{class t{_overlay=p(kt);_defaultOptions=p(gI,{optional:!0});_scrollStrategy=p(_I);_parentDialog=p(t,{optional:!0,skipSelf:!0});_idGenerator=p(ut);_dialog=p(Fy);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;dialogConfigClass=Hd;_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=qi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(xt(void 0)));constructor(){this._dialogRefConstructor=Oe,this._dialogContainerType=fI,this._dialogDataToken=ze}open(e,n){let o;n=L(L({},this._defaultOptions||new Hd),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let r=this._dialog.open(e,Qe(L({},n),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:la,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(a,s,c)=>(o=new this._dialogRefConstructor(a,n,c),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:c},{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=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jt=(()=>{class t{dialogRef=p(Oe,{optional:!0});_elementRef=p(Z);_dialog=p(zl);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=bI(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){By(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){n&1&&b("click",function(a){return o._onButtonClick(a)}),n&2&&ne("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:[Be]})}return t})(),vI=(()=>{class t{_dialogRef=p(Oe,{optional:!0});_elementRef=p(Z);_dialog=p(zl);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=bI(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=B({type:t})}return t})(),$e=(()=>{class t extends vI{id=p(ut).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=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&bn("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[_e]})}return t})(),qe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[uM([Nd])]})}return t})(),Ye=(()=>{class t extends vI{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({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&&ee("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:[_e]})}return t})();function bI(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 jy=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[zl],imports:[rI,jn,Si,fe,fe]})}return t})();var yI,CI=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],wI=[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 xI=t=>{let i=[];return t.forEach(e=>{i.push(e.substring(0,3))}),i},da=(t,i,e)=>(typeof i>"u"&&(i=new Date),_s(t,i,e));var _s=(t,i,e,n)=>{n=n||{},i=i||new Date;let o=e||GU;o.formats=o.formats||{};let r=i.getTime();return(n.utc||typeof n.timezone=="number")&&(i=HU(i)),typeof n.timezone=="number"&&(i=new Date(i.getTime()+n.timezone*6e4)),t.replace(/%([-_0]?.)/g,(a,s)=>{let c,m,f,v,D,x,M,O;if(f=null,D=null,s.length===2){if(f=s[0],f==="-")D="";else if(f==="_")D=" ";else if(f==="0")D="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 di(Math.floor(i.getFullYear()/100),D);case"D":return _s(o.formats.D||"%m/%d/%y",i,o);case"d":return di(i.getDate(),D);case"e":return i.getDate();case"F":return _s(o.formats.F||"%Y-%m-%d",i,o);case"H":return di(i.getHours(),D);case"h":return o.shortMonths[i.getMonth()];case"I":return di(DI(i),D);case"j":return M=new Date(i.getFullYear(),0,1),c=Math.ceil((i.getTime()-M.getTime())/(1e3*60*60*24)),di(c,3);case"k":return di(i.getHours(),D===void 0?" ":D);case"L":return di(Math.floor(r%1e3),3);case"l":return di(DI(i),D===void 0?" ":D);case"M":return di(i.getMinutes(),D);case"m":return di(i.getMonth()+1,D);case"n":return` -`;case"o":return String(i.getDate())+WU(i.getDate());case"P":return"";case"p":return"";case"R":return _s(o.formats.R||"%H:%M",i,o);case"r":return _s(o.formats.r||"%I:%M:%S %p",i,o);case"S":return di(i.getSeconds(),D);case"s":return Math.floor(r/1e3);case"T":return _s(o.formats.T||"%H:%M:%S",i,o);case"t":return" ";case"U":return di(SI(i,"sunday"),D);case"u":return m=i.getDay(),m===0?7:m;case"v":return _s(o.formats.v||"%e-%b-%Y",i,o);case"W":return di(SI(i,"monday"),D);case"w":return i.getDay();case"Y":return i.getFullYear();case"y":return O=String(i.getFullYear()),O.slice(O.length-2);case"Z":return n.utc?"GMT":(x=i.toString().match(/\((\w+)\)/),x&&x[1]||"");case"z":return n.utc?"+0000":(v=typeof n.timezone=="number"?n.timezone:-i.getTimezoneOffset(),(v<0?"-":"+")+di(Math.abs(v/60))+di(v%60));default:return s}})},HU=t=>{let i=(t.getTimezoneOffset()||0)*6e4;return new Date(t.getTime()+i)},di=(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},WU=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"},SI=(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)},zy=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}}),Un=(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=da(zy(o),new Date(i*1e3))}return n},EI=t=>({1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"})[t]||"OTHER",Uy=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()===""),MI=t=>t===""||t===null||t===void 0,Wh=t=>t==="yes"||t===!0||t==="true"||t===1,GU={days:CI,shortDays:xI(CI),months:wI,shortMonths:xI(wI),AM:"AM",PM:"PM",am:"am",pm:"pm"},Mo=(t,i)=>{let e;if(t instanceof Promise)e=t;else if(t instanceof qt)e=t;else{if(i)return rm(t.pipe(V_(i)));e=rm(t)}return e},qt=class{static{yI=Symbol.toStringTag}constructor(){this[yI]="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 Ul,TI=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Hy(){if(Ul)return Ul;if(typeof document!="object"||!document)return Ul=new Set(TI),Ul;let t=document.createElement("input");return Ul=new Set(TI.filter(i=>(t.setAttribute("type",i),t.type===i))),Ul}var io=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}(io||{}),Wy=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=io.HIDDEN;constructor(i,e,n,o=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},II=oa({passive:!0,capture:!0}),Gy=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,II)})}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,II)))}_delegateEventHandler=i=>{let e=Bn(i);e&&this._events.get(i.type)?.forEach((n,o)=>{(o===e||o.contains(e))&&n.forEach(r=>r.handleEvent(i))})}},Wd={enterDuration:225,exitDuration:150},$U=800,kI=oa({passive:!0,capture:!0}),AI=["mousedown","touchstart"],RI=["mouseup","mouseleave","touchend","touchcancel"],qU=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({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}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} -`],encapsulation:2,changeDetection:0})}return t})(),Gd=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new Gy;constructor(i,e,n,o,r){this._target=i,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=ai(n)),r&&r.get(yt).load(qU)}fadeInRipple(i,e,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=L(L({},Wd),n.animation);n.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);let a=n.radius||YU(i,e,o),s=i-o.left,c=e-o.top,m=r.enterDuration,f=document.createElement("div");f.classList.add("mat-ripple-element"),f.style.left=`${s-a}px`,f.style.top=`${c-a}px`,f.style.height=`${a*2}px`,f.style.width=`${a*2}px`,n.color!=null&&(f.style.backgroundColor=n.color),f.style.transitionDuration=`${m}ms`,this._containerElement.appendChild(f);let v=window.getComputedStyle(f),D=v.transitionProperty,x=v.transitionDuration,M=D==="none"||x==="0s"||x==="0s, 0s"||o.width===0&&o.height===0,O=new Wy(this,f,n,M);f.style.transform="scale3d(1, 1, 1)",O.state=io.FADING_IN,n.persistent||(this._mostRecentTransientRipple=O);let K=null;return!M&&(m||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let U=()=>{K&&(K.fallbackTimer=null),clearTimeout(gt),this._finishRippleTransition(O)},Xe=()=>this._destroyRipple(O),gt=setTimeout(Xe,m+100);f.addEventListener("transitionend",U),f.addEventListener("transitioncancel",Xe),K={onTransitionEnd:U,onTransitionCancel:Xe,fallbackTimer:gt}}),this._activeRipples.set(O,K),(M||!m)&&this._finishRippleTransition(O),O}fadeOutRipple(i){if(i.state===io.FADING_OUT||i.state===io.HIDDEN)return;let e=i.element,n=L(L({},Wd),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=io.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=ai(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,AI.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(()=>{RI.forEach(e=>{this._triggerElement.addEventListener(e,this,kI)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===io.FADING_IN?this._startFadeOutTransition(i):i.state===io.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=io.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=io.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=ss(i),n=this._lastTouchStartEvent&&Date.now(){let e=i.state===io.VISIBLE||i.config.terminateOnPointerUp&&i.state===io.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(AI.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(RI.forEach(e=>i.removeEventListener(e,this,kI)),this._pointerUpEventsRegistered=!1))}};function YU(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 Hl=new R("mat-ripple-global-options"),Bi=(()=>{class t{_elementRef=p(Z);_animationMode=p(tt,{optional:!0});color;unbounded;centered;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(ie),n=p(et),o=p(Hl,{optional:!0}),r=p(Ie);this._globalOptions=o||{},this._rippleRenderer=new Gd(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:L(L(L({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,n=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,L(L({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,L(L({},this.rippleConfig),e))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&ee("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 QU={capture:!0},KU=["focus","mousedown","mouseenter","touchstart"],$y="mat-ripple-loader-uninitialized",qy="mat-ripple-loader-class-name",OI="mat-ripple-loader-centered",Gh="mat-ripple-loader-disabled",$h=(()=>{class t{_document=p(he);_animationMode=p(tt,{optional:!0});_globalRippleOptions=p(Hl,{optional:!0});_platform=p(et);_ngZone=p(ie);_injector=p(Ie);_eventCleanups;_hosts=new Map;constructor(){let e=p(hn).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>KU.map(n=>$t(e,this._document,n,this._onInteraction,QU)))}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(e,n){e.setAttribute($y,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute(qy))&&e.setAttribute(qy,n.className||""),n.centered&&e.setAttribute(OI,""),n.disabled&&e.setAttribute(Gh,"")}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(Gh,""):e.removeAttribute(Gh)}_onInteraction=e=>{let n=Bn(e);if(n instanceof HTMLElement){let o=n.closest(`[${$y}="${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(qy)),e.append(n);let o=this._animationMode==="NoopAnimations",r=this._globalRippleOptions,a=o?0:r?.animation?.enterDuration??Wd.enterDuration,s=o?0:r?.animation?.exitDuration??Wd.exitDuration,c={rippleDisabled:o||r?.disabled||e.hasAttribute(Gh),rippleConfig:{centered:e.hasAttribute(OI),terminateOnPointerUp:r?.terminateOnPointerUp,animation:{enterDuration:a,exitDuration:s}}},m=new Gd(c,this._ngZone,n,this._platform,this._injector),f=!c.rippleDisabled;f&&m.setupTriggerEvents(e),this._hosts.set(e,{target:c,renderer:m,hasSetUpEvents:f}),e.removeAttribute($y)}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=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var gn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} -`],encapsulation:2,changeDetection:0})}return t})();var PI=["mat-icon-button",""],FI=["*"],ZU=`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1} -`,XU=`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} -`,JU=new R("MAT_BUTTON_CONFIG");var eH=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],qh=(()=>{class t{_elementRef=p(Z);_ngZone=p(ie);_animationMode=p(tt,{optional:!0});_focusMonitor=p(Cn);_rippleLoader=p($h);_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;constructor(){p(yt).load(gn);let e=p(JU,{optional:!0}),n=this._elementRef.nativeElement,o=n.classList;this.disabledInteractive=e?.disabledInteractive??!1,this.color=e?.color??null,this._rippleLoader?.configureRipple(n,{className:"mat-mdc-button-ripple"});for(let{attribute:r,mdcClasses:a}of eH)n.hasAttribute(r)&&o.add(...a)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){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.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",$],disabled:[2,"disabled","disabled",$],ariaDisabled:[2,"aria-disabled","ariaDisabled",$],disabledInteractive:[2,"disabledInteractive","disabledInteractive",$]}})}return t})();var Yy=(()=>{class t extends qh{_renderer=p(It);_cleanupClick;tabIndex;ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._elementRef.nativeElement,"click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._cleanupClick?.()}_haltDisabledEvents=e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())};_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled||null}static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,inputs:{tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Zt(e)]},features:[_e]})}return t})(),On=(()=>{class t extends qh{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(ne("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Vt(o.color?"mat-"+o.color:""),ee("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[_e],attrs:PI,ngContentSelectors:FI,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&&(Le(),T(0,"span",0),ce(1),T(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1} + `)}`:"",this.name="UnsubscriptionError",this.errors=e});function Sa(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var be=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(Be(n))try{n()}catch(r){i=r instanceof Vu?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{Dx(r)}catch(a){i=i??[],a instanceof Vu?i=[...i,...a.errors]:i.push(a)}}if(i)throw new Vu(i)}}add(i){var e;if(i&&i!==this)if(this.closed)Dx(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)&&Sa(e,i)}remove(i){let{_finalizers:e}=this;e&&Sa(e,i),i instanceof t&&i._removeParent(this)}};be.EMPTY=(()=>{let t=new be;return t.closed=!0,t})();var I_=be.EMPTY;function Bu(t){return t instanceof be||t&&"closed"in t&&Be(t.remove)&&Be(t.add)&&Be(t.unsubscribe)}function Dx(t){Be(t)?t():t.unsubscribe()}var ho={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ps={setTimeout(t,i,...e){let{delegate:n}=Ps;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=Ps;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ju(t){Ps.setTimeout(()=>{let{onUnhandledError:i}=ho;if(i)i(t);else throw t})}function Ea(){}var Sx=k_("C",void 0,void 0);function Ex(t){return k_("E",void 0,t)}function Mx(t){return k_("N",t,void 0)}function k_(t,i,e){return{kind:t,value:i,error:e}}var Ma=null;function Fs(t){if(ho.useDeprecatedSynchronousErrorHandling){let i=!Ma;if(i&&(Ma={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=Ma;if(Ma=null,e)throw n}}else t()}function Tx(t){ho.useDeprecatedSynchronousErrorHandling&&Ma&&(Ma.errorThrown=!0,Ma.error=t)}var Ta=class extends be{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,Bu(i)&&i.add(this)):this.destination=iN}static create(i,e,n){return new fo(i,e,n)}next(i){this.isStopped?R_(Mx(i),this):this._next(i)}error(i){this.isStopped?R_(Ex(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?R_(Sx,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()}}},tN=Function.prototype.bind;function A_(t,i){return tN.call(t,i)}var O_=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){zu(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){zu(n)}else zu(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){zu(e)}}},fo=class extends Ta{constructor(i,e,n){super();let o;if(Be(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let r;this&&ho.useDeprecatedNextContext?(r=Object.create(i),r.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&A_(i.next,r),error:i.error&&A_(i.error,r),complete:i.complete&&A_(i.complete,r)}):o=i}this.destination=new O_(o)}};function zu(t){ho.useDeprecatedSynchronousErrorHandling?Tx(t):ju(t)}function nN(t){throw t}function R_(t,i){let{onStoppedNotification:e}=ho;e&&Ps.setTimeout(()=>e(t,i))}var iN={closed:!0,next:Ea,error:nN,complete:Ea};var Ns=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Jn(t){return t}function P_(...t){return F_(t)}function F_(t){return t.length===0?Jn:t.length===1?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}var Fe=(()=>{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=rN(e)?e:new fo(e,n,o);return Fs(()=>{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=Ix(n),new n((o,r)=>{let a=new fo({next:s=>{try{e(s)}catch(c){r(c),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)}[Ns](){return this}pipe(...e){return F_(e)(this)}toPromise(e){return e=Ix(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 Ix(t){var i;return(i=t??ho.Promise)!==null&&i!==void 0?i:Promise}function oN(t){return t&&Be(t.next)&&Be(t.error)&&Be(t.complete)}function rN(t){return t&&t instanceof Ta||oN(t)&&Bu(t)}function N_(t){return Be(t?.lift)}function Ne(t){return i=>{if(N_(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 Oe(t,i,e,n,o){return new L_(t,i,e,n,o)}var L_=class extends Ta{constructor(i,e,n,o,r,a){super(i),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(c){i.error(c)}}:super._next,this._error=o?function(s){try{o(s)}catch(c){i.error(c)}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 Ls(){return Ne((t,i)=>{let e=null;t._refCount++;let n=Oe(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 jr=class extends Fe{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,N_(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 be;let e=this.getSubject();i.add(this.source.subscribe(Oe(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=be.EMPTY)}return i}refCount(){return Ls()(this)}};var kx=Br(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var z=(()=>{class t extends Fe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let n=new Uu(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new kx}next(e){Fs(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){Fs(()=>{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(){Fs(()=>{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?I_:(this.currentObservers=null,r.push(e),new be(()=>{this.currentObservers=null,Sa(r,e)}))}_checkFinalizedStatuses(e){let{hasError:n,thrownError:o,isStopped:r}=this;n?e.error(o):r&&e.complete()}asObservable(){let e=new Fe;return e.source=this,e}}return t.create=(i,e)=>new Uu(i,e),t})(),Uu=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:I_}};var bt=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 bc={now(){return(bc.delegate||Date).now()},delegate:void 0};var $i=class extends z{constructor(i=1/0,e=1/0,n=bc){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;at.complete());function $u(t){return t&&Be(t.schedule)}function B_(t){return t[t.length-1]}function qu(t){return Be(B_(t))?t.pop():void 0}function Fo(t){return $u(B_(t))?t.pop():void 0}function Ax(t,i){return typeof B_(t)=="number"?t.pop():i}function Ox(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(f){try{m(n.next(f))}catch(v){a(v)}}function c(f){try{m(n.throw(f))}catch(v){a(v)}}function m(f){f.done?r(f.value):o(f.value).then(s,c)}m((n=n.apply(t,i||[])).next())})}function Rx(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 Ia(t){return this instanceof Ia?(this.v=t,this):new Ia(t)}function Px(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(M){return Promise.resolve(M).then(x,v)}}function s(x,M){n[x]&&(o[x]=function(O){return new Promise(function(K,U){r.push([x,O,K,U])>1||c(x,O)})},M&&(o[x]=M(o[x])))}function c(x,M){try{m(n[x](M))}catch(O){D(r[0][3],O)}}function m(x){x.value instanceof Ia?Promise.resolve(x.value.v).then(f,v):D(r[0][2],x)}function f(x){c("next",x)}function v(x){c("throw",x)}function D(x,M){x(M),r.shift(),r.length&&c(r[0][0],r[0][1])}}function Fx(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 Rx=="function"?Rx(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,c){a=t[r](a),o(s,c,a.done,a.value)})}}function o(r,a,s,c){Promise.resolve(c).then(function(m){r({value:m,done:s})},a)}}var Bs=t=>t&&typeof t.length=="number"&&typeof t!="function";function Yu(t){return Be(t?.then)}function Qu(t){return Be(t[Ns])}function Ku(t){return Symbol.asyncIterator&&Be(t?.[Symbol.asyncIterator])}function Zu(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 aN(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Xu=aN();function Ju(t){return Be(t?.[Xu])}function em(t){return Px(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:o}=yield Ia(e.read());if(o)return yield Ia(void 0);yield yield Ia(n)}}finally{e.releaseLock()}})}function tm(t){return Be(t?.getReader)}function Ct(t){if(t instanceof Fe)return t;if(t!=null){if(Qu(t))return sN(t);if(Bs(t))return lN(t);if(Yu(t))return cN(t);if(Ku(t))return Nx(t);if(Ju(t))return dN(t);if(tm(t))return uN(t)}throw Zu(t)}function sN(t){return new Fe(i=>{let e=t[Ns]();if(Be(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function lN(t){return new Fe(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,ju)})}function dN(t){return new Fe(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function Nx(t){return new Fe(i=>{mN(t,i).catch(e=>i.error(e))})}function uN(t){return Nx(em(t))}function mN(t,i){var e,n,o,r;return Ox(this,void 0,void 0,function*(){try{for(e=Fx(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 Gn(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 nm(t,i=0){return Ne((e,n)=>{e.subscribe(Oe(n,o=>Gn(n,t,()=>n.next(o),i),()=>Gn(n,t,()=>n.complete(),i),o=>Gn(n,t,()=>n.error(o),i)))})}function im(t,i=0){return Ne((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function Lx(t,i){return Ct(t).pipe(im(i),nm(i))}function Vx(t,i){return Ct(t).pipe(im(i),nm(i))}function Bx(t,i){return new Fe(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}function jx(t,i){return new Fe(e=>{let n;return Gn(e,i,()=>{n=t[Xu](),Gn(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)}),()=>Be(n?.return)&&n.return()})}function om(t,i){if(!t)throw new Error("Iterable cannot be null");return new Fe(e=>{Gn(e,i,()=>{let n=t[Symbol.asyncIterator]();Gn(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function zx(t,i){return om(em(t),i)}function Ux(t,i){if(t!=null){if(Qu(t))return Lx(t,i);if(Bs(t))return Bx(t,i);if(Yu(t))return Vx(t,i);if(Ku(t))return om(t,i);if(Ju(t))return jx(t,i);if(tm(t))return zx(t,i)}throw Zu(t)}function zt(t,i){return i?Ux(t,i):Ct(t)}function se(...t){let i=Fo(t);return zt(t,i)}function No(t,i){let e=Be(t)?t:()=>t,n=o=>o.error(e());return new Fe(i?o=>i.schedule(n,0,o):n)}function js(t){return!!t&&(t instanceof Fe||Be(t.lift)&&Be(t.subscribe))}var go=Br(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function rm(t,i){let e=typeof i=="object";return new Promise((n,o)=>{let r=new fo({next:a=>{n(a),r.unsubscribe()},error:o,complete:()=>{e?n(i.defaultValue):o(new go)}});t.subscribe(r)})}function am(t){return t instanceof Date&&!isNaN(t)}var pN=Br(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function j_(t,i){let{first:e,each:n,with:o=hN,scheduler:r=i??Wn,meta:a=null}=am(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&n==null)throw new TypeError("No timeout provided.");return Ne((s,c)=>{let m,f,v=null,D=0,x=M=>{f=Gn(c,r,()=>{try{m.unsubscribe(),Ct(o({meta:a,lastValue:v,seen:D})).subscribe(c)}catch(O){c.error(O)}},M)};m=s.subscribe(Oe(c,M=>{f?.unsubscribe(),D++,c.next(v=M),n>0&&x(n)},void 0,void 0,()=>{f?.closed||f?.unsubscribe(),v=null})),!D&&x(e!=null?typeof e=="number"?e:+e-r.now():n)})}function hN(t){throw new pN(t)}function pe(t,i){return Ne((e,n)=>{let o=0;e.subscribe(Oe(n,r=>{n.next(t.call(i,r,o++))}))})}var{isArray:fN}=Array;function gN(t,i){return fN(i)?t(...i):t(i)}function zs(t){return pe(i=>gN(t,i))}var{isArray:_N}=Array,{getPrototypeOf:vN,prototype:bN,keys:yN}=Object;function sm(t){if(t.length===1){let i=t[0];if(_N(i))return{args:i,keys:null};if(CN(i)){let e=yN(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function CN(t){return t&&typeof t=="object"&&vN(t)===bN}function lm(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}function Ri(...t){let i=Fo(t),e=qu(t),{args:n,keys:o}=sm(t);if(n.length===0)return zt([],i);let r=new Fe(wN(n,i,o?a=>lm(o,a):Jn));return e?r.pipe(zs(e)):r}function wN(t,i,e=Jn){return n=>{Hx(i,()=>{let{length:o}=t,r=new Array(o),a=o,s=o;for(let c=0;c{let m=zt(t[c],i),f=!1;m.subscribe(Oe(n,v=>{r[c]=v,f||(f=!0,s--),s||n.next(e(r.slice()))},()=>{--a||n.complete()}))},n)},n)}}function Hx(t,i,e){t?Gn(e,t,i):i()}function Wx(t,i,e,n,o,r,a,s){let c=[],m=0,f=0,v=!1,D=()=>{v&&!c.length&&!m&&i.complete()},x=O=>m{r&&i.next(O),m++;let K=!1;Ct(e(O,f++)).subscribe(Oe(i,U=>{o?.(U),r?x(U):i.next(U)},()=>{K=!0},void 0,()=>{if(K)try{for(m--;c.length&&mM(U)):M(U)}D()}catch(U){i.error(U)}}))};return t.subscribe(Oe(i,x,()=>{v=!0,D()})),()=>{s?.()}}function en(t,i,e=1/0){return Be(i)?en((n,o)=>pe((r,a)=>i(n,r,o,a))(Ct(t(n,o))),e):(typeof i=="number"&&(e=i),Ne((n,o)=>Wx(n,o,t,e)))}function zr(t=1/0){return en(Jn,t)}function Gx(){return zr(1)}function Lo(...t){return Gx()(zt(t,Fo(t)))}function qi(t){return new Fe(i=>{Ct(t()).subscribe(i)})}function Cc(...t){let i=qu(t),{args:e,keys:n}=sm(t),o=new Fe(r=>{let{length:a}=e;if(!a){r.complete();return}let s=new Array(a),c=a,m=a;for(let f=0;f{v||(v=!0,m--),s[f]=D},()=>c--,void 0,()=>{(!c||!v)&&(m||r.next(n?lm(n,s):s),r.complete())}))}});return i?o.pipe(zs(i)):o}var xN=["addListener","removeListener"],DN=["addEventListener","removeEventListener"],SN=["on","off"];function ka(t,i,e,n){if(Be(e)&&(n=e,e=void 0),n)return ka(t,i,e).pipe(zs(n));let[o,r]=TN(t)?DN.map(a=>s=>t[a](i,s,e)):EN(t)?xN.map($x(t,i)):MN(t)?SN.map($x(t,i)):[];if(!o&&Bs(t))return en(a=>ka(a,i,e))(Ct(t));if(!o)throw new TypeError("Invalid event target");return new Fe(a=>{let s=(...c)=>a.next(1r(s)})}function $x(t,i){return e=>n=>t[e](i,n)}function EN(t){return Be(t.addListener)&&Be(t.removeListener)}function MN(t){return Be(t.on)&&Be(t.off)}function TN(t){return Be(t.addEventListener)&&Be(t.removeEventListener)}function _o(t=0,i,e=V_){let n=-1;return i!=null&&($u(i)?e=i:n=i),new Fe(o=>{let r=am(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 wc(t=0,i=Wn){return t<0&&(t=0),_o(t,t,i)}function _t(...t){let i=Fo(t),e=Ax(t,1/0),n=t;return n.length?n.length===1?Ct(n[0]):zr(e)(zt(n,i)):_n}function Ke(t,i){return Ne((e,n)=>{let o=0;e.subscribe(Oe(n,r=>t.call(i,r,o++)&&n.next(r)))})}function qx(t){return Ne((i,e)=>{let n=!1,o=null,r=null,a=!1,s=()=>{if(r?.unsubscribe(),r=null,n){n=!1;let m=o;o=null,e.next(m)}a&&e.complete()},c=()=>{r=null,a&&e.complete()};i.subscribe(Oe(e,m=>{n=!0,o=m,r||Ct(t(m)).subscribe(r=Oe(e,s,c))},()=>{a=!0,(!n||!r||r.closed)&&e.complete()}))})}function cm(t,i=Wn){return qx(()=>_o(t,i))}function On(t){return Ne((i,e)=>{let n=null,o=!1,r;n=i.subscribe(Oe(e,void 0,void 0,a=>{r=Ct(t(a,On(t)(i))),n?(n.unsubscribe(),n=null,r.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,r.subscribe(e))})}function Yx(t,i,e,n,o){return(r,a)=>{let s=e,c=i,m=0;r.subscribe(Oe(a,f=>{let v=m++;c=s?t(c,f,v):(s=!0,f),n&&a.next(c)},o&&(()=>{s&&a.next(c),a.complete()})))}}function Vo(t,i){return Be(i)?en(t,i,1):en(t,1)}function lr(t,i=Wn){return Ne((e,n)=>{let o=null,r=null,a=null,s=()=>{if(o){o.unsubscribe(),o=null;let m=r;r=null,n.next(m)}};function c(){let m=a+t,f=i.now();if(f{r=m,a=i.now(),o||(o=i.schedule(c,t),n.add(o))},()=>{s(),n.complete()},void 0,()=>{r=o=null}))})}function Ur(t){return Ne((i,e)=>{let n=!1;i.subscribe(Oe(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function wt(t){return t<=0?()=>_n:Ne((i,e)=>{let n=0;i.subscribe(Oe(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function Qx(){return Ne((t,i)=>{t.subscribe(Oe(i,Ea))})}function Kx(t){return pe(()=>t)}function z_(t,i){return i?e=>Lo(i.pipe(wt(1),Qx()),e.pipe(z_(t))):en((e,n)=>Ct(t(e,n)).pipe(wt(1),Kx(e)))}function xc(t,i=Wn){let e=_o(t,i);return z_(()=>e)}function dm(t,i=Jn){return t=t??IN,Ne((e,n)=>{let o,r=!0;e.subscribe(Oe(n,a=>{let s=i(a);(r||!t(o,s))&&(r=!1,o=s,n.next(a))}))})}function IN(t,i){return t===i}function um(t=kN){return Ne((i,e)=>{let n=!1;i.subscribe(Oe(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function kN(){return new go}function Bo(t){return Ne((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function cr(t,i){let e=arguments.length>=2;return n=>n.pipe(t?Ke((o,r)=>t(o,r,n)):Jn,wt(1),e?Ur(i):um(()=>new go))}function Us(t){return t<=0?()=>_n:Ne((i,e)=>{let n=[];i.subscribe(Oe(e,o=>{n.push(o),t{for(let o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}function U_(t,i){let e=arguments.length>=2;return n=>n.pipe(t?Ke((o,r)=>t(o,r,n)):Jn,Us(1),e?Ur(i):um(()=>new go))}function mm(){return Ne((t,i)=>{let e,n=!1;t.subscribe(Oe(i,o=>{let r=e;e=o,n&&i.next([r,o]),n=!0}))})}function H_(t,i){return Ne(Yx(t,i,arguments.length>=2,!0))}function Dc(t={}){let{connector:i=()=>new z,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,c,m=0,f=!1,v=!1,D=()=>{s?.unsubscribe(),s=void 0},x=()=>{D(),a=c=void 0,f=v=!1},M=()=>{let O=a;x(),O?.unsubscribe()};return Ne((O,K)=>{m++,!v&&!f&&D();let U=c=c??i();K.add(()=>{m--,m===0&&!v&&!f&&(s=W_(M,o))}),U.subscribe(K),!a&&m>0&&(a=new fo({next:Xe=>U.next(Xe),error:Xe=>{v=!0,D(),s=W_(x,e,Xe),U.error(Xe)},complete:()=>{f=!0,D(),s=W_(x,n),U.complete()}}),Ct(O).subscribe(a))})(r)}}function W_(t,i,...e){if(i===!0){t();return}if(i===!1)return;let n=new fo({next:()=>{n.unsubscribe(),t()}});return Ct(i(...e)).subscribe(n)}function pm(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,Dc({connector:()=>new $i(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Aa(t){return Ke((i,e)=>t<=e)}function xt(...t){let i=Fo(t);return Ne((e,n)=>{(i?Lo(t,e,i):Lo(t,e)).subscribe(n)})}function Dt(t,i){return Ne((e,n)=>{let o=null,r=0,a=!1,s=()=>a&&!o&&n.complete();e.subscribe(Oe(n,c=>{o?.unsubscribe();let m=0,f=r++;Ct(t(c,f)).subscribe(o=Oe(n,v=>n.next(i?i(c,v,f,m++):v),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function Te(t){return Ne((i,e)=>{Ct(t).subscribe(Oe(e,()=>e.complete(),Ea)),!e.closed&&i.subscribe(e)})}function G_(t,i=!1){return Ne((e,n)=>{let o=0;e.subscribe(Oe(n,r=>{let a=t(r,o++);(a||i)&&n.next(r),!a&&n.complete()}))})}function Ut(t,i,e){let n=Be(t)||i||e?{next:t,error:i,complete:e}:t;return n?Ne((o,r)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let s=!0;o.subscribe(Oe(r,c=>{var m;(m=n.next)===null||m===void 0||m.call(n,c),r.next(c)},()=>{var c;s=!1,(c=n.complete)===null||c===void 0||c.call(n),r.complete()},c=>{var m;s=!1,(m=n.error)===null||m===void 0||m.call(n,c),r.error(c)},()=>{var c,m;s&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(m=n.finalize)===null||m===void 0||m.call(n)}))}):Jn}function Zx(t,i){return Ne((e,n)=>{let{leading:o=!0,trailing:r=!1}=i??{},a=!1,s=null,c=null,m=!1,f=()=>{c?.unsubscribe(),c=null,r&&(x(),m&&n.complete())},v=()=>{c=null,m&&n.complete()},D=M=>c=Ct(t(M)).subscribe(Oe(n,f,v)),x=()=>{if(a){a=!1;let M=s;s=null,n.next(M),!m&&D(M)}};e.subscribe(Oe(n,M=>{a=!0,s=M,!(c&&!c.closed)&&(o?x():D(M))},()=>{m=!0,!(r&&a&&c&&!c.closed)&&n.complete()}))})}function $_(t,i=Wn,e){let n=_o(t,i);return Zx(()=>n,e)}var WD="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",Q=class extends Error{code;constructor(i,e){super(gb(i,e)),this.code=i}};function AN(t){return`NG0${Math.abs(t)}`}function gb(t,i){return`${AN(t)}${i?": "+i:""}`}var GD=Symbol("InputSignalNode#UNSET"),RN=Qe(V({},Nu),{transformFn:void 0,applyValueToInputSignal(t,i){_c(t,i)}});function $D(t,i){let e=Object.create(RN);e.value=t,e.transformFn=i?.transform;function n(){if(hc(e),e.value===GD){let o=null;throw new Q(-950,o)}return e.value}return n[hi]=e,n}function Nc(t){return{toString:t}.toString()}var hm="__parameters__";function ON(t){return function(...e){if(t){let n=t(...e);for(let o in n)this[o]=n[o]}}}function qD(t,i,e){return Nc(()=>{let n=ON(i);function o(...r){if(this instanceof o)return n.apply(this,r),this;let a=new o(...r);return s.annotation=a,s;function s(c,m,f){let v=c.hasOwnProperty(hm)?c[hm]:Object.defineProperty(c,hm,{value:[]})[hm];for(;v.length<=f;)v.push(null);return(v[f]=v[f]||[]).push(a),c}}return o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var _i=globalThis;function Gt(t){for(let i in t)if(t[i]===Gt)return i;throw Error("Could not find renamed property on target object.")}function PN(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function gi(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(gi).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 sv(t,i){return t?i?`${t} ${i}`:t:i||""}var FN=Gt({__forward_ref__:Gt});function tn(t){return t.__forward_ref__=tn,t.toString=function(){return gi(this())},t}function Fn(t){return YD(t)?t():t}function YD(t){return typeof t=="function"&&t.hasOwnProperty(FN)&&t.__forward_ref__===tn}function L(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function J(t){return{providers:t.providers||[],imports:t.imports||[]}}function np(t){return Xx(t,KD)||Xx(t,ZD)}function QD(t){return np(t)!==null}function Xx(t,i){return t.hasOwnProperty(i)?t[i]:null}function NN(t){let i=t&&(t[KD]||t[ZD]);return i||null}function Jx(t){return t&&(t.hasOwnProperty(eD)||t.hasOwnProperty(LN))?t[eD]:null}var KD=Gt({\u0275prov:Gt}),eD=Gt({\u0275inj:Gt}),ZD=Gt({ngInjectableDef:Gt}),LN=Gt({ngInjectorDef:Gt}),R=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=L({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function XD(t){return t&&!!t.\u0275providers}var VN=Gt({\u0275cmp:Gt}),BN=Gt({\u0275dir:Gt}),jN=Gt({\u0275pipe:Gt}),zN=Gt({\u0275mod:Gt}),Sm=Gt({\u0275fac:Gt}),Tc=Gt({__NG_ELEMENT_ID__:Gt}),tD=Gt({__NG_ENV_ID__:Gt});function Pa(t){return typeof t=="string"?t:t==null?"":String(t)}function UN(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Pa(t)}function JD(t,i){throw new Q(-200,t)}function _b(t,i){throw new Q(-201,!1)}var lt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(lt||{}),lv;function eS(){return lv}function fi(t){let i=lv;return lv=t,i}function tS(t,i,e){let n=np(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e<.Optional)return null;if(i!==void 0)return i;_b(t,"Injector")}var HN={},Ra=HN,cv="__NG_DI_FLAG__",Em=class{injector;constructor(i){this.injector=i}retrieve(i,e){let n=e;return this.injector.get(i,n.optional?Lu:Ra,n)}},Mm="ngTempTokenPath",WN="ngTokenPath",GN=/\n/gm,$N="\u0275",nD="__source";function qN(t,i=lt.Default){if(vc()===void 0)throw new Q(-203,!1);if(vc()===null)return tS(t,void 0,i);{let e=vc(),n;return e instanceof Em?n=e.injector:n=e,n.get(t,i<.Optional?null:void 0,i)}}function le(t,i=lt.Default){return(eS()||qN)(Fn(t),i)}function p(t,i=lt.Default){return le(t,ip(i))}function ip(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function dv(t){let i=[];for(let e=0;e ");else if(typeof i=="object"){let r=[];for(let a in i)if(i.hasOwnProperty(a)){let s=i[a];r.push(a+":"+(typeof s=="string"?JSON.stringify(s):gi(s)))}o=`{${r.join(", ")}}`}return`${e}${n?"("+n+")":""}[${o}]: ${t.replace(GN,` + `)}`}var Co=nS(qD("Optional"),8);var hr=nS(qD("SkipSelf"),4);function Fa(t,i){let e=t.hasOwnProperty(Sm);return e?t[Sm]:null}function ZN(t,i,e){if(t.length!==i.length)return!1;for(let n=0;nArray.isArray(e)?vb(e,i):i(e))}function iS(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function Tm(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function JN(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 op(t,i,e){let n=Lc(t,i);return n>=0?t[n|1]=e:(n=~n,e2(t,n,i,e)),n}function q_(t,i){let e=Lc(t,i);if(e>=0)return t[e|1]}function Lc(t,i){return t2(t,i,1)}function t2(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 vb(i,a=>{let s=a;uv(s,r,[],n)&&(o||=[],o.push(s))}),o!==void 0&&cS(o,r),e}function cS(t,i){for(let e=0;e{i(r,n)})}}function uv(t,i,e,n){if(t=Fn(t),!t)return!1;let o=null,r=Jx(t),a=!r&&Gr(t);if(!r&&!a){let c=t.ngModule;if(r=Jx(c),r)o=c;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 c=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let m of c)uv(m,i,e,n)}}else if(r){if(r.imports!=null&&!s){n.add(o);let m;try{vb(r.imports,f=>{uv(f,i,e,n)&&(m||=[],m.push(f))})}finally{}m!==void 0&&cS(m,i)}if(!s){let m=Fa(o)||(()=>new o);i({provide:o,useFactory:m,deps:ei},o),i({provide:rS,useValue:o,multi:!0},o),i({provide:Qs,useValue:()=>le(o),multi:!0},o)}let c=r.providers;if(c!=null&&!s){let m=t;bb(c,f=>{i(f,m)})}}else return!1;return o!==t&&t.providers!==void 0}function bb(t,i){for(let e of t)XD(e)&&(e=e.\u0275providers),Array.isArray(e)?bb(e,i):i(e)}var o2=Gt({provide:String,useValue:Gt});function dS(t){return t!==null&&typeof t=="object"&&o2 in t}function r2(t){return!!(t&&t.useExisting)}function a2(t){return!!(t&&t.useFactory)}function Ks(t){return typeof t=="function"}function s2(t){return!!t.useClass}var rp=new R(""),ym={},iD={},Y_;function ap(){return Y_===void 0&&(Y_=new Im),Y_}var sn=class{},Ic=class extends sn{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,pv(i,a=>this.processProvider(a)),this.records.set(oS,Hs(void 0,this)),o.has("environment")&&this.records.set(sn,Hs(void 0,this));let r=this.records.get(rp);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(rS,ei,lt.Self))}retrieve(i,e){let n=e;return this.get(i,n.optional?Lu:Ra,n)}destroy(){Ec(this),this._destroyed=!0;let i=ct(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(),ct(i)}}onDestroy(i){return Ec(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){Ec(this);let e=sr(this),n=fi(void 0),o;try{return i()}finally{sr(e),fi(n)}}get(i,e=Ra,n=lt.Default){if(Ec(this),i.hasOwnProperty(tD))return i[tD](this);n=ip(n);let o,r=sr(this),a=fi(void 0);try{if(!(n<.SkipSelf)){let c=this.records.get(i);if(c===void 0){let m=m2(i)&&np(i);m&&this.injectableDefInScope(m)?c=Hs(mv(i),ym):c=null,this.records.set(i,c)}if(c!=null)return this.hydrate(i,c,n)}let s=n<.Self?ap():this.parent;return e=n<.Optional&&e===Ra?null:e,s.get(i,e)}catch(s){if(s.name==="NullInjectorError"){if((s[Mm]=s[Mm]||[]).unshift(gi(i)),r)throw s;return QN(s,i,"R3InjectorError",this.source)}else throw s}finally{fi(a),sr(r)}}resolveInjectorInitializers(){let i=ct(null),e=sr(this),n=fi(void 0),o;try{let r=this.get(Qs,ei,lt.Self);for(let a of r)a()}finally{sr(e),fi(n),ct(i)}}toString(){let i=[],e=this.records;for(let n of e.keys())i.push(gi(n));return`R3Injector[${i.join(", ")}]`}processProvider(i){i=Fn(i);let e=Ks(i)?i:Fn(i&&i.provide),n=c2(i);if(!Ks(i)&&i.multi===!0){let o=this.records.get(e);o||(o=Hs(void 0,ym,!0),o.factory=()=>dv(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let o=ct(null);try{return e.value===iD?JD(gi(i)):e.value===ym&&(e.value=iD,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&u2(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{ct(o)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=Fn(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 mv(t){let i=np(t),e=i!==null?i.factory:Fa(t);if(e!==null)return e;if(t instanceof R)throw new Q(204,!1);if(t instanceof Function)return l2(t);throw new Q(204,!1)}function l2(t){if(t.length>0)throw new Q(204,!1);let e=NN(t);return e!==null?()=>e.factory(t):()=>new t}function c2(t){if(dS(t))return Hs(void 0,t.useValue);{let i=uS(t);return Hs(i,ym)}}function uS(t,i,e){let n;if(Ks(t)){let o=Fn(t);return Fa(o)||mv(o)}else if(dS(t))n=()=>Fn(t.useValue);else if(a2(t))n=()=>t.useFactory(...dv(t.deps||[]));else if(r2(t))n=(o,r)=>le(Fn(t.useExisting),r!==void 0&&r<.Optional?lt.Optional:void 0);else{let o=Fn(t&&(t.useClass||t.provide));if(d2(t))n=()=>new o(...dv(t.deps));else return Fa(o)||mv(o)}return n}function Ec(t){if(t.destroyed)throw new Q(205,!1)}function Hs(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function d2(t){return!!t.deps}function u2(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function m2(t){return typeof t=="function"||typeof t=="object"&&t instanceof R}function pv(t,i){for(let e of t)Array.isArray(e)?pv(e,i):e&&XD(e)?pv(e.\u0275providers,i):i(e)}function vi(t,i){let e;t instanceof Ic?(Ec(t),e=t):e=new Em(t);let n,o=sr(e),r=fi(void 0);try{return i()}finally{sr(o),fi(r)}}function yb(){return eS()!==void 0||vc()!=null}function Cb(t){if(!yb())throw new Q(-203,!1)}function p2(t){let i=_i.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function h2(t){return typeof t=="function"}var fr=0,it=1,Je=2,qn=3,yo=4,bi=5,Zs=6,km=7,En=8,Xs=9,dr=10,ln=11,kc=12,oD=13,ol=14,Oi=15,Na=16,Ws=17,ur=18,sp=19,mS=20,Hr=21,Q_=22,La=23,Yi=24,qs=25,vn=26,pS=1;var Va=7,Am=8,Js=9,$n=10;function Wr(t){return Array.isArray(t)&&typeof t[pS]=="object"}function gr(t){return Array.isArray(t)&&t[pS]===!0}function wb(t){return(t.flags&4)!==0}function rl(t){return t.componentOffset>-1}function lp(t){return(t.flags&1)===1}function Uo(t){return!!t.template}function Rm(t){return(t[Je]&512)!==0}function al(t){return(t[Je]&256)===256}var hv=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}};function hS(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var je=(()=>{let t=()=>fS;return t.ngInherit=!0,t})();function fS(t){return t.type.prototype.ngOnChanges&&(t.setInput=g2),f2}function f2(){let t=_S(this),i=t?.current;if(i){let e=t.previous;if(e===zo)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function g2(t,i,e,n,o){let r=this.declaredInputs[n],a=_S(t)||_2(t,{previous:zo,current:null}),s=a.current||(a.current={}),c=a.previous,m=c[r];s[r]=new hv(m&&m.currentValue,e,c===zo),hS(t,i,o,e)}var gS="__ngSimpleChanges__";function _S(t){return t[gS]||null}function _2(t,i){return t[gS]=i}var rD=null;var Kt=function(t,i=null,e){rD?.(t,i,e)},vS="svg",v2="math";function Ho(t){for(;Array.isArray(t);)t=t[fr];return t}function bS(t,i){return Ho(i[t])}function qo(t,i){return Ho(i[t.index])}function xb(t,i){return t.data[i]}function Db(t,i){return t[i]}function yS(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function Wo(t,i){let e=i[t];return Wr(e)?e:e[fr]}function b2(t){return(t[Je]&4)===4}function Sb(t){return(t[Je]&128)===128}function y2(t){return gr(t[qn])}function $r(t,i){return i==null?null:t[i]}function CS(t){t[Ws]=0}function wS(t){t[Je]&1024||(t[Je]|=1024,Sb(t)&&sl(t))}function C2(t,i){for(;t>0;)i=i[ol],t--;return i}function cp(t){return!!(t[Je]&9216||t[Yi]?.dirty)}function fv(t){t[dr].changeDetectionScheduler?.notify(8),t[Je]&64&&(t[Je]|=1024),cp(t)&&sl(t)}function sl(t){t[dr].changeDetectionScheduler?.notify(0);let i=Ba(t);for(;i!==null&&!(i[Je]&8192||(i[Je]|=8192,!Sb(i)));)i=Ba(i)}function xS(t,i){if(al(t))throw new Q(911,!1);t[Hr]===null&&(t[Hr]=[]),t[Hr].push(i)}function w2(t,i){if(t[Hr]===null)return;let e=t[Hr].indexOf(i);e!==-1&&t[Hr].splice(e,1)}function Ba(t){let i=t[qn];return gr(i)?i[qn]:i}function Eb(t){return t[km]??=[]}function Mb(t){return t.cleanup??=[]}function x2(t,i,e,n){let o=Eb(i);o.push(e),t.firstCreatePass&&Mb(t).push(n,o.length-1)}var rt={lFrame:IS(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var gv=!1;function D2(){return rt.lFrame.elementDepthCount}function S2(){rt.lFrame.elementDepthCount++}function E2(){rt.lFrame.elementDepthCount--}function Tb(){return rt.bindingsEnabled}function DS(){return rt.skipHydrationRootTNode!==null}function M2(t){return rt.skipHydrationRootTNode===t}function T2(){rt.skipHydrationRootTNode=null}function qe(){return rt.lFrame.lView}function nn(){return rt.lFrame.tView}function C(t){return rt.lFrame.contextLView=t,t[En]}function w(t){return rt.lFrame.contextLView=null,t}function Yn(){let t=SS();for(;t!==null&&t.type===64;)t=t.parent;return t}function SS(){return rt.lFrame.currentTNode}function I2(){let t=rt.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function qr(t,i){let e=rt.lFrame;e.currentTNode=t,e.isParent=i}function Ib(){return rt.lFrame.isParent}function kb(){rt.lFrame.isParent=!1}function k2(){return rt.lFrame.contextLView}function ES(){return gv}function Om(t){let i=gv;return gv=t,i}function Bc(){let t=rt.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function A2(){return rt.lFrame.bindingIndex}function R2(t){return rt.lFrame.bindingIndex=t}function $a(){return rt.lFrame.bindingIndex++}function Ab(t){let i=rt.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function O2(){return rt.lFrame.inI18n}function P2(t,i){let e=rt.lFrame;e.bindingIndex=e.bindingRootIndex=t,_v(i)}function F2(){return rt.lFrame.currentDirectiveIndex}function _v(t){rt.lFrame.currentDirectiveIndex=t}function N2(t){let i=rt.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function Rb(){return rt.lFrame.currentQueryIndex}function dp(t){rt.lFrame.currentQueryIndex=t}function L2(t){let i=t[it];return i.type===2?i.declTNode:i.type===1?t[bi]:null}function MS(t,i,e){if(e<.SkipSelf){let o=i,r=t;for(;o=o.parent,o===null&&!(e<.Host);)if(o=L2(r),o===null||(r=r[ol],o.type&10))break;if(o===null)return!1;i=o,t=r}let n=rt.lFrame=TS();return n.currentTNode=i,n.lView=t,!0}function Ob(t){let i=TS(),e=t[it];rt.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function TS(){let t=rt.lFrame,i=t===null?null:t.child;return i===null?IS(t):i}function IS(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 kS(){let t=rt.lFrame;return rt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var AS=kS;function Pb(){let t=kS();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 V2(t){return(rt.lFrame.contextLView=C2(t,rt.lFrame.contextLView))[En]}function _r(){return rt.lFrame.selectedIndex}function ja(t){rt.lFrame.selectedIndex=t}function jc(){let t=rt.lFrame;return xb(t.tView,t.selectedIndex)}function on(){rt.lFrame.currentNamespace=vS}function vr(){B2()}function B2(){rt.lFrame.currentNamespace=null}function j2(){return rt.lFrame.currentNamespace}var RS=!0;function up(){return RS}function mp(t){RS=t}function z2(t,i,e){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:r}=i.type.prototype;if(n){let a=fS(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 Fb(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[c]<0&&(t[Ws]+=65536),(s>14>16&&(t[Je]&3)===i&&(t[Je]+=16384,aD(s,r)):aD(s,r)}var Ys=-1,za=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n){this.factory=i,this.canSeeViewProviders=e,this.injectImpl=n}};function H2(t){return(t.flags&8)!==0}function W2(t){return(t.flags&16)!==0}function G2(t,i,e){let n=0;for(;ni){a=r-1;break}}}for(;r>16}function Fm(t,i){let e=q2(t),n=i;for(;e>0;)n=n[ol],e--;return n}var vv=!0;function Nm(t){let i=vv;return vv=t,i}var Y2=256,NS=Y2-1,LS=5,Q2=0,jo={};function K2(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(Tc)&&(n=e[Tc]),n==null&&(n=e[Tc]=Q2++);let o=n&NS,r=1<>LS)]|=r}function Lm(t,i){let e=VS(t,i);if(e!==-1)return e;let n=i[it];n.firstCreatePass&&(t.injectorIndex=i.length,Z_(n.data,t),Z_(i,null),Z_(n.blueprint,null));let o=Nb(t,i),r=t.injectorIndex;if(FS(o)){let a=Pm(o),s=Fm(o,i),c=s[it].data;for(let m=0;m<8;m++)i[r+m]=s[a+m]|c[a+m]}return i[r+8]=o,r}function Z_(t,i){t.push(0,0,0,0,0,0,0,0,i)}function VS(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function Nb(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=HS(o),n===null)return Ys;if(e++,o=o[ol],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return Ys}function bv(t,i,e){K2(t,i,e)}function Z2(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,v=n?s:s+f,D=o?s+f:m;for(let x=v;x=c&&M.type===e)return x}if(o){let x=a[c];if(x&&Uo(x)&&x.type===e)return c}return null}function Ac(t,i,e,n,o){let r=t[e],a=i.data;if(r instanceof za){let s=r;s.resolving&&JD(UN(a[e]));let c=Nm(s.canSeeViewProviders);s.resolving=!0;let m,f=s.injectImpl?fi(s.injectImpl):null,v=MS(t,n,lt.Default);try{r=t[e]=s.factory(void 0,o,a,t,n),i.firstCreatePass&&e>=n.directiveStart&&z2(e,a[e],i)}finally{f!==null&&fi(f),Nm(c),s.resolving=!1,AS()}}return r}function J2(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(Tc)?t[Tc]:void 0;return typeof i=="number"?i>=0?i&NS:eL:i}function lD(t,i,e){let n=1<>LS)]&n)}function cD(t,i){return!(t<.Self)&&!(t<.Host&&i)}var Oa=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return zS(this._tNode,this._lView,i,ip(n),e)}};function eL(){return new Oa(Yn(),qe())}function nt(t){return Nc(()=>{let i=t.prototype.constructor,e=i[Sm]||yv(i),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[Sm]||yv(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function yv(t){return YD(t)?()=>{let i=yv(Fn(t));return i&&i()}:Fa(t)}function tL(t,i,e,n,o){let r=t,a=i;for(;r!==null&&a!==null&&a[Je]&2048&&!Rm(a);){let s=US(r,a,e,n|lt.Self,jo);if(s!==jo)return s;let c=r.parent;if(!c){let m=a[mS];if(m){let f=m.get(e,jo,n);if(f!==jo)return f}c=HS(a),a=a[ol]}r=c}return o}function HS(t){let i=t[it],e=i.type;return e===2?i.declTNode:e===1?t[bi]:null}function pp(t){return Z2(Yn(),t)}function dD(t,i=null,e=null,n){let o=WS(t,i,e,n);return o.resolveInjectorInitializers(),o}function WS(t,i=null,e=null,n,o=new Set){let r=[e||ei,i2(t)];return n=n||(typeof t=="object"?void 0:gi(t)),new Ic(r,i||ap(),n||null,o)}var Ie=class t{static THROW_IF_NOT_FOUND=Ra;static NULL=new Im;static create(i,e){if(Array.isArray(i))return dD({name:""},e,i,"");{let n=i.name??"";return dD({name:n},i.parent,i.providers,n)}}static \u0275prov=L({token:t,providedIn:"any",factory:()=>le(oS)});static __NG_ELEMENT_ID__=-1};var Nn=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>pp(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},nL=new R("");nL.__NG_ELEMENT_ID__=t=>{let i=Yn();if(i===null)throw new Q(204,!1);if(i.type&2)return i.value;if(t<.Optional)return null;throw new Q(204,!1)};var GS=!1,Yr=(()=>{class t{static __NG_ELEMENT_ID__=iL;static __NG_ENV_ID__=e=>e}return t})(),Vm=class extends Yr{_lView;constructor(i){super(),this._lView=i}onDestroy(i){let e=this._lView;return al(e)?(i(),()=>{}):(xS(e,i),()=>w2(e,i))}};function iL(){return new Vm(qe())}var Ua=class{},Lb=new R("",{providedIn:"root",factory:()=>!1});var $S=new R(""),qS=new R(""),br=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new bt(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=L({token:t,providedIn:"root",factory:()=>new t})}return t})();var Cv=class extends z{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(i=!1){super(),this.__isAsync=i,yb()&&(this.destroyRef=p(Yr,{optional:!0})??void 0,this.pendingTasks=p(br,{optional:!0})??void 0)}emit(i){let e=ct(null);try{super.next(i)}finally{ct(e)}}subscribe(i,e,n){let o=i,r=e||(()=>null),a=n;if(i&&typeof i=="object"){let c=i;o=c.next?.bind(c),r=c.error?.bind(c),a=c.complete?.bind(c)}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 be&&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)}})}}},k=Cv;function Rc(...t){}function YS(t){let i,e;function n(){t=Rc;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i)}catch{}}return i=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n()})),()=>n()}function uD(t){return queueMicrotask(()=>t()),()=>{t=Rc}}var Vb="isAngularZone",Bm=Vb+"_ID",oL=0,ie=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new k(!1);onMicrotaskEmpty=new k(!1);onStable=new k(!1);onError=new k(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:r=GS}=i;if(typeof Zone>"u")throw new Q(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,sL(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Vb)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new Q(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new Q(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,rL,Rc,Rc);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)}},rL={};function Bb(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 aL(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){YS(()=>{t.callbackScheduled=!1,wv(t),t.isCheckStableRunning=!0,Bb(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),wv(t)}function sL(t){let i=()=>{aL(t)},e=oL++;t._inner=t._inner.fork({name:"angular",properties:{[Vb]:!0,[Bm]:e,[Bm+e]:!0},onInvokeTask:(n,o,r,a,s,c)=>{if(lL(c))return n.invokeTask(r,a,s,c);try{return mD(t),n.invokeTask(r,a,s,c)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),pD(t)}},onInvoke:(n,o,r,a,s,c,m)=>{try{return mD(t),n.invoke(r,a,s,c,m)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!cL(c)&&i(),pD(t)}},onHasTask:(n,o,r,a)=>{n.hasTask(r,a),o===r&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,wv(t),Bb(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 wv(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function mD(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function pD(t){t._nesting--,Bb(t)}var jm=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new k;onMicrotaskEmpty=new k;onStable=new k;onError=new k;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 lL(t){return QS(t,"__ignore_ng_zone__")}function cL(t){return QS(t,"__scheduler_tick__")}function QS(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}function dL(t="zone.js",i){return t==="noop"?new jm:t==="zone.js"?new ie(i):t}var ti=class{_console=console;handleError(i){this._console.error("ERROR",i)}},uL=new R("",{providedIn:"root",factory:()=>{let t=p(ie),i=p(ti);return e=>t.runOutsideAngular(()=>i.handleError(e))}});function hD(t,i){return $D(t,i)}function mL(t){return $D(GD,t)}var KS=(hD.required=mL,hD);function pL(){return ll(Yn(),qe())}function ll(t,i){return new Z(qo(t,i))}var Z=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=pL}return t})();function ZS(t){return t instanceof Z?t.nativeElement:t}function Qr(t){return typeof t=="function"&&t[hi]!==void 0}function yi(t,i){let e=S_(t,i?.equal),n=e[hi];return e.set=o=>_c(n,o),e.update=o=>E_(n,o),e.asReadonly=hL.bind(e),e}function hL(){let t=this[hi];if(t.readonlyFn===void 0){let i=()=>this();i[hi]=t,t.readonlyFn=i}return t.readonlyFn}function XS(t){return Qr(t)&&typeof t.set=="function"}function fL(){return this._results[Symbol.iterator]()}var Qi=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=XN(i);(this._changesDetected=!ZN(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]=fL};function JS(t){return(t.flags&128)===128}var eE=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(eE||{}),tE=new Map,gL=0;function _L(){return gL++}function vL(t){tE.set(t[sp],t)}function xv(t){tE.delete(t[sp])}var fD="__ngContext__";function cl(t,i){Wr(i)?(t[fD]=i[sp],vL(i)):t[fD]=i}function nE(t){return oE(t[kc])}function iE(t){return oE(t[yo])}function oE(t){for(;t!==null&&!gr(t);)t=t[yo];return t}var Dv;function rE(t){Dv=t}function aE(){if(Dv!==void 0)return Dv;if(typeof document<"u")return document;throw new Q(210,!1)}var qa=new R("",{providedIn:"root",factory:()=>bL}),bL="ng",jb=new R(""),Kr=new R("",{providedIn:"platform",factory:()=>"unknown"});var tt=new R(""),zc=new R("",{providedIn:"root",factory:()=>aE().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var yL="h",CL="b";var sE=!1,wL=new R("",{providedIn:"root",factory:()=>sE});var zb=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(zb||{}),dl=new R(""),gD=new Set;function yr(t){gD.has(t)||(gD.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Ub=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=xL}return t})();function xL(){return new Ub(qe(),Yn())}var Gs=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Gs||{}),lE=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=L({token:t,providedIn:"root",factory:()=>new t})}return t})(),DL=[Gs.EarlyRead,Gs.Write,Gs.MixedReadWrite,Gs.Read],SL=(()=>{class t{ngZone=p(ie);scheduler=p(Ua);errorHandler=p(ti,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){p(dl,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Kt(16),this.executing=!0;for(let n of DL)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&&Kt(17)}register(e){let{view:n}=e;n!==void 0?((n[qs]??=[]).push(e),sl(n),n[Je]|=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(zb.AFTER_NEXT_RENDER,e):e()}static \u0275prov=L({token:t,providedIn:"root",factory:()=>new t})}return t})(),Sv=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?.[qs];i&&(this.view[qs]=i.filter(e=>e!==this))}};function Ya(t,i){!i?.injector&&Cb(Ya);let e=i?.injector??p(Ie);return yr("NgAfterRender"),cE(t,e,i,!1)}function Ht(t,i){!i?.injector&&Cb(Ht);let e=i?.injector??p(Ie);return yr("NgAfterNextRender"),cE(t,e,i,!0)}function EL(t,i){if(t instanceof Function){let e=[void 0,void 0,void 0,void 0];return e[i]=t,e}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function cE(t,i,e,n){let o=i.get(lE);o.impl??=i.get(SL);let r=i.get(dl,null,{optional:!0}),a=e?.phase??Gs.MixedReadWrite,s=e?.manualCleanup!==!0?i.get(Yr):null,c=i.get(Ub,null,{optional:!0}),m=new Sv(o.impl,EL(t,a),c?.view,n,s,r?.snapshot(null));return o.impl.register(m),m}var ML=(t,i,e,n)=>{};function TL(t,i,e,n){ML(t,i,e,n)}var IL=()=>null;function dE(t,i,e=!1){return IL(t,i,e)}function uE(t,i){let e=t.contentQueries;if(e!==null){let n=ct(null);try{for(let o=0;ot,createScript:t=>t,createScriptURL:t=>t})}catch{}return fm}function hp(t){return kL()?.createHTML(t)||t}var gm;function mE(){if(gm===void 0&&(gm=null,_i.trustedTypes))try{gm=_i.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return gm}function _D(t){return mE()?.createHTML(t)||t}function vD(t){return mE()?.createScriptURL(t)||t}var mr=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${WD})`}},Mv=class extends mr{getTypeName(){return"HTML"}},Tv=class extends mr{getTypeName(){return"Style"}},Iv=class extends mr{getTypeName(){return"Script"}},kv=class extends mr{getTypeName(){return"URL"}},Av=class extends mr{getTypeName(){return"ResourceURL"}};function Zi(t){return t instanceof mr?t.changingThisBreaksApplicationSecurity:t}function Cr(t,i){let e=AL(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${WD})`)}return e===i}function AL(t){return t instanceof mr&&t.getTypeName()||null}function pE(t){return new Mv(t)}function hE(t){return new Tv(t)}function fE(t){return new Iv(t)}function gE(t){return new kv(t)}function _E(t){return new Av(t)}function RL(t){let i=new Ov(t);return OL()?new Rv(i):i}var Rv=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(hp(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch{return null}}},Ov=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=hp(i),e}};function OL(){try{return!!new window.DOMParser().parseFromString(hp(""),"text/html")}catch{return!1}}var PL=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function fp(t){return t=String(t),t.match(PL)?t:"unsafe:"+t}function wr(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function Uc(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var vE=wr("area,br,col,hr,img,wbr"),bE=wr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),yE=wr("rp,rt"),FL=Uc(yE,bE),NL=Uc(bE,wr("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")),LL=Uc(yE,wr("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")),bD=Uc(vE,NL,LL,FL),CE=wr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),VL=wr("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"),BL=wr("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"),jL=Uc(CE,VL,BL),zL=wr("script,style,template"),Pv=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=WL(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=HL(e);if(r){e=r;break}e=o.pop()}}return this.buf.join("")}startElement(i){let e=yD(i).toLowerCase();if(!bD.hasOwnProperty(e))return this.sanitizedSomething=!0,!zL.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let o=0;o"),!0}endElement(i){let e=yD(i).toLowerCase();bD.hasOwnProperty(e)&&!vE.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(CD(i))}};function UL(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function HL(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw wE(i);return i}function WL(t){let i=t.firstChild;if(i&&UL(t,i))throw wE(i);return i}function yD(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function wE(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var GL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$L=/([^\#-~ |!])/g;function CD(t){return t.replace(/&/g,"&").replace(GL,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace($L,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var _m;function Wb(t,i){let e=null;try{_m=_m||RL(t);let n=i?String(i):"";e=_m.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=_m.getInertBodyElement(n)}while(n!==r);let s=new Pv().sanitizeChildren(wD(e)||e);return hp(s)}finally{if(e){let n=wD(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function wD(t){return"content"in t&&qL(t)?t.content:null}function qL(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Ln=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}(Ln||{});function Wt(t){let i=Gb();return i?_D(i.sanitize(Ln.HTML,t)||""):Cr(t,"HTML")?_D(Zi(t)):Wb(aE(),Pa(t))}function Ee(t){let i=Gb();return i?i.sanitize(Ln.URL,t)||"":Cr(t,"URL")?Zi(t):fp(Pa(t))}function YL(t){let i=Gb();if(i)return vD(i.sanitize(Ln.RESOURCE_URL,t)||"");if(Cr(t,"ResourceURL"))return vD(Zi(t));throw new Q(904,!1)}function QL(t,i){return i==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||i==="href"&&(t==="base"||t==="link")?YL:Ee}function xE(t,i,e){return QL(i,e)(t)}function Gb(){let t=qe();return t&&t[dr].sanitizer}var KL=/^>|^->||--!>|)/g,XL="\u200B$1\u200B";function JL(t){return t.replace(KL,i=>i.replace(ZL,XL))}function ul(t){return t.ownerDocument.defaultView}function DE(t){return t.ownerDocument}function SE(t){return t instanceof Function?t():t}function eV(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 EE="ng-template";function tV(t,i,e,n){let o=0;if(n){for(;o-1){let r;for(;++or?v="":v=o[f+1].toLowerCase(),n&2&&m!==v){if(vo(n))return!1;a=!0}}}}return vo(n)||a}function vo(t){return(t&1)===0}function oV(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!==""&&!vo(a)&&(i+=xD(r,o),o=""),n=a,r=r||!vo(n);e++}return o!==""&&(i+=xD(r,o)),i}function dV(t){return t.map(cV).join(",")}function uV(t){let i=[],e=[],n=1,o=2;for(;nvn&&OE(t,i,vn,!1),Kt(a?2:0,o),e(n,o)}finally{ja(r),Kt(a?3:1,o)}}function _p(t,i,e){EV(t,i,e),(e.flags&64)===64&&MV(t,i,e)}function Kb(t,i,e=qo){let n=i.localNames;if(n!==null){let o=i.index+1;for(let r=0;rnull;function DV(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function vp(t,i,e,n,o,r,a,s){if(!s&&Xb(i,t,e,n,o)){rl(i)&&SV(e,i.index);return}if(i.type&3){let c=qo(i,e);n=DV(n),o=a!=null?a(o,i.value||"",n):o,r.setProperty(c,n,o)}else i.type&12}function SV(t,i){let e=Wo(i,t);e[Je]&16||(e[Je]|=64)}function EV(t,i,e){let n=e.directiveStart,o=e.directiveEnd;rl(e)&&yV(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||Lm(e,i);let r=e.initialInputs;for(let a=n;a=0?n[s]():n[-s].unsubscribe(),a+=2}else{let s=n[e[a+1]];e[a].call(s)}n!==null&&(i[km]=null);let o=i[Hr];if(o!==null){i[Hr]=null;for(let a=0;a{sl(t.lView)},consumerOnSignalRead(){this.lView[Yi]=this}});function JV(t){let i=t[Yi]??Object.create(e3);return i.lView=t,i}var e3=Qe(V({},Os),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=Ba(t.lView);for(;i&&!UE(i[it]);)i=Ba(i);i&&wS(i)},consumerOnSignalRead(){this.lView[Yi]=this}});function UE(t){return t.type!==2}function HE(t){if(t[La]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[La])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[Je]&8192)}}var t3=100;function WE(t,i=!0,e=0){let o=t[dr].rendererFactory,r=!1;r||o.begin?.();try{n3(t,e)}catch(a){throw i&&RV(t,a),a}finally{r||o.end?.()}}function n3(t,i){let e=ES();try{Om(!0),Lv(t,i);let n=0;for(;cp(t);){if(n===t3)throw new Q(103,!1);n++,Lv(t,1)}}finally{Om(e)}}function i3(t,i,e,n){if(al(i))return;let o=i[Je],r=!1,a=!1;Ob(i);let s=!0,c=null,m=null;r||(UE(t)?(m=QV(i),c=fc(m)):y_()===null?(s=!1,m=JV(i),c=fc(m)):i[Yi]&&(gc(i[Yi]),i[Yi]=null));try{CS(i),R2(t.bindingStartIndex),e!==null&&PE(t,i,e,2,n);let f=(o&3)===3;if(!r)if(f){let x=t.preOrderCheckHooks;x!==null&&Cm(i,x,null)}else{let x=t.preOrderHooks;x!==null&&wm(i,x,0,null),K_(i,0)}if(a||o3(i),HE(i),GE(i,0),t.contentQueries!==null&&uE(t,i),!r)if(f){let x=t.contentCheckHooks;x!==null&&Cm(i,x)}else{let x=t.contentHooks;x!==null&&wm(i,x,1),K_(i,1)}a3(t,i);let v=t.components;v!==null&&qE(i,v,0);let D=t.viewQuery;if(D!==null&&Ev(2,D,n),!r)if(f){let x=t.viewCheckHooks;x!==null&&Cm(i,x)}else{let x=t.viewHooks;x!==null&&wm(i,x,2),K_(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Q_]){for(let x of i[Q_])x();i[Q_]=null}r||(jE(i),i[Je]&=-73)}catch(f){throw r||sl(i),f}finally{m!==null&&(Au(m,c),s&&ZV(m)),Pb()}}function GE(t,i){for(let e=nE(t);e!==null;e=iE(e))for(let n=$n;n0&&(t[e-1][yo]=n[yo]);let r=Tm(t,$n+i);LV(n[it],n);let a=r[ur];a!==null&&a.detachView(r[it]),n[qn]=null,n[yo]=null,n[Je]&=-129}return n}function s3(t,i,e,n){let o=$n+n,r=e.length;n>0&&(e[o-1][yo]=i),n-1&&(Oc(i,n),Tm(e,n))}this._attachedToViewContainer=!1}bp(this._lView[it],this._lView)}onDestroy(i){xS(this._lView,i)}markForCheck(){o0(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Je]&=-129}reattach(){fv(this._lView),this._lView[Je]|=128}detectChanges(){this._lView[Je]|=1024,WE(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Q(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=Rm(this._lView),e=this._lView[Na];e!==null&&!i&&n0(e,this._lView),FE(this._lView[it],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Q(902,!1);this._appRef=i;let e=Rm(this._lView),n=this._lView[Na];n!==null&&!e&&ZE(n,this._lView),fv(this._lView)}};var St=(()=>{class t{static __NG_ELEMENT_ID__=d3}return t})(),l3=St,c3=class extends l3{_declarationLView;_declarationTContainer;elementRef;constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,e){return this.createEmbeddedViewImpl(i,e)}createEmbeddedViewImpl(i,e,n){let o=Hc(this._declarationLView,this._declarationTContainer,i,{embeddedViewInjector:e,dehydratedView:n});return new Pc(o)}};function d3(){return wp(Yn(),qe())}function wp(t,i){return t.type&4?new c3(i,t,ll(t,i)):null}function ml(t,i,e,n,o){let r=t.data[i];if(r===null)r=u3(t,i,e,n,o),O2()&&(r.flags|=32);else if(r.type&64){r.type=e,r.value=n,r.attrs=o;let a=I2();r.injectorIndex=a===null?-1:a.injectorIndex}return qr(r,!0),r}function u3(t,i,e,n,o){let r=SS(),a=Ib(),s=a?r:r&&r.parent,c=t.data[i]=p3(t,s,e,i,n,o);return m3(t,c,r,a),c}function m3(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 p3(t,i,e,n,o,r){let a=i?i.injectorIndex:-1,s=0;return DS()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,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}}var Woe=new RegExp(`^(\\d+)*(${CL}|${yL})*(.*)`);var h3=()=>null;function nl(t,i){return h3(t,i)}var f3=class{},XE=class{},Vv=class{resolveComponentFactory(i){throw Error(`No component factory found for ${gi(i)}.`)}},xp=class{static NULL=new Vv},hn=class{},kt=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>g3()}return t})();function g3(){let t=qe(),i=Yn(),e=Wo(i.index,t);return(Wr(e)?e:t)[ln]}var _3=(()=>{class t{static \u0275prov=L({token:t,providedIn:"root",factory:()=>null})}return t})();var J_={},Bv=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=ip(n);let o=this.injector.get(i,J_,n);return o!==J_||e===J_?o:this.parentInjector.get(i,e,n)}};function jv(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 D=0;D0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function M3(t,i,e){if(e){if(i.exportAs)for(let n=0;n{let[e,n,o]=t[i],r={propName:e,templateName:i,isSignal:(n&gp.SignalBased)!==0};return o&&(r.transform=o),r})}function k3(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function A3(t,i,e){let n=i instanceof sn?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new Bv(e,n):e}function R3(t){let i=t.get(hn,null);if(i===null)throw new Q(407,!1);let e=t.get(_3,null),n=t.get(Ua,null);return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n}}function O3(t,i){let e=(t.selectors[0][0]||"div").toLowerCase();return TE(i,e,e==="svg"?vS:e==="math"?v2:null)}var Ha=class extends XE{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=I3(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=k3(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=dV(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,o){Kt(22);let r=ct(null);try{let a=this.componentDef,s=n?["ng-version","19.2.15"]:uV(this.componentDef.selectors[0]),c=qb(0,null,null,1,0,null,null,null,null,[s],null),m=A3(a,o||this.ngModule,i),f=R3(m),v=f.rendererFactory.createRenderer(null,a),D=n?CV(v,n,a.encapsulation,m):O3(a,v),x=Yb(null,c,null,512|AE(a),null,null,f,v,m,null,dE(D,m,!0));x[vn]=D,Ob(x);let M=null;try{let O=eM(vn,c,x,"#host",()=>[this.componentDef],!0,0);D&&(kE(v,D,O),cl(D,x)),_p(c,x,O),Hb(c,O,x),tM(c,O),e!==void 0&&P3(O,this.ngContentSelectors,e),M=Wo(O.index,x),x[En]=M[En],Jb(c,x,null)}catch(O){throw M!==null&&xv(M),xv(x),O}finally{Kt(23),Pb()}return new zv(this.componentType,x)}finally{ct(r)}}},zv=class extends f3{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e){super(),this._rootLView=e,this._tNode=xb(e[it],vn),this.location=ll(this._tNode,e),this.instance=Wo(this._tNode.index,e)[En],this.hostView=this.changeDetectorRef=new Pc(e,void 0,!1),this.componentType=i}setInput(i,e){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=Xb(n,o[it],o,i,e);this.previousInputValues.set(i,e);let a=Wo(n.index,o);o0(a,1)}get injector(){return new Oa(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function P3(t,i,e){let n=t.projection=[];for(let o=0;o{class t{static __NG_ELEMENT_ID__=F3}return t})();function F3(){let t=Yn();return iM(t,qe())}var N3=Rt,nM=class extends N3{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return ll(this._hostTNode,this._hostLView)}get injector(){return new Oa(this._hostTNode,this._hostLView)}get parentInjector(){let i=Nb(this._hostTNode,this._hostLView);if(FS(i)){let e=Fm(i,this._hostLView),n=Pm(i),o=e[it].data[n+8];return new Oa(o,e)}else return new Oa(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=ID(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-$n}createEmbeddedView(i,e,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let a=nl(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,tl(this._hostTNode,a)),s}createComponent(i,e,n,o,r){let a=i&&!h2(i),s;if(a)s=e;else{let M=e||{};s=M.index,n=M.injector,o=M.projectableNodes,r=M.environmentInjector||M.ngModuleRef}let c=a?i:new Ha(Gr(i)),m=n||this.parentInjector;if(!r&&c.ngModule==null){let O=(a?m:this.parentInjector).get(sn,null);O&&(r=O)}let f=Gr(c.componentType??{}),v=nl(this._lContainer,f?.id??null),D=v?.firstChild??null,x=c.create(m,o,D,r);return this.insertImpl(x.hostView,s,tl(this._hostTNode,v)),x}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let o=i._lView;if(y2(o)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let c=o[qn],m=new nM(c,c[bi],c[qn]);m.detach(m.indexOf(i))}}let r=this._adjustIndex(e),a=this._lContainer;return Wc(a,o,r,n),i.attachToViewContainerRef(),iS(ev(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=ID(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=Oc(this._lContainer,e);n&&(Tm(ev(this._lContainer),e),bp(n[it],n))}detach(i){let e=this._adjustIndex(i,-1),n=Oc(this._lContainer,e);return n&&Tm(ev(this._lContainer),e)!=null?new Pc(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function ID(t){return t[Am]}function ev(t){return t[Am]||(t[Am]=[])}function iM(t,i){let e,n=i[t.index];return gr(n)?e=n:(e=YE(n,i,null,t),i[t.index]=e,Qb(i,e)),V3(e,i,t,n),new nM(e,t,i)}function L3(t,i){let e=t[ln],n=e.createComment(""),o=qo(i,t),r=e.parentNode(o);return zm(e,r,n,e.nextSibling(o),!1),n}var V3=z3,B3=()=>!1;function j3(t,i,e){return B3(t,i,e)}function z3(t,i,e,n){if(t[Va])return;let o;e.type&8?o=Ho(n):o=L3(i,e),t[Va]=o}var Uv=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Hv=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 m=r[s+1],f=i[-c];for(let v=$n;vi.trim())}function sM(t,i,e){t.queries===null&&(t.queries=new Wv),t.queries.track(new Gv(i,e))}function Y3(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 s0(t,i){return t.queries.getByIndex(i)}function lM(t,i){let e=t[it],n=s0(e,i);return n.crossesNgTemplate?$v(e,t,i,[]):oM(e,t,n,i)}function cM(t,i,e){let n,o=Fu(()=>{n._dirtyCounter();let r=X3(n,t);if(i&&r===void 0)throw new Q(-951,!1);return r});return n=o[hi],n._dirtyCounter=yi(0),n._flatValue=void 0,o}function Q3(t){return cM(!0,!1,t)}function K3(t){return cM(!0,!0,t)}function Z3(t,i){let e=t[hi];e._lView=qe(),e._queryIndex=i,e._queryList=a0(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function X3(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[Je]&4)return i?void 0:ei;let o=a0(e,n),r=lM(e,n);return o.reset(r,ZS),i?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}function kD(t,i){return Q3(i)}function J3(t,i){return K3(i)}var dM=(kD.required=J3,kD);function eB(t){let i=[],e=new Map;function n(o){let r=e.get(o);if(!r){let a=t(o);e.set(o,r=a.then(oB))}return r}return Gm.forEach((o,r)=>{let a=[];o.templateUrl&&a.push(n(o.templateUrl).then(m=>{o.template=m}));let s=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=s,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let m=o.styles.length,f=o.styleUrls;o.styleUrls.forEach((v,D)=>{s.push(""),a.push(n(v).then(x=>{s[m+D]=x,f.splice(f.indexOf(v),1),f.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&a.push(n(o.styleUrl).then(m=>{s.push(m),o.styleUrl=void 0}));let c=Promise.all(a).then(()=>rB(r));i.push(c)}),nB(),Promise.all(i).then(()=>{})}var Gm=new Map,tB=new Set;function nB(){let t=Gm;return Gm=new Map,t}function iB(){return Gm.size===0}function oB(t){return typeof t=="string"?t:t.text()}function rB(t){tB.delete(t)}var pr=class{},l0=class{};var $m=class extends pr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Hm(this);constructor(i,e,n,o=!0){super(),this.ngModuleType=i,this._parent=e;let r=aS(i);this._bootstrapComponents=SE(r.bootstrap),this._r3Injector=WS(i,e,[{provide:pr,useValue:this},{provide:xp,useValue:this.componentFactoryResolver},...n],gi(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)}},qm=class extends l0{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new $m(this.moduleType,i,[])}};function aB(t,i,e){return new $m(t,i,e,!1)}var qv=class extends pr{injector;componentFactoryResolver=new Hm(this);instance=null;constructor(i){super();let e=new Ic([...i.providers,{provide:pr,useValue:this},{provide:xp,useValue:this.componentFactoryResolver}],i.parent||ap(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function Gc(t,i,e=null){return new qv({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var sB=(()=>{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=lS(!1,e.type),o=n.length>0?Gc([n],this._injector,`Standalone[${e.type.name}]`):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=L({token:t,providedIn:"environment",factory:()=>new t(le(sn))})}return t})();function S(t){return Nc(()=>{let i=uM(t),e=Qe(V({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===eE.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?o=>o.get(sB).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Go.Emulated,styles:t.styles||ei,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&yr("NgStandalone"),mM(e);let n=t.dependencies;return e.directiveDefs=Ym(n,!1),e.pipeDefs=Ym(n,!0),e.id=mB(e),e})}function lB(t){return Gr(t)||sS(t)}function cB(t){return t!==null}function ee(t){return Nc(()=>({type:t.type,bootstrap:t.bootstrap||ei,declarations:t.declarations||ei,imports:t.imports||ei,exports:t.exports||ei,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function dB(t,i){if(t==null)return zo;let e={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],r,a,s,c;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r,c=o[3]||null):(r=o,a=o,s=gp.None,c=null),e[r]=[n,s,c],i[r]=a}return e}function uB(t){if(t==null)return zo;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function B(t){return Nc(()=>{let i=uM(t);return mM(i),i})}function Yo(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 uM(t){let i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||zo,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||ei,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:dB(t.inputs,i),outputs:uB(t.outputs),debugInfo:null}}function mM(t){t.features?.forEach(i=>i(t))}function Ym(t,i){if(!t)return null;let e=i?n2:lB;return()=>(typeof t=="function"?t():t).map(n=>e(n)).filter(cB)}function mB(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 pB(t){return Object.getPrototypeOf(t.prototype).constructor}function _e(t){let i=pB(t.type),e=!0,n=[t];for(;i;){let o;if(Uo(t))o=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new Q(903,!1);o=i.\u0275dir}if(o){if(e){n.push(o);let a=t;a.inputs=tv(t.inputs),a.declaredInputs=tv(t.declaredInputs),a.outputs=tv(t.outputs);let s=o.hostBindings;s&&vB(t,s);let c=o.viewQuery,m=o.contentQueries;if(c&&gB(t,c),m&&_B(t,m),hB(t,o),PN(t.outputs,o.outputs),Uo(o)&&o.data.animation){let f=t.data;f.animation=(f.animation||[]).concat(o.data.animation)}}let r=o.features;if(r)for(let a=0;a=0;n--){let o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=el(o.hostAttrs,e=el(e,o.hostAttrs))}}function tv(t){return t===zo?{}:t===ei?[]:t}function gB(t,i){let e=t.viewQuery;e?t.viewQuery=(n,o)=>{i(n,o),e(n,o)}:t.viewQuery=i}function _B(t,i){let e=t.contentQueries;e?t.contentQueries=(n,o,r)=>{i(n,o,r),e(n,o,r)}:t.contentQueries=i}function vB(t,i){let e=t.hostBindings;e?t.hostBindings=(n,o)=>{i(n,o),e(n,o)}:t.hostBindings=i}function pM(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.findHostDirectiveDefs=hM,e.hostDirectives=n?t.map(Yv):[t]):n?e.hostDirectives.unshift(...t.map(Yv)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function hM(t,i,e){if(t.hostDirectives!==null)for(let n of t.hostDirectives)if(typeof n=="function"){let o=n();for(let r of o)AD(Yv(r),i,e)}else AD(n,i,e)}function AD(t,i,e){let n=sS(t.directive);bB(n.declaredInputs,t.inputs),hM(n,i,e),e.set(n,t),i.push(n)}function Yv(t){return typeof t=="function"?{directive:Fn(t),inputs:zo,outputs:zo}:{directive:Fn(t.directive),inputs:RD(t.inputs),outputs:RD(t.outputs)}}function RD(t){if(t===void 0||t.length===0)return zo;let i={};for(let e=0;e{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var m0=new R(""),$c=new R(""),Sp=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,o){this._ngZone=e,this.registry=n,yb()&&(this._destroyRef=p(Yr,{optional:!0})??void 0),p0||(SB(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:()=>{ie.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)(le(ie),le(Ep),le($c))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),Ep=(()=>{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 p0?.findTestabilityInTree(this,e,n)??null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function SB(t){p0=t}var p0,_M=(()=>{class t{static \u0275prov=L({token:t,providedIn:"root",factory:()=>new Qv})}return t})(),Qv=class{queuedEffectCount=0;queues=new Map;schedule(i){this.enqueue(i)}remove(i){let e=i.zone,n=this.queues.get(e);n.has(i)&&(n.delete(i),this.queuedEffectCount--)}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)||(this.queuedEffectCount++,n.add(i))}flush(){for(;this.queuedEffectCount>0;)for(let[i,e]of this.queues)i===null?this.flushQueue(e):i.run(()=>this.flushQueue(e))}flushQueue(i){for(let e of i)i.delete(e),this.queuedEffectCount--,e.run()}};function Zr(t){return!!t&&typeof t.then=="function"}function h0(t){return!!t&&typeof t.subscribe=="function"}var vM=new R("");function f0(t){return Vc([{provide:vM,multi:!0,useValue:t}])}var bM=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=p(vM,{optional:!0})??[];injector=p(Ie);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let o of this.appInits){let r=vi(this.injector,o);if(Zr(r))e.push(r);else if(h0(r)){let a=new Promise((s,c)=>{r.subscribe({complete:s,error:c})});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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),g0=new R("");function EB(){D_(()=>{throw new Q(600,!1)})}function MB(t){return t.isBoundToModule}var TB=10;function yM(t,i){return Array.isArray(i)?i.reduce(yM,t):V(V({},t),i)}var ni=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(uL);afterRenderManager=p(lE);zonelessEnabled=p(Lb);rootEffectScheduler=p(_M);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new z;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=p(br).hasPendingTasks.pipe(pe(e=>!e));constructor(){p(dl,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:o=>{o&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=p(sn);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,o=Ie.NULL){Kt(10);let r=e instanceof XE;if(!this._injector.get(bM).done){let x="";throw new Q(405,x)}let s;r?s=e:s=this._injector.get(xp).resolveComponentFactory(e),this.componentTypes.push(s.componentType);let c=MB(s)?void 0:this._injector.get(pr),m=n||s.selector,f=s.create(o,[],m,c),v=f.location.nativeElement,D=f.injector.get(m0,null);return D?.registerApplication(v),f.onDestroy(()=>{this.detachView(f.hostView),Dm(this.components,f),D?.unregisterApplication(v)}),this._loadComponent(f),Kt(11,f),f}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Kt(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(zb.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new Q(101,!1);let e=ct(null);try{this._runningTick=!0,this.synchronize()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,ct(e),this.afterTick.next(),Kt(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(hn,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;Dm(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(g0,[]).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),()=>Dm(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Q(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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Dm(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function IB(t,i,e,n){if(!e&&!cp(t))return;WE(t,i,e&&!n?0:1)}function ne(t,i,e,n){let o=qe(),r=$a();if(Ki(o,r,i)){let a=nn(),s=jc();IV(s,o,t,i,e,n)}return ne}function _0(t,i,e,n){return Ki(t,$a(),e)?i+Pa(e)+n:Ci}function kB(t,i,e,n,o,r){let a=A2(),s=gM(t,a,e,o);return Ab(2),s?i+Pa(e)+n+Pa(o)+r:Ci}function vm(t,i){return t<<17|i<<2}function Wa(t){return t>>17&32767}function AB(t){return(t&2)==2}function RB(t,i){return t&131071|i<<17}function Kv(t){return t|2}function il(t){return(t&131068)>>2}function nv(t,i){return t&-131069|i<<2}function OB(t){return(t&1)===1}function Zv(t){return t|1}function PB(t,i,e,n,o,r){let a=r?i.classBindings:i.styleBindings,s=Wa(a),c=il(a);t[n]=e;let m=!1,f;if(Array.isArray(e)){let v=e;f=v[1],(f===null||Lc(v,f)>0)&&(m=!0)}else f=e;if(o)if(c!==0){let D=Wa(t[s+1]);t[n+1]=vm(D,s),D!==0&&(t[D+1]=nv(t[D+1],n)),t[s+1]=RB(t[s+1],n)}else t[n+1]=vm(s,0),s!==0&&(t[s+1]=nv(t[s+1],n)),s=n;else t[n+1]=vm(c,0),s===0?s=n:t[c+1]=nv(t[c+1],n),c=n;m&&(t[n+1]=Kv(t[n+1])),OD(t,f,n,!0),OD(t,f,n,!1),FB(i,f,t,n,r),a=vm(s,c),r?i.classBindings=a:i.styleBindings=a}function FB(t,i,e,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof i=="string"&&Lc(r,i)>=0&&(e[n+1]=Zv(e[n+1]))}function OD(t,i,e,n){let o=t[e+1],r=i===null,a=n?Wa(o):il(o),s=!1;for(;a!==0&&(s===!1||r);){let c=t[a],m=t[a+1];NB(c,i)&&(s=!0,t[a+1]=n?Zv(m):Kv(m)),a=n?Wa(m):il(m)}s&&(t[e+1]=n?Kv(o):Zv(o))}function NB(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?Lc(t,i)>=0:!1}var bo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function LB(t){return t.substring(bo.key,bo.keyEnd)}function VB(t){return BB(t),CM(t,wM(t,0,bo.textEnd))}function CM(t,i){let e=bo.textEnd;return e===i?-1:(i=bo.keyEnd=jB(t,bo.key=i,e),wM(t,i,e))}function BB(t){bo.key=0,bo.keyEnd=0,bo.value=0,bo.valueEnd=0,bo.textEnd=t.length}function wM(t,i,e){for(;i32;)i++;return i}function _(t,i,e){let n=qe(),o=$a();if(Ki(n,o,i)){let r=nn(),a=jc();vp(r,a,n,t,i,n[ln],e,!1)}return _}function Xv(t,i,e,n,o){Xb(i,t,e,o?"class":"style",n)}function Vn(t,i,e){return DM(t,i,e,!1),Vn}function X(t,i){return DM(t,i,null,!0),X}function Bt(t){SM($B,xM,t,!0)}function xM(t,i){for(let e=VB(i);e>=0;e=CM(i,e))op(t,LB(i),!0)}function DM(t,i,e,n){let o=qe(),r=nn(),a=Ab(2);if(r.firstUpdatePass&&MM(r,t,a,n),i!==Ci&&Ki(o,a,i)){let s=r.data[_r()];TM(r,s,o,o[ln],t,o[a+1]=YB(i,e),n,a)}}function SM(t,i,e,n){let o=nn(),r=Ab(2);o.firstUpdatePass&&MM(o,null,r,n);let a=qe();if(e!==Ci&&Ki(a,r,e)){let s=o.data[_r()];if(IM(s,n)&&!EM(o,r)){let c=n?s.classesWithoutHost:s.stylesWithoutHost;c!==null&&(e=sv(c,e||"")),Xv(o,s,a,e,n)}else qB(o,s,a,a[ln],a[r+1],a[r+1]=GB(t,i,e),n,r)}}function EM(t,i){return i>=t.expandoStartIndex}function MM(t,i,e,n){let o=t.data;if(o[e+1]===null){let r=o[_r()],a=EM(t,e);IM(r,n)&&i===null&&!a&&(i=!1),i=zB(o,r,i,n),PB(o,r,i,e,a,n)}}function zB(t,i,e,n){let o=N2(t),r=n?i.residualClasses:i.residualStyles;if(o===null)(n?i.classBindings:i.styleBindings)===0&&(e=iv(null,t,i,e,n),e=Fc(e,i.attrs,n),r=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==o)if(e=iv(o,t,i,e,n),r===null){let c=UB(t,i,n);c!==void 0&&Array.isArray(c)&&(c=iv(null,t,i,c[1],n),c=Fc(c,i.attrs,n),HB(t,i,n,c))}else r=WB(t,i,n)}return r!==void 0&&(n?i.residualClasses=r:i.residualStyles=r),e}function UB(t,i,e){let n=e?i.classBindings:i.styleBindings;if(il(n)!==0)return t[Wa(n)]}function HB(t,i,e,n){let o=e?i.classBindings:i.styleBindings;t[Wa(o)]=n}function WB(t,i,e){let n,o=i.directiveEnd;for(let r=1+i.directiveStylingLast;r0;){let c=t[o],m=Array.isArray(c),f=m?c[1]:c,v=f===null,D=e[o+1];D===Ci&&(D=v?ei:void 0);let x=v?q_(D,n):f===n?D:void 0;if(m&&!Km(x)&&(x=q_(c,n)),Km(x)&&(s=x,a))return s;let M=t[o+1];o=a?Wa(M):il(M)}if(i!==null){let c=r?i.residualClasses:i.residualStyles;c!=null&&(s=q_(c,n))}return s}function Km(t){return t!==void 0}function YB(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=gi(Zi(t)))),t}function IM(t,i){return(t.flags&(i?8:16))!==0}function kM(t,i,e){let n=qe(),o=_0(n,t,i,e);SM(op,xM,o,!0)}var Jv=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 ov(t,i,e,n,o){return t===e&&Object.is(i,n)?1:Object.is(o(t,i),o(e,n))?-1:0}function QB(t,i,e){let n,o,r=0,a=t.length-1,s=void 0;if(Array.isArray(i)){let c=i.length-1;for(;r<=a&&r<=c;){let m=t.at(r),f=i[r],v=ov(r,m,r,f,e);if(v!==0){v<0&&t.updateValue(r,f),r++;continue}let D=t.at(a),x=i[c],M=ov(a,D,c,x,e);if(M!==0){M<0&&t.updateValue(a,x),a--,c--;continue}let O=e(r,m),K=e(a,D),U=e(r,f);if(Object.is(U,K)){let Xe=e(c,x);Object.is(Xe,O)?(t.swap(r,a),t.updateValue(a,x),c--,a--):t.move(a,r),t.updateValue(r,f),r++;continue}if(n??=new Zm,o??=ND(t,r,a,e),eb(t,n,r,U))t.updateValue(r,f),r++,a++;else if(o.has(U))n.set(O,t.detach(r)),a--;else{let Xe=t.create(r,i[r]);t.attach(r,Xe),r++,a++}}for(;r<=c;)FD(t,n,e,r,i[r]),r++}else if(i!=null){let c=i[Symbol.iterator](),m=c.next();for(;!m.done&&r<=a;){let f=t.at(r),v=m.value,D=ov(r,f,r,v,e);if(D!==0)D<0&&t.updateValue(r,v),r++,m=c.next();else{n??=new Zm,o??=ND(t,r,a,e);let x=e(r,v);if(eb(t,n,r,x))t.updateValue(r,v),r++,a++,m=c.next();else if(!o.has(x))t.attach(r,t.create(r,v)),r++,a++,m=c.next();else{let M=e(r,f);n.set(M,t.detach(r)),a--}}}for(;!m.done;)FD(t,n,e,t.length,m.value),m=c.next()}for(;r<=a;)t.destroy(t.detach(a--));n?.forEach(c=>{t.destroy(c)})}function eb(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function FD(t,i,e,n,o){if(eb(t,i,n,e(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function ND(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 Zm=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 T(t,i){yr("NgControlFlow");let e=qe(),n=$a(),o=e[n]!==Ci?e[n]:-1,r=o!==-1?Xm(e,vn+o):void 0,a=0;if(Ki(e,n,t)){let s=ct(null);try{if(r!==void 0&&KE(r,a),t!==-1){let c=vn+t,m=Xm(e,c),f=ob(e[it],c),v=nl(m,f.tView.ssrId),D=Hc(e,f,i,{dehydratedView:v});Wc(m,D,a,tl(f,v))}}finally{ct(s)}}else if(r!==void 0){let s=QE(r,a);s!==void 0&&(s[En]=i)}}var tb=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-$n}};function ce(t,i){return i}var nb=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function oe(t,i,e,n,o,r,a,s,c,m,f,v,D){yr("NgControlFlow");let x=qe(),M=nn(),O=c!==void 0,K=qe(),U=s?a.bind(K[Oi][En]):a,Xe=new nb(O,U);K[vn+t]=Xe,Qm(x,M,t+1,i,e,n,o,$r(M.consts,r)),O&&Qm(x,M,t+2,c,m,f,v,$r(M.consts,D))}var ib=class extends Jv{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-$n}at(i){return this.getLView(i)[En].$implicit}attach(i,e){let n=e[Zs];this.needsIndexUpdate||=i!==this.length,Wc(this.lContainer,e,i,tl(this.templateTNode,n))}detach(i){return this.needsIndexUpdate||=i!==this.length-1,KB(this.lContainer,i)}create(i,e){let n=nl(this.lContainer,this.templateTNode.tView.ssrId),o=Hc(this.hostLView,this.templateTNode,new tb(this.lContainer,e,i),{dehydratedView:n});return this.operationsCounter?.recordCreate(),o}destroy(i){bp(i[it],i),this.operationsCounter?.recordDestroy()}updateValue(i,e){this.getLView(i)[En].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i(mp(!0),TE(n,o,j2()));function JB(t,i,e,n,o){let r=i.consts,a=$r(r,n),s=ml(i,t,8,"ng-container",a);a!==null&&jv(s,a,!0);let c=$r(r,o);return Tb()&&r0(i,e,s,c,Zb),s.mergedAttrs=el(s.mergedAttrs,s.attrs),i.queries!==null&&i.queries.elementStart(i,s),s}function xr(t,i,e){let n=qe(),o=nn(),r=t+vn,a=o.firstCreatePass?JB(r,o,n,i,e):o.data[r];qr(a,!0);let s=ej(o,n,a,t);return n[r]=s,up()&&yp(o,n,s,a),cl(s,n),lp(a)&&(_p(o,n,a),Hb(o,a,n)),e!=null&&Kb(n,a),xr}function Dr(){let t=Yn(),i=nn();return Ib()?kb():(t=t.parent,qr(t,!1)),i.firstCreatePass&&(Fb(i,t),wb(t)&&i.queries.elementEnd(t)),Dr}function Mn(t,i,e){return xr(t,i,e),Dr(),Mn}var ej=(t,i,e,n)=>(mp(!0),hV(i[ln],""));function A(){return qe()}function bn(t,i,e){let n=qe(),o=$a();if(Ki(n,o,i)){let r=nn(),a=jc();vp(r,a,n,t,i,n[ln],e,!0)}return bn}var Jm="en-US";var tj=Jm;function nj(t){typeof t=="string"&&(tj=t.toLowerCase().replace(/_/g,"-"))}function LD(t,i,e){return function n(o){if(o===Function)return e;let r=rl(t)?Wo(t.index,i):i;o0(r,5);let a=i[En],s=VD(i,a,e,o),c=n.__ngNextListenerFn__;for(;c;)s=VD(i,a,c,o)&&s,c=c.__ngNextListenerFn__;return s}}function VD(t,i,e,n){let o=ct(null);try{return Kt(6,i,e),e(n)!==!1}catch(r){return ij(t,r),!1}finally{Kt(7,i,e),ct(o)}}function ij(t,i){let e=t[Xs],n=e?e.get(ti,null):null;n&&n.handleError(i)}function BD(t,i,e,n,o,r){let a=i[e],s=i[it],m=s.data[e].outputs[n],f=a[m],v=s.firstCreatePass?Mb(s):null,D=Eb(i),x=f.subscribe(r),M=D.length;D.push(r,x),v&&v.push(o,t.index,M,-(M+1))}function b(t,i,e,n){let o=qe(),r=nn(),a=Yn();return AM(r,o,o[ln],a,t,i,n),b}function oj(t,i,e,n){let o=t.cleanup;if(o!=null)for(let r=0;rc?s[c]:null}typeof a=="string"&&(r+=2)}return null}function AM(t,i,e,n,o,r,a){let s=lp(n),m=t.firstCreatePass?Mb(t):null,f=Eb(i),v=!0;if(n.type&3||a){let D=qo(n,i),x=a?a(D):D,M=f.length,O=a?U=>a(Ho(U[n.index])):n.index,K=null;if(!a&&s&&(K=oj(t,i,o,n.index)),K!==null){let U=K.__ngLastListenerFn__||K;U.__ngNextListenerFn__=r,K.__ngLastListenerFn__=r,v=!1}else{r=LD(n,i,r),TL(i,x,o,r);let U=e.listen(x,o,r);f.push(r,U),m&&m.push(o,O,M,M+1)}}else r=LD(n,i,r);if(v){let D=n.outputs?.[o],x=n.hostDirectiveOutputs?.[o];if(x&&x.length)for(let M=0;M(mp(!0),mV(i[ln],n));function ae(t){return F("",t,""),ae}function F(t,i,e){let n=qe(),o=_0(n,t,i,e);return o!==Ci&&FM(n,_r(),o),F}function wi(t,i,e,n,o){let r=qe(),a=kB(r,t,i,e,n,o);return a!==Ci&&FM(r,_r(),a),wi}function FM(t,i,e){let n=bS(i,t);pV(t[ln],n,e)}function H(t,i,e){XS(i)&&(i=i());let n=qe(),o=$a();if(Ki(n,o,i)){let r=nn(),a=jc();vp(r,a,n,t,i,n[ln],e,!1)}return H}function G(t,i){let e=XS(t);return e&&t.set(i),e}function W(t,i){let e=qe(),n=nn(),o=Yn();return AM(n,e,e[ln],o,t,i),W}var lj={};function v0(t){let i=nn(),e=qe(),n=t+vn,o=ml(i,n,128,null,null);return qr(o,!1),yS(i,e,n,lj),v0}function cj(t,i,e){let n=nn();if(n.firstCreatePass){let o=Uo(t);rb(e,n.data,n.blueprint,o,!0),rb(i,n.data,n.blueprint,o,!1)}}function rb(t,i,e,n,o){if(t=Fn(t),Array.isArray(t))for(let r=0;r>20;if(Ks(t)||!t.multi){let x=new za(m,o,y),M=av(c,i,o?f:f+D,v);M===-1?(bv(Lm(s,a),r,c),rv(r,t,i.length),i.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(x),a.push(x)):(e[M]=x,a[M]=x)}else{let x=av(c,i,f+D,v),M=av(c,i,f,f+D),O=x>=0&&e[x],K=M>=0&&e[M];if(o&&!K||!o&&!O){bv(Lm(s,a),r,c);let U=mj(o?uj:dj,e.length,o,n,m);!o&&K&&(e[M].providerFactory=U),rv(r,t,i.length,0),i.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(U),a.push(U)}else{let U=NM(e[o?M:x],m,!o&&n);rv(r,t,x>-1?x:M,U)}!o&&n&&K&&e[M].componentProviders++}}}function rv(t,i,e,n){let o=Ks(i),r=s2(i);if(o||r){let c=(r?Fn(i.useClass):i).prototype.ngOnDestroy;if(c){let m=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){let f=m.indexOf(e);f===-1?m.push(e,[n,c]):m[f+1].push(n,c)}else m.push(e,c)}}}function NM(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function av(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>cj(n,o?o(t):t,i)}}function LM(t,i,e){let n=t.\u0275cmp;n.directiveDefs=Ym(i,!1),n.pipeDefs=Ym(e,!0)}function pl(t,i,e){let n=Bc()+t,o=qe();return o[n]===Ci?d0(o,n,e?i.call(e):i()):CB(o,n)}function Qn(t,i,e,n){return BM(qe(),Bc(),t,i,e,n)}function Mp(t,i,e,n,o){return jM(qe(),Bc(),t,i,e,n,o)}function VM(t,i){let e=t[i];return e===Ci?void 0:e}function BM(t,i,e,n,o,r){let a=i+e;return Ki(t,a,o)?d0(t,a+1,r?n.call(r,o):n(o)):VM(t,a+1)}function jM(t,i,e,n,o,r,a){let s=i+e;return gM(t,s,o,r)?d0(t,s+2,a?n.call(a,o,r):n(o,r)):VM(t,s+2)}function dt(t,i){let e=nn(),n,o=t+vn;e.firstCreatePass?(n=pj(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=Fa(n.type,!0)),a,s=fi(y);try{let c=Nm(!1),m=r();return Nm(c),yS(e,qe(),o,m),m}finally{fi(s)}}function pj(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function vt(t,i,e){let n=t+vn,o=qe(),r=Db(o,n);return zM(o,n)?BM(o,Bc(),i,r.transform,e,r):r.transform(e)}function b0(t,i,e,n){let o=t+vn,r=qe(),a=Db(r,o);return zM(r,o)?jM(r,Bc(),i,a.transform,e,n,a):a.transform(e,n)}function zM(t,i){return t[it].data[i].pure}function Qa(t,i){return wp(t,i)}var bm=null;function hj(t){bm!==null&&(t.defaultEncapsulation!==bm.defaultEncapsulation||t.preserveWhitespaces!==bm.preserveWhitespaces)||(bm=t)}var Ga=class{full;major;minor;patch;constructor(i){this.full=i;let e=i.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}},y0=new Ga("19.2.15"),sb=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},UM=(()=>{class t{compileModuleSync(e){return new qm(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),o=aS(e),r=SE(o.declarations).reduce((a,s)=>{let c=Gr(s);return c&&a.push(new Ha(c)),a},[]);return new sb(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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fj=new R("");function gj(t,i,e){let n=new qm(e);return Promise.resolve(n)}function jD(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var _j=(()=>{class t{zone=p(ie);changeDetectionScheduler=p(Ua);applicationRef=p(ni);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function vj({ngZoneFactory:t,ignoreChangesOutsideZone:i,scheduleInRootZone:e}){return t??=()=>new ie(Qe(V({},HM()),{scheduleInRootZone:e})),[{provide:ie,useFactory:t},{provide:Qs,multi:!0,useFactory:()=>{let n=p(_j,{optional:!0});return()=>n.initialize()}},{provide:Qs,multi:!0,useFactory:()=>{let n=p(bj);return()=>{n.initialize()}}},i===!0?{provide:$S,useValue:!0}:[],{provide:qS,useValue:e??GS}]}function HM(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var bj=(()=>{class t{subscription=new be;initialized=!1;zone=p(ie);pendingTasks=p(br);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(()=>{ie.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ie.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var yj=(()=>{class t{appRef=p(ni);taskService=p(br);ngZone=p(ie);zonelessEnabled=p(Lb);tracing=p(dl,{optional:!0});disableScheduling=p($S,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new be;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Bm):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(qS,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof jm||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let n=!1;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,n=!0;break}case 12:{this.appRef.dirtyFlags|=16,n=!0;break}case 13:{this.appRef.dirtyFlags|=2,n=!0;break}case 11:{n=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(n))return;let o=this.useMicrotaskScheduler?uD:YS;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Bm+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){throw this.taskService.remove(e),n}finally{this.cleanup()}this.useMicrotaskScheduler=!0,uD(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Cj(){return typeof $localize<"u"&&$localize.locale||Jm}var qc=new R("",{providedIn:"root",factory:()=>p(qc,lt.Optional|lt.SkipSelf)||Cj()});var ep=new R(""),wj=new R("");function Sc(t){return!t.moduleRef}function xj(t){let i=Sc(t)?t.r3Injector:t.moduleRef.injector,e=i.get(ie);return e.run(()=>{Sc(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(ti,null),o;if(e.runOutsideAngular(()=>{o=e.onError.subscribe({next:r=>{n.handleError(r)}})}),Sc(t)){let r=()=>i.destroy(),a=t.platformInjector.get(ep);a.add(r),i.onDestroy(()=>{o.unsubscribe(),a.delete(r)})}else{let r=()=>t.moduleRef.destroy(),a=t.platformInjector.get(ep);a.add(r),t.moduleRef.onDestroy(()=>{Dm(t.allPlatformModules,t.moduleRef),o.unsubscribe(),a.delete(r)})}return Sj(n,e,()=>{let r=i.get(bM);return r.runInitializers(),r.donePromise.then(()=>{let a=i.get(qc,Jm);if(nj(a||Jm),!i.get(wj,!0))return Sc(t)?i.get(ni):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Sc(t)){let c=i.get(ni);return t.rootComponent!==void 0&&c.bootstrap(t.rootComponent),c}else return Dj(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function Dj(t,i){let e=t.injector.get(ni);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new Q(-403,!1);i.push(t)}function Sj(t,i,e){try{let n=e();return Zr(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}var WM=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let o=n?.scheduleInRootZone,r=()=>dL(n?.ngZone,Qe(V({},HM({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),a=n?.ignoreChangesOutsideZone,s=[vj({ngZoneFactory:r,ignoreChangesOutsideZone:a}),{provide:Ua,useExisting:yj}],c=aB(e.moduleType,this.injector,s);return xj({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let o=yM({},n);return gj(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 Q(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(ep,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(le(Ie))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),C0=null;function Ej(t){if(x0())throw new Q(400,!1);EB(),C0=t;let i=t.get(WM);return Ij(t),i}function w0(t,i,e=[]){let n=`Platform: ${i}`,o=new R(n);return(r=[])=>{let a=x0();if(!a){let s=[...e,...r,{provide:o,useValue:!0}];a=t?.(s)??Ej(Mj(s,n))}return Tj(o)}}function Mj(t=[],i){return Ie.create({name:i,providers:[{provide:rp,useValue:"platform"},{provide:ep,useValue:new Set([()=>C0=null])},...t]})}function Tj(t){let i=x0();if(!i)throw new Q(401,!1);return i}function x0(){return C0?.get(WM)??null}function Ij(t){let i=t.get(jb,null);vi(t,()=>{i?.forEach(e=>e())})}var De=(()=>{class t{static __NG_ELEMENT_ID__=kj}return t})();function kj(t){return Aj(Yn(),qe(),(t&16)===16)}function Aj(t,i,e){if(rl(t)&&!e){let n=Wo(t.index,i);return new Pc(n,n)}else if(t.type&175){let n=i[Oi];return new Pc(n,i)}return null}var lb=class{constructor(){}supports(i){return fM(i)}create(i){return new cb(i)}},Rj=(t,i)=>i,cb=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||Rj}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 db(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 tp),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 tp),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}},db=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}},ub=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}},tp=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new ub,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 zD(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 hb(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))}},hb=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function UD(){return new Sr([new lb])}var Sr=(()=>{class t{factories;static \u0275prov=L({token:t,providedIn:"root",factory:UD});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:n=>t.create(e,n||UD()),deps:[[t,new hr,new Co]]}}find(e){let n=this.factories.find(o=>o.supports(e));if(n!=null)return n;throw new Q(901,!1)}}return t})();function HD(){return new Tp([new mb])}var Tp=(()=>{class t{static \u0275prov=L({token:t,providedIn:"root",factory:HD});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:n=>t.create(e,n||HD()),deps:[[t,new hr,new Co]]}}find(e){let n=this.factories.find(o=>o.supports(e));if(n)return n;throw new Q(901,!1)}}return t})();var GM=w0(null,"core",[]),$M=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(le(ni))};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function $(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Zt(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}function xi(t){return M_(t)}function Qo(t,i){return Fu(t,i?.equal)}var fb=class{[hi];constructor(i){this[hi]=i}destroy(){this[hi].destroy()}};function Yc(t,i){!i?.injector&&Cb(Yc);let e=i?.injector??p(Ie),n=i?.manualCleanup!==!0?e.get(Yr):null,o,r=e.get(Ub,null,{optional:!0}),a=e.get(Ua);return r!==null&&!i?.forceRoot?(o=Fj(r.view,a,t),n instanceof Vm&&n._lView===r.view&&(n=null)):o=Nj(t,e.get(_M),a),o.injector=e,n!==null&&(o.onDestroyFn=n.onDestroy(()=>o.destroy())),new fb(o)}var qM=Qe(V({},Os),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:Rc,run(){if(this.dirty=!1,this.hasRun&&!Ru(this))return;this.hasRun=!0;let t=n=>(this.cleanupFns??=[]).push(n),i=fc(this),e=Om(!1);try{this.maybeCleanup(),this.fn(t)}finally{Om(e),Au(this,i)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),Oj=Qe(V({},qM),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){gc(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),Pj=Qe(V({},qM),{consumerMarkedDirty(){this.view[Je]|=8192,sl(this.view),this.notifier.notify(13)},destroy(){gc(this),this.onDestroyFn(),this.maybeCleanup(),this.view[La]?.delete(this)}});function Fj(t,i,e){let n=Object.create(Pj);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=e,t[La]??=new Set,t[La].add(n),n.consumerMarkedDirty(n),n}function Nj(t,i,e){let n=Object.create(Oj);return n.fn=t,n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.schedule(n),n.notifier.notify(12),n}function Ip(t,i){let e=Gr(t),n=i.elementInjector||ap();return new Ha(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector)}function YM(t){let i=Gr(t);if(!i)return null;let e=new Ha(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 he=new R("");var ZM=null;function Pi(){return ZM}function D0(t){ZM??=t}var Qc=class{},Kc=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:()=>p(XM),providedIn:"platform"})}return t})(),S0=new R(""),XM=(()=>{class t extends Kc{_location;_history;_doc=p(he);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Pi().getBaseHref(this._doc)}onPopState(e){let n=Pi().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=Pi().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=L({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function kp(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function QM(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function wo(t){return t&&t[0]!=="?"?`?${t}`:t}var xo=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:()=>p(Rp),providedIn:"root"})}return t})(),Ap=new R(""),Rp=(()=>{class t extends xo{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??p(he).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 kp(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+wo(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+wo(r));this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+wo(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)(le(Kc),le(Ap,8))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ko=(()=>{class t{_subject=new z;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=Bj(QM(KM(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+wo(n))}normalize(e){return t.stripTrailingSlash(Vj(this._basePath,KM(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+wo(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+wo(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=wo;static joinWithSlash=kp;static stripTrailingSlash=QM;static \u0275fac=function(n){return new(n||t)(le(xo))};static \u0275prov=L({token:t,factory:()=>Lj(),providedIn:"root"})}return t})();function Lj(){return new Ko(le(xo))}function Vj(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function KM(t){return t.replace(/\/index.html$/,"")}function Bj(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var I0=(()=>{class t extends xo{_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=kp(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+wo(r))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+wo(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)(le(Kc),le(Ap,8))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();var E0=/\s+/,JM=[],ii=(()=>{class t{_ngEl;_renderer;initialClasses=JM;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(E0):JM}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(E0):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(E0).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)(y(Z),y(kt))};static \u0275dir=B({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var k0=(()=>{class t{_viewContainer;_context=new Op;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,n){this._viewContainer=e,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){e1(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){e1(e,!1),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(y(Rt),y(St))};static \u0275dir=B({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),Op=class{$implicit=null;ngIf=null};function e1(t,i){if(t&&!t.createEmbeddedView)throw new Q(2020,!1)}var Zc=(()=>{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:$o.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)(y(Z),y(Tp),y(kt))};static \u0275dir=B({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Xc=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;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.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)(y(Rt))};static \u0275dir=B({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[je]})}return t})();function jj(t,i){return new Q(2100,!1)}var M0=class{createSubscription(i,e){return xi(()=>i.subscribe({next:e,error:n=>{throw n}}))}dispose(i){xi(()=>i.unsubscribe())}},T0=class{createSubscription(i,e){return i.then(n=>e?.(n),n=>{throw n}),{unsubscribe:()=>{e=null}}}dispose(i){i.unsubscribe()}},zj=new T0,Uj=new M0,Jc=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;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))}_selectStrategy(e){if(Zr(e))return zj;if(h0(e))return Uj;throw jj(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)(y(De,16))};static \u0275pipe=Yo({name:"async",type:t,pure:!1})}return t})();function Hj(t,i){return{key:t,value:i}}var A0=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=t1;transform(e,n=t1){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(Hj(a.key,a.currentValue))})),(o||r)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(y(Tp,16))};static \u0275pipe=Yo({name:"keyvalue",type:t,pure:!1})}return t})();function t1(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=ee({type:t});static \u0275inj=J({})}return t})();function ed(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 Pp="browser",n1="server";function R0(t){return t===Pp}function Fp(t){return t===n1}var Za=class{};var i1=(()=>{class t{static \u0275prov=L({token:t,providedIn:"root",factory:()=>new O0(p(he),window)})}return t})(),O0=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){this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){let e=Gj(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){this.window.history.scrollRestoration=i}scrollToElement(i){let e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],o-r[1])}};function Gj(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 Vp=new R(""),L0=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}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 Q(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(le(Vp),le(ie))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),td=class{_doc;constructor(i){this._doc=i}manager},Np="ng-app-id";function o1(t){for(let i of t)i.remove()}function r1(t,i){let e=i.createElement("style");return e.textContent=t,e}function $j(t,i,e,n){let o=t.head?.querySelectorAll(`style[${Np}="${i}"],link[${Np}="${i}"]`);if(o)for(let r of o)r.removeAttribute(Np),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 F0(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var V0=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,n,o,r={}){this.doc=e,this.appId=n,this.nonce=o,this.isServer=Fp(r),$j(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let o of e)this.addUsage(o,this.inline,r1);n?.forEach(o=>this.addUsage(o,this.external,F0))}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&&(o1(o.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])o1(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:o}]of this.inline)o.push(this.addElement(e,r1(n,this.doc)));for(let[n,{elements:o}]of this.external)o.push(this.addElement(e,F0(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(Np,this.appId),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(le(he),le(qa),le(zc,8),le(Kr))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),P0={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"},B0=/%COMP%/g;var s1="%COMP%",qj=`_nghost-${s1}`,Yj=`_ngcontent-${s1}`,Qj=!0,Kj=new R("",{providedIn:"root",factory:()=>Qj});function Zj(t){return Yj.replace(B0,t)}function Xj(t){return qj.replace(B0,t)}function l1(t,i){return i.map(e=>e.replace(B0,t))}var od=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,o,r,a,s,c,m=null,f=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.platformId=s,this.ngZone=c,this.nonce=m,this.tracingService=f,this.platformIsServer=Fp(s),this.defaultRenderer=new nd(e,a,c,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Go.ShadowDom&&(n=Qe(V({},n),{encapsulation:Go.Emulated}));let o=this.getOrCreateRenderer(e,n);return o instanceof Lp?o.applyToHost(e):o instanceof id&&o.applyStyles(),o}getOrCreateRenderer(e,n){let o=this.rendererByCompId,r=o.get(n.id);if(!r){let a=this.doc,s=this.ngZone,c=this.eventManager,m=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,v=this.platformIsServer,D=this.tracingService;switch(n.encapsulation){case Go.Emulated:r=new Lp(c,m,n,this.appId,f,a,s,v,D);break;case Go.ShadowDom:return new N0(c,m,e,n,a,s,this.nonce,v,D);default:r=new id(c,m,n,f,a,s,v,D);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)(le(L0),le(V0),le(qa),le(Kj),le(he),le(Kr),le(ie),le(zc),le(dl,8))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),nd=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,o,r){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=o,this.tracingService=r}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(P0[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(a1(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(a1(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 Q(-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=P0[o];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let o=P0[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&($o.DashCase|$o.Important)?i.style.setProperty(e,n,o&$o.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&$o.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=Pi().getGlobalEventTarget(this.doc,i),!i))throw new Q(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;(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))===!1&&e.preventDefault()}}};function a1(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var N0=class extends nd{sharedStylesHost;hostEl;shadowRoot;constructor(i,e,n,o,r,a,s,c,m){super(i,r,a,c,m),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let f=o.styles;f=l1(o.id,f);for(let D of f){let x=document.createElement("style");s&&x.setAttribute("nonce",s),x.textContent=D,this.shadowRoot.appendChild(x)}let v=o.getExternalStyles?.();if(v)for(let D of v){let x=F0(D,r);s&&x.setAttribute("nonce",s),this.shadowRoot.appendChild(x)}}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.removeHost(this.shadowRoot)}},id=class extends nd{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,o,r,a,s,c,m){super(i,r,a,s,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let f=n.styles;this.styles=m?l1(m,f):f,this.styleUrls=n.getExternalStyles?.(m)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Lp=class extends id{contentAttr;hostAttr;constructor(i,e,n,o,r,a,s,c,m){let f=o+"-"+n.id;super(i,e,n,r,a,s,c,m,f),this.contentAttr=Zj(f),this.hostAttr=Xj(f)}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 Bp=class t extends Qc{supportsDOMEvents=!0;static makeCurrent(){D0(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=Jj();return e==null?null:e4(e)}resetBaseElement(){rd=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return ed(document.cookie,i)}},rd=null;function Jj(){return rd=rd||document.head.querySelector("base"),rd?rd.getAttribute("href"):null}function e4(t){return new URL(t,document.baseURI).pathname}var jp=class{addToWindow(i){_i.getAngularTestability=(n,o=!0)=>{let r=i.findTestabilityInTree(n,o);if(r==null)throw new Q(5103,!1);return r},_i.getAllAngularTestabilities=()=>i.getAllTestabilities(),_i.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let o=_i.getAllAngularTestabilities(),r=o.length,a=function(){r--,r==0&&n()};o.forEach(s=>{s.whenStable(a)})};_i.frameworkStabilizers||(_i.frameworkStabilizers=[]),_i.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let o=i.getTestability(e);return o??(n?Pi().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},t4=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),d1=(()=>{class t extends td{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)(le(he))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),c1=["alt","control","meta","shift"],n4={"\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"},i4={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},u1=(()=>{class t extends td{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(()=>Pi().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."),c1.forEach(m=>{let f=n.indexOf(m);f>-1&&(n.splice(f,1),a+=m+".")}),a+=r,n.length!=0||r.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(e,n){let o=n4[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"),c1.forEach(a=>{if(a!==o){let s=i4[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)(le(he))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();function o4(){Bp.makeCurrent()}function r4(){return new ti}function a4(){return rE(document),document}var s4=[{provide:Kr,useValue:Pp},{provide:jb,useValue:o4,multi:!0},{provide:he,useFactory:a4}],j0=w0(GM,"browser",s4);var l4=[{provide:$c,useClass:jp},{provide:m0,useClass:Sp,deps:[ie,Ep,$c]},{provide:Sp,useClass:Sp,deps:[ie,Ep,$c]}],c4=[{provide:rp,useValue:"root"},{provide:ti,useFactory:r4},{provide:Vp,useClass:d1,multi:!0,deps:[he]},{provide:Vp,useClass:u1,multi:!0,deps:[he]},od,V0,L0,{provide:hn,useExisting:od},{provide:Za,useClass:t4},[]],ad=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[...c4,...l4],imports:[Ka,$M]})}return t})();var fl=class{},sd=class{},oi=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 Up=class{encodeKey(i){return m1(i)}encodeValue(i){return m1(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function d4(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))],c=e.get(a)||[];c.push(s),e.set(a,c)}),e}var u4=/%(\d[a-f0-9])/gi,m4={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function m1(t){return encodeURIComponent(t).replace(u4,(i,e)=>m4[e]??i)}function zp(t){return`${t}`}var Er=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Up,i.fromString){if(i.fromObject)throw new Q(2805,!1);this.map=d4(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(zp):[zp(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(zp(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(zp(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)}};var Hp=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()}};function p4(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function p1(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function h1(t){return typeof Blob<"u"&&t instanceof Blob}function f1(t){return typeof FormData<"u"&&t instanceof FormData}function h4(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var g1="Content-Type",_1="Accept",b1="X-Request-URL",y1="text/plain",C1="application/json",f4=`${C1}, ${y1}, */*`,hl=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(i,e,n,o){this.url=e,this.method=i.toUpperCase();let r;if(p4(this.method)||o?(this.body=n!==void 0?n:null,r=o):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new oi,this.context??=new Hp,!this.params)this.params=new Er,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),c=s===-1?"?":sD.set(x,i.setHeaders[x]),m)),i.setParams&&(f=Object.keys(i.setParams).reduce((D,x)=>D.set(x,i.setParams[x]),f)),new t(e,n,a,{params:f,headers:m,context:v,reportProgress:c,responseType:o,withCredentials:s,transferCache:r})}},Ja=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}(Ja||{}),gl=class{headers;status;statusText;url;ok;type;constructor(i,e=200,n="OK"){this.headers=i.headers||new oi,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}},Wp=class t extends gl{constructor(i={}){super(i)}type=Ja.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})}},ld=class t extends gl{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Ja.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})}},cd=class extends gl{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}},g4=200,_4=204;function z0(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,transferCache:t.transferCache}}var _l=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,o={}){let r;if(e instanceof hl)r=e;else{let c;o.headers instanceof oi?c=o.headers:c=new oi(o.headers);let m;o.params&&(o.params instanceof Er?m=o.params:m=new Er({fromObject:o.params})),r=new hl(e,n,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:m,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=se(r).pipe(Vo(c=>this.handler.handle(c)));if(e instanceof hl||o.observe==="events")return a;let s=a.pipe(Ke(c=>c instanceof ld));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(pe(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Q(2806,!1);return c.body}));case"blob":return s.pipe(pe(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Q(2807,!1);return c.body}));case"text":return s.pipe(pe(c=>{if(c.body!==null&&typeof c.body!="string")throw new Q(2808,!1);return c.body}));case"json":default:return s.pipe(pe(c=>c.body))}case"response":return s;default:throw new Q(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 Er().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,z0(o,n))}post(e,n,o={}){return this.request("POST",e,z0(o,n))}put(e,n,o={}){return this.request("PUT",e,z0(o,n))}static \u0275fac=function(n){return new(n||t)(le(fl))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();var v4=new R("");function w1(t,i){return i(t)}function b4(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}function y4(t,i,e){return(n,o)=>vi(e,()=>i(n,r=>t(r,o)))}var x1=new R(""),H0=new R(""),D1=new R(""),W0=new R("",{providedIn:"root",factory:()=>!0});function C4(){let t=null;return(i,e)=>{t===null&&(t=(p(x1,{optional:!0})??[]).reduceRight(b4,w1));let n=p(br);if(p(W0)){let r=n.add();return t(i,e).pipe(Bo(()=>n.remove(r)))}else return t(i,e)}}var Gp=(()=>{class t extends fl{backend;injector;chain=null;pendingTasks=p(br);contributeToStability=p(W0);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(H0),...this.injector.get(D1,[])]));this.chain=n.reduceRight((o,r)=>y4(o,r,this.injector),w1)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Bo(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(le(sd),le(sn))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();var w4=/^\)\]\}',?\n/,x4=RegExp(`^${b1}:`,"m");function D4(t){return"responseURL"in t&&t.responseURL?t.responseURL:x4.test(t.getAllResponseHeaders())?t.getResponseHeader(b1):null}var U0=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new Q(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?zt(n.\u0275loadImpl()):se(null)).pipe(Dt(()=>new Fe(r=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((O,K)=>a.setRequestHeader(O,K.join(","))),e.headers.has(_1)||a.setRequestHeader(_1,f4),!e.headers.has(g1)){let O=e.detectContentTypeHeader();O!==null&&a.setRequestHeader(g1,O)}if(e.responseType){let O=e.responseType.toLowerCase();a.responseType=O!=="json"?O:"text"}let s=e.serializeBody(),c=null,m=()=>{if(c!==null)return c;let O=a.statusText||"OK",K=new oi(a.getAllResponseHeaders()),U=D4(a)||e.url;return c=new Wp({headers:K,status:a.status,statusText:O,url:U}),c},f=()=>{let{headers:O,status:K,statusText:U,url:Xe}=m(),gt=null;K!==_4&&(gt=typeof a.response>"u"?a.responseText:a.response),K===0&&(K=gt?g4:0);let pn=K>=200&&K<300;if(e.responseType==="json"&&typeof gt=="string"){let Lr=gt;gt=gt.replace(w4,"");try{gt=gt!==""?JSON.parse(gt):null}catch(Wi){gt=Lr,pn&&(pn=!1,gt={error:Wi,text:gt})}}pn?(r.next(new ld({body:gt,headers:O,status:K,statusText:U,url:Xe||void 0})),r.complete()):r.error(new cd({error:gt,headers:O,status:K,statusText:U,url:Xe||void 0}))},v=O=>{let{url:K}=m(),U=new cd({error:O,status:a.status||0,statusText:a.statusText||"Unknown Error",url:K||void 0});r.error(U)},D=!1,x=O=>{D||(r.next(m()),D=!0);let K={type:Ja.DownloadProgress,loaded:O.loaded};O.lengthComputable&&(K.total=O.total),e.responseType==="text"&&a.responseText&&(K.partialText=a.responseText),r.next(K)},M=O=>{let K={type:Ja.UploadProgress,loaded:O.loaded};O.lengthComputable&&(K.total=O.total),r.next(K)};return a.addEventListener("load",f),a.addEventListener("error",v),a.addEventListener("timeout",v),a.addEventListener("abort",v),e.reportProgress&&(a.addEventListener("progress",x),s!==null&&a.upload&&a.upload.addEventListener("progress",M)),a.send(s),r.next({type:Ja.Sent}),()=>{a.removeEventListener("error",v),a.removeEventListener("abort",v),a.removeEventListener("load",f),a.removeEventListener("timeout",v),e.reportProgress&&(a.removeEventListener("progress",x),s!==null&&a.upload&&a.upload.removeEventListener("progress",M)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(n){return new(n||t)(le(Za))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),S1=new R(""),S4="XSRF-TOKEN",E4=new R("",{providedIn:"root",factory:()=>S4}),M4="X-XSRF-TOKEN",T4=new R("",{providedIn:"root",factory:()=>M4}),dd=class{},I4=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n){this.doc=e,this.cookieName=n}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=ed(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(le(he),le(E4))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();function k4(t,i){let e=t.url.toLowerCase();if(!p(S1)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return i(t);let n=p(dd).getToken(),o=p(T4);return n!=null&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),i(t)}var G0=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}(G0||{});function A4(t,i){return{\u0275kind:t,\u0275providers:i}}function $0(...t){let i=[_l,U0,Gp,{provide:fl,useExisting:Gp},{provide:sd,useFactory:()=>p(v4,{optional:!0})??p(U0)},{provide:H0,useValue:k4,multi:!0},{provide:S1,useValue:!0},{provide:dd,useClass:I4}];for(let e of t)i.push(...e.\u0275providers);return Vc(i)}var v1=new R("");function q0(){return A4(G0.LegacyInterceptors,[{provide:v1,useFactory:C4},{provide:H0,useExisting:v1,multi:!0}])}var M1=(()=>{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)(le(he))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var es=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=le(R4),o},providedIn:"root"})}return t})(),R4=(()=>{class t extends es{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Ln.NONE:return n;case Ln.HTML:return Cr(n,"HTML")?Zi(n):Wb(this._doc,String(n)).toString();case Ln.STYLE:return Cr(n,"Style")?Zi(n):n;case Ln.SCRIPT:if(Cr(n,"Script"))return Zi(n);throw new Q(5200,!1);case Ln.URL:return Cr(n,"URL")?Zi(n):fp(String(n));case Ln.RESOURCE_URL:if(Cr(n,"ResourceURL"))return Zi(n);throw new Q(5201,!1);default:throw new Q(5202,!1)}}bypassSecurityTrustHtml(e){return pE(e)}bypassSecurityTrustStyle(e){return hE(e)}bypassSecurityTrustScript(e){return fE(e)}bypassSecurityTrustUrl(e){return gE(e)}bypassSecurityTrustResourceUrl(e){return _E(e)}static \u0275fac=function(n){return new(n||t)(le(he))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var at="primary",Dd=Symbol("RouteTitle"),X0=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 is(t){return new X0(t)}function F1(t,i,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(i.hasChildren()||n.lengthn[r]===o)}else return t===i}function L1(t){return t.length>0?t[t.length-1]:null}function ia(t){return js(t)?t:Zr(t)?zt(Promise.resolve(t)):se(t)}var P4={exact:B1,subset:j1},V1={exact:F4,subset:N4,ignored:()=>!0};function T1(t,i,e){return P4[e.paths](t.root,i.root,e.matrixParams)&&V1[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function F4(t,i){return Zo(t,i)}function B1(t,i,e){if(!ts(t.segments,i.segments)||!Yp(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!B1(t.children[n],i.children[n],e))return!1;return!0}function N4(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>N1(t[e],i[e]))}function j1(t,i,e){return z1(t,i,i.segments,e)}function z1(t,i,e,n){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!ts(o,e)||i.hasChildren()||!Yp(o,e,n))}else if(t.segments.length===e.length){if(!ts(t.segments,e)||!Yp(t.segments,e,n))return!1;for(let o in i.children)if(!t.children[o]||!j1(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!ts(t.segments,o)||!Yp(t.segments,o,n)||!t.children[at]?!1:z1(t.children[at],i,r,n)}}function Yp(t,i,e){return i.every((n,o)=>V1[e](t[o].parameters,n.parameters))}var Jo=class{root;queryParams;fragment;_queryParamMap;constructor(i=new Ot([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=is(this.queryParams),this._queryParamMap}toString(){return B4.serialize(this)}},Ot=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 Qp(this)}},Jr=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=is(this.parameters),this._parameterMap}toString(){return H1(this)}};function L4(t,i){return ts(t,i)&&t.every((e,n)=>Zo(e.parameters,i[n].parameters))}function ts(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function V4(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===at&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==at&&(e=e.concat(i(o,n)))}),e}var os=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:()=>new ea,providedIn:"root"})}return t})(),ea=class{parse(i){let e=new ty(i);return new Jo(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${md(i.root,!0)}`,n=U4(i.queryParams),o=typeof i.fragment=="string"?`#${j4(i.fragment)}`:"";return`${e}${n}${o}`}},B4=new ea;function Qp(t){return t.segments.map(i=>H1(i)).join("/")}function md(t,i){if(!t.hasChildren())return Qp(t);if(i){let e=t.children[at]?md(t.children[at],!1):"",n=[];return Object.entries(t.children).forEach(([o,r])=>{o!==at&&n.push(`${o}:${md(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=V4(t,(n,o)=>o===at?[md(t.children[at],!1)]:[`${o}:${md(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[at]!=null?`${Qp(t)}/${e[0]}`:`${Qp(t)}/(${e.join("//")})`}}function U1(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function $p(t){return U1(t).replace(/%3B/gi,";")}function j4(t){return encodeURI(t)}function ey(t){return U1(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Kp(t){return decodeURIComponent(t)}function I1(t){return Kp(t.replace(/\+/g,"%20"))}function H1(t){return`${ey(t.path)}${z4(t.parameters)}`}function z4(t){return Object.entries(t).map(([i,e])=>`;${ey(i)}=${ey(e)}`).join("")}function U4(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(o=>`${$p(e)}=${$p(o)}`).join("&"):`${$p(e)}=${$p(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var H4=/^[^\/()?;#]+/;function Y0(t){let i=t.match(H4);return i?i[0]:""}var W4=/^[^\/()?;=#]+/;function G4(t){let i=t.match(W4);return i?i[0]:""}var $4=/^[^=?&#]+/;function q4(t){let i=t.match($4);return i?i[0]:""}var Y4=/^[^&#]+/;function Q4(t){let i=t.match(Y4);return i?i[0]:""}var ty=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ot([],{}):new Ot([],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(){if(this.remaining==="")return{};this.consumeOptional("/");let i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[at]=new Ot(i,e)),n}parseSegment(){let i=Y0(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new Q(4009,!1);return this.capture(i),new Jr(Kp(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=G4(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=Y0(this.remaining);o&&(n=o,this.capture(n))}i[Kp(e)]=Kp(n)}parseQueryParam(i){let e=q4(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=Q4(this.remaining);a&&(n=a,this.capture(n))}let o=I1(e),r=I1(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){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Y0(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new Q(4010,!1);let r;n.indexOf(":")>-1?(r=n.slice(0,n.indexOf(":")),this.capture(r),this.capture(":")):i&&(r=at);let a=this.parseChildren();e[r]=Object.keys(a).length===1?a[at]:new Ot([],a),this.consumeOptional("//")}return e}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 Q(4011,!1)}};function W1(t){return t.segments.length>0?new Ot([],{[at]:t}):t}function G1(t){let i={};for(let[n,o]of Object.entries(t.children)){let r=G1(o);if(n===at&&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 Ot(t.segments,i);return K4(e)}function K4(t){if(t.numberOfChildren===1&&t.children[at]){let i=t.children[at];return new Ot(t.segments.concat(i.segments),i.children)}return t}function ta(t){return t instanceof Jo}function $1(t,i,e=null,n=null){let o=q1(t);return Y1(o,i,e,n)}function q1(t){let i;function e(r){let a={};for(let c of r.children){let m=e(c);a[c.outlet]=m}let s=new Ot(r.url,a);return r===t&&(i=s),s}let n=e(t.root),o=W1(n);return i??o}function Y1(t,i,e,n){let o=t;for(;o.parent;)o=o.parent;if(i.length===0)return Q0(o,o,o,e,n);let r=Z4(i);if(r.toRoot())return Q0(o,o,new Ot([],{}),e,n);let a=X4(r,o,t),s=a.processChildren?hd(a.segmentGroup,a.index,r.commands):K1(a.segmentGroup,a.index,r.commands);return Q0(o,a.segmentGroup,s,e,n)}function Xp(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function gd(t){return typeof t=="object"&&t!=null&&t.outlets}function Q0(t,i,e,n,o){let r={};n&&Object.entries(n).forEach(([c,m])=>{r[c]=Array.isArray(m)?m.map(f=>`${f}`):`${m}`});let a;t===i?a=e:a=Q1(t,i,e);let s=W1(G1(a));return new Jo(s,r,o)}function Q1(t,i,e){let n={};return Object.entries(t.children).forEach(([o,r])=>{r===i?n[o]=e:n[o]=Q1(r,i,e)}),new Ot(t.segments,n)}var Jp=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Xp(n[0]))throw new Q(4003,!1);let o=n.find(gd);if(o&&o!==L1(n))throw new Q(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Z4(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Jp(!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(([c,m])=>{s[c]=typeof m=="string"?m.split("/"):m}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return typeof r!="string"?[...o,r]:a===0?(r.split("/").forEach((s,c)=>{c==0&&s==="."||(c==0&&s===""?e=!0:s===".."?i++:s!=""&&o.push(s))}),o):[...o,r]},[]);return new Jp(e,i,n)}var yl=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function X4(t,i,e){if(t.isAbsolute)return new yl(i,!0,0);if(!e)return new yl(i,!1,NaN);if(e.parent===null)return new yl(e,!0,0);let n=Xp(t.commands[0])?0:1,o=e.segments.length-1+n;return J4(e,o,t.numberOfDoubleDots)}function J4(t,i,e){let n=t,o=i,r=e;for(;r>o;){if(r-=o,n=n.parent,!n)throw new Q(4005,!1);o=n.segments.length}return new yl(n,!1,o-r)}function ez(t){return gd(t[0])?t[0].outlets:{[at]:t}}function K1(t,i,e){if(t??=new Ot([],{}),t.segments.length===0&&t.hasChildren())return hd(t,i,e);let n=tz(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexr!==at)&&t.children[at]&&t.numberOfChildren===1&&t.children[at].segments.length===0){let r=hd(t.children[at],i,e);return new Ot(t.segments,r.children)}return Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=K1(t.children[r],i,a))}),Object.entries(t.children).forEach(([r,a])=>{n[r]===void 0&&(o[r]=a)}),new Ot(t.segments,o)}}function tz(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(gd(s))break;let c=`${s}`,m=n0&&c===void 0)break;if(c&&m&&typeof m=="object"&&m.outlets===void 0){if(!A1(c,m,a))return r;n+=2}else{if(!A1(c,{},a))return r;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function ny(t,i,e){let n=t.segments.slice(0,i),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=ny(new Ot([],{}),0,n))}),i}function k1(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function A1(t,i,e){return t==e.path&&Zo(i,e.parameters)}var Zp="imperative",Tn=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}(Tn||{}),Ni=class{id;url;constructor(i,e){this.id=i,this.url=e}},na=class extends Ni{type=Tn.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}')`}},Xi=class extends Ni{urlAfterRedirects;type=Tn.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Di=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Di||{}),wl=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(wl||{}),Xo=class extends Ni{reason;code;type=Tn.NavigationCancel;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},er=class extends Ni{reason;code;type=Tn.NavigationSkipped;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}},xl=class extends Ni{error;target;type=Tn.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})`}},_d=class extends Ni{urlAfterRedirects;state;type=Tn.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})`}},eh=class extends Ni{urlAfterRedirects;state;type=Tn.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})`}},th=class extends Ni{urlAfterRedirects;state;shouldActivate;type=Tn.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})`}},nh=class extends Ni{urlAfterRedirects;state;type=Tn.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})`}},ih=class extends Ni{urlAfterRedirects;state;type=Tn.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})`}},oh=class{route;type=Tn.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},rh=class{route;type=Tn.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ah=class{snapshot;type=Tn.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},sh=class{snapshot;type=Tn.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},lh=class{snapshot;type=Tn.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ch=class{snapshot;type=Tn.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Dl=class{routerEvent;position;anchor;type=Tn.Scroll;constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},vd=class{},Sl=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function iz(t,i){return t.providers&&!t._injector&&(t._injector=Gc(t.providers,i,`Route: ${t.path}`)),t._injector??i}function Do(t){return t.outlet||at}function oz(t,i){let e=t.filter(n=>Do(n)===i);return e.push(...t.filter(n=>Do(n)!==i)),e}function Sd(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){let e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var dh=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Sd(this.route?.snapshot)??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new rs(this.rootInjector)}},rs=(()=>{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 dh(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(le(sn))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uh=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=iy(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=iy(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=oy(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return oy(i,this._root).map(e=>e.value)}};function iy(t,i){if(t===i.value)return i;for(let e of i.children){let n=iy(t,e);if(n)return n}return null}function oy(t,i){if(t===i.value)return[i];for(let e of i.children){let n=oy(t,e);if(n.length)return n.unshift(i),n}return[]}var Fi=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function bl(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var bd=class extends uh{snapshot;constructor(i,e){super(i),this.snapshot=e,my(this,i)}toString(){return this.snapshot.toString()}};function Z1(t){let i=rz(t),e=new bt([new Jr("",{})]),n=new bt({}),o=new bt({}),r=new bt({}),a=new bt(""),s=new ke(e,n,r,a,o,at,t,i.root);return s.snapshot=i.root,new bd(new Fi(s,[]),i)}function rz(t){let i={},e={},n={},o="",r=new ns([],i,n,o,e,at,t,null,{});return new yd("",new Fi(r,[]))}var ke=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,c){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(pe(m=>m[Dd]))??se(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(pe(i=>is(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(pe(i=>is(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function mh(t,i,e="emptyOnly"){let n,{routeConfig:o}=t;return i!==null&&(e==="always"||o?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:V(V({},i.params),t.params),data:V(V({},i.data),t.data),resolve:V(V(V(V({},t.data),i.data),o?.data),t._resolvedData)}:n={params:V({},t.params),data:V({},t.data),resolve:V(V({},t.data),t._resolvedData??{})},o&&J1(o)&&(n.resolve[Dd]=o.title),n}var ns=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Dd]}constructor(i,e,n,o,r,a,s,c,m){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=c,this._resolve=m}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??=is(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=is(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}')`}},yd=class extends uh{url;constructor(i,e){super(e),this.url=i,my(this,e)}toString(){return X1(this._root)}};function my(t,i){i.value._routerState=t,i.children.forEach(e=>my(t,e))}function X1(t){let i=t.children.length>0?` { ${t.children.map(X1).join(", ")} } `:"";return`${t.value}${i}`}function K0(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Zo(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Zo(i.params,e.params)||t.paramsSubject.next(e.params),O4(i.url,e.url)||t.urlSubject.next(e.url),Zo(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function ry(t,i){let e=Zo(t.params,i.params)&&L4(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||ry(t.parent,i.parent))}function J1(t){return typeof t.title=="string"||t.title===null}var eT=new R(""),Ed=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=at;activateEvents=new k;deactivateEvents=new k;attachEvents=new k;detachEvents=new k;routerOutletData=KS(void 0);parentContexts=p(rs);location=p(Rt);changeDetector=p(De);inputBinder=p(Md,{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 Q(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Q(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Q(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 Q(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new ay(e,s,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:c,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=B({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[je]})}return t})(),ay=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===ke?this.route:i===rs?this.childContexts:i===eT?this.outletData:this.parent.get(i,e)}},Md=new R(""),py=(()=>{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=Ri([n.queryParams,n.params,n.data]).pipe(Dt(([r,a,s],c)=>(s=V(V(V({},r),a),s),c===0?se(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let a=YM(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=L({token:t,factory:t.\u0275fac})}return t})(),hy=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,o){n&1&&I(0,"router-outlet")},dependencies:[Ed],encapsulation:2})}return t})();function fy(t){let i=t.children&&t.children.map(fy),e=i?Qe(V({},t),{children:i}):V({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==at&&(e.component=hy),e}function az(t,i,e){let n=Cd(t,i._root,e?e._root:void 0);return new bd(n,i)}function Cd(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let o=sz(t,i,e);return new Fi(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=>Cd(t,s)),a}}let n=lz(i.value),o=i.children.map(r=>Cd(t,r));return new Fi(n,o)}}function sz(t,i,e){return i.children.map(n=>{for(let o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return Cd(t,n,o);return Cd(t,n)})}function lz(t){return new ke(new bt(t.url),new bt(t.params),new bt(t.queryParams),new bt(t.fragment),new bt(t.data),t.outlet,t.component,t)}var El=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},tT="ngNavigationCancelingError";function ph(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=ta(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=nT(!1,Di.Redirect);return o.url=e,o.navigationBehaviorOptions=n,o}function nT(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[tT]=!0,e.cancellationCode=i,e}function cz(t){return iT(t)&&ta(t.url)}function iT(t){return!!t&&t[tT]}var dz=(t,i,e,n)=>pe(o=>(new sy(i,o.targetRouterState,o.currentRouterState,e,n).activate(t),o)),sy=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),K0(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let o=bl(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=bl(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=bl(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=bl(e);i.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],n),this.forwardEvent(new ch(r.value.snapshot))}),i.children.length&&this.forwardEvent(new sh(i.value.snapshot))}activateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(K0(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),K0(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)}},hh=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},Cl=class{component;route;constructor(i,e){this.component=i,this.route=e}};function uz(t,i,e){let n=t._root,o=i?i._root:null;return pd(n,o,e,[n.value])}function mz(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function Tl(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!QD(t)?t:i.get(t):n}function pd(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=bl(i);return t.children.forEach(a=>{pz(a,r[a.value.outlet],e,n.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>fd(s,e.getContext(a),o)),o}function pz(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 c=hz(a,r,r.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new hh(n)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?pd(t,i,s?s.children:null,n,o):pd(t,i,e,n,o),c&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new Cl(s.outlet.component,a))}else a&&fd(i,s,o),o.canActivateChecks.push(new hh(n)),r.component?pd(t,null,s?s.children:null,n,o):pd(t,null,e,n,o);return o}function hz(t,i,e){if(typeof e=="function")return e(t,i);switch(e){case"pathParamsChange":return!ts(t.url,i.url);case"pathParamsOrQueryParamsChange":return!ts(t.url,i.url)||!Zo(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ry(t,i)||!Zo(t.queryParams,i.queryParams);case"paramsChange":default:return!ry(t,i)}}function fd(t,i,e){let n=bl(t),o=t.value;Object.entries(n).forEach(([r,a])=>{o.component?i?fd(a,i.children.getContext(r),e):fd(a,null,e):fd(a,i,e)}),o.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new Cl(i.outlet.component,o)):e.canDeactivateChecks.push(new Cl(null,o)):e.canDeactivateChecks.push(new Cl(null,o))}function Td(t){return typeof t=="function"}function fz(t){return typeof t=="boolean"}function gz(t){return t&&Td(t.canLoad)}function _z(t){return t&&Td(t.canActivate)}function vz(t){return t&&Td(t.canActivateChild)}function bz(t){return t&&Td(t.canDeactivate)}function yz(t){return t&&Td(t.canMatch)}function oT(t){return t instanceof go||t?.name==="EmptyError"}var qp=Symbol("INITIAL_VALUE");function Ml(){return Dt(t=>Ri(t.map(i=>i.pipe(wt(1),xt(qp)))).pipe(pe(i=>{for(let e of i)if(e!==!0){if(e===qp)return qp;if(e===!1||Cz(e))return e}return!0}),Ke(i=>i!==qp),wt(1)))}function Cz(t){return ta(t)||t instanceof El}function wz(t,i){return en(e=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return a.length===0&&r.length===0?se(Qe(V({},e),{guardsResult:!0})):xz(a,n,o,t).pipe(en(s=>s&&fz(s)?Dz(n,r,t,i):se(s)),pe(s=>Qe(V({},e),{guardsResult:s})))})}function xz(t,i,e,n){return zt(t).pipe(en(o=>Iz(o.component,o.route,e,i,n)),cr(o=>o!==!0,!0))}function Dz(t,i,e,n){return zt(i).pipe(Vo(o=>Lo(Ez(o.route.parent,n),Sz(o.route,n),Tz(t,o.path,e),Mz(t,o.route,e))),cr(o=>o!==!0,!0))}function Sz(t,i){return t!==null&&i&&i(new lh(t)),se(!0)}function Ez(t,i){return t!==null&&i&&i(new ah(t)),se(!0)}function Mz(t,i,e){let n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||n.length===0)return se(!0);let o=n.map(r=>qi(()=>{let a=Sd(i)??e,s=Tl(r,a),c=_z(s)?s.canActivate(i,t):vi(a,()=>s(i,t));return ia(c).pipe(cr())}));return se(o).pipe(Ml())}function Tz(t,i,e){let n=i[i.length-1],r=i.slice(0,i.length-1).reverse().map(a=>mz(a)).filter(a=>a!==null).map(a=>qi(()=>{let s=a.guards.map(c=>{let m=Sd(a.node)??e,f=Tl(c,m),v=vz(f)?f.canActivateChild(n,t):vi(m,()=>f(n,t));return ia(v).pipe(cr())});return se(s).pipe(Ml())}));return se(r).pipe(Ml())}function Iz(t,i,e,n,o){let r=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!r||r.length===0)return se(!0);let a=r.map(s=>{let c=Sd(i)??o,m=Tl(s,c),f=bz(m)?m.canDeactivate(t,i,e,n):vi(c,()=>m(t,i,e,n));return ia(f).pipe(cr())});return se(a).pipe(Ml())}function kz(t,i,e,n){let o=i.canLoad;if(o===void 0||o.length===0)return se(!0);let r=o.map(a=>{let s=Tl(a,t),c=gz(s)?s.canLoad(i,e):vi(t,()=>s(i,e));return ia(c)});return se(r).pipe(Ml(),rT(n))}function rT(t){return P_(Ut(i=>{if(typeof i!="boolean")throw ph(t,i)}),pe(i=>i===!0))}function Az(t,i,e,n){let o=i.canMatch;if(!o||o.length===0)return se(!0);let r=o.map(a=>{let s=Tl(a,t),c=yz(s)?s.canMatch(i,e):vi(t,()=>s(i,e));return ia(c)});return se(r).pipe(Ml(),rT(n))}var wd=class{segmentGroup;constructor(i){this.segmentGroup=i||null}},xd=class extends Error{urlTree;constructor(i){super(),this.urlTree=i}};function vl(t){return No(new wd(t))}function Rz(t){return No(new Q(4e3,!1))}function Oz(t){return No(nT(!1,Di.GuardRejected))}var ly=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return se(n);if(o.numberOfChildren>1||!o.children[at])return Rz(`${i.redirectTo}`);o=o.children[at]}}applyRedirectCommands(i,e,n,o,r){if(typeof e!="string"){let s=e,{queryParams:c,fragment:m,routeConfig:f,url:v,outlet:D,params:x,data:M,title:O}=o,K=vi(r,()=>s({params:x,data:M,queryParams:c,fragment:m,routeConfig:f,url:v,outlet:D,title:O}));if(K instanceof Jo)throw new xd(K);e=K}let a=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,n);if(e[0]==="/")throw new xd(a);return a}applyRedirectCreateUrlTree(i,e,n,o){let r=this.createSegmentGroup(i,e.root,n,o);return new Jo(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,c])=>{a[s]=this.createSegmentGroup(i,c,n,o)}),new Ot(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 Q(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}},cy={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Pz(t,i,e,n,o){let r=aT(t,i,e);return r.matched?(n=iz(i,n),Az(n,i,e,o).pipe(pe(a=>a===!0?r:V({},cy)))):se(r)}function aT(t,i,e){if(i.path==="**")return Fz(e);if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?V({},cy):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(i.matcher||F1)(e,t,i);if(!o)return V({},cy);let r={};Object.entries(o.posParams??{}).forEach(([s,c])=>{r[s]=c.path});let a=o.consumed.length>0?V(V({},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 Fz(t){return{matched:!0,parameters:t.length>0?L1(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function R1(t,i,e,n){return e.length>0&&Vz(t,e,n)?{segmentGroup:new Ot(i,Lz(n,new Ot(e,t.children))),slicedSegments:[]}:e.length===0&&Bz(t,e,n)?{segmentGroup:new Ot(t.segments,Nz(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new Ot(t.segments,t.children),slicedSegments:e}}function Nz(t,i,e,n){let o={};for(let r of e)if(gh(t,i,r)&&!n[Do(r)]){let a=new Ot([],{});o[Do(r)]=a}return V(V({},n),o)}function Lz(t,i){let e={};e[at]=i;for(let n of t)if(n.path===""&&Do(n)!==at){let o=new Ot([],{});e[Do(n)]=o}return e}function Vz(t,i,e){return e.some(n=>gh(t,i,n)&&Do(n)!==at)}function Bz(t,i,e){return e.some(n=>gh(t,i,n))}function gh(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function jz(t,i,e){return i.length===0&&!t.children[e]}var dy=class{};function zz(t,i,e,n,o,r,a="emptyOnly"){return new uy(t,i,e,n,o,a,r).recognize()}var Uz=31,uy=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,n,o,r,a,s){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new ly(this.urlSerializer,this.urlTree)}noMatchError(i){return new Q(4002,`'${i.segmentGroup}'`)}recognize(){let i=R1(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(i).pipe(pe(({children:e,rootSnapshot:n})=>{let o=new Fi(n,e),r=new yd("",o),a=$1(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){let e=new ns([],Object.freeze({}),Object.freeze(V({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),at,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,i,at,e).pipe(pe(n=>({children:n,rootSnapshot:e})),On(n=>{if(n instanceof xd)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof wd?this.noMatchError(n):n}))}processSegmentGroup(i,e,n,o,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(i,e,n,r):this.processSegment(i,e,n,n.segments,o,!0,r).pipe(pe(a=>a instanceof Fi?[a]:[]))}processChildren(i,e,n,o){let r=[];for(let a of Object.keys(n.children))a==="primary"?r.unshift(a):r.push(a);return zt(r).pipe(Vo(a=>{let s=n.children[a],c=oz(e,a);return this.processSegmentGroup(i,c,s,a,o)}),H_((a,s)=>(a.push(...s),a)),Ur(null),U_(),en(a=>{if(a===null)return vl(n);let s=sT(a);return Hz(s),se(s)}))}processSegment(i,e,n,o,r,a,s){return zt(e).pipe(Vo(c=>this.processSegmentAgainstRoute(c._injector??i,e,c,n,o,r,a,s).pipe(On(m=>{if(m instanceof wd)return se(null);throw m}))),cr(c=>!!c),On(c=>{if(oT(c))return jz(n,o,r)?se(new dy):vl(n);throw c}))}processSegmentAgainstRoute(i,e,n,o,r,a,s,c){return Do(n)!==a&&(a===at||!gh(o,r,n))?vl(o):n.redirectTo===void 0?this.matchSegmentAgainstRoute(i,o,n,r,a,c):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,r,a,c):vl(o)}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,r,a,s){let{matched:c,parameters:m,consumedSegments:f,positionalParamSegments:v,remainingSegments:D}=aT(e,o,r);if(!c)return vl(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Uz&&(this.allowRedirects=!1));let x=new ns(r,m,Object.freeze(V({},this.urlTree.queryParams)),this.urlTree.fragment,O1(o),Do(o),o.component??o._loadedComponent??null,o,P1(o)),M=mh(x,s,this.paramsInheritanceStrategy);x.params=Object.freeze(M.params),x.data=Object.freeze(M.data);let O=this.applyRedirects.applyRedirectCommands(f,o.redirectTo,v,x,i);return this.applyRedirects.lineralizeSegments(o,O).pipe(en(K=>this.processSegment(i,n,e,K.concat(D),a,!1,s)))}matchSegmentAgainstRoute(i,e,n,o,r,a){let s=Pz(e,n,o,i,this.urlSerializer);return n.path==="**"&&(e.children={}),s.pipe(Dt(c=>c.matched?(i=n._injector??i,this.getChildConfig(i,n,o).pipe(Dt(({routes:m})=>{let f=n._loadedInjector??i,{parameters:v,consumedSegments:D,remainingSegments:x}=c,M=new ns(D,v,Object.freeze(V({},this.urlTree.queryParams)),this.urlTree.fragment,O1(n),Do(n),n.component??n._loadedComponent??null,n,P1(n)),O=mh(M,a,this.paramsInheritanceStrategy);M.params=Object.freeze(O.params),M.data=Object.freeze(O.data);let{segmentGroup:K,slicedSegments:U}=R1(e,D,x,m);if(U.length===0&&K.hasChildren())return this.processChildren(f,m,K,M).pipe(pe(gt=>new Fi(M,gt)));if(m.length===0&&U.length===0)return se(new Fi(M,[]));let Xe=Do(n)===r;return this.processSegment(f,m,K,U,Xe?at:r,!0,M).pipe(pe(gt=>new Fi(M,gt instanceof Fi?[gt]:[])))}))):vl(e)))}getChildConfig(i,e,n){return e.children?se({routes:e.children,injector:i}):e.loadChildren?e._loadedRoutes!==void 0?se({routes:e._loadedRoutes,injector:e._loadedInjector}):kz(i,e,n,this.urlSerializer).pipe(en(o=>o?this.configLoader.loadChildren(i,e).pipe(Ut(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):Oz(e))):se({routes:[],injector:i})}};function Hz(t){t.sort((i,e)=>i.value.outlet===at?-1:e.value.outlet===at?1:i.value.outlet.localeCompare(e.value.outlet))}function Wz(t){let i=t.value.routeConfig;return i&&i.path===""}function sT(t){let i=[],e=new Set;for(let n of t){if(!Wz(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=sT(n.children);i.push(new Fi(n.value,o))}return i.filter(n=>!e.has(n))}function O1(t){return t.data||{}}function P1(t){return t.resolve||{}}function Gz(t,i,e,n,o,r){return en(a=>zz(t,i,e,n,a.extractedUrl,o,r).pipe(pe(({state:s,tree:c})=>Qe(V({},a),{targetSnapshot:s,urlAfterRedirects:c}))))}function $z(t,i){return en(e=>{let{targetSnapshot:n,guards:{canActivateChecks:o}}=e;if(!o.length)return se(e);let r=new Set(o.map(c=>c.route)),a=new Set;for(let c of r)if(!a.has(c))for(let m of lT(c))a.add(m);let s=0;return zt(a).pipe(Vo(c=>r.has(c)?qz(c,n,t,i):(c.data=mh(c,c.parent,t).resolve,se(void 0))),Ut(()=>s++),Us(1),en(c=>s===a.size?se(e):_n))})}function lT(t){let i=t.children.map(e=>lT(e)).flat();return[t,...i]}function qz(t,i,e,n){let o=t.routeConfig,r=t._resolve;return o?.title!==void 0&&!J1(o)&&(r[Dd]=o.title),Yz(r,t,i,n).pipe(pe(a=>(t._resolvedData=a,t.data=mh(t,t.parent,e).resolve,null)))}function Yz(t,i,e,n){let o=J0(t);if(o.length===0)return se({});let r={};return zt(o).pipe(en(a=>Qz(t[a],i,e,n).pipe(cr(),Ut(s=>{if(s instanceof El)throw ph(new ea,s);r[a]=s}))),Us(1),pe(()=>r),On(a=>oT(a)?_n:No(a)))}function Qz(t,i,e,n){let o=Sd(i)??n,r=Tl(t,o),a=r.resolve?r.resolve(i,e):vi(o,()=>r(i,e));return ia(a)}function Z0(t){return Dt(i=>{let e=t(i);return e?zt(e).pipe(pe(()=>i)):se(i)})}var gy=(()=>{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===at);return n}getResolvedTitleForRoute(e){return e.data[Dd]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:()=>p(cT),providedIn:"root"})}return t})(),cT=(()=>{class t extends gy{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)(le(M1))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),as=new R("",{providedIn:"root",factory:()=>({})}),Il=new R(""),_h=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(UM);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return se(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=ia(e.loadComponent()).pipe(pe(uT),Ut(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),Bo(()=>{this.componentLoaders.delete(e)})),o=new jr(n,()=>new z).pipe(Ls());return this.componentLoaders.set(e,o),o}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return se({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let r=dT(n,this.compiler,e,this.onLoadEndListener).pipe(Bo(()=>{this.childrenLoaders.delete(n)})),a=new jr(r,()=>new z).pipe(Ls());return this.childrenLoaders.set(n,a),a}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function dT(t,i,e,n){return ia(t.loadChildren()).pipe(pe(uT),en(o=>o instanceof l0||Array.isArray(o)?se(o):zt(i.compileModuleAsync(o))),pe(o=>{n&&n(t);let r,a,s=!1;return Array.isArray(o)?(a=o,s=!0):(r=o.create(e).injector,a=r.get(Il,[],{optional:!0,self:!0}).flat()),{routes:a.map(fy),injector:r}}))}function Kz(t){return t&&typeof t=="object"&&"default"in t}function uT(t){return Kz(t)?t.default:t}var vh=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:()=>p(Zz),providedIn:"root"})}return t})(),Zz=(()=>{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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_y=new R(""),vy=new R("");function mT(t,i,e){let n=t.get(vy),o=t.get(he);return t.get(ie).runOutsideAngular(()=>{if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(m=>setTimeout(m));let r,a=new Promise(m=>{r=m}),s=o.startViewTransition(()=>(r(),Xz(t))),{onViewTransitionCreated:c}=n;return c&&vi(t,()=>c({transition:s,from:i,to:e})),a})}function Xz(t){return new Promise(i=>{Ht({read:()=>setTimeout(i)},{injector:t})})}var by=new R(""),bh=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new z;transitionAbortSubject=new z;configLoader=p(_h);environmentInjector=p(sn);destroyRef=p(Yr);urlSerializer=p(os);rootContexts=p(rs);location=p(Ko);inputBindingEnabled=p(Md,{optional:!0})!==null;titleStrategy=p(gy);options=p(as,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(vh);createViewTransition=p(_y,{optional:!0});navigationErrorHandler=p(by,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>se(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=o=>this.events.next(new oh(o)),n=o=>this.events.next(new rh(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;this.transitions?.next(Qe(V({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n}))}setupNavigations(e){return this.transitions=new bt(null),this.transitions.pipe(Ke(n=>n!==null),Dt(n=>{let o=!1,r=!1;return se(n).pipe(Dt(a=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",Di.SupersededByNewNavigation),_n;this.currentTransition=n,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Qe(V({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),c=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&c!=="reload"){let m="";return this.events.next(new er(a.id,this.urlSerializer.serialize(a.rawUrl),m,wl.IgnoredSameUrlNavigation)),a.resolve(!1),_n}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return se(a).pipe(Dt(m=>(this.events.next(new na(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),m.id!==this.navigationId?_n:Promise.resolve(m))),Gz(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Ut(m=>{n.targetSnapshot=m.targetSnapshot,n.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation=Qe(V({},this.currentNavigation),{finalUrl:m.urlAfterRedirects});let f=new _d(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(f)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:m,extractedUrl:f,source:v,restoredState:D,extras:x}=a,M=new na(m,this.urlSerializer.serialize(f),v,D);this.events.next(M);let O=Z1(this.rootComponentType).snapshot;return this.currentTransition=n=Qe(V({},a),{targetSnapshot:O,urlAfterRedirects:f,extras:Qe(V({},x),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,se(n)}else{let m="";return this.events.next(new er(a.id,this.urlSerializer.serialize(a.extractedUrl),m,wl.IgnoredByUrlHandlingStrategy)),a.resolve(!1),_n}}),Ut(a=>{let s=new eh(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),pe(a=>(this.currentTransition=n=Qe(V({},a),{guards:uz(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),n)),wz(this.environmentInjector,a=>this.events.next(a)),Ut(a=>{if(n.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw ph(this.urlSerializer,a.guardsResult);let s=new th(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s)}),Ke(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",Di.GuardRejected),!1)),Z0(a=>{if(a.guards.canActivateChecks.length!==0)return se(a).pipe(Ut(s=>{let c=new nh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}),Dt(s=>{let c=!1;return se(s).pipe($z(this.paramsInheritanceStrategy,this.environmentInjector),Ut({next:()=>c=!0,complete:()=>{c||this.cancelNavigationTransition(s,"",Di.NoDataFromResolver)}}))}),Ut(s=>{let c=new ih(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(c)}))}),Z0(a=>{let s=c=>{let m=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&m.push(this.configLoader.loadComponent(c.routeConfig).pipe(Ut(f=>{c.component=f}),pe(()=>{})));for(let f of c.children)m.push(...s(f));return m};return Ri(s(a.targetSnapshot.root)).pipe(Ur(null),wt(1))}),Z0(()=>this.afterPreactivation()),Dt(()=>{let{currentSnapshot:a,targetSnapshot:s}=n,c=this.createViewTransition?.(this.environmentInjector,a.root,s.root);return c?zt(c).pipe(pe(()=>n)):se(n)}),pe(a=>{let s=az(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=n=Qe(V({},a),{targetRouterState:s}),this.currentNavigation.targetRouterState=s,n}),Ut(()=>{this.events.next(new vd)}),dz(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),wt(1),Ut({next:a=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Xi(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{o=!0}}),Te(this.transitionAbortSubject.pipe(Ut(a=>{throw a}))),Bo(()=>{!o&&!r&&this.cancelNavigationTransition(n,"",Di.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation=null,this.currentTransition=null)}),On(a=>{if(this.destroyed)return n.resolve(!1),_n;if(r=!0,iT(a))this.events.next(new Xo(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode)),cz(a)?this.events.next(new Sl(a.url,a.navigationBehaviorOptions)):n.resolve(!1);else{let s=new xl(n.id,this.urlSerializer.serialize(n.extractedUrl),a,n.targetSnapshot??void 0);try{let c=vi(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(c instanceof El){let{message:m,cancellationCode:f}=ph(this.urlSerializer,c);this.events.next(new Xo(n.id,this.urlSerializer.serialize(n.extractedUrl),m,f)),this.events.next(new Sl(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(s),a}catch(c){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(c)}}return _n}))}))}cancelNavigationTransition(e,n,o){let r=new Xo(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=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Jz(t){return t!==Zp}var pT=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:()=>p(eU),providedIn:"root"})}return t})(),fh=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}},eU=(()=>{class t extends fh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),hT=(()=>{class t{urlSerializer=p(os);options=p(as,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(Ko);urlHandlingStrategy=p(vh);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Jo;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 Jo?this.urlSerializer.serialize(a):a}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=Z1(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:()=>p(tU),providedIn:"root"})}return t})(),tU=(()=>{class t extends hT{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}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")})})}handleRouterEvent(e,n){e instanceof na?this.updateStateMemento():e instanceof er?this.commitTransition(n):e instanceof _d?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof vd?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof Xo&&(e.code===Di.GuardRejected||e.code===Di.NoDataFromResolver)?this.restoreHistory(n):e instanceof xl?this.restoreHistory(n,!0):e instanceof Xi&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:n,id:o}){let{replaceUrl:r,state:a}=n;if(this.location.isCurrentPathEqualTo(e)||r){let s=this.browserPageId,c=V(V({},a),this.generateNgRouterState(o,s));this.location.replaceState(e,"",c)}else{let s=V(V({},a),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(e,"",s)}}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())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yh(t,i){t.events.pipe(Ke(e=>e instanceof Xi||e instanceof Xo||e instanceof xl||e instanceof er),pe(e=>e instanceof Xi||e instanceof er?0:(e instanceof Xo?e.code===Di.Redirect||e.code===Di.SupersededByNewNavigation:!1)?2:1),Ke(e=>e!==2),wt(1)).subscribe(()=>{i()})}var nU={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},iU={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},So=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(u0);stateManager=p(hT);options=p(as,{optional:!0})||{};pendingTasks=p(br);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(bh);urlSerializer=p(os);location=p(Ko);urlHandlingStrategy=p(vh);_events=new z;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(pT);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(Il,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(Md,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new be;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(n,r),n instanceof Xo&&n.code!==Di.Redirect&&n.code!==Di.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof Xi)this.navigated=!0;else if(n instanceof Sl){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),c=V({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Jz(o.source)},a);this.scheduleNavigation(s,Zp,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}rU(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortSubject.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),Zp,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,o)=>{this.navigateToSyncWithBrowser(e,o,n)})}navigateToSyncWithBrowser(e,n,o){let r={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=V({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(r.state=c)}let s=this.parseUrl(e);this.scheduleNavigation(s,n,a,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(fy),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(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:c}=n,m=c?this.currentUrlTree.fragment:a,f=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":f=V(V({},this.currentUrlTree.queryParams),r);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=r||null}f!==null&&(f=this.removeEmptyProps(f));let v;try{let D=o?o.snapshot:this.routerState.snapshot.root;v=q1(D)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root}return Y1(v,e,f,m??null)}navigateByUrl(e,n={skipLocationChange:!1}){let o=ta(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,Zp,null,n)}navigate(e,n={skipLocationChange:!1}){return oU(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,n){let o;if(n===!0?o=V({},nU):n===!1?o=V({},iU):o=n,ta(e))return T1(this.currentUrlTree,e,o);let r=this.parseUrl(e);return T1(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,c,m;a?(s=a.resolve,c=a.reject,m=a.promise):m=new Promise((v,D)=>{s=v,c=D});let f=this.pendingTasks.add();return yh(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(f))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:c,promise:m,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),m.catch(v=>Promise.reject(v))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function oU(t){for(let i=0;i{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new z;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 c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=e.events.subscribe(m=>{m instanceof Xi&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ta(e)?this.routerLinkInput=e:this.routerLinkInput=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 c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let n=this.href===null?null:xE(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(e,n){let o=this.renderer,r=this.el.nativeElement;n!==null?o.setAttribute(r,e,n):o.removeAttribute(r,e)}get urlTree(){return this.routerLinkInput===null?null:ta(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(n){return new(n||t)(y(So),y(ke),pp("tabindex"),y(kt),y(Z),y(xo))};static \u0275dir=B({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,o){n&1&&b("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&ne("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",$],skipLocationChange:[2,"skipLocationChange","skipLocationChange",$],replaceUrl:[2,"replaceUrl","replaceUrl",$],routerLink:"routerLink"},features:[je]})}return t})();var Id=class{};var fT=(()=>{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(Ke(e=>e instanceof Xi),Vo(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){let o=[];for(let r of n){r.providers&&!r._injector&&(r._injector=Gc(r.providers,e,`Route: ${r.path}`));let a=r._injector??e,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 zt(o).pipe(zr())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let o;n.loadChildren&&n.canLoad===void 0?o=this.loader.loadChildren(e,n):o=se(null);let r=o.pipe(en(a=>a===null?se(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(n);return zt([r,a]).pipe(zr())}else return r})}static \u0275fac=function(n){return new(n||t)(le(So),le(sn),le(Id),le(_h))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),gT=new R(""),aU=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,n,o,r,a={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=o,this.zone=r,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof na?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Xi?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof er&&e.code===wl.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Dl&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Dl(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){Dp()};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();function sU(t){return t.routerState.root}function kd(t,i){return{\u0275kind:t,\u0275providers:i}}function lU(){let t=p(Ie);return i=>{let e=t.get(ni);if(i!==e.components[0])return;let n=t.get(So),o=t.get(_T);t.get(Cy)===1&&n.initialNavigation(),t.get(yT,null,lt.Optional)?.setUpPreloading(),t.get(gT,null,lt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var _T=new R("",{factory:()=>new z}),Cy=new R("",{providedIn:"root",factory:()=>1});function vT(){let t=[{provide:Cy,useValue:0},f0(()=>{let i=p(Ie);return i.get(S0,Promise.resolve()).then(()=>new Promise(n=>{let o=i.get(So),r=i.get(_T);yh(o,()=>{n(!0)}),i.get(bh).afterPreactivation=()=>(n(!0),r.closed?se(void 0):r),o.initialNavigation()}))})];return kd(2,t)}function bT(){let t=[f0(()=>{p(So).setUpLocationChangeListener()}),{provide:Cy,useValue:2}];return kd(3,t)}var yT=new R("");function CT(t){return kd(0,[{provide:yT,useExisting:fT},{provide:Id,useExisting:t}])}function wT(){return kd(8,[py,{provide:Md,useExisting:py}])}function xT(t){yr("NgRouterViewTransitions");let i=[{provide:_y,useValue:mT},{provide:vy,useValue:V({skipNextTransition:!!t?.skipInitialTransition},t)}];return kd(9,i)}var DT=[Ko,{provide:os,useClass:ea},So,rs,{provide:ke,useFactory:sU,deps:[So]},_h,[]],Ch=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[DT,[],{provide:Il,multi:!0,useValue:e},[],n?.errorHandler?{provide:by,useValue:n.errorHandler}:[],{provide:as,useValue:n||{}},n?.useHash?dU():uU(),cU(),n?.preloadingStrategy?CT(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?mU(n):[],n?.bindToComponentInputs?wT().\u0275providers:[],n?.enableViewTransitions?xT().\u0275providers:[],pU()]}}static forChild(e){return{ngModule:t,providers:[{provide:Il,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function cU(){return{provide:gT,useFactory:()=>{let t=p(i1),i=p(ie),e=p(as),n=p(bh),o=p(os);return e.scrollOffset&&t.setOffset(e.scrollOffset),new aU(o,n,t,i,e)}}}function dU(){return{provide:xo,useClass:I0}}function uU(){return{provide:xo,useClass:Rp}}function mU(t){return[t.initialNavigation==="disabled"?bT().\u0275providers:[],t.initialNavigation==="enabledBlocking"?vT().\u0275providers:[]]}var yy=new R("");function pU(){return[{provide:yy,useFactory:lU},{provide:g0,multi:!0,useExisting:yy}]}var wh=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 kl=class{_attachedHost;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}},ri=class extends kl{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(i,e,n,o,r){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=r}},yn=class extends kl{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()}},xh=class extends kl{element;constructor(i){super(),this.element=i instanceof Z?i.nativeElement:i}},Mr=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof ri)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof yn)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof xh)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)}};var ss=class extends Mr{outletElement;_appRef;_defaultInjector;_document;constructor(i,e,n,o,r){super(),this.outletElement=i,this._appRef=n,this._defaultInjector=o,this._document=r}attachComponentPortal(i){let e;if(i.viewContainerRef){let n=i.injector||i.viewContainerRef.injector,o=n.get(pr,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let n=this._appRef,o=i.injector||this._defaultInjector||Ie.NULL,r=o.get(sn,n.injector);e=Ip(i.component,{elementInjector:o,environmentInjector:r,projectableNodes:i.projectableNodes||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._document.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]}};var wy=(()=>{class t extends yn{constructor(){let e=p(St),n=p(Rt);super(e,n)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[_e]})}return t})();var Kn=(()=>{class t extends Mr{_moduleRef=p(pr,{optional:!0});_document=p(he);_viewContainerRef=p(Rt);_isInitialized=!1;_attachedRef;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 k;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});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=B({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[_e]})}return t})();var Si=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();function ls(t){return t.buttons===0||t.detail===0}function cs(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 xy;function ST(){if(xy==null){let t=typeof document<"u"?document.head:null;xy=!!(t&&(t.createShadowRoot||t.attachShadow))}return xy}function Dy(t){if(ST()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function Ji(){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 Bn(t){return t.composedPath?t.composedPath()[0]:t.target}function $t(t,i,e,n,o){let r=parseInt(y0.major),a=parseInt(y0.minor);return r>19||r===19&&a>0||r===0&&a===0?t.listen(i,e,n,o):(i.addEventListener(e,n,o),()=>{i.removeEventListener(e,n,o)})}var Sy;try{Sy=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Sy=!1}var et=(()=>{class t{_platformId=p(Kr);isBrowser=this._platformId?R0(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||Sy)&&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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ad;function ET(){if(Ad==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ad=!0}))}finally{Ad=Ad||!1}return Ad}function oa(t){return ET()?t:!!t.capture}function Eo(t,i=0){return Dh(t)?Number(t):arguments.length===2?i:0}function Dh(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function ai(t){return t instanceof Z?t.nativeElement:t}var MT=new R("cdk-input-modality-detector-options"),TT={ignoreKeys:[18,17,224,91,16]},IT=650,Ey={passive:!0,capture:!0},kT=(()=>{class t{_platform=p(et);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new bt(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Bn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(cs(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Bn(e)};constructor(){let e=p(ie),n=p(he),o=p(MT,{optional:!0});if(this._options=V(V({},TT),o),this.modalityDetected=this._modality.pipe(Aa(1)),this.modalityChanged=this.modalityDetected.pipe(dm()),this._platform.isBrowser){let r=p(hn).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[$t(r,n,"keydown",this._onKeydown,Ey),$t(r,n,"mousedown",this._onMousedown,Ey),$t(r,n,"touchstart",this._onTouchstart,Ey)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rd=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(Rd||{}),AT=new R("cdk-focus-monitor-default-options"),Sh=oa({passive:!0,capture:!0}),Cn=(()=>{class t{_ngZone=p(ie);_platform=p(et);_inputModalityDetector=p(kT);_origin=null;_lastFocusOrigin;_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(he,{optional:!0});_stopInputModalityDetector=new z;constructor(){let e=p(AT,{optional:!0});this._detectionMode=e?.detectionMode||Rd.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=Bn(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=ai(e);if(!this._platform.isBrowser||o.nodeType!==1)return se();let r=Dy(o)||this._getDocument(),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=ai(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=ai(e),a=this._getDocument().activeElement;r===a?this._getClosestElementsInfo(r).forEach(([s,c])=>this._originChanged(s,n,c)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().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===Rd.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===Rd.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?IT:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,n){let o=this._elementInfo.get(n),r=Bn(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,Sh),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Sh)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Te(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,Sh),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Sh),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(Z);_focusMonitor=p(Cn);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new k;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&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var Eh=new WeakMap,yt=(()=>{class t{_appRef;_injector=p(Ie);_environmentInjector=p(sn);load(e){let n=this._appRef=this._appRef||this._injector.get(ni),o=Eh.get(n);o||(o={loaders:new Set,refs:[]},Eh.set(n,o),n.onDestroy(()=>{Eh.get(n)?.refs.forEach(r=>r.destroy()),Eh.delete(n)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(Ip(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var eo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({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;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} +`],encapsulation:2,changeDetection:0})}return t})();function Al(t){return Array.isArray(t)?t:[t]}var RT=new Set,ds,PT=(()=>{class t{_platform=p(et);_nonce=p(zc,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):fU}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&hU(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function hU(t,i){if(!RT.has(t))try{ds||(ds=document.createElement("style"),i&&ds.setAttribute("nonce",i),ds.setAttribute("type","text/css"),document.head.appendChild(ds)),ds.sheet&&(ds.sheet.insertRule(`@media ${t} {body{ }}`,0),RT.add(t))}catch(e){console.error(e)}}function fU(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var us=(()=>{class t{_mediaMatcher=p(PT);_zone=p(ie);_queries=new Map;_destroySubject=new z;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return OT(Al(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=OT(Al(e)).map(a=>this._registerQuery(a).observable),r=Ri(o);return r=Lo(r.pipe(wt(1)),r.pipe(Aa(1),lr(0))),r.pipe(pe(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:m})=>{s.matches=s.matches||c,s.breakpoints[m]=c}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),r={observable:new Fe(a=>{let s=c=>this._zone.run(()=>a.next(c));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(xt(n),pe(({matches:a})=>({query:e,matches:a})),Te(this._destroySubject)),mql:n};return this._queries.set(e,r),r}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function OT(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function gU(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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),NT=(()=>{class t{_mutationObserverFactory=p(FT);_observedElements=new Map;_ngZone=p(ie);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=ai(e);return new Fe(o=>{let a=this._observeElement(n).pipe(pe(s=>s.filter(c=>!gU(c))),Ke(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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),LT=(()=>{class t{_contentObserver=p(NT);_elementRef=p(Z);event=new k;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=Eo(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(lr(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",$],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Mh=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[FT]})}return t})();var Iy=(()=>{class t{_platform=p(et);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return vU(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=_U(EU(e));if(n&&(VT(n)===-1||!this.isVisible(n)))return!1;let o=e.nodeName.toLowerCase(),r=VT(e);return e.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!DU(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 SU(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _U(t){try{return t.frameElement}catch{return null}}function vU(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function bU(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function yU(t){return wU(t)&&t.type=="hidden"}function CU(t){return xU(t)&&t.hasAttribute("href")}function wU(t){return t.nodeName.toLowerCase()=="input"}function xU(t){return t.nodeName.toLowerCase()=="a"}function zT(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function VT(t){if(!zT(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function DU(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function SU(t){return yU(t)?!1:bU(t)||CU(t)||t.hasAttribute("contenteditable")||zT(t)}function EU(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var Ty=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_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?Ht(i,{injector:this._injector}):setTimeout(i)}},Th=(()=>{class t{_checker=p(Iy);_ngZone=p(ie);_document=p(he);_injector=p(Ie);constructor(){p(yt).load(eo)}create(e,n=!1){return new Ty(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ky=(()=>{class t{_elementRef=p(Z);_focusTrapFactory=p(Th);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){p(et).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=Ji(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",$],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",$]},exportAs:["cdkTrapFocus"],features:[je]})}return t})(),UT=new R("liveAnnouncerElement",{providedIn:"root",factory:HT});function HT(){return null}var WT=new R("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),MU=0,Pd=(()=>{class t{_ngZone=p(ie);_defaultOptions=p(WT,{optional:!0});_liveElement;_document=p(he);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=p(UT,{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(()=>{this._liveElement.textContent=e,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(et);_hasCheckedHighContrastMode;_document=p(he);_breakpointSubscription;constructor(){this._breakpointSubscription=p(us).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return ra.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 ra.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return ra.BLACK_ON_WHITE}return ra.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(My,BT,jT),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===ra.BLACK_ON_WHITE?e.add(My,BT):n===ra.WHITE_ON_BLACK&&e.add(My,jT)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ms=(()=>{class t{constructor(){p(Ih)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Mh]})}return t})();function Ay(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function fn(t){return t==null?"":typeof t=="string"?t:`${t}px`}var TU=new R("cdk-dir-doc",{providedIn:"root",factory:IU});function IU(){return p(he)}var kU=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function GT(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?kU.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var Pt=(()=>{class t{value="ltr";change=new k;constructor(){let e=p(TU,{optional:!0});if(e){let n=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.value=GT(n||o||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Mo=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(Mo||{}),kh,ps;function Ah(){if(ps==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return ps=!1,ps;if("scrollBehavior"in document.documentElement.style)ps=!0;else{let t=Element.prototype.scrollTo;t?ps=!/\{\s*\[native code\]\s*\}/.test(t.toString()):ps=!1}}return ps}function Rl(){if(typeof document!="object"||!document)return Mo.NORMAL;if(kh==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),kh=Mo.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,kh=t.scrollLeft===0?Mo.NEGATED:Mo.INVERTED),t.remove()}return kh}var aa=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var hs=class{};function Fd(t){return t&&typeof t.connect=="function"&&!(t instanceof jr)}var sa=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t}(sa||{}),Ol=new R("_ViewRepeater");var AU=20,Pl=(()=>{class t{_ngZone=p(ie);_platform=p(et);_renderer=p(hn).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=AU){return this._platform.isBrowser?new Fe(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=e>0?this._scrolled.pipe(cm(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):se()}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(Ke(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=ai(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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nd=(()=>{class t{elementRef=p(Z);scrollDispatcher=p(Pl);ngZone=p(ie);dir=p(Pt,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new z;_renderer=p(kt);_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&&Rl()!=Mo.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),Rl()==Mo.INVERTED?e.left=e.right:Rl()==Mo.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;Ah()?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&&Rl()==Mo.INVERTED?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&Rl()==Mo.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=B({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),RU=20,Ei=(()=>{class t{_platform=p(et);_listeners;_viewportSize;_change=new z;_document=p(he,{optional:!0});constructor(){let e=p(ie),n=p(hn).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=RU){return e>0?this._change.pipe(cm(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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Li=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})(),Ld=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[aa,Li,aa,Li]})}return t})();var Ry={},ut=(()=>{class t{_appId=p(qa);getId(e){return this._appId!=="ng"&&(e+=this._appId),Ry.hasOwnProperty(e)||(Ry[e]=0),`${e}${Ry[e]++}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Et(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var qT=Ah(),Rh=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=fn(-this._previousScrollPosition.left),i.style.top=fn(-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"),qT&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),qT&&(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}};var Oh=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(Ke(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())}},Vd=class{enable(){}disable(){}attach(){}};function Oy(t,i){return i.some(e=>{let n=t.bottome.bottom,r=t.righte.right;return n||o||r||a})}function YT(t,i){return i.some(e=>{let n=t.tope.bottom,r=t.lefte.right;return n||o||r||a})}var Ph=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();Oy(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}},eI=(()=>{class t{_scrollDispatcher=p(Pl);_viewportRuler=p(Ei);_ngZone=p(ie);_document=p(he);constructor(){}noop=()=>new Vd;close=e=>new Oh(this._scrollDispatcher,this._ngZone,this._viewportRuler,e);block=()=>new Rh(this._viewportRuler,this._document);reposition=e=>new Ph(this._scrollDispatcher,this._viewportRuler,this._ngZone,e);static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),si=class{positionStrategy;scrollStrategy=new Vd;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(i){if(i){let e=Object.keys(i);for(let n of e)i[n]!==void 0&&(this[n]=i[n])}}};var Fh=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var tI=(()=>{class t{_attachedOverlays=[];_document=p(he);_isAttached;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()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nI=(()=>{class t extends tI{_ngZone=p(ie);_renderer=p(hn).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--)if(n[o]._keydownEvents.observers.length>0){this._ngZone.run(()=>n[o]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),iI=(()=>{class t extends tI{_platform=p(et);_ngZone=p(ie);_renderer=p(hn).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let n=this._document.body,o={capture:!0};this._cleanups=this._ngZone.runOutsideAngular(()=>[$t(this._renderer,n,"pointerdown",this._pointerDownListener,o),$t(this._renderer,n,"click",this._clickListener,o),$t(this._renderer,n,"auxclick",this._clickListener,o),$t(this._renderer,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=Bn(e)};_clickListener=e=>{let n=Bn(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];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(QT(s.overlayElement,n)||QT(s.overlayElement,o))break;let c=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(e)):c.next(e)}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function QT(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 oI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({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;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll} +`],encapsulation:2,changeDetection:0})}return t})(),Lh=(()=>{class t{_platform=p(et);_containerElement;_document=p(he);_styleLoader=p(yt);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||Ay()){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()}},gs=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=be.EMPTY;_backdropRef=null;_previousHostParent;_keydownEvents=new z;_outsidePointerEvents=new z;_renders=new z;_afterRenderRef;_afterNextRenderRef;constructor(i,e,n,o,r,a,s,c,m,f=!1,v,D){this._portalOutlet=i,this._host=e,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=s,this._location=c,this._outsideClickDispatcher=m,this._animationsDisabled=f,this._injector=v,this._renderer=D,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy,this._afterRenderRef=xi(()=>Ya(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Ht(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof 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._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){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._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=V(V({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Qe(V({},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=fn(this._config.width),i.height=fn(this._config.height),i.minWidth=fn(this._config.minWidth),i.minHeight=fn(this._config.minHeight),i.maxWidth=fn(this._config.maxWidth),i.maxHeight=fn(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Py(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._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._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=Al(e||[]).filter(r=>!!r);o.length&&(n?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let i=this._renders.pipe(Te(_t(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),i.unsubscribe())})})}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},KT="cdk-overlay-connected-position-bounding-box",OU=/([A-Za-z%]+)$/,Fl=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_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;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new z;_resizeSubscription=be.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;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(KT),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._overlayContainer.getContainerElement().getBoundingClientRect();let i=this._originRect,e=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[],a;for(let s of this._preferredPositions){let c=this._getOriginPoint(i,o,s),m=this._getOverlayPoint(c,e,s),f=this._getOverlayFit(m,e,n,s);if(f.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,c);return}if(this._canFitWithFlexibleDimensions(f,m,n)){r.push({position:s,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,s)});continue}(!a||a.overlayFit.visibleAreac&&(c=f,s=m)}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&&fs(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(KT),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;if(i){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,e)}else 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}_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=XT(e),{x:a,y:s}=i,c=this._getOffset(o,"x"),m=this._getOffset(o,"y");c&&(a+=c),m&&(s+=m);let f=0-a,v=a+r.width-n.width,D=0-s,x=s+r.height-n.height,M=this._subtractOverflows(r.width,f,v),O=this._subtractOverflows(r.height,D,x),K=M*O;return{visibleArea:K,isCompletelyWithinViewport:r.width*r.height===K,fitsInViewportVertically:O===r.height,fitsInViewportHorizontally:M==r.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let o=n.bottom-e.y,r=n.right-e.x,a=ZT(this._overlayRef.getConfig().minHeight),s=ZT(this._overlayRef.getConfig().minWidth),c=i.fitsInViewportVertically||a!=null&&a<=o,m=i.fitsInViewportHorizontally||s!=null&&s<=r;return c&&m}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=XT(e),r=this._viewportRect,a=Math.max(i.x+o.width-r.width,0),s=Math.max(i.y+o.height-r.height,0),c=Math.max(r.top-n.top-i.y,0),m=Math.max(r.left-n.left-i.x,0),f=0,v=0;return o.width<=r.width?f=m||-a:f=i.xM&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-M/2)}let c=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,m=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,f,v,D;if(m)D=n.width-i.x+this._viewportMargin*2,f=i.x-this._viewportMargin;else if(c)v=i.x,f=n.right-i.x;else{let x=Math.min(n.right-i.x+n.left,i.x),M=this._lastBoundingBoxSize.width;f=x*2,v=i.x-x,f>M&&!this._isInitialRender&&!this._growAfterOpen&&(v=i.x-M/2)}return{top:a,left:v,bottom:s,right:D,width:f,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=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.height=fn(n.height),o.top=fn(n.top),o.bottom=fn(n.bottom),o.width=fn(n.width),o.left=fn(n.left),o.right=fn(n.right),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=fn(r)),a&&(o.maxWidth=fn(a))}this._lastBoundingBoxSize=n,fs(this._boundingBox.style,o)}_resetBoundingBoxStyles(){fs(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){fs(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 f=this._viewportRuler.getViewportScrollPosition();fs(n,this._getExactOverlayY(e,i,f)),fs(n,this._getExactOverlayX(e,i,f))}else n.position="static";let s="",c=this._getOffset(e,"x"),m=this._getOffset(e,"y");c&&(s+=`translateX(${c}px) `),m&&(s+=`translateY(${m}px)`),n.transform=s.trim(),a.maxHeight&&(o?n.maxHeight=fn(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=fn(a.maxWidth):r&&(n.maxWidth="")),fs(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=fn(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=fn(r.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:YT(i,n),isOriginOutsideView:Oy(i,n),isOverlayClipped:YT(e,n),isOverlayOutsideView:Oy(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._viewportMargin,left:n.left+this._viewportMargin,right:n.left+i-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:i-2*this._viewportMargin,height:e-2*this._viewportMargin}}_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&&Al(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=[])}_getOriginRect(){let i=this._origin;if(i instanceof Z)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}}};function fs(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function ZT(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(OU);return!e||e==="px"?parseFloat(i):null}return t||null}function XT(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 PU(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var JT="cdk-global-overlay-wrapper",Nh=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(JT),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,c=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),m=(r==="100%"||r==="100vh")&&(!s||s==="100%"||s==="100vh"),f=this._xPosition,v=this._xOffset,D=this._overlayRef.getConfig().direction==="rtl",x="",M="",O="";c?O="flex-start":f==="center"?(O="center",D?M=v:x=v):D?f==="left"||f==="end"?(O="flex-end",x=v):(f==="right"||f==="start")&&(O="flex-start",M=v):f==="left"||f==="start"?(O="flex-start",x=v):(f==="right"||f==="end")&&(O="flex-end",M=v),i.position=this._cssPosition,i.marginLeft=c?"0":x,i.marginTop=m?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=c?"0":M,e.justifyContent=O,e.alignItems=m?"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(JT),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},rI=(()=>{class t{_viewportRuler=p(Ei);_document=p(he);_platform=p(et);_overlayContainer=p(Lh);constructor(){}global(){return new Nh}flexibleConnectedTo(e){return new Fl(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),At=(()=>{class t{scrollStrategies=p(eI);_overlayContainer=p(Lh);_positionBuilder=p(rI);_keyboardDispatcher=p(nI);_injector=p(Ie);_ngZone=p(ie);_document=p(he);_directionality=p(Pt);_location=p(Ko);_outsideClickDispatcher=p(iI);_animationsModuleType=p(tt,{optional:!0});_idGenerator=p(ut);_renderer=p(hn).createRenderer(null,null);_appRef;_styleLoader=p(yt);constructor(){}create(e){this._styleLoader.load(oI);let n=this._createHostElement(),o=this._createPaneElement(n),r=this._createPortalOutlet(o),a=new si(e);return a.direction=a.direction||this._directionality.value,new gs(r,n,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(sn),this._renderer)}position(){return this._positionBuilder}_createPaneElement(e){let n=this._document.createElement("div");return n.id=this._idGenerator.getId("cdk-overlay-"),n.classList.add("cdk-overlay-pane"),e.appendChild(n),n}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(ni)),new ss(e,null,this._appRef,this._injector,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),FU=[{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"}],aI=new R("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(At);return()=>t.scrollStrategies.reposition()}}),Nl=(()=>{class t{elementRef=p(Z);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),Vh=(()=>{class t{_overlay=p(At);_dir=p(Pt,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=be.EMPTY;_attachSubscription=be.EMPTY;_detachSubscription=be.EMPTY;_positionSubscription=be.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=p(aI);_disposeOnNavigation=!1;_ngZone=p(ie);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;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new k;positionChange=new k;attach=new k;detach=new k;overlayKeydown=new k;overlayOutsideClick=new k;constructor(){let e=p(St),n=p(Rt);this._templatePortal=new yn(e,n),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this.width,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=FU);let e=this._overlayRef=this._overlay.create(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&&!Et(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),r=Bn(n);(!o||o!==r&&!o.contains(r))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new si({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(n.width=this.width),(this.height||this.height===0)&&(n.height=this.height),(this.minWidth||this.minWidth===0)&&(n.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(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)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Nl?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Nl?this.origin.elementRef.nativeElement:this.origin instanceof Z?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(G_(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({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",$],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",$],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",$],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",$],push:[2,"cdkConnectedOverlayPush","push",$],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",$]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[je]})}return t})();function NU(t){return()=>t.scrollStrategies.reposition()}var LU={provide:aI,deps:[At],useFactory:NU},jn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[At,LU],imports:[aa,Si,Ld,Ld]})}return t})();function VU(t,i){}var la=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;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;componentFactoryResolver;providers;container;templateContext};var Ny=(()=>{class t extends Mr{_elementRef=p(Z);_focusTrapFactory=p(Th);_config;_interactivityChecker=p(Iy);_ngZone=p(ie);_overlayRef=p(gs);_focusMonitor=p(Cn);_renderer=p(kt);_changeDetectorRef=p(De);_injector=p(Ie);_platform=p(et);_document=p(he,{optional:!0});_portalOutlet;_focusTrapped=new z;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=p(la,{optional:!0})||new la,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._handleBackdropClicks(),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||Ht(()=>{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=Ji(),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&&this._elementRef.nativeElement.focus(e)}_containsFocus(){let e=this._elementRef.nativeElement,n=Ji();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Ji()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&me(Kn,7),n&2){let r;q(r=Y())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){n&2&&ne("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:[_e],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){n&1&&E(0,VU,0,0,"ng-template",0)},dependencies:[Kn],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} +`],encapsulation:2})}return t})(),Bd=class{overlayRef;config;componentInstance;componentRef;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&&!Et(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=i.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(i,e){if(this.containerInstance){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}},BU=new R("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=p(At);return()=>t.scrollStrategies.block()}}),jU=new R("DialogData"),zU=new R("DefaultDialogConfig");var Ly=(()=>{class t{_overlay=p(At);_injector=p(Ie);_defaultOptions=p(zU,{optional:!0});_parentDialog=p(t,{optional:!0,skipSelf:!0});_overlayContainer=p(Lh);_idGenerator=p(ut);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;_ariaHiddenElements=new Map;_scrollStrategy=p(BU);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=qi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(xt(void 0)));constructor(){}open(e,n){let o=this._defaultOptions||new la;n=V(V({},o),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let r=this._getOverlayConfig(n),a=this._overlay.create(r),s=new Bd(a,n),c=this._attachContainer(a,s,n);if(s.containerInstance=c,!this.openDialogs.length){let m=this._overlayContainer.getContainerElement();c._focusTrapped?c._focusTrapped.pipe(wt(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(m)}):this._hideNonDialogContentFromAssistiveTechnology(m)}return this._attachDialogContent(e,s,c,n),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){Fy(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){Fy(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),Fy(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new si({positionStrategy:e.positionStrategy||this._overlay.position().global().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});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,o){let r=o.injector||o.viewContainerRef?.injector,a=[{provide:la,useValue:o},{provide:Bd,useValue:n},{provide:gs,useValue:e}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=Ny;let c=new ri(s,o.viewContainerRef,Ie.create({parent:r||this._injector,providers:a}));return e.attach(c).instance}_attachDialogContent(e,n,o,r){if(e instanceof St){let a=this._createInjector(r,n,o,void 0),s={$implicit:r.data,dialogRef:n};r.templateContext&&(s=V(V({},s),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),o.attachTemplatePortal(new yn(e,null,s,a))}else{let a=this._createInjector(r,n,o,this._injector),s=o.attachComponentPortal(new ri(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:jU,useValue:e.data},{provide:Bd,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(Pt,null,{optional:!0}))&&s.push({provide:Pt,useValue:{value:e.direction,change:se()}}),Ie.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")&&(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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Fy(t,i){let e=t.length;for(;e--;)i(t[e])}var sI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[Ly],imports:[jn,Si,ms,Si]})}return t})();function Vi(t){return t!=null&&`${t}`!="false"}function lI(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 UU=200,Bh=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:UU;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(Ut(e=>this._pressedLetters.push(e)),lr(i),Ke(()=>this._pressedLetters.length>0),pe(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;ni.disabled;constructor(i,e){this._items=i,i instanceof Qi?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):Qr(i)&&(this._effectRef=Yc(()=>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 Bh(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=n,this._typeahead?.setCurrentSelectedItemIndex(n))}}};var _s=class extends Ll{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var Tr=class extends Ll{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};var uI=" ";function jl(t,i,e){let n=Uh(t,i);e=e.trim(),!n.some(o=>o.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(uI)))}function ca(t,i,e){let n=Uh(t,i);e=e.trim();let o=n.filter(r=>r!==e);o.length?t.setAttribute(i,o.join(uI)):t.removeAttribute(i)}function Uh(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var mI="cdk-describedby-message",zh="cdk-describedby-host",By=0,Hh=(()=>{class t{_platform=p(et);_document=p(he);_messageRegistry=new Map;_messagesContainer=null;_id=`${By++}`;constructor(){p(yt).load(eo),this._id=p(qa)+"-"+By++}describe(e,n,o){if(!this._canBeDescribed(e,n))return;let r=Vy(n,o);typeof n!="string"?(dI(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=Vy(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(`[${zh}="${this._id}"]`);for(let n=0;no.indexOf(mI)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let o=this._messageRegistry.get(n);jl(e,"aria-describedby",o.messageElement.id),e.setAttribute(zh,this._id),o.referenceCount++}_removeMessageReference(e,n){let o=this._messageRegistry.get(n);o.referenceCount--,ca(e,"aria-describedby",o.messageElement.id),e.removeAttribute(zh)}_isElementDescribedByMessage(e,n){let o=Uh(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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vy(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function dI(t,i){t.id||(t.id=`${mI}-${i}-${By++}`)}var fe=(()=>{class t{constructor(){p(Ih)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[aa,aa]})}return t})();function HU(t,i){}var Hd=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;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;componentFactoryResolver;enterAnimationDuration;exitAnimationDuration},jy="mdc-dialog--open",pI="mdc-dialog--opening",hI="mdc-dialog--closing",WU=150,GU=75,_I=(()=>{class t extends Ny{_animationMode=p(tt,{optional:!0});_animationStateChanged=new k;_animationsEnabled=this._animationMode!=="NoopAnimations";_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?gI(this._config.enterAnimationDuration)??WU:0;_exitAnimationDuration=this._animationsEnabled?gI(this._config.exitAnimationDuration)??GU:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(fI,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(pI,jy)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(jy),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(jy),this._animationsEnabled?(this._hostElement.style.setProperty(fI,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(hI)),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(pI,hI)}_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=nt(t)))(o||t)}})();static \u0275cmp=S({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(bn("id",o._config.id),ne("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),X("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},features:[_e],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&&(l(0,"div",0)(1,"div",1),E(2,HU,0,0,"ng-template",2),d()())},dependencies:[Kn],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents} +`],encapsulation:2})}return t})(),fI="--mat-dialog-transition-duration";function gI(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Eo(t.substring(0,t.length-2)):t.endsWith("s")?Eo(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var Ud=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(Ud||{}),Re=class{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new z;_beforeClosed=new z;_result;_closeFallbackTimeout;_state=Ud.OPEN;_closeInteractionType;constructor(i,e,n){this._ref=i,this._containerInstance=n,this.disableClose=e.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(Ke(o=>o.state==="opened"),wt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(Ke(o=>o.state==="closed"),wt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),_t(this.backdropClick(),this.keydownEvents().pipe(Ke(o=>o.keyCode===27&&!this.disableClose&&!Et(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),zy(this,o.type==="keydown"?"keyboard":"mouse"))})}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe(Ke(e=>e.state==="closing"),wt(1)).subscribe(e=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=Ud.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=Ud.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function zy(t,i,e){return t._closeInteractionType=i,t.close(e)}var Ve=new R("MatMdcDialogData"),vI=new R("mat-mdc-dialog-default-options"),bI=new R("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(At);return()=>t.scrollStrategies.block()}});var zl=(()=>{class t{_overlay=p(At);_defaultOptions=p(vI,{optional:!0});_scrollStrategy=p(bI);_parentDialog=p(t,{optional:!0,skipSelf:!0});_idGenerator=p(ut);_dialog=p(Ly);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new z;_afterOpenedAtThisLevel=new z;dialogConfigClass=Hd;_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=qi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(xt(void 0)));constructor(){this._dialogRefConstructor=Re,this._dialogContainerType=_I,this._dialogDataToken=Ve}open(e,n){let o;n=V(V({},this._defaultOptions||new Hd),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let r=this._dialog.open(e,Qe(V({},n),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:la,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(a,s,c)=>(o=new this._dialogRefConstructor(a,n,c),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:c},{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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ft=(()=>{class t{dialogRef=p(Re,{optional:!0});_elementRef=p(Z);_dialog=p(zl);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=CI(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){zy(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){n&1&&b("click",function(a){return o._onButtonClick(a)}),n&2&&ne("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:[je]})}return t})(),yI=(()=>{class t{_dialogRef=p(Re,{optional:!0});_elementRef=p(Z);_dialog=p(zl);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=CI(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=B({type:t})}return t})(),Ue=(()=>{class t extends yI{id=p(ut).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=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&bn("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[_e]})}return t})(),He=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[pM([Nd])]})}return t})(),We=(()=>{class t extends yI{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({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&&X("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:[_e]})}return t})();function CI(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 Uy=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[zl],imports:[sI,jn,Si,fe,fe]})}return t})();var wI,xI=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],DI=[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 SI=t=>{let i=[];return t.forEach(e=>{i.push(e.substring(0,3))}),i},da=(t,i,e)=>(typeof i>"u"&&(i=new Date),vs(t,i,e));var vs=(t,i,e,n)=>{n=n||{},i=i||new Date;let o=e||YU;o.formats=o.formats||{};let r=i.getTime();return(n.utc||typeof n.timezone=="number")&&(i=$U(i)),typeof n.timezone=="number"&&(i=new Date(i.getTime()+n.timezone*6e4)),t.replace(/%([-_0]?.)/g,(a,s)=>{let c,m,f,v,D,x,M,O;if(f=null,D=null,s.length===2){if(f=s[0],f==="-")D="";else if(f==="_")D=" ";else if(f==="0")D="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 di(Math.floor(i.getFullYear()/100),D);case"D":return vs(o.formats.D||"%m/%d/%y",i,o);case"d":return di(i.getDate(),D);case"e":return i.getDate();case"F":return vs(o.formats.F||"%Y-%m-%d",i,o);case"H":return di(i.getHours(),D);case"h":return o.shortMonths[i.getMonth()];case"I":return di(EI(i),D);case"j":return M=new Date(i.getFullYear(),0,1),c=Math.ceil((i.getTime()-M.getTime())/(1e3*60*60*24)),di(c,3);case"k":return di(i.getHours(),D===void 0?" ":D);case"L":return di(Math.floor(r%1e3),3);case"l":return di(EI(i),D===void 0?" ":D);case"M":return di(i.getMinutes(),D);case"m":return di(i.getMonth()+1,D);case"n":return` +`;case"o":return String(i.getDate())+qU(i.getDate());case"P":return"";case"p":return"";case"R":return vs(o.formats.R||"%H:%M",i,o);case"r":return vs(o.formats.r||"%I:%M:%S %p",i,o);case"S":return di(i.getSeconds(),D);case"s":return Math.floor(r/1e3);case"T":return vs(o.formats.T||"%H:%M:%S",i,o);case"t":return" ";case"U":return di(MI(i,"sunday"),D);case"u":return m=i.getDay(),m===0?7:m;case"v":return vs(o.formats.v||"%e-%b-%Y",i,o);case"W":return di(MI(i,"monday"),D);case"w":return i.getDay();case"Y":return i.getFullYear();case"y":return O=String(i.getFullYear()),O.slice(O.length-2);case"Z":return n.utc?"GMT":(x=i.toString().match(/\((\w+)\)/),x&&x[1]||"");case"z":return n.utc?"+0000":(v=typeof n.timezone=="number"?n.timezone:-i.getTimezoneOffset(),(v<0?"-":"+")+di(Math.abs(v/60))+di(v%60));default:return s}})},$U=t=>{let i=(t.getTimezoneOffset()||0)*6e4;return new Date(t.getTime()+i)},di=(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},qU=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"},MI=(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)},Hy=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}}),Un=(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=da(Hy(o),new Date(i*1e3))}return n},TI=t=>({1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"})[t]||"OTHER",Wy=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()===""),II=t=>t===""||t===null||t===void 0,Wh=t=>t==="yes"||t===!0||t==="true"||t===1,YU={days:xI,shortDays:SI(xI),months:DI,shortMonths:SI(DI),AM:"AM",PM:"PM",am:"am",pm:"pm"},io=(t,i)=>{let e;if(t instanceof Promise)e=t;else if(t instanceof qt)e=t;else{if(i)return rm(t.pipe(j_(i)));e=rm(t)}return e},qt=class{static{wI=Symbol.toStringTag}constructor(){this[wI]="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 Ul,kI=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Gy(){if(Ul)return Ul;if(typeof document!="object"||!document)return Ul=new Set(kI),Ul;let t=document.createElement("input");return Ul=new Set(kI.filter(i=>(t.setAttribute("type",i),t.type===i))),Ul}var oo=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}(oo||{}),$y=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=oo.HIDDEN;constructor(i,e,n,o=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},AI=oa({passive:!0,capture:!0}),qy=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,AI)})}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,AI)))}_delegateEventHandler=i=>{let e=Bn(i);e&&this._events.get(i.type)?.forEach((n,o)=>{(o===e||o.contains(e))&&n.forEach(r=>r.handleEvent(i))})}},Wd={enterDuration:225,exitDuration:150},QU=800,RI=oa({passive:!0,capture:!0}),OI=["mousedown","touchstart"],PI=["mouseup","mouseleave","touchend","touchcancel"],KU=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({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}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} +`],encapsulation:2,changeDetection:0})}return t})(),Gd=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new qy;constructor(i,e,n,o,r){this._target=i,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=ai(n)),r&&r.get(yt).load(KU)}fadeInRipple(i,e,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=V(V({},Wd),n.animation);n.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);let a=n.radius||ZU(i,e,o),s=i-o.left,c=e-o.top,m=r.enterDuration,f=document.createElement("div");f.classList.add("mat-ripple-element"),f.style.left=`${s-a}px`,f.style.top=`${c-a}px`,f.style.height=`${a*2}px`,f.style.width=`${a*2}px`,n.color!=null&&(f.style.backgroundColor=n.color),f.style.transitionDuration=`${m}ms`,this._containerElement.appendChild(f);let v=window.getComputedStyle(f),D=v.transitionProperty,x=v.transitionDuration,M=D==="none"||x==="0s"||x==="0s, 0s"||o.width===0&&o.height===0,O=new $y(this,f,n,M);f.style.transform="scale3d(1, 1, 1)",O.state=oo.FADING_IN,n.persistent||(this._mostRecentTransientRipple=O);let K=null;return!M&&(m||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let U=()=>{K&&(K.fallbackTimer=null),clearTimeout(gt),this._finishRippleTransition(O)},Xe=()=>this._destroyRipple(O),gt=setTimeout(Xe,m+100);f.addEventListener("transitionend",U),f.addEventListener("transitioncancel",Xe),K={onTransitionEnd:U,onTransitionCancel:Xe,fallbackTimer:gt}}),this._activeRipples.set(O,K),(M||!m)&&this._finishRippleTransition(O),O}fadeOutRipple(i){if(i.state===oo.FADING_OUT||i.state===oo.HIDDEN)return;let e=i.element,n=V(V({},Wd),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=oo.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=ai(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,OI.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(()=>{PI.forEach(e=>{this._triggerElement.addEventListener(e,this,RI)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===oo.FADING_IN?this._startFadeOutTransition(i):i.state===oo.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=oo.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=oo.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=ls(i),n=this._lastTouchStartEvent&&Date.now(){let e=i.state===oo.VISIBLE||i.config.terminateOnPointerUp&&i.state===oo.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(OI.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(PI.forEach(e=>i.removeEventListener(e,this,RI)),this._pointerUpEventsRegistered=!1))}};function ZU(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 Hl=new R("mat-ripple-global-options"),Bi=(()=>{class t{_elementRef=p(Z);_animationMode=p(tt,{optional:!0});color;unbounded;centered;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(ie),n=p(et),o=p(Hl,{optional:!0}),r=p(Ie);this._globalOptions=o||{},this._rippleRenderer=new Gd(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:V(V(V({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,n=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,V(V({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,V(V({},this.rippleConfig),e))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&X("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 XU={capture:!0},JU=["focus","mousedown","mouseenter","touchstart"],Yy="mat-ripple-loader-uninitialized",Qy="mat-ripple-loader-class-name",FI="mat-ripple-loader-centered",Gh="mat-ripple-loader-disabled",$h=(()=>{class t{_document=p(he);_animationMode=p(tt,{optional:!0});_globalRippleOptions=p(Hl,{optional:!0});_platform=p(et);_ngZone=p(ie);_injector=p(Ie);_eventCleanups;_hosts=new Map;constructor(){let e=p(hn).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>JU.map(n=>$t(e,this._document,n,this._onInteraction,XU)))}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(e,n){e.setAttribute(Yy,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute(Qy))&&e.setAttribute(Qy,n.className||""),n.centered&&e.setAttribute(FI,""),n.disabled&&e.setAttribute(Gh,"")}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(Gh,""):e.removeAttribute(Gh)}_onInteraction=e=>{let n=Bn(e);if(n instanceof HTMLElement){let o=n.closest(`[${Yy}="${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(Qy)),e.append(n);let o=this._animationMode==="NoopAnimations",r=this._globalRippleOptions,a=o?0:r?.animation?.enterDuration??Wd.enterDuration,s=o?0:r?.animation?.exitDuration??Wd.exitDuration,c={rippleDisabled:o||r?.disabled||e.hasAttribute(Gh),rippleConfig:{centered:e.hasAttribute(FI),terminateOnPointerUp:r?.terminateOnPointerUp,animation:{enterDuration:a,exitDuration:s}}},m=new Gd(c,this._ngZone,n,this._platform,this._injector),f=!c.rippleDisabled;f&&m.setupTriggerEvents(e),this._hosts.set(e,{target:c,renderer:m,hasSetUpEvents:f}),e.removeAttribute(Yy)}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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var gn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} +`],encapsulation:2,changeDetection:0})}return t})();var NI=["mat-icon-button",""],LI=["*"],eH=`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1} +`,tH=`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} +`,nH=new R("MAT_BUTTON_CONFIG");var iH=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],qh=(()=>{class t{_elementRef=p(Z);_ngZone=p(ie);_animationMode=p(tt,{optional:!0});_focusMonitor=p(Cn);_rippleLoader=p($h);_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;constructor(){p(yt).load(gn);let e=p(nH,{optional:!0}),n=this._elementRef.nativeElement,o=n.classList;this.disabledInteractive=e?.disabledInteractive??!1,this.color=e?.color??null,this._rippleLoader?.configureRipple(n,{className:"mat-mdc-button-ripple"});for(let{attribute:r,mdcClasses:a}of iH)n.hasAttribute(r)&&o.add(...a)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){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.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",$],disabled:[2,"disabled","disabled",$],ariaDisabled:[2,"aria-disabled","ariaDisabled",$],disabledInteractive:[2,"disabledInteractive","disabledInteractive",$]}})}return t})();var Ky=(()=>{class t extends qh{_renderer=p(kt);_cleanupClick;tabIndex;ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._elementRef.nativeElement,"click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._cleanupClick?.()}_haltDisabledEvents=e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())};_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled||null}static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,inputs:{tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Zt(e)]},features:[_e]})}return t})(),wn=(()=>{class t extends qh{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(ne("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Bt(o.color?"mat-"+o.color:""),X("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[_e],attrs:NI,ngContentSelectors:LI,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&&(Le(),I(0,"span",0),ue(1),I(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1} `,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} -`],encapsulation:2,changeDetection:0})}return t})(),$d=(()=>{class t extends Yy{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275cmp=S({type:t,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(n,o){n&2&&(ne("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getAriaDisabled()),Vt(o.color?"mat-"+o.color:""),ee("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[_e],attrs:PI,ngContentSelectors:FI,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&&(Le(),T(0,"span",0),ce(1),T(2,"span",1)(3,"span",2))},styles:[ZU,XU],encapsulation:2,changeDetection:0})}return t})();var tr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();var NI=["mat-button",""],LI=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],VI=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],tH=`.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} -`,nH=`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} -`;var De=(()=>{class t extends qh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275cmp=S({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(ne("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Vt(o.color?"mat-"+o.color:""),ee("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[_e],attrs:NI,ngContentSelectors:VI,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&&(Le(LI),T(0,"span",0),ce(1),l(2,"span",1),ce(3,1),d(),ce(4,2),T(5,"span",2)(6,"span",3)),n&2&&ee("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} +`],encapsulation:2,changeDetection:0})}return t})(),$d=(()=>{class t extends Ky{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275cmp=S({type:t,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(n,o){n&2&&(ne("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getAriaDisabled()),Bt(o.color?"mat-"+o.color:""),X("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[_e],attrs:NI,ngContentSelectors:LI,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&&(Le(),I(0,"span",0),ue(1),I(2,"span",1)(3,"span",2))},styles:[eH,tH],encapsulation:2,changeDetection:0})}return t})();var tr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[fe,fe]})}return t})();var VI=["mat-button",""],BI=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],jI=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],oH=`.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} +`,rH=`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} +`;var ye=(()=>{class t extends qh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275cmp=S({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(n,o){n&2&&(ne("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Bt(o.color?"mat-"+o.color:""),X("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[_e],attrs:VI,ngContentSelectors:jI,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&&(Le(BI),I(0,"span",0),ue(1),l(2,"span",1),ue(3,1),d(),ue(4,2),I(5,"span",2)(6,"span",3)),n&2&&X("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} `,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} -`],encapsulation:2,changeDetection:0})}return t})(),ua=(()=>{class t extends Yy{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275cmp=S({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(n,o){n&2&&(ne("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getAriaDisabled()),Vt(o.color?"mat-"+o.color:""),ee("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[_e],attrs:NI,ngContentSelectors:VI,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&&(Le(LI),T(0,"span",0),ce(1),l(2,"span",1),ce(3,1),d(),ce(4,2),T(5,"span",2)(6,"span",3)),n&2&&ee("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[tH,nH],encapsulation:2,changeDetection:0})}return t})();var nr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,tr,fe]})}return t})();var ue=(()=>{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)(y(Z))}}static{this.\u0275dir=B({type:t,selectors:[["uds-translate"]],standalone:!1})}}return t})();var Yh=(()=>{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)(y(Ja,16))}}static{this.\u0275pipe=Yo({name:"safeHtml",type:t,pure:!0,standalone:!1})}}return t})();function iH(t,i){if(t&1){let e=A();l(0,"button",4),b("click",function(){C(e);let o=g();return w(o.resolveAndClose(!1))}),l(1,"uds-translate"),h(2,"Close"),d(),h(3),d()}if(t&2){let e=g();u(3),de(e.extra)}}function oH(t,i){if(t&1){let e=A();l(0,"button",5),b("click",function(){C(e);let o=g();return w(o.resolveAndClose(!0))}),l(1,"uds-translate"),h(2,"Yes"),d()()}if(t&2){let e=g();_("color",e.yesColor)}}function rH(t,i){if(t&1){let e=A();l(0,"button",5),b("click",function(){C(e);let o=g();return w(o.resolveAndClose(!1))}),l(1,"uds-translate"),h(2,"No"),d()()}if(t&2){let e=g();_("color",e.noColor)}}var qd=function(t){return t[t.alert=0]="alert",t[t.question=1]="question",t}(qd||{}),Qy=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.yesColor="primary",this.noColor="warn",this.extra="",this.subscription={},this.acceptance=new qt}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 V(this,null,function*(){let e=this.data.autoclose||0;e>0&&(this.dialogRef.afterClosed().subscribe(n=>{this.closed()}),this.setExtra(e),this.subscription=wc(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===qd.alert&&this.initAlert()}static{this.\u0275fac=function(n){return new(n||t)(y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(T(0,"h4",0),dt(1,"safeHtml"),T(2,"mat-dialog-content",1),dt(3,"safeHtml"),l(4,"mat-dialog-actions"),E(5,iH,4,1,"button",2)(6,oH,3,1,"button",3)(7,rH,3,1,"button",3),d()),n&2&&(_("innerHtml",vt(1,5,o.data.title),Wt),u(2),_("innerHTML",vt(3,7,o.data.body),Wt),u(3),I(o.data.type===0?5:-1),u(),I(o.data.type===1?6:-1),u(),I(o.data.type===1?7:-1))},dependencies:[De,jt,$e,Ye,qe,ue,Yh],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var ui=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}(ui||{}),Yd=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{o={id:"",img:"",text:""}}return o}};var $I=(()=>{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)(y(It),y(Z))};static \u0275dir=B({type:t})}return t})(),qI=(()=>{class t extends $I{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,features:[_e]})}return t})(),mi=new R("");var aH={provide:mi,useExisting:en(()=>st),multi:!0};function sH(){let t=Pi()?Pi().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var lH=new R(""),st=(()=>{class t extends $I{_compositionMode;_composing=!1;constructor(e,n,o){super(e,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!sH())}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)(y(It),y(Z),y(lH,8))};static \u0275dir=B({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&&b("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:[Ce([aH]),_e]})}return t})();function Zy(t){return t==null||Xy(t)===0}function Xy(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var oo=new R(""),cf=new R(""),cH=/^(?=.{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])?)*$/,ir=class{static min(i){return dH(i)}static max(i){return uH(i)}static required(i){return YI(i)}static requiredTrue(i){return mH(i)}static email(i){return pH(i)}static minLength(i){return hH(i)}static maxLength(i){return QI(i)}static pattern(i){return fH(i)}static nullValidator(i){return Kh()}static compose(i){return tk(i)}static composeAsync(i){return nk(i)}};function dH(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 YI(t){return Zy(t.value)?{required:!0}:null}function mH(t){return t.value===!0?null:{required:!0}}function pH(t){return Zy(t.value)||cH.test(t.value)?null:{email:!0}}function hH(t){return i=>{let e=i.value?.length??Xy(i.value);return e===null||e===0?null:e{let e=i.value?.length??Xy(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function fH(t){if(!t)return Kh;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(Zy(n.value))return null;let o=n.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function Kh(t){return null}function KI(t){return t!=null}function ZI(t){return Zr(t)?zt(t):t}function XI(t){let i={};return t.forEach(e=>{i=e!=null?L(L({},i),e):i}),Object.keys(i).length===0?null:i}function JI(t,i){return i.map(e=>e(t))}function gH(t){return!t.validate}function ek(t){return t.map(i=>gH(i)?i:e=>i.validate(e))}function tk(t){if(!t)return null;let i=t.filter(KI);return i.length==0?null:function(e){return XI(JI(e,i))}}function Jy(t){return t!=null?tk(ek(t)):null}function nk(t){if(!t)return null;let i=t.filter(KI);return i.length==0?null:function(e){let n=JI(e,i).map(ZI);return Cc(n).pipe(pe(XI))}}function eC(t){return t!=null?nk(ek(t)):null}function jI(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function ik(t){return t._rawValidators}function ok(t){return t._rawAsyncValidators}function Ky(t){return t?Array.isArray(t)?t:[t]:[]}function Zh(t,i){return Array.isArray(t)?t.includes(i):t===i}function zI(t,i){let e=Ky(i);return Ky(t).forEach(o=>{Zh(e,o)||e.push(o)}),e}function UI(t,i){return Ky(i).filter(e=>!Zh(t,e))}var Xh=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=Jy(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=eC(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&&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}},Ir=class extends Xh{name;get formDirective(){return null}get path(){return null}},Mi=class extends Xh{_parent=null;name=null;valueAccessor=null},Jh=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}},_H={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},fhe=Qe(L({},_H),{"[class.ng-submitted]":"isSubmitted"}),we=(()=>{class t extends Jh{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(y(Mi,2))};static \u0275dir=B({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&ee("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:[_e]})}return t})(),df=(()=>{class t extends Jh{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(y(Ir,10))};static \u0275dir=B({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&ee("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:[_e]})}return t})();var Qd="VALID",Qh="INVALID",Wl="PENDING",Kd="DISABLED",ma=class{},ef=class extends ma{value;source;constructor(i,e){super(),this.value=i,this.source=e}},Xd=class extends ma{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},Jd=class extends ma{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},Gl=class extends ma{status;source;constructor(i,e){super(),this.status=i,this.source=e}},tf=class extends ma{source;constructor(i){super(),this.source=i}},nf=class extends ma{source;constructor(i){super(),this.source=i}};function rk(t){return(uf(t)?t.validators:t)||null}function vH(t){return Array.isArray(t)?Jy(t):t||null}function ak(t,i){return(uf(i)?i.asyncValidators:t)||null}function bH(t){return Array.isArray(t)?eC(t):t||null}function uf(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function yH(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new Q(1e3,"");if(!n[e])throw new Q(1001,"")}function CH(t,i,e){t._forEachChild((n,o)=>{if(e[o]===void 0)throw new Q(1002,"")})}var of=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 xi(this.statusReactive)}set status(i){xi(()=>this.statusReactive.set(i))}_status=Qo(()=>this.statusReactive());statusReactive=yi(void 0);get valid(){return this.status===Qd}get invalid(){return this.status===Qh}get pending(){return this.status==Wl}get disabled(){return this.status===Kd}get enabled(){return this.status!==Kd}errors;get pristine(){return xi(this.pristineReactive)}set pristine(i){xi(()=>this.pristineReactive.set(i))}_pristine=Qo(()=>this.pristineReactive());pristineReactive=yi(!0);get dirty(){return!this.pristine}get touched(){return xi(this.touchedReactive)}set touched(i){xi(()=>this.touchedReactive.set(i))}_touched=Qo(()=>this.touchedReactive());touchedReactive=yi(!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(zI(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(zI(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(UI(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(UI(i,this._rawAsyncValidators))}hasValidator(i){return Zh(this._rawValidators,i)}hasAsyncValidator(i){return Zh(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;this._parent&&!i.onlySelf&&this._parent.markAsTouched(Qe(L({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Jd(!0,n))}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})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new Jd(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(Qe(L({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Xd(!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})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new Xd(!0,n))}markAsPending(i={}){this.status=Wl;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Gl(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(Qe(L({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Kd,this.errors=null,this._forEachChild(o=>{o.disable(Qe(L({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new ef(this.value,n)),this._events.next(new Gl(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Qe(L({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Qd,this._forEachChild(n=>{n.enable(Qe(L({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Qe(L({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){this._parent&&!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===Qd||this.status===Wl)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new ef(this.value,e)),this._events.next(new Gl(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(Qe(L({},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()?Kd:Qd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=Wl,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=ZI(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??!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&&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 Gl(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new k,this.statusChanges=new k}_calculateStatus(){return this._allControlsDisabled()?Kd:this.errors?Qh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wl)?Wl:this._anyControlsHaveStatus(Qh)?Qh:Qd}_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,this._parent&&!i.onlySelf&&this._parent._updatePristine(i,e),o&&this._events.next(new Xd(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new Jd(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){uf(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let e=this._parent&&this._parent.dirty;return!i&&!!e&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=vH(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=bH(this._rawAsyncValidators)}},rf=class extends of{constructor(i,e,n){super(rk(e),ak(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={}){CH(this,!0,i),Object.keys(i).forEach(n=>{yH(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,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}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 $l=new R("",{providedIn:"root",factory:()=>mf}),mf="always";function wH(t,i){return[...i.path,t]}function eu(t,i,e=mf){tC(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),DH(t,i),EH(t,i),SH(t,i),xH(t,i)}function af(t,i,e=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),lf(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function sf(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function xH(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function tC(t,i){let e=ik(t);i.validator!==null?t.setValidators(jI(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=ok(t);i.asyncValidator!==null?t.setAsyncValidators(jI(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();sf(i._rawValidators,o),sf(i._rawAsyncValidators,o)}function lf(t,i){let e=!1;if(t!==null){if(i.validator!==null){let o=ik(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=ok(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 sf(i._rawValidators,n),sf(i._rawAsyncValidators,n),e}function DH(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&sk(t,i)})}function SH(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&sk(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function sk(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function EH(t,i){let e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function lk(t,i){t==null,tC(t,i)}function MH(t,i){return lf(t,i)}function ck(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function TH(t){return Object.getPrototypeOf(t.constructor)===qI}function dk(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function uk(t,i){if(!i)return null;Array.isArray(i);let e,n,o;return i.forEach(r=>{r.constructor===st?e=r:TH(r)?n=r:o=r}),o||n||e||null}function IH(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var kH={provide:Ir,useExisting:en(()=>ro)},Zd=Promise.resolve(),ro=(()=>{class t extends Ir{callSetDisabledState;get submitted(){return xi(this.submittedReactive)}_submitted=Qo(()=>this.submittedReactive());submittedReactive=yi(!1);_directives=new Set;form;ngSubmit=new k;options;constructor(e,n,o){super(),this.callSetDisabledState=o,this.form=new rf({},Jy(e),eC(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Zd.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),eu(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Zd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Zd.then(()=>{let n=this._findContainer(e.path),o=new rf({});lk(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Zd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){Zd.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),dk(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new tf(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1),this.form._events.next(new nf(this.form))}_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)(y(oo,10),y(cf,10),y($l,8))};static \u0275dir=B({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&b("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:[Ce([kH]),_e]})}return t})();function HI(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function WI(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var pf=class extends of{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(rk(e),ak(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),uf(e)&&(e.nonNullable||e.initialValueIsDefault)&&(WI(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),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){HI(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){HI(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){WI(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 AH=t=>t instanceof pf;var RH={provide:Mi,useExisting:en(()=>Se)},GI=Promise.resolve(),Se=(()=>{class t extends Mi{_changeDetectorRef;callSetDisabledState;control=new pf;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new k;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=uk(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),ck(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(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(){eu(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){GI.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,o=n!==0&&$(n);GI.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?wH(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(y(Ir,9),y(oo,10),y(cf,10),y(mi,10),y(xe,8),y($l,8))};static \u0275dir=B({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:[Ce([RH]),_e,Be]})}return t})();var hf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),OH={provide:mi,useExisting:en(()=>ji),multi:!0},ji=(()=>{class t extends qI{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=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&b("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Ce([OH]),_e]})}return t})();var mk=new R(""),PH={provide:Mi,useExisting:en(()=>nC)},nC=(()=>{class t extends Mi{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new k;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=uk(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&af(n,this,!1),eu(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ck(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&af(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)(y(oo,10),y(cf,10),y(mi,10),y(mk,8),y($l,8))};static \u0275dir=B({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:[Ce([PH]),_e,Be]})}return t})(),FH={provide:Ir,useExisting:en(()=>pa)},pa=(()=>{class t extends Ir{callSetDisabledState;get submitted(){return xi(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Qo(()=>this._submittedReactive());_submittedReactive=yi(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new k;constructor(e,n,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(lf(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let n=this.form.get(e.path);return eu(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){af(e.control||null,e,!1),IH(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this._submittedReactive.set(!0),dk(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new tf(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new nf(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,o=this.form.get(e.path);n!==o&&(af(n||null,e),AH(o)&&(eu(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);lk(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&MH(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){tC(this.form,this),this._oldForm&&lf(this._oldForm,this)}static \u0275fac=function(n){return new(n||t)(y(oo,10),y(cf,10),y($l,8))};static \u0275dir=B({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&b("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:[Ce([FH]),_e,Be]})}return t})();function NH(t){return typeof t=="number"?t:parseInt(t,10)}var pk=(()=>{class t{_validator=Kh;_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):Kh,this._onChange&&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=B({type:t,features:[Be]})}return t})();var LH={provide:oo,useExisting:en(()=>Tn),multi:!0};var Tn=(()=>{class t extends pk{required;inputName="required";normalizeInput=$;createValidator=e=>YI;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({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&&ne("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Ce([LH]),_e]})}return t})();var VH={provide:oo,useExisting:en(()=>vs),multi:!0},vs=(()=>{class t extends pk{maxlength;inputName="maxlength";normalizeInput=e=>NH(e);createValidator=e=>QI(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&ne("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Ce([VH]),_e]})}return t})();var hk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();var fk=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:$l,useValue:e.callSetDisabledState??mf}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[hk]})}return t})(),ff=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:mk,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:$l,useValue:e.callSetDisabledState??mf}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[hk]})}return t})();var iC=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 Fe(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(Ke(e=>e.some(n=>n.target===i)),pm({bufferSize:1,refCount:!0}),Te(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},gf=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=p(ie);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 iC(o)),this._observers.get(o).observe(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var lC=["*"];function BH(t,i){t&1&&ce(0)}var jH=["tabListContainer"],zH=["tabList"],UH=["tabListInner"],HH=["nextPaginator"],WH=["previousPaginator"],GH=["content"];function $H(t,i){}var qH=["tabBodyWrapper"],YH=["tabHeader"];function QH(t,i){}function KH(t,i){if(t&1&&E(0,QH,0,0,"ng-template",12),t&2){let e=g().$implicit;_("cdkPortalOutlet",e.templateLabel)}}function ZH(t,i){if(t&1&&h(0),t&2){let e=g().$implicit;de(e.textLabel)}}function XH(t,i){if(t&1){let e=A();l(0,"div",7,2),b("click",function(){let o=C(e),r=o.$implicit,a=o.$index,s=g(),c=Ge(1);return w(s._handleClick(r,c,a))})("cdkFocusChange",function(o){let r=C(e).$index,a=g();return w(a._tabFocusChanged(o,r))}),T(2,"span",8)(3,"div",9),l(4,"span",10)(5,"span",11),E(6,KH,1,1,null,12)(7,ZH,1,1),d()()()}if(t&2){let e=i.$implicit,n=i.$index,o=Ge(1),r=g();Vt(e.labelClass),ee("mdc-tab--active",r.selectedIndex===n),_("id",r._getTabLabelId(e,n))("disabled",e.disabled)("fitInkBarToContent",r.fitInkBarToContent),ne("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),u(3),_("matRippleTrigger",o)("matRippleDisabled",e.disabled||r.disableRipple),u(3),I(e.templateLabel?6:7)}}function JH(t,i){t&1&&ce(0)}function e5(t,i){if(t&1){let e=A();l(0,"mat-tab-body",13),b("_onCentered",function(){C(e);let o=g();return w(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){C(e);let r=g();return w(r._setTabBodyWrapperHeight(o))})("_beforeCentering",function(o){C(e);let r=g();return w(r._bodyCentered(o))}),d()}if(t&2){let e=i.$implicit,n=i.$index,o=g();Vt(e.bodyClass),_("id",o._getTabContentId(n))("content",e.content)("position",e.position)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),ne("tabindex",o.contentTabIndex!=null&&o.selectedIndex===n?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(e,n))("aria-hidden",o.selectedIndex!==n)}}var t5=new R("MatTabContent"),n5=(()=>{class t{template=p(St);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","matTabContent",""]],features:[Ce([{provide:t5,useExisting:t}])]})}return t})(),i5=new R("MatTabLabel"),bk=new R("MAT_TAB"),Yt=(()=>{class t extends yy{_closestTab=p(bk,{optional:!0});static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ce([{provide:i5,useExisting:t}]),_e]})}return t})(),yk=new R("MAT_TAB_GROUP"),Qt=(()=>{class t{_viewContainerRef=p(Rt);_closestTabGroup=p(yk,{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(yt).load(gn)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new yn(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=S({type:t,selectors:[["mat-tab"]],contentQueries:function(n,o,r){if(n&1&&(je(r,Yt,5),je(r,n5,7,St)),n&2){let a;q(a=Y())&&(o.templateLabel=a.first),q(a=Y())&&(o._explicitContent=a.first)}},viewQuery:function(n,o){if(n&1&&me(St,7),n&2){let r;q(r=Y())&&(o._implicitContent=r.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(n,o){n&2&&ne("id",null)},inputs:{disabled:[2,"disabled","disabled",$],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Ce([{provide:bk,useExisting:t}]),Be],ngContentSelectors:lC,decls:1,vars:0,template:function(n,o){n&1&&(Le(),E(0,BH,1,0,"ng-template"))},encapsulation:2})}return t})(),oC="mdc-tab-indicator--active",gk="mdc-tab-indicator--no-transition",rC=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}}},o5=(()=>{class t{_elementRef=p(Z);_inkBarElement;_inkBarContentElement;_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(oC);return}let o=n.getBoundingClientRect(),r=e.width/o.width,a=e.left-o.left;n.classList.add(gk),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${r})`),n.getBoundingClientRect(),n.classList.remove(gk),n.classList.add(oC),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(oC)}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=B({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",$]}})}return t})();var Ck=(()=>{class t extends o5{elementRef=p(Z);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=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,o){n&2&&(ne("aria-disabled",!!o.disabled),ee("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",$]},features:[_e]})}return t})(),_k={passive:!0},r5=650,a5=100,s5=(()=>{class t{_elementRef=p(Z);_changeDetectorRef=p(xe);_viewportRuler=p(Ei);_dir=p(Pt,{optional:!0});_ngZone=p(ie);_platform=p(et);_sharedResizeObserver=p(gf);_injector=p(Ie);_renderer=p(It);_animationMode=p(tt,{optional:!0});_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_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 k;indexFocused=new k;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push($t(this._renderer,this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),_k),$t(this._renderer,this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),_k))}ngAfterContentInit(){let e=this._dir?this._dir.change:ae("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(lr(32),Te(this._destroyed)),o=this._viewportRuler.change(150).pipe(Te(this._destroyed)),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Tr(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),Ht(r,{injector:this._injector}),_t(e,o,n,this._items.changes,this._itemsResized()).pipe(Te(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"?_n:this._items.changes.pipe(xt(this._items),Dt(e=>new Fe(n=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(r=>n.next(r));return e.forEach(r=>o.observe(r.elementRef.nativeElement)),()=>{o.disconnect()}}))),ka(1),Ke(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(!Et(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,c;this._getLayoutDirection()=="ltr"?(s=r,c=s+a):(c=this._tabListInner.nativeElement.offsetWidth-r,s=c-a);let m=this.scrollDistance,f=this.scrollDistance+o;sf&&(this.scrollDistance+=Math.min(c-f,s-m))}_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(),go(r5,a5).pipe(Te(_t(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=B({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",$],selectedIndex:[2,"selectedIndex","selectedIndex",Zt]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),l5=(()=>{class t extends s5{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new rC(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275cmp=S({type:t,selectors:[["mat-tab-header"]],contentQueries:function(n,o,r){if(n&1&&je(r,Ck,4),n&2){let a;q(a=Y())&&(o._items=a)}},viewQuery:function(n,o){if(n&1&&(me(jH,7),me(zH,7),me(UH,7),me(HH,5),me(WH,5)),n&2){let r;q(r=Y())&&(o._tabListContainer=r.first),q(r=Y())&&(o._tabList=r.first),q(r=Y())&&(o._tabListInner=r.first),q(r=Y())&&(o._nextPaginator=r.first),q(r=Y())&&(o._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,o){n&2&&ee("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",$]},features:[_e],ngContentSelectors:lC,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(n,o){if(n&1){let r=A();Le(),l(0,"div",5,0),b("click",function(){return C(r),w(o._handlePaginatorClick("before"))})("mousedown",function(s){return C(r),w(o._handlePaginatorPress("before",s))})("touchend",function(){return C(r),w(o._stopInterval())}),T(2,"div",6),d(),l(3,"div",7,1),b("keydown",function(s){return C(r),w(o._handleKeydown(s))}),l(5,"div",8,2),b("cdkObserveContent",function(){return C(r),w(o._onContentChanges())}),l(7,"div",9,3),ce(9),d()()(),l(10,"div",10,4),b("mousedown",function(s){return C(r),w(o._handlePaginatorPress("after",s))})("click",function(){return C(r),w(o._handlePaginatorClick("after"))})("touchend",function(){return C(r),w(o._stopInterval())}),T(12,"div",6),d()}n&2&&(ee("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),_("matRippleDisabled",o._disableScrollBefore||o.disableRipple),u(3),ee("_mat-animation-noopable",o._animationMode==="NoopAnimations"),u(2),ne("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),u(5),ee("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),_("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[Bi,FT],styles:[`.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height, 1px);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height, 1px);border-top-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}} -`],encapsulation:2})}return t})(),c5=new R("MAT_TABS_CONFIG"),vk=(()=>{class t extends Kn{_host=p(aC);_centeringSub=be.EMPTY;_leavingSub=be.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(xt(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","matTabBodyHost",""]],features:[_e]})}return t})(),aC=(()=>{class t{_elementRef=p(Z);_dir=p(Pt,{optional:!0});_ngZone=p(ie);_injector=p(Ie);_renderer=p(It);_animationsModule=p(tt,{optional:!0});_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=be.EMPTY;_position;_previousPosition;_onCentering=new k;_beforeCentering=new k;_afterLeavingCenter=new k;_onCentered=new k(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=p(xe);this._dirChangeSubscription=this._dir.change.subscribe(n=>{this._computePositionAnimationState(n),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),Ht(()=>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(),Ht(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._animationsModule==="NoopAnimations"||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&(me(vk,5),me(GH,5)),n&2){let r;q(r=Y())&&(o._portalHost=r.first),q(r=Y())&&(o._contentElement=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(n,o){n&2&&ne("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&&(l(0,"div",1,0),E(2,$H,0,0,"ng-template",2),d()),n&2&&ee("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:[vk,Nd],styles:[`.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)} -`],encapsulation:2})}return t})(),Xt=(()=>{class t{_elementRef=p(Z);_changeDetectorRef=p(xe);_ngZone=p(ie);_tabsSubscription=be.EMPTY;_tabLabelSubscription=be.EMPTY;_tabBodySubscription=be.EMPTY;_diAnimationsDisabled=p(tt,{optional:!0})==="NoopAnimations";_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new Qi;_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;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 k;focusChange=new k;animationDone=new k;selectedTabChange=new k(!0);_groupId;_isServer=!p(et).isBrowser;constructor(){let e=p(c5,{optional:!0});this._groupId=p(ut).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(xt(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 sC;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=_t(...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=S({type:t,selectors:[["mat-tab-group"]],contentQueries:function(n,o,r){if(n&1&&je(r,Qt,5),n&2){let a;q(a=Y())&&(o._allTabs=a)}},viewQuery:function(n,o){if(n&1&&(me(qH,5),me(YH,5),me(aC,5)),n&2){let r;q(r=Y())&&(o._tabBodyWrapper=r.first),q(r=Y())&&(o._tabHeader=r.first),q(r=Y())&&(o._tabBodies=r)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(n,o){n&2&&(ne("mat-align-tabs",o.alignTabs),Vt("mat-"+(o.color||"primary")),Vn("--mat-tab-animation-duration",o.animationDuration),ee("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",$],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",$],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",$],selectedIndex:[2,"selectedIndex","selectedIndex",Zt],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",Zt],disablePagination:[2,"disablePagination","disablePagination",$],disableRipple:[2,"disableRipple","disableRipple",$],preserveContent:[2,"preserveContent","preserveContent",$],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Ce([{provide:yk,useExisting:t}])],ngContentSelectors:lC,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){if(n&1){let r=A();Le(),l(0,"mat-tab-header",3,0),b("indexFocused",function(s){return C(r),w(o._focusChanged(s))})("selectFocusedIndex",function(s){return C(r),w(o.selectedIndex=s)}),oe(2,XH,8,17,"div",4,le),d(),E(4,JH,1,0),l(5,"div",5,1),oe(7,e5,1,10,"mat-tab-body",6,le),d()}n&2&&(_("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),u(2),re(o._tabs),u(2),I(o._isServer?4:-1),u(),ee("_mat-animation-noopable",o._animationsDisabled()),u(2),re(o._tabs))},dependencies:[l5,Ck,Od,Bi,Kn,aC],styles:[`.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height, 48px);font-family:var(--mat-tab-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height, 2px);border-radius:var(--mdc-tab-indicator-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important} -`],encapsulation:2})}return t})(),sC=class{index;tab};var wk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();function d5(t,i){if(t&1){let e=A();l(0,"uds-field-text",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function u5(t,i){if(t&1){let e=A();l(0,"uds-field-autocomplete",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function m5(t,i){if(t&1){let e=A();l(0,"uds-field-textbox",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function p5(t,i){if(t&1){let e=A();l(0,"uds-field-numeric",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function h5(t,i){if(t&1){let e=A();l(0,"uds-field-password",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function f5(t,i){if(t&1){let e=A();l(0,"uds-field-hidden",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function g5(t,i){if(t&1){let e=A();l(0,"uds-field-choice",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function _5(t,i){if(t&1){let e=A();l(0,"uds-field-multichoice",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function v5(t,i){if(t&1){let e=A();l(0,"uds-field-editlist",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function b5(t,i){if(t&1){let e=A();l(0,"uds-field-checkbox",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function y5(t,i){if(t&1){let e=A();l(0,"uds-field-imgchoice",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function C5(t,i){if(t&1){let e=A();l(0,"uds-field-date",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function w5(t,i){if(t&1){let e=A();l(0,"uds-field-tags",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}var _f=(()=>{class t{constructor(){this.field={},this.changed=new k,this.udsGuiFieldType=ui}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=S({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&&(l(0,"div",0),E(1,d5,1,1,"uds-field-text",1)(2,u5,1,1,"uds-field-autocomplete",1)(3,m5,1,1,"uds-field-textbox",1)(4,p5,1,1,"uds-field-numeric",1)(5,h5,1,1,"uds-field-password",1)(6,f5,1,1,"uds-field-hidden",1)(7,g5,1,1,"uds-field-choice",1)(8,_5,1,1,"uds-field-multichoice",1)(9,v5,1,1,"uds-field-editlist",1)(10,b5,1,1,"uds-field-checkbox",1)(11,y5,1,1,"uds-field-imgchoice",1)(12,C5,1,1,"uds-field-date",1)(13,w5,1,1,"uds-field-tags",1),d()),n&2){let r;_("matTooltip",o.field.gui.tooltip),u(),I((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 D5(t,i){if(t&1&&h(0),t&2){let e=g().$implicit;F(" ",e," ")}}function S5(t,i){if(t&1){let e=A();l(0,"uds-field",6),b("changed",function(o){C(e);let r=g(3);return w(r.changed.emit(o))}),d()}if(t&2){let e=i.$implicit;_("field",e)}}function E5(t,i){if(t&1&&(l(0,"mat-tab",2),E(1,D5,1,1,"ng-template",3),l(2,"div",1)(3,"div",4),oe(4,S5,1,1,"uds-field",5,le),d()()()),t&2){let e=i.$implicit,n=g(2);u(4),re(n.fieldsByTab[e])}}function M5(t,i){if(t&1&&(l(0,"mat-tab-group",0),oe(1,E5,6,0,"mat-tab",2,le),d()),t&2){let e=g();_("disableRipple",!1)("@.disabled",!0),u(),re(e.tabs)}}function T5(t,i){if(t&1){let e=A();l(0,"div")(1,"uds-field",6),b("changed",function(o){C(e);let r=g(2);return w(r.changed.emit(o))}),d()()}if(t&2){let e=i.$implicit;u(),_("field",e)}}function I5(t,i){if(t&1&&(l(0,"div",1),oe(1,T5,2,1,"div",null,le),d()),t&2){let e=g();u(),re(e.fields)}}var k5=django.gettext("Main"),xk=(()=>{class t{constructor(){this.fields=[],this.changed=new k,this.tabs=new Array,this.fieldsByTab={}}ngOnInit(){this.fieldsByTab={};for(let e of this.fields){let n=e.gui.tab===void 0?k5:e.gui.tab;this.tabs.includes(n)||(this.tabs.push(n),this.fieldsByTab[n]=new Array),this.fieldsByTab[n].push(e)}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=S({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&&E(0,M5,3,2,"mat-tab-group",0)(1,I5,3,0,"div",1),n&2&&I(o.tabs.length>1?0:1)},dependencies:[Yt,Qt,Xt,_f],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 R5(t,i){if(t&1){let e=A();l(0,"button",10),b("click",function(){C(e);let o=g();return w(o.customButtonClicked())}),h(1),d()}if(t&2){let e=g();u(),de(e.data.customButton)}}var Dk=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.onEvent=new k(!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),c=parseInt((o.gui.maxValue||987654321).toString(),10);s!==987654321&&r= "+o.gui.minValue),c!==987654321&&r>c&&n.push(o.gui.label+" <= "+o.gui.maxValue),r=r.toString()}(s=>{let c=s.split("."),m=e;for(let f=0;f0){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)(y(Oe),y(ze))}}static{this.\u0275cmp=S({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){if(n&1){let r=A();T(0,"h4",1),dt(1,"safeHtml"),l(2,"mat-dialog-content",null,0)(4,"form",2)(5,"uds-form",3),b("changed",function(s){return C(r),w(o.changed(s))}),d()()(),l(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),E(9,R5,2,1,"button",6),d(),l(10,"div",7)(11,"button",8),b("click",function(){return C(r),w(o.dialogRef.close())})("click",function(){return C(r),w(o.cancel())}),l(12,"uds-translate"),h(13,"Discard & close"),d()(),l(14,"button",9),b("click",function(){return C(r),w(o.save())}),l(15,"uds-translate"),h(16,"Save"),d()()()()()}n&2&&(_("innerHtml",vt(1,5,o.data.title),Wt),u(5),_("fields",o.data.guiFields),u(4),I(o.data.customButton!==void 0?9:-1),u(2),_("disabled",o.saving),u(3),_("disabled",o.saving))},dependencies:[ii,hf,df,ro,De,$e,Ye,qe,ue,xk,Yh],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 vf=class{constructor(i){this.gui=i}modalForm(i,e,n=null,o){e.sort((c,m)=>c.gui.order>m.gui.order?1:-1);let r=n!=null;n=r?n:{},e.forEach(c=>{(r===!1||c.gui.readonly===void 0)&&(c.gui.readonly=!1),c.gui.type===ui.TEXT&&c.gui.lines&&(c.gui.type=ui.TEXTBOX);let f=((v,D)=>{let x=D.split("."),M=v;for(let O of x)if(M&&typeof M=="object")M=M[O];else return;return M!==null?M:void 0})(n,c.name);if(f!==void 0)if(f instanceof Array){let v=new Array;f.forEach(D=>v.push(D)),c.value=v}else c.value=f});let a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(Dk,{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 V(this,null,function*(){let c=s||{},m=c.callback||(()=>{}),f=o||[],v=n?django.gettext("Test"):void 0,D={},x={},M=U=>{if(x.hasOwnProperty(U.name)){let Xe=x[U.name];U.value!==""&&U.value!==void 0&&this.executeCallback(i,U,D)}},O=c.snack||this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),K=yield i.table.rest.gui(a);if(O.dismiss(),f!==void 0)for(let U of f)K.push(U);for(let U of K){if(U.gui.type===ui.INFO){U.name==="title"&&(e+=" "+(U.value||U.gui.default||""));continue}D[U.name]=U,U.gui.fills!==void 0&&(x[U.name]=U.gui.fills)}this.modalForm(e,K,r,v).subscribe(U=>V(this,null,function*(){switch(U.data&&(U.data.data_type=a),U.type){case v:if(U.errors&&U.errors.length>0){this.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+U.errors.join(", "));return}this.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),i.table.rest.test(a,U.data).then(Xe=>{Xe!=="ok"?this.gui.snackbar.open(django.gettext("Test failed:")+" "+Xe,django.gettext("dismiss")):this.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(U.data===null)for(let Xe of K)M(Xe);else M(U.data.field);m({on:U.data,all:D});break;case"save":if(c.save===void 0){U.dialog.componentInstance.saving=!0;try{r?yield i.table.rest.save(U.data,r.id):yield i.table.rest.create(U.data),this.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),U.dialog.close(),i.table.reloadPage()}finally{U.dialog.componentInstance.saving=!1}}else U.dialog.close(),c.save.resolve(U.data);break;case"cancel":U.dialog.close();break}}))})}typedEditForm(i,e,n=!1,o,r=()=>{}){return V(this,null,function*(){let a=i.table.selection.selected[0],s=a.type,c=new k,m=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),f=yield i.table.rest.get(a.id);return this.typedForm(i,e,n,o,f,s,{snack:m,callback:r})})}typedNewForm(i,e,n=!1,o,r=()=>{}){return V(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 V(this,null,function*(){let r=new Array,a=new Array;for(let m of i.table.selection.selected){let f=m.name||m.friendly_name||m[n||"name"]||m.id;if(f&&f.changingThisBreaksApplicationSecurity&&(f=f.changingThisBreaksApplicationSecurity),o){let v=f.indexOf("")+7;f=f.substring(0,v)+f.substring(v).replace(//g,">")}else f=f.replace(//g,">");r.push(f),a.push(m.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 f of a)try{yield i.table.rest.delete(f)}catch(v){console.warn("Error deleting item",f,v)}let m=a.length;this.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),i.table.reloadPage()}})}executeCallback(r,a,s){return V(this,arguments,function*(i,e,n,o={}){let c=new Array;if(!e.gui.fills)return;for(let v of e.gui.fills.parameters)c.push(v+"="+encodeURIComponent(n[v].value));let m=yield i.table.rest.callback(e.gui.fills.callback_name,c.join("&")),f=new Array;for(let v of m){let D=n[v.name];if(D!==void 0){D.gui.fills!==void 0&&f.push(D);let x=new Array;for(let M of v.choices)x.push({id:M.id,text:M.text,img:M.img});if(D.gui.choices=x,D.value instanceof Array){let M=new Array;for(let O of D.gui.choices)D.value.indexOf(O.id)>=0&&M.push(O.id);D.value=M}else(!D.value||D.value instanceof Array&&D.value.length===0)&&(D.value=v.choices.length>0?v.choices[0].id:"")}}for(let v of f)o[v.name]===void 0&&(o[v.name]=!0,this.executeCallback(i,v,n,o))})}};var O5="display:inline-block; background-size: SIZE SIZE; background-repeat: no-repeat; width: SIZE; height: SIZE; vertical-align: middle; margin: 4px 8px 4px 0px;",bf=class{constructor(i,e){this.dialog=i,this.snackbar=e,this.forms=new vf(this)}alert(i,e,n=0,o){return V(this,null,function*(){let r=o||(window.innerWidth<800?"80%":"40%");return this.dialog.open(Qy,{width:r,data:{title:i,body:e,autoclose:n,type:qd.alert},disableClose:!0}).componentInstance.acceptance})}questionDialog(i,e,n=!1){return V(this,null,function*(){let o=window.innerWidth<800?"80%":"40%",r=this.dialog.open(Qy,{width:o,data:{title:i,body:e,type:qd.question,warnOnYes:n},disableClose:!0});return Mo(r.componentInstance.acceptance)})}icon_from_image(i,e="24px"){return''}material_icon(i,e,n="24px"){let o='",o}};var yf={production:!0};var Ft=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}(Ft||{}),ot=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}(ot||{});var cC="provider",dC="service",tu="pool",P5="authenticator",nu="user",uC="group",mC="transport",pC="osmanager",Cf="calendar",hC="poolgroup",F5={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")},wn=class{constructor(i){this.router=i}static getGotoButton(i,e,n){return{id:i,html:'link'+django.gettext("Go to")+" "+F5[i]+"",type:ot.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 cC:this.gotoProvider(o(0));break;case dC:this.gotoService(o(0),o(1));break;case tu:this.gotoServicePool(o(0));break;case P5:this.gotoAuthenticator(o(0));break;case nu:this.gotoUser(o(0),o(1));break;case uC:this.gotoGroup(o(0),o(1));break;case mC:this.gotoTransport(o(0));break;case pC:this.gotoOSManager(o(0));break;case Cf:this.gotoCalendar(o(0));break;case hC:this.gotoPoolGroup(o(0));break}}catch{}}};var wf={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)"};function N5(t,i){if(t&1){let e=A();l(0,"div",1)(1,"button",2),b("click",function(){C(e);let o=g();return w(o.action())}),h(2),d()()}if(t&2){let e=g();u(2),F(" ",e.data.action," ")}}var L5=["label"];function V5(t,i){}var B5=Math.pow(2,31)-1,iu=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,B5))}_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}},Sk=new R("MatSnackBarData"),ql=class{politeness="assertive";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},j5=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),z5=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),U5=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),Ek=(()=>{class t{snackBarRef=p(iu);data=p(Sk);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(l(0,"div",0),h(1),d(),E(2,N5,3,1,"div",1)),n&2&&(u(),F(" ",o.data.message,` -`),u(),I(o.hasAction?2:-1))},dependencies:[De,j5,z5,U5],styles:[`.mat-mdc-simple-snack-bar{display:flex} -`],encapsulation:2,changeDetection:0})}return t})(),fC="_mat-snack-bar-enter",gC="_mat-snack-bar-exit",H5=(()=>{class t extends Mr{_ngZone=p(ie);_elementRef=p(Z);_changeDetectorRef=p(xe);_platform=p(et);_rendersRef;_animationsDisabled=p(tt,{optional:!0})==="NoopAnimations";snackBarConfig=p(ql);_document=p(he);_trackedModals=new Set;_enterFallback;_exitFallback;_renders=new z;_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new z;_onExit=new z;_onEnter=new z;_animationState="void";_live;_label;_role;_liveElementId=p(ut).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")),this._rendersRef=qa(()=>this._renders.next(),{manualCleanup:!0})}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===gC?this._completeExit():e===fC&&(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?this._renders.pipe(wt(1)).subscribe(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(fC)))}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(fC)},200)))}exit(){return this._destroyed?ae(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?this._renders.pipe(wt(1)).subscribe(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(gC)))}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(gC),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit(),this._renders.complete(),this._rendersRef.destroy()}_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=S({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&(me(Kn,7),me(L5,7)),n&2){let r;q(r=Y())&&(o._portalOutlet=r.first),q(r=Y())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,o){n&1&&b("animationend",function(a){return o.onAnimationEnd(a.animationName)})("animationcancel",function(a){return o.onAnimationEnd(a.animationName)}),n&2&&ee("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:[_e],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&&(l(0,"div",1)(1,"div",2,0)(3,"div",3),E(4,V5,0,0,"ng-template",4),d(),T(5,"div"),d()()),n&2&&(u(5),ne("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Kn],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mdc-snackbar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mdc-snackbar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1} -`],encapsulation:2})}return t})();function W5(){return new ql}var G5=new R("mat-snack-bar-default-options",{providedIn:"root",factory:W5}),_C=(()=>{class t{_overlay=p(kt);_live=p(Pd);_injector=p(Ie);_breakpointObserver=p(ds);_parentSnackBar=p(t,{optional:!0,skipSelf:!0});_defaultConfig=p(G5);_snackBarRefAtThisLevel=null;simpleSnackBarComponent=Ek;snackBarContainerComponent=H5;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=L(L({},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=Ie.create({parent:o||this._injector,providers:[{provide:ql,useValue:n}]}),a=new ri(this.snackBarContainerComponent,n.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){let o=L(L(L({},new ql),this._defaultConfig),n),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new iu(a,r);if(e instanceof St){let c=new yn(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(c)}else{let c=this._createInjector(o,s),m=new ri(e,void 0,c),f=a.attachComponentPortal(m);s.instance=f.instance}return this._breakpointObserver.observe(wf.HandsetPortrait).pipe(Te(r.detachments())).subscribe(c=>{r.overlayElement.classList.toggle(this.handsetCssClass,c.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 si;n.direction=e.direction;let o=this._overlay.position().global(),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,this._overlay.create(n)}_createInjector(e,n){let o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Ie.create({parent:o||this._injector,providers:[{provide:iu,useValue:n},{provide:Sk,useValue:e.data}]})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Mk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[_C],imports:[jn,Si,nr,fe,Ek,fe]})}return t})();var q5=["mat-internal-form-field",""],Y5=["*"],xf=(()=>{class t{labelPosition;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({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&&ee("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:q5,ngContentSelectors:Y5,decls:1,vars:0,template:function(n,o){n&1&&(Le(),ce(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} -`],encapsulation:2,changeDetection:0})}return t})();var ha=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 ou=new R("MAT_DATE_LOCALE",{providedIn:"root",factory:Q5});function Q5(){return p(qc)}var Yl="Method not implemented",Pn=class{locale;_localeChanges=new z;localeChanges=this._localeChanges;setTime(i,e,n,o){throw new Error(Yl)}getHours(i){throw new Error(Yl)}getMinutes(i){throw new Error(Yl)}getSeconds(i){throw new Error(Yl)}parseTime(i,e){throw new Error(Yl)}addSeconds(i,e){throw new Error(Yl)}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}},fa=new R("mat-date-formats");var bs=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Df=(()=>{class t{_animationMode=p(tt,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&ee("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px} -`],encapsulation:2,changeDetection:0})}return t})();var K5=["text"],Z5=[[["mat-icon"]],"*"],X5=["mat-icon","*"];function J5(t,i){if(t&1&&T(0,"mat-pseudo-checkbox",1),t&2){let e=g();_("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function e8(t,i){if(t&1&&T(0,"mat-pseudo-checkbox",3),t&2){let e=g();_("disabled",e.disabled)}}function t8(t,i){if(t&1&&(l(0,"span",4),h(1),d()),t&2){let e=g();u(),F("(",e.group.label,")")}}var Kl=new R("MAT_OPTION_PARENT_COMPONENT"),Zl=new R("MatOptgroup");var Ql=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},Ze=(()=>{class t{_element=p(Z);_changeDetectorRef=p(xe);_parent=p(Kl,{optional:!0});group=p(Zl,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=p(ut).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new k;_text;_stateChanges=new z;constructor(){let e=p(yt);e.load(gn),e.load(eo),this._signalDisableRipple=!!this._parent&&Qr(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)&&!Et(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 Ql(this,e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&me(K5,7),n&2){let r;q(r=Y())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&b("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(bn("id",o.id),ne("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),ee("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",$]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:X5,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&&(Le(Z5),E(0,J5,1,2,"mat-pseudo-checkbox",1),ce(1),l(2,"span",2,0),ce(4,1),d(),E(5,e8,1,1,"mat-pseudo-checkbox",3)(6,t8,2,1,"span",4),T(7,"div",5)),n&2&&(I(o.multiple?0:-1),u(5),I(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),u(),I(o.group&&o.group._inert?6:-1),u(),_("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[Df,Bi],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return t})();function ru(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 Tk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe]})}return t})();var Xl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[tr,fe,Tk]})}return t})();var i8=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,o8=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function vC(t,i){let e=Array(t);for(let n=0;n{class t extends Pn{useUtcForDisplay=!1;_matDateLocale=p(ou,{optional:!0});constructor(){super();let e=p(ou,{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 vC(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return vC(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 vC(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,Qe(L({},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(i8.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(o8);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),bC(o,0,23)&&bC(r,0,59)&&(a==null||bC(a,0,59)))return this.setTime(this.today(),o,r,a||0)}return null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function bC(t,i,e){return!isNaN(t)&&t>=i&&t<=e}var a8={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 Ik=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[s8()]})}return t})();function s8(t=a8){return[{provide:Pn,useClass:r8},{provide:fa,useValue:t}]}var kk="dark-theme",Ak="light-theme",j=(()=>{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 wh(udsData.profile),this.navigation=new wn(this.router),this.gui=new bf(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 yf.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];[kk,Ak].forEach(n=>{e.classList.contains(n)&&e.classList.remove(n)}),e.classList.add(this._isDarkTheme?kk:Ak)}toggleSidebar(){this._sidebarVisible=!this._sidebarVisible}static{this.\u0275fac=function(n){return new(n||t)(se(_l),se(Do),se(zl),se(_C),se(Ja),se(Pn))}}static{this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Rk=(()=>{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)(se(j))}}static{this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ga=(()=>{class t{constructor(){this.headerDataSubject=new bt({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=N({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ys=3e4,kr=function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t}(kr||{}),cn=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 oi().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 Mo(this.api.http.get(n,{headers:this.headers,observe:"response"}),ys).then(r=>({items:r.body??[],headers:r.headers})).catch(r=>e?{items:[],headers:new oi}:(this.handleError(r),{items:[],headers:new oi}))}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 Mo(this.api.http.post(this.getPath(this.paths.test,i),e,{headers:this.headers}).pipe(Rn(n=>this.handleError(n))),ys)}delete(i){return Mo(this.api.http.delete(this.getPath(this.paths.delete,i),{headers:this.headers}).pipe(Rn(e=>this.handleError(e))),ys)}permision(){return this.api.user.isAdmin?kr.ALL:kr.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 Mo(this.api.http.put(r,a,{headers:this.headers}).pipe(Rn(s=>this.handleError(s))),ys)}revokePermission(i){let e=this.getPath("permissions/revoke"),n={items:i};return Mo(this.api.http.put(e,n,{headers:this.headers}).pipe(Rn(o=>this.handleError(o))),ys)}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 yC(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 Mo(this.api.http.get(i,{headers:this.headers}).pipe(Rn(e=>this.handleError(e))),ys)}typedGet(i){return this.doGet(this.getPath(this.paths.get,i))}typedPut(i,e){return Mo(this.api.http.put(this.getPath(this.paths.put,e),i,{headers:this.headers}).pipe(Rn(n=>this.handleError(n,!0))),ys)}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),No(()=>new Error(n))}},yC=class extends cn{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||kr.ALL}},Ef=class extends cn{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")}},Mf=class extends cn{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)}},Tf=class extends cn{constructor(i){super(i,"osmanagers"),this.api=i}},If=class extends cn{constructor(i){super(i,"transports"),this.api=i}},kf=class extends cn{constructor(i){super(i,"networks"),this.api=i}},Af=class extends cn{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)}},Rf=class extends cn{constructor(i){super(i,"servers/groups"),this.api=i}maintenance(i){return this.get(i+"/maintenance")}},Of=class extends cn{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))}},Pf=class extends cn{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")}},Ff=class extends cn{constructor(i){super(i,"config"),this.api=i}},Nf=class extends cn{constructor(i){super(i,"gallery/images"),this.api=i}},Lf=class extends cn{constructor(i){super(i,"gallery/servicespoolgroups"),this.api=i}},Vf=class extends cn{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"))}},Bf=class extends cn{constructor(i){super(i,"reports"),this.api=i}types(){return Mo(ae([]))}},jf=class extends cn{constructor(i){super(i,"dashboard"),this.api=i}data(i){return this.get("data?days="+i)}},zf=class extends cn{constructor(i){super(i,"calendars"),this.api=i}},Uf=class extends cn{constructor(i){super(i,"accounts"),this.api=i}timemark(i){return this.get(i+"/timemark")}},Hf=class extends cn{constructor(i){super(i,"actortokens"),this.api=i}},Wf=class extends cn{constructor(i){super(i,"servers/tokens"),this.api=i}},Gf=class extends cn{constructor(i){super(i,"mfa"),this.api=i}},$f=class extends cn{constructor(i){super(i,"messaging/notifiers"),this.api=i}};var te=(()=>{class t{constructor(e){this.api=e,this.providers=new Ef(e),this.serverGroups=new Rf(e),this.authenticators=new Mf(e),this.mfas=new Gf(e),this.osManagers=new Tf(e),this.transports=new If(e),this.networks=new kf(e),this.tunnels=new Af(e),this.servicesPools=new Of(e),this.metaPools=new Pf(e),this.gallery=new Nf(e),this.servicesPoolGroups=new Lf(e),this.calendars=new zf(e),this.accounts=new Uf(e),this.system=new Vf(e),this.configuration=new Ff(e),this.actorToken=new Hf(e),this.serversTokens=new Wf(e),this.reports=new Bf(e),this.dashboard=new jf(e),this.notifiers=new $f(e)}static{this.\u0275fac=function(n){return new(n||t)(se(j))}}static{this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var c8=["determinateSpinner"];function d8(t,i){if(t&1&&(nn(),l(0,"svg",11),T(1,"circle",12),d()),t&2){let e=g();ne("viewBox",e._viewBox()),u(),Vn("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),ne("r",e._circleRadius())}}var u8=new R("mat-progress-spinner-default-options",{providedIn:"root",factory:m8});function m8(){return{diameter:Ok}}var Ok=100,p8=10,Jl=(()=>{class t{_elementRef=p(Z);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=p(tt,{optional:!0}),n=p(u8);this._noopAnimations=e==="NoopAnimations"&&!!n&&!n._forceAnimations,this.mode=this._elementRef.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",n&&(n.color&&(this.color=this._defaultColor=n.color),n.diameter&&(this.diameter=n.diameter),n.strokeWidth&&(this.strokeWidth=n.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=Ok;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-p8)/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=S({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&me(c8,5),n&2){let r;q(r=Y())&&(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&&(ne("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Vt("mat-"+o.color),Vn("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),ee("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",Zt],diameter:[2,"diameter","diameter",Zt],strokeWidth:[2,"strokeWidth","strokeWidth",Zt]},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&&(E(0,d8,2,8,"ng-template",null,0,Ya),l(2,"div",2,1),nn(),l(4,"svg",3),T(5,"circle",4),d()(),vr(),l(6,"div",5)(7,"div",6)(8,"div",7),En(9,8),d(),l(10,"div",9),En(11,8),d(),l(12,"div",10),En(13,8),d()()()),n&2){let r=Ge(1);u(4),ne("viewBox",o._viewBox()),u(),Vn("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),ne("r",o._circleRadius()),u(4),_("ngTemplateOutlet",r),u(2),_("ngTemplateOutlet",r),u(2),_("ngTemplateOutlet",r)}},dependencies:[Xc],styles:[`.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}} -`],encapsulation:2,changeDetection:0})}return t})();var qf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe]})}return t})();var wC=class{constructor(){this.subject=new $i(1),this.subscriptions=new be}doFilter(i){this.subject.next(i)}dispose(){this.subscriptions.unsubscribe()}notEmpty(i,e){this.subscriptions.add(this.subject.subscribe(n=>{if(n[i]){let o=n[i].currentValue;o!=null&&e(o)}}))}has(i,e){this.subscriptions.add(this.subject.subscribe(n=>{if(n[i]){let o=n[i].currentValue;e(o)}}))}notFirst(i,e){this.subscriptions.add(this.subject.subscribe(n=>{if(n[i]&&!n[i].isFirstChange()){let o=n[i].currentValue;e(o)}}))}notFirstAndEmpty(i,e){this.subscriptions.add(this.subject.subscribe(n=>{if(n[i]&&!n[i].isFirstChange()){let o=n[i].currentValue;o!=null&&e(o)}}))}},Pk=new R("NGX_ECHARTS_CONFIG"),Yf=(()=>{class t{constructor(e,n,o){this.el=n,this.ngZone=o,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new k,this.optionsError=new k,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new $i(1),this.resize$=new z,this.changeFilter=new wC,this.resizeObFired=!1,this.echarts=e.echarts,this.theme=e.theme||null}ngOnChanges(e){this.changeFilter.doFilter(e)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(W_(100,Wn,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(e=>{for(let n of e)n.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",e=>this.onOptionsChange(e)),this.changeFilter.notFirstAndEmpty("merge",e=>this.setOption(e)),this.changeFilter.has("loading",e=>this.toggleLoading(!!e)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(e){this.chart?e?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(n=>e?n.showLoading(this.loadingType,this.loadingOpts):n.hideLoading())}setOption(e,n){if(this.chart)try{this.chart.setOption(e,n)}catch(o){console.error(o),this.optionsError.emit(o)}}refreshChart(){return V(this,null,function*(){this.dispose(),yield this.initChart()})}createChart(){let e=this.el.nativeElement;if(window&&window.getComputedStyle){let n=window.getComputedStyle(e,null).getPropertyValue("height");(!n||n==="0px")&&(!e.style.height||e.style.height==="0px")&&(e.style.height="400px")}return this.ngZone.runOutsideAngular(()=>(typeof this.echarts=="function"?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:o})=>o(e,this.theme,this.initOpts)))}initChart(){return V(this,null,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(e){return V(this,null,function*(){e&&(this.chart?this.setOption(this.options,!0):(this.chart=yield this.createChart(),this.chart$.next(this.chart),this.chartInit.emit(this.chart),this.setOption(this.options,!0)))})}createLazyEvent(e){return this.chartInit.pipe(Dt(n=>new Fe(o=>(n.on(e,r=>this.ngZone.run(()=>o.next(r))),()=>{this.chart&&(this.chart.isDisposed()||n.off(e))}))))}static{this.\u0275fac=function(n){return new(n||t)(y(Pk),y(Z),y(ie))}}static{this.\u0275dir=B({type:t,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[Be]})}}return t})();var h8=t=>({provide:Pk,useValue:t}),Fk=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[h8(e)]}}static forChild(){return{ngModule:t}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=X({})}}return t})();var f8=(t,i)=>i.value,g8=(t,i)=>i.user;function _8(t,i){if(t&1){let e=A();l(0,"button",6),b("click",function(){let o=C(e).$implicit,r=g();return w(r.changePeriod(o.value))}),h(1),d()}if(t&2){let e=i.$implicit,n=g();ee("active",e.value===n.days),u(),F(" ",e.label," ")}}function v8(t,i){if(t&1&&(l(0,"div",4),h(1),d()),t&2){let e=g();u(),wi(" ",e.renderTimestamp(e.data.since)," \u2014 ",e.renderTimestamp(e.data.until)," ")}}function b8(t,i){t&1&&(l(0,"div",5),T(1,"mat-progress-spinner",7),l(2,"span")(3,"uds-translate"),h(4,"Loading dashboard data..."),d()()())}function y8(t,i){if(t&1&&(l(0,"div",8)(1,"div",27)(2,"div",28),h(3),d(),l(4,"div",29)(5,"uds-translate"),h(6,"Users"),d()()(),l(7,"div",27)(8,"div",28),h(9),d(),l(10,"div",29)(11,"uds-translate"),h(12,"Groups"),d()()(),l(13,"div",27)(14,"div",28),h(15),d(),l(16,"div",29)(17,"uds-translate"),h(18,"Service pools"),d()()(),l(19,"div",27)(20,"div",28),h(21),d(),l(22,"div",29)(23,"uds-translate"),h(24,"User services"),d()()(),l(25,"div",27)(26,"div",28),h(27),d(),l(28,"div",29)(29,"uds-translate"),h(30,"Assigned services"),d()()(),l(31,"div",27)(32,"div",28),h(33),d(),l(34,"div",29)(35,"uds-translate"),h(36,"Users with services"),d()()(),l(37,"div",27)(38,"div",28),h(39),d(),l(40,"div",29)(41,"uds-translate"),h(42,"Authenticators"),d()()(),l(43,"div",27)(44,"div",28),h(45),d(),l(46,"div",29)(47,"uds-translate"),h(48,"Restrained pools"),d()()()()),t&2){let e=g(2);u(3),de(e.data.kpis.users),u(6),de(e.data.kpis.groups),u(6),de(e.data.kpis.service_pools),u(6),de(e.data.kpis.user_services),u(6),de(e.data.kpis.assigned_user_services),u(6),de(e.data.kpis.users_with_services),u(6),de(e.data.kpis.authenticators),u(4),ee("kpi-danger",e.data.kpis.restrained_service_pools>0),u(2),de(e.data.kpis.restrained_service_pools)}}function C8(t,i){if(t&1){let e=A();l(0,"div",16),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("peak",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.peak.opts)}}function w8(t,i){if(t&1&&(l(0,"div",13),h(1),d()),t&2){let e=g(2);u(),de(e.emptyText(e.data.peak_concurrency))}}function x8(t,i){if(t&1){let e=A();l(0,"div",16),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("saturation",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.saturation.opts)}}function D8(t,i){if(t&1&&(l(0,"div",13),h(1),d()),t&2){let e=g(2);u(),de(e.emptyText(e.data.pool_saturation))}}function S8(t,i){if(t&1){let e=A();l(0,"div",16),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("cache",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.cache.opts)}}function E8(t,i){if(t&1&&(l(0,"div",13),h(1),d()),t&2){let e=g(2);u(),de(e.emptyText(e.data.cache_efficiency))}}function M8(t,i){if(t&1){let e=A();l(0,"div",16),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("tunnel",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.tunnel.opts)}}function T8(t,i){if(t&1&&(l(0,"div",13),h(1),d()),t&2){let e=g(2);u(),de(e.emptyText(e.data.tunnel_usage))}}function I8(t,i){if(t&1){let e=A();l(0,"div",16),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("platforms",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.platforms.opts)}}function k8(t,i){if(t&1&&(l(0,"div",13),h(1),d()),t&2){let e=g(2);u(),de(e.emptyText(e.data.client_platforms))}}function A8(t,i){if(t&1){let e=A();l(0,"div",16),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("browsers",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.browsers.opts)}}function R8(t,i){if(t&1&&(l(0,"div",13),h(1),d()),t&2){let e=g(2);u(),de(e.emptyText(e.data.client_platforms))}}function O8(t,i){if(t&1){let e=A();l(0,"div",16),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("sessions",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.sessions.opts)}}function P8(t,i){if(t&1&&(l(0,"div",13),h(1),d()),t&2){let e=g(2);u(),de(e.emptyText(e.data.session_duration))}}function F8(t,i){if(t&1){let e=A();l(0,"div",16),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("errors",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.errors.opts)}}function N8(t,i){if(t&1&&(l(0,"div",13),h(1),d()),t&2){let e=g(2);u(),de(e.emptyText(e.data.userservice_errors))}}function L8(t,i){if(t&1){let e=A();l(0,"div",16),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("failedLogins",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.failedLogins.opts)}}function V8(t,i){if(t&1&&(l(0,"div",13),h(1),d()),t&2){let e=g(2);u(),de(e.emptyText(e.data.failed_logins))}}function B8(t,i){if(t&1){let e=A();l(0,"div",16),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("topUsers",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.topUsers.opts)}}function j8(t,i){if(t&1&&(l(0,"div",13),h(1),d()),t&2){let e=g(2);u(),de(e.emptyText(e.data.top_users))}}function z8(t,i){if(t&1&&(l(0,"tr")(1,"td"),h(2),d(),l(3,"td"),h(4),d(),l(5,"td"),h(6),d(),l(7,"td"),h(8),d(),l(9,"td"),h(10),d()()),t&2){let e=i.$implicit;u(2),de(e.user||"-"),u(2),de(e.sessions),u(2),de(e.pools),u(2),de(e.hours),u(2),de(e.average)}}function U8(t,i){if(t&1&&(l(0,"div",17)(1,"div",11)(2,"uds-translate"),h(3,"Top users detail"),d()(),l(4,"table",30)(5,"thead")(6,"tr")(7,"th")(8,"uds-translate"),h(9,"User"),d()(),l(10,"th")(11,"uds-translate"),h(12,"Sessions"),d()(),l(13,"th")(14,"uds-translate"),h(15,"Pools used"),d()(),l(16,"th")(17,"uds-translate"),h(18,"Hours"),d()(),l(19,"th")(20,"uds-translate"),h(21,"Avg hours/session"),d()()()(),l(22,"tbody"),oe(23,z8,11,5,"tr",null,g8),d()()()),t&2){let e=g(2);u(23),re(e.data.top_users)}}function H8(t,i){if(t&1&&(l(0,"div",26)(1,"div",20),T(2,"img",21),l(3,"div",22)(4,"ul")(5,"li"),h(6),l(7,"uds-translate"),h(8,"restrained services"),d()()()()(),l(9,"div",23)(10,"a",25)(11,"uds-translate"),h(12,"View service pools"),d()()()()),t&2){let e=g(2);u(2),_("src",e.api.staticURL("admin/img/icons/logs.png"),Ee),u(4),F("",e.info.restrained_services_pools," ")}}function W8(t,i){if(t&1){let e=A();E(0,y8,49,10,"div",8),l(1,"div",9)(2,"div",10)(3,"div",11)(4,"uds-translate"),h(5,"Peak concurrent sessions per pool"),d()(),E(6,C8,1,1,"div",12)(7,w8,2,1,"div",13),d(),l(8,"div",10)(9,"div",11)(10,"uds-translate"),h(11,"Pool saturation (% of capacity)"),d()(),E(12,x8,1,1,"div",12)(13,D8,2,1,"div",13),d(),l(14,"div",10)(15,"div",11)(16,"uds-translate"),h(17,"Cache hits / misses per pool"),d()(),E(18,S8,1,1,"div",12)(19,E8,2,1,"div",13),d(),l(20,"div",10)(21,"div",11)(22,"uds-translate"),h(23,"Tunnel sessions per pool"),d()(),E(24,M8,1,1,"div",12)(25,T8,2,1,"div",13),d(),l(26,"div",10)(27,"div",11)(28,"uds-translate"),h(29,"Client platforms"),d()(),E(30,I8,1,1,"div",12)(31,k8,2,1,"div",13),d(),l(32,"div",10)(33,"div",11)(34,"uds-translate"),h(35,"Client browsers"),d()(),E(36,A8,1,1,"div",12)(37,R8,2,1,"div",13),d(),l(38,"div",10)(39,"div",11)(40,"uds-translate"),h(41,"Session duration distribution"),d()(),E(42,O8,1,1,"div",12)(43,P8,2,1,"div",13),d(),l(44,"div",10)(45,"div",11)(46,"uds-translate"),h(47,"User services in error per pool"),d()(),E(48,F8,1,1,"div",12)(49,N8,2,1,"div",13),d(),l(50,"div",10)(51,"div",11)(52,"uds-translate"),h(53,"Failed logins per user"),d()(),E(54,L8,1,1,"div",12)(55,V8,2,1,"div",13),d(),l(56,"div",14)(57,"div",11)(58,"uds-translate"),h(59,"Top users by session time"),d()(),E(60,B8,1,1,"div",12)(61,j8,2,1,"div",13),d(),l(62,"div",15)(63,"div",10)(64,"div",11)(65,"uds-translate"),h(66,"Assigned services chart"),d()(),l(67,"div",16),b("chartInit",function(o){C(e);let r=g();return w(r.chartInit("assigned",o))}),d()(),l(68,"div",10)(69,"div",11)(70,"uds-translate"),h(71,"In use services chart"),d()(),l(72,"div",16),b("chartInit",function(o){C(e);let r=g();return w(r.chartInit("inuse",o))}),d()()()(),E(73,U8,25,0,"div",17),l(74,"div",18)(75,"div",19)(76,"div",20),T(77,"img",21),l(78,"div",22)(79,"ul")(80,"li"),h(81),l(82,"uds-translate"),h(83,"total users"),d()(),l(84,"li"),h(85),l(86,"uds-translate"),h(87,"total groups"),d()(),l(88,"li"),h(89),l(90,"uds-translate"),h(91,"with services"),d()()()()(),l(92,"div",23)(93,"a",24)(94,"uds-translate"),h(95,"View authenticators"),d()()()(),l(96,"div",19)(97,"div",20),T(98,"img",21),l(99,"div",22)(100,"ul")(101,"li"),h(102),l(103,"uds-translate"),h(104,"total pools"),d()()()()(),l(105,"div",23)(106,"a",25)(107,"uds-translate"),h(108,"View service pools"),d()()()(),l(109,"div",19)(110,"div",20),T(111,"img",21),l(112,"div",22)(113,"ul")(114,"li"),h(115),l(116,"uds-translate"),h(117,"total services"),d()(),l(118,"li"),h(119),l(120,"uds-translate"),h(121,"assigned"),d()()()()(),l(122,"div",23)(123,"a",25)(124,"uds-translate"),h(125,"View service pools"),d()()()(),E(126,H8,13,2,"div",26),d()}if(t&2){let e=g();I(e.data.kpis?0:-1),u(6),I(e.hasData(e.data.peak_concurrency)?6:7),u(6),I(e.hasData(e.data.pool_saturation)?12:13),u(6),I(e.hasData(e.data.cache_efficiency)?18:19),u(6),I(e.hasData(e.data.tunnel_usage)?24:25),u(6),I(e.data.client_platforms&&e.hasData(e.data.client_platforms.platforms)?30:31),u(6),I(e.data.client_platforms&&e.hasData(e.data.client_platforms.browsers)?36:37),u(6),I(e.data.session_duration&&e.hasData(e.data.session_duration.buckets)?42:43),u(6),I(e.hasData(e.data.userservice_errors)?48:49),u(6),I(e.hasData(e.data.failed_logins)?54:55),u(6),I(e.hasData(e.data.top_users)?60:61),u(7),_("options",e.charts.assigned.opts),u(5),_("options",e.charts.inuse.opts),u(),I(e.hasData(e.data.top_users)?73:-1),u(4),_("src",e.api.staticURL("admin/img/icons/authenticators.png"),Ee),u(4),F("",e.info.users," "),u(4),F("",e.info.groups," "),u(4),F("",e.info.users_with_services," "),u(9),_("src",e.api.staticURL("admin/img/icons/pools.png"),Ee),u(4),F("",e.info.service_pools," "),u(9),_("src",e.api.staticURL("admin/img/icons/services.png"),Ee),u(4),F("",e.info.user_services," "),u(4),F("",e.info.assigned_user_services," "),u(7),I(e.info.restrained_services_pools>0?126:-1)}}var Lk=(()=>{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:{opts:{},instance:null},saturation:{opts:{},instance:null},cache:{opts:{},instance:null},tunnel:{opts:{},instance:null},platforms:{opts:{},instance:null},browsers:{opts:{},instance:null},topUsers:{opts:{},instance:null},sessions:{opts:{},instance:null},errors:{opts:{},instance:null},failedLogins:{opts:{},instance:null},assigned:{opts:{},instance:null},inuse:{opts:{},instance:null}}}onResize(){for(let e of Object.keys(this.charts))this.charts[e].instance?.resize()}ngOnInit(){this.loadOverview(),this.load()}loadOverview(){this.rest.system.information().then(e=>{this.info=e||{}});for(let e of["assigned","inuse"])this.rest.system.stats(e).then(n=>{this.charts[e].opts=this.lineChart(e,n||[])})}chartInit(e,n){this.charts[e].instance=n}changePeriod(e){e!==this.days&&(this.days=e,this.load())}load(){this.loading=!0,this.rest.dashboard.data(this.days).then(e=>{this.data=e||{},this.buildCharts()}).finally(()=>{this.loading=!1})}renderTimestamp(e){return e?Un("SHORT_DATETIME_FORMAT",e):"-"}get textColor(){return this.api.isDarkTheme?"#e2e8f0":"#475569"}get splitLineColor(){return this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)"}get tooltipBase(){return{backgroundColor:this.api.isDarkTheme?"#1e293b":"#ffffff",borderColor:this.api.isDarkTheme?"#334155":"#e2e8f0",textStyle:{color:this.textColor}}}static{this.MAX_VISIBLE_BARS=12}sliderStyle(e){return L({type:"slider",backgroundColor:"transparent",borderColor:this.splitLineColor,fillerColor:this.api.isDarkTheme?"rgba(59, 130, 246, 0.25)":"rgba(37, 99, 235, 0.18)",handleStyle:{color:"#3b82f6",borderColor:"#3b82f6"},moveHandleStyle:{color:"#3b82f6"},textStyle:{color:this.textColor},dataBackground:{lineStyle:{color:this.splitLineColor},areaStyle:{color:"transparent"}}},e)}barChart(e,n,o=!1){let r=e.length,a=r>t.MAX_VISIBLE_BARS,s={type:"category",data:e,axisLabel:{color:this.textColor,hideOverlap:!0,rotate:!o&&a?25:0},axisLine:{lineStyle:{color:this.splitLineColor}}},c={type:"value",axisLabel:{color:this.textColor},splitLine:{lineStyle:{color:this.splitLineColor}}},m={left:"3%",right:"4%",bottom:"3%",top:16,containLabel:!0},f;if(a){let v=o?"yAxisIndex":"xAxisIndex",D=t.MAX_VISIBLE_BARS/r*100,x=o?100-D:0,M=o?100:D;f=[{type:"inside",[v]:0,start:x,end:M,zoomOnMouseWheel:!1,moveOnMouseWheel:!1,moveOnMouseMove:!0},this.sliderStyle(o?{[v]:0,start:x,end:M,right:6,width:14}:{[v]:0,start:x,end:M,bottom:6,height:16})],m=o?{left:"3%",right:46,top:16,bottom:"3%",containLabel:!0}:{left:"3%",right:"4%",top:16,bottom:44,containLabel:!0}}return{backgroundColor:"transparent",tooltip:L({trigger:"axis",axisPointer:{type:"shadow"}},this.tooltipBase),legend:n.length>1?{textStyle:{color:this.textColor}}:void 0,grid:m,dataZoom:f,xAxis:o?c:s,yAxis:o?s:c,series:n.map(v=>({name:v.name,type:"bar",stack:v.stack,data:v.data,emphasis:{focus:"series"},itemStyle:{color:v.color,borderRadius:o?[0,4,4,0]:[4,4,0,0]}}))}}pieChart(e){return{backgroundColor:"transparent",tooltip:L({trigger:"item"},this.tooltipBase),legend:{type:"scroll",bottom:0,textStyle:{color:this.textColor}},series:[{type:"pie",radius:["40%","68%"],center:["50%","45%"],avoidLabelOverlap:!0,itemStyle:{borderColor:this.api.isDarkTheme?"#0f172a":"#ffffff",borderWidth:2},label:{color:this.textColor},emphasis:{focus:"self",scale:!0},data: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{backgroundColor:"transparent",tooltip:L({trigger:"axis"},this.tooltipBase),grid:{left:"3%",right:"4%",top:16,bottom:44,containLabel:!0},dataZoom:[{type:"inside",xAxisIndex:0},this.sliderStyle({xAxisIndex:0,bottom:6,height:16})],xAxis:{type:"category",data:n.map(a=>Un("SHORT_DATE_FORMAT",new Date(a.stamp))),boundaryGap:!1,axisLabel:{color:this.textColor},axisLine:{lineStyle:{color:this.splitLineColor}}},yAxis:{type:"value",axisLabel:{color:this.textColor},splitLine:{lineStyle:{color:this.splitLineColor}}},series:[{name:e==="assigned"?django.gettext("Assigned services"):django.gettext("Services in use"),type:"line",smooth:!0,areaStyle:{color:r},lineStyle:{width:3,color:o},itemStyle:{color:o},data:n.map(a=>a.value)}]}}buildCharts(){let e=this.data;if(Array.isArray(e.peak_concurrency)){let r=e.peak_concurrency;this.charts.peak.opts=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.opts=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.opts=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Hits"),data:r.map(a=>a.hits),color:"#10b981",stack:"cache"},{name:django.gettext("Misses"),data:r.map(a=>a.misses),color:"#ef4444",stack:"cache"}])}if(Array.isArray(e.tunnel_usage)){let r=e.tunnel_usage;this.charts.tunnel.opts=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.opts=this.pieChart(n.platforms.map(r=>({name:r.name,value:r.count}))),this.charts.browsers.opts=this.pieChart((n.browsers||[]).map(r=>({name:r.name,value:r.count})))),Array.isArray(e.top_users)){let r=[...e.top_users].reverse();this.charts.topUsers.opts=this.barChart(r.map(a=>a.user||"-"),[{name:django.gettext("Hours"),data:r.map(a=>Number(a.hours||0)),color:"#0ea5e9"}],!0)}let o=e.session_duration;if(o&&Array.isArray(o.buckets)&&(this.charts.sessions.opts=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.opts=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.opts=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)(y(j),y(te))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-dashboard"]],hostBindings:function(n,o){n&1&&b("resize",function(){return o.onResize()},!1,ul)},standalone:!1,decls:8,vars:2,consts:[[1,"dashboard"],[1,"dashboard-toolbar"],[1,"period-buttons"],["mat-button","",1,"period-button",3,"active"],[1,"period-range"],[1,"dashboard-loading"],["mat-button","",1,"period-button",3,"click"],["mode","indeterminate","diameter","48"],[1,"kpi-row"],[1,"chart-grid"],[1,"chart-card"],[1,"chart-title"],["echarts","",1,"chart-body",3,"options"],[1,"chart-empty"],[1,"chart-card","chart-card-wide"],[1,"legacy-charts"],["echarts","",1,"chart-body",3,"chartInit","options"],[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&&(l(0,"div",0)(1,"div",1)(2,"div",2),oe(3,_8,2,3,"button",3,f8),d(),E(5,v8,2,2,"div",4),d(),E(6,b8,5,0,"div",5)(7,W8,127,24),d()),n&2&&(u(3),re(o.periods),u(2),I(o.data.since&&o.data.until?5:-1),u(),I(o.loading?6:7))},dependencies:[ln,ua,De,Jl,Yf,ue],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}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 var(--glass-border);border-radius:999px;color:var(--text-secondary)}.period-button.active[_ngcontent-%COMP%]{background:var(--bg-button);color:#fff}.period-range[_ngcontent-%COMP%]{color:var(--text-secondary);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 $8(t,i){t&1&&T(0,"uds-dashboard")}function q8(t,i){t&1&&(l(0,"div",2)(1,"div",3)(2,"div",4)(3,"uds-translate"),h(4,"UDS Administration"),d()(),l(5,"div",5)(6,"p")(7,"uds-translate"),h(8,"You are accessing UDS Administration as staff member."),d()(),l(9,"p")(10,"uds-translate"),h(11,"This means that you have restricted access to elements."),d()(),l(12,"p")(13,"uds-translate"),h(14,"In order to increase your access privileges, please contact your local UDS administrator. "),d()(),T(15,"br"),l(16,"p")(17,"uds-translate"),h(18,"Thank you."),d()()()()())}var Vk=(()=>{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)(y(j),y(ga))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"div",1),E(2,$8,1,0,"uds-dashboard")(3,q8,19,0,"div",2),d()()),n&2&&(u(2),I(o.api.user.isAdmin?2:3))},dependencies:[ue,Lk],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}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{applyChanges(i,e,n,o,r){i.forEachOperation((a,s,c)=>{let m,f;if(a.previousIndex==null){let v=n(a,s,c);m=e.createEmbeddedView(v.templateRef,v.context,v.index),f=sa.INSERTED}else c==null?(e.remove(s),f=sa.REMOVED):(m=e.get(s),e.move(m,c),f=sa.MOVED);r&&r({context:m?.context,operation:f,record:a})})}detach(){}};var or=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;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 Y8=["notch"],Q8=["matFormFieldNotchedOutline",""],K8=["*"],Z8=["textField"],X8=["iconPrefixContainer"],J8=["textPrefixContainer"],e6=["iconSuffixContainer"],t6=["textSuffixContainer"],n6=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],i6=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function o6(t,i){t&1&&T(0,"span",20)}function r6(t,i){if(t&1&&(l(0,"label",19),ce(1,1),E(2,o6,1,0,"span",20),d()),t&2){let e=g(2);_("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),ne("for",e._control.disableAutomaticLabeling?null:e._control.id),u(2),I(!e.hideRequiredMarker&&e._control.required?2:-1)}}function a6(t,i){if(t&1&&E(0,r6,3,5,"label",19),t&2){let e=g();I(e._hasFloatingLabel()?0:-1)}}function s6(t,i){t&1&&T(0,"div",7)}function l6(t,i){}function c6(t,i){if(t&1&&E(0,l6,0,0,"ng-template",13),t&2){g(2);let e=Ge(1);_("ngTemplateOutlet",e)}}function d6(t,i){if(t&1&&(l(0,"div",9),E(1,c6,1,1,null,13),d()),t&2){let e=g();_("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),u(),I(e._forceDisplayInfixLabel()?-1:1)}}function u6(t,i){t&1&&(l(0,"div",10,2),ce(2,2),d())}function m6(t,i){t&1&&(l(0,"div",11,3),ce(2,3),d())}function p6(t,i){}function h6(t,i){if(t&1&&E(0,p6,0,0,"ng-template",13),t&2){g();let e=Ge(1);_("ngTemplateOutlet",e)}}function f6(t,i){t&1&&(l(0,"div",14,4),ce(2,4),d())}function g6(t,i){t&1&&(l(0,"div",15,5),ce(2,5),d())}function _6(t,i){t&1&&T(0,"div",16)}function v6(t,i){t&1&&ce(0,6)}function b6(t,i){if(t&1&&(l(0,"mat-hint",21),h(1),d()),t&2){let e=g(2);_("id",e._hintLabelId),u(),de(e.hintLabel)}}function y6(t,i){if(t&1&&(E(0,b6,2,2,"mat-hint",21),ce(1,7),T(2,"div",22),ce(3,8)),t&2){let e=g();I(e.hintLabel?0:-1)}}var Ae=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["mat-label"]]})}return t})(),$k=new R("MatError");var xC=(()=>{class t{align="start";id=p(ut).getId("mat-mdc-hint-");static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({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&&(bn("id",o.id),ne("align",null),ee("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),qk=new R("MatPrefix");var DC=new R("MatSuffix"),Ui=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ce([{provide:DC,useExisting:t}])]})}return t})(),Yk=new R("FloatingLabelParent"),jk=(()=>{class t{_elementRef=p(Z);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(gf);_ngZone=p(ie);_parent=p(Yk);_resizeSubscription=new be;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return C6(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=B({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&ee("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function C6(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 zk="mdc-line-ripple--active",Qf="mdc-line-ripple--deactivating",Uk=(()=>{class t{_elementRef=p(Z);_cleanupTransitionEnd;constructor(){let e=p(ie),n=p(It);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Qf),e.add(zk)}deactivate(){this._elementRef.nativeElement.classList.add(Qf)}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,o=n.contains(Qf);e.propertyName==="opacity"&&o&&n.remove(zk,Qf)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),Hk=(()=>{class t{_elementRef=p(Z);_ngZone=p(ie);open=!1;_notch;constructor(){}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&me(Y8,5),n&2){let r;q(r=Y())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&ee("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:Q8,ngContentSelectors:K8,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&&(Le(),T(0,"div",1),l(1,"div",2,0),ce(3),d(),T(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Ar=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t})}return t})();var ao=new R("MatFormField"),Kf=new R("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Wk="fill",w6="auto",Gk="fixed",x6="translateY(-50%)",ge=(()=>{class t{_elementRef=p(Z);_changeDetectorRef=p(xe);_dir=p(Pt);_platform=p(et);_idGenerator=p(ut);_ngZone=p(ie);_injector=p(Ie);_defaults=p(Kf,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=lM(Ae);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Vi(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||w6}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearance}set appearance(e){let n=this._appearance,o=e||this._defaults?.appearance||Wk;this._appearance=o,this._appearance==="outline"&&this._appearance!==n&&(this._needsOutlineLabelOffsetUpdate=!0)}_appearance=Wk;get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||Gk}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||Gk}_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-");get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new z;_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_animationsDisabled;constructor(){let e=this._defaults;e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),this._animationsDisabled=p(tt,{optional:!0})==="NoopAnimations"}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(),this._initializeOutlineLabelOffsetSubscriptions()}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._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=Qo(()=>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(xt([void 0,void 0]),pe(()=>[n.errorState,n.userAriaDescribedBy]),mm(),Ke(([[r,a],[s,c]])=>r!==s||a!==c)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(Te(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(),_t(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),qa(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(Te(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=Qo(()=>!!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 n=this._hintChildren?this._hintChildren.find(r=>r.align==="start"):null,o=this._hintChildren?this._hintChildren.find(r=>r.align==="end"):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let n=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,r=this._iconSuffixContainer?.nativeElement,a=this._textSuffixContainer?.nativeElement,s=n?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,m=r?.getBoundingClientRect().width??0,f=a?.getBoundingClientRect().width??0,v=this._dir.value==="rtl"?"-1":"1",D=`${s+c}px`,M=`calc(${v} * (${D} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var( +`],encapsulation:2,changeDetection:0})}return t})(),ua=(()=>{class t extends Ky{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275cmp=S({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(n,o){n&2&&(ne("disabled",o._getDisabledAttribute())("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-disabled",o._getAriaDisabled()),Bt(o.color?"mat-"+o.color:""),X("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[_e],attrs:VI,ngContentSelectors:jI,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&&(Le(BI),I(0,"span",0),ue(1),l(2,"span",1),ue(3,1),d(),ue(4,2),I(5,"span",2)(6,"span",3)),n&2&&X("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[oH,rH],encapsulation:2,changeDetection:0})}return t})();var nr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[fe,tr,fe]})}return t})();var de=(()=>{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)(y(Z))}}static{this.\u0275dir=B({type:t,selectors:[["uds-translate"]],standalone:!1})}}return t})();var Yh=(()=>{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)(y(es,16))}}static{this.\u0275pipe=Yo({name:"safeHtml",type:t,pure:!0,standalone:!1})}}return t})();function aH(t,i){if(t&1){let e=A();l(0,"button",4),b("click",function(){C(e);let o=g();return w(o.resolveAndClose(!1))}),l(1,"uds-translate"),h(2,"Close"),d(),h(3),d()}if(t&2){let e=g();u(3),ae(e.extra)}}function sH(t,i){if(t&1){let e=A();l(0,"button",5),b("click",function(){C(e);let o=g();return w(o.resolveAndClose(!0))}),l(1,"uds-translate"),h(2,"Yes"),d()()}if(t&2){let e=g();_("color",e.yesColor)}}function lH(t,i){if(t&1){let e=A();l(0,"button",5),b("click",function(){C(e);let o=g();return w(o.resolveAndClose(!1))}),l(1,"uds-translate"),h(2,"No"),d()()}if(t&2){let e=g();_("color",e.noColor)}}var qd=function(t){return t[t.alert=0]="alert",t[t.question=1]="question",t}(qd||{}),Zy=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.yesColor="primary",this.noColor="warn",this.extra="",this.subscription={},this.acceptance=new qt}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 N(this,null,function*(){let e=this.data.autoclose||0;e>0&&(this.dialogRef.afterClosed().subscribe(n=>{this.closed()}),this.setExtra(e),this.subscription=wc(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===qd.alert&&this.initAlert()}static{this.\u0275fac=function(n){return new(n||t)(y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(I(0,"h4",0),dt(1,"safeHtml"),I(2,"mat-dialog-content",1),dt(3,"safeHtml"),l(4,"mat-dialog-actions"),E(5,aH,4,1,"button",2)(6,sH,3,1,"button",3)(7,lH,3,1,"button",3),d()),n&2&&(_("innerHtml",vt(1,5,o.data.title),Wt),u(2),_("innerHTML",vt(3,7,o.data.body),Wt),u(3),T(o.data.type===0?5:-1),u(),T(o.data.type===1?6:-1),u(),T(o.data.type===1?7:-1))},dependencies:[ye,Ft,Ue,We,He,de,Yh],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var ui=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}(ui||{}),Yd=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{o={id:"",img:"",text:""}}return o}};var YI=(()=>{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)(y(kt),y(Z))};static \u0275dir=B({type:t})}return t})(),QI=(()=>{class t extends YI{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,features:[_e]})}return t})(),mi=new R("");var cH={provide:mi,useExisting:tn(()=>st),multi:!0};function dH(){let t=Pi()?Pi().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var uH=new R(""),st=(()=>{class t extends YI{_compositionMode;_composing=!1;constructor(e,n,o){super(e,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!dH())}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)(y(kt),y(Z),y(uH,8))};static \u0275dir=B({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&&b("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:[we([cH]),_e]})}return t})();function Jy(t){return t==null||eC(t)===0}function eC(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var ro=new R(""),cf=new R(""),mH=/^(?=.{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])?)*$/,ir=class{static min(i){return pH(i)}static max(i){return hH(i)}static required(i){return KI(i)}static requiredTrue(i){return fH(i)}static email(i){return gH(i)}static minLength(i){return _H(i)}static maxLength(i){return ZI(i)}static pattern(i){return vH(i)}static nullValidator(i){return Kh()}static compose(i){return ik(i)}static composeAsync(i){return ok(i)}};function pH(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 KI(t){return Jy(t.value)?{required:!0}:null}function fH(t){return t.value===!0?null:{required:!0}}function gH(t){return Jy(t.value)||mH.test(t.value)?null:{email:!0}}function _H(t){return i=>{let e=i.value?.length??eC(i.value);return e===null||e===0?null:e{let e=i.value?.length??eC(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function vH(t){if(!t)return Kh;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(Jy(n.value))return null;let o=n.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function Kh(t){return null}function XI(t){return t!=null}function JI(t){return Zr(t)?zt(t):t}function ek(t){let i={};return t.forEach(e=>{i=e!=null?V(V({},i),e):i}),Object.keys(i).length===0?null:i}function tk(t,i){return i.map(e=>e(t))}function bH(t){return!t.validate}function nk(t){return t.map(i=>bH(i)?i:e=>i.validate(e))}function ik(t){if(!t)return null;let i=t.filter(XI);return i.length==0?null:function(e){return ek(tk(e,i))}}function tC(t){return t!=null?ik(nk(t)):null}function ok(t){if(!t)return null;let i=t.filter(XI);return i.length==0?null:function(e){let n=tk(e,i).map(JI);return Cc(n).pipe(pe(ek))}}function nC(t){return t!=null?ok(nk(t)):null}function UI(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function rk(t){return t._rawValidators}function ak(t){return t._rawAsyncValidators}function Xy(t){return t?Array.isArray(t)?t:[t]:[]}function Zh(t,i){return Array.isArray(t)?t.includes(i):t===i}function HI(t,i){let e=Xy(i);return Xy(t).forEach(o=>{Zh(e,o)||e.push(o)}),e}function WI(t,i){return Xy(i).filter(e=>!Zh(t,e))}var Xh=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=tC(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=nC(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&&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}},Ir=class extends Xh{name;get formDirective(){return null}get path(){return null}},Mi=class extends Xh{_parent=null;name=null;valueAccessor=null},Jh=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}},yH={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Mhe=Qe(V({},yH),{"[class.ng-submitted]":"isSubmitted"}),xe=(()=>{class t extends Jh{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(y(Mi,2))};static \u0275dir=B({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&X("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:[_e]})}return t})(),df=(()=>{class t extends Jh{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(y(Ir,10))};static \u0275dir=B({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&X("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:[_e]})}return t})();var Qd="VALID",Qh="INVALID",Wl="PENDING",Kd="DISABLED",ma=class{},ef=class extends ma{value;source;constructor(i,e){super(),this.value=i,this.source=e}},Xd=class extends ma{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},Jd=class extends ma{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},Gl=class extends ma{status;source;constructor(i,e){super(),this.status=i,this.source=e}},tf=class extends ma{source;constructor(i){super(),this.source=i}},nf=class extends ma{source;constructor(i){super(),this.source=i}};function sk(t){return(uf(t)?t.validators:t)||null}function CH(t){return Array.isArray(t)?tC(t):t||null}function lk(t,i){return(uf(i)?i.asyncValidators:t)||null}function wH(t){return Array.isArray(t)?nC(t):t||null}function uf(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function xH(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new Q(1e3,"");if(!n[e])throw new Q(1001,"")}function DH(t,i,e){t._forEachChild((n,o)=>{if(e[o]===void 0)throw new Q(1002,"")})}var of=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 xi(this.statusReactive)}set status(i){xi(()=>this.statusReactive.set(i))}_status=Qo(()=>this.statusReactive());statusReactive=yi(void 0);get valid(){return this.status===Qd}get invalid(){return this.status===Qh}get pending(){return this.status==Wl}get disabled(){return this.status===Kd}get enabled(){return this.status!==Kd}errors;get pristine(){return xi(this.pristineReactive)}set pristine(i){xi(()=>this.pristineReactive.set(i))}_pristine=Qo(()=>this.pristineReactive());pristineReactive=yi(!0);get dirty(){return!this.pristine}get touched(){return xi(this.touchedReactive)}set touched(i){xi(()=>this.touchedReactive.set(i))}_touched=Qo(()=>this.touchedReactive());touchedReactive=yi(!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(HI(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(HI(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(WI(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(WI(i,this._rawAsyncValidators))}hasValidator(i){return Zh(this._rawValidators,i)}hasAsyncValidator(i){return Zh(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;this._parent&&!i.onlySelf&&this._parent.markAsTouched(Qe(V({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Jd(!0,n))}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})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new Jd(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(Qe(V({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new Xd(!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})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new Xd(!0,n))}markAsPending(i={}){this.status=Wl;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Gl(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(Qe(V({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Kd,this.errors=null,this._forEachChild(o=>{o.disable(Qe(V({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new ef(this.value,n)),this._events.next(new Gl(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Qe(V({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Qd,this._forEachChild(n=>{n.enable(Qe(V({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Qe(V({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){this._parent&&!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===Qd||this.status===Wl)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new ef(this.value,e)),this._events.next(new Gl(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(Qe(V({},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()?Kd:Qd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=Wl,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=JI(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??!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&&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 Gl(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new k,this.statusChanges=new k}_calculateStatus(){return this._allControlsDisabled()?Kd:this.errors?Qh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wl)?Wl:this._anyControlsHaveStatus(Qh)?Qh:Qd}_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,this._parent&&!i.onlySelf&&this._parent._updatePristine(i,e),o&&this._events.next(new Xd(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new Jd(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){uf(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let e=this._parent&&this._parent.dirty;return!i&&!!e&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=CH(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=wH(this._rawAsyncValidators)}},rf=class extends of{constructor(i,e,n){super(sk(e),lk(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={}){DH(this,!0,i),Object.keys(i).forEach(n=>{xH(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,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}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 $l=new R("",{providedIn:"root",factory:()=>mf}),mf="always";function SH(t,i){return[...i.path,t]}function eu(t,i,e=mf){iC(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),MH(t,i),IH(t,i),TH(t,i),EH(t,i)}function af(t,i,e=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),lf(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function sf(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function EH(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function iC(t,i){let e=rk(t);i.validator!==null?t.setValidators(UI(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=ak(t);i.asyncValidator!==null?t.setAsyncValidators(UI(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();sf(i._rawValidators,o),sf(i._rawAsyncValidators,o)}function lf(t,i){let e=!1;if(t!==null){if(i.validator!==null){let o=rk(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=ak(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 sf(i._rawValidators,n),sf(i._rawAsyncValidators,n),e}function MH(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&ck(t,i)})}function TH(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&ck(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function ck(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function IH(t,i){let e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function dk(t,i){t==null,iC(t,i)}function kH(t,i){return lf(t,i)}function uk(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function AH(t){return Object.getPrototypeOf(t.constructor)===QI}function mk(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function pk(t,i){if(!i)return null;Array.isArray(i);let e,n,o;return i.forEach(r=>{r.constructor===st?e=r:AH(r)?n=r:o=r}),o||n||e||null}function RH(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var OH={provide:Ir,useExisting:tn(()=>ao)},Zd=Promise.resolve(),ao=(()=>{class t extends Ir{callSetDisabledState;get submitted(){return xi(this.submittedReactive)}_submitted=Qo(()=>this.submittedReactive());submittedReactive=yi(!1);_directives=new Set;form;ngSubmit=new k;options;constructor(e,n,o){super(),this.callSetDisabledState=o,this.form=new rf({},tC(e),nC(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Zd.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),eu(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Zd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Zd.then(()=>{let n=this._findContainer(e.path),o=new rf({});dk(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Zd.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){Zd.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),mk(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new tf(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1),this.form._events.next(new nf(this.form))}_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)(y(ro,10),y(cf,10),y($l,8))};static \u0275dir=B({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&b("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:[we([OH]),_e]})}return t})();function GI(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function $I(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var pf=class extends of{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(sk(e),lk(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),uf(e)&&(e.nonNullable||e.initialValueIsDefault)&&($I(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),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){GI(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){GI(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){$I(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 PH=t=>t instanceof pf;var FH={provide:Mi,useExisting:tn(()=>Se)},qI=Promise.resolve(),Se=(()=>{class t extends Mi{_changeDetectorRef;callSetDisabledState;control=new pf;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new k;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=pk(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),uk(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(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(){eu(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){qI.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,o=n!==0&&$(n);qI.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?SH(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(y(Ir,9),y(ro,10),y(cf,10),y(mi,10),y(De,8),y($l,8))};static \u0275dir=B({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:[we([FH]),_e,je]})}return t})();var hf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),NH={provide:mi,useExisting:tn(()=>ji),multi:!0},ji=(()=>{class t extends QI{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=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&b("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[we([NH]),_e]})}return t})();var hk=new R(""),LH={provide:Mi,useExisting:tn(()=>oC)},oC=(()=>{class t extends Mi{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new k;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=pk(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&af(n,this,!1),eu(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}uk(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&af(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)(y(ro,10),y(cf,10),y(mi,10),y(hk,8),y($l,8))};static \u0275dir=B({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:[we([LH]),_e,je]})}return t})(),VH={provide:Ir,useExisting:tn(()=>pa)},pa=(()=>{class t extends Ir{callSetDisabledState;get submitted(){return xi(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Qo(()=>this._submittedReactive());_submittedReactive=yi(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new k;constructor(e,n,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(lf(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let n=this.form.get(e.path);return eu(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){af(e.control||null,e,!1),RH(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this._submittedReactive.set(!0),mk(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new tf(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new nf(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,o=this.form.get(e.path);n!==o&&(af(n||null,e),PH(o)&&(eu(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);dk(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&kH(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){iC(this.form,this),this._oldForm&&lf(this._oldForm,this)}static \u0275fac=function(n){return new(n||t)(y(ro,10),y(cf,10),y($l,8))};static \u0275dir=B({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&b("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:[we([VH]),_e,je]})}return t})();function BH(t){return typeof t=="number"?t:parseInt(t,10)}var fk=(()=>{class t{_validator=Kh;_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):Kh,this._onChange&&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=B({type:t,features:[je]})}return t})();var jH={provide:ro,useExisting:tn(()=>In),multi:!0};var In=(()=>{class t extends fk{required;inputName="required";normalizeInput=$;createValidator=e=>KI;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({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&&ne("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[we([jH]),_e]})}return t})();var zH={provide:ro,useExisting:tn(()=>bs),multi:!0},bs=(()=>{class t extends fk{maxlength;inputName="maxlength";normalizeInput=e=>BH(e);createValidator=e=>ZI(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&ne("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[we([zH]),_e]})}return t})();var gk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var _k=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:$l,useValue:e.callSetDisabledState??mf}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[gk]})}return t})(),ff=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:hk,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:$l,useValue:e.callSetDisabledState??mf}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[gk]})}return t})();var rC=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 Fe(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(Ke(e=>e.some(n=>n.target===i)),pm({bufferSize:1,refCount:!0}),Te(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},gf=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=p(ie);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 rC(o)),this._observers.get(o).observe(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var dC=["*"];function UH(t,i){t&1&&ue(0)}var HH=["tabListContainer"],WH=["tabList"],GH=["tabListInner"],$H=["nextPaginator"],qH=["previousPaginator"],YH=["content"];function QH(t,i){}var KH=["tabBodyWrapper"],ZH=["tabHeader"];function XH(t,i){}function JH(t,i){if(t&1&&E(0,XH,0,0,"ng-template",12),t&2){let e=g().$implicit;_("cdkPortalOutlet",e.templateLabel)}}function e5(t,i){if(t&1&&h(0),t&2){let e=g().$implicit;ae(e.textLabel)}}function t5(t,i){if(t&1){let e=A();l(0,"div",7,2),b("click",function(){let o=C(e),r=o.$implicit,a=o.$index,s=g(),c=Ye(1);return w(s._handleClick(r,c,a))})("cdkFocusChange",function(o){let r=C(e).$index,a=g();return w(a._tabFocusChanged(o,r))}),I(2,"span",8)(3,"div",9),l(4,"span",10)(5,"span",11),E(6,JH,1,1,null,12)(7,e5,1,1),d()()()}if(t&2){let e=i.$implicit,n=i.$index,o=Ye(1),r=g();Bt(e.labelClass),X("mdc-tab--active",r.selectedIndex===n),_("id",r._getTabLabelId(e,n))("disabled",e.disabled)("fitInkBarToContent",r.fitInkBarToContent),ne("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),u(3),_("matRippleTrigger",o)("matRippleDisabled",e.disabled||r.disableRipple),u(3),T(e.templateLabel?6:7)}}function n5(t,i){t&1&&ue(0)}function i5(t,i){if(t&1){let e=A();l(0,"mat-tab-body",13),b("_onCentered",function(){C(e);let o=g();return w(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){C(e);let r=g();return w(r._setTabBodyWrapperHeight(o))})("_beforeCentering",function(o){C(e);let r=g();return w(r._bodyCentered(o))}),d()}if(t&2){let e=i.$implicit,n=i.$index,o=g();Bt(e.bodyClass),_("id",o._getTabContentId(n))("content",e.content)("position",e.position)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),ne("tabindex",o.contentTabIndex!=null&&o.selectedIndex===n?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(e,n))("aria-hidden",o.selectedIndex!==n)}}var o5=new R("MatTabContent"),r5=(()=>{class t{template=p(St);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","matTabContent",""]],features:[we([{provide:o5,useExisting:t}])]})}return t})(),a5=new R("MatTabLabel"),Ck=new R("MAT_TAB"),Yt=(()=>{class t extends wy{_closestTab=p(Ck,{optional:!0});static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[we([{provide:a5,useExisting:t}]),_e]})}return t})(),wk=new R("MAT_TAB_GROUP"),Qt=(()=>{class t{_viewContainerRef=p(Rt);_closestTabGroup=p(wk,{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(yt).load(gn)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new yn(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=S({type:t,selectors:[["mat-tab"]],contentQueries:function(n,o,r){if(n&1&&(ze(r,Yt,5),ze(r,r5,7,St)),n&2){let a;q(a=Y())&&(o.templateLabel=a.first),q(a=Y())&&(o._explicitContent=a.first)}},viewQuery:function(n,o){if(n&1&&me(St,7),n&2){let r;q(r=Y())&&(o._implicitContent=r.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(n,o){n&2&&ne("id",null)},inputs:{disabled:[2,"disabled","disabled",$],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[we([{provide:Ck,useExisting:t}]),je],ngContentSelectors:dC,decls:1,vars:0,template:function(n,o){n&1&&(Le(),E(0,UH,1,0,"ng-template"))},encapsulation:2})}return t})(),aC="mdc-tab-indicator--active",vk="mdc-tab-indicator--no-transition",sC=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}}},s5=(()=>{class t{_elementRef=p(Z);_inkBarElement;_inkBarContentElement;_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(aC);return}let o=n.getBoundingClientRect(),r=e.width/o.width,a=e.left-o.left;n.classList.add(vk),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${r})`),n.getBoundingClientRect(),n.classList.remove(vk),n.classList.add(aC),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(aC)}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=B({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",$]}})}return t})();var xk=(()=>{class t extends s5{elementRef=p(Z);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=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,o){n&2&&(ne("aria-disabled",!!o.disabled),X("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",$]},features:[_e]})}return t})(),bk={passive:!0},l5=650,c5=100,d5=(()=>{class t{_elementRef=p(Z);_changeDetectorRef=p(De);_viewportRuler=p(Ei);_dir=p(Pt,{optional:!0});_ngZone=p(ie);_platform=p(et);_sharedResizeObserver=p(gf);_injector=p(Ie);_renderer=p(kt);_animationMode=p(tt,{optional:!0});_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new z;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_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 k;indexFocused=new k;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push($t(this._renderer,this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),bk),$t(this._renderer,this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),bk))}ngAfterContentInit(){let e=this._dir?this._dir.change:se("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(lr(32),Te(this._destroyed)),o=this._viewportRuler.change(150).pipe(Te(this._destroyed)),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Tr(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),Ht(r,{injector:this._injector}),_t(e,o,n,this._items.changes,this._itemsResized()).pipe(Te(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"?_n:this._items.changes.pipe(xt(this._items),Dt(e=>new Fe(n=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(r=>n.next(r));return e.forEach(r=>o.observe(r.elementRef.nativeElement)),()=>{o.disconnect()}}))),Aa(1),Ke(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(!Et(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,c;this._getLayoutDirection()=="ltr"?(s=r,c=s+a):(c=this._tabListInner.nativeElement.offsetWidth-r,s=c-a);let m=this.scrollDistance,f=this.scrollDistance+o;sf&&(this.scrollDistance+=Math.min(c-f,s-m))}_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(),_o(l5,c5).pipe(Te(_t(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=B({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",$],selectedIndex:[2,"selectedIndex","selectedIndex",Zt]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),u5=(()=>{class t extends d5{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new sC(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275cmp=S({type:t,selectors:[["mat-tab-header"]],contentQueries:function(n,o,r){if(n&1&&ze(r,xk,4),n&2){let a;q(a=Y())&&(o._items=a)}},viewQuery:function(n,o){if(n&1&&(me(HH,7),me(WH,7),me(GH,7),me($H,5),me(qH,5)),n&2){let r;q(r=Y())&&(o._tabListContainer=r.first),q(r=Y())&&(o._tabList=r.first),q(r=Y())&&(o._tabListInner=r.first),q(r=Y())&&(o._nextPaginator=r.first),q(r=Y())&&(o._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,o){n&2&&X("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",$]},features:[_e],ngContentSelectors:dC,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(n,o){if(n&1){let r=A();Le(),l(0,"div",5,0),b("click",function(){return C(r),w(o._handlePaginatorClick("before"))})("mousedown",function(s){return C(r),w(o._handlePaginatorPress("before",s))})("touchend",function(){return C(r),w(o._stopInterval())}),I(2,"div",6),d(),l(3,"div",7,1),b("keydown",function(s){return C(r),w(o._handleKeydown(s))}),l(5,"div",8,2),b("cdkObserveContent",function(){return C(r),w(o._onContentChanges())}),l(7,"div",9,3),ue(9),d()()(),l(10,"div",10,4),b("mousedown",function(s){return C(r),w(o._handlePaginatorPress("after",s))})("click",function(){return C(r),w(o._handlePaginatorClick("after"))})("touchend",function(){return C(r),w(o._stopInterval())}),I(12,"div",6),d()}n&2&&(X("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),_("matRippleDisabled",o._disableScrollBefore||o.disableRipple),u(3),X("_mat-animation-noopable",o._animationMode==="NoopAnimations"),u(2),ne("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),u(5),X("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),_("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[Bi,LT],styles:[`.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height, 1px);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height, 1px);border-top-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}} +`],encapsulation:2})}return t})(),m5=new R("MAT_TABS_CONFIG"),yk=(()=>{class t extends Kn{_host=p(lC);_centeringSub=be.EMPTY;_leavingSub=be.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(xt(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","matTabBodyHost",""]],features:[_e]})}return t})(),lC=(()=>{class t{_elementRef=p(Z);_dir=p(Pt,{optional:!0});_ngZone=p(ie);_injector=p(Ie);_renderer=p(kt);_animationsModule=p(tt,{optional:!0});_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=be.EMPTY;_position;_previousPosition;_onCentering=new k;_beforeCentering=new k;_afterLeavingCenter=new k;_onCentered=new k(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=p(De);this._dirChangeSubscription=this._dir.change.subscribe(n=>{this._computePositionAnimationState(n),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),Ht(()=>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(),Ht(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._animationsModule==="NoopAnimations"||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&(me(yk,5),me(YH,5)),n&2){let r;q(r=Y())&&(o._portalHost=r.first),q(r=Y())&&(o._contentElement=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(n,o){n&2&&ne("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&&(l(0,"div",1,0),E(2,QH,0,0,"ng-template",2),d()),n&2&&X("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:[yk,Nd],styles:[`.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)} +`],encapsulation:2})}return t})(),Jt=(()=>{class t{_elementRef=p(Z);_changeDetectorRef=p(De);_ngZone=p(ie);_tabsSubscription=be.EMPTY;_tabLabelSubscription=be.EMPTY;_tabBodySubscription=be.EMPTY;_diAnimationsDisabled=p(tt,{optional:!0})==="NoopAnimations";_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new Qi;_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;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 k;focusChange=new k;animationDone=new k;selectedTabChange=new k(!0);_groupId;_isServer=!p(et).isBrowser;constructor(){let e=p(m5,{optional:!0});this._groupId=p(ut).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(xt(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 cC;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=_t(...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=S({type:t,selectors:[["mat-tab-group"]],contentQueries:function(n,o,r){if(n&1&&ze(r,Qt,5),n&2){let a;q(a=Y())&&(o._allTabs=a)}},viewQuery:function(n,o){if(n&1&&(me(KH,5),me(ZH,5),me(lC,5)),n&2){let r;q(r=Y())&&(o._tabBodyWrapper=r.first),q(r=Y())&&(o._tabHeader=r.first),q(r=Y())&&(o._tabBodies=r)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(n,o){n&2&&(ne("mat-align-tabs",o.alignTabs),Bt("mat-"+(o.color||"primary")),Vn("--mat-tab-animation-duration",o.animationDuration),X("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",$],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",$],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",$],selectedIndex:[2,"selectedIndex","selectedIndex",Zt],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",Zt],disablePagination:[2,"disablePagination","disablePagination",$],disableRipple:[2,"disableRipple","disableRipple",$],preserveContent:[2,"preserveContent","preserveContent",$],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[we([{provide:wk,useExisting:t}])],ngContentSelectors:dC,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){if(n&1){let r=A();Le(),l(0,"mat-tab-header",3,0),b("indexFocused",function(s){return C(r),w(o._focusChanged(s))})("selectFocusedIndex",function(s){return C(r),w(o.selectedIndex=s)}),oe(2,t5,8,17,"div",4,ce),d(),E(4,n5,1,0),l(5,"div",5,1),oe(7,i5,1,10,"mat-tab-body",6,ce),d()}n&2&&(_("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),u(2),re(o._tabs),u(2),T(o._isServer?4:-1),u(),X("_mat-animation-noopable",o._animationsDisabled()),u(2),re(o._tabs))},dependencies:[u5,xk,Od,Bi,Kn,lC],styles:[`.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height, 48px);font-family:var(--mat-tab-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height, 2px);border-radius:var(--mdc-tab-indicator-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important} +`],encapsulation:2})}return t})(),cC=class{index;tab};var Dk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[fe,fe]})}return t})();function p5(t,i){if(t&1){let e=A();l(0,"uds-field-text",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function h5(t,i){if(t&1){let e=A();l(0,"uds-field-autocomplete",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function f5(t,i){if(t&1){let e=A();l(0,"uds-field-textbox",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function g5(t,i){if(t&1){let e=A();l(0,"uds-field-numeric",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function _5(t,i){if(t&1){let e=A();l(0,"uds-field-password",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function v5(t,i){if(t&1){let e=A();l(0,"uds-field-hidden",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function b5(t,i){if(t&1){let e=A();l(0,"uds-field-choice",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function y5(t,i){if(t&1){let e=A();l(0,"uds-field-multichoice",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function C5(t,i){if(t&1){let e=A();l(0,"uds-field-editlist",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function w5(t,i){if(t&1){let e=A();l(0,"uds-field-checkbox",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function x5(t,i){if(t&1){let e=A();l(0,"uds-field-imgchoice",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function D5(t,i){if(t&1){let e=A();l(0,"uds-field-date",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}function S5(t,i){if(t&1){let e=A();l(0,"uds-field-tags",2),b("changed",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()}if(t&2){let e=g();_("field",e.field)}}var _f=(()=>{class t{constructor(){this.field={},this.changed=new k,this.udsGuiFieldType=ui}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=S({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&&(l(0,"div",0),E(1,p5,1,1,"uds-field-text",1)(2,h5,1,1,"uds-field-autocomplete",1)(3,f5,1,1,"uds-field-textbox",1)(4,g5,1,1,"uds-field-numeric",1)(5,_5,1,1,"uds-field-password",1)(6,v5,1,1,"uds-field-hidden",1)(7,b5,1,1,"uds-field-choice",1)(8,y5,1,1,"uds-field-multichoice",1)(9,C5,1,1,"uds-field-editlist",1)(10,w5,1,1,"uds-field-checkbox",1)(11,x5,1,1,"uds-field-imgchoice",1)(12,D5,1,1,"uds-field-date",1)(13,S5,1,1,"uds-field-tags",1),d()),n&2){let r;_("matTooltip",o.field.gui.tooltip),u(),T((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 M5(t,i){if(t&1&&h(0),t&2){let e=g().$implicit;F(" ",e," ")}}function T5(t,i){if(t&1){let e=A();l(0,"uds-field",6),b("changed",function(o){C(e);let r=g(3);return w(r.changed.emit(o))}),d()}if(t&2){let e=i.$implicit;_("field",e)}}function I5(t,i){if(t&1&&(l(0,"mat-tab",2),E(1,M5,1,1,"ng-template",3),l(2,"div",1)(3,"div",4),oe(4,T5,1,1,"uds-field",5,ce),d()()()),t&2){let e=i.$implicit,n=g(2);u(4),re(n.fieldsByTab[e])}}function k5(t,i){if(t&1&&(l(0,"mat-tab-group",0),oe(1,I5,6,0,"mat-tab",2,ce),d()),t&2){let e=g();_("disableRipple",!1)("@.disabled",!0),u(),re(e.tabs)}}function A5(t,i){if(t&1){let e=A();l(0,"div")(1,"uds-field",6),b("changed",function(o){C(e);let r=g(2);return w(r.changed.emit(o))}),d()()}if(t&2){let e=i.$implicit;u(),_("field",e)}}function R5(t,i){if(t&1&&(l(0,"div",1),oe(1,A5,2,1,"div",null,ce),d()),t&2){let e=g();u(),re(e.fields)}}var O5=django.gettext("Main"),Sk=(()=>{class t{constructor(){this.fields=[],this.changed=new k,this.tabs=new Array,this.fieldsByTab={}}ngOnInit(){this.fieldsByTab={};for(let e of this.fields){let n=e.gui.tab===void 0?O5:e.gui.tab;this.tabs.includes(n)||(this.tabs.push(n),this.fieldsByTab[n]=new Array),this.fieldsByTab[n].push(e)}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=S({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&&E(0,k5,3,2,"mat-tab-group",0)(1,R5,3,0,"div",1),n&2&&T(o.tabs.length>1?0:1)},dependencies:[Yt,Qt,Jt,_f],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 F5(t,i){if(t&1){let e=A();l(0,"button",10),b("click",function(){C(e);let o=g();return w(o.customButtonClicked())}),h(1),d()}if(t&2){let e=g();u(),ae(e.data.customButton)}}var Ek=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.onEvent=new k(!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),c=parseInt((o.gui.maxValue||987654321).toString(),10);s!==987654321&&r= "+o.gui.minValue),c!==987654321&&r>c&&n.push(o.gui.label+" <= "+o.gui.maxValue),r=r.toString()}(s=>{let c=s.split("."),m=e;for(let f=0;f0){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)(y(Re),y(Ve))}}static{this.\u0275cmp=S({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){if(n&1){let r=A();I(0,"h4",1),dt(1,"safeHtml"),l(2,"mat-dialog-content",null,0)(4,"form",2)(5,"uds-form",3),b("changed",function(s){return C(r),w(o.changed(s))}),d()()(),l(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),E(9,F5,2,1,"button",6),d(),l(10,"div",7)(11,"button",8),b("click",function(){return C(r),w(o.dialogRef.close())})("click",function(){return C(r),w(o.cancel())}),l(12,"uds-translate"),h(13,"Discard & close"),d()(),l(14,"button",9),b("click",function(){return C(r),w(o.save())}),l(15,"uds-translate"),h(16,"Save"),d()()()()()}n&2&&(_("innerHtml",vt(1,5,o.data.title),Wt),u(5),_("fields",o.data.guiFields),u(4),T(o.data.customButton!==void 0?9:-1),u(2),_("disabled",o.saving),u(3),_("disabled",o.saving))},dependencies:[ii,hf,df,ao,ye,Ue,We,He,de,Sk,Yh],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 vf=class{constructor(i){this.gui=i}modalForm(i,e,n=null,o){e.sort((c,m)=>c.gui.order>m.gui.order?1:-1);let r=n!=null;n=r?n:{},e.forEach(c=>{(r===!1||c.gui.readonly===void 0)&&(c.gui.readonly=!1),c.gui.type===ui.TEXT&&c.gui.lines&&(c.gui.type=ui.TEXTBOX);let f=((v,D)=>{let x=D.split("."),M=v;for(let O of x)if(M&&typeof M=="object")M=M[O];else return;return M!==null?M:void 0})(n,c.name);if(f!==void 0)if(f instanceof Array){let v=new Array;f.forEach(D=>v.push(D)),c.value=v}else c.value=f});let a=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(Ek,{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 N(this,null,function*(){let c=s||{},m=c.callback||(()=>{}),f=o||[],v=n?django.gettext("Test"):void 0,D={},x={},M=U=>{if(x.hasOwnProperty(U.name)){let Xe=x[U.name];U.value!==""&&U.value!==void 0&&this.executeCallback(i,U,D)}},O=c.snack||this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),K=yield i.table.rest.gui(a);if(O.dismiss(),f!==void 0)for(let U of f)K.push(U);for(let U of K){if(U.gui.type===ui.INFO){U.name==="title"&&(e+=" "+(U.value||U.gui.default||""));continue}D[U.name]=U,U.gui.fills!==void 0&&(x[U.name]=U.gui.fills)}this.modalForm(e,K,r,v).subscribe(U=>N(this,null,function*(){switch(U.data&&(U.data.data_type=a),U.type){case v:if(U.errors&&U.errors.length>0){this.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+U.errors.join(", "));return}this.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),i.table.rest.test(a,U.data).then(Xe=>{Xe!=="ok"?this.gui.snackbar.open(django.gettext("Test failed:")+" "+Xe,django.gettext("dismiss")):this.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(U.data===null)for(let Xe of K)M(Xe);else M(U.data.field);m({on:U.data,all:D});break;case"save":if(c.save===void 0){U.dialog.componentInstance.saving=!0;try{r?yield i.table.rest.save(U.data,r.id):yield i.table.rest.create(U.data),this.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),U.dialog.close(),i.table.reloadPage()}finally{U.dialog.componentInstance.saving=!1}}else U.dialog.close(),c.save.resolve(U.data);break;case"cancel":U.dialog.close();break}}))})}typedEditForm(i,e,n=!1,o,r=()=>{}){return N(this,null,function*(){let a=i.table.selection.selected[0],s=a.type,c=new k,m=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss")),f=yield i.table.rest.get(a.id);return this.typedForm(i,e,n,o,f,s,{snack:m,callback:r})})}typedNewForm(i,e,n=!1,o,r=()=>{}){return N(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 N(this,null,function*(){let r=new Array,a=new Array;for(let m of i.table.selection.selected){let f=m.name||m.friendly_name||m[n||"name"]||m.id;if(f&&f.changingThisBreaksApplicationSecurity&&(f=f.changingThisBreaksApplicationSecurity),o){let v=f.indexOf("")+7;f=f.substring(0,v)+f.substring(v).replace(//g,">")}else f=f.replace(//g,">");r.push(f),a.push(m.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 f of a)try{yield i.table.rest.delete(f)}catch(v){console.warn("Error deleting item",f,v)}let m=a.length;this.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),i.table.reloadPage()}})}executeCallback(r,a,s){return N(this,arguments,function*(i,e,n,o={}){let c=new Array;if(!e.gui.fills)return;for(let v of e.gui.fills.parameters)c.push(v+"="+encodeURIComponent(n[v].value));let m=yield i.table.rest.callback(e.gui.fills.callback_name,c.join("&")),f=new Array;for(let v of m){let D=n[v.name];if(D!==void 0){D.gui.fills!==void 0&&f.push(D);let x=new Array;for(let M of v.choices)x.push({id:M.id,text:M.text,img:M.img});if(D.gui.choices=x,D.value instanceof Array){let M=new Array;for(let O of D.gui.choices)D.value.indexOf(O.id)>=0&&M.push(O.id);D.value=M}else(!D.value||D.value instanceof Array&&D.value.length===0)&&(D.value=v.choices.length>0?v.choices[0].id:"")}}for(let v of f)o[v.name]===void 0&&(o[v.name]=!0,this.executeCallback(i,v,n,o))})}};var N5="display:inline-block; background-size: SIZE SIZE; background-repeat: no-repeat; width: SIZE; height: SIZE; vertical-align: middle; margin: 4px 8px 4px 0px;",bf=class{constructor(i,e){this.dialog=i,this.snackbar=e,this.forms=new vf(this)}alert(i,e,n=0,o){return N(this,null,function*(){let r=o||(window.innerWidth<800?"80%":"40%");return this.dialog.open(Zy,{width:r,data:{title:i,body:e,autoclose:n,type:qd.alert},disableClose:!0}).componentInstance.acceptance})}questionDialog(i,e,n=!1){return N(this,null,function*(){let o=window.innerWidth<800?"80%":"40%",r=this.dialog.open(Zy,{width:o,data:{title:i,body:e,type:qd.question,warnOnYes:n},disableClose:!0});return io(r.componentInstance.acceptance)})}icon_from_image(i,e="24px"){return''}material_icon(i,e,n="24px"){let o='",o}};var yf={production:!0};var Nt=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}(Nt||{}),ot=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}(ot||{});var uC="provider",mC="service",tu="pool",L5="authenticator",nu="user",pC="group",hC="transport",fC="osmanager",Cf="calendar",gC="poolgroup",V5={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")},xn=class{constructor(i){this.router=i}static getGotoButton(i,e,n){return{id:i,html:'link'+django.gettext("Go to")+" "+V5[i]+"",type:ot.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 uC:this.gotoProvider(o(0));break;case mC:this.gotoService(o(0),o(1));break;case tu:this.gotoServicePool(o(0));break;case L5:this.gotoAuthenticator(o(0));break;case nu:this.gotoUser(o(0),o(1));break;case pC:this.gotoGroup(o(0),o(1));break;case hC:this.gotoTransport(o(0));break;case fC:this.gotoOSManager(o(0));break;case Cf:this.gotoCalendar(o(0));break;case gC:this.gotoPoolGroup(o(0));break}}catch{}}};var wf={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)"};function B5(t,i){if(t&1){let e=A();l(0,"div",1)(1,"button",2),b("click",function(){C(e);let o=g();return w(o.action())}),h(2),d()()}if(t&2){let e=g();u(2),F(" ",e.data.action," ")}}var j5=["label"];function z5(t,i){}var U5=Math.pow(2,31)-1,iu=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,U5))}_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}},Mk=new R("MatSnackBarData"),ql=class{politeness="assertive";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},H5=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),W5=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),G5=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),Tk=(()=>{class t{snackBarRef=p(iu);data=p(Mk);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(l(0,"div",0),h(1),d(),E(2,B5,3,1,"div",1)),n&2&&(u(),F(" ",o.data.message,` +`),u(),T(o.hasAction?2:-1))},dependencies:[ye,H5,W5,G5],styles:[`.mat-mdc-simple-snack-bar{display:flex} +`],encapsulation:2,changeDetection:0})}return t})(),_C="_mat-snack-bar-enter",vC="_mat-snack-bar-exit",$5=(()=>{class t extends Mr{_ngZone=p(ie);_elementRef=p(Z);_changeDetectorRef=p(De);_platform=p(et);_rendersRef;_animationsDisabled=p(tt,{optional:!0})==="NoopAnimations";snackBarConfig=p(ql);_document=p(he);_trackedModals=new Set;_enterFallback;_exitFallback;_renders=new z;_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new z;_onExit=new z;_onEnter=new z;_animationState="void";_live;_label;_role;_liveElementId=p(ut).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")),this._rendersRef=Ya(()=>this._renders.next(),{manualCleanup:!0})}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===vC?this._completeExit():e===_C&&(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?this._renders.pipe(wt(1)).subscribe(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(_C)))}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(_C)},200)))}exit(){return this._destroyed?se(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?this._renders.pipe(wt(1)).subscribe(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(vC)))}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(vC),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit(),this._renders.complete(),this._rendersRef.destroy()}_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=S({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&(me(Kn,7),me(j5,7)),n&2){let r;q(r=Y())&&(o._portalOutlet=r.first),q(r=Y())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,o){n&1&&b("animationend",function(a){return o.onAnimationEnd(a.animationName)})("animationcancel",function(a){return o.onAnimationEnd(a.animationName)}),n&2&&X("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:[_e],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&&(l(0,"div",1)(1,"div",2,0)(3,"div",3),E(4,z5,0,0,"ng-template",4),d(),I(5,"div"),d()()),n&2&&(u(5),ne("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Kn],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mdc-snackbar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mdc-snackbar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1} +`],encapsulation:2})}return t})();function q5(){return new ql}var Y5=new R("mat-snack-bar-default-options",{providedIn:"root",factory:q5}),bC=(()=>{class t{_overlay=p(At);_live=p(Pd);_injector=p(Ie);_breakpointObserver=p(us);_parentSnackBar=p(t,{optional:!0,skipSelf:!0});_defaultConfig=p(Y5);_snackBarRefAtThisLevel=null;simpleSnackBarComponent=Tk;snackBarContainerComponent=$5;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=V(V({},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=Ie.create({parent:o||this._injector,providers:[{provide:ql,useValue:n}]}),a=new ri(this.snackBarContainerComponent,n.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){let o=V(V(V({},new ql),this._defaultConfig),n),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new iu(a,r);if(e instanceof St){let c=new yn(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(c)}else{let c=this._createInjector(o,s),m=new ri(e,void 0,c),f=a.attachComponentPortal(m);s.instance=f.instance}return this._breakpointObserver.observe(wf.HandsetPortrait).pipe(Te(r.detachments())).subscribe(c=>{r.overlayElement.classList.toggle(this.handsetCssClass,c.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 si;n.direction=e.direction;let o=this._overlay.position().global(),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,this._overlay.create(n)}_createInjector(e,n){let o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Ie.create({parent:o||this._injector,providers:[{provide:iu,useValue:n},{provide:Mk,useValue:e.data}]})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ik=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[bC],imports:[jn,Si,nr,fe,Tk,fe]})}return t})();var K5=["mat-internal-form-field",""],Z5=["*"],xf=(()=>{class t{labelPosition;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({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&&X("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:K5,ngContentSelectors:Z5,decls:1,vars:0,template:function(n,o){n&1&&(Le(),ue(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} +`],encapsulation:2,changeDetection:0})}return t})();var ha=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 ou=new R("MAT_DATE_LOCALE",{providedIn:"root",factory:X5});function X5(){return p(qc)}var Yl="Method not implemented",Pn=class{locale;_localeChanges=new z;localeChanges=this._localeChanges;setTime(i,e,n,o){throw new Error(Yl)}getHours(i){throw new Error(Yl)}getMinutes(i){throw new Error(Yl)}getSeconds(i){throw new Error(Yl)}parseTime(i,e){throw new Error(Yl)}addSeconds(i,e){throw new Error(Yl)}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}},fa=new R("mat-date-formats");var ys=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Df=(()=>{class t{_animationMode=p(tt,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&X("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px} +`],encapsulation:2,changeDetection:0})}return t})();var J5=["text"],e8=[[["mat-icon"]],"*"],t8=["mat-icon","*"];function n8(t,i){if(t&1&&I(0,"mat-pseudo-checkbox",1),t&2){let e=g();_("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function i8(t,i){if(t&1&&I(0,"mat-pseudo-checkbox",3),t&2){let e=g();_("disabled",e.disabled)}}function o8(t,i){if(t&1&&(l(0,"span",4),h(1),d()),t&2){let e=g();u(),F("(",e.group.label,")")}}var Kl=new R("MAT_OPTION_PARENT_COMPONENT"),Zl=new R("MatOptgroup");var Ql=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},Ze=(()=>{class t{_element=p(Z);_changeDetectorRef=p(De);_parent=p(Kl,{optional:!0});group=p(Zl,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=p(ut).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new k;_text;_stateChanges=new z;constructor(){let e=p(yt);e.load(gn),e.load(eo),this._signalDisableRipple=!!this._parent&&Qr(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)&&!Et(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 Ql(this,e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&me(J5,7),n&2){let r;q(r=Y())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&b("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(bn("id",o.id),ne("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),X("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",$]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:t8,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&&(Le(e8),E(0,n8,1,2,"mat-pseudo-checkbox",1),ue(1),l(2,"span",2,0),ue(4,1),d(),E(5,i8,1,1,"mat-pseudo-checkbox",3)(6,o8,2,1,"span",4),I(7,"div",5)),n&2&&(T(o.multiple?0:-1),u(5),T(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),u(),T(o.group&&o.group._inert?6:-1),u(),_("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[Df,Bi],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})();function ru(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 kk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[fe]})}return t})();var Xl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[tr,fe,kk]})}return t})();var a8=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,s8=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function yC(t,i){let e=Array(t);for(let n=0;n{class t extends Pn{useUtcForDisplay=!1;_matDateLocale=p(ou,{optional:!0});constructor(){super();let e=p(ou,{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 yC(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return yC(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 yC(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,Qe(V({},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(a8.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(s8);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),CC(o,0,23)&&CC(r,0,59)&&(a==null||CC(a,0,59)))return this.setTime(this.today(),o,r,a||0)}return null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();function CC(t,i,e){return!isNaN(t)&&t>=i&&t<=e}var c8={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 Ak=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[d8()]})}return t})();function d8(t=c8){return[{provide:Pn,useClass:l8},{provide:fa,useValue:t}]}var Rk="dark-theme",Ok="light-theme",j=(()=>{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 wh(udsData.profile),this.navigation=new xn(this.router),this.gui=new bf(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 yf.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];[Rk,Ok].forEach(n=>{e.classList.contains(n)&&e.classList.remove(n)}),e.classList.add(this._isDarkTheme?Rk:Ok)}toggleSidebar(){this._sidebarVisible=!this._sidebarVisible}static{this.\u0275fac=function(n){return new(n||t)(le(_l),le(So),le(zl),le(bC),le(es),le(Pn))}}static{this.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Pk=(()=>{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)(le(j))}}static{this.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ga=(()=>{class t{constructor(){this.headerDataSubject=new bt({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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function m8(t,i){if(t&1&&(l(0,"div",2)(1,"span",3)(2,"uds-translate"),h(3,"UDS ID"),d(),h(4,":\xA0"),d(),l(5,"span",4),h(6),d()()),t&2){let e=g();u(6),ae(e.data.udsid)}}function p8(t,i){if(t&1&&(l(0,"div",2)(1,"span",3)(2,"uds-translate"),h(3,"Brand"),d(),h(4,":\xA0"),d(),l(5,"span",4),h(6),d()()),t&2){let e=g();u(6),ae(e.data.brand)}}function h8(t,i){if(t&1&&(l(0,"div",2)(1,"span",3)(2,"uds-translate"),h(3,"Support level"),d(),h(4,":\xA0"),d(),l(5,"span",4),h(6),d()()),t&2){let e=g();u(6),ae(e.data.support)}}var Fk=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n}static{this.\u0275fac=function(n){return new(n||t)(y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"License information"),d()(),l(3,"mat-dialog-content")(4,"div",1),E(5,m8,7,1,"div",2)(6,p8,7,1,"div",2)(7,h8,7,1,"div",2),l(8,"div",2)(9,"span",3)(10,"uds-translate"),h(11,"Licensed users"),d(),h(12,":\xA0"),d(),l(13,"span",4),h(14),d()(),l(15,"div",2)(16,"span",3)(17,"uds-translate"),h(18,"Model"),d(),h(19,":\xA0"),d(),l(20,"span",4),h(21),d()(),l(22,"div",2)(23,"span",3)(24,"uds-translate"),h(25,"Total users"),d(),h(26,":\xA0"),d(),l(27,"span",4),h(28),d()(),l(29,"div",2)(30,"span",3)(31,"uds-translate"),h(32,"Users with services"),d(),h(33,":\xA0"),d(),l(34,"span",4),h(35),d()(),l(36,"div",2)(37,"span",3)(38,"uds-translate"),h(39,"Assigned services"),d(),h(40,":\xA0"),d(),l(41,"span",4),h(42),d()(),l(43,"div",2)(44,"span",3)(45,"uds-translate"),h(46,"Start date"),d(),h(47,":\xA0"),d(),l(48,"span",4),h(49),d()(),l(50,"div",2)(51,"span",3)(52,"uds-translate"),h(53,"End date"),d(),h(54,":\xA0"),d(),l(55,"span",4),h(56),d()()()(),l(57,"mat-dialog-actions")(58,"button",5)(59,"uds-translate"),h(60,"Close"),d()()()),n&2&&(u(5),T(o.data.udsid?5:-1),u(),T(o.data.brand?6:-1),u(),T(o.data.support?7:-1),u(7),ae(o.data.licensed_users),u(7),ae(o.data.model),u(7),ae(o.data.users),u(7),ae(o.data.users_with_services),u(7),ae(o.data.assigned_services),u(7),ae(o.data.start_date),u(7),ae(o.data.end_date))},dependencies:[ye,Ft,Ue,We,He,de],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 _a=3e4,kr=function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t}(kr||{}),an=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 oi().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 io(this.api.http.get(n,{headers:this.headers,observe:"response"}),_a).then(r=>({items:r.body??[],headers:r.headers})).catch(r=>e?{items:[],headers:new oi}:(this.handleError(r),{items:[],headers:new oi}))}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 io(this.api.http.post(this.getPath(this.paths.test,i),e,{headers:this.headers}).pipe(On(n=>this.handleError(n))),_a)}delete(i){return io(this.api.http.delete(this.getPath(this.paths.delete,i),{headers:this.headers}).pipe(On(e=>this.handleError(e))),_a)}permision(){return this.api.user.isAdmin?kr.ALL:kr.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 io(this.api.http.put(r,a,{headers:this.headers}).pipe(On(s=>this.handleError(s))),_a)}revokePermission(i){let e=this.getPath("permissions/revoke"),n={items:i};return io(this.api.http.put(e,n,{headers:this.headers}).pipe(On(o=>this.handleError(o))),_a)}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 wC(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 io(this.api.http.get(i,{headers:this.headers}).pipe(On(e=>this.handleError(e))),_a)}typedGet(i){return this.doGet(this.getPath(this.paths.get,i))}typedPut(i,e){return io(this.api.http.put(this.getPath(this.paths.put,e),i,{headers:this.headers}).pipe(On(n=>this.handleError(n,!0))),_a)}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),No(()=>new Error(n))}},wC=class extends an{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||kr.ALL}},Ef=class extends an{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")}},Mf=class extends an{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)}},Tf=class extends an{constructor(i){super(i,"osmanagers"),this.api=i}},If=class extends an{constructor(i){super(i,"transports"),this.api=i}},kf=class extends an{constructor(i){super(i,"networks"),this.api=i}},Af=class extends an{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)}},Rf=class extends an{constructor(i){super(i,"servers/groups"),this.api=i}maintenance(i){return this.get(i+"/maintenance")}},Of=class extends an{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))}},Pf=class extends an{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")}},Ff=class extends an{constructor(i){super(i,"config"),this.api=i}},Nf=class extends an{constructor(i){super(i,"gallery/images"),this.api=i}},Lf=class extends an{constructor(i){super(i,"gallery/servicespoolgroups"),this.api=i}},Vf=class extends an{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"))}},Bf=class extends an{constructor(i){super(i,"reports"),this.api=i}types(){return io(se([]))}},jf=class extends an{constructor(i){super(i,"dashboard"),this.api=i}data(i,e=!1){return this.get("data?days="+i+(e?"&flush=1":""))}},zf=class extends an{constructor(i){super(i,"calendars"),this.api=i}},Uf=class extends an{constructor(i){super(i,"accounts"),this.api=i}timemark(i){return this.get(i+"/timemark")}},Hf=class extends an{constructor(i){super(i,"actortokens"),this.api=i}},Wf=class extends an{constructor(i){super(i,"servers/tokens"),this.api=i}},Gf=class extends an{constructor(i){super(i,"mfa"),this.api=i}},$f=class extends an{constructor(i){super(i,"messaging/notifiers"),this.api=i}},qf=class extends an{constructor(i){super(i,"enterprise/license"),this.api=i}licenseInfo(){return io(this.api.http.get(this.getPath(this.paths.base),{headers:this.headers}),_a).catch(()=>null)}};var te=(()=>{class t{constructor(e){this.api=e,this.providers=new Ef(e),this.serverGroups=new Rf(e),this.authenticators=new Mf(e),this.mfas=new Gf(e),this.osManagers=new Tf(e),this.transports=new If(e),this.networks=new kf(e),this.tunnels=new Af(e),this.servicesPools=new Of(e),this.metaPools=new Pf(e),this.gallery=new Nf(e),this.servicesPoolGroups=new Lf(e),this.calendars=new zf(e),this.accounts=new Uf(e),this.system=new Vf(e),this.configuration=new Ff(e),this.actorToken=new Hf(e),this.serversTokens=new Wf(e),this.reports=new Bf(e),this.dashboard=new jf(e),this.enterprise=new qf(e),this.notifiers=new $f(e)}static{this.\u0275fac=function(n){return new(n||t)(le(j))}}static{this.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var f8=["determinateSpinner"];function g8(t,i){if(t&1&&(on(),l(0,"svg",11),I(1,"circle",12),d()),t&2){let e=g();ne("viewBox",e._viewBox()),u(),Vn("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),ne("r",e._circleRadius())}}var _8=new R("mat-progress-spinner-default-options",{providedIn:"root",factory:v8});function v8(){return{diameter:Nk}}var Nk=100,b8=10,Jl=(()=>{class t{_elementRef=p(Z);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=p(tt,{optional:!0}),n=p(_8);this._noopAnimations=e==="NoopAnimations"&&!!n&&!n._forceAnimations,this.mode=this._elementRef.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",n&&(n.color&&(this.color=this._defaultColor=n.color),n.diameter&&(this.diameter=n.diameter),n.strokeWidth&&(this.strokeWidth=n.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=Nk;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-b8)/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=S({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&me(f8,5),n&2){let r;q(r=Y())&&(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&&(ne("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Bt("mat-"+o.color),Vn("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),X("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",Zt],diameter:[2,"diameter","diameter",Zt],strokeWidth:[2,"strokeWidth","strokeWidth",Zt]},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&&(E(0,g8,2,8,"ng-template",null,0,Qa),l(2,"div",2,1),on(),l(4,"svg",3),I(5,"circle",4),d()(),vr(),l(6,"div",5)(7,"div",6)(8,"div",7),Mn(9,8),d(),l(10,"div",9),Mn(11,8),d(),l(12,"div",10),Mn(13,8),d()()()),n&2){let r=Ye(1);u(4),ne("viewBox",o._viewBox()),u(),Vn("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),ne("r",o._circleRadius()),u(4),_("ngTemplateOutlet",r),u(2),_("ngTemplateOutlet",r),u(2),_("ngTemplateOutlet",r)}},dependencies:[Xc],styles:[`.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}} +`],encapsulation:2,changeDetection:0})}return t})();var Yf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[fe]})}return t})();var DC=class{constructor(){this.subject=new $i(1),this.subscriptions=new be}doFilter(i){this.subject.next(i)}dispose(){this.subscriptions.unsubscribe()}notEmpty(i,e){this.subscriptions.add(this.subject.subscribe(n=>{if(n[i]){let o=n[i].currentValue;o!=null&&e(o)}}))}has(i,e){this.subscriptions.add(this.subject.subscribe(n=>{if(n[i]){let o=n[i].currentValue;e(o)}}))}notFirst(i,e){this.subscriptions.add(this.subject.subscribe(n=>{if(n[i]&&!n[i].isFirstChange()){let o=n[i].currentValue;e(o)}}))}notFirstAndEmpty(i,e){this.subscriptions.add(this.subject.subscribe(n=>{if(n[i]&&!n[i].isFirstChange()){let o=n[i].currentValue;o!=null&&e(o)}}))}},Lk=new R("NGX_ECHARTS_CONFIG"),Qf=(()=>{class t{constructor(e,n,o){this.el=n,this.ngZone=o,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new k,this.optionsError=new k,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new $i(1),this.resize$=new z,this.changeFilter=new DC,this.resizeObFired=!1,this.echarts=e.echarts,this.theme=e.theme||null}ngOnChanges(e){this.changeFilter.doFilter(e)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe($_(100,Wn,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(e=>{for(let n of e)n.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",e=>this.onOptionsChange(e)),this.changeFilter.notFirstAndEmpty("merge",e=>this.setOption(e)),this.changeFilter.has("loading",e=>this.toggleLoading(!!e)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(e){this.chart?e?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(n=>e?n.showLoading(this.loadingType,this.loadingOpts):n.hideLoading())}setOption(e,n){if(this.chart)try{this.chart.setOption(e,n)}catch(o){console.error(o),this.optionsError.emit(o)}}refreshChart(){return N(this,null,function*(){this.dispose(),yield this.initChart()})}createChart(){let e=this.el.nativeElement;if(window&&window.getComputedStyle){let n=window.getComputedStyle(e,null).getPropertyValue("height");(!n||n==="0px")&&(!e.style.height||e.style.height==="0px")&&(e.style.height="400px")}return this.ngZone.runOutsideAngular(()=>(typeof this.echarts=="function"?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:o})=>o(e,this.theme,this.initOpts)))}initChart(){return N(this,null,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(e){return N(this,null,function*(){e&&(this.chart?this.setOption(this.options,!0):(this.chart=yield this.createChart(),this.chart$.next(this.chart),this.chartInit.emit(this.chart),this.setOption(this.options,!0)))})}createLazyEvent(e){return this.chartInit.pipe(Dt(n=>new Fe(o=>(n.on(e,r=>this.ngZone.run(()=>o.next(r))),()=>{this.chart&&(this.chart.isDisposed()||n.off(e))}))))}static{this.\u0275fac=function(n){return new(n||t)(y(Lk),y(Z),y(ie))}}static{this.\u0275dir=B({type:t,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[je]})}}return t})();var y8=t=>({provide:Lk,useValue:t}),Vk=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[y8(e)]}}static forChild(){return{ngModule:t}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ee({type:t})}static{this.\u0275inj=J({})}}return t})();var C8=(t,i)=>i.value,w8=(t,i)=>i.user;function x8(t,i){if(t&1){let e=A();l(0,"button",12),b("click",function(){let o=C(e).$implicit,r=g();return w(r.changePeriod(o.value))}),h(1),d()}if(t&2){let e=i.$implicit,n=g();X("active",e.value===n.days),u(),F(" ",e.label," ")}}function D8(t,i){if(t&1&&(l(0,"div",5)(1,"uds-translate"),h(2,"Updated"),d(),h(3),d()),t&2){let e=g();u(3),F(": ",e.renderTimestamp(e.data.generated)," ")}}function S8(t,i){if(t&1&&(l(0,"span",14),h(1,"!"),d(),l(2,"span")(3,"uds-translate"),h(4,"License expired"),d(),h(5),d()),t&2){let e=g(2);u(5),F(": ",e.license.end_date,"")}}function E8(t,i){if(t&1&&(l(0,"span",14),h(1,"!"),d(),l(2,"span")(3,"uds-translate"),h(4,"License expires in"),d(),h(5),l(6,"uds-translate"),h(7,"days"),d(),h(8),d()),t&2){let e=g(2);u(5),F(" ",e.licenseDaysRemaining," "),u(3),F(" (",e.license.end_date,")")}}function M8(t,i){if(t&1&&(l(0,"span")(1,"uds-translate"),h(2,"License valid until"),d(),h(3),d()),t&2){let e=g(2);u(3),F(" ",e.license.end_date,"")}}function T8(t,i){if(t&1){let e=A();l(0,"div",13),b("click",function(){C(e);let o=g();return w(o.showLicenseDetails())})("keydown.enter",function(){C(e);let o=g();return w(o.showLicenseDetails())})("keydown.space",function(){C(e);let o=g();return w(o.showLicenseDetails())}),E(1,S8,6,1)(2,E8,9,2)(3,M8,4,1,"span"),d()}if(t&2){let e=g();X("license-expired",e.licenseExpired)("license-expiring",e.licenseExpiringSoon),u(),T(e.licenseExpired?1:e.licenseExpiringSoon?2:3)}}function I8(t,i){t&1&&(l(0,"div",9)(1,"span")(2,"uds-translate"),h(3,"No license"),d()()())}function k8(t,i){if(t&1&&(l(0,"div",10),h(1),d()),t&2){let e=g();u(),wi(" ",e.renderTimestamp(e.data.since)," \u2014 ",e.renderTimestamp(e.data.until)," ")}}function A8(t,i){t&1&&(l(0,"div",11),I(1,"mat-progress-spinner",15),l(2,"span")(3,"uds-translate"),h(4,"Loading dashboard data..."),d()()())}function R8(t,i){if(t&1&&(l(0,"div",16)(1,"div",35)(2,"div",36),h(3),d(),l(4,"div",37)(5,"uds-translate"),h(6,"Users"),d()()(),l(7,"div",35)(8,"div",36),h(9),d(),l(10,"div",37)(11,"uds-translate"),h(12,"Groups"),d()()(),l(13,"div",35)(14,"div",36),h(15),d(),l(16,"div",37)(17,"uds-translate"),h(18,"Service pools"),d()()(),l(19,"div",35)(20,"div",36),h(21),d(),l(22,"div",37)(23,"uds-translate"),h(24,"User services"),d()()(),l(25,"div",35)(26,"div",36),h(27),d(),l(28,"div",37)(29,"uds-translate"),h(30,"Assigned services"),d()()(),l(31,"div",35)(32,"div",36),h(33),d(),l(34,"div",37)(35,"uds-translate"),h(36,"Users with services"),d()()(),l(37,"div",35)(38,"div",36),h(39),d(),l(40,"div",37)(41,"uds-translate"),h(42,"Authenticators"),d()()(),l(43,"div",35)(44,"div",36),h(45),d(),l(46,"div",37)(47,"uds-translate"),h(48,"Restrained pools"),d()()()()),t&2){let e=g(2);u(3),ae(e.data.kpis.users),u(6),ae(e.data.kpis.groups),u(6),ae(e.data.kpis.service_pools),u(6),ae(e.data.kpis.user_services),u(6),ae(e.data.kpis.assigned_user_services),u(6),ae(e.data.kpis.users_with_services),u(6),ae(e.data.kpis.authenticators),u(4),X("kpi-danger",e.data.kpis.restrained_service_pools>0),u(2),ae(e.data.kpis.restrained_service_pools)}}function O8(t,i){if(t&1){let e=A();l(0,"div",24),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("peak",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.peak.opts)}}function P8(t,i){if(t&1&&(l(0,"div",21),h(1),d()),t&2){let e=g(2);u(),ae(e.emptyText(e.data.peak_concurrency))}}function F8(t,i){if(t&1){let e=A();l(0,"div",24),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("saturation",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.saturation.opts)}}function N8(t,i){if(t&1&&(l(0,"div",21),h(1),d()),t&2){let e=g(2);u(),ae(e.emptyText(e.data.pool_saturation))}}function L8(t,i){if(t&1){let e=A();l(0,"div",24),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("cache",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.cache.opts)}}function V8(t,i){if(t&1&&(l(0,"div",21),h(1),d()),t&2){let e=g(2);u(),ae(e.emptyText(e.data.cache_efficiency))}}function B8(t,i){if(t&1){let e=A();l(0,"div",24),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("tunnel",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.tunnel.opts)}}function j8(t,i){if(t&1&&(l(0,"div",21),h(1),d()),t&2){let e=g(2);u(),ae(e.emptyText(e.data.tunnel_usage))}}function z8(t,i){if(t&1){let e=A();l(0,"div",24),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("platforms",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.platforms.opts)}}function U8(t,i){if(t&1&&(l(0,"div",21),h(1),d()),t&2){let e=g(2);u(),ae(e.emptyText(e.data.client_platforms))}}function H8(t,i){if(t&1){let e=A();l(0,"div",24),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("browsers",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.browsers.opts)}}function W8(t,i){if(t&1&&(l(0,"div",21),h(1),d()),t&2){let e=g(2);u(),ae(e.emptyText(e.data.client_platforms))}}function G8(t,i){if(t&1){let e=A();l(0,"div",24),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("sessions",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.sessions.opts)}}function $8(t,i){if(t&1&&(l(0,"div",21),h(1),d()),t&2){let e=g(2);u(),ae(e.emptyText(e.data.session_duration))}}function q8(t,i){if(t&1){let e=A();l(0,"div",24),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("errors",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.errors.opts)}}function Y8(t,i){if(t&1&&(l(0,"div",21),h(1),d()),t&2){let e=g(2);u(),ae(e.emptyText(e.data.userservice_errors))}}function Q8(t,i){if(t&1){let e=A();l(0,"div",24),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("failedLogins",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.failedLogins.opts)}}function K8(t,i){if(t&1&&(l(0,"div",21),h(1),d()),t&2){let e=g(2);u(),ae(e.emptyText(e.data.failed_logins))}}function Z8(t,i){if(t&1){let e=A();l(0,"div",24),b("chartInit",function(o){C(e);let r=g(2);return w(r.chartInit("topUsers",o))}),d()}if(t&2){let e=g(2);_("options",e.charts.topUsers.opts)}}function X8(t,i){if(t&1&&(l(0,"div",21),h(1),d()),t&2){let e=g(2);u(),ae(e.emptyText(e.data.top_users))}}function J8(t,i){if(t&1&&(l(0,"tr")(1,"td"),h(2),d(),l(3,"td"),h(4),d(),l(5,"td"),h(6),d(),l(7,"td"),h(8),d(),l(9,"td"),h(10),d()()),t&2){let e=i.$implicit;u(2),ae(e.user||"-"),u(2),ae(e.sessions),u(2),ae(e.pools),u(2),ae(e.hours),u(2),ae(e.average)}}function e6(t,i){if(t&1&&(l(0,"div",25)(1,"div",19)(2,"uds-translate"),h(3,"Top users detail"),d()(),l(4,"table",38)(5,"thead")(6,"tr")(7,"th")(8,"uds-translate"),h(9,"User"),d()(),l(10,"th")(11,"uds-translate"),h(12,"Sessions"),d()(),l(13,"th")(14,"uds-translate"),h(15,"Pools used"),d()(),l(16,"th")(17,"uds-translate"),h(18,"Hours"),d()(),l(19,"th")(20,"uds-translate"),h(21,"Avg hours/session"),d()()()(),l(22,"tbody"),oe(23,J8,11,5,"tr",null,w8),d()()()),t&2){let e=g(2);u(23),re(e.data.top_users)}}function t6(t,i){if(t&1&&(l(0,"div",34)(1,"div",28),I(2,"img",29),l(3,"div",30)(4,"ul")(5,"li"),h(6),l(7,"uds-translate"),h(8,"restrained services"),d()()()()(),l(9,"div",31)(10,"a",33)(11,"uds-translate"),h(12,"View service pools"),d()()()()),t&2){let e=g(2);u(2),_("src",e.api.staticURL("admin/img/icons/logs.png"),Ee),u(4),F("",e.info.restrained_services_pools," ")}}function n6(t,i){if(t&1){let e=A();E(0,R8,49,10,"div",16),l(1,"div",17)(2,"div",18)(3,"div",19)(4,"uds-translate"),h(5,"Peak concurrent sessions per pool"),d()(),E(6,O8,1,1,"div",20)(7,P8,2,1,"div",21),d(),l(8,"div",18)(9,"div",19)(10,"uds-translate"),h(11,"Pool saturation (% of capacity)"),d()(),E(12,F8,1,1,"div",20)(13,N8,2,1,"div",21),d(),l(14,"div",18)(15,"div",19)(16,"uds-translate"),h(17,"Cache hits / misses per pool"),d()(),E(18,L8,1,1,"div",20)(19,V8,2,1,"div",21),d(),l(20,"div",18)(21,"div",19)(22,"uds-translate"),h(23,"Tunnel sessions per pool"),d()(),E(24,B8,1,1,"div",20)(25,j8,2,1,"div",21),d(),l(26,"div",18)(27,"div",19)(28,"uds-translate"),h(29,"Client platforms"),d()(),E(30,z8,1,1,"div",20)(31,U8,2,1,"div",21),d(),l(32,"div",18)(33,"div",19)(34,"uds-translate"),h(35,"Client browsers"),d()(),E(36,H8,1,1,"div",20)(37,W8,2,1,"div",21),d(),l(38,"div",18)(39,"div",19)(40,"uds-translate"),h(41,"Session duration distribution"),d()(),E(42,G8,1,1,"div",20)(43,$8,2,1,"div",21),d(),l(44,"div",18)(45,"div",19)(46,"uds-translate"),h(47,"User services in error per pool"),d()(),E(48,q8,1,1,"div",20)(49,Y8,2,1,"div",21),d(),l(50,"div",18)(51,"div",19)(52,"uds-translate"),h(53,"Failed logins per user"),d()(),E(54,Q8,1,1,"div",20)(55,K8,2,1,"div",21),d(),l(56,"div",22)(57,"div",19)(58,"uds-translate"),h(59,"Top users by session time"),d()(),E(60,Z8,1,1,"div",20)(61,X8,2,1,"div",21),d(),l(62,"div",23)(63,"div",18)(64,"div",19)(65,"uds-translate"),h(66,"Assigned services chart"),d()(),l(67,"div",24),b("chartInit",function(o){C(e);let r=g();return w(r.chartInit("assigned",o))}),d()(),l(68,"div",18)(69,"div",19)(70,"uds-translate"),h(71,"In use services chart"),d()(),l(72,"div",24),b("chartInit",function(o){C(e);let r=g();return w(r.chartInit("inuse",o))}),d()()()(),E(73,e6,25,0,"div",25),l(74,"div",26)(75,"div",27)(76,"div",28),I(77,"img",29),l(78,"div",30)(79,"ul")(80,"li"),h(81),l(82,"uds-translate"),h(83,"total users"),d()(),l(84,"li"),h(85),l(86,"uds-translate"),h(87,"total groups"),d()(),l(88,"li"),h(89),l(90,"uds-translate"),h(91,"with services"),d()()()()(),l(92,"div",31)(93,"a",32)(94,"uds-translate"),h(95,"View authenticators"),d()()()(),l(96,"div",27)(97,"div",28),I(98,"img",29),l(99,"div",30)(100,"ul")(101,"li"),h(102),l(103,"uds-translate"),h(104,"total pools"),d()()()()(),l(105,"div",31)(106,"a",33)(107,"uds-translate"),h(108,"View service pools"),d()()()(),l(109,"div",27)(110,"div",28),I(111,"img",29),l(112,"div",30)(113,"ul")(114,"li"),h(115),l(116,"uds-translate"),h(117,"total services"),d()(),l(118,"li"),h(119),l(120,"uds-translate"),h(121,"assigned"),d()()()()(),l(122,"div",31)(123,"a",33)(124,"uds-translate"),h(125,"View service pools"),d()()()(),E(126,t6,13,2,"div",34),d()}if(t&2){let e=g();T(e.data.kpis?0:-1),u(6),T(e.hasData(e.data.peak_concurrency)?6:7),u(6),T(e.hasData(e.data.pool_saturation)?12:13),u(6),T(e.hasData(e.data.cache_efficiency)?18:19),u(6),T(e.hasData(e.data.tunnel_usage)?24:25),u(6),T(e.data.client_platforms&&e.hasData(e.data.client_platforms.platforms)?30:31),u(6),T(e.data.client_platforms&&e.hasData(e.data.client_platforms.browsers)?36:37),u(6),T(e.data.session_duration&&e.hasData(e.data.session_duration.buckets)?42:43),u(6),T(e.hasData(e.data.userservice_errors)?48:49),u(6),T(e.hasData(e.data.failed_logins)?54:55),u(6),T(e.hasData(e.data.top_users)?60:61),u(7),_("options",e.charts.assigned.opts),u(5),_("options",e.charts.inuse.opts),u(),T(e.hasData(e.data.top_users)?73:-1),u(4),_("src",e.api.staticURL("admin/img/icons/authenticators.png"),Ee),u(4),F("",e.info.users," "),u(4),F("",e.info.groups," "),u(4),F("",e.info.users_with_services," "),u(9),_("src",e.api.staticURL("admin/img/icons/pools.png"),Ee),u(4),F("",e.info.service_pools," "),u(9),_("src",e.api.staticURL("admin/img/icons/services.png"),Ee),u(4),F("",e.info.user_services," "),u(4),F("",e.info.assigned_user_services," "),u(7),T(e.info.restrained_services_pools>0?126:-1)}}var Kf=null,jk=(()=>{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:{opts:{},instance:null},saturation:{opts:{},instance:null},cache:{opts:{},instance:null},tunnel:{opts:{},instance:null},platforms:{opts:{},instance:null},browsers:{opts:{},instance:null},topUsers:{opts:{},instance:null},sessions:{opts:{},instance:null},errors:{opts:{},instance:null},failedLogins:{opts:{},instance:null},assigned:{opts:{},instance:null},inuse:{opts:{},instance:null}}}onResize(){for(let e of Object.keys(this.charts))this.charts[e].instance?.resize()}ngOnInit(){return N(this,null,function*(){yield this.loadEnterpriseInfo(),yield this.loadOverview(),yield this.load()})}loadEnterpriseInfo(){return N(this,null,function*(){Kf===null&&(Kf=(yield this.rest.enterprise.licenseInfo())??!1)})}loadOverview(){return N(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].opts=this.lineChart(e,n||[])}})}chartInit(e,n){this.charts[e].instance=n}changePeriod(e){e!==this.days&&(this.days=e,this.load())}refresh(){return N(this,null,function*(){this.loading||(this.loading=!0,yield this.loadOverview(),yield this.load(!0))})}load(e=!1){return N(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?Un("SHORT_DATETIME_FORMAT",e):"-"}get license(){return Kf||null}get hasLicense(){return this.license!==null&&!!this.license?.end_date}get licenseChecked(){return Kf!==null}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(Fk,{width:n,position:{top:"5rem"},data:e,disableClose:!1})}showLicenseDetails(){this.hasLicense&&this._openLicenseDialog(this.license)}get textColor(){return this.api.isDarkTheme?"#e2e8f0":"#475569"}get splitLineColor(){return this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)"}get tooltipBase(){return{backgroundColor:this.api.isDarkTheme?"#1e293b":"#ffffff",borderColor:this.api.isDarkTheme?"#334155":"#e2e8f0",textStyle:{color:this.textColor}}}static{this.MAX_VISIBLE_BARS=12}sliderStyle(e){return V({type:"slider",backgroundColor:"transparent",borderColor:this.splitLineColor,fillerColor:this.api.isDarkTheme?"rgba(59, 130, 246, 0.25)":"rgba(37, 99, 235, 0.18)",handleStyle:{color:"#3b82f6",borderColor:"#3b82f6"},moveHandleStyle:{color:"#3b82f6"},textStyle:{color:this.textColor},dataBackground:{lineStyle:{color:this.splitLineColor},areaStyle:{color:"transparent"}}},e)}barChart(e,n,o=!1){let r=e.length,a=r>t.MAX_VISIBLE_BARS,s={type:"category",data:e,axisLabel:{color:this.textColor,hideOverlap:!0,rotate:!o&&a?25:0},axisLine:{lineStyle:{color:this.splitLineColor}}},c={type:"value",axisLabel:{color:this.textColor},splitLine:{lineStyle:{color:this.splitLineColor}}},m={left:"3%",right:"4%",bottom:"3%",top:16,containLabel:!0},f;if(a){let v=o?"yAxisIndex":"xAxisIndex",D=t.MAX_VISIBLE_BARS/r*100,x=o?100-D:0,M=o?100:D;f=[{type:"inside",[v]:0,start:x,end:M,zoomOnMouseWheel:!1,moveOnMouseWheel:!1,moveOnMouseMove:!0},this.sliderStyle(o?{[v]:0,start:x,end:M,right:6,width:14}:{[v]:0,start:x,end:M,bottom:6,height:16})],m=o?{left:"3%",right:46,top:16,bottom:"3%",containLabel:!0}:{left:"3%",right:"4%",top:16,bottom:44,containLabel:!0}}return{backgroundColor:"transparent",tooltip:V({trigger:"axis",axisPointer:{type:"shadow"}},this.tooltipBase),legend:n.length>1?{textStyle:{color:this.textColor}}:void 0,grid:m,dataZoom:f,xAxis:o?c:s,yAxis:o?s:c,series:n.map(v=>({name:v.name,type:"bar",stack:v.stack,data:v.data,emphasis:{focus:"series"},itemStyle:{color:v.color,borderRadius:o?[0,4,4,0]:[4,4,0,0]}}))}}pieChart(e){return{backgroundColor:"transparent",tooltip:V({trigger:"item"},this.tooltipBase),legend:{type:"scroll",bottom:0,textStyle:{color:this.textColor}},series:[{type:"pie",radius:["40%","68%"],center:["50%","45%"],avoidLabelOverlap:!0,itemStyle:{borderColor:this.api.isDarkTheme?"#0f172a":"#ffffff",borderWidth:2},label:{color:this.textColor},emphasis:{focus:"self",scale:!0},data: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{backgroundColor:"transparent",tooltip:V({trigger:"axis"},this.tooltipBase),grid:{left:"3%",right:"4%",top:16,bottom:44,containLabel:!0},dataZoom:[{type:"inside",xAxisIndex:0},this.sliderStyle({xAxisIndex:0,bottom:6,height:16})],xAxis:{type:"category",data:n.map(a=>Un("SHORT_DATE_FORMAT",new Date(a.stamp))),boundaryGap:!1,axisLabel:{color:this.textColor},axisLine:{lineStyle:{color:this.splitLineColor}}},yAxis:{type:"value",axisLabel:{color:this.textColor},splitLine:{lineStyle:{color:this.splitLineColor}}},series:[{name:e==="assigned"?django.gettext("Assigned services"):django.gettext("Services in use"),type:"line",smooth:!0,areaStyle:{color:r},lineStyle:{width:3,color:o},itemStyle:{color:o},data:n.map(a=>a.value)}]}}buildCharts(){return N(this,null,function*(){let e=this.data;if(Array.isArray(e.peak_concurrency)){let r=e.peak_concurrency;this.charts.peak.opts=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.opts=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.opts=this.barChart(r.map(a=>a.pool),[{name:django.gettext("Hits"),data:r.map(a=>a.hits),color:"#10b981",stack:"cache"},{name:django.gettext("Misses"),data:r.map(a=>a.misses),color:"#ef4444",stack:"cache"}])}if(Array.isArray(e.tunnel_usage)){let r=e.tunnel_usage;this.charts.tunnel.opts=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.opts=this.pieChart(n.platforms.map(r=>({name:r.name,value:r.count}))),this.charts.browsers.opts=this.pieChart((n.browsers||[]).map(r=>({name:r.name,value:r.count})))),Array.isArray(e.top_users)){let r=[...e.top_users].reverse();this.charts.topUsers.opts=this.barChart(r.map(a=>a.user||"-"),[{name:django.gettext("Hours"),data:r.map(a=>Number(a.hours||0)),color:"#0ea5e9"}],!0)}let o=e.session_duration;if(o&&Array.isArray(o.buckets)&&(this.charts.sessions.opts=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.opts=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.opts=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)(y(j),y(te))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-dashboard"]],hostBindings:function(n,o){n&1&&b("resize",function(){return o.onResize()},!1,ul)},standalone:!1,decls:15,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,"license-badge","license-none"],[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"],["echarts","",1,"chart-body",3,"options"],[1,"chart-empty"],[1,"chart-card","chart-card-wide"],[1,"legacy-charts"],["echarts","",1,"chart-body",3,"chartInit","options"],[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&&(l(0,"div",0)(1,"div",1)(2,"div",2),oe(3,x8,2,3,"button",3,C8),d(),l(5,"div",4),E(6,D8,4,1,"div",5),l(7,"button",6),b("click",function(){return o.refresh()}),l(8,"i",7),h(9,"autorenew"),d()(),E(10,T8,4,5,"div",8)(11,I8,4,0,"div",9)(12,k8,2,2,"div",10),d()(),E(13,A8,5,0,"div",11)(14,n6,127,24),d()),n&2&&(u(3),re(o.periods),u(3),T(o.data.generated?6:-1),u(),_("disabled",o.loading),u(),X("spinning",o.loading),u(2),T(o.hasLicense?10:o.licenseChecked?11:-1),u(2),T(o.data.since&&o.data.until?12:-1),u(),T(o.loading?13:14))},dependencies:[cn,ua,ye,wn,Jl,Qf,de],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}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 var(--glass-border);border-radius:999px;color:var(--text-secondary)}.period-button.active[_ngcontent-%COMP%]{background:var(--bg-button);color:#fff}.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-badge.license-none[_ngcontent-%COMP%]{background:#94a3b81f;border-color:#94a3b859;color:var(--text-secondary);cursor:default}.license-badge.license-none[_ngcontent-%COMP%]:hover{background:#94a3b81f}.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 o6(t,i){t&1&&I(0,"uds-dashboard")}function r6(t,i){t&1&&(l(0,"div",2)(1,"div",3)(2,"div",4)(3,"uds-translate"),h(4,"UDS Administration"),d()(),l(5,"div",5)(6,"p")(7,"uds-translate"),h(8,"You are accessing UDS Administration as staff member."),d()(),l(9,"p")(10,"uds-translate"),h(11,"This means that you have restricted access to elements."),d()(),l(12,"p")(13,"uds-translate"),h(14,"In order to increase your access privileges, please contact your local UDS administrator. "),d()(),I(15,"br"),l(16,"p")(17,"uds-translate"),h(18,"Thank you."),d()()()()())}var zk=(()=>{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)(y(j),y(ga))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"div",1),E(2,o6,1,0,"uds-dashboard")(3,r6,19,0,"div",2),d()()),n&2&&(u(2),T(o.api.user.isAdmin?2:3))},dependencies:[de,jk],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}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{applyChanges(i,e,n,o,r){i.forEachOperation((a,s,c)=>{let m,f;if(a.previousIndex==null){let v=n(a,s,c);m=e.createEmbeddedView(v.templateRef,v.context,v.index),f=sa.INSERTED}else c==null?(e.remove(s),f=sa.REMOVED):(m=e.get(s),e.move(m,c),f=sa.MOVED);r&&r({context:m?.context,operation:f,record:a})})}detach(){}};var or=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;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 a6=["notch"],s6=["matFormFieldNotchedOutline",""],l6=["*"],c6=["textField"],d6=["iconPrefixContainer"],u6=["textPrefixContainer"],m6=["iconSuffixContainer"],p6=["textSuffixContainer"],h6=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],f6=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function g6(t,i){t&1&&I(0,"span",20)}function _6(t,i){if(t&1&&(l(0,"label",19),ue(1,1),E(2,g6,1,0,"span",20),d()),t&2){let e=g(2);_("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),ne("for",e._control.disableAutomaticLabeling?null:e._control.id),u(2),T(!e.hideRequiredMarker&&e._control.required?2:-1)}}function v6(t,i){if(t&1&&E(0,_6,3,5,"label",19),t&2){let e=g();T(e._hasFloatingLabel()?0:-1)}}function b6(t,i){t&1&&I(0,"div",7)}function y6(t,i){}function C6(t,i){if(t&1&&E(0,y6,0,0,"ng-template",13),t&2){g(2);let e=Ye(1);_("ngTemplateOutlet",e)}}function w6(t,i){if(t&1&&(l(0,"div",9),E(1,C6,1,1,null,13),d()),t&2){let e=g();_("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),u(),T(e._forceDisplayInfixLabel()?-1:1)}}function x6(t,i){t&1&&(l(0,"div",10,2),ue(2,2),d())}function D6(t,i){t&1&&(l(0,"div",11,3),ue(2,3),d())}function S6(t,i){}function E6(t,i){if(t&1&&E(0,S6,0,0,"ng-template",13),t&2){g();let e=Ye(1);_("ngTemplateOutlet",e)}}function M6(t,i){t&1&&(l(0,"div",14,4),ue(2,4),d())}function T6(t,i){t&1&&(l(0,"div",15,5),ue(2,5),d())}function I6(t,i){t&1&&I(0,"div",16)}function k6(t,i){t&1&&ue(0,6)}function A6(t,i){if(t&1&&(l(0,"mat-hint",21),h(1),d()),t&2){let e=g(2);_("id",e._hintLabelId),u(),ae(e.hintLabel)}}function R6(t,i){if(t&1&&(E(0,A6,2,2,"mat-hint",21),ue(1,7),I(2,"div",22),ue(3,8)),t&2){let e=g();T(e.hintLabel?0:-1)}}var Ae=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["mat-label"]]})}return t})(),Qk=new R("MatError");var SC=(()=>{class t{align="start";id=p(ut).getId("mat-mdc-hint-");static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({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&&(bn("id",o.id),ne("align",null),X("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),Kk=new R("MatPrefix");var EC=new R("MatSuffix"),Ui=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[we([{provide:EC,useExisting:t}])]})}return t})(),Zk=new R("FloatingLabelParent"),Hk=(()=>{class t{_elementRef=p(Z);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(gf);_ngZone=p(ie);_parent=p(Zk);_resizeSubscription=new be;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return O6(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=B({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&X("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function O6(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 Wk="mdc-line-ripple--active",Zf="mdc-line-ripple--deactivating",Gk=(()=>{class t{_elementRef=p(Z);_cleanupTransitionEnd;constructor(){let e=p(ie),n=p(kt);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Zf),e.add(Wk)}deactivate(){this._elementRef.nativeElement.classList.add(Zf)}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,o=n.contains(Zf);e.propertyName==="opacity"&&o&&n.remove(Wk,Zf)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),$k=(()=>{class t{_elementRef=p(Z);_ngZone=p(ie);open=!1;_notch;constructor(){}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&me(a6,5),n&2){let r;q(r=Y())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&X("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:s6,ngContentSelectors:l6,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&&(Le(),I(0,"div",1),l(1,"div",2,0),ue(3),d(),I(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),Ar=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t})}return t})();var so=new R("MatFormField"),Xf=new R("MAT_FORM_FIELD_DEFAULT_OPTIONS"),qk="fill",P6="auto",Yk="fixed",F6="translateY(-50%)",ge=(()=>{class t{_elementRef=p(Z);_changeDetectorRef=p(De);_dir=p(Pt);_platform=p(et);_idGenerator=p(ut);_ngZone=p(ie);_injector=p(Ie);_defaults=p(Xf,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=dM(Ae);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Vi(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||P6}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearance}set appearance(e){let n=this._appearance,o=e||this._defaults?.appearance||qk;this._appearance=o,this._appearance==="outline"&&this._appearance!==n&&(this._needsOutlineLabelOffsetUpdate=!0)}_appearance=qk;get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||Yk}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||Yk}_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-");get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new z;_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_animationsDisabled;constructor(){let e=this._defaults;e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),this._animationsDisabled=p(tt,{optional:!0})==="NoopAnimations"}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(),this._initializeOutlineLabelOffsetSubscriptions()}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._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=Qo(()=>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(xt([void 0,void 0]),pe(()=>[n.errorState,n.userAriaDescribedBy]),mm(),Ke(([[r,a],[s,c]])=>r!==s||a!==c)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(Te(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(),_t(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),Ya(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(Te(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=Qo(()=>!!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 n=this._hintChildren?this._hintChildren.find(r=>r.align==="start"):null,o=this._hintChildren?this._hintChildren.find(r=>r.align==="end"):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let n=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,r=this._iconSuffixContainer?.nativeElement,a=this._textSuffixContainer?.nativeElement,s=n?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,m=r?.getBoundingClientRect().width??0,f=a?.getBoundingClientRect().width??0,v=this._dir.value==="rtl"?"-1":"1",D=`${s+c}px`,M=`calc(${v} * (${D} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var( --mat-mdc-form-field-label-transform, - ${x6} translateX(${M}) - )`;let O=s+c+m+f;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${O}px)`)}_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=S({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,o,r){if(n&1&&(AM(r,o._labelChild,Ae,5),je(r,Ar,5),je(r,qk,5),je(r,DC,5),je(r,$k,5),je(r,xC,5)),n&2){RM();let a;q(a=Y())&&(o._formFieldControl=a.first),q(a=Y())&&(o._prefixChildren=a),q(a=Y())&&(o._suffixChildren=a),q(a=Y())&&(o._errorChildren=a),q(a=Y())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&(me(Z8,5),me(X8,5),me(J8,5),me(e6,5),me(t6,5),me(jk,5),me(Hk,5),me(Uk,5)),n&2){let r;q(r=Y())&&(o._textField=r.first),q(r=Y())&&(o._iconPrefixContainer=r.first),q(r=Y())&&(o._textPrefixContainer=r.first),q(r=Y())&&(o._iconSuffixContainer=r.first),q(r=Y())&&(o._textSuffixContainer=r.first),q(r=Y())&&(o._floatingLabel=r.first),q(r=Y())&&(o._notchedOutline=r.first),q(r=Y())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:40,hostBindings:function(n,o){n&2&&ee("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-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ce([{provide:ao,useExisting:t},{provide:Yk,useExisting:t}])],ngContentSelectors:i6,decls:20,vars:25,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["aria-atomic","true","aria-live","polite"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,o){if(n&1){let r=A();Le(n6),E(0,a6,1,1,"ng-template",null,0,Ya),l(2,"div",6,1),b("click",function(s){return C(r),w(o._control.onContainerClick(s))}),E(4,s6,1,0,"div",7),l(5,"div",8),E(6,d6,2,2,"div",9)(7,u6,3,0,"div",10)(8,m6,3,0,"div",11),l(9,"div",12),E(10,h6,1,1,null,13),ce(11),d(),E(12,f6,3,0,"div",14)(13,g6,3,0,"div",15),d(),E(14,_6,1,0,"div",16),d(),l(15,"div",17),g0(16),l(17,"div",18),E(18,v6,1,0)(19,y6,4,1),d()()}if(n&2){let r;u(2),ee("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),u(2),I(!o._hasOutline()&&!o._control.disabled?4:-1),u(2),I(o._hasOutline()?6:-1),u(),I(o._hasIconPrefix?7:-1),u(),I(o._hasTextPrefix?8:-1),u(2),I(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),u(2),I(o._hasTextSuffix?12:-1),u(),I(o._hasIconSuffix?13:-1),u(),I(o._hasOutline()?-1:14),u(),ee("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic");let a=o._getSubscriptMessageType();u(2),ee("mat-mdc-form-field-error-wrapper",a==="error")("mat-mdc-form-field-hint-wrapper",a==="hint"),u(),I((r=a)==="error"?18:r==="hint"?19:-1)}},dependencies:[jk,Hk,Xc,Uk,xC],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-sys-outline));border-width:var(--mdc-outlined-text-field-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)} -`],encapsulation:2,changeDetection:0})}return t})();var _a=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,Mh,fe]})}return t})();var D6=["trigger"],S6=["panel"],E6=[[["mat-select-trigger"]],"*"],M6=["mat-select-trigger","*"];function T6(t,i){if(t&1&&(l(0,"span",4),h(1),d()),t&2){let e=g();u(),de(e.placeholder)}}function I6(t,i){t&1&&ce(0)}function k6(t,i){if(t&1&&(l(0,"span",11),h(1),d()),t&2){let e=g(2);u(),de(e.triggerValue)}}function A6(t,i){if(t&1&&(l(0,"span",5),E(1,I6,1,0)(2,k6,2,1,"span",11),d()),t&2){let e=g();u(),I(e.customTrigger?1:2)}}function R6(t,i){if(t&1){let e=A();l(0,"div",12,1),b("keydown",function(o){C(e);let r=g();return w(r._handleKeydown(o))}),ce(2,1),d()}if(t&2){let e=g();TM("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),ee("mat-select-panel-animations-enabled",!e._animationsDisabled),_("ngClass",e.panelClass),ne("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var SC=new R("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(kt);return()=>t.scrollStrategies.reposition()}});function Qk(t){return()=>t.scrollStrategies.reposition()}var Kk=new R("MAT_SELECT_CONFIG"),Zk={provide:SC,deps:[kt],useFactory:Qk},EC=new R("MatSelectTrigger"),Zf=class{source;value;constructor(i,e){this.source=i,this.value=e}},ht=(()=>{class t{_viewportRuler=p(Ei);_changeDetectorRef=p(xe);_elementRef=p(Z);_dir=p(Pt,{optional:!0});_idGenerator=p(ut);_renderer=p(It);_parentFormField=p(ao,{optional:!0});ngControl=p(Mi,{self:!0,optional:!0});_liveAnnouncer=p(Pd);_defaultOptions=p(Kk,{optional:!0});_animationsDisabled=p(tt,{optional:!0})==="NoopAnimations";_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=ru(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&r===1?o.scrollTop=0:o.scrollTop=au(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Zf(this,e)}_scrollStrategyFactory=p(SC);_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;disableRipple=!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(ir.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=qi(()=>{let e=this.options;return e?e.changes.pipe(xt(e),Dt(()=>_t(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(Dt(()=>this.optionSelectionChanges))});openedChange=new k;_openedStream=this.openedChange.pipe(Ke(e=>e),pe(()=>{}));_closedStream=this.openedChange.pipe(Ke(e=>!e),pe(()=>{}));selectionChange=new k;valueChange=new k;constructor(){let e=p(bs),n=p(ro,{optional:!0}),o=p(pa,{optional:!0}),r=p(new Nn("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new ha(e,this.ngControl,o,n,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this.id=this.id}ngOnInit(){this._selectionModel=new or(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Te(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(Te(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(xt(null),Te(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)}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(wt(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&&ca(this._trackedModal,"aria-owns",n),jl(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;ca(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&&!Et(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let c=this.selected;c&&s!==c&&this._liveAnnouncer.announce(c.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&&!Et(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(s?c.select():c.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&&!Et(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())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(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{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 Nl?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 gs(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=_t(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Te(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),_t(...this.options.map(n=>n._stateChanges)).pipe(Te(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}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){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=S({type:t,selectors:[["mat-select"]],contentQueries:function(n,o,r){if(n&1&&(je(r,EC,5),je(r,Ze,5),je(r,Zl,5)),n&2){let a;q(a=Y())&&(o.customTrigger=a.first),q(a=Y())&&(o.options=a),q(a=Y())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&(me(D6,5),me(S6,5),me(Vh,5)),n&2){let r;q(r=Y())&&(o.trigger=r.first),q(r=Y())&&(o.panel=r.first),q(r=Y())&&(o._overlayDir=r.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(n,o){n&1&&b("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(ne("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()),ee("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",$],disableRipple:[2,"disableRipple","disableRipple",$],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Zt(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",$],placeholder:"placeholder",required:[2,"required","required",$],multiple:[2,"multiple","multiple",$],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",$],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Zt],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",$]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ce([{provide:Ar,useExisting:t},{provide:Kl,useExisting:t}]),Be],ngContentSelectors:M6,decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(n,o){if(n&1){let r=A();Le(E6),l(0,"div",2,0),b("click",function(){return C(r),w(o.open())}),l(3,"div",3),E(4,T6,2,1,"span",4)(5,A6,3,1,"span",5),d(),l(6,"div",6)(7,"div",7),nn(),l(8,"svg",8),T(9,"path",9),d()()()(),E(10,R6,3,10,"ng-template",10),b("detach",function(){return C(r),w(o.close())})("backdropClick",function(){return C(r),w(o.close())})("overlayKeydown",function(s){return C(r),w(o._handleOverlayKeydown(s))})}if(n&2){let r=Ge(1);u(3),ne("id",o._valueId),u(),I(o.empty?4:5),u(6),_("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[Nl,Vh,ii],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))} -`],encapsulation:2,changeDetection:0})}return t})(),su=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["mat-select-trigger"]],features:[Ce([{provide:EC,useExisting:t}])]})}return t})(),lu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[Zk],imports:[jn,Xl,fe,Li,_a,Xl,fe]})}return t})();var O6=["tooltip"],MC=20;var TC=new R("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(kt);return()=>t.scrollStrategies.reposition({scrollThrottle:MC})}});function eA(t){return()=>t.scrollStrategies.reposition({scrollThrottle:MC})}var tA={provide:TC,deps:[kt],useFactory:eA};function nA(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var iA=new R("mat-tooltip-default-options",{providedIn:"root",factory:nA});var Xk="tooltip-panel",Jk=oa({passive:!0}),P6=8,F6=8,N6=24,L6=200,To=(()=>{class t{_elementRef=p(Z);_ngZone=p(ie);_platform=p(et);_ariaDescriber=p(Hh);_focusMonitor=p(Cn);_dir=p(Pt);_injector=p(Ie);_viewContainerRef=p(Rt);_defaultOptions=p(iA,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=oA;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_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=Vi(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let n=Vi(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=So(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=So(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)}_passiveListeners=[];_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=P6}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Te(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._passiveListeners.forEach(([n,o])=>{e.removeEventListener(n,o,Jk)}),this._passiveListeners.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 ri(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(Te(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 Z)return this._overlayRef;this._detach()}let n=this._injector.get(Pl).getAncestorScrollContainers(this._elementRef),o=this._injector.get(kt),r=o.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return r.positionChanges.pipe(Te(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=o.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${Xk}`,scrollStrategy:this._injector.get(TC)()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Te(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Te(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Te(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Et(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(Te(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(L(L({},o.main),r.main)),this._addOffset(L(L({},o.fallback),r.fallback))])}_addOffset(e){let n=F6,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(),Ht(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=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 c=`${this._cssClassPrefix}-${Xk}-`;s.removePanelClass(c+this._currentPosition),s.addPanelClass(c+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let n;e.x!==void 0&&e.y!==void 0&&(n=e),this.show(void 0,n)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["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._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",n=>{let o=n.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let n=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",n],["touchcancel",n])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([n,o])=>{this._elementRef.nativeElement.addEventListener(n,o,Jk)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let n=this._injector.get(he).elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}}_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||Ht({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&ee("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})(),oA=(()=>{class t{_changeDetectorRef=p(xe);_elementRef=p(Z);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new z;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){let e=p(tt,{optional:!0});this._animationsDisabled=e==="NoopAnimations"}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>N6&&e.width>=L6}_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=S({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&me(O6,7),n&2){let r;q(r=Y())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,o){n&1&&b("mouseleave",function(a){return o._handleMouseLeave(a)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){if(n&1){let r=A();l(0,"div",1,0),b("animationend",function(s){return C(r),w(o._handleAnimationEnd(s))}),l(2,"div",2),h(3),d()()}n&2&&(ee("mdc-tooltip--multiline",o._isMultiline),_("ngClass",o.tooltipClass),u(3),de(o.message))},dependencies:[ii],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards} -`],encapsulation:2,changeDetection:0})}return t})(),ws=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[tA],imports:[us,jn,fe,fe,Li]})}return t})();function V6(t,i){if(t&1&&(l(0,"mat-option",17),h(1),d()),t&2){let e=i.$implicit;_("value",e),u(),F(" ",e," ")}}function B6(t,i){if(t&1){let e=A();l(0,"mat-form-field",14)(1,"mat-select",16,0),b("selectionChange",function(o){C(e);let r=g(2);return w(r._changePageSize(o.value))}),oe(3,V6,2,2,"mat-option",17,le),d(),l(5,"div",18),b("click",function(){C(e);let o=Ge(2);return w(o.open())}),d()()}if(t&2){let e=g(2);_("appearance",e._formFieldAppearance)("color",e.color),u(),_("value",e.pageSize)("disabled",e.disabled)("aria-labelledby",e._pageSizeLabelId)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),u(2),re(e._displayedPageSizeOptions)}}function j6(t,i){if(t&1&&(l(0,"div",15),h(1),d()),t&2){let e=g(2);u(),de(e.pageSize)}}function z6(t,i){if(t&1&&(l(0,"div",3)(1,"div",13),h(2),d(),E(3,B6,6,7,"mat-form-field",14)(4,j6,2,1,"div",15),d()),t&2){let e=g();u(),ne("id",e._pageSizeLabelId),u(),F(" ",e._intl.itemsPerPageLabel," "),u(),I(e._displayedPageSizeOptions.length>1?3:-1),u(),I(e._displayedPageSizeOptions.length<=1?4:-1)}}function U6(t,i){if(t&1){let e=A();l(0,"button",19),b("click",function(){C(e);let o=g();return w(o._buttonClicked(0,o._previousButtonsDisabled()))}),nn(),l(1,"svg",8),T(2,"path",20),d()()}if(t&2){let e=g();_("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),ne("aria-label",e._intl.firstPageLabel)}}function H6(t,i){if(t&1){let e=A();l(0,"button",21),b("click",function(){C(e);let o=g();return w(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),nn(),l(1,"svg",8),T(2,"path",22),d()()}if(t&2){let e=g();_("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),ne("aria-label",e._intl.lastPageLabel)}}var va=(()=>{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(va);_changeDetectorRef=p(xe);_formFieldAppearance;_pageSizeLabelId=p(ut).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new $i(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=>Zt(n,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new k;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,n=p(q6,{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=S({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",Zt],length:[2,"length","length",Zt],pageSize:[2,"pageSize","pageSize",Zt],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",$],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",$],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",$]},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-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["mat-icon-button","","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"],["mat-icon-button","","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"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["mat-icon-button","","type","button","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"],["mat-icon-button","","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&&(l(0,"div",1)(1,"div",2),E(2,z6,5,4,"div",3),l(3,"div",4)(4,"div",5),h(5),d(),E(6,U6,3,5,"button",6),l(7,"button",7),b("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),nn(),l(8,"svg",8),T(9,"path",9),d()(),vr(),l(10,"button",10),b("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),nn(),l(11,"svg",8),T(12,"path",11),d()(),E(13,H6,3,5,"button",12),d()()()),n&2&&(u(2),I(o.hidePageSize?-1:2),u(3),F(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),u(),I(o.showFirstLastButtons?6:-1),u(),_("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled())("tabindex",o._previousButtonsDisabled()?-1:null),ne("aria-label",o._intl.previousPageLabel),u(3),_("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled())("tabindex",o._nextButtonsDisabled()?-1:null),ne("aria-label",o._intl.nextPageLabel),u(3),I(o.showFirstLastButtons?13:-1))},dependencies:[ge,ht,Ze,On,To],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height:var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer} -`],encapsulation:2,changeDetection:0})}return t})(),rA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[G6],imports:[nr,lu,ws,Rr]})}return t})();var Y6=["mat-sort-header",""],Q6=["*"];function K6(t,i){t&1&&(l(0,"div",2),nn(),l(1,"svg",3),T(2,"path",4),d()())}var sA=new R("MAT_SORT_DEFAULT_OPTIONS"),Or=(()=>{class t{_defaultOptions;_initializedStream=new $i(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 k;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=Z6(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)(y(sA,8))};static \u0275dir=B({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",$],disabled:[2,"matSortDisabled","disabled",$]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Be]})}return t})();function Z6(t,i){let e=["asc","desc"];return t=="desc"&&e.reverse(),i||e.push(""),e}var Xf=(()=>{class t{changes=new z;static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function X6(t){return t||new Xf}var J6={provide:Xf,deps:[[new yo,new hr,Xf]],useFactory:X6},Jf=(()=>{class t{_intl=p(Xf);_sort=p(Or,{optional:!0});_columnDef=p("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=p(xe);_focusMonitor=p(Cn);_elementRef=p(Z);_ariaDescriber=p(Hh,{optional:!0});_renderChanges;_animationModule=p(tt,{optional:!0});_recentlyCleared=yi(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){p(yt).load(gn);let e=p(sA,{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=_t(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(()=>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=S({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&b("click",function(){return o._toggleOnInteraction()})("keydown",function(a){return o._handleKeydown(a)})("mouseleave",function(){return o._recentlyCleared.set(null)}),n&2&&(ne("aria-sort",o._getAriaSortAttribute()),ee("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",$],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",$]},exportAs:["matSortHeader"],attrs:Y6,ngContentSelectors:Q6,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&&(Le(),l(0,"div",0)(1,"div",1),ce(2),d(),E(3,K6,3,0,"div",2),d()),n&2&&(ee("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._animationModule==="NoopAnimations"),ne("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),u(3),I(o._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0} -`],encapsulation:2,changeDetection:0})}return t})(),lA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[J6],imports:[fe]})}return t})();var tW=["input"],nW=["label"],iW=["*"],oW=new R("mat-checkbox-default-options",{providedIn:"root",factory:uA});function uA(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var Zn=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t}(Zn||{}),rW={provide:mi,useExisting:en(()=>ec),multi:!0},IC=class{source;checked},dA=uA(),ec=(()=>{class t{_elementRef=p(Z);_changeDetectorRef=p(xe);_ngZone=p(ie);_animationMode=p(tt,{optional:!0});_options=p(oW,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new IC;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;labelPosition="after";name=null;change=new k;indeterminateChange=new k;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=Zn.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){p(yt).load(gn);let e=p(new Nn("tabindex"),{optional:!0});this._options=this._options||dA,this.color=this._options.color||dA.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=p(ut).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=e,n&&(this._indeterminate?this._transitionCheckState(Zn.Indeterminate):this._transitionCheckState(this.checked?Zn.Checked:Zn.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_indeterminate=!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=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Zn.Checked:Zn.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._animationMode==="NoopAnimations")return"";switch(e){case Zn.Init:if(n===Zn.Checked)return this._animationClasses.uncheckedToChecked;if(n==Zn.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Zn.Unchecked:return n===Zn.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Zn.Checked:return n===Zn.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Zn.Indeterminate:return n===Zn.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=S({type:t,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&(me(tW,5),me(nW,5)),n&2){let r;q(r=Y())&&(o._inputElement=r.first),q(r=Y())&&(o._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,o){n&2&&(bn("id",o.id),ne("tabindex",null)("aria-label",null)("aria-labelledby",null),Vt(o.color?"mat-"+o.color:"mat-accent"),ee("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked)("mat-mdc-checkbox-disabled-interactive",o.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",$],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",$],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",$],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Zt(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",$],checked:[2,"checked","checked",$],disabled:[2,"disabled","disabled",$],indeterminate:[2,"indeterminate","indeterminate",$]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ce([rW,{provide:oo,useExisting:t,multi:!0}]),Be],ngContentSelectors:iW,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1){let r=A();Le(),l(0,"div",3),b("click",function(s){return C(r),w(o._preventBubblingFromLabel(s))}),l(1,"div",4,0)(3,"div",5),b("click",function(){return C(r),w(o._onTouchTargetClick())}),d(),l(4,"input",6,1),b("blur",function(){return C(r),w(o._onBlur())})("click",function(){return C(r),w(o._onInputClick())})("change",function(s){return C(r),w(o._onInteractionEvent(s))}),d(),T(6,"div",7),l(7,"div",8),nn(),l(8,"svg",9),T(9,"path",10),d(),vr(),T(10,"div",11),d(),T(11,"div",12),d(),l(12,"label",13,2),ce(14),d()()}if(n&2){let r=Ge(2);_("labelPosition",o.labelPosition),u(4),ee("mdc-checkbox--selected",o.checked),_("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),ne("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),u(7),_("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),u(),_("for",o.inputId)}},dependencies:[Bi,xf],styles:[`.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}@media(forced-colors: active){.mdc-checkbox--disabled{opacity:.5}}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return t})();var eg=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[ec,fe,fe]})}return t})();var tg;function aW(){if(tg===void 0&&(tg=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(tg=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return tg}function cu(t){return aW()?.createHTML(t)||t}function pA(t){return Error(`Unable to find icon with the name "${t}"`)}function sW(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function hA(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function fA(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Pr=class{url;svgText;options;svgElement;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},_A=(()=>{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 Pr(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,o,r){let a=this._sanitizer.sanitize(Ln.HTML,o);if(!a)throw fA(o);let s=cu(a);return this._addSvgIconConfig(e,n,new Pr("",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 Pr(n,null,o))}addSvgIconSetLiteralInNamespace(e,n,o){let r=this._sanitizer.sanitize(Ln.HTML,n);if(!r)throw fA(n);let a=cu(r);return this._addSvgIconSetConfig(e,new Pr("",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(Ln.RESOURCE_URL,e);if(!n)throw hA(e);let o=this._cachedIconsByUrl.get(n);return o?ae(ng(o)):this._loadSvgIconFromConfig(new Pr(e,null)).pipe(Ut(r=>this._cachedIconsByUrl.set(n,r)),pe(r=>ng(r)))}getNamedSvgIcon(e,n=""){let o=gA(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):No(pA(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?ae(ng(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(pe(n=>ng(n)))}_getSvgFromIconSetConfigs(e,n){let o=this._extractIconWithNameFromAnySet(e,n);if(o)return ae(o);let r=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Rn(s=>{let m=`Loading icon set URL: ${this._sanitizer.sanitize(Ln.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(m)),ae(null)})));return Cc(r).pipe(pe(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw pA(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(Ut(n=>e.svgText=n),pe(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?ae(null):this._fetchIcon(e).pipe(Ut(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(cu(""));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(cu("")),o=e.attributes;for(let r=0;rcu(m)),Bo(()=>this._inProgressUrlFetches.delete(a)),Dc());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,n,o){return this._svgIconConfigs.set(gA(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;oi?i.pathname+i.search:""}}var vA=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],pW=vA.map(t=>`[${t}]`).join(", "),hW=/^url\(['"]?#(.*?)['"]?\)$/,bA=(()=>{class t{_elementRef=p(Z);_iconRegistry=p(_A);_location=p(uW);_errorHandler=p(ti);_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;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=be.EMPTY;constructor(){let e=p(new Nn("aria-hidden"),{optional:!0}),n=p(dW,{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(pW),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let s=n[r],c=s.getAttribute(a),m=c?c.match(hW):null;if(m){let f=o.get(s);f||(f=[],o.set(s,f)),f.push({name:a,value:m[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(wt(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=S({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(ne("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),Vt(o.color?"mat-"+o.color:""),ee("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",$],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:cW,decls:1,vars:0,template:function(n,o){n&1&&(Le(),ce(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto} -`],encapsulation:2,changeDetection:0})}return t})(),yA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();var og=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=Vi(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Vi(e)}_inset=!1;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(ne("aria-orientation",o.vertical?"vertical":"horizontal"),ee("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;border-top-color:var(--mat-divider-color, var(--mat-sys-outline));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px} -`],encapsulation:2,changeDetection:0})}return t})(),rg=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();var gW=["searchSelectInput"],_W=["innerSelectSearch"],vW=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],bW=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],yW=(t,i)=>({"mat-select-search-inner-multiple":t,"mat-select-search-inner-toggle-all":i});function CW(t,i){if(t&1){let e=A();l(0,"mat-checkbox",12),b("change",function(o){C(e);let r=g();return w(r._emitSelectAllBooleanToParent(o.checked))}),d()}if(t&2){let e=g();_("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function wW(t,i){t&1&&T(0,"mat-spinner",13)}function xW(t,i){t&1&&ce(0,1,["*ngIf","clearIcon; else defaultIcon"])}function DW(t,i){if(t&1&&(l(0,"mat-icon",16),h(1),d()),t&2){let e=g(2);_("svgIcon",e.closeSvgIcon),u(),F(" ",e.closeSvgIcon?null:e.closeIcon," ")}}function SW(t,i){if(t&1){let e=A();l(0,"button",14),b("click",function(){C(e);let o=g();return w(o._reset(!0))}),E(1,xW,1,0,"ng-content",15)(2,DW,2,2,"ng-template",null,2,Ya),d()}if(t&2){let e=Ge(3),n=g();u(),_("ngIf",n.clearIcon)("ngIfElse",e)}}function EW(t,i){t&1&&ce(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function MW(t,i){if(t&1&&h(0),t&2){let e=g(2);de(e.noEntriesFoundLabel)}}function TW(t,i){if(t&1&&(l(0,"div",17),E(1,EW,1,0,"ng-content",15)(2,MW,1,1,"ng-template",null,3,Ya),d()),t&2){let e=Ge(3),n=g();u(),_("ngIf",n.noEntriesFound)("ngIfElse",e)}}var IW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=B({type:t,selectors:[["","ngxMatSelectSearchClear",""]],standalone:!1}),t})(),kW=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],AW=new R("mat-selectsearch-default-options"),RW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=B({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]],standalone:!1}),t})(),wA=(()=>{class t{constructor(e,n,o,r,a,s){this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=o,this.matOption=r,this.matFormField=a,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.recreateValuesArray=!1,this.toggleAll=new k,this.onTouched=c=>{},this._options$=new bt(null),this.optionsList$=this._options$.pipe(Dt(c=>c?c.changes.pipe(pe(m=>m.toArray()),xt(c.toArray())):ae(null))),this.optionsLength$=this.optionsList$.pipe(pe(c=>c?c.length:0)),this._formControl=new pf("",{nonNullable:!0}),this._showNoEntriesFound$=Ri([this._formControl.valueChanges,this.optionsLength$]).pipe(pe(([c,m])=>!!(this.noEntriesFoundLabel&&c&&m===this.getOptionsLengthOffset()))),this._onDestroy=new z,this.applyDefaultOptions(s)}get value(){return this._formControl.value}set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}applyDefaultOptions(e){if(e)for(let n of kW)e.hasOwnProperty(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(xc(1),Te(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(wt(1),Dt(e=>{this._options=this.matSelect.options;let n=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(Ut(()=>{setTimeout(()=>{let o=this._options.toArray(),r=o[this.getOptionsLengthOffset()],a=this.matSelect._keyManager;a&&this.matSelect.panelOpen&&r&&((!n||!this.matSelect.compareWith(n.value,r.value)||!a.activeItem||!o.find(c=>this.matSelect.compareWith(c.value,a.activeItem?.value)))&&a.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),n=r})}))})).pipe(Te(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(Te(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(Te(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(Te(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(Ke(n=>n!==this._lastExternalInputValue),Ut(()=>this._lastExternalInputValue=void 0),Te(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(Te(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")}}return t.\u0275fac=function(e){return new(e||t)(y(ht),y(xe),y(Ei),y(Ze,8),y(ge,8),y(AW,8))},t.\u0275cmp=S({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(e,n,o){if(e&1&&(je(o,IW,5),je(o,RW,5)),e&2){let r;q(r=Y())&&(n.clearIcon=r.first),q(r=Y())&&(n.noEntriesFound=r.first)}},viewQuery:function(e,n){if(e&1&&(me(gW,7,Z),me(_W,7,Z)),e&2){let o;q(o=Y())&&(n.searchSelectInput=o.first),q(o=Y())&&(n.innerSelectSearch=o.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"},standalone:!1,features:[Ce([{provide:mi,useExisting:en(()=>t),multi:!0}])],ngContentSelectors:bW,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["defaultIcon",""],["defaultNoEntriesFound",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"]],template:function(e,n){if(e&1){let o=A();Le(vW),T(0,"input",4),l(1,"div",5,0)(3,"div",6),E(4,CW,1,5,"mat-checkbox",7),l(5,"input",8,1),b("keydown",function(a){return C(o),w(n._handleKeydown(a))})("keyup",function(a){return C(o),w(n._handleKeyup(a))})("blur",function(){return C(o),w(n.onBlur())}),d(),E(7,wW,1,0,"mat-spinner",9)(8,SW,4,2,"button",10),ce(9),d(),T(10,"mat-divider"),d(),E(11,TW,4,2,"div",11),dt(12,"async")}e&2&&(u(),_("ngClass",Mp(11,yW,n.matSelect.multiple,n._isToggleAllCheckboxVisible())),u(3),_("ngIf",n._isToggleAllCheckboxVisible()),u(),_("type",n.type)("formControl",n._formControl)("placeholder",n.placeholderLabel),ne("aria-label",n.ariaLabel),u(2),_("ngIf",n.searching),u(),_("ngIf",!n.hideClearSearchButton&&n.value&&!n.searching),u(3),_("ngIf",vt(12,9,n._showNoEntriesFound$)))},dependencies:[ii,T0,st,we,nC,On,ec,bA,Jl,To,og,Jc],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-input[_ngcontent-%COMP%]::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.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}),t})();var xA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=J({type:t}),t.\u0275inj=X({imports:[Qa,ff,nr,eg,yA,qf,ws,rg]}),t})();function PW(t,i){if(t&1){let e=A();l(0,"mat-option")(1,"ngx-mat-select-search",0),b("ngModelChange",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()()}if(t&2){let e=g();u(),_("placeholderLabel",e.placeholderLabel)("noEntriesFoundLabel",e.noEntriesFoundLabel)}}var dn=(()=>{class t{constructor(){this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.changed=new k,this.notIfLessThan=7}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=S({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&&E(0,PW,2,2,"mat-option"),n&2&&I(o.options&&o.options.length>o.notIfLessThan?0:-1)},dependencies:[we,Se,Ze,wA],encapsulation:2})}}return t})();function FW(t,i){t&1&&(l(0,"uds-translate"),h(1,"New user permission for"),d())}function NW(t,i){t&1&&(l(0,"uds-translate"),h(1,"New group permission for"),d())}function LW(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),de(e.text)}}function VW(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),de(e.text)}}function BW(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),de(e.text)}}var DA=(()=>{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 qt}static launch(e,n,o){return V(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 V(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 V(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)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0),E(1,FW,2,0,"uds-translate")(2,NW,2,0,"uds-translate"),T(3,"b",1),d(),l(4,"mat-dialog-content")(5,"div",2)(6,"mat-form-field")(7,"mat-select",3),b("valueChange",function(a){return o.changeAuth(a)}),W("ngModelChange",function(a){return G(o.authenticator,a)||(o.authenticator=a),a}),oe(8,LW,2,2,"mat-option",4,le),d()(),l(10,"mat-form-field")(11,"mat-select",5),W("ngModelChange",function(a){return G(o.entity,a)||(o.entity=a),a}),l(12,"uds-cond-select-search",6),b("changed",function(a){return o.filterUser=a}),d(),oe(13,VW,2,2,"mat-option",4,le),d()(),l(15,"mat-form-field")(16,"mat-select",5),W("ngModelChange",function(a){return G(o.permission,a)||(o.permission=a),a}),oe(17,BW,2,2,"mat-option",4,le),d()()()(),l(19,"mat-dialog-actions")(20,"button",7),b("click",function(){return o.cancel()}),l(21,"uds-translate"),h(22,"Cancel"),d()(),l(23,"button",8),b("click",function(){return o.save()}),l(24,"uds-translate"),h(25,"Ok"),d()()()),n&2&&(u(),I(o.data.type==="user"?1:2),u(2),_("innerHTML",o.data.item.name,Wt),u(4),_("placeholder",o.getFieldLabel("auth")),H("ngModel",o.authenticator),u(),re(o.authenticators),u(3),_("placeholder",o.getFieldLabel(o.data.type)),H("ngModel",o.entity),u(),_("options",o.entities),u(),re(o.filteredEntities()),u(3),_("placeholder",o.getFieldLabel("perm")),H("ngModel",o.permission),u(),re(o.permissions))},dependencies:[we,Se,De,$e,Ye,qe,ge,ht,Ze,ue,dn],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 jW=(t,i)=>[t,i];function zW(t,i){if(t&1){let e=A();l(0,"div",9)(1,"div",10),h(2),d(),l(3,"div",11),h(4),l(5,"a",12),b("click",function(){let o=C(e).$implicit,r=g(2);return w(r.revokePermission(o))}),l(6,"i",13),h(7,"close"),d()()()()}if(t&2){let e=i.$implicit;u(2),wi(" ",e.entity_name,"@",e.auth_name," "),u(2),F(" ",e.perm_name," \xA0")}}function UW(t,i){if(t&1){let e=A();l(0,"div",5)(1,"div",7)(2,"div",8),b("click",function(o){let r=C(e).$implicit;return g().newPermission(r),w(o.preventDefault())}),l(3,"uds-translate"),h(4,"New permission..."),d()(),oe(5,zW,8,3,"div",9,le),d()()}if(t&2){let e=i.$implicit;u(5),re(e)}}var SA=(()=>{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 V(this,null,function*(){yield this.reload()})}reload(){return V(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 V(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 V(this,null,function*(){let n=e===this.userPermissions?"user":"group",o=yield DA.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)(y(j),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"Permissions for"),d(),h(3,"\xA0"),T(4,"b",1),d(),l(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),h(8,"Users"),d(),l(9,"uds-translate",3),h(10,"Groups"),d()(),l(11,"div",4),oe(12,UW,7,0,"div",5,le),d()(),l(14,"mat-dialog-actions")(15,"button",6)(16,"uds-translate"),h(17,"Ok"),d()()()),n&2&&(u(4),_("innerHTML",o.data.item.name,Wt),u(8),re(Mp(1,jW,o.userPermissions,o.groupPermissions)))},dependencies:[De,jt,$e,Ye,qe,ue],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 IA=Mu(ag());var HW="text/csv",EA=",",MA=`\r -`,TA=t=>(t.changingThisBreaksApplicationSecurity!==void 0&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),t=""+t,'"'+t.replace('"','""')+'"'),sg=t=>V(null,null,function*(){let i="";t.columns.forEach(o=>{i+=TA(o.title)+EA}),i=i.slice(0,-1)+MA;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 Ft.DATE:a=Un("SHORT_DATE_FORMAT",a);break;case Ft.DATETIME:a=Un("SHORT_DATETIME_FORMAT",a);break;case Ft.DATETIMESEC:a=Un("SHORT_DATE_FORMAT",a," H:i:s");break;case Ft.TIME:a=Un("TIME_FORMAT",a);break;default:break}i+=TA(a)+EA}i=i.slice(0,-1)+MA}let n=new Blob([i],{type:HW});setTimeout(()=>{(0,IA.saveAs)(n,t.title+".csv",{autoBom:!1})})});var lg=class extends ps{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 bt(!1),this.loading$=this.loadingSubject.asObservable(),this.dataSubject=new bt([]),this.data$=this.dataSubject.asObservable(),this.totalSubject=new bt(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 c=s.join("&");this.rest.list(c,!0).then(({items:m,headers:f})=>{let v=parseInt(f.get("X-Total-Count")??"0",10);if(this.onItem)for(let D of m)try{this.onItem(D)}catch(x){console.error("onItem error:",x)}this.dataSubject.next(m),this.totalSubject.next(v)}).catch(()=>{this.dataSubject.next([]),this.totalSubject.next(0)}).finally(()=>this.loadingSubject.next(!1))}get data(){return this.dataSubject.getValue()}};var RC=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{}return e}destroy(){let i=this._textarea;i&&(i.remove(),this._textarea=void 0)}},kA=(()=>{class t{_document=p(he);constructor(){}copy(e){let n=this.beginCopy(e),o=n.copy();return n.destroy(),o}beginCopy(e){return new RC(e,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var AA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();var GW=["mat-menu-item",""],$W=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],qW=["mat-icon, [matMenuItemIcon]","*"];function YW(t,i){t&1&&(nn(),l(0,"svg",2),T(1,"polygon",3),d())}var QW=["*"];function KW(t,i){if(t&1){let e=A();l(0,"div",0),b("click",function(){C(e);let o=g();return w(o.closed.emit("click"))})("animationstart",function(o){C(e);let r=g();return w(r._onAnimationStart(o.animationName))})("animationend",function(o){C(e);let r=g();return w(r._onAnimationDone(o.animationName))})("animationcancel",function(o){C(e);let r=g();return w(r._onAnimationDone(o.animationName))}),l(1,"div",1),ce(2),d()()}if(t&2){let e=g();Vt(e._classList),ee("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating),_("id",e.panelId),ne("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var PC=new R("MAT_MENU_PANEL"),xs=(()=>{class t{_elementRef=p(Z);_document=p(he);_focusMonitor=p(Cn);_parentMenu=p(PC,{optional:!0});_changeDetectorRef=p(xe);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new z;_focused=new z;_highlighted=!1;_triggersSubmenu=!1;constructor(){p(yt).load(gn),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(St);_appRef=p(ni);_injector=p(Ie);_viewContainerRef=p(Rt);_document=p(he);_changeDetectorRef=p(xe);_portal;_outlet;_attached=new z;constructor(){}attach(e={}){this._portal||(this._portal=new yn(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new as(this._document.createElement("div"),null,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=B({type:t,selectors:[["ng-template","matMenuContent",""]],features:[Ce([{provide:RA,useExisting:t}])]})}return t})(),ZW=new R("mat-menu-default-options",{providedIn:"root",factory:XW});function XW(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var OC="_mat-menu-enter",cg="_mat-menu-exit",ba=(()=>{class t{_elementRef=p(Z);_changeDetectorRef=p(xe);_injector=p(Ie);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled;_allItems;_directDescendantItems=new Qi;_classList={};_panelAnimationState="void";_animationDone=new z;_isAnimating=!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;hasBackdrop;set panelClass(e){let n=this._previousPanelClass,o=L({},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 k;close=this.closed;panelId=p(ut).getId("mat-menu-panel-");constructor(){let e=p(ZW);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop,this._animationsDisabled=p(tt,{optional:!0})==="NoopAnimations"}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Tr(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(xt(this._directDescendantItems),Dt(e=>_t(...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(xt(this._directDescendantItems),Dt(n=>_t(...n.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,o=this._keyManager;switch(n){case 27:Et(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=Ht(()=>{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=Qe(L({},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===cg;(n||e===OC)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating=!1)}_onAnimationStart(e){(e===OC||e===cg)&&(this._isAnimating=!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(cg),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?OC:cg)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(xt(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=S({type:t,selectors:[["mat-menu"]],contentQueries:function(n,o,r){if(n&1&&(je(r,RA,5),je(r,xs,5),je(r,xs,4)),n&2){let a;q(a=Y())&&(o.lazyContent=a.first),q(a=Y())&&(o._allItems=a),q(a=Y())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&me(St,5),n&2){let r;q(r=Y())&&(o.templateRef=r.first)}},hostVars:3,hostBindings:function(n,o){n&2&&ne("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",$],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:$(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ce([{provide:PC,useExisting:t}])],ngContentSelectors:QW,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&&(Le(),E(0,KW,3,12,"ng-template"))},styles:[`mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none} -`],encapsulation:2,changeDetection:0})}return t})(),PA=new R("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(kt);return()=>t.scrollStrategies.reposition()}});function JW(t){return()=>t.scrollStrategies.reposition()}var eG={provide:PA,deps:[kt],useFactory:JW},tG={passive:!0};var du=new WeakMap,dg=(()=>{class t{_overlay=p(kt);_element=p(Z);_viewContainerRef=p(Rt);_menuItemInstance=p(xs,{optional:!0,self:!0});_dir=p(Pt,{optional:!0});_focusMonitor=p(Cn);_ngZone=p(ie);_scrollStrategy=p(PA);_changeDetectorRef=p(xe);_cleanupTouchstart;_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=be.EMPTY;_hoverSubscription=be.EMPTY;_menuCloseSubscription=be.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=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()))}_menu;menuData;restoreFocus=!0;menuOpened=new k;onMenuOpen=this.menuOpened;menuClosed=new k;onMenuClose=this.menuClosed;constructor(){let e=p(PC,{optional:!0}),n=p(It);this._parentMaterialMenu=e instanceof ba?e:void 0,this._cleanupTouchstart=$t(n,this._element.nativeElement,"touchstart",o=>{ls(o)||(this._openedBy="touch")},tG)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this.menu&&this._ownsMenu(this.menu)&&du.delete(this.menu),this._cleanupTouchstart(),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.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)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let e=this.menu;if(this._menuOpen||!e)return;this._pendingRemoval?.unsubscribe();let n=du.get(e);du.set(e,this),n&&n!==this&&n.closeMenu();let o=this._createOverlay(e),r=o.getConfig(),a=r.positionStrategy;this._setPosition(e,a),r.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,o.hasAttached()||(o.attach(this._getPortal(e)),e.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),e instanceof ba&&(e._setIsOpen(!0),e._directDescendantItems.changes.pipe(Te(e.close)).subscribe(()=>{a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){let n=this._overlayRef,o=this._menu;!n||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),o instanceof ba&&this._ownsMenu(o)?(this._pendingRemoval=o._animationDone.pipe(wt(1)).subscribe(()=>{n.detach(),o.lazyContent?.detach()}),o._setIsOpen(!1)):(n.detach(),o?.lazyContent?.detach()),o&&this._ownsMenu(o)&&du.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=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe(o=>{this.menu instanceof ba&&this.menu._handleKeydown(o)})}return this._overlayRef}_getOverlayConfig(e){return new si({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).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"})}_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"],[c,m]=[a,s],[f,v]=[o,r],D=0;if(this.triggersSubmenu()){if(v=o=e.xPosition==="before"?"start":"end",r=f=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let x=this._parentMaterialMenu.items.first;this._parentInnerPadding=x?x._getHostElement().offsetTop:0}D=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c=a==="top"?"bottom":"top",m=s==="top"?"bottom":"top");n.withPositions([{originX:o,originY:c,overlayX:f,overlayY:a,offsetY:D},{originX:r,originY:c,overlayX:v,overlayY:a,offsetY:D},{originX:o,originY:m,overlayX:f,overlayY:s,offsetY:-D},{originX:r,originY:m,overlayX:v,overlayY:s,offsetY:-D}])}_menuClosingActions(){let e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:ae(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ke(a=>this._menuOpen&&a!==this._menuItemInstance)):ae();return _t(e,o,r,n)}_handleMousedown(e){ss(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._openedBy="mouse",this.openMenu())}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new yn(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return du.get(e)===this}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&b("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&ne("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]})}return t})(),FA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[eG],imports:[tr,fe,jn,Li,fe]})}return t})(),NA={transformMenu:{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null}},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},fadeInItems:{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null}},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}},Rye=NA.fadeInItems,Oye=NA.transformMenu;var nG=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({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}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms} -`],encapsulation:2,changeDetection:0})}return t})(),iG={passive:!0},VA=(()=>{class t{_platform=p(et);_ngZone=p(ie);_renderer=p(hn).createRenderer(null,null);_styleLoader=p(yt);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return _n;this._styleLoader.load(nG);let n=ai(e),o=this._monitoredElements.get(n);if(o)return o.subject;let r=new z,a="cdk-text-field-autofilled",s=m=>{m.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>r.next({target:m.target,isAutofilled:!0}))):m.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>r.next({target:m.target,isAutofilled:!1})))},c=this._ngZone.runOutsideAngular(()=>(n.classList.add("cdk-text-field-autofill-monitored"),$t(this._renderer,n,"animationstart",s,iG)));return this._monitoredElements.set(n,{subject:r,unlisten:c}),r}stopMonitoring(e){let n=ai(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=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var BA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();var ug=new R("MAT_INPUT_VALUE_ACCESSOR");var oG=["button","checkbox","file","hidden","image","radio","range","reset","submit"],rG=new R("MAT_INPUT_CONFIG"),mt=(()=>{class t{_elementRef=p(Z);_platform=p(et);ngControl=p(Mi,{optional:!0,self:!0});_autofillMonitor=p(VA);_ngZone=p(ie);_formField=p(ao,{optional:!0});_renderer=p(It);_uid=p(ut).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=p(rG,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Vi(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(ir.required)??!1}set required(e){this._required=Vi(e)}_required;get type(){return this._type}set type(e){let n=this._type;this._type=e||"text",this._validateType(),!this._isTextarea&&Hy().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._type!==n&&this._ensureWheelDefaultBehavior()}_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=Vi(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=>Hy().has(e));constructor(){let e=p(ro,{optional:!0}),n=p(pa,{optional:!0}),o=p(bs),r=p(ug,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();r?Qr(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 ha(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&&Yc(()=>{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(){oG.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}setDescribedByIds(e){let n=this._elementRef.nativeElement,o=n.getAttribute("aria-describedby"),r;if(o){let a=this._formFieldDescribedBy||e;r=e.concat(o.split(" ").filter(s=>s&&!a.includes(s)))}else r=e;this._formFieldDescribedBy=e,r.length?n.setAttribute("aria-describedby",r.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))};_webkitBlinkWheelListener=()=>{};_ensureWheelDefaultBehavior(){this._cleanupWebkitWheel?.(),this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._cleanupWebkitWheel=this._renderer.listen(this._elementRef.nativeElement,"wheel",this._webkitBlinkWheelListener))}_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({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&&b("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(bn("id",o.id)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),ne("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),ee("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",$]},exportAs:["matInput"],features:[Ce([{provide:Ar,useExisting:t}]),Be]})}return t})(),jA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,_a,_a,BA,fe]})}return t})();var aG=[[["caption"]],[["colgroup"],["col"]],"*"],sG=["caption","colgroup, col","*"];function lG(t,i){t&1&&ce(0,2)}function cG(t,i){t&1&&(l(0,"thead",0),En(1,1),d(),l(2,"tbody",0),En(3,2)(4,3),d(),l(5,"tfoot",0),En(6,4),d())}function dG(t,i){t&1&&En(0,1)(1,2)(2,3)(3,4)}var Io=new R("CDK_TABLE");var _g=(()=>{class t{template=p(St);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),vg=(()=>{class t{template=p(St);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),HA=(()=>{class t{template=p(St);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),tc=(()=>{class t{_table=p(Io,{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=B({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,r){if(n&1&&(je(r,_g,5),je(r,vg,5),je(r,HA,5)),n&2){let a;q(a=Y())&&(o.cell=a.first),q(a=Y())&&(o.headerCell=a.first),q(a=Y())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",$],stickyEnd:[2,"stickyEnd","stickyEnd",$]},features:[Ce([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]})}return t})(),pg=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}},WA=(()=>{class t extends pg{constructor(){super(p(tc),p(Z))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[_e]})}return t})();var GA=(()=>{class t extends pg{constructor(){let e=p(tc),n=p(Z);super(e,n);let o=e._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[_e]})}return t})(),hg=class{tasks=[];endTasks=[]},fg=new R("_COALESCED_STYLE_SCHEDULER"),NC=(()=>{class t{_currentSchedule=null;_ngZone=p(ie);constructor(){}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new hg,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let e=this._currentSchedule;this._currentSchedule=new hg;for(let n of e.tasks)n();for(let n of e.endTasks)n()}this._currentSchedule=null})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var LC=(()=>{class t{template=p(St);_differs=p(Sr);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 uu?e.headerCell.template:this instanceof VC?e.footerCell.template:e.cell.template}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,features:[Be]})}return t})(),uu=(()=>{class t extends LC{_table=p(Io,{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(St),p(Sr))}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=B({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",$]},features:[_e,Be]})}return t})(),VC=(()=>{class t extends LC{_table=p(Io,{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(St),p(Sr))}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=B({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",$]},features:[_e,Be]})}return t})(),bg=(()=>{class t extends LC{_table=p(Io,{optional:!0});when;constructor(){super(p(St),p(Sr))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[_e]})}return t})(),Ds=(()=>{class t{_viewContainer=p(Rt);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=B({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),BC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({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&&En(0,0)},dependencies:[Ds],encapsulation:2})}return t})();var jC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({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&&En(0,0)},dependencies:[Ds],encapsulation:2})}return t})(),$A=(()=>{class t{templateRef=p(St);_contentClassName="cdk-no-data-row";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),zA=["top","bottom","left","right"],FC=class{_isNativeHtmlTable;_stickCellCss;direction;_coalescedStyleScheduler;_isBrowser;_needsPositionStickyOnElement;_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,o,r=!0,a=!0,s,c){this._isNativeHtmlTable=i,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=o,this._isBrowser=r,this._needsPositionStickyOnElement=a,this._positionListener=s,this._tableInjector=c,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));this._afterNextRender({write:()=>{for(let o of n)this._removeStickyStyle(o,e)}})}updateStickyColumns(i,e,n,o=!0,r=!0){if(!i.length||!this._isBrowser||!(e.some(K=>K)||n.some(K=>K))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=i[0],s=a.children.length,c=this.direction==="rtl",m=c?"right":"left",f=c?"left":"right",v=e.lastIndexOf(!0),D=n.indexOf(!0),x,M,O;r&&this._updateStickyColumnReplayQueue({rows:[...i],stickyStartStates:[...e],stickyEndStates:[...n]}),this._afterNextRender({earlyRead:()=>{x=this._getCellWidths(a,o),M=this._getStickyStartColumnPositions(x,e),O=this._getStickyEndColumnPositions(x,n)},write:()=>{for(let K of i)for(let U=0;U!!K)&&(this._positionListener.stickyColumnsUpdated({sizes:v===-1?[]:x.slice(0,v+1).map((K,U)=>e[U]?K:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:D===-1?[]:x.slice(D).map((K,U)=>n[U+D]?K:null).reverse()}))}})}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=[],c=[];this._afterNextRender({earlyRead:()=>{for(let m=0,f=0;m{let m=r.lastIndexOf(!0);for(let f=0;f{let n=i.querySelector("tfoot");n&&(e.some(o=>!o)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1))}})}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]);zA.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 zA)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&&uG(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))}_afterNextRender(i){this._tableInjector?Ht(i,{injector:this._tableInjector}):this._coalescedStyleScheduler.schedule(()=>{i.earlyRead?.(),i.write()})}};function uG(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(i=>t.classList.contains(i))}var gg=new R("CDK_SPL");var zC=(()=>{class t{viewContainer=p(Rt);elementRef=p(Z);constructor(){let e=p(Io);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","rowOutlet",""]]})}return t})(),UC=(()=>{class t{viewContainer=p(Rt);elementRef=p(Z);constructor(){let e=p(Io);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),HC=(()=>{class t{viewContainer=p(Rt);elementRef=p(Z);constructor(){let e=p(Io);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),WC=(()=>{class t{viewContainer=p(Rt);elementRef=p(Z);constructor(){let e=p(Io);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})();var GC=(()=>{class t{_differs=p(Sr);_changeDetectorRef=p(xe);_elementRef=p(Z);_dir=p(Pt,{optional:!0});_platform=p(et);_viewRepeater=p(Ol);_coalescedStyleScheduler=p(fg);_viewportRuler=p(Ei);_stickyPositioningListener=p(gg,{optional:!0,skipSelf:!0});_document=p(he);_data;_onDestroy=new z;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_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;_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)}_dataSource;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._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new k;viewChange=new bt({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=p(Ie);constructor(){p(new Nn("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(Te(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){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._onDestroy.next(),this._onDestroy.complete(),Fd(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===sa.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=UA(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=UA(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())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let e=[],n=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return e;for(let o=0;o{let s=o&&o.has(a)?o.get(a):[];if(s.length){let c=s.shift();return c.dataIndex=n,c}else return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),mg(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=mg(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=mg(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=mg(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(n=>!n.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let c=!!s.getColumnsDiff();return a||c},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=[],Fd(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;Fd(this.dataSource)?e=this.dataSource.connect(this):js(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=ae(this.dataSource)),this._renderChangeSubscription=e.pipe(Te(this._onDestroy)).subscribe(n=>{this._data=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 c=this._columnDefsByName.get(s);return c}),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))Ds.mostRecentCellOutlet&&Ds.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";this._stickyStyler=new FC(this._isNativeHtmlTable,this.stickyCssClass,e,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:ae()).pipe(Te(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(n=>!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];r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(e._contentClassName))}else o.clear();this._isShowingNoDataRow=n,this._changeDetectorRef.markForCheck()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,r){if(n&1&&(je(r,$A,5),je(r,tc,5),je(r,bg,5),je(r,uu,5),je(r,VC,5)),n&2){let a;q(a=Y())&&(o._noDataRow=a.first),q(a=Y())&&(o._contentColumnDefs=a),q(a=Y())&&(o._contentRowDefs=a),q(a=Y())&&(o._contentHeaderRowDefs=a),q(a=Y())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&ee("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",$],fixedLayout:[2,"fixedLayout","fixedLayout",$]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Ce([{provide:Io,useExisting:t},{provide:Ol,useClass:Cs},{provide:fg,useClass:NC},{provide:gg,useValue:null}])],ngContentSelectors:sG,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(Le(aG),ce(0),ce(1,1),E(2,lG,1,0)(3,cG,7,0)(4,dG,4,0)),n&2&&(u(2),I(o._isServer?2:-1),u(),I(o._isNativeHtmlTable?3:4))},dependencies:[UC,zC,WC,HC],styles:[`.cdk-table-fixed-layout{table-layout:fixed} -`],encapsulation:2})}return t})();function mg(t,i){return t.concat(Array.from(i))}function UA(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 qA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[Ld]})}return t})();var mG=[[["caption"]],[["colgroup"],["col"]],"*"],pG=["caption","colgroup, col","*"];function hG(t,i){t&1&&ce(0,2)}function fG(t,i){t&1&&(l(0,"thead",0),En(1,1),d(),l(2,"tbody",2),En(3,3)(4,4),d(),l(5,"tfoot",0),En(6,5),d())}function gG(t,i){t&1&&En(0,1)(1,3)(2,4)(3,5)}var Cg=(()=>{class t extends GC{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275cmp=S({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&&ee("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[Ce([{provide:GC,useExisting:t},{provide:Io,useExisting:t},{provide:fg,useClass:NC},{provide:Ol,useClass:Cs},{provide:gg,useValue:null}]),_e],ngContentSelectors:pG,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(Le(mG),ce(0),ce(1,1),E(2,hG,1,0)(3,fG,7,0)(4,gG,4,0)),n&2&&(u(2),I(o._isServer?2:-1),u(),I(o._isNativeHtmlTable?3:4))},dependencies:[UC,zC,WC,HC],styles:[`.mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:var(--mat-table-header-container-height, 56px)}mat-row{min-height:var(--mat-table-row-item-container-height, 52px)}mat-footer-row{min-height:var(--mat-table-footer-container-height, 52px)}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-sys-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mdc-data-table__row:last-child>.mat-mdc-header-cell{border-bottom:none}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child>.mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking))}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch} -`],encapsulation:2})}return t})(),wg=(()=>{class t extends _g{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["","matCellDef",""]],features:[Ce([{provide:_g,useExisting:t}]),_e]})}return t})(),xg=(()=>{class t extends vg{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["","matHeaderCellDef",""]],features:[Ce([{provide:vg,useExisting:t}]),_e]})}return t})();var Dg=(()=>{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=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Ce([{provide:tc,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),_e]})}return t})(),Sg=(()=>{class t extends WA{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[_e]})}return t})();var Eg=(()=>{class t extends GA{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[_e]})}return t})();var Mg=(()=>{class t extends uu{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",$]},features:[Ce([{provide:uu,useExisting:t}]),_e]})}return t})();var Tg=(()=>{class t extends bg{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Ce([{provide:bg,useExisting:t}]),_e]})}return t})(),Ig=(()=>{class t extends BC{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275cmp=S({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:[Ce([{provide:BC,useExisting:t}]),_e],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&En(0,0)},dependencies:[Ds],encapsulation:2})}return t})();var kg=(()=>{class t extends jC{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275cmp=S({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ce([{provide:jC,useExisting:t}]),_e],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&En(0,0)},dependencies:[Ds],encapsulation:2})}return t})();var YA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,qA,fe]})}return t})(),_G=9007199254740991,yg=class extends ps{_data;_renderData=new bt([]);_filter=new bt("");_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(Dh(n)){let o=Number(n);return o<_G?o:n}return n};sortData=(i,e)=>{let n=e.active,o=e.direction;return!n||o==""?i:i.sort((r,a)=>{let s=this.sortingDataAccessor(r,n),c=this.sortingDataAccessor(a,n),m=typeof s,f=typeof c;m!==f&&(m==="number"&&(s+=""),f==="number"&&(c+=""));let v=0;return s!=null&&c!=null?s>c?v=1:s{let n=e.trim().toLowerCase();return Object.values(i).some(o=>`${o}`.toLowerCase().includes(n))};constructor(i=[]){super(),this._data=new bt(i),this._updateChangeSubscription()}_updateChangeSubscription(){let i=this._sort?_t(this._sort.sortChange,this._sort.initialized):ae(null),e=this._paginator?_t(this._paginator.page,this._internalPageChanges,this._paginator.initialized):ae(null),n=this._data,o=Ri([n,this._filter]).pipe(pe(([s])=>this._filterData(s))),r=Ri([o,i]).pipe(pe(([s])=>this._orderData(s))),a=Ri([r,e]).pipe(pe(([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 KA=(()=>{class t{transform(e){return Uy(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Yo({name:"isEmpty",type:t,pure:!0,standalone:!1})}}return t})(),mn=(()=>{class t{transform(e){return!Uy(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Yo({name:"notEmpty",type:t,pure:!0,standalone:!1})}}return t})();var ZA=(()=>{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=Yo({name:"sort",type:t,pure:!0,standalone:!1})}}return t})();var bG=["trigger"],yG=()=>[5,10,25,100,1e3];function CG(t,i){if(t&1&&T(0,"img",7),t&2){let e=g();_("src",e.icon,Ee)}}function wG(t,i){if(t&1){let e=A();l(0,"button",44),b("click",function(){let o=C(e).$implicit,r=g(5);return w(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=g(5);_("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Wt)}}function xG(t,i){if(t&1&&(l(0,"button",41),h(1),d(),l(2,"mat-menu",42,3),oe(4,wG,1,1,"button",43,le),dt(6,"sort"),d()),t&2){let e=i.$implicit,n=Ge(3);_("matMenuTriggerFor",n),u(),de(e.key),u(),_("overlapTrigger",!1),u(2),re(_0(6,3,e.value,"name"))}}function DG(t,i){if(t&1&&(l(0,"mat-menu",38,2),oe(2,xG,7,6,null,null,le),dt(4,"keyvalue"),d(),l(5,"a",39)(6,"i",23),h(7,"insert_drive_file"),d(),l(8,"span",40)(9,"uds-translate"),h(10,"New"),d()(),l(11,"i",23),h(12,"arrow_drop_down"),d()()),t&2){let e=Ge(1),n=g(3);_("overlapTrigger",!1),u(2),re(vt(4,2,n.grpTypes)),u(3),_("matMenuTriggerFor",e)}}function SG(t,i){if(t&1){let e=A();l(0,"button",46),b("click",function(){let o=C(e).$implicit,r=g(4);return w(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=g(4);_("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Wt)}}function EG(t,i){if(t&1&&(l(0,"mat-menu",38,2),oe(2,SG,1,1,"button",45,le),dt(4,"sort"),d(),l(5,"a",39)(6,"i",23),h(7,"insert_drive_file"),d(),l(8,"span",40)(9,"uds-translate"),h(10,"New"),d()(),l(11,"i",23),h(12,"arrow_drop_down"),d()()),t&2){let e=Ge(1),n=g(3);_("overlapTrigger",!1),u(2),re(_0(4,2,n.oTypes,"name")),u(3),_("matMenuTriggerFor",e)}}function MG(t,i){if(t&1&&E(0,DG,13,4)(1,EG,13,5),t&2){let e=g(2);I(e.newGrouped?0:-1),u(),I(e.newGrouped?-1:1)}}function TG(t,i){if(t&1){let e=A();l(0,"a",47),b("click",function(){C(e);let o=g(2);return w(o.newAction.emit({param:void 0,table:o}))}),l(1,"i",23),h(2,"insert_drive_file"),d(),l(3,"span",40)(4,"uds-translate"),h(5,"New"),d()()()}}function IG(t,i){if(t&1&&E(0,MG,2,2)(1,TG,6,0,"a",37),t&2){let e=g();I(e.oTypes!==void 0&&e.oTypes.length!==0?0:-1),u(),I(e.oTypes!==void 0&&e.oTypes.length===0?1:-1)}}function kG(t,i){if(t&1){let e=A();l(0,"a",48),b("click",function(){C(e);let o=g();return w(o.emitIfSelection(o.editAction))}),l(1,"i",23),h(2,"edit"),d(),l(3,"span",40)(4,"uds-translate"),h(5,"Edit"),d()()()}if(t&2){let e=g();_("disabled",e.selection.selected.length!==1)}}function AG(t,i){if(t&1){let e=A();l(0,"a",48),b("click",function(){C(e);let o=g();return w(o.permissions())}),l(1,"i",23),h(2,"perm_identity"),d(),l(3,"span",40)(4,"uds-translate"),h(5,"Permissions"),d()()()}if(t&2){let e=g();_("disabled",e.selection.selected.length!==1)}}function RG(t,i){if(t&1){let e=A();l(0,"a",50),b("click",function(){let o=C(e).$implicit,r=g(2);return w(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=g(2);_("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Wt)}}function OG(t,i){if(t&1&&oe(0,RG,1,2,"a",49,le),t&2){let e=g();re(e.getcustomButtons())}}function PG(t,i){if(t&1){let e=A();l(0,"a",51),b("click",function(){C(e);let o=g();return w(o.export())}),l(1,"i",23),h(2,"import_export"),d(),l(3,"span",40)(4,"uds-translate"),h(5,"Export CSV"),d()()()}}function FG(t,i){if(t&1){let e=A();l(0,"a",52),b("click",function(){C(e);let o=g();return w(o.emitIfSelection(o.deleteAction,!0))}),l(1,"i",23),h(2,"delete_forever"),d(),l(3,"span",40)(4,"uds-translate"),h(5,"Delete"),d()()()}if(t&2){let e=g();_("disabled",e.selection.isEmpty())}}function NG(t,i){if(t&1){let e=A();l(0,"button",53),b("click",function(){C(e);let o=g();return o.filterText="",w(o.applyFilter())}),l(1,"i",23),h(2,"clear"),d()()}}function LG(t,i){if(t&1){let e=A();l(0,"mat-header-cell")(1,"mat-checkbox",56),b("change",function(){C(e);let o=g(2);return w(o.masterToggle())}),d()()}if(t&2){let e=g(2);u(),_("checked",e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function VG(t,i){if(t&1){let e=A();l(0,"mat-cell",57),b("click",function(o){let r=C(e).$implicit,a=g(2);return w(a.clickRow(r,o))}),l(1,"mat-checkbox",58),b("click",function(o){return C(e),w(o.stopPropagation())})("change",function(){let o=C(e).$implicit,r=g(2);return w(r.selection.toggle(o))}),d()()}if(t&2){let e=i.$implicit,n=g(2);u(),_("checked",n.selection.isSelected(e))}}function BG(t,i){t&1&&(xr(0,26),E(1,LG,2,2,"mat-header-cell",54)(2,VG,2,1,"mat-cell",55),Dr())}function jG(t,i){if(t&1){let e=A();l(0,"mat-header-cell",61),b("click",function(){C(e);let o=g().$implicit,r=g();return w(!r.isSortable(o.name)&&r.onNotSortableClick(o.title))}),h(1),d()}if(t&2){let e=g().$implicit,n=g();ee("non-sortable",!n.isSortable(e.name)),_("disabled",!n.isSortable(e.name))("ngStyle",n.columnStyle(e)),u(),F(" ",e.title," ")}}function zG(t,i){if(t&1){let e=A();l(0,"mat-cell",62),b("click",function(o){let r=C(e).$implicit,a=g(2);return w(a.clickRow(r,o))})("contextmenu",function(o){let r=C(e).$implicit,a=g().$implicit,s=g();return w(s.onContextMenu(r,a,o))}),T(1,"div",63),d()}if(t&2){let e=i.$implicit,n=g().$implicit,o=g();_("ngStyle",o.columnStyle(n)),u(),_("innerHtml",o.getRowColumn(e,n),Wt)}}function UG(t,i){if(t&1&&(xr(0,27),E(1,jG,2,5,"mat-header-cell",59)(2,zG,2,2,"mat-cell",60),Dr()),t&2){let e=i.$implicit;Xr("matColumnDef",e.name)}}function HG(t,i){t&1&&T(0,"mat-header-row")}function WG(t,i){if(t&1&&T(0,"mat-row",64),t&2){let e=i.$implicit,n=g();_("ngClass",n.rowClass(e))}}function GG(t,i){if(t&1&&(l(0,"div",34),h(1),l(2,"uds-translate"),h(3,"Selected items"),d()()),t&2){let e=g();u(),F(" ",e.selection.selected.length," ")}}function $G(t,i){if(t&1){let e=A();l(0,"button",68),b("click",function(){C(e);let o=g(2);return w(o.copyToClipboard())}),l(1,"i",69),h(2,"content_copy"),d(),l(3,"uds-translate"),h(4,"Copy"),d()()}}function qG(t,i){if(t&1){let e=A();l(0,"button",68),b("click",function(){C(e);let o=g().item,r=g();return w(r.detailAction.emit({param:o,table:r}))}),l(1,"i",69),h(2,"subdirectory_arrow_right"),d(),l(3,"uds-translate"),h(4,"Detail"),d()()}}function YG(t,i){if(t&1){let e=A();l(0,"button",68),b("click",function(){C(e);let o=g(2);return w(o.emitIfSelection(o.editAction))}),l(1,"i",69),h(2,"edit"),d(),l(3,"uds-translate"),h(4,"Edit"),d()()}}function QG(t,i){if(t&1){let e=A();l(0,"button",68),b("click",function(){C(e);let o=g(2);return w(o.permissions())}),l(1,"i",69),h(2,"perm_identity"),d(),l(3,"uds-translate"),h(4,"Permissions"),d()()}}function KG(t,i){if(t&1){let e=A();l(0,"button",70),b("click",function(){let o=C(e).$implicit,r=g(2);return w(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=g(2);_("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Wt)}}function ZG(t,i){if(t&1){let e=A();l(0,"button",71),b("click",function(){C(e);let o=g(2);return w(o.emitIfSelection(o.deleteAction))}),l(1,"i",69),h(2,"delete_forever"),d(),l(3,"uds-translate"),h(4,"Delete"),d()()}}function XG(t,i){if(t&1){let e=A();l(0,"button",70),b("click",function(){let o=C(e).$implicit,r=g(3);return w(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=g(3);_("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Wt)}}function JG(t,i){if(t&1&&(T(0,"mat-divider"),oe(1,XG,1,2,"button",66,le)),t&2){let e=g(2);u(),re(e.getCustomAccelerators())}}function e$(t,i){if(t&1&&(E(0,$G,5,0,"button",65)(1,qG,5,0,"button",65)(2,YG,5,0,"button",65)(3,QG,5,0,"button",65),oe(4,KG,1,2,"button",66,le),E(6,ZG,5,0,"button",67)(7,JG,3,0)),t&2){let e=g();I(e.allowCopy===!0?0:-1),u(),I(e.detailAction.observed?1:-1),u(),I(e.editAction.observed?2:-1),u(),I(e.hasPermissions===!0?3:-1),u(),re(e.getCustomMenu()),u(2),I(e.deleteAction.observed?6:-1),u(),I(e.hasAccelerators?7:-1)}}var Me=(()=>{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 k,this.rowSelected=new k,this.newAction=new k,this.editAction=new k,this.deleteAction=new k,this.customButtonAction=new k,this.detailAction=new k,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.types=new Map,this.oTypes=[],this.grpTypes=new Map,this.rowStyleInfo=null,this.selection=new or(!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 bt(""),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 V(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&kr.MANAGEMENT)===0&&(this.newAction.unsubscribe(),this.editAction.unsubscribe(),this.deleteAction.unsubscribe(),this.customButtonAction.unsubscribe()),e!==kr.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{}try{o=yield this.rest.tableInfo()}catch{}if(this.dataSource=new lg(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 or(this.multiSelect===!0,[]),this.autoReload&&this.autoReloadInterval>0){let r=Math.max(this.autoReloadInterval,1e4);this.activitySub=_t(Ia(document,"click"),Ia(document,"keydown"),Ia(document,"mousemove")).subscribe(()=>this.lastActivityTime=Date.now()),this.reloadSub=wc(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 V(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=m=>{c.width===void 0&&(c.width=m)},c=r[a];switch(c.type){case void 0:c.type=Ft.ALPHANUMERIC,s("10rem");break;case Ft.DATE:case Ft.DATETIME:case Ft.TIME:case Ft.DATETIMESEC:s("13rem");break;case Ft.IMAGE:case Ft.BOOLEAN:s("6.5rem");break;case Ft.NUMERIC:s("9rem");break}o.push({name:a,title:c.title,type:c.type===void 0?Ft.ALPHANUMERIC:c.type,dict:c.dict,width:c.width}),(c.visible===void 0||c.visible)&&this.displayedColumns.push(a)}this.columns=o})}getcustomButtons(){return this.customButtons?this.customButtons.filter(e=>e.type!==ot.ONLY_MENU&&e.type!==ot.ACCELERATOR):[]}getCustomMenu(){return this.customButtons?this.customButtons.filter(e=>e.type!==ot.ACCELERATOR):[]}getCustomAccelerators(){return this.customButtons?this.customButtons.filter(e=>e.type===ot.ACCELERATOR):[]}getRowColumn(e,n){let o=e[n.name];switch(n.type){case Ft.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 Ft.IMAGE:return this.api.safeString(this.api.gui.icon_from_image(o,"48px"));case Ft.DATE:o=Un("SHORT_DATE_FORMAT",o);break;case Ft.DATETIME:o=Un("SHORT_DATETIME_FORMAT",o);break;case Ft.TIME:o=Un("TIME_FORMAT",o);break;case Ft.DATETIMESEC:o=Un("SHORT_DATE_FORMAT",o," H:i:s");break;case Ft.ICON:typeof o=="string"&&(o=o.replace(//g,">"));try{o=this.api.gui.icon_from_image(this.types.get(e.type).icon)+o}catch{}return this.api.safeString(o);case Ft.DICTIONARY:try{o=n.dict[o]}catch{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 ot.SINGLE_SELECT:return this.selection.selected.length!==1||e.disabled===!0;case ot.MULTI_SELECT:return this.selection.isEmpty()||e.disabled===!0;default:return!1}}emitCustom(e){!this.selection.selected.length&&e.type!==ot.ALWAYS||(e.type===ot.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 V(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(){sg(this)}permissions(){this.selection.selected.length&&SA.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)(y(j),y(ga),y(kA),y(xe))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-table"]],viewQuery:function(n,o){if(n&1&&(me(bG,7),me(Rr,7),me(Or,7)),n&2){let r;q(r=Y())&&(o.contextMenu=r.first),q(r=Y())&&(o.paginator=r.first),q(r=Y())&&(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=A();l(0,"div",4)(1,"div",5)(2,"div",6),E(3,CG,1,1,"img",7),h(4),d(),l(5,"div",8),h(6),d()(),l(7,"div",9)(8,"div",10)(9,"div",11),E(10,IG,2,2)(11,kG,6,1,"a",12)(12,AG,6,1,"a",12)(13,OG,2,0)(14,PG,6,0,"a",13)(15,FG,6,1,"a",14),d(),l(16,"div",15)(17,"div",16)(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),h(21,"Filter"),d()(),l(22,"input",17),b("input",function(){return C(r),w(o.applyFilter())}),W("ngModelChange",function(s){return C(r),G(o.filterText,s)||(o.filterText=s),w(s)}),d(),E(23,NG,3,0,"button",18),dt(24,"notEmpty"),d()(),l(25,"div",19),T(26,"mat-paginator",20),d(),l(27,"div",21)(28,"a",22),b("click",function(){return C(r),w(o.reloadPage())}),l(29,"i",23),h(30,"autorenew"),d()()()()(),l(31,"div",24),b("keydown",function(s){return C(r),w(o.keyDown(s))}),l(32,"mat-table",25),b("matSortChange",function(s){return C(r),w(o.sortChanged(s))}),E(33,BG,3,0,"ng-container",26),oe(34,UG,3,1,"ng-container",27,le),E(36,HG,1,0,"mat-header-row",28)(37,WG,1,1,"mat-row",29),d(),l(38,"div",30)(39,"div",31),T(40,"mat-progress-spinner",32),d()()(),l(41,"div",33),h(42," \xA0 "),E(43,GG,4,1,"div",34),d()()(),T(44,"div",35,0),l(46,"mat-menu",null,1),E(48,e$,8,6,"ng-template",36),d()}if(n&2){let r=Ge(47);ee("nav-header",o.navHeader),u(3),I(o.icon!==void 0?3:-1),u(),F(" ",o.title," "),u(2),F(" ",o.subtitle," "),u(4),I(o.newAction.observed?10:-1),u(),I(o.editAction.observed?11:-1),u(),I(o.hasPermissions===!0?12:-1),u(),I(o.hasCustomButtons?13:-1),u(),I(o.allowExport===!0?14:-1),u(),I(o.deleteAction.observed?15:-1),u(7),H("ngModel",o.filterText),u(),I(vt(24,29,o.filterText)?23:-1),u(3),_("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",pl(31,yG))("showFirstLastButtons",!0),u(6),_("dataSource",o.dataSource)("trackBy",o.trackById),u(),I(o.hasButtons?33:-1),u(),re(o.columns),u(2),_("matHeaderRowDef",o.displayedColumns),u(),_("matRowDefColumns",o.displayedColumns),u(),_("hidden",!o.loading),u(5),I(o.hasButtons&&o.selection.selected.length>0?43:-1),u(),Vn("left",o.contextMenuPosition.x)("top",o.contextMenuPosition.y),_("matMenuTriggerFor",r)}},dependencies:[ii,Zc,st,we,Se,ua,$d,On,ba,xs,OA,dg,ge,Ae,Ui,mt,Cg,xg,Mg,Dg,wg,Tg,Sg,Eg,Ig,kg,Rr,Or,Jf,Jl,ec,og,ue,I0,mn,ZA],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}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)!important;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 XA='pause'+django.gettext("Maintenance")+"",t$='pause'+django.gettext("Exit maintenance mode")+"",n$='pause'+django.gettext("Enter maintenance mode")+"",$C=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:XA,type:ot.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=XA;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=t$:this.customButtons[0].html=n$}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 V(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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"uds-table",0),b("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&&_("rest",o.rest.providers)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Me],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 lo=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?Ft.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 oi({"X-Total-Count":n.length.toString()})})):Promise.resolve({items:this.data,headers:new oi({"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 kr.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 i$=()=>[5,10,25,100,1e3];function o$(t,i){if(t&1){let e=A();l(0,"button",24),b("click",function(){C(e);let o=g();return o.filterText="",w(o.applyFilter())}),l(1,"i",8),h(2,"close"),d()()}}function r$(t,i){if(t&1&&(l(0,"mat-header-cell",27),h(1),d()),t&2){let e=g().$implicit;u(),de(e)}}function a$(t,i){if(t&1&&(l(0,"mat-cell"),T(1,"div",28),d()),t&2){let e=i.$implicit,n=g().$implicit,o=g();u(),_("innerHtml",o.getRowColumn(e,n),Wt)}}function s$(t,i){if(t&1&&(xr(0,20),E(1,r$,2,1,"mat-header-cell",25)(2,a$,2,1,"mat-cell",26),Dr()),t&2){let e=i.$implicit;_("matColumnDef",e)}}function l$(t,i){t&1&&T(0,"mat-header-row")}function c$(t,i){if(t&1&&T(0,"mat-row",29),t&2){let e=i.$implicit,n=g();_("ngClass",n.rowClass(e))}}var Ti=(()=>{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 yg([]),this.selection=new or}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"?Ft.DATETIMESEC:Ft.ALPHANUMERIC;this.columns.push({name:e,title:e,type:n})}this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.reloadPage()}reloadPage(){return V(this,null,function*(){this.dataSource.data=yield this.rest.getLogs(this.itemId)})}selectElement(e){return V(this,null,function*(){})}getRowColumn(e,n){let o=e[n];return n==="date"?o=Un("SHORT_DATE_FORMAT",o," H:i:s"):n==="level"&&(o=EI(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(){sg(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)(y(j))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-logs-table"]],viewQuery:function(n,o){if(n&1&&(me(Rr,7),me(Or,7)),n&2){let r;q(r=Y())&&(o.paginator=r.first),q(r=Y())&&(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&&(l(0,"div",0)(1,"div",1)(2,"div",2),T(3,"img",3),h(4," \xA0"),l(5,"uds-translate"),h(6,"Logs"),d()()(),l(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),b("click",function(){return o.export()}),l(11,"i",8),h(12,"import_export"),d(),l(13,"span",9)(14,"uds-translate"),h(15,"Export"),d()()()(),l(16,"div",10)(17,"div",11)(18,"uds-translate"),h(19,"Filter"),d(),h(20,"\xA0 "),l(21,"mat-form-field")(22,"input",12),b("keyup",function(){return o.applyFilter()}),W("ngModelChange",function(a){return G(o.filterText,a)||(o.filterText=a),a}),d(),E(23,o$,3,0,"button",13),dt(24,"notEmpty"),d()(),l(25,"div",14),T(26,"mat-paginator",15),d(),l(27,"div",16)(28,"a",17),b("click",function(){return o.reloadPage()}),l(29,"i",8),h(30,"autorenew"),d()()()()(),l(31,"div",18),b("keydown",function(a){return o.keyDown(a)}),l(32,"mat-table",19),b("matSortChange",function(a){return o.sortChanged(a)}),oe(33,s$,3,1,"ng-container",20,le),E(35,l$,1,0,"mat-header-row",21)(36,c$,1,1,"mat-row",22),d()(),T(37,"div",23),d()()),n&2&&(u(3),_("src",o.api.staticURL("admin/img/icons/logs.png"),Ee),u(19),H("ngModel",o.filterText),u(),I(vt(24,10,o.filterText)?23:-1),u(3),_("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",pl(12,i$))("showFirstLastButtons",!0),u(6),_("dataSource",o.dataSource),u(),re(o.displayedColumns),u(2),_("matHeaderRowDef",o.displayedColumns),u(),_("matRowDefColumns",o.displayedColumns))},dependencies:[ii,st,we,Se,ua,De,$d,On,ge,Ui,mt,Cg,xg,Mg,Dg,wg,Tg,Sg,Eg,Ig,kg,Rr,Or,Jf,ue,mn],styles:[".header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0rem}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{min-width:12rem;max-width:20rem}.mat-column-level[_ngcontent-%COMP%]{max-width:8rem;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:8rem} .level-60000>.mat-mdc-cell{color:#ff1e1e!important} .level-50000>.mat-mdc-cell{color:#ff1e1e!important} .level-40000>.mat-mdc-cell{color:#d65014!important}.filter[_ngcontent-%COMP%]{display:flex;align-items:center;width:16rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-infix{min-height:3rem;padding-top:1rem!important;padding-bottom:1rem!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-bottom-align{height:0px}"]})}}return t})();function d$(t,i){t&1&&(l(0,"uds-translate"),h(1,"Services pools"),d())}function u$(t,i){t&1&&(l(0,"uds-translate"),h(1,"Logs"),d())}var m$=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],JA=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.customButtons=[wn.getGotoButton(tu,"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 lo(django.gettext("Service pools"),e,m$,this.service.id+"infopsls")}static{this.\u0275fac=function(n){return new(n||t)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"Information for"),d(),h(3),d(),l(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),E(7,d$,2,0,"ng-template",1),T(8,"uds-table",2),d(),l(9,"mat-tab"),E(10,u$,2,0,"ng-template",1),l(11,"div",3),T(12,"uds-logs-table",4),d()()()(),l(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),h(16,"Ok"),d()()()),n&2&&(u(3),F(" ",o.service.name,` -`),u(5),_("rest",o.servicePools)("customButtons",o.customButtons)("pageSize",6),u(4),_("rest",o.services)("itemId",o.service.id)("tableId","serviceInfo-d-log"+o.service.id)("pageSize",5))},dependencies:[De,jt,$e,Ye,qe,Yt,Qt,Xt,ue,Me,Ti],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})();function p$(t,i){if(t&1&&(l(0,"div",2),T(1,"div",3)(2,"div",4),d()),t&2){let e=i.$implicit;u(),_("innerHTML",e.gui.label,Wt),u(),_("innerHTML",e.value,Wt)}}var co=(()=>{class t{constructor(e){this.api=e,this.gui=[]}ngOnInit(){this.processFields()}processFields(){if(!this.gui||!this.value)return;let e=this.gui.filter(n=>n.gui.type!==ui.HIDDEN);for(let n of e){let o=this.value[n.name];switch(n.gui.type){case ui.CHECKBOX:n.value=o?django.gettext("Yes"):django.gettext("No");break;case ui.PASSWORD:n.value=django.gettext("(hidden)");break;case ui.CHOICE:{let r=Yd.locateChoice(o,n);n.value=r.text;break}case ui.MULTI_CHOICE:n.value=django.gettext("Selected items :")+o.length;break;case ui.IMAGECHOICE:{let r=Yd.locateChoice(o,n);r.img&&(n.value=this.api.safeString(this.api.gui.icon_from_image(r.img)+" "+r.text));break}case ui.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)(y(j))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},standalone:!1,decls:5,vars:0,consts:[[1,"card"],[1,"card-content"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1),oe(2,p$,3,2,"div",2,le),d(),T(4,"div"),d()),n&2&&(u(2),re(o.processFields()))},styles:[".card-content[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column}.item[_ngcontent-%COMP%]{padding-bottom:.5rem;display:flex}.label[_ngcontent-%COMP%]{font-weight:700;width:32rem;overflow-x:hidden;text-overflow:ellipsis;text-align:end;margin-right:1rem;align-self:center}"]})}}return t})();var h$=t=>["/services","providers",t];function f$(t,i){t&1&&(l(0,"uds-translate"),h(1,"Summary"),d())}function g$(t,i){if(t&1&&T(0,"uds-information",10),t&2){let e=g(2);_("value",e.provider)("gui",e.gui)}}function _$(t,i){t&1&&(l(0,"uds-translate"),h(1,"Services"),d())}function v$(t,i){t&1&&(l(0,"uds-translate"),h(1,"Usage"),d())}function b$(t,i){t&1&&(l(0,"uds-translate"),h(1,"Logs"),d())}function y$(t,i){if(t&1){let e=A();l(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),W("selectedIndexChange",function(o){C(e);let r=g();return G(r.selectedTab,o)||(r.selectedTab=o),w(o)}),l(3,"mat-tab"),E(4,f$,2,0,"ng-template",8),l(5,"div",9),E(6,g$,1,2,"uds-information",10),d()(),l(7,"mat-tab"),E(8,_$,2,0,"ng-template",8),l(9,"div",9)(10,"uds-table",11),b("newAction",function(o){C(e);let r=g();return w(r.onNewService(o))})("editAction",function(o){C(e);let r=g();return w(r.onEditService(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteService(o))})("customButtonAction",function(o){C(e);let r=g();return w(r.onInformation(o))})("loaded",function(o){C(e);let r=g();return w(r.onLoad(o))}),d()()(),l(11,"mat-tab"),E(12,v$,2,0,"ng-template",8),l(13,"div",9)(14,"uds-table",12),b("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteUsage(o))}),d()()(),l(15,"mat-tab"),E(16,b$,2,0,"ng-template",8),l(17,"div",9),T(18,"uds-logs-table",13),d()()()()()}if(t&2){let e=g();u(2),H("selectedIndex",e.selectedTab),_("@.disabled",!0),u(4),I(e.provider&&e.gui?6:-1),u(4),_("rest",e.services)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-services"+e.provider.id),u(4),_("rest",e.usage)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-usage"+e.provider.id),u(4),_("rest",e.services.parentModel)("itemId",e.provider.id)("tableId","providers-d-log"+e.provider.id)}}var qC=(()=>{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:ot.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){JA.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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),h(4,"arrow_back"),d()(),h(5," \xA0"),T(6,"img",4),h(7),d(),E(8,y$,19,17,"div",5),d()),n&2&&(u(2),_("routerLink",Qn(4,h$,o.services.parentId)),u(4),_("src",o.api.staticURL("admin/img/icons/services.png"),Ee),u(),F(" \xA0",o.provider==null?null:o.provider.name," "),u(),I(o.provider!==null?8:-1))},dependencies:[ln,Yt,Qt,Xt,ue,Me,Ti,co],encapsulation:2})}}return t})();var YC=(()=>{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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"uds-table",0),b("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&&_("rest",o.rest.serverGroups)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Me],encapsulation:2})}}return t})();var eR=(()=>{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 V(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(c=>{a(r.componentInstance.result)})})})}onFileChange(e){return V(this,null,function*(){let n=e.target.files[0];if(!n)return;this.filename=n.name;let o=new FileReader,r=new qt;o.onload=s=>{let c=o.result;r.resolve(c)},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)(y(j),y(Oe),y(ze))}}static{this.\u0275cmp=S({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=A();l(0,"h4",1)(1,"uds-translate"),h(2,"CVS Import options for"),d(),h(3,"\xA0"),T(4,"b",2),d(),l(5,"mat-dialog-content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"mat-form-field")(10,"mat-label")(11,"uds-translate"),h(12,"Header"),d()(),l(13,"mat-select",6),W("valueChange",function(s){return C(r),G(o.contains_header,s)||(o.contains_header=s),w(s)}),l(14,"mat-option",7)(15,"uds-translate"),h(16,"CSV contains header line"),d()(),l(17,"mat-option",7)(18,"uds-translate"),h(19,"CSV DOES NOT contains header line"),d()()()()(),l(20,"div",5)(21,"mat-form-field")(22,"mat-label")(23,"uds-translate"),h(24,"Separator"),d()(),l(25,"mat-select",6),W("valueChange",function(s){return C(r),G(o.separator,s)||(o.separator=s),w(s)}),l(26,"mat-option",8)(27,"uds-translate"),h(28,"Use comma"),d(),h(29," (,)"),d(),l(30,"mat-option",9)(31,"uds-translate"),h(32,"Use semicolon"),d(),h(33," (;)"),d(),l(34,"mat-option",10)(35,"uds-translate"),h(36,"Use pipe"),d(),h(37," (|)"),d(),l(38,"mat-option",11)(39,"uds-translate"),h(40,"Use tab"),d(),h(41," (tab)"),d()()()()()(),l(42,"div",12)(43,"mat-form-field")(44,"mat-label")(45,"uds-translate"),h(46,"File"),d()(),l(47,"input",13,0),b("change",function(s){return C(r),w(o.onFileChange(s))}),d(),l(49,"input",14),W("ngModelChange",function(s){return C(r),G(o.filename,s)||(o.filename=s),w(s)}),b("click",function(){C(r);let s=Ge(48);return w(s.click())}),d()()()(),l(50,"mat-dialog-actions")(51,"button",15)(52,"uds-translate"),h(53,"Ok"),d()(),l(54,"button",16),b("click",function(){return C(r),w(o.filename="")}),l(55,"uds-translate"),h(56,"Cancel"),d()()()}n&2&&(u(4),_("innerHTML",o.title,Wt),u(9),H("value",o.contains_header),u(),_("value",!0),u(3),_("value",!1),u(8),H("value",o.separator),u(24),H("ngModel",o.filename),_("placeholder","Click here to select file to import.")("matTooltip",o.help))},dependencies:[st,we,Se,De,To,jt,$e,Ye,qe,ge,Ae,mt,ht,Ze,ue],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 C$=t=>["/services","servers",t];function w$(t,i){t&1&&(l(0,"uds-translate"),h(1,"Summary"),d())}function x$(t,i){t&1&&(l(0,"uds-translate"),h(1,"Servers"),d())}function D$(t,i){if(t&1){let e=A();l(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),E(4,w$,2,0,"ng-template",8),l(5,"div",9),T(6,"uds-information",10),d()(),l(7,"mat-tab"),E(8,x$,2,0,"ng-template",8),l(9,"div",9)(10,"uds-table",11),b("newAction",function(o){C(e);let r=g();return w(r.onNew(o))})("editAction",function(o){C(e);let r=g();return w(r.onEdit(o))})("rowSelected",function(o){C(e);let r=g();return w(r.onRowSelect(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDelete(o))})("customButtonAction",function(o){C(e);let r=g();return w(r.customButtonAction(o))})("loaded",function(o){C(e);let r=g();return w(r.onLoad(o))}),d()()()()()()}if(t&2){let e=g();u(2),_("@.disabled",!0),u(4),_("value",e.server)("gui",e.gui),u(4),_("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 tR='pause'+django.gettext("Maintenance")+"",S$='pause'+django.gettext("Exit maintenance mode")+"",E$='pause'+django.gettext("Enter maintenance mode")+"",M$='import_export'+django.gettext("Import CSV")+"",nR=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:tR,type:ot.SINGLE_SELECT}],this.server=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isStaff?this.cButtons:[]}ngOnInit(){return V(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:M$,type:ot.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 V(this,null,function*(){let n=yield eR.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 V(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=tR;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=S$:this.customButtons[0].html=E$}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),h(4,"arrow_back"),d()(),h(5," \xA0"),T(6,"img",4),h(7),d(),E(8,D$,11,9,"div",5),d()),n&2&&(u(2),_("routerLink",Qn(4,C$,o.servers.parentId)),u(4),_("src",o.api.staticURL("admin/img/icons/servers.png"),Ee),u(),F(" \xA0",o.server==null?null:o.server.name," "),u(),I(o.server!==null?8:-1))},dependencies:[ln,Yt,Qt,Xt,ue,Me,co],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var QC=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){return V(this,null,function*(){let e=this.route.snapshot.paramMap.get("authenticator")})}onDetail(e){return V(this,null,function*(){this.api.navigation.gotoAuthenticatorDetail(e.param.id)})}onNew(e){return V(this,null,function*(){this.api.gui.forms.typedNewForm(e,django.gettext("New Authenticator"),!0)})}onEdit(e){return V(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Authenticator"),!0)})}onDelete(e){return V(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete Authenticator"))})}onLoad(e){return V(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)(y(j),y(ke),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div")(1,"uds-table",0),b("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&&(u(),_("rest",o.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Me],encapsulation:2})}}return t})();var KC=(()=>{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)(y(j),y(ke),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div")(1,"uds-table",0),b("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&&(u(),_("rest",o.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Me],encapsulation:2})}}return t})();var T$=["panel"],I$=["*"];function k$(t,i){if(t&1&&(l(0,"div",1,0),ce(2),d()),t&2){let e=i.id,n=g();Vt(n._classList),ee("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"),_("id",n.id),ne("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}var ZC=class{source;option;constructor(i,e){this.source=i,this.option=e}},iR=new R("mat-autocomplete-default-options",{providedIn:"root",factory:A$});function A$(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var ic=(()=>{class t{_changeDetectorRef=p(xe);_elementRef=p(Z);_defaults=p(iR);_animationsDisabled=p(tt,{optional:!0})==="NoopAnimations";_activeOptionChanges=be.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;optionSelected=new k;opened=new k;closed=new k;optionActivated=new k;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(ut).getId("mat-autocomplete-");inertGroups;constructor(){let e=p(et);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 gs(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 ZC(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=S({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,r){if(n&1&&(je(r,Ze,5),je(r,Zl,5)),n&2){let a;q(a=Y())&&(o.options=a),q(a=Y())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&(me(St,7),me(T$,5)),n&2){let r;q(r=Y())&&(o.template=r.first),q(r=Y())&&(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",$],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",$],requireSelection:[2,"requireSelection","requireSelection",$],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",$],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",$]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[Ce([{provide:Kl,useExisting:t}])],ngContentSelectors:I$,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&&(Le(),E(0,k$,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none} -`],encapsulation:2,changeDetection:0})}return t})();var R$={provide:mi,useExisting:en(()=>Es),multi:!0};var oR=new R("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(kt);return()=>t.scrollStrategies.reposition()}});function O$(t){return()=>t.scrollStrategies.reposition()}var P$={provide:oR,deps:[kt],useFactory:O$},Es=(()=>{class t{_environmentInjector=p(an);_element=p(Z);_overlay=p(kt);_viewContainerRef=p(Rt);_zone=p(ie);_changeDetectorRef=p(xe);_dir=p(Pt,{optional:!0});_formField=p(ao,{optional:!0,host:!0});_viewportRuler=p(Ei);_scrollStrategy=p(oR);_renderer=p(It);_defaults=p(iR,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=be.EMPTY;_breakpointObserver=p(ds);_handsetLandscapeSubscription=be.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new z;_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;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&&ca(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return _t(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ke(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ke(()=>this._overlayAttached)):ae()).pipe(pe(e=>e instanceof Ql?e:null))}optionSelections=qi(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(xt(e),Dt(()=>_t(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(Dt(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new Fe(e=>{let n=r=>{let a=Bn(r),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,c=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!c||!c.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.keyCode,o=Et(e);if(n===27&&!o&&e.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&n===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){let r=this.autocomplete._keyManager.activeItem,a=n===38||n===40;n===9||a&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(a||this.autocomplete._keyManager.activeItem!==r)&&(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 Ji()===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 Fe(o=>{Ht(()=>{o.next()},{injector:this._environmentInjector})}),n=this.autocomplete.options?.changes.pipe(Ut(()=>this._positionStrategy.reapplyLastPosition()),xc(0))??ae();return _t(e,n).pipe(Dt(()=>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})),wt(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;jl(this._trackedModal,"aria-owns",n)}}_attachOverlay(e){this.autocomplete;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new yn(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(wf.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&&!Et(e)||e.keyCode===38&&Et(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=null}_getOverlayConfig(){return new si({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){let e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);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&&ca(this._trackedModal,"aria-owns",n),jl(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;ca(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&b("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),n&2&&ne("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",$]},exportAs:["matAutocompleteTrigger"],features:[Ce([R$]),Be]})}return t})(),rR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[P$],imports:[jn,Xl,fe,Li,Xl,fe]})}return t})();function F$(t,i){if(t&1&&(l(0,"div")(1,"uds-translate"),h(2,"Edit user"),d(),h(3),d()),t&2){let e=g();u(3),F(" ",e.user.name," ")}}function N$(t,i){t&1&&(l(0,"uds-translate"),h(1,"New user"),d())}function L$(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"input",16),W("ngModelChange",function(o){C(e);let r=g();return G(r.user.name,o)||(r.user.name=o),w(o)}),d()()}if(t&2){let e=g();u(2),F(" ",e.authenticator.type_info.extra.label_username," "),u(),H("ngModel",e.user.name),_("disabled",e.user.id)}}function V$(t,i){if(t&1&&(l(0,"mat-option",13),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),wi(" ",e.id," (",e.name,") ")}}function B$(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"input",17),W("ngModelChange",function(o){C(e);let r=g();return G(r.user.name,o)||(r.user.name=o),w(o)}),b("input",function(o){C(e);let r=g();return w(r.filterUser(o))}),d(),l(4,"mat-autocomplete",null,0),oe(6,V$,2,3,"mat-option",13,le),d()()}if(t&2){let e=Ge(5),n=g();u(2),F(" ",n.authenticator.type_info.extra.label_username," "),u(),H("ngModel",n.user.name),_("matAutocomplete",e),u(3),re(n.users)}}function j$(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"input",18),W("ngModelChange",function(o){C(e);let r=g();return G(r.user.password,o)||(r.user.password=o),w(o)}),d()()}if(t&2){let e=g();u(2),F(" ",e.authenticator.type_info.extra.label_password," "),u(),H("ngModel",e.user.password)}}function z$(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),h(3,"MFA"),d()(),l(4,"input",19),W("ngModelChange",function(o){C(e);let r=g();return G(r.user.mfa_data,o)||(r.user.mfa_data=o),w(o)}),d()()}if(t&2){let e=g();u(4),H("ngModel",e.user.mfa_data)}}function U$(t,i){if(t&1&&(l(0,"mat-option",13),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}var JC=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.groups=[],this.onSave=new k(!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 V(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{this.onSave.emit(!1)}})}static{this.\u0275fac=function(n){return new(n||t)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",1),E(1,F$,4,1,"div")(2,N$,2,0,"uds-translate"),d(),l(3,"mat-dialog-content")(4,"div",2),E(5,L$,4,3,"mat-form-field")(6,B$,8,3,"mat-form-field"),l(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),h(10,"Real name"),d()(),l(11,"input",3),W("ngModelChange",function(a){return G(o.user.real_name,a)||(o.user.real_name=a),a}),d()(),l(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),h(15,"Comments"),d()(),l(16,"input",4),W("ngModelChange",function(a){return G(o.user.comments,a)||(o.user.comments=a),a}),d()(),l(17,"mat-form-field")(18,"mat-label")(19,"uds-translate"),h(20,"State"),d()(),l(21,"mat-select",5),W("ngModelChange",function(a){return G(o.user.state,a)||(o.user.state=a),a}),l(22,"mat-option",6)(23,"uds-translate"),h(24,"Enabled"),d()(),l(25,"mat-option",7)(26,"uds-translate"),h(27,"Disabled"),d()()()(),l(28,"mat-form-field")(29,"mat-label")(30,"uds-translate"),h(31,"Role"),d()(),l(32,"mat-select",8),W("ngModelChange",function(a){return G(o.user.role,a)||(o.user.role=a),a}),b("valueChange",function(a){return o.roleChanged(a)}),l(33,"mat-option",9)(34,"uds-translate"),h(35,"Admin"),d()(),l(36,"mat-option",10)(37,"uds-translate"),h(38,"Staff member"),d()(),l(39,"mat-option",11)(40,"uds-translate"),h(41,"User"),d()()()(),E(42,j$,4,2,"mat-form-field")(43,z$,5,1,"mat-form-field"),l(44,"mat-form-field")(45,"mat-label")(46,"uds-translate"),h(47,"Groups"),d()(),l(48,"mat-select",12),W("ngModelChange",function(a){return G(o.user.groups,a)||(o.user.groups=a),a}),oe(49,U$,2,2,"mat-option",13,le),d()()()(),l(51,"mat-dialog-actions")(52,"button",14)(53,"uds-translate"),h(54,"Cancel"),d()(),l(55,"button",15),b("click",function(){return o.save()}),l(56,"uds-translate"),h(57,"Ok"),d()()()),n&2&&(u(),I(o.user.id?1:2),u(4),I(o.authenticator.type_info.extra.search_users_supported===!1||o.user.id?5:-1),u(),I(o.authenticator.type_info.extra.search_users_supported===!0&&!o.user.id?6:-1),u(5),H("ngModel",o.user.real_name),u(5),H("ngModel",o.user.comments),u(5),H("ngModel",o.user.state),u(11),H("ngModel",o.user.role),u(10),I(o.authenticator.type_info.extra.needs_password?42:-1),u(),I(o.authenticator.type_info.extra.mfa_data_enabled?43:-1),u(5),H("ngModel",o.user.groups),u(),re(o.groups))},dependencies:[st,we,Se,De,jt,$e,Ye,qe,ge,Ae,mt,ht,Ze,ic,Es,ue],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%}"]})}}return t})();function H$(t,i){if(t&1&&(l(0,"div")(1,"uds-translate"),h(2,"Edit group"),d(),h(3),d()),t&2){let e=g();u(3),F(" ",e.group.name," ")}}function W$(t,i){t&1&&(l(0,"uds-translate"),h(1,"New group"),d())}function G$(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"input",9),W("ngModelChange",function(o){C(e);let r=g(2);return G(r.group.name,o)||(r.group.name=o),w(o)}),d()()}if(t&2){let e=g(2);u(2),F(" ",e.authenticator.type_info.extra.label_groupname," "),u(),H("ngModel",e.group.name),_("disabled",e.group.id)}}function $$(t,i){if(t&1&&(l(0,"mat-option",11),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),wi(" ",e.id," (",e.name,") ")}}function q$(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"input",10),W("ngModelChange",function(o){C(e);let r=g(2);return G(r.group.name,o)||(r.group.name=o),w(o)}),b("input",function(o){C(e);let r=g(2);return w(r.filterGroup(o))}),d(),l(4,"mat-autocomplete",null,0),oe(6,$$,2,3,"mat-option",11,le),d()()}if(t&2){let e=Ge(5),n=g(2);u(2),F(" ",n.authenticator.type_info.extra.label_groupname," "),u(),H("ngModel",n.group.name),_("matAutocomplete",e),u(3),re(n.fltrGroup)}}function Y$(t,i){if(t&1&&E(0,G$,4,3,"mat-form-field")(1,q$,8,3,"mat-form-field"),t&2){let e=g();I(e.authenticator.type_info.extra.search_groups_supported===!1||e.group.id?0:-1),u(),I(e.authenticator.type_info.extra.search_groups_supported===!0&&!e.group.id?1:-1)}}function Q$(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),h(3,"Meta group name"),d()(),l(4,"input",9),W("ngModelChange",function(o){C(e);let r=g();return G(r.group.name,o)||(r.group.name=o),w(o)}),d()()}if(t&2){let e=g();u(4),H("ngModel",e.group.name),_("disabled",e.group.id)}}function K$(t,i){if(t&1&&(l(0,"mat-option",11),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}function Z$(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),h(3,"Service Pools"),d()(),l(4,"mat-select",12),W("ngModelChange",function(o){C(e);let r=g();return G(r.group.pools,o)||(r.group.pools=o),w(o)}),oe(5,K$,2,2,"mat-option",11,le),d()()}if(t&2){let e=g();u(4),H("ngModel",e.group.pools),u(),re(e.servicePools)}}function X$(t,i){if(t&1&&(l(0,"mat-option",11),h(1),d()),t&2){let e=g().$implicit;_("value",e.id),u(),F(" ",e.name," ")}}function J$(t,i){if(t&1&&E(0,X$,2,2,"mat-option",11),t&2){let e=i.$implicit;I(e.type==="group"?0:-1)}}function e7(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),h(3,"Match mode"),d()(),l(4,"mat-select",4),W("ngModelChange",function(o){C(e);let r=g();return G(r.group.meta_if_any,o)||(r.group.meta_if_any=o),w(o)}),l(5,"mat-option",11)(6,"uds-translate"),h(7,"Any group"),d()(),l(8,"mat-option",11)(9,"uds-translate"),h(10,"All groups"),d()()()(),l(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),h(14,"Selected Groups"),d()(),l(15,"mat-select",12),W("ngModelChange",function(o){C(e);let r=g();return G(r.group.groups,o)||(r.group.groups=o),w(o)}),oe(16,J$,1,1,null,null,le),d()()}if(t&2){let e=g();u(4),H("ngModel",e.group.meta_if_any),u(),_("value",!0),u(3),_("value",!1),u(7),H("ngModel",e.group.groups),u(),re(e.groups)}}var ew=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new k(!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)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",1),E(1,H$,4,1,"div")(2,W$,2,0,"uds-translate"),d(),l(3,"mat-dialog-content")(4,"div",2),E(5,Y$,2,2)(6,Q$,5,2,"mat-form-field"),l(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),h(10,"Comments"),d()(),l(11,"input",3),W("ngModelChange",function(a){return G(o.group.comments,a)||(o.group.comments=a),a}),d()(),l(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),h(15,"State"),d()(),l(16,"mat-select",4),W("ngModelChange",function(a){return G(o.group.state,a)||(o.group.state=a),a}),l(17,"mat-option",5)(18,"uds-translate"),h(19,"Enabled"),d()(),l(20,"mat-option",6)(21,"uds-translate"),h(22,"Disabled"),d()()()(),l(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),h(26,"Skip MFA"),d()(),l(27,"mat-select",4),W("ngModelChange",function(a){return G(o.group.skip_mfa,a)||(o.group.skip_mfa=a),a}),l(28,"mat-option",5)(29,"uds-translate"),h(30,"Enabled"),d()(),l(31,"mat-option",6)(32,"uds-translate"),h(33,"Disabled"),d()()()(),E(34,Z$,7,1,"mat-form-field")(35,e7,18,4),d()(),l(36,"mat-dialog-actions")(37,"button",7)(38,"uds-translate"),h(39,"Cancel"),d()(),l(40,"button",8),b("click",function(){return o.save()}),l(41,"uds-translate"),h(42,"Ok"),d()()()),n&2&&(u(),I(o.group.id?1:2),u(4),I(o.group.type==="group"?5:6),u(6),H("ngModel",o.group.comments),u(5),H("ngModel",o.group.state),u(11),H("ngModel",o.group.skip_mfa),u(7),I(o.group.type==="group"?34:35))},dependencies:[st,we,Se,De,jt,$e,Ye,qe,ge,Ae,mt,ht,Ze,ic,Es,ue],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 t7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Groups"),d())}function n7(t,i){if(t&1&&(l(0,"mat-tab"),E(1,t7,2,0,"ng-template",1),T(2,"uds-table",5),d()),t&2){let e=g();u(2),_("rest",e.group)("pageSize",6)}}function i7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Services Pools"),d())}function o7(t,i){if(t&1&&(l(0,"mat-tab"),E(1,i7,2,0,"ng-template",1),T(2,"uds-table",5),d()),t&2){let e=g();u(2),_("rest",e.servicesPools)("pageSize",6)}}function r7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Assigned Services"),d())}function a7(t,i){if(t&1&&(l(0,"mat-tab"),E(1,r7,2,0,"ng-template",1),T(2,"uds-table",5),d()),t&2){let e=g();u(2),_("rest",e.userServices)("pageSize",6)}}function s7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Logs"),d())}var l7=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],c7=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],d7=[{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")}],aR=(()=>{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 V(this,null,function*(){let e=()=>V(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=()=>V(this,null,function*(){return this.users.invoke(this.user.id+"/servicesPools")}),o=()=>V(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 lo(django.gettext("Groups"),e,l7,this.user.id+"infogrp"),this.servicesPools=new lo(django.gettext("Services Pools"),n,c7,this.user.id+"infopool"),this.userServices=new lo(django.gettext("Assigned services"),o,d7,this.user.id+"userservpool")})}static{this.\u0275fac=function(n){return new(n||t)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"Information for"),d(),h(3),d(),l(4,"mat-dialog-content")(5,"mat-tab-group"),E(6,n7,3,2,"mat-tab"),dt(7,"notEmpty"),E(8,o7,3,2,"mat-tab"),dt(9,"notEmpty"),E(10,a7,3,2,"mat-tab"),dt(11,"notEmpty"),l(12,"mat-tab"),E(13,s7,2,0,"ng-template",1),l(14,"div",2),T(15,"uds-logs-table",3),d()()()(),l(16,"mat-dialog-actions")(17,"button",4)(18,"uds-translate"),h(19,"Ok"),d()()()),n&2&&(u(3),F(" ",o.user.name,` -`),u(3),I(vt(7,8,o.group)?6:-1),u(2),I(vt(9,10,o.servicesPools)?8:-1),u(2),I(vt(11,12,o.userServices)?10:-1),u(5),_("rest",o.users)("itemId",o.user.id)("tableId","userInfo-d-log"+o.user.id)("pageSize",5))},dependencies:[De,jt,$e,Ye,qe,Yt,Qt,Xt,ue,Me,Ti,mn],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function u7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Services Pools"),d())}function m7(t,i){if(t&1&&(l(0,"mat-tab"),E(1,u7,2,0,"ng-template",2),T(2,"uds-table",3),d()),t&2){let e=g();u(2),_("rest",e.servicesPools)("pageSize",6)}}function p7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Users"),d())}function h7(t,i){if(t&1&&(l(0,"mat-tab"),E(1,p7,2,0,"ng-template",2),T(2,"uds-table",3),d()),t&2){let e=g();u(2),_("rest",e.users)("pageSize",6)}}function f7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Groups"),d())}function g7(t,i){if(t&1&&(l(0,"mat-tab"),E(1,f7,2,0,"ng-template",2),T(2,"uds-table",3),d()),t&2){let e=g();u(2),_("rest",e.groups)("pageSize",6)}}var _7=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],v7=[{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:Ft.DATETIME}],b7=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],sR=(()=>{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 lo(django.gettext("Service pools"),n,_7,this.data.group.id+"infopls"),this.users=new lo(django.gettext("Users"),o,v7,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 lo(django.gettext("Groups"),r,b7,this.data.group.id+"infogrps")}}static{this.\u0275fac=function(n){return new(n||t)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"Information for"),d()(),l(3,"mat-dialog-content")(4,"mat-tab-group"),E(5,m7,3,2,"mat-tab"),dt(6,"notEmpty"),E(7,h7,3,2,"mat-tab"),dt(8,"notEmpty"),E(9,g7,3,2,"mat-tab"),dt(10,"notEmpty"),d()(),l(11,"mat-dialog-actions")(12,"button",1)(13,"uds-translate"),h(14,"Ok"),d()()()),n&2&&(u(5),I(vt(6,3,o.servicesPools)?5:-1),u(2),I(vt(8,5,o.users)?7:-1),u(2),I(vt(10,7,o.groups)?9:-1))},dependencies:[De,jt,$e,Ye,qe,Yt,Qt,Xt,ue,Me,mn],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var y7=t=>["/authenticators",t];function C7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Summary"),d())}function w7(t,i){if(t&1&&T(0,"uds-information",10),t&2){let e=g(2);_("value",e.authenticator)("gui",e.gui)}}function x7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Users"),d())}function D7(t,i){if(t&1){let e=A();l(0,"uds-table",14),b("loaded",function(o){C(e);let r=g(2);return w(r.onLoad(o))})("newAction",function(o){C(e);let r=g(2);return w(r.onNewUser(o))})("editAction",function(o){C(e);let r=g(2);return w(r.onEditUser(o))})("deleteAction",function(o){C(e);let r=g(2);return w(r.onDeleteUser(o))})("customButtonAction",function(o){C(e);let r=g(2);return w(r.onUserCustom(o))}),d()}if(t&2){let e=g(2);_("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 S7(t,i){if(t&1){let e=A();l(0,"uds-table",15),b("loaded",function(o){C(e);let r=g(2);return w(r.onLoad(o))})("editAction",function(o){C(e);let r=g(2);return w(r.onEditUser(o))})("deleteAction",function(o){C(e);let r=g(2);return w(r.onDeleteUser(o))})("customButtonAction",function(o){C(e);let r=g(2);return w(r.onUserCustom(o))}),d()}if(t&2){let e=g(2);_("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 E7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Groups"),d())}function M7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Logs"),d())}function T7(t,i){if(t&1){let e=A();l(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),W("selectedIndexChange",function(o){C(e);let r=g();return G(r.selectedTab,o)||(r.selectedTab=o),w(o)}),l(3,"mat-tab"),E(4,C7,2,0,"ng-template",8),l(5,"div",9),E(6,w7,1,2,"uds-information",10),dt(7,"notEmpty"),d()(),l(8,"mat-tab"),E(9,x7,2,0,"ng-template",8),l(10,"div",9),E(11,D7,1,6,"uds-table",11)(12,S7,1,6,"uds-table",11),d()(),l(13,"mat-tab"),E(14,E7,2,0,"ng-template",8),l(15,"div",9)(16,"uds-table",12),b("loaded",function(o){C(e);let r=g();return w(r.onLoad(o))})("newAction",function(o){C(e);let r=g();return w(r.onNewGroup(o))})("editAction",function(o){C(e);let r=g();return w(r.onEditGroup(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteGroup(o))})("customButtonAction",function(o){C(e);let r=g();return w(r.onGroupInformation(o))}),d()()(),l(17,"mat-tab"),E(18,M7,2,0,"ng-template",8),l(19,"div",9),T(20,"uds-logs-table",13),d()()()()()}if(t&2){let e=g();u(2),H("selectedIndex",e.selectedTab),_("@.disabled",!0),u(4),I(vt(7,14,e.gui)?6:-1),u(5),I(e.authenticator.type_info.extra.create_users_supported?11:-1),u(),I(e.authenticator.type_info.extra.create_users_supported?-1:12),u(4),_("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.groupsCustomButtons)("tableId","authenticators-d-groups"+e.authenticator.id)("pageSize",e.api.config.admin.page_size),u(4),_("rest",e.rest.authenticators)("itemId",e.authenticator.id)("tableId","authenticators-d-log"+e.authenticator.id)}}var Ag=(()=>{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:ot.ONLY_MENU}],this.usersCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:ot.ONLY_MENU},{id:"clean-related",html:'clear_all '+django.gettext("Clean related (mfa,...)")+"",type:ot.ONLY_MENU},{id:"enable-client-logging",html:'assignment '+django.gettext("Enable client logging")+"",type:ot.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){JC.launch(this.api,this.authenticator).subscribe(n=>e.table.reloadPage())}onEditUser(e){JC.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){ew.launch(this.api,this.authenticator,e.param.type).subscribe(n=>e.table.reloadPage())}onEditGroup(e){ew.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 V(this,null,function*(){e.param.id==="info"?aR.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){sR.launch(this.api,this.groups,e.table.selection.selected[0])}static{this.\u0275fac=function(n){return new(n||t)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),h(4,"arrow_back"),d()(),h(5," \xA0"),T(6,"img",4),h(7),d(),E(8,T7,21,16,"div",5),dt(9,"notEmpty"),d()),n&2&&(u(2),_("routerLink",Qn(6,y7,o.authenticator?o.authenticator.id:"")),u(4),_("src",o.api.staticURL("admin/img/icons/services.png"),Ee),u(),F(" \xA0",o.authenticator==null?null:o.authenticator.name," "),u(),I(vt(9,4,o.authenticator)?8:-1))},dependencies:[ln,Yt,Qt,Xt,ue,Me,Ti,co,mn],encapsulation:2})}}return t})();var tw=(()=>{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)(y(j),y(ke),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div")(1,"uds-table",0),b("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&&(u(),_("rest",o.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Me],encapsulation:2})}}return t})();var nw=(()=>{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{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)(y(j),y(ke),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div")(1,"uds-table",0),b("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&&(u(),_("rest",o.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Me],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]})}}return t})();var iw=(()=>{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)(y(j),y(ke),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div")(1,"uds-table",0),b("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&&(u(),_("rest",o.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Me],encapsulation:2})}}return t})();var ow=(()=>{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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"uds-table",0),b("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&&_("rest",o.rest.tunnels)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Me],encapsulation:2})}}return t})();function I7(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}var lR=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qt,this.availTunnelServers=[],this.tunnelFilter="",this.serverId="",this.availTunnelServers=r.availableTunnelServers,this.tunnelId=r.tunnelId}static launch(e,n,o){return V(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 V(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 V(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 V(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}static{this.\u0275fac=function(n){return new(n||t)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"Assign new server to tunnel group"),d()(),l(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),h(8,"Tunnel"),d()(),l(9,"mat-select",2),W("ngModelChange",function(a){return G(o.serverId,a)||(o.serverId=a),a}),l(10,"uds-cond-select-search",3),b("changed",function(a){return o.tunnelFilter=a}),d(),oe(11,I7,2,2,"mat-option",4,le),d()()()(),l(13,"mat-dialog-actions")(14,"button",5),b("click",function(){return o.cancel()}),l(15,"uds-translate"),h(16,"Cancel"),d()(),l(17,"button",6),b("click",function(){return o.save()}),l(18,"uds-translate"),h(19,"Ok"),d()()()),n&2&&(u(9),H("ngModel",o.serverId),u(),_("options",o.availTunnelServers),u(),re(o.filteredTunnels()))},dependencies:[we,Se,De,$e,Ye,qe,ge,Ae,ht,Ze,ue,dn],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%}"]})}}return t})();var k7=t=>["/connectivity","tunnels",t];function A7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Summary"),d())}function R7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Tunnel servers"),d())}function O7(t,i){if(t&1){let e=A();l(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),E(4,A7,2,0,"ng-template",8),l(5,"div",9),T(6,"uds-information",10),d()(),l(7,"mat-tab"),E(8,R7,2,0,"ng-template",8),l(9,"div",9)(10,"uds-table",11),b("newAction",function(o){C(e);let r=g();return w(r.onNew(o))})("rowSelected",function(o){C(e);let r=g();return w(r.onRowSelect(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDelete(o))})("customButtonAction",function(o){C(e);let r=g();return w(r.onMaintenance(o))})("loaded",function(o){C(e);let r=g();return w(r.onLoad(o))}),d()()()()()()}if(t&2){let e=g();u(2),_("@.disabled",!0),u(4),_("value",e.tunnel)("gui",e.gui),u(4),_("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 cR='pause'+django.gettext("Maintenance")+"",P7='pause'+django.gettext("Exit maintenance mode")+"",F7='pause'+django.gettext("Enter maintenance mode")+"",dR=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:cR,type:ot.SINGLE_SELECT}],this.tunnel=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){return V(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 V(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 lR.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=cR;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=P7:this.customButtons[0].html=F7}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),h(4,"arrow_back"),d()(),h(5," \xA0"),T(6,"img",4),h(7),d(),E(8,O7,11,9,"div",5),dt(9,"notEmpty"),d()),n&2&&(u(2),_("routerLink",Qn(6,k7,o.servers.parentId)),u(4),_("src",o.api.staticURL("admin/img/icons/tunnels.png"),Ee),u(),F(" \xA0",o.tunnel==null?null:o.tunnel.name," "),u(),I(vt(9,4,o.tunnel)?8:-1))},dependencies:[ln,Yt,Qt,Xt,ue,Me,co,mn],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var rw=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[wn.getGotoButton(cC,"provider_id"),wn.getGotoButton(dC,"provider_id","service_id"),wn.getGotoButton(pC,"osmanager_id"),wn.getGotoButton(hC,"pool_group_id")],this.editing=!1}ngOnInit(){return V(this,null,function*(){})}onChange(e){return V(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 c of s.servicesTypes)o.info.services_type_provided==c&&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 V(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 V(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 V(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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"uds-table",0),b("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&&_("rest",o.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Me],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 N7(t,i){if(t&1&&(l(0,"mat-option",3),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}function L7(t,i){if(t&1&&(l(0,"mat-option",3),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}var Rg=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qt,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 V(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 V(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)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"Change owner of assigned service"),d()(),l(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),h(8,"Authenticator"),d()(),l(9,"mat-select",2),W("ngModelChange",function(a){return G(o.authId,a)||(o.authId=a),a}),b("selectionChange",function(a){return o.changeAuth(a)}),oe(10,N7,2,2,"mat-option",3,le),d()(),l(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),h(15,"User"),d()(),l(16,"mat-select",4),W("ngModelChange",function(a){return G(o.userId,a)||(o.userId=a),a}),l(17,"uds-cond-select-search",5),b("changed",function(a){return o.userFilter=a}),d(),oe(18,L7,2,2,"mat-option",3,le),d()()()(),l(20,"mat-dialog-actions")(21,"button",6),b("click",function(){return o.cancel()}),l(22,"uds-translate"),h(23,"Cancel"),d()(),l(24,"button",7),b("click",function(){return o.save()}),l(25,"uds-translate"),h(26,"Ok"),d()()()),n&2&&(u(9),H("ngModel",o.authId),u(),re(o.auths),u(6),H("ngModel",o.userId),u(),_("options",o.users),u(),re(o.filteredUsers()))},dependencies:[we,Se,De,$e,Ye,qe,ge,Ae,ht,Ze,ue,dn],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%}"]})}}return t})();function V7(t,i){t&1&&(l(0,"uds-translate"),h(1,"New access rule for"),d())}function B7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Edit access rule for"),d())}function j7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Default fallback access for"),d())}function z7(t,i){if(t&1&&(l(0,"mat-option",9),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}function U7(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),h(3,"Priority"),d()(),l(4,"input",7),W("ngModelChange",function(o){C(e);let r=g();return G(r.accessRule.priority,o)||(r.accessRule.priority=o),w(o)}),d()(),l(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),h(8,"Calendar"),d()(),l(9,"mat-select",2),W("ngModelChange",function(o){C(e);let r=g();return G(r.accessRule.calendar_id,o)||(r.accessRule.calendar_id=o),w(o)}),l(10,"uds-cond-select-search",8),b("changed",function(o){C(e);let r=g();return w(r.calendarsFilter=o)}),d(),oe(11,z7,2,2,"mat-option",9,le),d()()}if(t&2){let e=g();u(4),H("ngModel",e.accessRule.priority),u(5),H("ngModel",e.accessRule.calendar_id),u(),_("options",e.calendars),u(),re(e.filtered(e.calendars,e.calendarsFilter))}}var Ms=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new k(!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)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0),E(1,V7,2,0,"uds-translate")(2,B7,2,0,"uds-translate")(3,j7,2,0,"uds-translate"),h(4),d(),l(5,"mat-dialog-content")(6,"div",1),E(7,U7,13,3),l(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),h(11,"Action"),d()(),l(12,"mat-select",2),W("ngModelChange",function(a){return G(o.accessRule.access,a)||(o.accessRule.access=a),a}),l(13,"mat-option",3),h(14," ALLOW "),d(),l(15,"mat-option",4),h(16," DENY "),d()()()()(),l(17,"mat-dialog-actions")(18,"button",5)(19,"uds-translate"),h(20,"Cancel"),d()(),l(21,"button",6),b("click",function(){return o.save()}),l(22,"uds-translate"),h(23,"Ok"),d()()()),n&2&&(u(),I(o.accessRule.id===void 0?1:-1),u(),I(o.accessRule.id!==void 0&&o.accessRule.id!==-1?2:-1),u(),I(o.accessRule.id===-1?3:-1),u(),F(" ",o.pool.name,` -`),u(3),I(o.accessRule.id!==-1?7:-1),u(5),H("ngModel",o.accessRule.access))},dependencies:[st,ji,we,Se,De,jt,$e,Ye,qe,ge,Ae,mt,ht,Ze,ue,dn],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%}"]})}}return t})();function H7(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}function W7(t,i){if(t&1&&h(0),t&2){let e=g().$implicit;F(" (",e.comments,") ")}}function G7(t,i){if(t&1&&(l(0,"mat-option",4),h(1),E(2,W7,1,1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name,""),u(),I(e.comments?2:-1)}}var Og=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qt,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 V(this,null,function*(){this.auths=yield this.rest.authenticators.overview()})}changeAuth(e){return V(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 V(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 V(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}authChanged(){return V(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)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"New group for"),d(),h(3),d(),l(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),h(9,"Authenticator"),d()(),l(10,"mat-select",2),W("ngModelChange",function(a){return G(o.authId,a)||(o.authId=a),a}),b("selectionChange",function(a){return o.changeAuth(a)}),l(11,"uds-cond-select-search",3),b("changed",function(a){return o.authFilter=a}),d(),oe(12,H7,2,2,"mat-option",4,le),d()(),l(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),h(17,"Group"),d()(),l(18,"mat-select",5),W("ngModelChange",function(a){return G(o.groupId,a)||(o.groupId=a),a}),l(19,"uds-cond-select-search",3),b("changed",function(a){return o.groupFilter=a}),d(),oe(20,G7,3,3,"mat-option",4,le),d()()()(),l(22,"mat-dialog-actions")(23,"button",6),b("click",function(){return o.cancel()}),l(24,"uds-translate"),h(25,"Cancel"),d()(),l(26,"button",7),b("click",function(){return o.save()}),l(27,"uds-translate"),h(28,"Ok"),d()()()),n&2&&(u(3),F(" ",o.pool.name,""),u(7),H("ngModel",o.authId),u(),_("options",o.auths),u(),re(o.filteredAuths()),u(6),H("ngModel",o.groupId),u(),_("options",o.groups),u(),re(o.filteredGroups()))},dependencies:[we,Se,De,$e,Ye,qe,ge,Ae,ht,Ze,ue,dn],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%}"]})}}return t})();function $7(t,i){if(t&1&&h(0),t&2){let e=g().$implicit;F(" (",e.comments,") ")}}function q7(t,i){if(t&1&&(l(0,"mat-option",4),h(1),E(2,$7,1,1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name,""),u(),I(e.comments?2:-1)}}var uR=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qt,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 V(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 V(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 V(this,null,function*(){this.done.resolve(!1),this.dialogRef.close()})}static{this.\u0275fac=function(n){return new(n||t)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"New transport for"),d(),h(3),d(),l(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),h(9,"Transport"),d()(),l(10,"mat-select",2),W("ngModelChange",function(a){return G(o.transportId,a)||(o.transportId=a),a}),l(11,"uds-cond-select-search",3),b("changed",function(a){return o.transportsFilter=a}),d(),oe(12,q7,3,3,"mat-option",4,le),d()()()(),l(14,"mat-dialog-actions")(15,"button",5),b("click",function(){return o.cancel()}),l(16,"uds-translate"),h(17,"Cancel"),d()(),l(18,"button",6),b("click",function(){return o.save()}),l(19,"uds-translate"),h(20,"Ok"),d()()()),n&2&&(u(3),F(" ",o.servicePool.name,""),u(7),H("ngModel",o.transportId),u(),_("options",o.transports),u(),re(o.filteredTransports()))},dependencies:[we,Se,De,$e,Ye,qe,ge,Ae,ht,Ze,ue,dn],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%}"]})}}return t})();var mR=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qt,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)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"New publication for"),d(),h(3),d(),l(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),h(9,"Comments"),d()(),l(10,"input",2),W("ngModelChange",function(a){return G(o.reason,a)||(o.reason=a),a}),d()()()(),l(11,"mat-dialog-actions")(12,"button",3),b("click",function(){return o.cancel()}),l(13,"uds-translate"),h(14,"Cancel"),d()(),l(15,"button",4),b("click",function(){return o.save()}),l(16,"uds-translate"),h(17,"Ok"),d()()()),n&2&&(u(3),F(" ",o.servicePool.name,` -`),u(7),H("ngModel",o.reason))},dependencies:[st,we,Se,De,$e,Ye,qe,ge,Ae,mt,ue],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%}"]})}}return t})();var pR=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new k(!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)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",1)(1,"uds-translate"),h(2,"Changelog of"),d(),h(3),d(),l(4,"mat-dialog-content"),T(5,"uds-table",2,0),d(),l(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),h(10,"Ok"),d()()()),n&2&&(u(3),F(" ",o.servicePool.name,` -`),u(2),_("rest",o.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+o.servicePool.id))},dependencies:[De,jt,$e,Ye,qe,ue,Me],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var Y7=["switch"],Q7=["*"];function K7(t,i){t&1&&(l(0,"span",10),nn(),l(1,"svg",12),T(2,"path",13),d(),l(3,"svg",14),T(4,"path",15),d()())}var Z7=new R("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),X7={provide:mi,useExisting:en(()=>rr),multi:!0},Pg=class{source;checked;constructor(i,e){this.source=i,this.checked=e}},rr=(()=>{class t{_elementRef=p(Z);_focusMonitor=p(Cn);_changeDetectorRef=p(xe);defaults=p(Z7);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new Pg(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations;_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;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 k;toggleChange=new k;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){p(yt).load(gn);let e=p(new Nn("tabindex"),{optional:!0}),n=this.defaults,o=p(tt,{optional:!0});this.tabIndex=e==null?0:parseInt(e)||0,this.color=n.color||"accent",this._noopAnimations=o==="NoopAnimations",this.id=this._uniqueId=p(ut).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 Pg(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&me(Y7,5),n&2){let r;q(r=Y())&&(o._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(bn("id",o.id),ne("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Vt(o.color?"mat-"+o.color:""),ee("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",$],color:"color",disabled:[2,"disabled","disabled",$],disableRipple:[2,"disableRipple","disableRipple",$],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Zt(e)],checked:[2,"checked","checked",$],hideIcon:[2,"hideIcon","hideIcon",$],disabledInteractive:[2,"disabledInteractive","disabledInteractive",$]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ce([X7,{provide:oo,useExisting:t,multi:!0}]),Be],ngContentSelectors:Q7,decls:13,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(n,o){if(n&1){let r=A();Le(),l(0,"div",1)(1,"button",2,0),b("click",function(){return C(r),w(o._handleClick())}),T(3,"span",3),l(4,"span",4)(5,"span",5)(6,"span",6),T(7,"span",7),d(),l(8,"span",8),T(9,"span",9),d(),E(10,K7,5,0,"span",10),d()()(),l(11,"label",11),b("click",function(s){return C(r),w(s.stopPropagation())}),ce(12),d()()}if(n&2){let r=Ge(2);_("labelPosition",o.labelPosition),u(),ee("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),_("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("disabled",o.disabled&&!o.disabledInteractive),ne("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),u(8),_("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),u(),I(o.hideIcon?-1:10),u(),_("for",o.buttonId),ne("id",o._labelId)}},dependencies:[Bi,xf],styles:[`.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mdc-switch-track-width, 52px)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mdc-switch-track-height, 32px);border-radius:var(--mdc-switch-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-switch-track-outline-width, 2px);border-color:var(--mat-switch-track-outline-color, var(--mat-sys-outline))}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-switch-selected-track-outline-width, 2px);border-color:var(--mat-switch-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-switch-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-switch-disabled-unselected-track-outline-color, var(--mat-sys-on-surface))}@media(forced-colors: active){.mdc-switch__track{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mdc-switch-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, var(--mat-sys-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mdc-switch-selected-track-color, var(--mat-sys-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, var(--mat-sys-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, var(--mat-sys-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mdc-switch-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mdc-switch-handle-width);height:var(--mdc-switch-handle-height);border-radius:var(--mdc-switch-handle-shape, var(--mat-sys-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size, 16px);height:var(--mat-switch-unselected-handle-size, 16px);margin:var(--mat-switch-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size, 24px);height:var(--mat-switch-selected-handle-size, 24px);margin:var(--mat-switch-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size, 24px);height:var(--mat-switch-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size, 28px);height:var(--mat-switch-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin, 0 22px)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity, 0.38)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media(forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mat-sys-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, var(--mat-sys-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, var(--mat-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, var(--mat-sys-on-surface))}.mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mdc-switch-state-layer-size, 40px);height:var(--mdc-switch-state-layer-size, 40px)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1;transform:translateZ(0)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 16px);height:var(--mdc-switch-unselected-icon-size, 16px);fill:var(--mdc-switch-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 16px);height:var(--mdc-switch-selected-icon-size, 16px);fill:var(--mdc-switch-selected-icon-color, var(--mat-sys-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mat-sys-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-switch-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-switch-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-switch-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-switch-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-switch-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)} -`],encapsulation:2,changeDetection:0})}return t})();var hR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[rr,fe,fe]})}return t})();var J7=()=>["transport","group","bool"];function e9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Edit action for"),d())}function t9(t,i){t&1&&(l(0,"uds-translate"),h(1,"New action for"),d())}function n9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}function i9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.description," ")}}function o9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}function r9(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),h(3,"Transport"),d()(),l(4,"mat-select",2),W("ngModelChange",function(o){C(e);let r=g();return G(r.paramValue,o)||(r.paramValue=o),w(o)}),l(5,"uds-cond-select-search",3),b("changed",function(o){C(e);let r=g();return w(r.transportsFilter=o)}),d(),oe(6,o9,2,2,"mat-option",4,le),d()()}if(t&2){let e=g();u(4),H("ngModel",e.paramValue),u(),_("options",e.transports),u(),re(e.filtered(e.transports,e.transportsFilter))}}function a9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}function s9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit,n=g(2);_("value",n.authenticator+"@"+e.id),u(),F(" ",e.name," ")}}function l9(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),h(3,"Authenticator"),d()(),l(4,"mat-select",7),W("ngModelChange",function(o){C(e);let r=g();return G(r.authenticator,o)||(r.authenticator=o),w(o)}),b("valueChange",function(o){C(e);let r=g();return w(r.authenticatorChangedTo(o))}),oe(5,a9,2,2,"mat-option",4,le),d()(),l(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),h(10,"Group"),d()(),l(11,"mat-select",2),W("ngModelChange",function(o){C(e);let r=g();return G(r.paramValue,o)||(r.paramValue=o),w(o)}),l(12,"uds-cond-select-search",3),b("changed",function(o){C(e);let r=g();return w(r.groupsFilter=o)}),d(),oe(13,s9,2,2,"mat-option",4,le),d()()}if(t&2){let e=g();u(4),H("ngModel",e.authenticator),u(),re(e.authenticators),u(6),H("ngModel",e.paramValue),u(),_("options",e.groups),u(),re(e.filtered(e.groups,e.groupsFilter))}}function c9(t,i){if(t&1){let e=A();l(0,"div",8)(1,"span",11),h(2),d(),h(3,"\xA0 "),l(4,"mat-slide-toggle",2),W("ngModelChange",function(o){C(e);let r=g();return G(r.paramValue,o)||(r.paramValue=o),w(o)}),d()()}if(t&2){let e=g();u(2),de(e.parameter.description),u(2),H("ngModel",e.paramValue)}}function d9(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"input",12),W("ngModelChange",function(o){C(e);let r=g();return G(r.paramValue,o)||(r.paramValue=o),w(o)}),d()()}if(t&2){let e=g();u(2),F(" ",e.parameter.description," "),u(),_("type",e.parameter.type),H("ngModel",e.paramValue)}}var aw=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new k(!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 V(this,null,function*(){e&&(this.groups=yield this.rest.authenticators.detail(e,"groups").overview())})}save(){return V(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)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0),E(1,e9,2,0,"uds-translate")(2,t9,2,0,"uds-translate"),h(3),d(),l(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),h(9,"Calendar"),d()(),l(10,"mat-select",2),W("ngModelChange",function(a){return G(o.scheduledAction.calendar_id,a)||(o.scheduledAction.calendar_id=a),a}),l(11,"uds-cond-select-search",3),b("changed",function(a){return o.calendarsFilter=a}),d(),oe(12,n9,2,2,"mat-option",4,le),d()(),l(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),h(17,"Events offset (minutes)"),d()(),l(18,"input",5),W("ngModelChange",function(a){return G(o.scheduledAction.events_offset,a)||(o.scheduledAction.events_offset=a),a}),d()(),l(19,"div",6)(20,"mat-slide-toggle",2),W("ngModelChange",function(a){return G(o.scheduledAction.at_start,a)||(o.scheduledAction.at_start=a),a}),l(21,"uds-translate"),h(22,"At the beginning of the interval?"),d()()(),l(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),h(26,"Action"),d()(),l(27,"mat-select",7),W("ngModelChange",function(a){return G(o.scheduledAction.action,a)||(o.scheduledAction.action=a),a}),b("valueChange",function(a){return o.actionChangedTo(a)}),oe(28,i9,2,2,"mat-option",4,le),d()(),E(30,r9,8,2,"mat-form-field")(31,l9,15,3)(32,c9,5,2,"div",8)(33,d9,4,3,"mat-form-field"),d()(),l(34,"mat-dialog-actions")(35,"button",9)(36,"uds-translate"),h(37,"Cancel"),d()(),l(38,"button",10),b("click",function(){return o.save()}),l(39,"uds-translate"),h(40,"Ok"),d()()()),n&2&&(u(),I(o.scheduledAction.id!==void 0?1:2),u(2),F(" ",o.servicePool.name,` -`),u(7),H("ngModel",o.scheduledAction.calendar_id),u(),_("options",o.calendars),u(),re(o.filtered(o.calendars,o.calendarsFilter)),u(6),H("ngModel",o.scheduledAction.events_offset),u(2),H("ngModel",o.scheduledAction.at_start),u(7),H("ngModel",o.scheduledAction.action),u(),re(o.actionList),u(2),I((o.parameter==null?null:o.parameter.type)==="transport"?30:-1),u(),I((o.parameter==null?null:o.parameter.type)==="group"?31:-1),u(),I((o.parameter==null?null:o.parameter.type)==="bool"?32:-1),u(),I(o.parameter!=null&&o.parameter.type&&!pl(11,J7).includes(o.parameter.type)?33:-1))},dependencies:[st,ji,we,Se,De,jt,$e,Ye,qe,ge,Ae,mt,ht,Ze,rr,ue,dn],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%}"]})}}return t})();var mu=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new k(!0),this.userService=r.userService,this.model=r.model}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:{userService:n,model:o},disableClose:!1})}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"Logs of"),d(),h(3),d(),l(4,"mat-dialog-content"),T(5,"uds-logs-table",1),d(),l(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),h(9,"Ok"),d()()()),n&2&&(u(3),F(" ",o.userService.name,` -`),u(2),_("rest",o.model)("itemId",o.userService.id)("tableId","servicePools-d-uslog"+o.userService.id))},dependencies:[De,jt,$e,Ye,qe,ue,Ti],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function u9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.text," ")}}function m9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}function p9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}var fR=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qt,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 V(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 V(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 V(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 V(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)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"Assign service to user manually"),d()(),l(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),h(8,"Service"),d()(),l(9,"mat-select",2),W("ngModelChange",function(a){return G(o.serviceId,a)||(o.serviceId=a),a}),l(10,"uds-cond-select-search",3),b("changed",function(a){return o.assignablesServicesFilter=a}),d(),oe(11,u9,2,2,"mat-option",4,le),d()(),l(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),h(16,"Authenticator"),d()(),l(17,"mat-select",5),W("ngModelChange",function(a){return G(o.authId,a)||(o.authId=a),a}),b("selectionChange",function(a){return o.changeAuth(a)}),oe(18,m9,2,2,"mat-option",4,le),d()(),l(20,"mat-form-field")(21,"mat-label")(22,"uds-translate"),h(23,"User"),d()(),l(24,"mat-select",2),W("ngModelChange",function(a){return G(o.userId,a)||(o.userId=a),a}),l(25,"uds-cond-select-search",3),b("changed",function(a){return o.userFilter=a}),d(),oe(26,p9,2,2,"mat-option",4,le),d()()()(),l(28,"mat-dialog-actions")(29,"button",6),b("click",function(){return o.cancel()}),l(30,"uds-translate"),h(31,"Cancel"),d()(),l(32,"button",7),b("click",function(){return o.save()}),l(33,"uds-translate"),h(34,"Ok"),d()()()),n&2&&(u(9),H("ngModel",o.serviceId),u(),_("options",o.assignablesServices),u(),re(o.filteredAssignables()),u(6),H("ngModel",o.authId),u(),re(o.auths),u(6),H("ngModel",o.userId),u(),_("options",o.users),u(),re(o.filteredUsers()))},dependencies:[we,Se,De,$e,Ye,qe,ge,Ae,ht,Ze,ue,dn],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%}"]})}}return t})();var vR=Mu(ag());var gR=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.poolUuid="",this.options={},this.chart=null}onResize(e){this.chart&&this.chart.resize()}ngOnInit(){return V(this,null,function*(){let e=yield this.rest.system.stats("complete",this.poolUuid),n=this.api.isDarkTheme?"#e2e8f0":"#475569",o=this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)";this.options={backgroundColor:"transparent",tooltip:{trigger:"axis",backgroundColor:this.api.isDarkTheme?"#1e293b":"#ffffff",borderColor:this.api.isDarkTheme?"#334155":"#e2e8f0",textStyle:{color:n},axisPointer:{type:"cross",label:{backgroundColor:"#2563eb"}}},xAxis:{type:"category",data:e.assigned.map(r=>Un("SHORT_DATETIME_FORMAT",new Date(r.stamp))),boundaryGap:!1,axisLabel:{color:n},axisLine:{lineStyle:{color:o}}},yAxis:{type:"value",axisLabel:{color:n},splitLine:{lineStyle:{color:o}}},series:[{name:django.gettext("Assigned"),type:"line",stack:"services",smooth:!0,areaStyle:{color:"rgba(37, 99, 235, 0.2)"},lineStyle:{width:3,color:"#3b82f6"},itemStyle:{color:"#3b82f6"},data:e.assigned.map(r=>r.value)},{name:django.gettext("Cached"),type:"line",stack:"services",smooth:!0,areaStyle:{color:"rgba(99, 102, 241, 0.2)"},lineStyle:{width:3,color:"#6366f1"},itemStyle:{color:"#6366f1"},data:e.cached.map(r=>r.value)},{name:django.gettext("In use"),type:"line",smooth:!0,areaStyle:{color:"rgba(16, 185, 129, 0.1)"},lineStyle:{width:3,color:"#10b981"},itemStyle:{color:"#10b981"},data:e.inuse.map(r=>r.value)}]}})}chartInit(e){this.chart=e}static{this.\u0275fac=function(n){return new(n||t)(y(te),y(j))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-service-pools-charts"]],hostBindings:function(n,o){n&1&&b("resize",function(a){return o.onResize(a)},!1,ul)},inputs:{poolUuid:"poolUuid"},standalone:!1,decls:2,vars:1,consts:[[1,"statistics-chart"],["echarts","",3,"chartInit","options"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1),b("chartInit",function(a){return o.chartInit(a)}),d()()),n&2&&(u(),_("options",o.options))},dependencies:[Yf],encapsulation:2})}}return t})();var f9=t=>["/pools","service-pools",t];function g9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Summary"),d())}function _9(t,i){if(t&1&&T(0,"uds-information",10),t&2){let e=g(2);_("value",e.servicePool)("gui",e.gui)}}function v9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Assigned services"),d())}function b9(t,i){if(t&1){let e=A();l(0,"mat-tab"),E(1,v9,2,0,"ng-template",8),l(2,"div",9)(3,"uds-table",13),b("customButtonAction",function(o){C(e);let r=g(2);return w(r.onCustomAssigned(o))})("deleteAction",function(o){C(e);let r=g(2);return w(r.onDeleteAssigned(o))}),d()()()}if(t&2){let e=g(2);u(3),_("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 y9(t,i){t&1&&(l(0,"span")(1,"uds-translate"),h(2,"Cache"),d()())}function C9(t,i){t&1&&(l(0,"span")(1,"uds-translate"),h(2,"Servers"),d()())}function w9(t,i){if(t&1&&E(0,y9,3,0,"span")(1,C9,3,0,"span"),t&2){let e=g(3);I(e.servicePool.state!=="Q"?0:-1),u(),I(e.servicePool.state==="Q"?1:-1)}}function x9(t,i){if(t&1){let e=A();l(0,"mat-tab"),E(1,w9,2,2,"ng-template",8),l(2,"div",9)(3,"uds-table",14),b("customButtonAction",function(o){C(e);let r=g(2);return w(r.onCustomCached(o))})("deleteAction",function(o){C(e);let r=g(2);return w(r.onDeleteCache(o))}),d()()()}if(t&2){let e=g(2);u(3),_("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 D9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Groups"),d())}function S9(t,i){if(t&1){let e=A();l(0,"mat-tab"),E(1,D9,2,0,"ng-template",8),l(2,"div",9)(3,"uds-table",15),b("newAction",function(o){C(e);let r=g(2);return w(r.onNewGroup(o))})("deleteAction",function(o){C(e);let r=g(2);return w(r.onDeleteGroup(o))}),d()()()}if(t&2){let e=g(2);u(3),_("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 E9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Transports"),d())}function M9(t,i){if(t&1){let e=A();l(0,"mat-tab"),E(1,E9,2,0,"ng-template",8),l(2,"div",9)(3,"uds-table",16),b("newAction",function(o){C(e);let r=g(2);return w(r.onNewTransport(o))})("deleteAction",function(o){C(e);let r=g(2);return w(r.onDeleteTransport(o))}),d()()()}if(t&2){let e=g(2);u(3),_("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 T9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Publications"),d())}function I9(t,i){if(t&1){let e=A();l(0,"mat-tab"),E(1,T9,2,0,"ng-template",8),l(2,"div",9)(3,"uds-table",17),b("customButtonAction",function(o){C(e);let r=g(2);return w(r.onCustomPublication(o))})("newAction",function(o){C(e);let r=g(2);return w(r.onNewPublication(o))})("rowSelected",function(o){C(e);let r=g(2);return w(r.onPublicationRowSelect(o))}),d()()()}if(t&2){let e=g(2);u(3),_("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 k9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Scheduled actions"),d())}function A9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Access calendars"),d())}function R9(t,i){if(t&1){let e=A();l(0,"mat-tab"),E(1,A9,2,0,"ng-template",8),l(2,"div",9)(3,"uds-table",18),b("customButtonAction",function(o){C(e);let r=g(2);return w(r.onCustomSetFallbackAction(o))})("newAction",function(o){C(e);let r=g(2);return w(r.onNewAccessCalendar(o))})("editAction",function(o){C(e);let r=g(2);return w(r.onEditAccessCalendar(o))})("deleteAction",function(o){C(e);let r=g(2);return w(r.onDeleteAccessCalendar(o))})("loaded",function(o){C(e);let r=g(2);return w(r.onAccessCalendarLoad(o))}),d()()()}if(t&2){let e=g(2);u(3),_("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 O9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Charts"),d())}function P9(t,i){if(t&1&&(l(0,"mat-tab"),E(1,O9,2,0,"ng-template",8),l(2,"div",9),T(3,"uds-service-pools-charts",19),d()()),t&2){let e=g(2);u(3),_("poolUuid",e.servicePool.id)}}function F9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Logs"),d())}function N9(t,i){if(t&1){let e=A();l(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),W("selectedIndexChange",function(o){C(e);let r=g();return G(r.selectedTab,o)||(r.selectedTab=o),w(o)}),l(3,"mat-tab"),E(4,g9,2,0,"ng-template",8),l(5,"div",9),E(6,_9,1,2,"uds-information",10),d()(),E(7,b9,4,8,"mat-tab")(8,x9,4,9,"mat-tab")(9,S9,4,7,"mat-tab")(10,M9,4,7,"mat-tab")(11,I9,4,7,"mat-tab"),l(12,"mat-tab"),E(13,k9,2,0,"ng-template",8),l(14,"div",9)(15,"uds-table",11),b("customButtonAction",function(o){C(e);let r=g();return w(r.onCustomScheduleAction(o))})("newAction",function(o){C(e);let r=g();return w(r.onNewScheduledAction(o))})("editAction",function(o){C(e);let r=g();return w(r.onEditScheduledAction(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteScheduledAction(o))}),d()()(),E(16,R9,4,8,"mat-tab")(17,P9,4,1,"mat-tab"),l(18,"mat-tab"),E(19,F9,2,0,"ng-template",8),l(20,"div",9),T(21,"uds-logs-table",12),d()()()()()}if(t&2){let e=g();u(2),H("selectedIndex",e.selectedTab),_("@.disabled",!0),u(4),I(e.servicePool&&e.gui?6:-1),u(),I(e.servicePool.state!=="Q"?7:-1),u(),I(e.cache?8:-1),u(),I(e.servicePool.state!=="Q"?9:-1),u(),I(e.servicePool.state!=="Q"?10:-1),u(),I(e.publications?11:-1),u(4),_("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),u(),I(e.servicePool.state!=="Q"?16:-1),u(),I(e.servicePool.state!=="Q"?17:-1),u(4),_("rest",e.rest.servicesPools)("itemId",e.servicePool.id)("tableId","servicePools-d-log"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)}}var Ng='event'+django.gettext("Logs")+"",L9='computer'+django.gettext("VNC")+"",V9='schedule'+django.gettext("Launch now")+"",sw='perm_identity'+django.gettext("Change owner")+"",B9='perm_identity'+django.gettext("Assign service")+"",j9='cancel'+django.gettext("Cancel")+"",z9='event'+django.gettext("Changelog")+"",_R='perm_identity'+django.gettext("Fallback: Allow")+"",U9='perm_identity'+django.gettext("Fallback: Deny")+"",Lg=(()=>{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:V9,type:ot.SINGLE_SELECT},wn.getGotoButton(Cf,"calendar_id")],this.customButtonAccessCalendars=[{id:"set-fallback-access",html:_R,type:ot.ALWAYS},wn.getGotoButton(Cf,"calendar_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:sw,type:ot.SINGLE_SELECT},{id:"log",html:Ng,type:ot.SINGLE_SELECT},wn.getGotoButton(nu,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:Ng,type:ot.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:j9,type:ot.SINGLE_SELECT},{id:"changelog",html:z9,type:ot.ALWAYS}],this.customButtonsGroups=[wn.getGotoButton(uC,"auth_id","id")],this.customButtonsTransports=[wn.getGotoButton(mC,"id")],this.servicePool=null,this.gui=[],this.assignedServices={},this.cache=null,this.groups={},this.transports={},this.publications=null,this.scheduledActions={},this.accessCalendars={},this.selectedTab=1}static cleanInvalidSelections(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 V(this,null,function*(){let e=this.route.snapshot.paramMap.get("pool");if(!e)return;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");let n=yield this.rest.servicesPools.get(e),o=(yield this.rest.servicesPools.gui()).filter(r=>{let a=["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"];return!(n.info.uses_cache===!1&&a.includes(r.name)||n.info.uses_cache_l2===!1&&r.name==="cache_l2_srvs"||n.info.needs_manager===!1&&r.name==="osmanager_id")});this.servicePool=n,this.gui=o,this.headerService.setTitle(this.servicePool.name,"pools",["/pools","service-pools"]),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:L9,type:ot.ONLY_MENU}),this.servicePool.info.can_list_assignables&&this.customButtonsAssignedServices.push({id:"assign-service",html:B9,type:ot.ALWAYS})})}vnc(e){let n=`[connection] + ${F6} translateX(${M}) + )`;let O=s+c+m+f;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${O}px)`)}_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=S({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,o,r){if(n&1&&(OM(r,o._labelChild,Ae,5),ze(r,Ar,5),ze(r,Kk,5),ze(r,EC,5),ze(r,Qk,5),ze(r,SC,5)),n&2){PM();let a;q(a=Y())&&(o._formFieldControl=a.first),q(a=Y())&&(o._prefixChildren=a),q(a=Y())&&(o._suffixChildren=a),q(a=Y())&&(o._errorChildren=a),q(a=Y())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&(me(c6,5),me(d6,5),me(u6,5),me(m6,5),me(p6,5),me(Hk,5),me($k,5),me(Gk,5)),n&2){let r;q(r=Y())&&(o._textField=r.first),q(r=Y())&&(o._iconPrefixContainer=r.first),q(r=Y())&&(o._textPrefixContainer=r.first),q(r=Y())&&(o._iconSuffixContainer=r.first),q(r=Y())&&(o._textSuffixContainer=r.first),q(r=Y())&&(o._floatingLabel=r.first),q(r=Y())&&(o._notchedOutline=r.first),q(r=Y())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:40,hostBindings:function(n,o){n&2&&X("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-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[we([{provide:so,useExisting:t},{provide:Zk,useExisting:t}])],ngContentSelectors:f6,decls:20,vars:25,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["aria-atomic","true","aria-live","polite"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,o){if(n&1){let r=A();Le(h6),E(0,v6,1,1,"ng-template",null,0,Qa),l(2,"div",6,1),b("click",function(s){return C(r),w(o._control.onContainerClick(s))}),E(4,b6,1,0,"div",7),l(5,"div",8),E(6,w6,2,2,"div",9)(7,x6,3,0,"div",10)(8,D6,3,0,"div",11),l(9,"div",12),E(10,E6,1,1,null,13),ue(11),d(),E(12,M6,3,0,"div",14)(13,T6,3,0,"div",15),d(),E(14,I6,1,0,"div",16),d(),l(15,"div",17),v0(16),l(17,"div",18),E(18,k6,1,0)(19,R6,4,1),d()()}if(n&2){let r;u(2),X("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),u(2),T(!o._hasOutline()&&!o._control.disabled?4:-1),u(2),T(o._hasOutline()?6:-1),u(),T(o._hasIconPrefix?7:-1),u(),T(o._hasTextPrefix?8:-1),u(2),T(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),u(2),T(o._hasTextSuffix?12:-1),u(),T(o._hasIconSuffix?13:-1),u(),T(o._hasOutline()?-1:14),u(),X("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic");let a=o._getSubscriptMessageType();u(2),X("mat-mdc-form-field-error-wrapper",a==="error")("mat-mdc-form-field-hint-wrapper",a==="hint"),u(),T((r=a)==="error"?18:r==="hint"?19:-1)}},dependencies:[Hk,$k,Xc,Gk,SC],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-sys-outline));border-width:var(--mdc-outlined-text-field-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)} +`],encapsulation:2,changeDetection:0})}return t})();var va=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[fe,Mh,fe]})}return t})();var N6=["trigger"],L6=["panel"],V6=[[["mat-select-trigger"]],"*"],B6=["mat-select-trigger","*"];function j6(t,i){if(t&1&&(l(0,"span",4),h(1),d()),t&2){let e=g();u(),ae(e.placeholder)}}function z6(t,i){t&1&&ue(0)}function U6(t,i){if(t&1&&(l(0,"span",11),h(1),d()),t&2){let e=g(2);u(),ae(e.triggerValue)}}function H6(t,i){if(t&1&&(l(0,"span",5),E(1,z6,1,0)(2,U6,2,1,"span",11),d()),t&2){let e=g();u(),T(e.customTrigger?1:2)}}function W6(t,i){if(t&1){let e=A();l(0,"div",12,1),b("keydown",function(o){C(e);let r=g();return w(r._handleKeydown(o))}),ue(2,1),d()}if(t&2){let e=g();kM("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),X("mat-select-panel-animations-enabled",!e._animationsDisabled),_("ngClass",e.panelClass),ne("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var MC=new R("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(At);return()=>t.scrollStrategies.reposition()}});function Xk(t){return()=>t.scrollStrategies.reposition()}var Jk=new R("MAT_SELECT_CONFIG"),eA={provide:MC,deps:[At],useFactory:Xk},TC=new R("MatSelectTrigger"),Jf=class{source;value;constructor(i,e){this.source=i,this.value=e}},ht=(()=>{class t{_viewportRuler=p(Ei);_changeDetectorRef=p(De);_elementRef=p(Z);_dir=p(Pt,{optional:!0});_idGenerator=p(ut);_renderer=p(kt);_parentFormField=p(so,{optional:!0});ngControl=p(Mi,{self:!0,optional:!0});_liveAnnouncer=p(Pd);_defaultOptions=p(Jk,{optional:!0});_animationsDisabled=p(tt,{optional:!0})==="NoopAnimations";_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=ru(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&r===1?o.scrollTop=0:o.scrollTop=au(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Jf(this,e)}_scrollStrategyFactory=p(MC);_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;disableRipple=!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(ir.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=qi(()=>{let e=this.options;return e?e.changes.pipe(xt(e),Dt(()=>_t(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(Dt(()=>this.optionSelectionChanges))});openedChange=new k;_openedStream=this.openedChange.pipe(Ke(e=>e),pe(()=>{}));_closedStream=this.openedChange.pipe(Ke(e=>!e),pe(()=>{}));selectionChange=new k;valueChange=new k;constructor(){let e=p(ys),n=p(ao,{optional:!0}),o=p(pa,{optional:!0}),r=p(new Nn("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new ha(e,this.ngControl,o,n,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this.id=this.id}ngOnInit(){this._selectionModel=new or(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Te(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(Te(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(xt(null),Te(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)}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(wt(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&&ca(this._trackedModal,"aria-owns",n),jl(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;ca(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&&!Et(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let c=this.selected;c&&s!==c&&this._liveAnnouncer.announce(c.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&&!Et(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(s?c.select():c.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&&!Et(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())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(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{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 Nl?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 _s(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=_t(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Te(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),_t(...this.options.map(n=>n._stateChanges)).pipe(Te(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}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){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=S({type:t,selectors:[["mat-select"]],contentQueries:function(n,o,r){if(n&1&&(ze(r,TC,5),ze(r,Ze,5),ze(r,Zl,5)),n&2){let a;q(a=Y())&&(o.customTrigger=a.first),q(a=Y())&&(o.options=a),q(a=Y())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&(me(N6,5),me(L6,5),me(Vh,5)),n&2){let r;q(r=Y())&&(o.trigger=r.first),q(r=Y())&&(o.panel=r.first),q(r=Y())&&(o._overlayDir=r.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(n,o){n&1&&b("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(ne("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()),X("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",$],disableRipple:[2,"disableRipple","disableRipple",$],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Zt(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",$],placeholder:"placeholder",required:[2,"required","required",$],multiple:[2,"multiple","multiple",$],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",$],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Zt],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",$]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[we([{provide:Ar,useExisting:t},{provide:Kl,useExisting:t}]),je],ngContentSelectors:B6,decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(n,o){if(n&1){let r=A();Le(V6),l(0,"div",2,0),b("click",function(){return C(r),w(o.open())}),l(3,"div",3),E(4,j6,2,1,"span",4)(5,H6,3,1,"span",5),d(),l(6,"div",6)(7,"div",7),on(),l(8,"svg",8),I(9,"path",9),d()()()(),E(10,W6,3,10,"ng-template",10),b("detach",function(){return C(r),w(o.close())})("backdropClick",function(){return C(r),w(o.close())})("overlayKeydown",function(s){return C(r),w(o._handleOverlayKeydown(s))})}if(n&2){let r=Ye(1);u(3),ne("id",o._valueId),u(),T(o.empty?4:5),u(6),_("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[Nl,Vh,ii],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))} +`],encapsulation:2,changeDetection:0})}return t})(),su=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["mat-select-trigger"]],features:[we([{provide:TC,useExisting:t}])]})}return t})(),lu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[eA],imports:[jn,Xl,fe,Li,va,Xl,fe]})}return t})();var G6=["tooltip"],IC=20;var kC=new R("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(At);return()=>t.scrollStrategies.reposition({scrollThrottle:IC})}});function iA(t){return()=>t.scrollStrategies.reposition({scrollThrottle:IC})}var oA={provide:kC,deps:[At],useFactory:iA};function rA(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var aA=new R("mat-tooltip-default-options",{providedIn:"root",factory:rA});var tA="tooltip-panel",nA=oa({passive:!0}),$6=8,q6=8,Y6=24,Q6=200,To=(()=>{class t{_elementRef=p(Z);_ngZone=p(ie);_platform=p(et);_ariaDescriber=p(Hh);_focusMonitor=p(Cn);_dir=p(Pt);_injector=p(Ie);_viewContainerRef=p(Rt);_defaultOptions=p(aA,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=sA;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_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=Vi(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let n=Vi(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=Eo(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Eo(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)}_passiveListeners=[];_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=$6}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Te(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._passiveListeners.forEach(([n,o])=>{e.removeEventListener(n,o,nA)}),this._passiveListeners.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 ri(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(Te(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 Z)return this._overlayRef;this._detach()}let n=this._injector.get(Pl).getAncestorScrollContainers(this._elementRef),o=this._injector.get(At),r=o.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return r.positionChanges.pipe(Te(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=o.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${tA}`,scrollStrategy:this._injector.get(kC)()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Te(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Te(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Te(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Et(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(Te(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(V(V({},o.main),r.main)),this._addOffset(V(V({},o.fallback),r.fallback))])}_addOffset(e){let n=q6,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(),Ht(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=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 c=`${this._cssClassPrefix}-${tA}-`;s.removePanelClass(c+this._currentPosition),s.addPanelClass(c+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let n;e.x!==void 0&&e.y!==void 0&&(n=e),this.show(void 0,n)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["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._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",n=>{let o=n.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let n=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",n],["touchcancel",n])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([n,o])=>{this._elementRef.nativeElement.addEventListener(n,o,nA)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let n=this._injector.get(he).elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}}_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||Ht({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&X("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})(),sA=(()=>{class t{_changeDetectorRef=p(De);_elementRef=p(Z);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new z;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){let e=p(tt,{optional:!0});this._animationsDisabled=e==="NoopAnimations"}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>Y6&&e.width>=Q6}_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=S({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&me(G6,7),n&2){let r;q(r=Y())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,o){n&1&&b("mouseleave",function(a){return o._handleMouseLeave(a)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){if(n&1){let r=A();l(0,"div",1,0),b("animationend",function(s){return C(r),w(o._handleAnimationEnd(s))}),l(2,"div",2),h(3),d()()}n&2&&(X("mdc-tooltip--multiline",o._isMultiline),_("ngClass",o.tooltipClass),u(3),ae(o.message))},dependencies:[ii],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards} +`],encapsulation:2,changeDetection:0})}return t})(),ws=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[oA],imports:[ms,jn,fe,fe,Li]})}return t})();function K6(t,i){if(t&1&&(l(0,"mat-option",17),h(1),d()),t&2){let e=i.$implicit;_("value",e),u(),F(" ",e," ")}}function Z6(t,i){if(t&1){let e=A();l(0,"mat-form-field",14)(1,"mat-select",16,0),b("selectionChange",function(o){C(e);let r=g(2);return w(r._changePageSize(o.value))}),oe(3,K6,2,2,"mat-option",17,ce),d(),l(5,"div",18),b("click",function(){C(e);let o=Ye(2);return w(o.open())}),d()()}if(t&2){let e=g(2);_("appearance",e._formFieldAppearance)("color",e.color),u(),_("value",e.pageSize)("disabled",e.disabled)("aria-labelledby",e._pageSizeLabelId)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),u(2),re(e._displayedPageSizeOptions)}}function X6(t,i){if(t&1&&(l(0,"div",15),h(1),d()),t&2){let e=g(2);u(),ae(e.pageSize)}}function J6(t,i){if(t&1&&(l(0,"div",3)(1,"div",13),h(2),d(),E(3,Z6,6,7,"mat-form-field",14)(4,X6,2,1,"div",15),d()),t&2){let e=g();u(),ne("id",e._pageSizeLabelId),u(),F(" ",e._intl.itemsPerPageLabel," "),u(),T(e._displayedPageSizeOptions.length>1?3:-1),u(),T(e._displayedPageSizeOptions.length<=1?4:-1)}}function eW(t,i){if(t&1){let e=A();l(0,"button",19),b("click",function(){C(e);let o=g();return w(o._buttonClicked(0,o._previousButtonsDisabled()))}),on(),l(1,"svg",8),I(2,"path",20),d()()}if(t&2){let e=g();_("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),ne("aria-label",e._intl.firstPageLabel)}}function tW(t,i){if(t&1){let e=A();l(0,"button",21),b("click",function(){C(e);let o=g();return w(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),on(),l(1,"svg",8),I(2,"path",22),d()()}if(t&2){let e=g();_("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),ne("aria-label",e._intl.lastPageLabel)}}var ba=(()=>{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(ba);_changeDetectorRef=p(De);_formFieldAppearance;_pageSizeLabelId=p(ut).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new $i(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=>Zt(n,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new k;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,n=p(rW,{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=S({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",Zt],length:[2,"length","length",Zt],pageSize:[2,"pageSize","pageSize",Zt],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",$],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",$],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",$]},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-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["mat-icon-button","","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"],["mat-icon-button","","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"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["mat-icon-button","","type","button","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"],["mat-icon-button","","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&&(l(0,"div",1)(1,"div",2),E(2,J6,5,4,"div",3),l(3,"div",4)(4,"div",5),h(5),d(),E(6,eW,3,5,"button",6),l(7,"button",7),b("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),on(),l(8,"svg",8),I(9,"path",9),d()(),vr(),l(10,"button",10),b("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),on(),l(11,"svg",8),I(12,"path",11),d()(),E(13,tW,3,5,"button",12),d()()()),n&2&&(u(2),T(o.hidePageSize?-1:2),u(3),F(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),u(),T(o.showFirstLastButtons?6:-1),u(),_("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled())("tabindex",o._previousButtonsDisabled()?-1:null),ne("aria-label",o._intl.previousPageLabel),u(3),_("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled())("tabindex",o._nextButtonsDisabled()?-1:null),ne("aria-label",o._intl.nextPageLabel),u(3),T(o.showFirstLastButtons?13:-1))},dependencies:[ge,ht,Ze,wn,To],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height:var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer} +`],encapsulation:2,changeDetection:0})}return t})(),lA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[iW],imports:[nr,lu,ws,Rr]})}return t})();var aW=["mat-sort-header",""],sW=["*"];function lW(t,i){t&1&&(l(0,"div",2),on(),l(1,"svg",3),I(2,"path",4),d()())}var dA=new R("MAT_SORT_DEFAULT_OPTIONS"),Or=(()=>{class t{_defaultOptions;_initializedStream=new $i(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 k;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=cW(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)(y(dA,8))};static \u0275dir=B({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",$],disabled:[2,"matSortDisabled","disabled",$]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[je]})}return t})();function cW(t,i){let e=["asc","desc"];return t=="desc"&&e.reverse(),i||e.push(""),e}var eg=(()=>{class t{changes=new z;static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function dW(t){return t||new eg}var uW={provide:eg,deps:[[new Co,new hr,eg]],useFactory:dW},tg=(()=>{class t{_intl=p(eg);_sort=p(Or,{optional:!0});_columnDef=p("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=p(De);_focusMonitor=p(Cn);_elementRef=p(Z);_ariaDescriber=p(Hh,{optional:!0});_renderChanges;_animationModule=p(tt,{optional:!0});_recentlyCleared=yi(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){p(yt).load(gn);let e=p(dA,{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=_t(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(()=>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=S({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&b("click",function(){return o._toggleOnInteraction()})("keydown",function(a){return o._handleKeydown(a)})("mouseleave",function(){return o._recentlyCleared.set(null)}),n&2&&(ne("aria-sort",o._getAriaSortAttribute()),X("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",$],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",$]},exportAs:["matSortHeader"],attrs:aW,ngContentSelectors:sW,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&&(Le(),l(0,"div",0)(1,"div",1),ue(2),d(),E(3,lW,3,0,"div",2),d()),n&2&&(X("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._animationModule==="NoopAnimations"),ne("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),u(3),T(o._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0} +`],encapsulation:2,changeDetection:0})}return t})(),uA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[uW],imports:[fe]})}return t})();var pW=["input"],hW=["label"],fW=["*"],gW=new R("mat-checkbox-default-options",{providedIn:"root",factory:hA});function hA(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var Zn=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t}(Zn||{}),_W={provide:mi,useExisting:tn(()=>ec),multi:!0},AC=class{source;checked},pA=hA(),ec=(()=>{class t{_elementRef=p(Z);_changeDetectorRef=p(De);_ngZone=p(ie);_animationMode=p(tt,{optional:!0});_options=p(gW,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new AC;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;labelPosition="after";name=null;change=new k;indeterminateChange=new k;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=Zn.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){p(yt).load(gn);let e=p(new Nn("tabindex"),{optional:!0});this._options=this._options||pA,this.color=this._options.color||pA.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=p(ut).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=e,n&&(this._indeterminate?this._transitionCheckState(Zn.Indeterminate):this._transitionCheckState(this.checked?Zn.Checked:Zn.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_indeterminate=!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=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Zn.Checked:Zn.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._animationMode==="NoopAnimations")return"";switch(e){case Zn.Init:if(n===Zn.Checked)return this._animationClasses.uncheckedToChecked;if(n==Zn.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Zn.Unchecked:return n===Zn.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Zn.Checked:return n===Zn.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Zn.Indeterminate:return n===Zn.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=S({type:t,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&(me(pW,5),me(hW,5)),n&2){let r;q(r=Y())&&(o._inputElement=r.first),q(r=Y())&&(o._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,o){n&2&&(bn("id",o.id),ne("tabindex",null)("aria-label",null)("aria-labelledby",null),Bt(o.color?"mat-"+o.color:"mat-accent"),X("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked)("mat-mdc-checkbox-disabled-interactive",o.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",$],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",$],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",$],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Zt(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",$],checked:[2,"checked","checked",$],disabled:[2,"disabled","disabled",$],indeterminate:[2,"indeterminate","indeterminate",$]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[we([_W,{provide:ro,useExisting:t,multi:!0}]),je],ngContentSelectors:fW,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1){let r=A();Le(),l(0,"div",3),b("click",function(s){return C(r),w(o._preventBubblingFromLabel(s))}),l(1,"div",4,0)(3,"div",5),b("click",function(){return C(r),w(o._onTouchTargetClick())}),d(),l(4,"input",6,1),b("blur",function(){return C(r),w(o._onBlur())})("click",function(){return C(r),w(o._onInputClick())})("change",function(s){return C(r),w(o._onInteractionEvent(s))}),d(),I(6,"div",7),l(7,"div",8),on(),l(8,"svg",9),I(9,"path",10),d(),vr(),I(10,"div",11),d(),I(11,"div",12),d(),l(12,"label",13,2),ue(14),d()()}if(n&2){let r=Ye(2);_("labelPosition",o.labelPosition),u(4),X("mdc-checkbox--selected",o.checked),_("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),ne("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),u(7),_("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),u(),_("for",o.inputId)}},dependencies:[Bi,xf],styles:[`.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}@media(forced-colors: active){.mdc-checkbox--disabled{opacity:.5}}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})();var ng=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[ec,fe,fe]})}return t})();var ig;function vW(){if(ig===void 0&&(ig=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(ig=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return ig}function cu(t){return vW()?.createHTML(t)||t}function gA(t){return Error(`Unable to find icon with the name "${t}"`)}function bW(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function _A(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function vA(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Pr=class{url;svgText;options;svgElement;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},yA=(()=>{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 Pr(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,o,r){let a=this._sanitizer.sanitize(Ln.HTML,o);if(!a)throw vA(o);let s=cu(a);return this._addSvgIconConfig(e,n,new Pr("",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 Pr(n,null,o))}addSvgIconSetLiteralInNamespace(e,n,o){let r=this._sanitizer.sanitize(Ln.HTML,n);if(!r)throw vA(n);let a=cu(r);return this._addSvgIconSetConfig(e,new Pr("",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(Ln.RESOURCE_URL,e);if(!n)throw _A(e);let o=this._cachedIconsByUrl.get(n);return o?se(og(o)):this._loadSvgIconFromConfig(new Pr(e,null)).pipe(Ut(r=>this._cachedIconsByUrl.set(n,r)),pe(r=>og(r)))}getNamedSvgIcon(e,n=""){let o=bA(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):No(gA(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?se(og(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(pe(n=>og(n)))}_getSvgFromIconSetConfigs(e,n){let o=this._extractIconWithNameFromAnySet(e,n);if(o)return se(o);let r=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(On(s=>{let m=`Loading icon set URL: ${this._sanitizer.sanitize(Ln.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(m)),se(null)})));return Cc(r).pipe(pe(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw gA(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(Ut(n=>e.svgText=n),pe(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?se(null):this._fetchIcon(e).pipe(Ut(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(cu(""));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(cu("")),o=e.attributes;for(let r=0;rcu(m)),Bo(()=>this._inProgressUrlFetches.delete(a)),Dc());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,n,o){return this._svgIconConfigs.set(bA(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;oi?i.pathname+i.search:""}}var CA=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],SW=CA.map(t=>`[${t}]`).join(", "),EW=/^url\(['"]?#(.*?)['"]?\)$/,wA=(()=>{class t{_elementRef=p(Z);_iconRegistry=p(yA);_location=p(xW);_errorHandler=p(ti);_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;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=be.EMPTY;constructor(){let e=p(new Nn("aria-hidden"),{optional:!0}),n=p(wW,{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(SW),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let s=n[r],c=s.getAttribute(a),m=c?c.match(EW):null;if(m){let f=o.get(s);f||(f=[],o.set(s,f)),f.push({name:a,value:m[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(wt(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=S({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(ne("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),Bt(o.color?"mat-"+o.color:""),X("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",$],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:CW,decls:1,vars:0,template:function(n,o){n&1&&(Le(),ue(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto} +`],encapsulation:2,changeDetection:0})}return t})(),xA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[fe,fe]})}return t})();var ag=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=Vi(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Vi(e)}_inset=!1;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(ne("aria-orientation",o.vertical?"vertical":"horizontal"),X("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;border-top-color:var(--mat-divider-color, var(--mat-sys-outline));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px} +`],encapsulation:2,changeDetection:0})}return t})(),sg=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[fe,fe]})}return t})();var TW=["searchSelectInput"],IW=["innerSelectSearch"],kW=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],AW=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],RW=(t,i)=>({"mat-select-search-inner-multiple":t,"mat-select-search-inner-toggle-all":i});function OW(t,i){if(t&1){let e=A();l(0,"mat-checkbox",12),b("change",function(o){C(e);let r=g();return w(r._emitSelectAllBooleanToParent(o.checked))}),d()}if(t&2){let e=g();_("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function PW(t,i){t&1&&I(0,"mat-spinner",13)}function FW(t,i){t&1&&ue(0,1,["*ngIf","clearIcon; else defaultIcon"])}function NW(t,i){if(t&1&&(l(0,"mat-icon",16),h(1),d()),t&2){let e=g(2);_("svgIcon",e.closeSvgIcon),u(),F(" ",e.closeSvgIcon?null:e.closeIcon," ")}}function LW(t,i){if(t&1){let e=A();l(0,"button",14),b("click",function(){C(e);let o=g();return w(o._reset(!0))}),E(1,FW,1,0,"ng-content",15)(2,NW,2,2,"ng-template",null,2,Qa),d()}if(t&2){let e=Ye(3),n=g();u(),_("ngIf",n.clearIcon)("ngIfElse",e)}}function VW(t,i){t&1&&ue(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function BW(t,i){if(t&1&&h(0),t&2){let e=g(2);ae(e.noEntriesFoundLabel)}}function jW(t,i){if(t&1&&(l(0,"div",17),E(1,VW,1,0,"ng-content",15)(2,BW,1,1,"ng-template",null,3,Qa),d()),t&2){let e=Ye(3),n=g();u(),_("ngIf",n.noEntriesFound)("ngIfElse",e)}}var zW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=B({type:t,selectors:[["","ngxMatSelectSearchClear",""]],standalone:!1}),t})(),UW=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],HW=new R("mat-selectsearch-default-options"),WW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=B({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]],standalone:!1}),t})(),SA=(()=>{class t{constructor(e,n,o,r,a,s){this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=o,this.matOption=r,this.matFormField=a,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.recreateValuesArray=!1,this.toggleAll=new k,this.onTouched=c=>{},this._options$=new bt(null),this.optionsList$=this._options$.pipe(Dt(c=>c?c.changes.pipe(pe(m=>m.toArray()),xt(c.toArray())):se(null))),this.optionsLength$=this.optionsList$.pipe(pe(c=>c?c.length:0)),this._formControl=new pf("",{nonNullable:!0}),this._showNoEntriesFound$=Ri([this._formControl.valueChanges,this.optionsLength$]).pipe(pe(([c,m])=>!!(this.noEntriesFoundLabel&&c&&m===this.getOptionsLengthOffset()))),this._onDestroy=new z,this.applyDefaultOptions(s)}get value(){return this._formControl.value}set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}applyDefaultOptions(e){if(e)for(let n of UW)e.hasOwnProperty(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(xc(1),Te(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(wt(1),Dt(e=>{this._options=this.matSelect.options;let n=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(Ut(()=>{setTimeout(()=>{let o=this._options.toArray(),r=o[this.getOptionsLengthOffset()],a=this.matSelect._keyManager;a&&this.matSelect.panelOpen&&r&&((!n||!this.matSelect.compareWith(n.value,r.value)||!a.activeItem||!o.find(c=>this.matSelect.compareWith(c.value,a.activeItem?.value)))&&a.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),n=r})}))})).pipe(Te(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(Te(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(Te(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(Te(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(Ke(n=>n!==this._lastExternalInputValue),Ut(()=>this._lastExternalInputValue=void 0),Te(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(Te(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")}}return t.\u0275fac=function(e){return new(e||t)(y(ht),y(De),y(Ei),y(Ze,8),y(ge,8),y(HW,8))},t.\u0275cmp=S({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(e,n,o){if(e&1&&(ze(o,zW,5),ze(o,WW,5)),e&2){let r;q(r=Y())&&(n.clearIcon=r.first),q(r=Y())&&(n.noEntriesFound=r.first)}},viewQuery:function(e,n){if(e&1&&(me(TW,7,Z),me(IW,7,Z)),e&2){let o;q(o=Y())&&(n.searchSelectInput=o.first),q(o=Y())&&(n.innerSelectSearch=o.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"},standalone:!1,features:[we([{provide:mi,useExisting:tn(()=>t),multi:!0}])],ngContentSelectors:AW,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["defaultIcon",""],["defaultNoEntriesFound",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"]],template:function(e,n){if(e&1){let o=A();Le(kW),I(0,"input",4),l(1,"div",5,0)(3,"div",6),E(4,OW,1,5,"mat-checkbox",7),l(5,"input",8,1),b("keydown",function(a){return C(o),w(n._handleKeydown(a))})("keyup",function(a){return C(o),w(n._handleKeyup(a))})("blur",function(){return C(o),w(n.onBlur())}),d(),E(7,PW,1,0,"mat-spinner",9)(8,LW,4,2,"button",10),ue(9),d(),I(10,"mat-divider"),d(),E(11,jW,4,2,"div",11),dt(12,"async")}e&2&&(u(),_("ngClass",Mp(11,RW,n.matSelect.multiple,n._isToggleAllCheckboxVisible())),u(3),_("ngIf",n._isToggleAllCheckboxVisible()),u(),_("type",n.type)("formControl",n._formControl)("placeholder",n.placeholderLabel),ne("aria-label",n.ariaLabel),u(2),_("ngIf",n.searching),u(),_("ngIf",!n.hideClearSearchButton&&n.value&&!n.searching),u(3),_("ngIf",vt(12,9,n._showNoEntriesFound$)))},dependencies:[ii,k0,st,xe,oC,wn,ec,wA,Jl,To,ag,Jc],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-input[_ngcontent-%COMP%]::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.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}),t})();var EA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ee({type:t}),t.\u0275inj=J({imports:[Ka,ff,nr,ng,xA,Yf,ws,sg]}),t})();function $W(t,i){if(t&1){let e=A();l(0,"mat-option")(1,"ngx-mat-select-search",0),b("ngModelChange",function(o){C(e);let r=g();return w(r.changed.emit(o))}),d()()}if(t&2){let e=g();u(),_("placeholderLabel",e.placeholderLabel)("noEntriesFoundLabel",e.noEntriesFoundLabel)}}var dn=(()=>{class t{constructor(){this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.changed=new k,this.notIfLessThan=7}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=S({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&&E(0,$W,2,2,"mat-option"),n&2&&T(o.options&&o.options.length>o.notIfLessThan?0:-1)},dependencies:[xe,Se,Ze,SA],encapsulation:2})}}return t})();function qW(t,i){t&1&&(l(0,"uds-translate"),h(1,"New user permission for"),d())}function YW(t,i){t&1&&(l(0,"uds-translate"),h(1,"New group permission for"),d())}function QW(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),ae(e.text)}}function KW(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),ae(e.text)}}function ZW(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),ae(e.text)}}var MA=(()=>{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 qt}static launch(e,n,o){return N(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 N(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 N(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)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0),E(1,qW,2,0,"uds-translate")(2,YW,2,0,"uds-translate"),I(3,"b",1),d(),l(4,"mat-dialog-content")(5,"div",2)(6,"mat-form-field")(7,"mat-select",3),b("valueChange",function(a){return o.changeAuth(a)}),W("ngModelChange",function(a){return G(o.authenticator,a)||(o.authenticator=a),a}),oe(8,QW,2,2,"mat-option",4,ce),d()(),l(10,"mat-form-field")(11,"mat-select",5),W("ngModelChange",function(a){return G(o.entity,a)||(o.entity=a),a}),l(12,"uds-cond-select-search",6),b("changed",function(a){return o.filterUser=a}),d(),oe(13,KW,2,2,"mat-option",4,ce),d()(),l(15,"mat-form-field")(16,"mat-select",5),W("ngModelChange",function(a){return G(o.permission,a)||(o.permission=a),a}),oe(17,ZW,2,2,"mat-option",4,ce),d()()()(),l(19,"mat-dialog-actions")(20,"button",7),b("click",function(){return o.cancel()}),l(21,"uds-translate"),h(22,"Cancel"),d()(),l(23,"button",8),b("click",function(){return o.save()}),l(24,"uds-translate"),h(25,"Ok"),d()()()),n&2&&(u(),T(o.data.type==="user"?1:2),u(2),_("innerHTML",o.data.item.name,Wt),u(4),_("placeholder",o.getFieldLabel("auth")),H("ngModel",o.authenticator),u(),re(o.authenticators),u(3),_("placeholder",o.getFieldLabel(o.data.type)),H("ngModel",o.entity),u(),_("options",o.entities),u(),re(o.filteredEntities()),u(3),_("placeholder",o.getFieldLabel("perm")),H("ngModel",o.permission),u(),re(o.permissions))},dependencies:[xe,Se,ye,Ue,We,He,ge,ht,Ze,de,dn],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 XW=(t,i)=>[t,i];function JW(t,i){if(t&1){let e=A();l(0,"div",9)(1,"div",10),h(2),d(),l(3,"div",11),h(4),l(5,"a",12),b("click",function(){let o=C(e).$implicit,r=g(2);return w(r.revokePermission(o))}),l(6,"i",13),h(7,"close"),d()()()()}if(t&2){let e=i.$implicit;u(2),wi(" ",e.entity_name,"@",e.auth_name," "),u(2),F(" ",e.perm_name," \xA0")}}function eG(t,i){if(t&1){let e=A();l(0,"div",5)(1,"div",7)(2,"div",8),b("click",function(o){let r=C(e).$implicit;return g().newPermission(r),w(o.preventDefault())}),l(3,"uds-translate"),h(4,"New permission..."),d()(),oe(5,JW,8,3,"div",9,ce),d()()}if(t&2){let e=i.$implicit;u(5),re(e)}}var TA=(()=>{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 N(this,null,function*(){yield this.reload()})}reload(){return N(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 N(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 N(this,null,function*(){let n=e===this.userPermissions?"user":"group",o=yield MA.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)(y(j),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"Permissions for"),d(),h(3,"\xA0"),I(4,"b",1),d(),l(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),h(8,"Users"),d(),l(9,"uds-translate",3),h(10,"Groups"),d()(),l(11,"div",4),oe(12,eG,7,0,"div",5,ce),d()(),l(14,"mat-dialog-actions")(15,"button",6)(16,"uds-translate"),h(17,"Ok"),d()()()),n&2&&(u(4),_("innerHTML",o.data.item.name,Wt),u(8),re(Mp(1,XW,o.userPermissions,o.groupPermissions)))},dependencies:[ye,Ft,Ue,We,He,de],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 RA=Mu(lg());var tG="text/csv",IA=",",kA=`\r +`,AA=t=>(t.changingThisBreaksApplicationSecurity!==void 0&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),t=""+t,'"'+t.replace('"','""')+'"'),cg=t=>N(null,null,function*(){let i="";t.columns.forEach(o=>{i+=AA(o.title)+IA}),i=i.slice(0,-1)+kA;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 Nt.DATE:a=Un("SHORT_DATE_FORMAT",a);break;case Nt.DATETIME:a=Un("SHORT_DATETIME_FORMAT",a);break;case Nt.DATETIMESEC:a=Un("SHORT_DATE_FORMAT",a," H:i:s");break;case Nt.TIME:a=Un("TIME_FORMAT",a);break;default:break}i+=AA(a)+IA}i=i.slice(0,-1)+kA}let n=new Blob([i],{type:tG});setTimeout(()=>{(0,RA.saveAs)(n,t.title+".csv",{autoBom:!1})})});var dg=class extends hs{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 bt(!1),this.loading$=this.loadingSubject.asObservable(),this.dataSubject=new bt([]),this.data$=this.dataSubject.asObservable(),this.totalSubject=new bt(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 c=s.join("&");this.rest.list(c,!0).then(({items:m,headers:f})=>{let v=parseInt(f.get("X-Total-Count")??"0",10);if(this.onItem)for(let D of m)try{this.onItem(D)}catch(x){console.error("onItem error:",x)}this.dataSubject.next(m),this.totalSubject.next(v)}).catch(()=>{this.dataSubject.next([]),this.totalSubject.next(0)}).finally(()=>this.loadingSubject.next(!1))}get data(){return this.dataSubject.getValue()}};var PC=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{}return e}destroy(){let i=this._textarea;i&&(i.remove(),this._textarea=void 0)}},OA=(()=>{class t{_document=p(he);constructor(){}copy(e){let n=this.beginCopy(e),o=n.copy();return n.destroy(),o}beginCopy(e){return new PC(e,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var PA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var iG=["mat-menu-item",""],oG=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],rG=["mat-icon, [matMenuItemIcon]","*"];function aG(t,i){t&1&&(on(),l(0,"svg",2),I(1,"polygon",3),d())}var sG=["*"];function lG(t,i){if(t&1){let e=A();l(0,"div",0),b("click",function(){C(e);let o=g();return w(o.closed.emit("click"))})("animationstart",function(o){C(e);let r=g();return w(r._onAnimationStart(o.animationName))})("animationend",function(o){C(e);let r=g();return w(r._onAnimationDone(o.animationName))})("animationcancel",function(o){C(e);let r=g();return w(r._onAnimationDone(o.animationName))}),l(1,"div",1),ue(2),d()()}if(t&2){let e=g();Bt(e._classList),X("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating),_("id",e.panelId),ne("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var NC=new R("MAT_MENU_PANEL"),xs=(()=>{class t{_elementRef=p(Z);_document=p(he);_focusMonitor=p(Cn);_parentMenu=p(NC,{optional:!0});_changeDetectorRef=p(De);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new z;_focused=new z;_highlighted=!1;_triggersSubmenu=!1;constructor(){p(yt).load(gn),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(St);_appRef=p(ni);_injector=p(Ie);_viewContainerRef=p(Rt);_document=p(he);_changeDetectorRef=p(De);_portal;_outlet;_attached=new z;constructor(){}attach(e={}){this._portal||(this._portal=new yn(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new ss(this._document.createElement("div"),null,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=B({type:t,selectors:[["ng-template","matMenuContent",""]],features:[we([{provide:FA,useExisting:t}])]})}return t})(),cG=new R("mat-menu-default-options",{providedIn:"root",factory:dG});function dG(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var FC="_mat-menu-enter",ug="_mat-menu-exit",ya=(()=>{class t{_elementRef=p(Z);_changeDetectorRef=p(De);_injector=p(Ie);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled;_allItems;_directDescendantItems=new Qi;_classList={};_panelAnimationState="void";_animationDone=new z;_isAnimating=!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;hasBackdrop;set panelClass(e){let n=this._previousPanelClass,o=V({},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 k;close=this.closed;panelId=p(ut).getId("mat-menu-panel-");constructor(){let e=p(cG);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop,this._animationsDisabled=p(tt,{optional:!0})==="NoopAnimations"}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Tr(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(xt(this._directDescendantItems),Dt(e=>_t(...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(xt(this._directDescendantItems),Dt(n=>_t(...n.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,o=this._keyManager;switch(n){case 27:Et(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=Ht(()=>{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=Qe(V({},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===ug;(n||e===FC)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating=!1)}_onAnimationStart(e){(e===FC||e===ug)&&(this._isAnimating=!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(ug),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?FC:ug)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(xt(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=S({type:t,selectors:[["mat-menu"]],contentQueries:function(n,o,r){if(n&1&&(ze(r,FA,5),ze(r,xs,5),ze(r,xs,4)),n&2){let a;q(a=Y())&&(o.lazyContent=a.first),q(a=Y())&&(o._allItems=a),q(a=Y())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&me(St,5),n&2){let r;q(r=Y())&&(o.templateRef=r.first)}},hostVars:3,hostBindings:function(n,o){n&2&&ne("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",$],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:$(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[we([{provide:NC,useExisting:t}])],ngContentSelectors:sG,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&&(Le(),E(0,lG,3,12,"ng-template"))},styles:[`mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none} +`],encapsulation:2,changeDetection:0})}return t})(),LA=new R("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(At);return()=>t.scrollStrategies.reposition()}});function uG(t){return()=>t.scrollStrategies.reposition()}var mG={provide:LA,deps:[At],useFactory:uG},pG={passive:!0};var du=new WeakMap,mg=(()=>{class t{_overlay=p(At);_element=p(Z);_viewContainerRef=p(Rt);_menuItemInstance=p(xs,{optional:!0,self:!0});_dir=p(Pt,{optional:!0});_focusMonitor=p(Cn);_ngZone=p(ie);_scrollStrategy=p(LA);_changeDetectorRef=p(De);_cleanupTouchstart;_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=be.EMPTY;_hoverSubscription=be.EMPTY;_menuCloseSubscription=be.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=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()))}_menu;menuData;restoreFocus=!0;menuOpened=new k;onMenuOpen=this.menuOpened;menuClosed=new k;onMenuClose=this.menuClosed;constructor(){let e=p(NC,{optional:!0}),n=p(kt);this._parentMaterialMenu=e instanceof ya?e:void 0,this._cleanupTouchstart=$t(n,this._element.nativeElement,"touchstart",o=>{cs(o)||(this._openedBy="touch")},pG)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this.menu&&this._ownsMenu(this.menu)&&du.delete(this.menu),this._cleanupTouchstart(),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.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)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let e=this.menu;if(this._menuOpen||!e)return;this._pendingRemoval?.unsubscribe();let n=du.get(e);du.set(e,this),n&&n!==this&&n.closeMenu();let o=this._createOverlay(e),r=o.getConfig(),a=r.positionStrategy;this._setPosition(e,a),r.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,o.hasAttached()||(o.attach(this._getPortal(e)),e.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),e instanceof ya&&(e._setIsOpen(!0),e._directDescendantItems.changes.pipe(Te(e.close)).subscribe(()=>{a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){let n=this._overlayRef,o=this._menu;!n||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),o instanceof ya&&this._ownsMenu(o)?(this._pendingRemoval=o._animationDone.pipe(wt(1)).subscribe(()=>{n.detach(),o.lazyContent?.detach()}),o._setIsOpen(!1)):(n.detach(),o?.lazyContent?.detach()),o&&this._ownsMenu(o)&&du.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=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe(o=>{this.menu instanceof ya&&this.menu._handleKeydown(o)})}return this._overlayRef}_getOverlayConfig(e){return new si({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).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"})}_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"],[c,m]=[a,s],[f,v]=[o,r],D=0;if(this.triggersSubmenu()){if(v=o=e.xPosition==="before"?"start":"end",r=f=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let x=this._parentMaterialMenu.items.first;this._parentInnerPadding=x?x._getHostElement().offsetTop:0}D=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c=a==="top"?"bottom":"top",m=s==="top"?"bottom":"top");n.withPositions([{originX:o,originY:c,overlayX:f,overlayY:a,offsetY:D},{originX:r,originY:c,overlayX:v,overlayY:a,offsetY:D},{originX:o,originY:m,overlayX:f,overlayY:s,offsetY:-D},{originX:r,originY:m,overlayX:v,overlayY:s,offsetY:-D}])}_menuClosingActions(){let e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:se(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ke(a=>this._menuOpen&&a!==this._menuItemInstance)):se();return _t(e,o,r,n)}_handleMousedown(e){ls(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._openedBy="mouse",this.openMenu())}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new yn(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return du.get(e)===this}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&b("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&ne("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]})}return t})(),VA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[mG],imports:[tr,fe,jn,Li,fe]})}return t})(),BA={transformMenu:{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null}},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},fadeInItems:{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null}},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}},qye=BA.fadeInItems,Yye=BA.transformMenu;var hG=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({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}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms} +`],encapsulation:2,changeDetection:0})}return t})(),fG={passive:!0},zA=(()=>{class t{_platform=p(et);_ngZone=p(ie);_renderer=p(hn).createRenderer(null,null);_styleLoader=p(yt);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return _n;this._styleLoader.load(hG);let n=ai(e),o=this._monitoredElements.get(n);if(o)return o.subject;let r=new z,a="cdk-text-field-autofilled",s=m=>{m.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>r.next({target:m.target,isAutofilled:!0}))):m.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>r.next({target:m.target,isAutofilled:!1})))},c=this._ngZone.runOutsideAngular(()=>(n.classList.add("cdk-text-field-autofill-monitored"),$t(this._renderer,n,"animationstart",s,fG)));return this._monitoredElements.set(n,{subject:r,unlisten:c}),r}stopMonitoring(e){let n=ai(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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var UA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var pg=new R("MAT_INPUT_VALUE_ACCESSOR");var gG=["button","checkbox","file","hidden","image","radio","range","reset","submit"],_G=new R("MAT_INPUT_CONFIG"),pt=(()=>{class t{_elementRef=p(Z);_platform=p(et);ngControl=p(Mi,{optional:!0,self:!0});_autofillMonitor=p(zA);_ngZone=p(ie);_formField=p(so,{optional:!0});_renderer=p(kt);_uid=p(ut).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=p(_G,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new z;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Vi(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(ir.required)??!1}set required(e){this._required=Vi(e)}_required;get type(){return this._type}set type(e){let n=this._type;this._type=e||"text",this._validateType(),!this._isTextarea&&Gy().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._type!==n&&this._ensureWheelDefaultBehavior()}_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=Vi(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=>Gy().has(e));constructor(){let e=p(ao,{optional:!0}),n=p(pa,{optional:!0}),o=p(ys),r=p(pg,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();r?Qr(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 ha(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&&Yc(()=>{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(){gG.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}setDescribedByIds(e){let n=this._elementRef.nativeElement,o=n.getAttribute("aria-describedby"),r;if(o){let a=this._formFieldDescribedBy||e;r=e.concat(o.split(" ").filter(s=>s&&!a.includes(s)))}else r=e;this._formFieldDescribedBy=e,r.length?n.setAttribute("aria-describedby",r.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))};_webkitBlinkWheelListener=()=>{};_ensureWheelDefaultBehavior(){this._cleanupWebkitWheel?.(),this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._cleanupWebkitWheel=this._renderer.listen(this._elementRef.nativeElement,"wheel",this._webkitBlinkWheelListener))}_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({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&&b("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(bn("id",o.id)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),ne("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),X("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",$]},exportAs:["matInput"],features:[we([{provide:Ar,useExisting:t}]),je]})}return t})(),HA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[fe,va,va,UA,fe]})}return t})();var vG=[[["caption"]],[["colgroup"],["col"]],"*"],bG=["caption","colgroup, col","*"];function yG(t,i){t&1&&ue(0,2)}function CG(t,i){t&1&&(l(0,"thead",0),Mn(1,1),d(),l(2,"tbody",0),Mn(3,2)(4,3),d(),l(5,"tfoot",0),Mn(6,4),d())}function wG(t,i){t&1&&Mn(0,1)(1,2)(2,3)(3,4)}var Io=new R("CDK_TABLE");var bg=(()=>{class t{template=p(St);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),yg=(()=>{class t{template=p(St);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),$A=(()=>{class t{template=p(St);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),tc=(()=>{class t{_table=p(Io,{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=B({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,r){if(n&1&&(ze(r,bg,5),ze(r,yg,5),ze(r,$A,5)),n&2){let a;q(a=Y())&&(o.cell=a.first),q(a=Y())&&(o.headerCell=a.first),q(a=Y())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",$],stickyEnd:[2,"stickyEnd","stickyEnd",$]},features:[we([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]})}return t})(),fg=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}},qA=(()=>{class t extends fg{constructor(){super(p(tc),p(Z))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[_e]})}return t})();var YA=(()=>{class t extends fg{constructor(){let e=p(tc),n=p(Z);super(e,n);let o=e._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[_e]})}return t})(),gg=class{tasks=[];endTasks=[]},_g=new R("_COALESCED_STYLE_SCHEDULER"),VC=(()=>{class t{_currentSchedule=null;_ngZone=p(ie);constructor(){}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new gg,this._ngZone.runOutsideAngular(()=>queueMicrotask(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let e=this._currentSchedule;this._currentSchedule=new gg;for(let n of e.tasks)n();for(let n of e.endTasks)n()}this._currentSchedule=null})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();var BC=(()=>{class t{template=p(St);_differs=p(Sr);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 uu?e.headerCell.template:this instanceof jC?e.footerCell.template:e.cell.template}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,features:[je]})}return t})(),uu=(()=>{class t extends BC{_table=p(Io,{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(St),p(Sr))}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=B({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",$]},features:[_e,je]})}return t})(),jC=(()=>{class t extends BC{_table=p(Io,{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(St),p(Sr))}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=B({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",$]},features:[_e,je]})}return t})(),Cg=(()=>{class t extends BC{_table=p(Io,{optional:!0});when;constructor(){super(p(St),p(Sr))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[_e]})}return t})(),Ds=(()=>{class t{_viewContainer=p(Rt);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=B({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),zC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({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&&Mn(0,0)},dependencies:[Ds],encapsulation:2})}return t})();var UC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({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&&Mn(0,0)},dependencies:[Ds],encapsulation:2})}return t})(),QA=(()=>{class t{templateRef=p(St);_contentClassName="cdk-no-data-row";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),WA=["top","bottom","left","right"],LC=class{_isNativeHtmlTable;_stickCellCss;direction;_coalescedStyleScheduler;_isBrowser;_needsPositionStickyOnElement;_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,o,r=!0,a=!0,s,c){this._isNativeHtmlTable=i,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=o,this._isBrowser=r,this._needsPositionStickyOnElement=a,this._positionListener=s,this._tableInjector=c,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));this._afterNextRender({write:()=>{for(let o of n)this._removeStickyStyle(o,e)}})}updateStickyColumns(i,e,n,o=!0,r=!0){if(!i.length||!this._isBrowser||!(e.some(K=>K)||n.some(K=>K))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=i[0],s=a.children.length,c=this.direction==="rtl",m=c?"right":"left",f=c?"left":"right",v=e.lastIndexOf(!0),D=n.indexOf(!0),x,M,O;r&&this._updateStickyColumnReplayQueue({rows:[...i],stickyStartStates:[...e],stickyEndStates:[...n]}),this._afterNextRender({earlyRead:()=>{x=this._getCellWidths(a,o),M=this._getStickyStartColumnPositions(x,e),O=this._getStickyEndColumnPositions(x,n)},write:()=>{for(let K of i)for(let U=0;U!!K)&&(this._positionListener.stickyColumnsUpdated({sizes:v===-1?[]:x.slice(0,v+1).map((K,U)=>e[U]?K:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:D===-1?[]:x.slice(D).map((K,U)=>n[U+D]?K:null).reverse()}))}})}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=[],c=[];this._afterNextRender({earlyRead:()=>{for(let m=0,f=0;m{let m=r.lastIndexOf(!0);for(let f=0;f{let n=i.querySelector("tfoot");n&&(e.some(o=>!o)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1))}})}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]);WA.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 WA)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&&xG(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))}_afterNextRender(i){this._tableInjector?Ht(i,{injector:this._tableInjector}):this._coalescedStyleScheduler.schedule(()=>{i.earlyRead?.(),i.write()})}};function xG(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(i=>t.classList.contains(i))}var vg=new R("CDK_SPL");var HC=(()=>{class t{viewContainer=p(Rt);elementRef=p(Z);constructor(){let e=p(Io);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","rowOutlet",""]]})}return t})(),WC=(()=>{class t{viewContainer=p(Rt);elementRef=p(Z);constructor(){let e=p(Io);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),GC=(()=>{class t{viewContainer=p(Rt);elementRef=p(Z);constructor(){let e=p(Io);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),$C=(()=>{class t{viewContainer=p(Rt);elementRef=p(Z);constructor(){let e=p(Io);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})();var qC=(()=>{class t{_differs=p(Sr);_changeDetectorRef=p(De);_elementRef=p(Z);_dir=p(Pt,{optional:!0});_platform=p(et);_viewRepeater=p(Ol);_coalescedStyleScheduler=p(_g);_viewportRuler=p(Ei);_stickyPositioningListener=p(vg,{optional:!0,skipSelf:!0});_document=p(he);_data;_onDestroy=new z;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_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;_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)}_dataSource;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._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new k;viewChange=new bt({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=p(Ie);constructor(){p(new Nn("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(Te(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){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._onDestroy.next(),this._onDestroy.complete(),Fd(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===sa.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=GA(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=GA(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())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let e=[],n=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return e;for(let o=0;o{let s=o&&o.has(a)?o.get(a):[];if(s.length){let c=s.shift();return c.dataIndex=n,c}else return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),hg(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=hg(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=hg(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=hg(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(n=>!n.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let c=!!s.getColumnsDiff();return a||c},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=[],Fd(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;Fd(this.dataSource)?e=this.dataSource.connect(this):js(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=se(this.dataSource)),this._renderChangeSubscription=e.pipe(Te(this._onDestroy)).subscribe(n=>{this._data=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 c=this._columnDefsByName.get(s);return c}),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))Ds.mostRecentCellOutlet&&Ds.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";this._stickyStyler=new LC(this._isNativeHtmlTable,this.stickyCssClass,e,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:se()).pipe(Te(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(n=>!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];r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(e._contentClassName))}else o.clear();this._isShowingNoDataRow=n,this._changeDetectorRef.markForCheck()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,r){if(n&1&&(ze(r,QA,5),ze(r,tc,5),ze(r,Cg,5),ze(r,uu,5),ze(r,jC,5)),n&2){let a;q(a=Y())&&(o._noDataRow=a.first),q(a=Y())&&(o._contentColumnDefs=a),q(a=Y())&&(o._contentRowDefs=a),q(a=Y())&&(o._contentHeaderRowDefs=a),q(a=Y())&&(o._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(n,o){n&2&&X("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",$],fixedLayout:[2,"fixedLayout","fixedLayout",$]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[we([{provide:Io,useExisting:t},{provide:Ol,useClass:Cs},{provide:_g,useClass:VC},{provide:vg,useValue:null}])],ngContentSelectors:bG,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(Le(vG),ue(0),ue(1,1),E(2,yG,1,0)(3,CG,7,0)(4,wG,4,0)),n&2&&(u(2),T(o._isServer?2:-1),u(),T(o._isNativeHtmlTable?3:4))},dependencies:[WC,HC,$C,GC],styles:[`.cdk-table-fixed-layout{table-layout:fixed} +`],encapsulation:2})}return t})();function hg(t,i){return t.concat(Array.from(i))}function GA(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 KA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[Ld]})}return t})();var DG=[[["caption"]],[["colgroup"],["col"]],"*"],SG=["caption","colgroup, col","*"];function EG(t,i){t&1&&ue(0,2)}function MG(t,i){t&1&&(l(0,"thead",0),Mn(1,1),d(),l(2,"tbody",2),Mn(3,3)(4,4),d(),l(5,"tfoot",0),Mn(6,5),d())}function TG(t,i){t&1&&Mn(0,1)(1,3)(2,4)(3,5)}var xg=(()=>{class t extends qC{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275cmp=S({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&&X("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[we([{provide:qC,useExisting:t},{provide:Io,useExisting:t},{provide:_g,useClass:VC},{provide:Ol,useClass:Cs},{provide:vg,useValue:null}]),_e],ngContentSelectors:SG,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(Le(DG),ue(0),ue(1,1),E(2,EG,1,0)(3,MG,7,0)(4,TG,4,0)),n&2&&(u(2),T(o._isServer?2:-1),u(),T(o._isNativeHtmlTable?3:4))},dependencies:[WC,HC,$C,GC],styles:[`.mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:var(--mat-table-header-container-height, 56px)}mat-row{min-height:var(--mat-table-row-item-container-height, 52px)}mat-footer-row{min-height:var(--mat-table-footer-container-height, 52px)}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-sys-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mdc-data-table__row:last-child>.mat-mdc-header-cell{border-bottom:none}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child>.mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking))}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch} +`],encapsulation:2})}return t})(),Dg=(()=>{class t extends bg{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["","matCellDef",""]],features:[we([{provide:bg,useExisting:t}]),_e]})}return t})(),Sg=(()=>{class t extends yg{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["","matHeaderCellDef",""]],features:[we([{provide:yg,useExisting:t}]),_e]})}return t})();var Eg=(()=>{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=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[we([{provide:tc,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),_e]})}return t})(),Mg=(()=>{class t extends qA{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[_e]})}return t})();var Tg=(()=>{class t extends YA{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[_e]})}return t})();var Ig=(()=>{class t extends uu{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",$]},features:[we([{provide:uu,useExisting:t}]),_e]})}return t})();var kg=(()=>{class t extends Cg{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275dir=B({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[we([{provide:Cg,useExisting:t}]),_e]})}return t})(),Ag=(()=>{class t extends zC{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275cmp=S({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:[we([{provide:zC,useExisting:t}]),_e],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Mn(0,0)},dependencies:[Ds],encapsulation:2})}return t})();var Rg=(()=>{class t extends UC{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275cmp=S({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[we([{provide:UC,useExisting:t}]),_e],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Mn(0,0)},dependencies:[Ds],encapsulation:2})}return t})();var ZA=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[fe,KA,fe]})}return t})(),IG=9007199254740991,wg=class extends hs{_data;_renderData=new bt([]);_filter=new bt("");_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(Dh(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),c=this.sortingDataAccessor(a,n),m=typeof s,f=typeof c;m!==f&&(m==="number"&&(s+=""),f==="number"&&(c+=""));let v=0;return s!=null&&c!=null?s>c?v=1:s{let n=e.trim().toLowerCase();return Object.values(i).some(o=>`${o}`.toLowerCase().includes(n))};constructor(i=[]){super(),this._data=new bt(i),this._updateChangeSubscription()}_updateChangeSubscription(){let i=this._sort?_t(this._sort.sortChange,this._sort.initialized):se(null),e=this._paginator?_t(this._paginator.page,this._internalPageChanges,this._paginator.initialized):se(null),n=this._data,o=Ri([n,this._filter]).pipe(pe(([s])=>this._filterData(s))),r=Ri([o,i]).pipe(pe(([s])=>this._orderData(s))),a=Ri([r,e]).pipe(pe(([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 JA=(()=>{class t{transform(e){return Wy(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Yo({name:"isEmpty",type:t,pure:!0,standalone:!1})}}return t})(),mn=(()=>{class t{transform(e){return!Wy(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=Yo({name:"notEmpty",type:t,pure:!0,standalone:!1})}}return t})();var eR=(()=>{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=Yo({name:"sort",type:t,pure:!0,standalone:!1})}}return t})();var AG=["trigger"],RG=()=>[5,10,25,100,1e3];function OG(t,i){if(t&1&&I(0,"img",7),t&2){let e=g();_("src",e.icon,Ee)}}function PG(t,i){if(t&1){let e=A();l(0,"button",44),b("click",function(){let o=C(e).$implicit,r=g(5);return w(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=g(5);_("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Wt)}}function FG(t,i){if(t&1&&(l(0,"button",41),h(1),d(),l(2,"mat-menu",42,3),oe(4,PG,1,1,"button",43,ce),dt(6,"sort"),d()),t&2){let e=i.$implicit,n=Ye(3);_("matMenuTriggerFor",n),u(),ae(e.key),u(),_("overlapTrigger",!1),u(2),re(b0(6,3,e.value,"name"))}}function NG(t,i){if(t&1&&(l(0,"mat-menu",38,2),oe(2,FG,7,6,null,null,ce),dt(4,"keyvalue"),d(),l(5,"a",39)(6,"i",23),h(7,"insert_drive_file"),d(),l(8,"span",40)(9,"uds-translate"),h(10,"New"),d()(),l(11,"i",23),h(12,"arrow_drop_down"),d()()),t&2){let e=Ye(1),n=g(3);_("overlapTrigger",!1),u(2),re(vt(4,2,n.grpTypes)),u(3),_("matMenuTriggerFor",e)}}function LG(t,i){if(t&1){let e=A();l(0,"button",46),b("click",function(){let o=C(e).$implicit,r=g(4);return w(r.newAction.emit({param:o,table:r}))}),d()}if(t&2){let e=i.$implicit,n=g(4);_("innerHTML",n.api.safeString(n.api.gui.icon_from_image(e.icon)+e.name),Wt)}}function VG(t,i){if(t&1&&(l(0,"mat-menu",38,2),oe(2,LG,1,1,"button",45,ce),dt(4,"sort"),d(),l(5,"a",39)(6,"i",23),h(7,"insert_drive_file"),d(),l(8,"span",40)(9,"uds-translate"),h(10,"New"),d()(),l(11,"i",23),h(12,"arrow_drop_down"),d()()),t&2){let e=Ye(1),n=g(3);_("overlapTrigger",!1),u(2),re(b0(4,2,n.oTypes,"name")),u(3),_("matMenuTriggerFor",e)}}function BG(t,i){if(t&1&&E(0,NG,13,4)(1,VG,13,5),t&2){let e=g(2);T(e.newGrouped?0:-1),u(),T(e.newGrouped?-1:1)}}function jG(t,i){if(t&1){let e=A();l(0,"a",47),b("click",function(){C(e);let o=g(2);return w(o.newAction.emit({param:void 0,table:o}))}),l(1,"i",23),h(2,"insert_drive_file"),d(),l(3,"span",40)(4,"uds-translate"),h(5,"New"),d()()()}}function zG(t,i){if(t&1&&E(0,BG,2,2)(1,jG,6,0,"a",37),t&2){let e=g();T(e.oTypes!==void 0&&e.oTypes.length!==0?0:-1),u(),T(e.oTypes!==void 0&&e.oTypes.length===0?1:-1)}}function UG(t,i){if(t&1){let e=A();l(0,"a",48),b("click",function(){C(e);let o=g();return w(o.emitIfSelection(o.editAction))}),l(1,"i",23),h(2,"edit"),d(),l(3,"span",40)(4,"uds-translate"),h(5,"Edit"),d()()()}if(t&2){let e=g();_("disabled",e.selection.selected.length!==1)}}function HG(t,i){if(t&1){let e=A();l(0,"a",48),b("click",function(){C(e);let o=g();return w(o.permissions())}),l(1,"i",23),h(2,"perm_identity"),d(),l(3,"span",40)(4,"uds-translate"),h(5,"Permissions"),d()()()}if(t&2){let e=g();_("disabled",e.selection.selected.length!==1)}}function WG(t,i){if(t&1){let e=A();l(0,"a",50),b("click",function(){let o=C(e).$implicit,r=g(2);return w(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=g(2);_("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Wt)}}function GG(t,i){if(t&1&&oe(0,WG,1,2,"a",49,ce),t&2){let e=g();re(e.getcustomButtons())}}function $G(t,i){if(t&1){let e=A();l(0,"a",51),b("click",function(){C(e);let o=g();return w(o.export())}),l(1,"i",23),h(2,"import_export"),d(),l(3,"span",40)(4,"uds-translate"),h(5,"Export CSV"),d()()()}}function qG(t,i){if(t&1){let e=A();l(0,"a",52),b("click",function(){C(e);let o=g();return w(o.emitIfSelection(o.deleteAction,!0))}),l(1,"i",23),h(2,"delete_forever"),d(),l(3,"span",40)(4,"uds-translate"),h(5,"Delete"),d()()()}if(t&2){let e=g();_("disabled",e.selection.isEmpty())}}function YG(t,i){if(t&1){let e=A();l(0,"button",53),b("click",function(){C(e);let o=g();return o.filterText="",w(o.applyFilter())}),l(1,"i",23),h(2,"clear"),d()()}}function QG(t,i){if(t&1){let e=A();l(0,"mat-header-cell")(1,"mat-checkbox",56),b("change",function(){C(e);let o=g(2);return w(o.masterToggle())}),d()()}if(t&2){let e=g(2);u(),_("checked",e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function KG(t,i){if(t&1){let e=A();l(0,"mat-cell",57),b("click",function(o){let r=C(e).$implicit,a=g(2);return w(a.clickRow(r,o))}),l(1,"mat-checkbox",58),b("click",function(o){return C(e),w(o.stopPropagation())})("change",function(){let o=C(e).$implicit,r=g(2);return w(r.selection.toggle(o))}),d()()}if(t&2){let e=i.$implicit,n=g(2);u(),_("checked",n.selection.isSelected(e))}}function ZG(t,i){t&1&&(xr(0,26),E(1,QG,2,2,"mat-header-cell",54)(2,KG,2,1,"mat-cell",55),Dr())}function XG(t,i){if(t&1){let e=A();l(0,"mat-header-cell",61),b("click",function(){C(e);let o=g().$implicit,r=g();return w(!r.isSortable(o.name)&&r.onNotSortableClick(o.title))}),h(1),d()}if(t&2){let e=g().$implicit,n=g();X("non-sortable",!n.isSortable(e.name)),_("disabled",!n.isSortable(e.name))("ngStyle",n.columnStyle(e)),u(),F(" ",e.title," ")}}function JG(t,i){if(t&1){let e=A();l(0,"mat-cell",62),b("click",function(o){let r=C(e).$implicit,a=g(2);return w(a.clickRow(r,o))})("contextmenu",function(o){let r=C(e).$implicit,a=g().$implicit,s=g();return w(s.onContextMenu(r,a,o))}),I(1,"div",63),d()}if(t&2){let e=i.$implicit,n=g().$implicit,o=g();_("ngStyle",o.columnStyle(n)),u(),_("innerHtml",o.getRowColumn(e,n),Wt)}}function e$(t,i){if(t&1&&(xr(0,27),E(1,XG,2,5,"mat-header-cell",59)(2,JG,2,2,"mat-cell",60),Dr()),t&2){let e=i.$implicit;Xr("matColumnDef",e.name)}}function t$(t,i){t&1&&I(0,"mat-header-row")}function n$(t,i){if(t&1&&I(0,"mat-row",64),t&2){let e=i.$implicit,n=g();_("ngClass",n.rowClass(e))}}function i$(t,i){if(t&1&&(l(0,"div",34),h(1),l(2,"uds-translate"),h(3,"Selected items"),d()()),t&2){let e=g();u(),F(" ",e.selection.selected.length," ")}}function o$(t,i){if(t&1){let e=A();l(0,"button",68),b("click",function(){C(e);let o=g(2);return w(o.copyToClipboard())}),l(1,"i",69),h(2,"content_copy"),d(),l(3,"uds-translate"),h(4,"Copy"),d()()}}function r$(t,i){if(t&1){let e=A();l(0,"button",68),b("click",function(){C(e);let o=g().item,r=g();return w(r.detailAction.emit({param:o,table:r}))}),l(1,"i",69),h(2,"subdirectory_arrow_right"),d(),l(3,"uds-translate"),h(4,"Detail"),d()()}}function a$(t,i){if(t&1){let e=A();l(0,"button",68),b("click",function(){C(e);let o=g(2);return w(o.emitIfSelection(o.editAction))}),l(1,"i",69),h(2,"edit"),d(),l(3,"uds-translate"),h(4,"Edit"),d()()}}function s$(t,i){if(t&1){let e=A();l(0,"button",68),b("click",function(){C(e);let o=g(2);return w(o.permissions())}),l(1,"i",69),h(2,"perm_identity"),d(),l(3,"uds-translate"),h(4,"Permissions"),d()()}}function l$(t,i){if(t&1){let e=A();l(0,"button",70),b("click",function(){let o=C(e).$implicit,r=g(2);return w(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=g(2);_("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Wt)}}function c$(t,i){if(t&1){let e=A();l(0,"button",71),b("click",function(){C(e);let o=g(2);return w(o.emitIfSelection(o.deleteAction))}),l(1,"i",69),h(2,"delete_forever"),d(),l(3,"uds-translate"),h(4,"Delete"),d()()}}function d$(t,i){if(t&1){let e=A();l(0,"button",70),b("click",function(){let o=C(e).$implicit,r=g(3);return w(r.emitCustom(o))}),d()}if(t&2){let e=i.$implicit,n=g(3);_("disabled",n.isCustomDisabled(e))("innerHTML",e.html,Wt)}}function u$(t,i){if(t&1&&(I(0,"mat-divider"),oe(1,d$,1,2,"button",66,ce)),t&2){let e=g(2);u(),re(e.getCustomAccelerators())}}function m$(t,i){if(t&1&&(E(0,o$,5,0,"button",65)(1,r$,5,0,"button",65)(2,a$,5,0,"button",65)(3,s$,5,0,"button",65),oe(4,l$,1,2,"button",66,ce),E(6,c$,5,0,"button",67)(7,u$,3,0)),t&2){let e=g();T(e.allowCopy===!0?0:-1),u(),T(e.detailAction.observed?1:-1),u(),T(e.editAction.observed?2:-1),u(),T(e.hasPermissions===!0?3:-1),u(),re(e.getCustomMenu()),u(2),T(e.deleteAction.observed?6:-1),u(),T(e.hasAccelerators?7:-1)}}var Me=(()=>{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 k,this.rowSelected=new k,this.newAction=new k,this.editAction=new k,this.deleteAction=new k,this.customButtonAction=new k,this.detailAction=new k,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.types=new Map,this.oTypes=[],this.grpTypes=new Map,this.rowStyleInfo=null,this.selection=new or(!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 bt(""),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 N(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&kr.MANAGEMENT)===0&&(this.newAction.unsubscribe(),this.editAction.unsubscribe(),this.deleteAction.unsubscribe(),this.customButtonAction.unsubscribe()),e!==kr.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{}try{o=yield this.rest.tableInfo()}catch{}if(this.dataSource=new dg(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 or(this.multiSelect===!0,[]),this.autoReload&&this.autoReloadInterval>0){let r=Math.max(this.autoReloadInterval,1e4);this.activitySub=_t(ka(document,"click"),ka(document,"keydown"),ka(document,"mousemove")).subscribe(()=>this.lastActivityTime=Date.now()),this.reloadSub=wc(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 N(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=m=>{c.width===void 0&&(c.width=m)},c=r[a];switch(c.type){case void 0:c.type=Nt.ALPHANUMERIC,s("10rem");break;case Nt.DATE:case Nt.DATETIME:case Nt.TIME:case Nt.DATETIMESEC:s("13rem");break;case Nt.IMAGE:case Nt.BOOLEAN:s("6.5rem");break;case Nt.NUMERIC:s("9rem");break}o.push({name:a,title:c.title,type:c.type===void 0?Nt.ALPHANUMERIC:c.type,dict:c.dict,width:c.width}),(c.visible===void 0||c.visible)&&this.displayedColumns.push(a)}this.columns=o})}getcustomButtons(){return this.customButtons?this.customButtons.filter(e=>e.type!==ot.ONLY_MENU&&e.type!==ot.ACCELERATOR):[]}getCustomMenu(){return this.customButtons?this.customButtons.filter(e=>e.type!==ot.ACCELERATOR):[]}getCustomAccelerators(){return this.customButtons?this.customButtons.filter(e=>e.type===ot.ACCELERATOR):[]}getRowColumn(e,n){let o=e[n.name];switch(n.type){case Nt.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 Nt.IMAGE:return this.api.safeString(this.api.gui.icon_from_image(o,"48px"));case Nt.DATE:o=Un("SHORT_DATE_FORMAT",o);break;case Nt.DATETIME:o=Un("SHORT_DATETIME_FORMAT",o);break;case Nt.TIME:o=Un("TIME_FORMAT",o);break;case Nt.DATETIMESEC:o=Un("SHORT_DATE_FORMAT",o," H:i:s");break;case Nt.ICON:typeof o=="string"&&(o=o.replace(//g,">"));try{o=this.api.gui.icon_from_image(this.types.get(e.type).icon)+o}catch{}return this.api.safeString(o);case Nt.DICTIONARY:try{o=n.dict[o]}catch{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 ot.SINGLE_SELECT:return this.selection.selected.length!==1||e.disabled===!0;case ot.MULTI_SELECT:return this.selection.isEmpty()||e.disabled===!0;default:return!1}}emitCustom(e){!this.selection.selected.length&&e.type!==ot.ALWAYS||(e.type===ot.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 N(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(){cg(this)}permissions(){this.selection.selected.length&&TA.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)(y(j),y(ga),y(OA),y(De))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-table"]],viewQuery:function(n,o){if(n&1&&(me(AG,7),me(Rr,7),me(Or,7)),n&2){let r;q(r=Y())&&(o.contextMenu=r.first),q(r=Y())&&(o.paginator=r.first),q(r=Y())&&(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=A();l(0,"div",4)(1,"div",5)(2,"div",6),E(3,OG,1,1,"img",7),h(4),d(),l(5,"div",8),h(6),d()(),l(7,"div",9)(8,"div",10)(9,"div",11),E(10,zG,2,2)(11,UG,6,1,"a",12)(12,HG,6,1,"a",12)(13,GG,2,0)(14,$G,6,0,"a",13)(15,qG,6,1,"a",14),d(),l(16,"div",15)(17,"div",16)(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),h(21,"Filter"),d()(),l(22,"input",17),b("input",function(){return C(r),w(o.applyFilter())}),W("ngModelChange",function(s){return C(r),G(o.filterText,s)||(o.filterText=s),w(s)}),d(),E(23,YG,3,0,"button",18),dt(24,"notEmpty"),d()(),l(25,"div",19),I(26,"mat-paginator",20),d(),l(27,"div",21)(28,"a",22),b("click",function(){return C(r),w(o.reloadPage())}),l(29,"i",23),h(30,"autorenew"),d()()()()(),l(31,"div",24),b("keydown",function(s){return C(r),w(o.keyDown(s))}),l(32,"mat-table",25),b("matSortChange",function(s){return C(r),w(o.sortChanged(s))}),E(33,ZG,3,0,"ng-container",26),oe(34,e$,3,1,"ng-container",27,ce),E(36,t$,1,0,"mat-header-row",28)(37,n$,1,1,"mat-row",29),d(),l(38,"div",30)(39,"div",31),I(40,"mat-progress-spinner",32),d()()(),l(41,"div",33),h(42," \xA0 "),E(43,i$,4,1,"div",34),d()()(),I(44,"div",35,0),l(46,"mat-menu",null,1),E(48,m$,8,6,"ng-template",36),d()}if(n&2){let r=Ye(47);X("nav-header",o.navHeader),u(3),T(o.icon!==void 0?3:-1),u(),F(" ",o.title," "),u(2),F(" ",o.subtitle," "),u(4),T(o.newAction.observed?10:-1),u(),T(o.editAction.observed?11:-1),u(),T(o.hasPermissions===!0?12:-1),u(),T(o.hasCustomButtons?13:-1),u(),T(o.allowExport===!0?14:-1),u(),T(o.deleteAction.observed?15:-1),u(7),H("ngModel",o.filterText),u(),T(vt(24,29,o.filterText)?23:-1),u(3),_("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",pl(31,RG))("showFirstLastButtons",!0),u(6),_("dataSource",o.dataSource)("trackBy",o.trackById),u(),T(o.hasButtons?33:-1),u(),re(o.columns),u(2),_("matHeaderRowDef",o.displayedColumns),u(),_("matRowDefColumns",o.displayedColumns),u(),_("hidden",!o.loading),u(5),T(o.hasButtons&&o.selection.selected.length>0?43:-1),u(),Vn("left",o.contextMenuPosition.x)("top",o.contextMenuPosition.y),_("matMenuTriggerFor",r)}},dependencies:[ii,Zc,st,xe,Se,ua,$d,wn,ya,xs,NA,mg,ge,Ae,Ui,pt,xg,Sg,Ig,Eg,Dg,kg,Mg,Tg,Ag,Rg,Rr,Or,tg,Jl,ec,ag,de,A0,mn,eR],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}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)!important;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 tR='pause'+django.gettext("Maintenance")+"",p$='pause'+django.gettext("Exit maintenance mode")+"",h$='pause'+django.gettext("Enter maintenance mode")+"",YC=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:tR,type:ot.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=tR;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=p$:this.customButtons[0].html=h$}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 N(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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"uds-table",0),b("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&&_("rest",o.rest.providers)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Me],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 co=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?Nt.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 oi({"X-Total-Count":n.length.toString()})})):Promise.resolve({items:this.data,headers:new oi({"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 kr.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 f$=()=>[5,10,25,100,1e3];function g$(t,i){if(t&1){let e=A();l(0,"button",24),b("click",function(){C(e);let o=g();return o.filterText="",w(o.applyFilter())}),l(1,"i",8),h(2,"close"),d()()}}function _$(t,i){if(t&1&&(l(0,"mat-header-cell",27),h(1),d()),t&2){let e=g().$implicit;u(),ae(e)}}function v$(t,i){if(t&1&&(l(0,"mat-cell"),I(1,"div",28),d()),t&2){let e=i.$implicit,n=g().$implicit,o=g();u(),_("innerHtml",o.getRowColumn(e,n),Wt)}}function b$(t,i){if(t&1&&(xr(0,20),E(1,_$,2,1,"mat-header-cell",25)(2,v$,2,1,"mat-cell",26),Dr()),t&2){let e=i.$implicit;_("matColumnDef",e)}}function y$(t,i){t&1&&I(0,"mat-header-row")}function C$(t,i){if(t&1&&I(0,"mat-row",29),t&2){let e=i.$implicit,n=g();_("ngClass",n.rowClass(e))}}var Ti=(()=>{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 wg([]),this.selection=new or}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"?Nt.DATETIMESEC:Nt.ALPHANUMERIC;this.columns.push({name:e,title:e,type:n})}this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.reloadPage()}reloadPage(){return N(this,null,function*(){this.dataSource.data=yield this.rest.getLogs(this.itemId)})}selectElement(e){return N(this,null,function*(){})}getRowColumn(e,n){let o=e[n];return n==="date"?o=Un("SHORT_DATE_FORMAT",o," H:i:s"):n==="level"&&(o=TI(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(){cg(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)(y(j))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-logs-table"]],viewQuery:function(n,o){if(n&1&&(me(Rr,7),me(Or,7)),n&2){let r;q(r=Y())&&(o.paginator=r.first),q(r=Y())&&(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&&(l(0,"div",0)(1,"div",1)(2,"div",2),I(3,"img",3),h(4," \xA0"),l(5,"uds-translate"),h(6,"Logs"),d()()(),l(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),b("click",function(){return o.export()}),l(11,"i",8),h(12,"import_export"),d(),l(13,"span",9)(14,"uds-translate"),h(15,"Export"),d()()()(),l(16,"div",10)(17,"div",11)(18,"uds-translate"),h(19,"Filter"),d(),h(20,"\xA0 "),l(21,"mat-form-field")(22,"input",12),b("keyup",function(){return o.applyFilter()}),W("ngModelChange",function(a){return G(o.filterText,a)||(o.filterText=a),a}),d(),E(23,g$,3,0,"button",13),dt(24,"notEmpty"),d()(),l(25,"div",14),I(26,"mat-paginator",15),d(),l(27,"div",16)(28,"a",17),b("click",function(){return o.reloadPage()}),l(29,"i",8),h(30,"autorenew"),d()()()()(),l(31,"div",18),b("keydown",function(a){return o.keyDown(a)}),l(32,"mat-table",19),b("matSortChange",function(a){return o.sortChanged(a)}),oe(33,b$,3,1,"ng-container",20,ce),E(35,y$,1,0,"mat-header-row",21)(36,C$,1,1,"mat-row",22),d()(),I(37,"div",23),d()()),n&2&&(u(3),_("src",o.api.staticURL("admin/img/icons/logs.png"),Ee),u(19),H("ngModel",o.filterText),u(),T(vt(24,10,o.filterText)?23:-1),u(3),_("pageSize",o.pageSize)("hidePageSize",!0)("pageSizeOptions",pl(12,f$))("showFirstLastButtons",!0),u(6),_("dataSource",o.dataSource),u(),re(o.displayedColumns),u(2),_("matHeaderRowDef",o.displayedColumns),u(),_("matRowDefColumns",o.displayedColumns))},dependencies:[ii,st,xe,Se,ua,ye,$d,wn,ge,Ui,pt,xg,Sg,Ig,Eg,Dg,kg,Mg,Tg,Ag,Rg,Rr,Or,tg,de,mn],styles:[".header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0rem}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{min-width:12rem;max-width:20rem}.mat-column-level[_ngcontent-%COMP%]{max-width:8rem;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:8rem} .level-60000>.mat-mdc-cell{color:#ff1e1e!important} .level-50000>.mat-mdc-cell{color:#ff1e1e!important} .level-40000>.mat-mdc-cell{color:#d65014!important}.filter[_ngcontent-%COMP%]{display:flex;align-items:center;width:16rem}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-infix{min-height:3rem;padding-top:1rem!important;padding-bottom:1rem!important}.filter[_ngcontent-%COMP%] .mat-mdc-form-field-bottom-align{height:0px}"]})}}return t})();function w$(t,i){t&1&&(l(0,"uds-translate"),h(1,"Services pools"),d())}function x$(t,i){t&1&&(l(0,"uds-translate"),h(1,"Logs"),d())}var D$=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],nR=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.customButtons=[xn.getGotoButton(tu,"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 co(django.gettext("Service pools"),e,D$,this.service.id+"infopsls")}static{this.\u0275fac=function(n){return new(n||t)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"Information for"),d(),h(3),d(),l(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),E(7,w$,2,0,"ng-template",1),I(8,"uds-table",2),d(),l(9,"mat-tab"),E(10,x$,2,0,"ng-template",1),l(11,"div",3),I(12,"uds-logs-table",4),d()()()(),l(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),h(16,"Ok"),d()()()),n&2&&(u(3),F(" ",o.service.name,` +`),u(5),_("rest",o.servicePools)("customButtons",o.customButtons)("pageSize",6),u(4),_("rest",o.services)("itemId",o.service.id)("tableId","serviceInfo-d-log"+o.service.id)("pageSize",5))},dependencies:[ye,Ft,Ue,We,He,Yt,Qt,Jt,de,Me,Ti],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})();function S$(t,i){if(t&1&&(l(0,"div",2),I(1,"div",3)(2,"div",4),d()),t&2){let e=i.$implicit;u(),_("innerHTML",e.gui.label,Wt),u(),_("innerHTML",e.value,Wt)}}var uo=(()=>{class t{constructor(e){this.api=e,this.gui=[]}ngOnInit(){this.processFields()}processFields(){if(!this.gui||!this.value)return;let e=this.gui.filter(n=>n.gui.type!==ui.HIDDEN);for(let n of e){let o=this.value[n.name];switch(n.gui.type){case ui.CHECKBOX:n.value=o?django.gettext("Yes"):django.gettext("No");break;case ui.PASSWORD:n.value=django.gettext("(hidden)");break;case ui.CHOICE:{let r=Yd.locateChoice(o,n);n.value=r.text;break}case ui.MULTI_CHOICE:n.value=django.gettext("Selected items :")+o.length;break;case ui.IMAGECHOICE:{let r=Yd.locateChoice(o,n);r.img&&(n.value=this.api.safeString(this.api.gui.icon_from_image(r.img)+" "+r.text));break}case ui.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)(y(j))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},standalone:!1,decls:5,vars:0,consts:[[1,"card"],[1,"card-content"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1),oe(2,S$,3,2,"div",2,ce),d(),I(4,"div"),d()),n&2&&(u(2),re(o.processFields()))},styles:[".card-content[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column}.item[_ngcontent-%COMP%]{padding-bottom:.5rem;display:flex}.label[_ngcontent-%COMP%]{font-weight:700;width:32rem;overflow-x:hidden;text-overflow:ellipsis;text-align:end;margin-right:1rem;align-self:center}"]})}}return t})();var E$=t=>["/services","providers",t];function M$(t,i){t&1&&(l(0,"uds-translate"),h(1,"Summary"),d())}function T$(t,i){if(t&1&&I(0,"uds-information",10),t&2){let e=g(2);_("value",e.provider)("gui",e.gui)}}function I$(t,i){t&1&&(l(0,"uds-translate"),h(1,"Services"),d())}function k$(t,i){t&1&&(l(0,"uds-translate"),h(1,"Usage"),d())}function A$(t,i){t&1&&(l(0,"uds-translate"),h(1,"Logs"),d())}function R$(t,i){if(t&1){let e=A();l(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),W("selectedIndexChange",function(o){C(e);let r=g();return G(r.selectedTab,o)||(r.selectedTab=o),w(o)}),l(3,"mat-tab"),E(4,M$,2,0,"ng-template",8),l(5,"div",9),E(6,T$,1,2,"uds-information",10),d()(),l(7,"mat-tab"),E(8,I$,2,0,"ng-template",8),l(9,"div",9)(10,"uds-table",11),b("newAction",function(o){C(e);let r=g();return w(r.onNewService(o))})("editAction",function(o){C(e);let r=g();return w(r.onEditService(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteService(o))})("customButtonAction",function(o){C(e);let r=g();return w(r.onInformation(o))})("loaded",function(o){C(e);let r=g();return w(r.onLoad(o))}),d()()(),l(11,"mat-tab"),E(12,k$,2,0,"ng-template",8),l(13,"div",9)(14,"uds-table",12),b("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteUsage(o))}),d()()(),l(15,"mat-tab"),E(16,A$,2,0,"ng-template",8),l(17,"div",9),I(18,"uds-logs-table",13),d()()()()()}if(t&2){let e=g();u(2),H("selectedIndex",e.selectedTab),_("@.disabled",!0),u(4),T(e.provider&&e.gui?6:-1),u(4),_("rest",e.services)("multiSelect",!0)("allowExport",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-services"+e.provider.id),u(4),_("rest",e.usage)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size)("tableId","providers-d-usage"+e.provider.id),u(4),_("rest",e.services.parentModel)("itemId",e.provider.id)("tableId","providers-d-log"+e.provider.id)}}var QC=(()=>{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:ot.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){nR.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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),h(4,"arrow_back"),d()(),h(5," \xA0"),I(6,"img",4),h(7),d(),E(8,R$,19,17,"div",5),d()),n&2&&(u(2),_("routerLink",Qn(4,E$,o.services.parentId)),u(4),_("src",o.api.staticURL("admin/img/icons/services.png"),Ee),u(),F(" \xA0",o.provider==null?null:o.provider.name," "),u(),T(o.provider!==null?8:-1))},dependencies:[cn,Yt,Qt,Jt,de,Me,Ti,uo],encapsulation:2})}}return t})();var KC=(()=>{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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"uds-table",0),b("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&&_("rest",o.rest.serverGroups)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Me],encapsulation:2})}}return t})();var iR=(()=>{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 N(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(c=>{a(r.componentInstance.result)})})})}onFileChange(e){return N(this,null,function*(){let n=e.target.files[0];if(!n)return;this.filename=n.name;let o=new FileReader,r=new qt;o.onload=s=>{let c=o.result;r.resolve(c)},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)(y(j),y(Re),y(Ve))}}static{this.\u0275cmp=S({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=A();l(0,"h4",1)(1,"uds-translate"),h(2,"CVS Import options for"),d(),h(3,"\xA0"),I(4,"b",2),d(),l(5,"mat-dialog-content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"mat-form-field")(10,"mat-label")(11,"uds-translate"),h(12,"Header"),d()(),l(13,"mat-select",6),W("valueChange",function(s){return C(r),G(o.contains_header,s)||(o.contains_header=s),w(s)}),l(14,"mat-option",7)(15,"uds-translate"),h(16,"CSV contains header line"),d()(),l(17,"mat-option",7)(18,"uds-translate"),h(19,"CSV DOES NOT contains header line"),d()()()()(),l(20,"div",5)(21,"mat-form-field")(22,"mat-label")(23,"uds-translate"),h(24,"Separator"),d()(),l(25,"mat-select",6),W("valueChange",function(s){return C(r),G(o.separator,s)||(o.separator=s),w(s)}),l(26,"mat-option",8)(27,"uds-translate"),h(28,"Use comma"),d(),h(29," (,)"),d(),l(30,"mat-option",9)(31,"uds-translate"),h(32,"Use semicolon"),d(),h(33," (;)"),d(),l(34,"mat-option",10)(35,"uds-translate"),h(36,"Use pipe"),d(),h(37," (|)"),d(),l(38,"mat-option",11)(39,"uds-translate"),h(40,"Use tab"),d(),h(41," (tab)"),d()()()()()(),l(42,"div",12)(43,"mat-form-field")(44,"mat-label")(45,"uds-translate"),h(46,"File"),d()(),l(47,"input",13,0),b("change",function(s){return C(r),w(o.onFileChange(s))}),d(),l(49,"input",14),W("ngModelChange",function(s){return C(r),G(o.filename,s)||(o.filename=s),w(s)}),b("click",function(){C(r);let s=Ye(48);return w(s.click())}),d()()()(),l(50,"mat-dialog-actions")(51,"button",15)(52,"uds-translate"),h(53,"Ok"),d()(),l(54,"button",16),b("click",function(){return C(r),w(o.filename="")}),l(55,"uds-translate"),h(56,"Cancel"),d()()()}n&2&&(u(4),_("innerHTML",o.title,Wt),u(9),H("value",o.contains_header),u(),_("value",!0),u(3),_("value",!1),u(8),H("value",o.separator),u(24),H("ngModel",o.filename),_("placeholder","Click here to select file to import.")("matTooltip",o.help))},dependencies:[st,xe,Se,ye,To,Ft,Ue,We,He,ge,Ae,pt,ht,Ze,de],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 O$=t=>["/services","servers",t];function P$(t,i){t&1&&(l(0,"uds-translate"),h(1,"Summary"),d())}function F$(t,i){t&1&&(l(0,"uds-translate"),h(1,"Servers"),d())}function N$(t,i){if(t&1){let e=A();l(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),E(4,P$,2,0,"ng-template",8),l(5,"div",9),I(6,"uds-information",10),d()(),l(7,"mat-tab"),E(8,F$,2,0,"ng-template",8),l(9,"div",9)(10,"uds-table",11),b("newAction",function(o){C(e);let r=g();return w(r.onNew(o))})("editAction",function(o){C(e);let r=g();return w(r.onEdit(o))})("rowSelected",function(o){C(e);let r=g();return w(r.onRowSelect(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDelete(o))})("customButtonAction",function(o){C(e);let r=g();return w(r.customButtonAction(o))})("loaded",function(o){C(e);let r=g();return w(r.onLoad(o))}),d()()()()()()}if(t&2){let e=g();u(2),_("@.disabled",!0),u(4),_("value",e.server)("gui",e.gui),u(4),_("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 oR='pause'+django.gettext("Maintenance")+"",L$='pause'+django.gettext("Exit maintenance mode")+"",V$='pause'+django.gettext("Enter maintenance mode")+"",B$='import_export'+django.gettext("Import CSV")+"",rR=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:oR,type:ot.SINGLE_SELECT}],this.server=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isStaff?this.cButtons:[]}ngOnInit(){return N(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:B$,type:ot.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 N(this,null,function*(){let n=yield iR.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 N(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=oR;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=L$:this.customButtons[0].html=V$}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("server"))}static{this.\u0275fac=function(n){return new(n||t)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),h(4,"arrow_back"),d()(),h(5," \xA0"),I(6,"img",4),h(7),d(),E(8,N$,11,9,"div",5),d()),n&2&&(u(2),_("routerLink",Qn(4,O$,o.servers.parentId)),u(4),_("src",o.api.staticURL("admin/img/icons/servers.png"),Ee),u(),F(" \xA0",o.server==null?null:o.server.name," "),u(),T(o.server!==null?8:-1))},dependencies:[cn,Yt,Qt,Jt,de,Me,uo],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var ZC=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){return N(this,null,function*(){let e=this.route.snapshot.paramMap.get("authenticator")})}onDetail(e){return N(this,null,function*(){this.api.navigation.gotoAuthenticatorDetail(e.param.id)})}onNew(e){return N(this,null,function*(){this.api.gui.forms.typedNewForm(e,django.gettext("New Authenticator"),!0)})}onEdit(e){return N(this,null,function*(){this.api.gui.forms.typedEditForm(e,django.gettext("Edit Authenticator"),!0)})}onDelete(e){return N(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete Authenticator"))})}onLoad(e){return N(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)(y(j),y(ke),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div")(1,"uds-table",0),b("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&&(u(),_("rest",o.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Me],encapsulation:2})}}return t})();var XC=(()=>{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)(y(j),y(ke),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div")(1,"uds-table",0),b("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&&(u(),_("rest",o.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Me],encapsulation:2})}}return t})();var j$=["panel"],z$=["*"];function U$(t,i){if(t&1&&(l(0,"div",1,0),ue(2),d()),t&2){let e=i.id,n=g();Bt(n._classList),X("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"),_("id",n.id),ne("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}var JC=class{source;option;constructor(i,e){this.source=i,this.option=e}},aR=new R("mat-autocomplete-default-options",{providedIn:"root",factory:H$});function H$(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var ic=(()=>{class t{_changeDetectorRef=p(De);_elementRef=p(Z);_defaults=p(aR);_animationsDisabled=p(tt,{optional:!0})==="NoopAnimations";_activeOptionChanges=be.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;optionSelected=new k;opened=new k;closed=new k;optionActivated=new k;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(ut).getId("mat-autocomplete-");inertGroups;constructor(){let e=p(et);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 _s(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 JC(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=S({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,r){if(n&1&&(ze(r,Ze,5),ze(r,Zl,5)),n&2){let a;q(a=Y())&&(o.options=a),q(a=Y())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&(me(St,7),me(j$,5)),n&2){let r;q(r=Y())&&(o.template=r.first),q(r=Y())&&(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",$],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",$],requireSelection:[2,"requireSelection","requireSelection",$],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",$],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",$]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[we([{provide:Kl,useExisting:t}])],ngContentSelectors:z$,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&&(Le(),E(0,U$,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none} +`],encapsulation:2,changeDetection:0})}return t})();var W$={provide:mi,useExisting:tn(()=>Es),multi:!0};var sR=new R("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(At);return()=>t.scrollStrategies.reposition()}});function G$(t){return()=>t.scrollStrategies.reposition()}var $$={provide:sR,deps:[At],useFactory:G$},Es=(()=>{class t{_environmentInjector=p(sn);_element=p(Z);_overlay=p(At);_viewContainerRef=p(Rt);_zone=p(ie);_changeDetectorRef=p(De);_dir=p(Pt,{optional:!0});_formField=p(so,{optional:!0,host:!0});_viewportRuler=p(Ei);_scrollStrategy=p(sR);_renderer=p(kt);_defaults=p(aR,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new z;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=be.EMPTY;_breakpointObserver=p(us);_handsetLandscapeSubscription=be.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new z;_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;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&&ca(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return _t(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ke(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ke(()=>this._overlayAttached)):se()).pipe(pe(e=>e instanceof Ql?e:null))}optionSelections=qi(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(xt(e),Dt(()=>_t(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(Dt(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new Fe(e=>{let n=r=>{let a=Bn(r),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,c=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!c||!c.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.keyCode,o=Et(e);if(n===27&&!o&&e.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&n===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){let r=this.autocomplete._keyManager.activeItem,a=n===38||n===40;n===9||a&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(a||this.autocomplete._keyManager.activeItem!==r)&&(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 Ji()===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 Fe(o=>{Ht(()=>{o.next()},{injector:this._environmentInjector})}),n=this.autocomplete.options?.changes.pipe(Ut(()=>this._positionStrategy.reapplyLastPosition()),xc(0))??se();return _t(e,n).pipe(Dt(()=>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})),wt(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;jl(this._trackedModal,"aria-owns",n)}}_attachOverlay(e){this.autocomplete;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new yn(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(wf.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&&!Et(e)||e.keyCode===38&&Et(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=null}_getOverlayConfig(){return new si({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){let e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);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&&ca(this._trackedModal,"aria-owns",n),jl(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;ca(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&b("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),n&2&&ne("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",$]},exportAs:["matAutocompleteTrigger"],features:[we([W$]),je]})}return t})(),lR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[$$],imports:[jn,Xl,fe,Li,Xl,fe]})}return t})();function q$(t,i){if(t&1&&(l(0,"div")(1,"uds-translate"),h(2,"Edit user"),d(),h(3),d()),t&2){let e=g();u(3),F(" ",e.user.name," ")}}function Y$(t,i){t&1&&(l(0,"uds-translate"),h(1,"New user"),d())}function Q$(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"input",16),W("ngModelChange",function(o){C(e);let r=g();return G(r.user.name,o)||(r.user.name=o),w(o)}),d()()}if(t&2){let e=g();u(2),F(" ",e.authenticator.type_info.extra.label_username," "),u(),H("ngModel",e.user.name),_("disabled",e.user.id)}}function K$(t,i){if(t&1&&(l(0,"mat-option",13),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),wi(" ",e.id," (",e.name,") ")}}function Z$(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"input",17),W("ngModelChange",function(o){C(e);let r=g();return G(r.user.name,o)||(r.user.name=o),w(o)}),b("input",function(o){C(e);let r=g();return w(r.filterUser(o))}),d(),l(4,"mat-autocomplete",null,0),oe(6,K$,2,3,"mat-option",13,ce),d()()}if(t&2){let e=Ye(5),n=g();u(2),F(" ",n.authenticator.type_info.extra.label_username," "),u(),H("ngModel",n.user.name),_("matAutocomplete",e),u(3),re(n.users)}}function X$(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"input",18),W("ngModelChange",function(o){C(e);let r=g();return G(r.user.password,o)||(r.user.password=o),w(o)}),d()()}if(t&2){let e=g();u(2),F(" ",e.authenticator.type_info.extra.label_password," "),u(),H("ngModel",e.user.password)}}function J$(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),h(3,"MFA"),d()(),l(4,"input",19),W("ngModelChange",function(o){C(e);let r=g();return G(r.user.mfa_data,o)||(r.user.mfa_data=o),w(o)}),d()()}if(t&2){let e=g();u(4),H("ngModel",e.user.mfa_data)}}function e7(t,i){if(t&1&&(l(0,"mat-option",13),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}var tw=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.groups=[],this.onSave=new k(!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 N(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{this.onSave.emit(!1)}})}static{this.\u0275fac=function(n){return new(n||t)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",1),E(1,q$,4,1,"div")(2,Y$,2,0,"uds-translate"),d(),l(3,"mat-dialog-content")(4,"div",2),E(5,Q$,4,3,"mat-form-field")(6,Z$,8,3,"mat-form-field"),l(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),h(10,"Real name"),d()(),l(11,"input",3),W("ngModelChange",function(a){return G(o.user.real_name,a)||(o.user.real_name=a),a}),d()(),l(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),h(15,"Comments"),d()(),l(16,"input",4),W("ngModelChange",function(a){return G(o.user.comments,a)||(o.user.comments=a),a}),d()(),l(17,"mat-form-field")(18,"mat-label")(19,"uds-translate"),h(20,"State"),d()(),l(21,"mat-select",5),W("ngModelChange",function(a){return G(o.user.state,a)||(o.user.state=a),a}),l(22,"mat-option",6)(23,"uds-translate"),h(24,"Enabled"),d()(),l(25,"mat-option",7)(26,"uds-translate"),h(27,"Disabled"),d()()()(),l(28,"mat-form-field")(29,"mat-label")(30,"uds-translate"),h(31,"Role"),d()(),l(32,"mat-select",8),W("ngModelChange",function(a){return G(o.user.role,a)||(o.user.role=a),a}),b("valueChange",function(a){return o.roleChanged(a)}),l(33,"mat-option",9)(34,"uds-translate"),h(35,"Admin"),d()(),l(36,"mat-option",10)(37,"uds-translate"),h(38,"Staff member"),d()(),l(39,"mat-option",11)(40,"uds-translate"),h(41,"User"),d()()()(),E(42,X$,4,2,"mat-form-field")(43,J$,5,1,"mat-form-field"),l(44,"mat-form-field")(45,"mat-label")(46,"uds-translate"),h(47,"Groups"),d()(),l(48,"mat-select",12),W("ngModelChange",function(a){return G(o.user.groups,a)||(o.user.groups=a),a}),oe(49,e7,2,2,"mat-option",13,ce),d()()()(),l(51,"mat-dialog-actions")(52,"button",14)(53,"uds-translate"),h(54,"Cancel"),d()(),l(55,"button",15),b("click",function(){return o.save()}),l(56,"uds-translate"),h(57,"Ok"),d()()()),n&2&&(u(),T(o.user.id?1:2),u(4),T(o.authenticator.type_info.extra.search_users_supported===!1||o.user.id?5:-1),u(),T(o.authenticator.type_info.extra.search_users_supported===!0&&!o.user.id?6:-1),u(5),H("ngModel",o.user.real_name),u(5),H("ngModel",o.user.comments),u(5),H("ngModel",o.user.state),u(11),H("ngModel",o.user.role),u(10),T(o.authenticator.type_info.extra.needs_password?42:-1),u(),T(o.authenticator.type_info.extra.mfa_data_enabled?43:-1),u(5),H("ngModel",o.user.groups),u(),re(o.groups))},dependencies:[st,xe,Se,ye,Ft,Ue,We,He,ge,Ae,pt,ht,Ze,ic,Es,de],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%}"]})}}return t})();function t7(t,i){if(t&1&&(l(0,"div")(1,"uds-translate"),h(2,"Edit group"),d(),h(3),d()),t&2){let e=g();u(3),F(" ",e.group.name," ")}}function n7(t,i){t&1&&(l(0,"uds-translate"),h(1,"New group"),d())}function i7(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"input",9),W("ngModelChange",function(o){C(e);let r=g(2);return G(r.group.name,o)||(r.group.name=o),w(o)}),d()()}if(t&2){let e=g(2);u(2),F(" ",e.authenticator.type_info.extra.label_groupname," "),u(),H("ngModel",e.group.name),_("disabled",e.group.id)}}function o7(t,i){if(t&1&&(l(0,"mat-option",11),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),wi(" ",e.id," (",e.name,") ")}}function r7(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"input",10),W("ngModelChange",function(o){C(e);let r=g(2);return G(r.group.name,o)||(r.group.name=o),w(o)}),b("input",function(o){C(e);let r=g(2);return w(r.filterGroup(o))}),d(),l(4,"mat-autocomplete",null,0),oe(6,o7,2,3,"mat-option",11,ce),d()()}if(t&2){let e=Ye(5),n=g(2);u(2),F(" ",n.authenticator.type_info.extra.label_groupname," "),u(),H("ngModel",n.group.name),_("matAutocomplete",e),u(3),re(n.fltrGroup)}}function a7(t,i){if(t&1&&E(0,i7,4,3,"mat-form-field")(1,r7,8,3,"mat-form-field"),t&2){let e=g();T(e.authenticator.type_info.extra.search_groups_supported===!1||e.group.id?0:-1),u(),T(e.authenticator.type_info.extra.search_groups_supported===!0&&!e.group.id?1:-1)}}function s7(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),h(3,"Meta group name"),d()(),l(4,"input",9),W("ngModelChange",function(o){C(e);let r=g();return G(r.group.name,o)||(r.group.name=o),w(o)}),d()()}if(t&2){let e=g();u(4),H("ngModel",e.group.name),_("disabled",e.group.id)}}function l7(t,i){if(t&1&&(l(0,"mat-option",11),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}function c7(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),h(3,"Service Pools"),d()(),l(4,"mat-select",12),W("ngModelChange",function(o){C(e);let r=g();return G(r.group.pools,o)||(r.group.pools=o),w(o)}),oe(5,l7,2,2,"mat-option",11,ce),d()()}if(t&2){let e=g();u(4),H("ngModel",e.group.pools),u(),re(e.servicePools)}}function d7(t,i){if(t&1&&(l(0,"mat-option",11),h(1),d()),t&2){let e=g().$implicit;_("value",e.id),u(),F(" ",e.name," ")}}function u7(t,i){if(t&1&&E(0,d7,2,2,"mat-option",11),t&2){let e=i.$implicit;T(e.type==="group"?0:-1)}}function m7(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),h(3,"Match mode"),d()(),l(4,"mat-select",4),W("ngModelChange",function(o){C(e);let r=g();return G(r.group.meta_if_any,o)||(r.group.meta_if_any=o),w(o)}),l(5,"mat-option",11)(6,"uds-translate"),h(7,"Any group"),d()(),l(8,"mat-option",11)(9,"uds-translate"),h(10,"All groups"),d()()()(),l(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),h(14,"Selected Groups"),d()(),l(15,"mat-select",12),W("ngModelChange",function(o){C(e);let r=g();return G(r.group.groups,o)||(r.group.groups=o),w(o)}),oe(16,u7,1,1,null,null,ce),d()()}if(t&2){let e=g();u(4),H("ngModel",e.group.meta_if_any),u(),_("value",!0),u(3),_("value",!1),u(7),H("ngModel",e.group.groups),u(),re(e.groups)}}var nw=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new k(!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)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",1),E(1,t7,4,1,"div")(2,n7,2,0,"uds-translate"),d(),l(3,"mat-dialog-content")(4,"div",2),E(5,a7,2,2)(6,s7,5,2,"mat-form-field"),l(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),h(10,"Comments"),d()(),l(11,"input",3),W("ngModelChange",function(a){return G(o.group.comments,a)||(o.group.comments=a),a}),d()(),l(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),h(15,"State"),d()(),l(16,"mat-select",4),W("ngModelChange",function(a){return G(o.group.state,a)||(o.group.state=a),a}),l(17,"mat-option",5)(18,"uds-translate"),h(19,"Enabled"),d()(),l(20,"mat-option",6)(21,"uds-translate"),h(22,"Disabled"),d()()()(),l(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),h(26,"Skip MFA"),d()(),l(27,"mat-select",4),W("ngModelChange",function(a){return G(o.group.skip_mfa,a)||(o.group.skip_mfa=a),a}),l(28,"mat-option",5)(29,"uds-translate"),h(30,"Enabled"),d()(),l(31,"mat-option",6)(32,"uds-translate"),h(33,"Disabled"),d()()()(),E(34,c7,7,1,"mat-form-field")(35,m7,18,4),d()(),l(36,"mat-dialog-actions")(37,"button",7)(38,"uds-translate"),h(39,"Cancel"),d()(),l(40,"button",8),b("click",function(){return o.save()}),l(41,"uds-translate"),h(42,"Ok"),d()()()),n&2&&(u(),T(o.group.id?1:2),u(4),T(o.group.type==="group"?5:6),u(6),H("ngModel",o.group.comments),u(5),H("ngModel",o.group.state),u(11),H("ngModel",o.group.skip_mfa),u(7),T(o.group.type==="group"?34:35))},dependencies:[st,xe,Se,ye,Ft,Ue,We,He,ge,Ae,pt,ht,Ze,ic,Es,de],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 p7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Groups"),d())}function h7(t,i){if(t&1&&(l(0,"mat-tab"),E(1,p7,2,0,"ng-template",1),I(2,"uds-table",5),d()),t&2){let e=g();u(2),_("rest",e.group)("pageSize",6)}}function f7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Services Pools"),d())}function g7(t,i){if(t&1&&(l(0,"mat-tab"),E(1,f7,2,0,"ng-template",1),I(2,"uds-table",5),d()),t&2){let e=g();u(2),_("rest",e.servicesPools)("pageSize",6)}}function _7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Assigned Services"),d())}function v7(t,i){if(t&1&&(l(0,"mat-tab"),E(1,_7,2,0,"ng-template",1),I(2,"uds-table",5),d()),t&2){let e=g();u(2),_("rest",e.userServices)("pageSize",6)}}function b7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Logs"),d())}var y7=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],C7=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],w7=[{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")}],cR=(()=>{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 N(this,null,function*(){let e=()=>N(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=()=>N(this,null,function*(){return this.users.invoke(this.user.id+"/servicesPools")}),o=()=>N(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 co(django.gettext("Groups"),e,y7,this.user.id+"infogrp"),this.servicesPools=new co(django.gettext("Services Pools"),n,C7,this.user.id+"infopool"),this.userServices=new co(django.gettext("Assigned services"),o,w7,this.user.id+"userservpool")})}static{this.\u0275fac=function(n){return new(n||t)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"Information for"),d(),h(3),d(),l(4,"mat-dialog-content")(5,"mat-tab-group"),E(6,h7,3,2,"mat-tab"),dt(7,"notEmpty"),E(8,g7,3,2,"mat-tab"),dt(9,"notEmpty"),E(10,v7,3,2,"mat-tab"),dt(11,"notEmpty"),l(12,"mat-tab"),E(13,b7,2,0,"ng-template",1),l(14,"div",2),I(15,"uds-logs-table",3),d()()()(),l(16,"mat-dialog-actions")(17,"button",4)(18,"uds-translate"),h(19,"Ok"),d()()()),n&2&&(u(3),F(" ",o.user.name,` +`),u(3),T(vt(7,8,o.group)?6:-1),u(2),T(vt(9,10,o.servicesPools)?8:-1),u(2),T(vt(11,12,o.userServices)?10:-1),u(5),_("rest",o.users)("itemId",o.user.id)("tableId","userInfo-d-log"+o.user.id)("pageSize",5))},dependencies:[ye,Ft,Ue,We,He,Yt,Qt,Jt,de,Me,Ti,mn],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function x7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Services Pools"),d())}function D7(t,i){if(t&1&&(l(0,"mat-tab"),E(1,x7,2,0,"ng-template",2),I(2,"uds-table",3),d()),t&2){let e=g();u(2),_("rest",e.servicesPools)("pageSize",6)}}function S7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Users"),d())}function E7(t,i){if(t&1&&(l(0,"mat-tab"),E(1,S7,2,0,"ng-template",2),I(2,"uds-table",3),d()),t&2){let e=g();u(2),_("rest",e.users)("pageSize",6)}}function M7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Groups"),d())}function T7(t,i){if(t&1&&(l(0,"mat-tab"),E(1,M7,2,0,"ng-template",2),I(2,"uds-table",3),d()),t&2){let e=g();u(2),_("rest",e.groups)("pageSize",6)}}var I7=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],k7=[{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:Nt.DATETIME}],A7=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],dR=(()=>{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 co(django.gettext("Service pools"),n,I7,this.data.group.id+"infopls"),this.users=new co(django.gettext("Users"),o,k7,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 co(django.gettext("Groups"),r,A7,this.data.group.id+"infogrps")}}static{this.\u0275fac=function(n){return new(n||t)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"Information for"),d()(),l(3,"mat-dialog-content")(4,"mat-tab-group"),E(5,D7,3,2,"mat-tab"),dt(6,"notEmpty"),E(7,E7,3,2,"mat-tab"),dt(8,"notEmpty"),E(9,T7,3,2,"mat-tab"),dt(10,"notEmpty"),d()(),l(11,"mat-dialog-actions")(12,"button",1)(13,"uds-translate"),h(14,"Ok"),d()()()),n&2&&(u(5),T(vt(6,3,o.servicesPools)?5:-1),u(2),T(vt(8,5,o.users)?7:-1),u(2),T(vt(10,7,o.groups)?9:-1))},dependencies:[ye,Ft,Ue,We,He,Yt,Qt,Jt,de,Me,mn],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var R7=t=>["/authenticators",t];function O7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Summary"),d())}function P7(t,i){if(t&1&&I(0,"uds-information",10),t&2){let e=g(2);_("value",e.authenticator)("gui",e.gui)}}function F7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Users"),d())}function N7(t,i){if(t&1){let e=A();l(0,"uds-table",14),b("loaded",function(o){C(e);let r=g(2);return w(r.onLoad(o))})("newAction",function(o){C(e);let r=g(2);return w(r.onNewUser(o))})("editAction",function(o){C(e);let r=g(2);return w(r.onEditUser(o))})("deleteAction",function(o){C(e);let r=g(2);return w(r.onDeleteUser(o))})("customButtonAction",function(o){C(e);let r=g(2);return w(r.onUserCustom(o))}),d()}if(t&2){let e=g(2);_("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 L7(t,i){if(t&1){let e=A();l(0,"uds-table",15),b("loaded",function(o){C(e);let r=g(2);return w(r.onLoad(o))})("editAction",function(o){C(e);let r=g(2);return w(r.onEditUser(o))})("deleteAction",function(o){C(e);let r=g(2);return w(r.onDeleteUser(o))})("customButtonAction",function(o){C(e);let r=g(2);return w(r.onUserCustom(o))}),d()}if(t&2){let e=g(2);_("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 V7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Groups"),d())}function B7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Logs"),d())}function j7(t,i){if(t&1){let e=A();l(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),W("selectedIndexChange",function(o){C(e);let r=g();return G(r.selectedTab,o)||(r.selectedTab=o),w(o)}),l(3,"mat-tab"),E(4,O7,2,0,"ng-template",8),l(5,"div",9),E(6,P7,1,2,"uds-information",10),dt(7,"notEmpty"),d()(),l(8,"mat-tab"),E(9,F7,2,0,"ng-template",8),l(10,"div",9),E(11,N7,1,6,"uds-table",11)(12,L7,1,6,"uds-table",11),d()(),l(13,"mat-tab"),E(14,V7,2,0,"ng-template",8),l(15,"div",9)(16,"uds-table",12),b("loaded",function(o){C(e);let r=g();return w(r.onLoad(o))})("newAction",function(o){C(e);let r=g();return w(r.onNewGroup(o))})("editAction",function(o){C(e);let r=g();return w(r.onEditGroup(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteGroup(o))})("customButtonAction",function(o){C(e);let r=g();return w(r.onGroupInformation(o))}),d()()(),l(17,"mat-tab"),E(18,B7,2,0,"ng-template",8),l(19,"div",9),I(20,"uds-logs-table",13),d()()()()()}if(t&2){let e=g();u(2),H("selectedIndex",e.selectedTab),_("@.disabled",!0),u(4),T(vt(7,14,e.gui)?6:-1),u(5),T(e.authenticator.type_info.extra.create_users_supported?11:-1),u(),T(e.authenticator.type_info.extra.create_users_supported?-1:12),u(4),_("rest",e.groups)("multiSelect",!0)("allowExport",!0)("customButtons",e.groupsCustomButtons)("tableId","authenticators-d-groups"+e.authenticator.id)("pageSize",e.api.config.admin.page_size),u(4),_("rest",e.rest.authenticators)("itemId",e.authenticator.id)("tableId","authenticators-d-log"+e.authenticator.id)}}var Og=(()=>{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:ot.ONLY_MENU}],this.usersCustomButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:ot.ONLY_MENU},{id:"clean-related",html:'clear_all '+django.gettext("Clean related (mfa,...)")+"",type:ot.ONLY_MENU},{id:"enable-client-logging",html:'assignment '+django.gettext("Enable client logging")+"",type:ot.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){tw.launch(this.api,this.authenticator).subscribe(n=>e.table.reloadPage())}onEditUser(e){tw.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){nw.launch(this.api,this.authenticator,e.param.type).subscribe(n=>e.table.reloadPage())}onEditGroup(e){nw.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 N(this,null,function*(){e.param.id==="info"?cR.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){dR.launch(this.api,this.groups,e.table.selection.selected[0])}static{this.\u0275fac=function(n){return new(n||t)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),h(4,"arrow_back"),d()(),h(5," \xA0"),I(6,"img",4),h(7),d(),E(8,j7,21,16,"div",5),dt(9,"notEmpty"),d()),n&2&&(u(2),_("routerLink",Qn(6,R7,o.authenticator?o.authenticator.id:"")),u(4),_("src",o.api.staticURL("admin/img/icons/services.png"),Ee),u(),F(" \xA0",o.authenticator==null?null:o.authenticator.name," "),u(),T(vt(9,4,o.authenticator)?8:-1))},dependencies:[cn,Yt,Qt,Jt,de,Me,Ti,uo,mn],encapsulation:2})}}return t})();var iw=(()=>{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)(y(j),y(ke),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div")(1,"uds-table",0),b("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&&(u(),_("rest",o.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Me],encapsulation:2})}}return t})();var ow=(()=>{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{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)(y(j),y(ke),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div")(1,"uds-table",0),b("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&&(u(),_("rest",o.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",o.processElement)("pageSize",o.api.config.admin.page_size))},dependencies:[Me],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]})}}return t})();var rw=(()=>{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)(y(j),y(ke),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div")(1,"uds-table",0),b("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&&(u(),_("rest",o.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Me],encapsulation:2})}}return t})();var aw=(()=>{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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"uds-table",0),b("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&&_("rest",o.rest.tunnels)("onItem",o.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Me],encapsulation:2})}}return t})();function z7(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}var uR=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qt,this.availTunnelServers=[],this.tunnelFilter="",this.serverId="",this.availTunnelServers=r.availableTunnelServers,this.tunnelId=r.tunnelId}static launch(e,n,o){return N(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 N(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 N(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 N(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}static{this.\u0275fac=function(n){return new(n||t)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"Assign new server to tunnel group"),d()(),l(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),h(8,"Tunnel"),d()(),l(9,"mat-select",2),W("ngModelChange",function(a){return G(o.serverId,a)||(o.serverId=a),a}),l(10,"uds-cond-select-search",3),b("changed",function(a){return o.tunnelFilter=a}),d(),oe(11,z7,2,2,"mat-option",4,ce),d()()()(),l(13,"mat-dialog-actions")(14,"button",5),b("click",function(){return o.cancel()}),l(15,"uds-translate"),h(16,"Cancel"),d()(),l(17,"button",6),b("click",function(){return o.save()}),l(18,"uds-translate"),h(19,"Ok"),d()()()),n&2&&(u(9),H("ngModel",o.serverId),u(),_("options",o.availTunnelServers),u(),re(o.filteredTunnels()))},dependencies:[xe,Se,ye,Ue,We,He,ge,Ae,ht,Ze,de,dn],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%}"]})}}return t})();var U7=t=>["/connectivity","tunnels",t];function H7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Summary"),d())}function W7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Tunnel servers"),d())}function G7(t,i){if(t&1){let e=A();l(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),E(4,H7,2,0,"ng-template",8),l(5,"div",9),I(6,"uds-information",10),d()(),l(7,"mat-tab"),E(8,W7,2,0,"ng-template",8),l(9,"div",9)(10,"uds-table",11),b("newAction",function(o){C(e);let r=g();return w(r.onNew(o))})("rowSelected",function(o){C(e);let r=g();return w(r.onRowSelect(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDelete(o))})("customButtonAction",function(o){C(e);let r=g();return w(r.onMaintenance(o))})("loaded",function(o){C(e);let r=g();return w(r.onLoad(o))}),d()()()()()()}if(t&2){let e=g();u(2),_("@.disabled",!0),u(4),_("value",e.tunnel)("gui",e.gui),u(4),_("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 mR='pause'+django.gettext("Maintenance")+"",$7='pause'+django.gettext("Exit maintenance mode")+"",q7='pause'+django.gettext("Enter maintenance mode")+"",pR=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"maintenance",html:mR,type:ot.SINGLE_SELECT}],this.tunnel=null,this.gui=[],this.servers={}}get customButtons(){return this.api.user.isAdmin?this.cButtons:[]}ngOnInit(){return N(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 N(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 uR.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=mR;return}n.selection.selected[0].maintenance_mode?this.customButtons[0].html=$7:this.customButtons[0].html=q7}onLoad(e){e.param===!0&&e.table.selectElement(this.route.snapshot.paramMap.get("tunnel"))}static{this.\u0275fac=function(n){return new(n||t)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),h(4,"arrow_back"),d()(),h(5," \xA0"),I(6,"img",4),h(7),d(),E(8,G7,11,9,"div",5),dt(9,"notEmpty"),d()),n&2&&(u(2),_("routerLink",Qn(6,U7,o.servers.parentId)),u(4),_("src",o.api.staticURL("admin/img/icons/tunnels.png"),Ee),u(),F(" \xA0",o.tunnel==null?null:o.tunnel.name," "),u(),T(vt(9,4,o.tunnel)?8:-1))},dependencies:[cn,Yt,Qt,Jt,de,Me,uo,mn],styles:[".row-maintenance-true>mat-cell{color:orange!important} .dark-theme .row-maintenance-true>mat-cell{color:orange!important}"]})}}return t})();var sw=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[xn.getGotoButton(uC,"provider_id"),xn.getGotoButton(mC,"provider_id","service_id"),xn.getGotoButton(fC,"osmanager_id"),xn.getGotoButton(gC,"pool_group_id")],this.editing=!1}ngOnInit(){return N(this,null,function*(){})}onChange(e){return N(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 c of s.servicesTypes)o.info.services_type_provided==c&&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 N(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 N(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 N(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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"uds-table",0),b("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&&_("rest",o.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",o.processElement)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Me],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 Y7(t,i){if(t&1&&(l(0,"mat-option",3),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}function Q7(t,i){if(t&1&&(l(0,"mat-option",3),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}var Pg=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qt,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 N(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 N(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)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"Change owner of assigned service"),d()(),l(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),h(8,"Authenticator"),d()(),l(9,"mat-select",2),W("ngModelChange",function(a){return G(o.authId,a)||(o.authId=a),a}),b("selectionChange",function(a){return o.changeAuth(a)}),oe(10,Y7,2,2,"mat-option",3,ce),d()(),l(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),h(15,"User"),d()(),l(16,"mat-select",4),W("ngModelChange",function(a){return G(o.userId,a)||(o.userId=a),a}),l(17,"uds-cond-select-search",5),b("changed",function(a){return o.userFilter=a}),d(),oe(18,Q7,2,2,"mat-option",3,ce),d()()()(),l(20,"mat-dialog-actions")(21,"button",6),b("click",function(){return o.cancel()}),l(22,"uds-translate"),h(23,"Cancel"),d()(),l(24,"button",7),b("click",function(){return o.save()}),l(25,"uds-translate"),h(26,"Ok"),d()()()),n&2&&(u(9),H("ngModel",o.authId),u(),re(o.auths),u(6),H("ngModel",o.userId),u(),_("options",o.users),u(),re(o.filteredUsers()))},dependencies:[xe,Se,ye,Ue,We,He,ge,Ae,ht,Ze,de,dn],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%}"]})}}return t})();function K7(t,i){t&1&&(l(0,"uds-translate"),h(1,"New access rule for"),d())}function Z7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Edit access rule for"),d())}function X7(t,i){t&1&&(l(0,"uds-translate"),h(1,"Default fallback access for"),d())}function J7(t,i){if(t&1&&(l(0,"mat-option",9),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}function e9(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),h(3,"Priority"),d()(),l(4,"input",7),W("ngModelChange",function(o){C(e);let r=g();return G(r.accessRule.priority,o)||(r.accessRule.priority=o),w(o)}),d()(),l(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),h(8,"Calendar"),d()(),l(9,"mat-select",2),W("ngModelChange",function(o){C(e);let r=g();return G(r.accessRule.calendar_id,o)||(r.accessRule.calendar_id=o),w(o)}),l(10,"uds-cond-select-search",8),b("changed",function(o){C(e);let r=g();return w(r.calendarsFilter=o)}),d(),oe(11,J7,2,2,"mat-option",9,ce),d()()}if(t&2){let e=g();u(4),H("ngModel",e.accessRule.priority),u(5),H("ngModel",e.accessRule.calendar_id),u(),_("options",e.calendars),u(),re(e.filtered(e.calendars,e.calendarsFilter))}}var Ms=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new k(!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)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0),E(1,K7,2,0,"uds-translate")(2,Z7,2,0,"uds-translate")(3,X7,2,0,"uds-translate"),h(4),d(),l(5,"mat-dialog-content")(6,"div",1),E(7,e9,13,3),l(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),h(11,"Action"),d()(),l(12,"mat-select",2),W("ngModelChange",function(a){return G(o.accessRule.access,a)||(o.accessRule.access=a),a}),l(13,"mat-option",3),h(14," ALLOW "),d(),l(15,"mat-option",4),h(16," DENY "),d()()()()(),l(17,"mat-dialog-actions")(18,"button",5)(19,"uds-translate"),h(20,"Cancel"),d()(),l(21,"button",6),b("click",function(){return o.save()}),l(22,"uds-translate"),h(23,"Ok"),d()()()),n&2&&(u(),T(o.accessRule.id===void 0?1:-1),u(),T(o.accessRule.id!==void 0&&o.accessRule.id!==-1?2:-1),u(),T(o.accessRule.id===-1?3:-1),u(),F(" ",o.pool.name,` +`),u(3),T(o.accessRule.id!==-1?7:-1),u(5),H("ngModel",o.accessRule.access))},dependencies:[st,ji,xe,Se,ye,Ft,Ue,We,He,ge,Ae,pt,ht,Ze,de,dn],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%}"]})}}return t})();function t9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}function n9(t,i){if(t&1&&h(0),t&2){let e=g().$implicit;F(" (",e.comments,") ")}}function i9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),E(2,n9,1,1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name,""),u(),T(e.comments?2:-1)}}var Fg=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qt,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 N(this,null,function*(){this.auths=yield this.rest.authenticators.overview()})}changeAuth(e){return N(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 N(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 N(this,null,function*(){this.dialogRef.close(),this.done.resolve(!1)})}authChanged(){return N(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)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"New group for"),d(),h(3),d(),l(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),h(9,"Authenticator"),d()(),l(10,"mat-select",2),W("ngModelChange",function(a){return G(o.authId,a)||(o.authId=a),a}),b("selectionChange",function(a){return o.changeAuth(a)}),l(11,"uds-cond-select-search",3),b("changed",function(a){return o.authFilter=a}),d(),oe(12,t9,2,2,"mat-option",4,ce),d()(),l(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),h(17,"Group"),d()(),l(18,"mat-select",5),W("ngModelChange",function(a){return G(o.groupId,a)||(o.groupId=a),a}),l(19,"uds-cond-select-search",3),b("changed",function(a){return o.groupFilter=a}),d(),oe(20,i9,3,3,"mat-option",4,ce),d()()()(),l(22,"mat-dialog-actions")(23,"button",6),b("click",function(){return o.cancel()}),l(24,"uds-translate"),h(25,"Cancel"),d()(),l(26,"button",7),b("click",function(){return o.save()}),l(27,"uds-translate"),h(28,"Ok"),d()()()),n&2&&(u(3),F(" ",o.pool.name,""),u(7),H("ngModel",o.authId),u(),_("options",o.auths),u(),re(o.filteredAuths()),u(6),H("ngModel",o.groupId),u(),_("options",o.groups),u(),re(o.filteredGroups()))},dependencies:[xe,Se,ye,Ue,We,He,ge,Ae,ht,Ze,de,dn],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%}"]})}}return t})();function o9(t,i){if(t&1&&h(0),t&2){let e=g().$implicit;F(" (",e.comments,") ")}}function r9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),E(2,o9,1,1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name,""),u(),T(e.comments?2:-1)}}var hR=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qt,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 N(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 N(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 N(this,null,function*(){this.done.resolve(!1),this.dialogRef.close()})}static{this.\u0275fac=function(n){return new(n||t)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"New transport for"),d(),h(3),d(),l(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),h(9,"Transport"),d()(),l(10,"mat-select",2),W("ngModelChange",function(a){return G(o.transportId,a)||(o.transportId=a),a}),l(11,"uds-cond-select-search",3),b("changed",function(a){return o.transportsFilter=a}),d(),oe(12,r9,3,3,"mat-option",4,ce),d()()()(),l(14,"mat-dialog-actions")(15,"button",5),b("click",function(){return o.cancel()}),l(16,"uds-translate"),h(17,"Cancel"),d()(),l(18,"button",6),b("click",function(){return o.save()}),l(19,"uds-translate"),h(20,"Ok"),d()()()),n&2&&(u(3),F(" ",o.servicePool.name,""),u(7),H("ngModel",o.transportId),u(),_("options",o.transports),u(),re(o.filteredTransports()))},dependencies:[xe,Se,ye,Ue,We,He,ge,Ae,ht,Ze,de,dn],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%}"]})}}return t})();var fR=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qt,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)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"New publication for"),d(),h(3),d(),l(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),h(9,"Comments"),d()(),l(10,"input",2),W("ngModelChange",function(a){return G(o.reason,a)||(o.reason=a),a}),d()()()(),l(11,"mat-dialog-actions")(12,"button",3),b("click",function(){return o.cancel()}),l(13,"uds-translate"),h(14,"Cancel"),d()(),l(15,"button",4),b("click",function(){return o.save()}),l(16,"uds-translate"),h(17,"Ok"),d()()()),n&2&&(u(3),F(" ",o.servicePool.name,` +`),u(7),H("ngModel",o.reason))},dependencies:[st,xe,Se,ye,Ue,We,He,ge,Ae,pt,de],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%}"]})}}return t})();var gR=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new k(!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)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",1)(1,"uds-translate"),h(2,"Changelog of"),d(),h(3),d(),l(4,"mat-dialog-content"),I(5,"uds-table",2,0),d(),l(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),h(10,"Ok"),d()()()),n&2&&(u(3),F(" ",o.servicePool.name,` +`),u(2),_("rest",o.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+o.servicePool.id))},dependencies:[ye,Ft,Ue,We,He,de,Me],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();var a9=["switch"],s9=["*"];function l9(t,i){t&1&&(l(0,"span",10),on(),l(1,"svg",12),I(2,"path",13),d(),l(3,"svg",14),I(4,"path",15),d()())}var c9=new R("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),d9={provide:mi,useExisting:tn(()=>rr),multi:!0},Ng=class{source;checked;constructor(i,e){this.source=i,this.checked=e}},rr=(()=>{class t{_elementRef=p(Z);_focusMonitor=p(Cn);_changeDetectorRef=p(De);defaults=p(c9);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new Ng(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations;_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;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 k;toggleChange=new k;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){p(yt).load(gn);let e=p(new Nn("tabindex"),{optional:!0}),n=this.defaults,o=p(tt,{optional:!0});this.tabIndex=e==null?0:parseInt(e)||0,this.color=n.color||"accent",this._noopAnimations=o==="NoopAnimations",this.id=this._uniqueId=p(ut).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 Ng(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&me(a9,5),n&2){let r;q(r=Y())&&(o._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(bn("id",o.id),ne("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Bt(o.color?"mat-"+o.color:""),X("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",$],color:"color",disabled:[2,"disabled","disabled",$],disableRipple:[2,"disableRipple","disableRipple",$],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Zt(e)],checked:[2,"checked","checked",$],hideIcon:[2,"hideIcon","hideIcon",$],disabledInteractive:[2,"disabledInteractive","disabledInteractive",$]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[we([d9,{provide:ro,useExisting:t,multi:!0}]),je],ngContentSelectors:s9,decls:13,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(n,o){if(n&1){let r=A();Le(),l(0,"div",1)(1,"button",2,0),b("click",function(){return C(r),w(o._handleClick())}),I(3,"span",3),l(4,"span",4)(5,"span",5)(6,"span",6),I(7,"span",7),d(),l(8,"span",8),I(9,"span",9),d(),E(10,l9,5,0,"span",10),d()()(),l(11,"label",11),b("click",function(s){return C(r),w(s.stopPropagation())}),ue(12),d()()}if(n&2){let r=Ye(2);_("labelPosition",o.labelPosition),u(),X("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),_("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("disabled",o.disabled&&!o.disabledInteractive),ne("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),u(8),_("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),u(),T(o.hideIcon?-1:10),u(),_("for",o.buttonId),ne("id",o._labelId)}},dependencies:[Bi,xf],styles:[`.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mdc-switch-track-width, 52px)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mdc-switch-track-height, 32px);border-radius:var(--mdc-switch-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity, 0.12)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-switch-track-outline-width, 2px);border-color:var(--mat-switch-track-outline-color, var(--mat-sys-outline))}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-switch-selected-track-outline-width, 2px);border-color:var(--mat-switch-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-switch-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-switch-disabled-unselected-track-outline-color, var(--mat-sys-on-surface))}@media(forced-colors: active){.mdc-switch__track{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mdc-switch-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, var(--mat-sys-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mdc-switch-selected-track-color, var(--mat-sys-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity, 1);transition:var(--mat-switch-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity, 0);transition:var(--mat-switch-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, var(--mat-sys-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, var(--mat-sys-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mdc-switch-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mdc-switch-handle-width);height:var(--mdc-switch-handle-height);border-radius:var(--mdc-switch-handle-shape, var(--mat-sys-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size, 16px);height:var(--mat-switch-unselected-handle-size, 16px);margin:var(--mat-switch-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size, 24px);height:var(--mat-switch-selected-handle-size, 24px);margin:var(--mat-switch-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size, 24px);height:var(--mat-switch-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size, 28px);height:var(--mat-switch-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin, 0 22px)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity, 0.38)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media(forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mat-sys-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, var(--mat-sys-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, var(--mat-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, var(--mat-sys-on-surface))}.mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mdc-switch-state-layer-size, 40px);height:var(--mdc-switch-state-layer-size, 40px)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1;transform:translateZ(0)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity, 0.38)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size, 16px);height:var(--mdc-switch-unselected-icon-size, 16px);fill:var(--mdc-switch-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size, 16px);height:var(--mdc-switch-selected-icon-size, 16px);fill:var(--mdc-switch-selected-icon-color, var(--mat-sys-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mat-sys-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-switch-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-switch-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-switch-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-switch-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-switch-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)} +`],encapsulation:2,changeDetection:0})}return t})();var _R=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[rr,fe,fe]})}return t})();var u9=()=>["transport","group","bool"];function m9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Edit action for"),d())}function p9(t,i){t&1&&(l(0,"uds-translate"),h(1,"New action for"),d())}function h9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}function f9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.description," ")}}function g9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}function _9(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),h(3,"Transport"),d()(),l(4,"mat-select",2),W("ngModelChange",function(o){C(e);let r=g();return G(r.paramValue,o)||(r.paramValue=o),w(o)}),l(5,"uds-cond-select-search",3),b("changed",function(o){C(e);let r=g();return w(r.transportsFilter=o)}),d(),oe(6,g9,2,2,"mat-option",4,ce),d()()}if(t&2){let e=g();u(4),H("ngModel",e.paramValue),u(),_("options",e.transports),u(),re(e.filtered(e.transports,e.transportsFilter))}}function v9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}function b9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit,n=g(2);_("value",n.authenticator+"@"+e.id),u(),F(" ",e.name," ")}}function y9(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),h(3,"Authenticator"),d()(),l(4,"mat-select",7),W("ngModelChange",function(o){C(e);let r=g();return G(r.authenticator,o)||(r.authenticator=o),w(o)}),b("valueChange",function(o){C(e);let r=g();return w(r.authenticatorChangedTo(o))}),oe(5,v9,2,2,"mat-option",4,ce),d()(),l(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),h(10,"Group"),d()(),l(11,"mat-select",2),W("ngModelChange",function(o){C(e);let r=g();return G(r.paramValue,o)||(r.paramValue=o),w(o)}),l(12,"uds-cond-select-search",3),b("changed",function(o){C(e);let r=g();return w(r.groupsFilter=o)}),d(),oe(13,b9,2,2,"mat-option",4,ce),d()()}if(t&2){let e=g();u(4),H("ngModel",e.authenticator),u(),re(e.authenticators),u(6),H("ngModel",e.paramValue),u(),_("options",e.groups),u(),re(e.filtered(e.groups,e.groupsFilter))}}function C9(t,i){if(t&1){let e=A();l(0,"div",8)(1,"span",11),h(2),d(),h(3,"\xA0 "),l(4,"mat-slide-toggle",2),W("ngModelChange",function(o){C(e);let r=g();return G(r.paramValue,o)||(r.paramValue=o),w(o)}),d()()}if(t&2){let e=g();u(2),ae(e.parameter.description),u(2),H("ngModel",e.paramValue)}}function w9(t,i){if(t&1){let e=A();l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"input",12),W("ngModelChange",function(o){C(e);let r=g();return G(r.paramValue,o)||(r.paramValue=o),w(o)}),d()()}if(t&2){let e=g();u(2),F(" ",e.parameter.description," "),u(),_("type",e.parameter.type),H("ngModel",e.paramValue)}}var lw=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new k(!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 N(this,null,function*(){e&&(this.groups=yield this.rest.authenticators.detail(e,"groups").overview())})}save(){return N(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)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0),E(1,m9,2,0,"uds-translate")(2,p9,2,0,"uds-translate"),h(3),d(),l(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),h(9,"Calendar"),d()(),l(10,"mat-select",2),W("ngModelChange",function(a){return G(o.scheduledAction.calendar_id,a)||(o.scheduledAction.calendar_id=a),a}),l(11,"uds-cond-select-search",3),b("changed",function(a){return o.calendarsFilter=a}),d(),oe(12,h9,2,2,"mat-option",4,ce),d()(),l(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),h(17,"Events offset (minutes)"),d()(),l(18,"input",5),W("ngModelChange",function(a){return G(o.scheduledAction.events_offset,a)||(o.scheduledAction.events_offset=a),a}),d()(),l(19,"div",6)(20,"mat-slide-toggle",2),W("ngModelChange",function(a){return G(o.scheduledAction.at_start,a)||(o.scheduledAction.at_start=a),a}),l(21,"uds-translate"),h(22,"At the beginning of the interval?"),d()()(),l(23,"mat-form-field")(24,"mat-label")(25,"uds-translate"),h(26,"Action"),d()(),l(27,"mat-select",7),W("ngModelChange",function(a){return G(o.scheduledAction.action,a)||(o.scheduledAction.action=a),a}),b("valueChange",function(a){return o.actionChangedTo(a)}),oe(28,f9,2,2,"mat-option",4,ce),d()(),E(30,_9,8,2,"mat-form-field")(31,y9,15,3)(32,C9,5,2,"div",8)(33,w9,4,3,"mat-form-field"),d()(),l(34,"mat-dialog-actions")(35,"button",9)(36,"uds-translate"),h(37,"Cancel"),d()(),l(38,"button",10),b("click",function(){return o.save()}),l(39,"uds-translate"),h(40,"Ok"),d()()()),n&2&&(u(),T(o.scheduledAction.id!==void 0?1:2),u(2),F(" ",o.servicePool.name,` +`),u(7),H("ngModel",o.scheduledAction.calendar_id),u(),_("options",o.calendars),u(),re(o.filtered(o.calendars,o.calendarsFilter)),u(6),H("ngModel",o.scheduledAction.events_offset),u(2),H("ngModel",o.scheduledAction.at_start),u(7),H("ngModel",o.scheduledAction.action),u(),re(o.actionList),u(2),T((o.parameter==null?null:o.parameter.type)==="transport"?30:-1),u(),T((o.parameter==null?null:o.parameter.type)==="group"?31:-1),u(),T((o.parameter==null?null:o.parameter.type)==="bool"?32:-1),u(),T(o.parameter!=null&&o.parameter.type&&!pl(11,u9).includes(o.parameter.type)?33:-1))},dependencies:[st,ji,xe,Se,ye,Ft,Ue,We,He,ge,Ae,pt,ht,Ze,rr,de,dn],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%}"]})}}return t})();var mu=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new k(!0),this.userService=r.userService,this.model=r.model}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:{userService:n,model:o},disableClose:!1})}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"Logs of"),d(),h(3),d(),l(4,"mat-dialog-content"),I(5,"uds-logs-table",1),d(),l(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),h(9,"Ok"),d()()()),n&2&&(u(3),F(" ",o.userService.name,` +`),u(2),_("rest",o.model)("itemId",o.userService.id)("tableId","servicePools-d-uslog"+o.userService.id))},dependencies:[ye,Ft,Ue,We,He,de,Ti],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]})}}return t})();function x9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.text," ")}}function D9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}function S9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}var vR=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qt,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 N(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 N(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 N(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 N(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)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0)(1,"uds-translate"),h(2,"Assign service to user manually"),d()(),l(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),h(8,"Service"),d()(),l(9,"mat-select",2),W("ngModelChange",function(a){return G(o.serviceId,a)||(o.serviceId=a),a}),l(10,"uds-cond-select-search",3),b("changed",function(a){return o.assignablesServicesFilter=a}),d(),oe(11,x9,2,2,"mat-option",4,ce),d()(),l(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),h(16,"Authenticator"),d()(),l(17,"mat-select",5),W("ngModelChange",function(a){return G(o.authId,a)||(o.authId=a),a}),b("selectionChange",function(a){return o.changeAuth(a)}),oe(18,D9,2,2,"mat-option",4,ce),d()(),l(20,"mat-form-field")(21,"mat-label")(22,"uds-translate"),h(23,"User"),d()(),l(24,"mat-select",2),W("ngModelChange",function(a){return G(o.userId,a)||(o.userId=a),a}),l(25,"uds-cond-select-search",3),b("changed",function(a){return o.userFilter=a}),d(),oe(26,S9,2,2,"mat-option",4,ce),d()()()(),l(28,"mat-dialog-actions")(29,"button",6),b("click",function(){return o.cancel()}),l(30,"uds-translate"),h(31,"Cancel"),d()(),l(32,"button",7),b("click",function(){return o.save()}),l(33,"uds-translate"),h(34,"Ok"),d()()()),n&2&&(u(9),H("ngModel",o.serviceId),u(),_("options",o.assignablesServices),u(),re(o.filteredAssignables()),u(6),H("ngModel",o.authId),u(),re(o.auths),u(6),H("ngModel",o.userId),u(),_("options",o.users),u(),re(o.filteredUsers()))},dependencies:[xe,Se,ye,Ue,We,He,ge,Ae,ht,Ze,de,dn],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%}"]})}}return t})();var CR=Mu(lg());var bR=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.poolUuid="",this.options={},this.chart=null}onResize(e){this.chart&&this.chart.resize()}ngOnInit(){return N(this,null,function*(){let e=yield this.rest.system.stats("complete",this.poolUuid),n=this.api.isDarkTheme?"#e2e8f0":"#475569",o=this.api.isDarkTheme?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.05)";this.options={backgroundColor:"transparent",tooltip:{trigger:"axis",backgroundColor:this.api.isDarkTheme?"#1e293b":"#ffffff",borderColor:this.api.isDarkTheme?"#334155":"#e2e8f0",textStyle:{color:n},axisPointer:{type:"cross",label:{backgroundColor:"#2563eb"}}},xAxis:{type:"category",data:e.assigned.map(r=>Un("SHORT_DATETIME_FORMAT",new Date(r.stamp))),boundaryGap:!1,axisLabel:{color:n},axisLine:{lineStyle:{color:o}}},yAxis:{type:"value",axisLabel:{color:n},splitLine:{lineStyle:{color:o}}},series:[{name:django.gettext("Assigned"),type:"line",stack:"services",smooth:!0,areaStyle:{color:"rgba(37, 99, 235, 0.2)"},lineStyle:{width:3,color:"#3b82f6"},itemStyle:{color:"#3b82f6"},data:e.assigned.map(r=>r.value)},{name:django.gettext("Cached"),type:"line",stack:"services",smooth:!0,areaStyle:{color:"rgba(99, 102, 241, 0.2)"},lineStyle:{width:3,color:"#6366f1"},itemStyle:{color:"#6366f1"},data:e.cached.map(r=>r.value)},{name:django.gettext("In use"),type:"line",smooth:!0,areaStyle:{color:"rgba(16, 185, 129, 0.1)"},lineStyle:{width:3,color:"#10b981"},itemStyle:{color:"#10b981"},data:e.inuse.map(r=>r.value)}]}})}chartInit(e){this.chart=e}static{this.\u0275fac=function(n){return new(n||t)(y(te),y(j))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-service-pools-charts"]],hostBindings:function(n,o){n&1&&b("resize",function(a){return o.onResize(a)},!1,ul)},inputs:{poolUuid:"poolUuid"},standalone:!1,decls:2,vars:1,consts:[[1,"statistics-chart"],["echarts","",3,"chartInit","options"]],template:function(n,o){n&1&&(l(0,"div",0)(1,"div",1),b("chartInit",function(a){return o.chartInit(a)}),d()()),n&2&&(u(),_("options",o.options))},dependencies:[Qf],encapsulation:2})}}return t})();var M9=t=>["/pools","service-pools",t];function T9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Summary"),d())}function I9(t,i){if(t&1&&I(0,"uds-information",10),t&2){let e=g(2);_("value",e.servicePool)("gui",e.gui)}}function k9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Assigned services"),d())}function A9(t,i){if(t&1){let e=A();l(0,"mat-tab"),E(1,k9,2,0,"ng-template",8),l(2,"div",9)(3,"uds-table",13),b("customButtonAction",function(o){C(e);let r=g(2);return w(r.onCustomAssigned(o))})("deleteAction",function(o){C(e);let r=g(2);return w(r.onDeleteAssigned(o))}),d()()()}if(t&2){let e=g(2);u(3),_("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 R9(t,i){t&1&&(l(0,"span")(1,"uds-translate"),h(2,"Cache"),d()())}function O9(t,i){t&1&&(l(0,"span")(1,"uds-translate"),h(2,"Servers"),d()())}function P9(t,i){if(t&1&&E(0,R9,3,0,"span")(1,O9,3,0,"span"),t&2){let e=g(3);T(e.servicePool.state!=="Q"?0:-1),u(),T(e.servicePool.state==="Q"?1:-1)}}function F9(t,i){if(t&1){let e=A();l(0,"mat-tab"),E(1,P9,2,2,"ng-template",8),l(2,"div",9)(3,"uds-table",14),b("customButtonAction",function(o){C(e);let r=g(2);return w(r.onCustomCached(o))})("deleteAction",function(o){C(e);let r=g(2);return w(r.onDeleteCache(o))}),d()()()}if(t&2){let e=g(2);u(3),_("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 N9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Groups"),d())}function L9(t,i){if(t&1){let e=A();l(0,"mat-tab"),E(1,N9,2,0,"ng-template",8),l(2,"div",9)(3,"uds-table",15),b("newAction",function(o){C(e);let r=g(2);return w(r.onNewGroup(o))})("deleteAction",function(o){C(e);let r=g(2);return w(r.onDeleteGroup(o))}),d()()()}if(t&2){let e=g(2);u(3),_("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 V9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Transports"),d())}function B9(t,i){if(t&1){let e=A();l(0,"mat-tab"),E(1,V9,2,0,"ng-template",8),l(2,"div",9)(3,"uds-table",16),b("newAction",function(o){C(e);let r=g(2);return w(r.onNewTransport(o))})("deleteAction",function(o){C(e);let r=g(2);return w(r.onDeleteTransport(o))}),d()()()}if(t&2){let e=g(2);u(3),_("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 j9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Publications"),d())}function z9(t,i){if(t&1){let e=A();l(0,"mat-tab"),E(1,j9,2,0,"ng-template",8),l(2,"div",9)(3,"uds-table",17),b("customButtonAction",function(o){C(e);let r=g(2);return w(r.onCustomPublication(o))})("newAction",function(o){C(e);let r=g(2);return w(r.onNewPublication(o))})("rowSelected",function(o){C(e);let r=g(2);return w(r.onPublicationRowSelect(o))}),d()()()}if(t&2){let e=g(2);u(3),_("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 U9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Scheduled actions"),d())}function H9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Access calendars"),d())}function W9(t,i){if(t&1){let e=A();l(0,"mat-tab"),E(1,H9,2,0,"ng-template",8),l(2,"div",9)(3,"uds-table",18),b("customButtonAction",function(o){C(e);let r=g(2);return w(r.onCustomSetFallbackAction(o))})("newAction",function(o){C(e);let r=g(2);return w(r.onNewAccessCalendar(o))})("editAction",function(o){C(e);let r=g(2);return w(r.onEditAccessCalendar(o))})("deleteAction",function(o){C(e);let r=g(2);return w(r.onDeleteAccessCalendar(o))})("loaded",function(o){C(e);let r=g(2);return w(r.onAccessCalendarLoad(o))}),d()()()}if(t&2){let e=g(2);u(3),_("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 G9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Charts"),d())}function $9(t,i){if(t&1&&(l(0,"mat-tab"),E(1,G9,2,0,"ng-template",8),l(2,"div",9),I(3,"uds-service-pools-charts",19),d()()),t&2){let e=g(2);u(3),_("poolUuid",e.servicePool.id)}}function q9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Logs"),d())}function Y9(t,i){if(t&1){let e=A();l(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),W("selectedIndexChange",function(o){C(e);let r=g();return G(r.selectedTab,o)||(r.selectedTab=o),w(o)}),l(3,"mat-tab"),E(4,T9,2,0,"ng-template",8),l(5,"div",9),E(6,I9,1,2,"uds-information",10),d()(),E(7,A9,4,8,"mat-tab")(8,F9,4,9,"mat-tab")(9,L9,4,7,"mat-tab")(10,B9,4,7,"mat-tab")(11,z9,4,7,"mat-tab"),l(12,"mat-tab"),E(13,U9,2,0,"ng-template",8),l(14,"div",9)(15,"uds-table",11),b("customButtonAction",function(o){C(e);let r=g();return w(r.onCustomScheduleAction(o))})("newAction",function(o){C(e);let r=g();return w(r.onNewScheduledAction(o))})("editAction",function(o){C(e);let r=g();return w(r.onEditScheduledAction(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteScheduledAction(o))}),d()()(),E(16,W9,4,8,"mat-tab")(17,$9,4,1,"mat-tab"),l(18,"mat-tab"),E(19,q9,2,0,"ng-template",8),l(20,"div",9),I(21,"uds-logs-table",12),d()()()()()}if(t&2){let e=g();u(2),H("selectedIndex",e.selectedTab),_("@.disabled",!0),u(4),T(e.servicePool&&e.gui?6:-1),u(),T(e.servicePool.state!=="Q"?7:-1),u(),T(e.cache?8:-1),u(),T(e.servicePool.state!=="Q"?9:-1),u(),T(e.servicePool.state!=="Q"?10:-1),u(),T(e.publications?11:-1),u(4),_("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),u(),T(e.servicePool.state!=="Q"?16:-1),u(),T(e.servicePool.state!=="Q"?17:-1),u(4),_("rest",e.rest.servicesPools)("itemId",e.servicePool.id)("tableId","servicePools-d-log"+e.servicePool.id)("pageSize",e.api.config.admin.page_size)}}var Vg='event'+django.gettext("Logs")+"",Q9='computer'+django.gettext("VNC")+"",K9='schedule'+django.gettext("Launch now")+"",cw='perm_identity'+django.gettext("Change owner")+"",Z9='perm_identity'+django.gettext("Assign service")+"",X9='cancel'+django.gettext("Cancel")+"",J9='event'+django.gettext("Changelog")+"",yR='perm_identity'+django.gettext("Fallback: Allow")+"",eq='perm_identity'+django.gettext("Fallback: Deny")+"",Bg=(()=>{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:K9,type:ot.SINGLE_SELECT},xn.getGotoButton(Cf,"calendar_id")],this.customButtonAccessCalendars=[{id:"set-fallback-access",html:yR,type:ot.ALWAYS},xn.getGotoButton(Cf,"calendar_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:cw,type:ot.SINGLE_SELECT},{id:"log",html:Vg,type:ot.SINGLE_SELECT},xn.getGotoButton(nu,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:Vg,type:ot.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:X9,type:ot.SINGLE_SELECT},{id:"changelog",html:J9,type:ot.ALWAYS}],this.customButtonsGroups=[xn.getGotoButton(pC,"auth_id","id")],this.customButtonsTransports=[xn.getGotoButton(hC,"id")],this.servicePool=null,this.gui=[],this.assignedServices={},this.cache=null,this.groups={},this.transports={},this.publications=null,this.scheduledActions={},this.accessCalendars={},this.selectedTab=1}static cleanInvalidSelections(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 N(this,null,function*(){let e=this.route.snapshot.paramMap.get("pool");if(!e)return;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");let n=yield this.rest.servicesPools.get(e),o=(yield this.rest.servicesPools.gui()).filter(r=>{let a=["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"];return!(n.info.uses_cache===!1&&a.includes(r.name)||n.info.uses_cache_l2===!1&&r.name==="cache_l2_srvs"||n.info.needs_manager===!1&&r.name==="osmanager_id")});this.servicePool=n,this.gui=o,this.headerService.setTitle(this.servicePool.name,"pools",["/pools","service-pools"]),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:Q9,type:ot.ONLY_MENU}),this.servicePool.info.can_list_assignables&&this.customButtonsAssignedServices.push({id:"assign-service",html:Z9,type:ot.ALWAYS})})}vnc(e){let n=`[connection] host=`+e.ip+` port=5900 -`,o=new Blob([n],{type:"application/extension-vnc"});setTimeout(()=>{(0,vR.saveAs)(o,e.ip+".vnc",{autoBom:!1})},100)}onCustomAssigned(e){return V(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 Rg.launch(this.api,n,this.assignedServices))===!0&&e.table.reloadPage()}else e.param.id==="log"?mu.launch(this.api,n,this.assignedServices):e.param.id==="assign-service"?(yield fR.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&&mu.launch(this.api,n,this.cache)}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 V(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 V(this,null,function*(){(yield this.checkLocked())||(yield Og.launch(this.api,this.servicePool,this.groups))===!0&&e.table.reloadPage()})}onDeleteGroup(e){return V(this,null,function*(){(yield this.checkLocked())||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))})}onNewTransport(e){return V(this,null,function*(){(yield this.checkLocked())||(yield uR.launch(this.api,this.servicePool))===!0&&e.table.reloadPage()})}onDeleteTransport(e){return V(this,null,function*(){(yield this.checkLocked())||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned transport"))})}onNewPublication(e){return V(this,null,function*(){(yield mR.launch(this.api,this.servicePool))===!0&&e.table.reloadPage()})}onPublicationRowSelect(e){return V(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 V(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"&&pR.launch(this.api,this.servicePool)})}onNewScheduledAction(e){return V(this,null,function*(){aw.launch(this.api,this.servicePool).subscribe(n=>e.table.reloadPage())})}onEditScheduledAction(e){return V(this,null,function*(){aw.launch(this.api,this.servicePool,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteScheduledAction(e){return V(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete scheduled action"))})}onCustomSetFallbackAction(e){return V(this,null,function*(){Ms.launch(this.api,this.servicePool,this.accessCalendars,{id:-1}).subscribe(n=>e.table.reloadPage())})}onCustomScheduleAction(e){return V(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 V(this,null,function*(){(yield this.checkLocked())||Ms.launch(this.api,this.servicePool,this.accessCalendars).subscribe(n=>e.table.reloadPage())})}onEditAccessCalendar(e){return V(this,null,function*(){(yield this.checkLocked())||Ms.launch(this.api,this.servicePool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteAccessCalendar(e){return V(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 V(this,null,function*(){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(n=>{n.toLowerCase()==="allow"?this.customButtonAccessCalendars[0].html=_R:this.customButtonAccessCalendars[0].html=U9})})}processsCalendarOrScheduledElement(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(y(ke),y(te),y(j),y(ga))}}static{this.\u0275cmp=S({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"],[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&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),h(4,"arrow_back"),d()(),h(5," \xA0"),T(6,"img",4),h(7),d(),E(8,N9,22,22,"div",5),d()),n&2&&(u(2),_("routerLink",Qn(4,f9,o.servicePool?o.servicePool.id:"")),u(4),_("src",o.api.staticURL("admin/img/icons/pools.png"),Ee),u(),F(" \xA0",o.servicePool==null?null:o.servicePool.name," "),u(),I(o.servicePool!==null?8:-1))},dependencies:[ln,Yt,Qt,Xt,ue,Me,Ti,co,gR],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-revision, .mat-column-cache_level, .mat-column-in_use, .mat-column-priority{max-width:7rem;justify-content:center} .mat-column-publish_date, .mat-column-state_date, .mat-column-creation_date{width:14rem} .mat-column-trans_type, .mat-column-access{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word} .row-state-S>.mat-mdc-cell{color:gray!important} .row-state-C>.mat-mdc-cell{color:gray!important} .row-state-E>.mat-mdc-cell{color:red!important} .row-state-R>.mat-mdc-cell{color:orange!important}"]})}}return t})();var lw=(()=>{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)(y(j),y(ke),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div")(1,"uds-table",0),b("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&&(u(),_("rest",o.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",o.processElement)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Me],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 H9(t,i){t&1&&(l(0,"uds-translate"),h(1,"New member pool"),d())}function W9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Edit member pool"),d())}function G9(t,i){if(t&1){let e=A();l(0,"uds-cond-select-search",9),b("changed",function(o){C(e);let r=g();return w(r.servicePoolsFilter=o)}),d()}}function $9(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}var cw=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qt,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 V(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 V(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)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0),E(1,H9,2,0,"uds-translate")(2,W9,2,0,"uds-translate"),d(),l(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),h(8,"Priority"),d()(),l(9,"input",2),W("ngModelChange",function(a){return G(o.memberPool.priority,a)||(o.memberPool.priority=a),a}),d()(),l(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),h(13,"Service pool"),d()(),l(14,"mat-select",3),W("ngModelChange",function(a){return G(o.memberPool.pool_id,a)||(o.memberPool.pool_id=a),a}),E(15,G9,1,0,"uds-cond-select-search"),oe(16,$9,2,2,"mat-option",4,le),d()(),l(18,"div",5)(19,"span",6)(20,"uds-translate"),h(21,"Enabled?"),d()(),l(22,"mat-slide-toggle",3),W("ngModelChange",function(a){return G(o.memberPool.enabled,a)||(o.memberPool.enabled=a),a}),h(23),d()()()(),l(24,"mat-dialog-actions")(25,"button",7),b("click",function(){return o.cancel()}),l(26,"uds-translate"),h(27,"Cancel"),d()(),l(28,"button",8),b("click",function(){return o.save()}),l(29,"uds-translate"),h(30,"Ok"),d()()()),n&2&&(u(),I(o.memberPool!=null&&o.memberPool.id?-1:1),u(),I(o.memberPool!=null&&o.memberPool.id?2:-1),u(7),H("ngModel",o.memberPool.priority),u(5),H("ngModel",o.memberPool.pool_id),u(),I(o.servicePools.length>10?15:-1),u(),re(o.filtered(o.servicePools,o.servicePoolsFilter)),u(6),H("ngModel",o.memberPool.enabled),u(),F(" ",o.api.boolAsHumanString(o.memberPool.enabled)," "))},dependencies:[st,ji,we,Se,De,$e,Ye,qe,ge,Ae,mt,ht,Ze,rr,ue,dn],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;text-align:left;text-overflow:ellipsis;transform:matrix(.85,0,0,.85,-4,-.5);white-space:nowrap}"]})}}return t})();var q9=t=>["/pools","meta-pools",t];function Y9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Summary"),d())}function Q9(t,i){if(t&1&&T(0,"uds-information",10),t&2){let e=g(2);_("value",e.metaPool)("gui",e.gui)}}function K9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Service pools"),d())}function Z9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Assigned services"),d())}function X9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Groups"),d())}function J9(t,i){t&1&&(l(0,"uds-translate"),h(1,"Access calendars"),d())}function eq(t,i){t&1&&(l(0,"uds-translate"),h(1,"Logs"),d())}function tq(t,i){if(t&1){let e=A();l(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),W("selectedIndexChange",function(o){C(e);let r=g();return G(r.selectedTab,o)||(r.selectedTab=o),w(o)}),l(3,"mat-tab"),E(4,Y9,2,0,"ng-template",8),l(5,"div",9),E(6,Q9,1,2,"uds-information",10),d()(),l(7,"mat-tab"),E(8,K9,2,0,"ng-template",8),l(9,"div",9)(10,"uds-table",11),b("newAction",function(o){C(e);let r=g();return w(r.onNewMemberPool(o))})("editAction",function(o){C(e);let r=g();return w(r.onEditMemberPool(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteMemberPool(o))}),d()()(),l(11,"mat-tab"),E(12,Z9,2,0,"ng-template",8),l(13,"div",9)(14,"uds-table",12),b("customButtonAction",function(o){C(e);let r=g();return w(r.onCustomAssigned(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteAssigned(o))}),d()()(),l(15,"mat-tab"),E(16,X9,2,0,"ng-template",8),l(17,"div",9)(18,"uds-table",13),b("newAction",function(o){C(e);let r=g();return w(r.onNewGroup(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteGroup(o))}),d()()(),l(19,"mat-tab"),E(20,J9,2,0,"ng-template",8),l(21,"div",9)(22,"uds-table",14),b("newAction",function(o){C(e);let r=g();return w(r.onNewAccessCalendar(o))})("editAction",function(o){C(e);let r=g();return w(r.onEditAccessCalendar(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteAccessCalendar(o))})("loaded",function(o){C(e);let r=g();return w(r.onAccessCalendarLoad(o))}),d()()(),l(23,"mat-tab"),E(24,eq,2,0,"ng-template",8),l(25,"div",9),T(26,"uds-logs-table",15),d()()()()()}if(t&2){let e=g();u(2),H("selectedIndex",e.selectedTab),_("@.disabled",!0),u(4),I(e.metaPool&&e.gui?6:-1),u(4),_("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),u(4),_("rest",e.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+e.metaPool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size),u(4),_("rest",e.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),u(4),_("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)("onItem",e.processsCalendarItem),u(4),_("rest",e.rest.metaPools)("itemId",e.metaPool.id)("tableId","metaPools-d-log"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)}}var bR=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[wn.getGotoButton(tu,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:sw,type:ot.SINGLE_SELECT},{id:"log",html:Ng,type:ot.SINGLE_SELECT},wn.getGotoButton(nu,"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 V(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 V(this,null,function*(){(yield cw.launch(this.api,this.memberPools))===!0&&e.table.reloadPage()})}onEditMemberPool(e){return V(this,null,function*(){(yield cw.launch(this.api,this.memberPools,e.table.selection.selected[0]))===!0&&e.table.reloadPage()})}onDeleteMemberPool(e){return V(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Remove member pool"))})}onCustomAssigned(e){return V(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 Rg.launch(this.api,n,this.memberUserServices))===!0&&e.table.reloadPage()}else e.param.id==="log"&&mu.launch(this.api,n,this.memberUserServices)})}onDeleteAssigned(e){return V(this,null,function*(){Lg.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))})}onNewGroup(e){return V(this,null,function*(){(yield Og.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){Ms.launch(this.api,this.metaPool,this.accessCalendars).subscribe(n=>e.table.reloadPage())}onEditAccessCalendar(e){Ms.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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),h(4,"arrow_back"),d()(),h(5," \xA0"),T(6,"img",4),h(7),d(),E(8,tq,27,31,"div",5),dt(9,"notEmpty"),d()),n&2&&(u(2),_("routerLink",Qn(6,q9,o.metaPool?o.metaPool.id:"")),u(4),_("src",o.api.staticURL("admin/img/icons/metas.png"),Ee),u(),F(" ",o.metaPool==null?null:o.metaPool.name," "),u(),I(vt(9,4,o.metaPool)?8:-1))},dependencies:[ln,Yt,Qt,Xt,ue,Me,Ti,co,mn],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]})}}return t})();var dw=(()=>{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 V(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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"uds-table",0),b("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&&_("rest",o.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Me],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]})}}return t})();var uw=(()=>{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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"uds-table",0),b("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&&_("rest",o.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Me],encapsulation:2})}}return t})();var nq=["mat-calendar-body",""];function iq(t,i){return this._trackRow(i)}var ER=(t,i)=>i.id;function oq(t,i){if(t&1&&(l(0,"tr",0)(1,"td",3),h(2),d()()),t&2){let e=g();u(),Vn("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),ne("colspan",e.numCols),u(),F(" ",e.label," ")}}function rq(t,i){if(t&1&&(l(0,"td",3),h(1),d()),t&2){let e=g(2);Vn("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),ne("colspan",e._firstRowOffset),u(),F(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function aq(t,i){if(t&1){let e=A();l(0,"td",6)(1,"button",7),b("click",function(o){let r=C(e).$implicit,a=g(2);return w(a._cellClicked(r,o))})("focus",function(o){let r=C(e).$implicit,a=g(2);return w(a._emitActiveDateChange(r,o))}),l(2,"span",8),h(3),d(),T(4,"span",9),d()()}if(t&2){let e=i.$implicit,n=i.$index,o=g().$index,r=g();Vn("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),ne("data-mat-row",o)("data-mat-col",n),u(),ee("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)),_("ngClass",e.cssClasses)("tabindex",r._isActiveCell(o,n)?0:-1),ne("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)),u(),ee("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),u(),F(" ",e.displayValue," ")}}function sq(t,i){if(t&1&&(l(0,"tr",1),E(1,rq,2,6,"td",4),oe(2,aq,5,48,"td",5,ER),d()),t&2){let e=i.$implicit,n=i.$index,o=g();u(),I(n===0&&o._firstRowOffset?1:-1),u(),re(e)}}function lq(t,i){if(t&1&&(l(0,"th",2)(1,"span",6),h(2),d(),l(3,"span",3),h(4),d()()),t&2){let e=i.$implicit;u(2),de(e.long),u(2),de(e.narrow)}}var cq=["*"];function dq(t,i){}function uq(t,i){if(t&1){let e=A();l(0,"mat-month-view",4),W("activeDateChange",function(o){C(e);let r=g();return G(r.activeDate,o)||(r.activeDate=o),w(o)}),b("_userSelection",function(o){C(e);let r=g();return w(r._dateSelected(o))})("dragStarted",function(o){C(e);let r=g();return w(r._dragStarted(o))})("dragEnded",function(o){C(e);let r=g();return w(r._dragEnded(o))}),d()}if(t&2){let e=g();H("activeDate",e.activeDate),_("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 mq(t,i){if(t&1){let e=A();l(0,"mat-year-view",5),W("activeDateChange",function(o){C(e);let r=g();return G(r.activeDate,o)||(r.activeDate=o),w(o)}),b("monthSelected",function(o){C(e);let r=g();return w(r._monthSelectedInYearView(o))})("selectedChange",function(o){C(e);let r=g();return w(r._goToDateInView(o,"month"))}),d()}if(t&2){let e=g();H("activeDate",e.activeDate),_("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function pq(t,i){if(t&1){let e=A();l(0,"mat-multi-year-view",6),W("activeDateChange",function(o){C(e);let r=g();return G(r.activeDate,o)||(r.activeDate=o),w(o)}),b("yearSelected",function(o){C(e);let r=g();return w(r._yearSelectedInMultiYearView(o))})("selectedChange",function(o){C(e);let r=g();return w(r._goToDateInView(o,"year"))}),d()}if(t&2){let e=g();H("activeDate",e.activeDate),_("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function hq(t,i){}var fq=["button"],gq=[[["","matDatepickerToggleIcon",""]]],_q=["[matDatepickerToggleIcon]"];function vq(t,i){t&1&&(nn(),l(0,"svg",2),T(1,"path",3),d())}var ac=(()=>{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=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),bq=0,hu=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=bq++;constructor(i,e,n,o,r={},a=i,s){this.value=i,this.displayValue=e,this.ariaLabel=n,this.enabled=o,this.cssClasses=r,this.compareValue=a,this.rawValue=s}},yq={passive:!1,capture:!0},Vg={passive:!0,capture:!0},yR={passive:!0},rc=(()=>{class t{_elementRef=p(Z);_ngZone=p(ie);_platform=p(et);_intl=p(ac);_eventCleanups;_skipNextFocus;_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;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new k;previewChange=new k;activeDateChange=new k;dragStarted=new k;dragEnded=new k;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=p(Ie);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=p(It),n=p(ut);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(yt).load(gn),this._ngZone.runOutsideAngular(()=>{let o=this._elementRef.nativeElement,r=[$t(e,o,"touchmove",this._touchmoveHandler,yq),$t(e,o,"mouseenter",this._enterHandler,Vg),$t(e,o,"focus",this._enterHandler,Vg),$t(e,o,"mouseleave",this._leaveHandler,Vg),$t(e,o,"blur",this._leaveHandler,Vg),$t(e,o,"mousedown",this._mousedownHandler,yR),$t(e,o,"touchstart",this._mousedownHandler,yR)];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){Ht(()=>{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 hw(e,this.startValue,this.endValue)}_isRangeEnd(e){return fw(e,this.startValue,this.endValue)}_isInRange(e){return gw(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return hw(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 fw(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return gw(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return hw(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return fw(e,this.previewStart,this.previewEnd)}_isInPreview(e){return gw(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=CR(e),o=n?this._getCellFromElement(n):null;n!==e.target&&(this._didDragSinceMouseDown=!0),pw(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=pw(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=CR(e);n&&this._mouseupHandler({target:n})};_getCellFromElement(e){let n=pw(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)]}return null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({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:[Be],attrs:nq,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","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(n,o){n&1&&(E(0,oq,3,6,"tr",0),oe(1,sq,4,1,"tr",1,iq,!0),l(3,"span",2),h(4),d(),l(5,"span",2),h(6),d(),l(7,"span",2),h(8),d(),l(9,"span",2),h(10),d()),n&2&&(I(o._firstRowOffset{(0,CR.saveAs)(o,e.ip+".vnc",{autoBom:!1})},100)}onCustomAssigned(e){return N(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 Pg.launch(this.api,n,this.assignedServices))===!0&&e.table.reloadPage()}else e.param.id==="log"?mu.launch(this.api,n,this.assignedServices):e.param.id==="assign-service"?(yield vR.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&&mu.launch(this.api,n,this.cache)}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 N(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 N(this,null,function*(){(yield this.checkLocked())||(yield Fg.launch(this.api,this.servicePool,this.groups))===!0&&e.table.reloadPage()})}onDeleteGroup(e){return N(this,null,function*(){(yield this.checkLocked())||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned group"))})}onNewTransport(e){return N(this,null,function*(){(yield this.checkLocked())||(yield hR.launch(this.api,this.servicePool))===!0&&e.table.reloadPage()})}onDeleteTransport(e){return N(this,null,function*(){(yield this.checkLocked())||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned transport"))})}onNewPublication(e){return N(this,null,function*(){(yield fR.launch(this.api,this.servicePool))===!0&&e.table.reloadPage()})}onPublicationRowSelect(e){return N(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 N(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"&&gR.launch(this.api,this.servicePool)})}onNewScheduledAction(e){return N(this,null,function*(){lw.launch(this.api,this.servicePool).subscribe(n=>e.table.reloadPage())})}onEditScheduledAction(e){return N(this,null,function*(){lw.launch(this.api,this.servicePool,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteScheduledAction(e){return N(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Delete scheduled action"))})}onCustomSetFallbackAction(e){return N(this,null,function*(){Ms.launch(this.api,this.servicePool,this.accessCalendars,{id:-1}).subscribe(n=>e.table.reloadPage())})}onCustomScheduleAction(e){return N(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 N(this,null,function*(){(yield this.checkLocked())||Ms.launch(this.api,this.servicePool,this.accessCalendars).subscribe(n=>e.table.reloadPage())})}onEditAccessCalendar(e){return N(this,null,function*(){(yield this.checkLocked())||Ms.launch(this.api,this.servicePool,this.accessCalendars,e.table.selection.selected[0]).subscribe(n=>e.table.reloadPage())})}onDeleteAccessCalendar(e){return N(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 N(this,null,function*(){this.rest.servicesPools.getFallbackAccess(this.servicePool.id).then(n=>{n.toLowerCase()==="allow"?this.customButtonAccessCalendars[0].html=yR:this.customButtonAccessCalendars[0].html=eq})})}processsCalendarOrScheduledElement(e){e.name=e.calendar,e.atStart=this.api.boolAsHumanString(e.atStart)}static{this.\u0275fac=function(n){return new(n||t)(y(ke),y(te),y(j),y(ga))}}static{this.\u0275cmp=S({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"],[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&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),h(4,"arrow_back"),d()(),h(5," \xA0"),I(6,"img",4),h(7),d(),E(8,Y9,22,22,"div",5),d()),n&2&&(u(2),_("routerLink",Qn(4,M9,o.servicePool?o.servicePool.id:"")),u(4),_("src",o.api.staticURL("admin/img/icons/pools.png"),Ee),u(),F(" \xA0",o.servicePool==null?null:o.servicePool.name," "),u(),T(o.servicePool!==null?8:-1))},dependencies:[cn,Yt,Qt,Jt,de,Me,Ti,uo,bR],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-revision, .mat-column-cache_level, .mat-column-in_use, .mat-column-priority{max-width:7rem;justify-content:center} .mat-column-publish_date, .mat-column-state_date, .mat-column-creation_date{width:14rem} .mat-column-trans_type, .mat-column-access{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word} .row-state-S>.mat-mdc-cell{color:gray!important} .row-state-C>.mat-mdc-cell{color:gray!important} .row-state-E>.mat-mdc-cell{color:red!important} .row-state-R>.mat-mdc-cell{color:orange!important}"]})}}return t})();var dw=(()=>{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)(y(j),y(ke),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div")(1,"uds-table",0),b("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&&(u(),_("rest",o.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",o.processElement)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Me],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 tq(t,i){t&1&&(l(0,"uds-translate"),h(1,"New member pool"),d())}function nq(t,i){t&1&&(l(0,"uds-translate"),h(1,"Edit member pool"),d())}function iq(t,i){if(t&1){let e=A();l(0,"uds-cond-select-search",9),b("changed",function(o){C(e);let r=g();return w(r.servicePoolsFilter=o)}),d()}}function oq(t,i){if(t&1&&(l(0,"mat-option",4),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.name," ")}}var uw=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.done=new qt,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 N(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 N(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)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0),E(1,tq,2,0,"uds-translate")(2,nq,2,0,"uds-translate"),d(),l(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),h(8,"Priority"),d()(),l(9,"input",2),W("ngModelChange",function(a){return G(o.memberPool.priority,a)||(o.memberPool.priority=a),a}),d()(),l(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),h(13,"Service pool"),d()(),l(14,"mat-select",3),W("ngModelChange",function(a){return G(o.memberPool.pool_id,a)||(o.memberPool.pool_id=a),a}),E(15,iq,1,0,"uds-cond-select-search"),oe(16,oq,2,2,"mat-option",4,ce),d()(),l(18,"div",5)(19,"span",6)(20,"uds-translate"),h(21,"Enabled?"),d()(),l(22,"mat-slide-toggle",3),W("ngModelChange",function(a){return G(o.memberPool.enabled,a)||(o.memberPool.enabled=a),a}),h(23),d()()()(),l(24,"mat-dialog-actions")(25,"button",7),b("click",function(){return o.cancel()}),l(26,"uds-translate"),h(27,"Cancel"),d()(),l(28,"button",8),b("click",function(){return o.save()}),l(29,"uds-translate"),h(30,"Ok"),d()()()),n&2&&(u(),T(o.memberPool!=null&&o.memberPool.id?-1:1),u(),T(o.memberPool!=null&&o.memberPool.id?2:-1),u(7),H("ngModel",o.memberPool.priority),u(5),H("ngModel",o.memberPool.pool_id),u(),T(o.servicePools.length>10?15:-1),u(),re(o.filtered(o.servicePools,o.servicePoolsFilter)),u(6),H("ngModel",o.memberPool.enabled),u(),F(" ",o.api.boolAsHumanString(o.memberPool.enabled)," "))},dependencies:[st,ji,xe,Se,ye,Ue,We,He,ge,Ae,pt,ht,Ze,rr,de,dn],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;text-align:left;text-overflow:ellipsis;transform:matrix(.85,0,0,.85,-4,-.5);white-space:nowrap}"]})}}return t})();var rq=t=>["/pools","meta-pools",t];function aq(t,i){t&1&&(l(0,"uds-translate"),h(1,"Summary"),d())}function sq(t,i){if(t&1&&I(0,"uds-information",10),t&2){let e=g(2);_("value",e.metaPool)("gui",e.gui)}}function lq(t,i){t&1&&(l(0,"uds-translate"),h(1,"Service pools"),d())}function cq(t,i){t&1&&(l(0,"uds-translate"),h(1,"Assigned services"),d())}function dq(t,i){t&1&&(l(0,"uds-translate"),h(1,"Groups"),d())}function uq(t,i){t&1&&(l(0,"uds-translate"),h(1,"Access calendars"),d())}function mq(t,i){t&1&&(l(0,"uds-translate"),h(1,"Logs"),d())}function pq(t,i){if(t&1){let e=A();l(0,"div",5)(1,"div",6)(2,"mat-tab-group",7),W("selectedIndexChange",function(o){C(e);let r=g();return G(r.selectedTab,o)||(r.selectedTab=o),w(o)}),l(3,"mat-tab"),E(4,aq,2,0,"ng-template",8),l(5,"div",9),E(6,sq,1,2,"uds-information",10),d()(),l(7,"mat-tab"),E(8,lq,2,0,"ng-template",8),l(9,"div",9)(10,"uds-table",11),b("newAction",function(o){C(e);let r=g();return w(r.onNewMemberPool(o))})("editAction",function(o){C(e);let r=g();return w(r.onEditMemberPool(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteMemberPool(o))}),d()()(),l(11,"mat-tab"),E(12,cq,2,0,"ng-template",8),l(13,"div",9)(14,"uds-table",12),b("customButtonAction",function(o){C(e);let r=g();return w(r.onCustomAssigned(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteAssigned(o))}),d()()(),l(15,"mat-tab"),E(16,dq,2,0,"ng-template",8),l(17,"div",9)(18,"uds-table",13),b("newAction",function(o){C(e);let r=g();return w(r.onNewGroup(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteGroup(o))}),d()()(),l(19,"mat-tab"),E(20,uq,2,0,"ng-template",8),l(21,"div",9)(22,"uds-table",14),b("newAction",function(o){C(e);let r=g();return w(r.onNewAccessCalendar(o))})("editAction",function(o){C(e);let r=g();return w(r.onEditAccessCalendar(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteAccessCalendar(o))})("loaded",function(o){C(e);let r=g();return w(r.onAccessCalendarLoad(o))}),d()()(),l(23,"mat-tab"),E(24,mq,2,0,"ng-template",8),l(25,"div",9),I(26,"uds-logs-table",15),d()()()()()}if(t&2){let e=g();u(2),H("selectedIndex",e.selectedTab),_("@.disabled",!0),u(4),T(e.metaPool&&e.gui?6:-1),u(4),_("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),u(4),_("rest",e.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+e.metaPool.id)("customButtons",e.customButtonsAssignedServices)("pageSize",e.api.config.admin.page_size),u(4),_("rest",e.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+e.metaPool.id)("pageSize",e.api.config.admin.page_size),u(4),_("rest",e.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)("onItem",e.processsCalendarItem),u(4),_("rest",e.rest.metaPools)("itemId",e.metaPool.id)("tableId","metaPools-d-log"+e.metaPool.id)("pageSize",e.api.config.admin.page_size)}}var wR=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.customButtons=[xn.getGotoButton(tu,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:cw,type:ot.SINGLE_SELECT},{id:"log",html:Vg,type:ot.SINGLE_SELECT},xn.getGotoButton(nu,"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 N(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 N(this,null,function*(){(yield uw.launch(this.api,this.memberPools))===!0&&e.table.reloadPage()})}onEditMemberPool(e){return N(this,null,function*(){(yield uw.launch(this.api,this.memberPools,e.table.selection.selected[0]))===!0&&e.table.reloadPage()})}onDeleteMemberPool(e){return N(this,null,function*(){this.api.gui.forms.deleteForm(e,django.gettext("Remove member pool"))})}onCustomAssigned(e){return N(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 Pg.launch(this.api,n,this.memberUserServices))===!0&&e.table.reloadPage()}else e.param.id==="log"&&mu.launch(this.api,n,this.memberUserServices)})}onDeleteAssigned(e){return N(this,null,function*(){Bg.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))})}onNewGroup(e){return N(this,null,function*(){(yield Fg.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){Ms.launch(this.api,this.metaPool,this.accessCalendars).subscribe(n=>e.table.reloadPage())}onEditAccessCalendar(e){Ms.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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),h(4,"arrow_back"),d()(),h(5," \xA0"),I(6,"img",4),h(7),d(),E(8,pq,27,31,"div",5),dt(9,"notEmpty"),d()),n&2&&(u(2),_("routerLink",Qn(6,rq,o.metaPool?o.metaPool.id:"")),u(4),_("src",o.api.staticURL("admin/img/icons/metas.png"),Ee),u(),F(" ",o.metaPool==null?null:o.metaPool.name," "),u(),T(vt(9,4,o.metaPool)?8:-1))},dependencies:[cn,Yt,Qt,Jt,de,Me,Ti,uo,mn],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]})}}return t})();var mw=(()=>{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 N(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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"uds-table",0),b("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&&_("rest",o.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Me],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]})}}return t})();var pw=(()=>{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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"uds-table",0),b("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&&_("rest",o.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",o.api.config.admin.page_size)},dependencies:[Me],encapsulation:2})}}return t})();var hq=["mat-calendar-body",""];function fq(t,i){return this._trackRow(i)}var IR=(t,i)=>i.id;function gq(t,i){if(t&1&&(l(0,"tr",0)(1,"td",3),h(2),d()()),t&2){let e=g();u(),Vn("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),ne("colspan",e.numCols),u(),F(" ",e.label," ")}}function _q(t,i){if(t&1&&(l(0,"td",3),h(1),d()),t&2){let e=g(2);Vn("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),ne("colspan",e._firstRowOffset),u(),F(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function vq(t,i){if(t&1){let e=A();l(0,"td",6)(1,"button",7),b("click",function(o){let r=C(e).$implicit,a=g(2);return w(a._cellClicked(r,o))})("focus",function(o){let r=C(e).$implicit,a=g(2);return w(a._emitActiveDateChange(r,o))}),l(2,"span",8),h(3),d(),I(4,"span",9),d()()}if(t&2){let e=i.$implicit,n=i.$index,o=g().$index,r=g();Vn("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),ne("data-mat-row",o)("data-mat-col",n),u(),X("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)),_("ngClass",e.cssClasses)("tabindex",r._isActiveCell(o,n)?0:-1),ne("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)),u(),X("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),u(),F(" ",e.displayValue," ")}}function bq(t,i){if(t&1&&(l(0,"tr",1),E(1,_q,2,6,"td",4),oe(2,vq,5,48,"td",5,IR),d()),t&2){let e=i.$implicit,n=i.$index,o=g();u(),T(n===0&&o._firstRowOffset?1:-1),u(),re(e)}}function yq(t,i){if(t&1&&(l(0,"th",2)(1,"span",6),h(2),d(),l(3,"span",3),h(4),d()()),t&2){let e=i.$implicit;u(2),ae(e.long),u(2),ae(e.narrow)}}var Cq=["*"];function wq(t,i){}function xq(t,i){if(t&1){let e=A();l(0,"mat-month-view",4),W("activeDateChange",function(o){C(e);let r=g();return G(r.activeDate,o)||(r.activeDate=o),w(o)}),b("_userSelection",function(o){C(e);let r=g();return w(r._dateSelected(o))})("dragStarted",function(o){C(e);let r=g();return w(r._dragStarted(o))})("dragEnded",function(o){C(e);let r=g();return w(r._dragEnded(o))}),d()}if(t&2){let e=g();H("activeDate",e.activeDate),_("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 Dq(t,i){if(t&1){let e=A();l(0,"mat-year-view",5),W("activeDateChange",function(o){C(e);let r=g();return G(r.activeDate,o)||(r.activeDate=o),w(o)}),b("monthSelected",function(o){C(e);let r=g();return w(r._monthSelectedInYearView(o))})("selectedChange",function(o){C(e);let r=g();return w(r._goToDateInView(o,"month"))}),d()}if(t&2){let e=g();H("activeDate",e.activeDate),_("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Sq(t,i){if(t&1){let e=A();l(0,"mat-multi-year-view",6),W("activeDateChange",function(o){C(e);let r=g();return G(r.activeDate,o)||(r.activeDate=o),w(o)}),b("yearSelected",function(o){C(e);let r=g();return w(r._yearSelectedInMultiYearView(o))})("selectedChange",function(o){C(e);let r=g();return w(r._goToDateInView(o,"year"))}),d()}if(t&2){let e=g();H("activeDate",e.activeDate),_("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Eq(t,i){}var Mq=["button"],Tq=[[["","matDatepickerToggleIcon",""]]],Iq=["[matDatepickerToggleIcon]"];function kq(t,i){t&1&&(on(),l(0,"svg",2),I(1,"path",3),d())}var ac=(()=>{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=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Aq=0,hu=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=Aq++;constructor(i,e,n,o,r={},a=i,s){this.value=i,this.displayValue=e,this.ariaLabel=n,this.enabled=o,this.cssClasses=r,this.compareValue=a,this.rawValue=s}},Rq={passive:!1,capture:!0},jg={passive:!0,capture:!0},xR={passive:!0},rc=(()=>{class t{_elementRef=p(Z);_ngZone=p(ie);_platform=p(et);_intl=p(ac);_eventCleanups;_skipNextFocus;_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;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new k;previewChange=new k;activeDateChange=new k;dragStarted=new k;dragEnded=new k;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=p(Ie);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=p(kt),n=p(ut);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(yt).load(gn),this._ngZone.runOutsideAngular(()=>{let o=this._elementRef.nativeElement,r=[$t(e,o,"touchmove",this._touchmoveHandler,Rq),$t(e,o,"mouseenter",this._enterHandler,jg),$t(e,o,"focus",this._enterHandler,jg),$t(e,o,"mouseleave",this._leaveHandler,jg),$t(e,o,"blur",this._leaveHandler,jg),$t(e,o,"mousedown",this._mousedownHandler,xR),$t(e,o,"touchstart",this._mousedownHandler,xR)];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){Ht(()=>{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 gw(e,this.startValue,this.endValue)}_isRangeEnd(e){return _w(e,this.startValue,this.endValue)}_isInRange(e){return vw(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return gw(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 _w(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return vw(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return gw(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return _w(e,this.previewStart,this.previewEnd)}_isInPreview(e){return vw(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=DR(e),o=n?this._getCellFromElement(n):null;n!==e.target&&(this._didDragSinceMouseDown=!0),fw(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=fw(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=DR(e);n&&this._mouseupHandler({target:n})};_getCellFromElement(e){let n=fw(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)]}return null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({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:[je],attrs:hq,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","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(n,o){n&1&&(E(0,gq,3,6,"tr",0),oe(1,bq,4,1,"tr",1,fq,!0),l(3,"span",2),h(4),d(),l(5,"span",2),h(6),d(),l(7,"span",2),h(8),d(),l(9,"span",2),h(10),d()),n&2&&(T(o._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}} -`],encapsulation:2,changeDetection:0})}return t})();function mw(t){return t?.nodeName==="TD"}function pw(t){let i;return mw(t)?i=t:mw(t.parentNode)?i=t.parentNode:mw(t.parentNode?.parentNode)&&(i=t.parentNode.parentNode),i?.getAttribute("data-mat-row")!=null?i:null}function hw(t,i,e){return e!==null&&i!==e&&t=i&&t===e}function gw(t,i,e,n){return n&&i!==null&&e!==null&&i!==e&&t>=i&&t<=e}function CR(t){let i=t.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var uo=class{start;end;_disableStructuralEquivalency;constructor(i,e){this.start=i,this.end=e}},fu=(()=>{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){Dp()};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),Cq=(()=>{class t extends fu{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)(se(Pn))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function wq(t,i){return t||new Cq(i)}var MR={provide:fu,deps:[[new yo,new hr,fu],Pn],useFactory:wq};var TR=new R("MAT_DATE_RANGE_SELECTION_STRATEGY");var _w=7,xq=0,wR=(()=>{class t{_changeDetectorRef=p(xe);_dateFormats=p(fa,{optional:!0});_dateAdapter=p(Pn,{optional:!0});_dir=p(Pt,{optional:!0});_rangeStrategy=p(TR,{optional:!0});_rerenderSubscription=be.EMPTY;_selectionKeyPressed;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 uo?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new k;_userSelection=new k;dragStarted=new k;dragEnded=new k;activeDateChange=new k;_matCalendarBody;_monthLabel;_weeks;_firstWeekOffset;_rangeStart;_rangeEnd;_comparisonRangeStart;_comparisonRangeEnd;_previewStart;_previewEnd;_isRange;_todayDate;_weekdays;constructor(){p(yt).load(eo),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(xt(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 uo?(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&&!Et(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=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(_w+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%_w,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=this._getCellCompareValue(r.start),this._previewEnd=this._getCellCompareValue(r.end),this.activeDrag&&o){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,e);a&&(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end))}this._changeDetectorRef.detectChanges()}}_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:xq++}));this._weekdays=r.slice(e).concat(r.slice(0,e))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames();this._weeks=[[]];for(let o=0,r=this._firstWeekOffset;o=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 uo?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&me(rc,5),n&2){let r;q(r=Y())&&(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:[Be],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&&(l(0,"table",0)(1,"thead",1)(2,"tr"),oe(3,lq,5,2,"th",2,ER),d(),l(5,"tr",3),T(6,"th",4),d()(),l(7,"tbody",5),b("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&&(u(3),re(o._weekdays),u(4),_("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:[rc],encapsulation:2,changeDetection:0})}return t})(),Hi=24,vw=4,xR=(()=>{class t{_changeDetectorRef=p(xe);_dateAdapter=p(Pn,{optional:!0});_dir=p(Pt,{optional:!0});_rerenderSubscription=be.EMPTY;_selectionKeyPressed;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),IR(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof uo?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new k;yearSelected=new k;activeDateChange=new k;_matCalendarBody;_years;_todayYear;_selectedYear;constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(xt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let n=this._dateAdapter.getYear(this._activeDate)-pu(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let o=0,r=[];othis._createCellForYear(a))),r=[]);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,-vw);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,vw);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-pu(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Hi-pu(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Hi*10:-Hi);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Hi*10:Hi);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 pu(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 hu(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(xe);_dateFormats=p(fa,{optional:!0});_dateAdapter=p(Pn,{optional:!0});_dir=p(Pt,{optional:!0});_rerenderSubscription=be.EMPTY;_selectionKeyPressed;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 uo?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new k;monthSelected=new k;activeDateChange=new k;_matCalendarBody;_months;_yearLabel;_todayMonth;_selectedMonth;constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(xt(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=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,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 hu(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(ac);calendar=p(bw);_dateAdapter=p(Pn,{optional:!0});_dateFormats=p(fa,{optional:!0});constructor(){p(yt).load(eo);let e=p(xe);this.calendar.stateChanges.subscribe(()=>e.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Hi)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Hi)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(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):IR(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-pu(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Hi-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(ut).getId("mat-calendar-period-label-");static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:cq,decls:17,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(n,o){n&1&&(Le(),l(0,"div",0)(1,"div",1)(2,"span",2),h(3),d(),l(4,"button",3),b("click",function(){return o.currentPeriodClicked()}),l(5,"span",4),h(6),d(),nn(),l(7,"svg",5),T(8,"polygon",6),d()(),vr(),T(9,"div",7),ce(10),l(11,"button",8),b("click",function(){return o.previousClicked()}),nn(),l(12,"svg",9),T(13,"path",10),d()(),vr(),l(14,"button",11),b("click",function(){return o.nextClicked()}),nn(),l(15,"svg",9),T(16,"path",12),d()()()()),n&2&&(u(2),_("id",o._periodButtonLabelId),u(),de(o.periodButtonDescription),u(),ne("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),u(2),de(o.periodButtonText),u(),ee("mat-calendar-invert",o.calendar.currentView!=="month"),u(4),_("disabled",!o.previousEnabled()),ne("aria-label",o.prevButtonLabel),u(3),_("disabled",!o.nextEnabled()),ne("aria-label",o.nextButtonLabel))},dependencies:[De,On],encapsulation:2,changeDetection:0})}return t})(),bw=(()=>{class t{_dateAdapter=p(Pn,{optional:!0});_dateFormats=p(fa,{optional:!0});_changeDetectorRef=p(xe);_elementRef=p(Z);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof uo?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new k;yearSelected=new k;monthSelected=new k;viewChanged=new k(!0);_userSelection=new k;_userDragDrop=new k;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.viewChanged.emit(n)}_currentView;_activeDrag=null;stateChanges=new z;constructor(){this._intlChanges=p(ac).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new ri(this.headerComponent||AR),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(Ji())&&(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 uo||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=S({type:t,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&(me(wR,5),me(DR,5),me(xR,5)),n&2){let r;q(r=Y())&&(o.monthView=r.first),q(r=Y())&&(o.yearView=r.first),q(r=Y())&&(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:[Ce([MR]),Be],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&&(E(0,dq,0,0,"ng-template",0),l(1,"div",1),E(2,uq,1,11,"mat-month-view",2)(3,mq,1,6,"mat-year-view",3)(4,pq,1,6,"mat-multi-year-view",3),d()),n&2){let r;_("cdkPortalOutlet",o._calendarHeaderPortal),u(2),I((r=o.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1)}},dependencies:[Kn,Od,wR,DR,xR],styles:[`.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return t})(),RR=new R("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(kt);return()=>t.scrollStrategies.reposition()}});function Sq(t){return()=>t.scrollStrategies.reposition()}var Eq={provide:RR,deps:[kt],useFactory:Sq},OR=(()=>{class t{_elementRef=p(Z);_animationsDisabled=p(tt,{optional:!0})==="NoopAnimations";_changeDetectorRef=p(xe);_globalModel=p(fu);_dateAdapter=p(Pn);_ngZone=p(ie);_rangeSelectionStrategy=p(TR,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new z;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(p(yt).load(eo),this._closeButtonText=p(ac).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,n=p(It);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 uo;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=S({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&me(bw,5),n&2){let r;q(r=Y())&&(o._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(n,o){n&2&&(Vt(o.color?"mat-"+o.color:""),ee("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","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){if(n&1&&(l(0,"div",0)(1,"mat-calendar",1),b("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(),E(2,hq,0,0,"ng-template",2),l(3,"button",3),b("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),h(4),d()()),n&2){let r;ee("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),ne("aria-modal",!0)("aria-labelledby",(r=o._dialogLabelId)!==null&&r!==void 0?r:void 0),u(),Vt(o.datepicker.panelClass),_("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),u(),_("cdkPortalOutlet",o._actionsPortal),u(),ee("cdk-visually-hidden",!o._closeButtonFocused),_("color",o.color||"primary"),u(),de(o._closeButtonText)}},dependencies:[Ty,bw,Kn,De],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}} -`],encapsulation:2,changeDetection:0})}return t})(),SR=(()=>{class t{_overlay=p(kt);_viewContainerRef=p(Rt);_dateAdapter=p(Pn,{optional:!0});_dir=p(Pt,{optional:!0});_model=p(fu);_scrollStrategy=p(RR);_inputStateChanges=be.EMPTY;_document=p(he);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;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 k;monthSelected=new k;viewChanged=new k(!0);dateClass;openedStream=new k;closedStream=new k;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=aI(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=p(ut).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;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new z;_injector=p(Ie);_changeDetectorRef=p(xe);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 Fl&&(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=Ji(),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(wt(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 ri(OR,this._viewContainerRef),o=this._overlayRef=this._overlay.create(new si({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?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`}));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||Ht(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=this._overlay.position().flexibleConnectedTo(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 _t(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(Ke(o=>o.keyCode===27&&!Et(o)||this.datepickerInput&&Et(o,"altKey")&&o.keyCode===38&&n.every(r=>!Et(o,r)))))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",$],disabled:[2,"disabled","disabled",$],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",$],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",$]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Be]})}return t})(),Bg=(()=>{class t extends SR{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275cmp=S({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ce([MR,{provide:SR,useExisting:t}]),_e],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})(),oc=class{target;targetElement;value;constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value}},Mq=(()=>{class t{_elementRef=p(Z);_dateAdapter=p(Pn,{optional:!0});_dateFormats=p(fa,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_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 k;dateInput=new k;stateChanges=new z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=be.EMPTY;_localeSubscription=be.EMPTY;_pendingValue;_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 oc(this,this._elementRef.nativeElement)),this.dateChange.emit(new oc(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){Tq(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)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let n=["ctrlKey","shiftKey","metaKey"];Et(e,"altKey")&&e.keyCode===40&&n.every(r=>!Et(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let n=this._lastValueValid,o=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let r=!this._dateAdapter.sameDate(o,this.value);!o||r?this._cvaOnChange(o):(e&&!this.value&&this._cvaOnChange(o),n!==this._lastValueValid&&this._validatorOnChange()),r&&(this._assignValue(o),this.dateInput.emit(new oc(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new oc(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){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let n=this._getDateFilter();return!n||n(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",$]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Be]})}return t})();function Tq(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 Iq={provide:mi,useExisting:en(()=>sc),multi:!0},kq={provide:oo,useExisting:en(()=>sc),multi:!0},sc=(()=>{class t extends Mq{_formField=p(ao,{optional:!0});_closedSubscription=be.EMPTY;_openedSubscription=be.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=yi(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;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;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;constructor(){super(),this._validator=ir.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=B({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&b("input",function(a){return o._onInput(a.target.value)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(a){return o._onKeydown(a)}),n&2&&(bn("disabled",o.disabled),ne("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:[Ce([Iq,kq,{provide:ug,useExisting:t}]),_e]})}return t})(),Aq=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),gu=(()=>{class t{_intl=p(ac);_changeDetectorRef=p(xe);_stateChanges=be.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=p(new Nn("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:ae(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:ae(),o=this.datepicker?_t(this.datepicker.openedStream,this.datepicker.closedStream):ae();this._stateChanges.unsubscribe(),this._stateChanges=_t(this._intl.changes,e,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,r){if(n&1&&je(r,Aq,5),n&2){let a;q(a=Y())&&(o._customIcon=a.first)}},viewQuery:function(n,o){if(n&1&&me(fq,5),n&2){let r;q(r=Y())&&(o._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&b("click",function(a){return o._open(a)}),n&2&&(ne("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),ee("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",$],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Be],ngContentSelectors:_q,decls:4,vars:7,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(n,o){n&1&&(Le(gq),l(0,"button",1,0),E(2,vq,2,0,":svg:svg",2),ce(3),d()),n&2&&(_("disabled",o.disabled)("disableRipple",o.disableRipple),ne("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("tabindex",o.disabled?-1:o.tabIndex)("aria-expanded",o.datepicker?o.datepicker.opened:null),u(2),I(o._customIcon?-1:2))},dependencies:[On],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-on-surface-variant))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}} -`],encapsulation:2,changeDetection:0})}return t})();var PR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[ac,Eq],imports:[nr,jn,us,Si,fe,OR,gu,AR,Li]})}return t})();function Rq(t,i){t&1&&(l(0,"uds-translate"),h(1,"Edit rule"),d())}function Oq(t,i){t&1&&(l(0,"uds-translate"),h(1,"New rule"),d())}function Pq(t,i){if(t&1&&(l(0,"mat-option",9),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.value," ")}}function Fq(t,i){if(t&1&&(l(0,"mat-option",9),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.value," ")}}function Nq(t,i){if(t&1&&(l(0,"mat-option",9),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.value," ")}}function Lq(t,i){if(t&1){let e=A();l(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),h(3,"Week days"),d()(),l(4,"mat-select",19),W("ngModelChange",function(o){C(e);let r=g();return G(r.wDays,o)||(r.wDays=o),w(o)}),oe(5,Nq,2,2,"mat-option",9,le),d()()}if(t&2){let e=g();u(4),H("ngModel",e.wDays),u(),re(e.weekDays)}}function Vq(t,i){if(t&1){let e=A();l(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),h(3,"Repeat every"),d()(),l(4,"input",7),W("ngModelChange",function(o){C(e);let r=g();return G(r.rule.interval,o)||(r.rule.interval=o),w(o)}),d(),l(5,"div",20),h(6),d()()}if(t&2){let e=g();u(4),H("ngModel",e.rule.interval),u(2),F("\xA0",e.frequency(),"")}}var jg={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")]},zg={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},NR=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],LR=(t,i=!1)=>{let e=new Array;for(let n=0;n<7;n++)t&1&&e.push(NR[n].substr(0,i?100:3)),t>>=1;return e.length?e.join(", "):django.gettext("(no days)")},VR=t=>{t.frequency==="WEEKDAYS"?t.interval=LR(t.interval):t.interval=t.interval+" "+jg[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+zg[t.duration_unit]},Cw=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.dunits=Object.keys(zg).map(a=>({id:a,value:zg[a]})),this.freqs=Object.keys(jg).map(a=>({id:a,value:jg[a][2]})),this.weekDays=NR.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=zy(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+=" "+LR(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")+" "+da(n,r),this.rule.end?e+=" "+django.gettext("until")+" "+da(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+" "+zg[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)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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=A();l(0,"h4",2),E(1,Rq,2,0,"uds-translate"),dt(2,"notEmpty"),E(3,Oq,2,0,"uds-translate"),dt(4,"isEmpty"),d(),l(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),h(10,"Name"),d()(),l(11,"input",4),W("ngModelChange",function(s){return C(r),G(o.rule.name,s)||(o.rule.name=s),w(s)}),d()(),l(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),h(15,"Comments"),d()(),l(16,"input",4),W("ngModelChange",function(s){return C(r),G(o.rule.comments,s)||(o.rule.comments=s),w(s)}),d()(),l(17,"h3")(18,"uds-translate"),h(19,"Event"),d()(),l(20,"mat-form-field",5)(21,"mat-label")(22,"uds-translate"),h(23,"Start time"),d()(),l(24,"input",6),W("ngModelChange",function(s){return C(r),G(o.startTime,s)||(o.startTime=s),w(s)}),d()(),l(25,"mat-form-field",5)(26,"mat-label")(27,"uds-translate"),h(28,"Duration"),d()(),l(29,"input",7),W("ngModelChange",function(s){return C(r),G(o.rule.duration,s)||(o.rule.duration=s),w(s)}),d()(),l(30,"mat-form-field",5)(31,"mat-label")(32,"uds-translate"),h(33,"Duration units"),d()(),l(34,"mat-select",8),W("ngModelChange",function(s){return C(r),G(o.rule.duration_unit,s)||(o.rule.duration_unit=s),w(s)}),oe(35,Pq,2,2,"mat-option",9,le),d()(),l(37,"h3"),h(38," Repetition "),d(),l(39,"mat-form-field",10)(40,"mat-label")(41,"uds-translate"),h(42," Start date "),d()(),l(43,"input",11),W("ngModelChange",function(s){return C(r),G(o.startDate,s)||(o.startDate=s),w(s)}),d(),T(44,"mat-datepicker-toggle",12)(45,"mat-datepicker",null,0),d(),l(47,"mat-form-field",10)(48,"mat-label")(49,"uds-translate"),h(50," Repeat until date "),d()(),l(51,"input",13),W("ngModelChange",function(s){return C(r),G(o.endDate,s)||(o.endDate=s),w(s)}),d(),T(52,"mat-datepicker-toggle",12)(53,"mat-datepicker",null,1),d(),l(55,"div",14)(56,"mat-form-field",10)(57,"mat-label")(58,"uds-translate"),h(59,"Frequency"),d()(),l(60,"mat-select",15),W("ngModelChange",function(s){return C(r),G(o.rule.frequency,s)||(o.rule.frequency=s),w(s)}),b("valueChange",function(){return C(r),w(o.rule.interval=1)}),oe(61,Fq,2,2,"mat-option",9,le),d()(),E(63,Lq,7,1,"mat-form-field",10)(64,Vq,7,2,"mat-form-field",10),d(),l(65,"h3")(66,"uds-translate"),h(67,"Summary"),d()(),l(68,"div",16),h(69),d()()(),l(70,"mat-dialog-actions")(71,"button",17)(72,"uds-translate"),h(73,"Cancel"),d()(),l(74,"button",18),b("click",function(){return C(r),w(o.save())}),l(75,"uds-translate"),h(76,"Ok"),d()()()}if(n&2){let r=Ge(46),a=Ge(54);u(),I(vt(2,19,o.rule.id)?1:-1),u(2),I(vt(4,21,o.rule.id)?3:-1),u(8),H("ngModel",o.rule.name),u(5),H("ngModel",o.rule.comments),u(8),H("ngModel",o.startTime),u(5),H("ngModel",o.rule.duration),u(5),H("ngModel",o.rule.duration_unit),u(),re(o.dunits),u(8),_("matDatepicker",r),H("ngModel",o.startDate),u(),_("for",r),u(7),_("matDatepicker",a),H("ngModel",o.endDate),_("placeholder",o.FOREVER_STRING),u(),_("for",a),u(8),H("ngModel",o.rule.frequency),u(),re(o.freqs),u(2),I(o.rule.frequency==="WEEKDAYS"?63:-1),u(),I(o.rule.frequency!=="WEEKDAYS"&&o.rule.frequency!=="NEVER"?64:-1),u(5),F(" ",o.summary()," "),u(5),_("disabled",o.updateRuleData()!==null||o.rule.name==="")}},dependencies:[st,ji,we,Se,De,jt,$e,Ye,qe,ge,Ae,Ui,mt,ht,Ze,Bg,sc,gu,ue,KA,mn],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-mdc-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-mdc-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#23238580;color:#fff}"]})}}return t})();var Bq=t=>["/pools","calendars",t];function jq(t,i){t&1&&(l(0,"uds-translate"),h(1,"Rules"),d())}function zq(t,i){if(t&1){let e=A();l(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),E(4,jq,2,0,"ng-template",8),l(5,"div",9)(6,"uds-table",10),b("newAction",function(o){C(e);let r=g();return w(r.onNewRule(o))})("editAction",function(o){C(e);let r=g();return w(r.onEditRule(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteRule(o))}),d()()()()()()}if(t&2){let e=g();u(2),_("@.disabled",!0),u(4),_("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 BR=(()=>{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){Cw.launch(this.api,this.calendarRules).subscribe(()=>e.table.reloadPage())}onEditRule(e){Cw.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){VR(e)}static{this.\u0275fac=function(n){return new(n||t)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),h(4,"arrow_back"),d()(),h(5," \xA0"),T(6,"img",4),h(7),d(),E(8,zq,7,7,"div",5),dt(9,"notEmpty"),d()),n&2&&(u(2),_("routerLink",Qn(6,Bq,o.calendar?o.calendar.id:"")),u(4),_("src",o.api.staticURL("admin/img/icons/calendars.png"),Ee),u(),F(" ",o.calendar==null?null:o.calendar.name," "),u(),I(vt(9,4,o.calendar)?8:-1))},dependencies:[ln,Yt,Qt,Xt,ue,Me,mn],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 Uq='event'+django.gettext("Set time mark")+"",ww=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"timemark",html:Uq,type:ot.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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"uds-table",0),b("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&&_("rest",o.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)("onItem",o.processElement)},dependencies:[Me],encapsulation:2})}}return t})();var Hq=t=>["/pools","accounts",t];function Wq(t,i){t&1&&(l(0,"uds-translate"),h(1,"Account usage"),d())}function Gq(t,i){if(t&1){let e=A();l(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),E(4,Wq,2,0,"ng-template",8),l(5,"div",9)(6,"uds-table",10),b("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteUsage(o))}),d()()()()()()}if(t&2){let e=g();u(2),_("@.disabled",!0),u(4),_("rest",e.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","account-d-usage"+e.account.id)}}var jR=(()=>{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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),h(4,"arrow_back"),d()(),h(5," \xA0"),T(6,"img",4),h(7),d(),E(8,Gq,7,6,"div",5),dt(9,"notEmpty"),d()),n&2&&(u(2),_("routerLink",Qn(6,Hq,o.account?o.account.id:"")),u(4),_("src",o.api.staticURL("admin/img/icons/accounts.png"),Ee),u(),F(" ",o.account==null?null:o.account.name," "),u(),I(vt(9,4,o.account)?8:-1))},dependencies:[ln,Yt,Qt,Xt,ue,Me,mn],encapsulation:2})}}return t})();function $q(t,i){t&1&&(l(0,"uds-translate"),h(1,"New image for"),d())}function qq(t,i){t&1&&(l(0,"uds-translate"),h(1,"Edit for"),d())}var xw=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new k(!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)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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=A();l(0,"h4",1),E(1,$q,2,0,"uds-translate")(2,qq,2,0,"uds-translate"),d(),l(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),h(8,"Image name"),d()(),l(9,"input",3),W("ngModelChange",function(s){return C(r),G(o.image.name,s)||(o.image.name=s),w(s)}),d()(),l(10,"input",4,0),b("change",function(s){return C(r),w(o.onFileChanged(s))}),d(),l(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),h(15,"Image (click to change)"),d()(),l(16,"input",5),b("click",function(){C(r);let s=Ge(11);return w(s.click())}),d(),l(17,"div",6),b("click",function(){C(r);let s=Ge(11);return w(s.click())}),T(18,"div",7),d()(),l(19,"div",8)(20,"uds-translate"),h(21,' For optimal results, use "squared" images. '),d(),l(22,"uds-translate"),h(23," The image will be resized on upload to "),d(),h(24),d()()(),l(25,"mat-dialog-actions")(26,"button",9)(27,"uds-translate"),h(28,"Cancel"),d()(),l(29,"button",10),b("click",function(){return C(r),w(o.save())}),l(30,"uds-translate"),h(31,"Ok"),d()()()}n&2&&(u(),I(o.image.id?-1:1),u(),I(o.image.id?2:-1),u(7),H("ngModel",o.image.name),u(7),_("hidden",!0),u(2),_("ngStyle",o.background()),u(6),wi(" ",o.api.config.image_size[0],"x",o.api.config.image_size[1]," "))},dependencies:[Zc,st,we,Se,De,jt,$e,Ye,qe,ge,Ae,mt,ue],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 Dw=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){xw.launch(this.api).subscribe(()=>e.table.reloadPage())}onEdit(e){xw.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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"uds-table",0),b("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&&_("rest",o.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Me],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]})}}return t})();var zR=Mu(ag());var Yq='assessment'+django.gettext("Generate report")+"",UR=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.customButtons=[{id:"genreport",html:Yq,type:ot.SINGLE_SELECT}]}ngOnInit(){}generateReport(e){return V(this,null,function*(){let n=new qt;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,c=new Uint8Array(s);for(let f=0;f{(0,zR.saveAs)(m,r.filename,{autoBom:!1})})})}static{this.\u0275fac=function(n){return new(n||t)(y(te),y(j))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-reports"]],standalone:!1,decls:1,vars:6,consts:[["icon","reports",3,"customButtonAction","rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("customButtonAction",function(a){return o.generateReport(a)}),d()),n&2&&_("rest",o.rest.reports)("multiSelect",!1)("allowExport",!1)("hasPermissions",!1)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Me],styles:[".mat-column-group{max-width:16rem} .mat-column-name{max-width:32rem}"]})}}return t})();var HR=(()=>{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)(y(j),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div")(1,"uds-table",0),b("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(u(),_("rest",o.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Me],encapsulation:2})}}return t})();function Qq(t,i){if(t&1&&h(0),t&2){let e=g().$implicit;F(" ",e," ")}}function Kq(t,i){if(t&1){let e=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),h(3),d(),l(4,"input",11),W("ngModelChange",function(o){C(e);let r=g(2).$implicit,a=g().$implicit,s=g(2);return G(s.config[a][r].value,o)||(s.config[a][r].value=o),w(o)}),d()()()}if(t&2){let e=g(2).$implicit,n=g().$implicit,o=g(2);u(3),de(e),u(),_("type",o.config[n][e].crypt?"password":"text"),H("ngModel",o.config[n][e].value),_("matTooltip",o.config[n][e].help)}}function Zq(t,i){if(t&1){let e=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),h(3),d(),l(4,"textarea",12),W("ngModelChange",function(o){C(e);let r=g(2).$implicit,a=g().$implicit,s=g(2);return G(s.config[a][r].value,o)||(s.config[a][r].value=o),w(o)}),d()()()}if(t&2){let e=g(2).$implicit,n=g().$implicit,o=g(2);u(3),de(e),u(),H("ngModel",o.config[n][e].value),_("matTooltip",o.config[n][e].help)}}function Xq(t,i){if(t&1){let e=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),h(3),d(),l(4,"input",13),W("ngModelChange",function(o){C(e);let r=g(2).$implicit,a=g().$implicit,s=g(2);return G(s.config[a][r].value,o)||(s.config[a][r].value=o),w(o)}),d()()()}if(t&2){let e=g(2).$implicit,n=g().$implicit,o=g(2);u(3),de(e),u(),H("ngModel",o.config[n][e].value),_("matTooltip",o.config[n][e].help)}}function Jq(t,i){if(t&1){let e=A();l(0,"div")(1,"div",14)(2,"mat-slide-toggle",15),W("ngModelChange",function(o){C(e);let r=g(2).$implicit,a=g().$implicit,s=g(2);return G(s.config[a][r].value,o)||(s.config[a][r].value=o),w(o)}),h(3),d()()()}if(t&2){let e=g(2).$implicit,n=g().$implicit,o=g(2);u(2),H("ngModel",o.config[n][e].value),_("matTooltip",o.config[n][e].help),u(),F(" ",e," ")}}function eY(t,i){if(t&1&&(l(0,"mat-option",16),h(1),d()),t&2){let e=i.$implicit;_("value",e),u(),F(" ",e," ")}}function tY(t,i){if(t&1){let e=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),h(3),d(),l(4,"mat-select",15),W("ngModelChange",function(o){C(e);let r=g(2).$implicit,a=g().$implicit,s=g(2);return G(s.config[a][r].value,o)||(s.config[a][r].value=o),w(o)}),oe(5,eY,2,2,"mat-option",16,le),d()()()}if(t&2){let e=g(2).$implicit,n=g().$implicit,o=g(2);u(3),F(" ",e," "),u(),H("ngModel",o.config[n][e].value),_("matTooltip",o.config[n][e].help),u(),re(o.config[n][e].params)}}function nY(t,i){if(t&1){let e=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),h(3),d(),l(4,"input",17),W("ngModelChange",function(o){C(e);let r=g(2).$implicit,a=g().$implicit,s=g(2);return G(s.config[a][r].value,o)||(s.config[a][r].value=o),w(o)}),d()()()}if(t&2){let e=g(2).$implicit,n=g().$implicit,o=g(2);u(3),de(e),u(),H("ngModel",o.config[n][e].value),_("matTooltip",o.config[n][e].help)}}function iY(t,i){}function oY(t,i){if(t&1){let e=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),h(3),d(),l(4,"input",18),W("ngModelChange",function(o){C(e);let r=g(2).$implicit,a=g().$implicit,s=g(2);return G(s.config[a][r].value,o)||(s.config[a][r].value=o),w(o)}),d()()()}if(t&2){let e=g(2).$implicit,n=g().$implicit,o=g(2);u(3),de(e),u(),H("ngModel",o.config[n][e].value),_("matTooltip",o.config[n][e].help)}}function rY(t,i){if(t&1){let e=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),h(3),d(),l(4,"input",19),W("ngModelChange",function(o){C(e);let r=g(2).$implicit,a=g().$implicit,s=g(2);return G(s.config[a][r].value,o)||(s.config[a][r].value=o),w(o)}),d()()()}if(t&2){let e=g(2).$implicit,n=g().$implicit,o=g(2);u(3),de(e),u(),H("ngModel",o.config[n][e].value),_("matTooltip",o.config[n][e].help)}}function aY(t,i){if(t&1&&E(0,Kq,5,4,"div")(1,Zq,5,3,"div")(2,Xq,5,3,"div")(3,Jq,4,3,"div")(4,tY,7,3,"div")(5,nY,5,3,"div")(6,iY,0,0)(7,oY,5,3,"div")(8,rY,5,3,"div"),t&2){let e,n=g().$implicit,o=g().$implicit,r=g(2);I((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 sY(t,i){if(t&1&&(l(0,"div",10),E(1,aY,9,1),d()),t&2){let e=i.$implicit,n=g().$implicit,o=g(2);u(),I(o.config[n][e]?1:-1)}}function lY(t,i){if(t&1&&(l(0,"mat-tab"),E(1,Qq,1,1,"ng-template",8),l(2,"div",9),oe(3,sY,2,1,"div",10,le),d()()),t&2){let e=i.$implicit,n=g(2);u(3),re(n.configElements(e))}}function cY(t,i){if(t&1){let e=A();l(0,"div",3)(1,"div",4)(2,"mat-tab-group",5),oe(3,lY,5,0,"mat-tab",null,le),d(),l(5,"div",6)(6,"button",7),b("click",function(){C(e);let o=g();return w(o.save())}),l(7,"uds-translate"),h(8,"Save"),d()()()()()}if(t&2){let e=g();u(2),_("@.disabled",!0),u(),re(e.sections())}}var WR=["UDS","Security"],GR=["UDS ID"],$R=(()=>{class t{constructor(e,n){this.rest=e,this.api=n}ngOnInit(){this.rest.configuration.overview().then(e=>{this.config=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];r.type===7?r.value='\u20ACfa{}#42123~#||23|\xDF\xF0\u0111\xE6"':r.type===3&&(r.value=!!["1",1,!0].includes(r.value)),r.original_value=r.value}}})}sections(){let e=[];for(let n in this.config)this.config.hasOwnProperty(n)&&!WR.includes(n)&&e.push(n);return e=e.sort((n,o)=>n.localeCompare(o)),e.unshift.apply(e,WR),e}configElements(e){let n=[],o=this.config[e];if(o)for(let r in o)o.hasOwnProperty(r)&&!(e==="UDS"&&GR.includes(r))&&n.push(r);return n=n.sort((r,a)=>r.localeCompare(a)),e==="UDS"&&n.unshift.apply(n,GR),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)(y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"div",1),T(2,"img",2),h(3,"\xA0"),l(4,"uds-translate"),h(5,"UDS Configuration"),d()(),E(6,cY,9,1,"div",3),dt(7,"notEmpty"),d()),n&2&&(u(2),_("src",o.api.staticURL("admin/img/icons/configuration.png"),Ee),u(4),I(vt(7,2,o.config)?6:-1))},dependencies:[st,ji,we,Se,De,To,ge,Ae,mt,ht,Ze,Yt,Qt,Xt,rr,ue,mn],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 qR=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){return V(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)(y(j),y(ke),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div")(1,"uds-table",0),b("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(u(),_("rest",o.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Me],encapsulation:2})}}return t})();var YR=(()=>{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)(y(j),y(ke),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div")(1,"uds-table",0),b("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(u(),_("rest",o.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Me],encapsulation:2})}}return t})();var dY=[{path:"",canActivate:[Rk],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Vk},{path:"services/providers",component:$C},{path:"services/providers/:provider/detail",component:qC},{path:"services/providers/:provider",component:$C},{path:"services/providers/:provider/detail/:service",component:qC},{path:"services/servers",component:YC},{path:"services/servers/:server/detail",component:nR},{path:"services/servers/:server",component:YC},{path:"authenticators",component:QC},{path:"authenticators/:authenticator/detail",component:Ag},{path:"authenticators/:authenticator",component:QC},{path:"authenticators/:authenticator/detail/groups/:group",component:Ag},{path:"authenticators/:authenticator/detail/users/:user",component:Ag},{path:"mfas",component:KC},{path:"mfas/:mfa",component:KC},{path:"osmanagers",component:tw},{path:"osmanagers/:osmanager",component:tw},{path:"connectivity/transports",component:nw},{path:"connectivity/transports/:transport",component:nw},{path:"connectivity/networks",component:iw},{path:"connectivity/networks/:network",component:iw},{path:"connectivity/tunnels",component:ow},{path:"connectivity/tunnels/:tunnel",component:ow},{path:"connectivity/tunnels/:tunnel/detail",component:dR},{path:"pools/service-pools",component:rw},{path:"pools/service-pools/:pool",component:rw},{path:"pools/service-pools/:pool/detail",component:Lg},{path:"pools/meta-pools",component:lw},{path:"pools/meta-pools/:metapool",component:lw},{path:"pools/meta-pools/:metapool/detail",component:bR},{path:"pools/pool-groups",component:dw},{path:"pools/pool-groups/:poolgroup",component:dw},{path:"pools/calendars",component:uw},{path:"pools/calendars/:calendar",component:uw},{path:"pools/calendars/:calendar/detail",component:BR},{path:"pools/accounts",component:ww},{path:"pools/accounts/:account",component:ww},{path:"pools/accounts/:account/detail",component:jR},{path:"tools/gallery",component:Dw},{path:"tools/gallery/:image",component:Dw},{path:"tools/reports",component:UR},{path:"tools/notifiers",component:HR},{path:"tools/tokens/actor",component:qR},{path:"tools/tokens/server",component:YR},{path:"tools/configuration",component:$R}]}],QR=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=X({imports:[Ch.forRoot(dY,{}),Ch]})}}return t})();var ft=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}(ft||{}),Ao="*";function KR(t,i=null){return{type:ft.Sequence,steps:t,options:i}}function Sw(t){return{type:ft.Style,styles:t,offset:null}}var Fr=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}},lc=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}},_u="!";function ZR(t){return new Q(3e3,!1)}function uY(){return new Q(3100,!1)}function mY(){return new Q(3101,!1)}function pY(t){return new Q(3001,!1)}function hY(t){return new Q(3003,!1)}function fY(t){return new Q(3004,!1)}function JR(t,i){return new Q(3005,!1)}function eO(){return new Q(3006,!1)}function tO(){return new Q(3007,!1)}function nO(t,i){return new Q(3008,!1)}function iO(t){return new Q(3002,!1)}function oO(t,i,e,n,o){return new Q(3010,!1)}function rO(){return new Q(3011,!1)}function aO(){return new Q(3012,!1)}function sO(){return new Q(3200,!1)}function lO(){return new Q(3202,!1)}function cO(){return new Q(3013,!1)}function dO(t){return new Q(3014,!1)}function uO(t){return new Q(3015,!1)}function mO(t){return new Q(3016,!1)}function pO(t,i){return new Q(3404,!1)}function gY(t){return new Q(3502,!1)}function hO(t){return new Q(3503,!1)}function fO(){return new Q(3300,!1)}function gO(t){return new Q(3504,!1)}function _O(t){return new Q(3301,!1)}function vO(t,i){return new Q(3302,!1)}function bO(t){return new Q(3303,!1)}function yO(t,i){return new Q(3400,!1)}function CO(t){return new Q(3401,!1)}function wO(t){return new Q(3402,!1)}function xO(t,i){return new Q(3505,!1)}function Nr(t){switch(t.length){case 0:return new Fr;case 1:return t[0];default:return new lc(t)}}function Iw(t,i,e=new Map,n=new Map){let o=[],r=[],a=-1,s=null;if(i.forEach(c=>{let m=c.get("offset"),f=m==a,v=f&&s||new Map;c.forEach((D,x)=>{let M=x,O=D;if(x!=="offset")switch(M=t.normalizePropertyName(M,o),O){case _u:O=e.get(x);break;case Ao:O=n.get(x);break;default:O=t.normalizeStyleValue(x,M,O,o);break}v.set(M,O)}),f||r.push(v),s=v,a=m}),o.length)throw gY(o);return r}function Ug(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&Ew(e,"start",t)));break;case"done":t.onDone(()=>n(e&&Ew(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&Ew(e,"destroy",t)));break}}function Ew(t,i,e){let n=e.totalTime,o=!!e.disabled,r=Hg(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 Hg(t,i,e,n,o="",r=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:r,disabled:!!a}}function Ii(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function kw(t){let i=t.indexOf(":"),e=t.substring(1,i),n=t.slice(i+1);return[e,n]}var _Y=typeof document>"u"?null:document.documentElement;function Wg(t){let i=t.parentNode||t.host||null;return i===_Y?null:i}function vY(t){return t.substring(1,6)=="ebkit"}var Ts=null,XR=!1;function DO(t){Ts||(Ts=bY()||{},XR=Ts.style?"WebkitAppearance"in Ts.style:!1);let i=!0;return Ts.style&&!vY(t)&&(i=t in Ts.style,!i&&XR&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Ts.style)),i}function bY(){return typeof document<"u"?document.body:null}function Aw(t,i){for(;i;){if(i===t)return!0;i=Wg(i)}return!1}function Rw(t,i,e){if(e)return Array.from(t.querySelectorAll(i));let n=t.querySelector(i);return n?[n]:[]}var yY=1e3,Ow="{{",CY="}}",Pw="ng-enter",Gg="ng-leave",vu="ng-trigger",bu=".ng-trigger",Fw="ng-animating",$g=".ng-animating";function ar(t){if(typeof t=="number")return t;let i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:Mw(parseFloat(i[1]),i[2])}function Mw(t,i){switch(i){case"s":return t*yY;default:return t}}function yu(t,i,e){return t.hasOwnProperty("duration")?t:wY(t,i,e)}function wY(t,i,e){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,o,r=0,a="";if(typeof t=="string"){let s=t.match(n);if(s===null)return i.push(ZR(t)),{duration:0,delay:0,easing:""};o=Mw(parseFloat(s[1]),s[2]);let c=s[3];c!=null&&(r=Mw(parseFloat(c),s[4]));let m=s[5];m&&(a=m)}else o=t;if(!e){let s=!1,c=i.length;o<0&&(i.push(uY()),s=!0),r<0&&(i.push(mY()),s=!0),s&&i.splice(c,0,ZR(t))}return{duration:o,delay:r,easing:a}}function SO(t){return t.length?t[0]instanceof Map?t:t.map(i=>new Map(Object.entries(i))):[]}function Ro(t,i,e){i.forEach((n,o)=>{let r=qg(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=n})}function ya(t,i){i.forEach((e,n)=>{let o=qg(n);t.style[o]=""})}function cc(t){return Array.isArray(t)?t.length==1?t[0]:KR(t):t}function EO(t,i,e){let n=i.params||{},o=Nw(t);o.length&&o.forEach(r=>{n.hasOwnProperty(r)||e.push(pY(r))})}var Tw=new RegExp(`${Ow}\\s*(.+?)\\s*${CY}`,"g");function Nw(t){let i=[];if(typeof t=="string"){let e;for(;e=Tw.exec(t);)i.push(e[1]);Tw.lastIndex=0}return i}function dc(t,i,e){let n=`${t}`,o=n.replace(Tw,(r,a)=>{let s=i[a];return s==null&&(e.push(hY(a)),s=""),s.toString()});return o==n?t:o}var xY=/-+([a-z0-9])/g;function qg(t){return t.replace(xY,(...i)=>i[1].toUpperCase())}function MO(t,i){return t===0||i===0}function TO(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,Yg(t,s)))}}return i}function ki(t,i,e){switch(i.type){case ft.Trigger:return t.visitTrigger(i,e);case ft.State:return t.visitState(i,e);case ft.Transition:return t.visitTransition(i,e);case ft.Sequence:return t.visitSequence(i,e);case ft.Group:return t.visitGroup(i,e);case ft.Animate:return t.visitAnimate(i,e);case ft.Keyframes:return t.visitKeyframes(i,e);case ft.Style:return t.visitStyle(i,e);case ft.Reference:return t.visitReference(i,e);case ft.AnimateChild:return t.visitAnimateChild(i,e);case ft.AnimateRef:return t.visitAnimateRef(i,e);case ft.Query:return t.visitQuery(i,e);case ft.Stagger:return t.visitStagger(i,e);default:throw fY(i.type)}}function Yg(t,i){return window.getComputedStyle(t)[i]}var Jw=(()=>{class t{validateStyleProperty(e){return DO(e)}containsElement(e,n){return Aw(e,n)}getParentElement(e){return Wg(e)}query(e,n,o){return Rw(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,r,a,s=[],c){return new Fr(o,r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),ks=class{static NOOP=new Jw},As=class{};var DY=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"]),Jg=class extends As{normalizePropertyName(i,e){return qg(i)}normalizeStyleValue(i,e,n,o){let r="",a=n.toString().trim();if(DY.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(JR(i,n))}return a+r}};var e_="*";function SY(t,i){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>EY(n,e,i)):e.push(t),e}function EY(t,i,e){if(t[0]==":"){let c=MY(t,e);if(typeof c=="function"){i.push(c);return}t=c}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(uO(t)),i;let o=n[1],r=n[2],a=n[3];i.push(IO(o,a));let s=o==e_&&a==e_;r[0]=="<"&&!s&&i.push(IO(a,o))}function MY(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 Qg=new Set(["true","1"]),Kg=new Set(["false","0"]);function IO(t,i){let e=Qg.has(t)||Kg.has(t),n=Qg.has(i)||Kg.has(i);return(o,r)=>{let a=t==e_||t==o,s=i==e_||i==r;return!a&&e&&typeof o=="boolean"&&(a=o?Qg.has(t):Kg.has(t)),!s&&n&&typeof r=="boolean"&&(s=r?Qg.has(i):Kg.has(i)),a&&s}}var BO=":self",TY=new RegExp(`s*${BO}s*,?`,"g");function jO(t,i,e,n){return new Uw(t).build(i,e,n)}var kO="",Uw=class{_driver;constructor(i){this._driver=i}build(i,e,n){let o=new Hw(e);return this._resetContextStyleTimingState(o),ki(this,cc(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector=kO,i.collectedStyles=new Map,i.collectedStyles.set(kO,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(eO()),i.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==ft.State){let c=s,m=c.name;m.toString().split(/\s*,\s*/).forEach(f=>{c.name=f,r.push(this.visitState(c,e))}),c.name=m}else if(s.type==ft.Transition){let c=this.visitTransition(s,e);n+=c.queryCount,o+=c.depCount,a.push(c)}else e.errors.push(tO())}),{type:ft.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(c=>{Nw(c).forEach(m=>{a.hasOwnProperty(m)||r.add(m)})})}),r.size&&e.errors.push(nO(i.name,[...r.values()]))}return{type:ft.State,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;let n=ki(this,cc(i.animation),e),o=SY(i.expr,e.errors);return{type:ft.Transition,matchers:o,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Is(i.options)}}visitSequence(i,e){return{type:ft.Sequence,steps:i.steps.map(n=>ki(this,n,e)),options:Is(i.options)}}visitGroup(i,e){let n=e.currentTime,o=0,r=i.steps.map(a=>{e.currentTime=n;let s=ki(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:ft.Group,steps:r,options:Is(i.options)}}visitAnimate(i,e){let n=RY(i.timings,e.errors);e.currentAnimateTimings=n;let o,r=i.styles?i.styles:Sw({});if(r.type==ft.Keyframes)o=this.visitKeyframes(r,e);else{let a=i.styles,s=!1;if(!a){s=!0;let m={};n.easing&&(m.easing=n.easing),a=Sw(m)}e.currentTime+=n.duration+n.delay;let c=this.visitStyle(a,e);c.isEmptyStep=s,o=c}return e.currentAnimateTimings=null,{type:ft.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===Ao?n.push(s):e.errors.push(iO(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 c of s.values())if(c.toString().indexOf(Ow)>=0){r=!0;break}}}),{type:ft.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,c)=>{let m=e.collectedStyles.get(e.currentQuerySelector),f=m.get(c),v=!0;f&&(r!=o&&r>=f.startTime&&o<=f.endTime&&(e.errors.push(oO(c,f.startTime,f.endTime,r,o)),v=!1),r=f.startTime),v&&m.set(c,{startTime:r,endTime:o}),e.options&&EO(s,e.options,e.errors)})})}visitKeyframes(i,e){let n={type:ft.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(rO()),n;let o=1,r=0,a=[],s=!1,c=!1,m=0,f=i.steps.map(U=>{let Xe=this._makeStyleAst(U,e),gt=Xe.offset!=null?Xe.offset:AY(Xe.styles),pn=0;return gt!=null&&(r++,pn=Xe.offset=gt),c=c||pn<0||pn>1,s=s||pn0&&r{let gt=D>0?Xe==x?1:D*Xe:a[Xe],pn=gt*K;e.currentTime=M+O.delay+pn,O.duration=pn,this._validateStyleAst(U,e),U.offset=gt,n.styles.push(U)}),n}visitReference(i,e){return{type:ft.Reference,animation:ki(this,cc(i.animation),e),options:Is(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:ft.AnimateChild,options:Is(i.options)}}visitAnimateRef(i,e){return{type:ft.AnimateRef,animation:this.visitReference(i.animation,e),options:Is(i.options)}}visitQuery(i,e){let n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;let[r,a]=IY(i.selector);e.currentQuerySelector=n.length?n+" "+r:r,Ii(e.collectedStyles,e.currentQuerySelector,new Map);let s=ki(this,cc(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:ft.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:i.selector,options:Is(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(cO());let n=i.timings==="full"?{duration:0,delay:0,easing:"full"}:yu(i.timings,e.errors,!0);return{type:ft.Stagger,animation:ki(this,cc(i.animation),e),timings:n,options:null}}};function IY(t){let i=!!t.split(/\s*,\s*/).find(e=>e==BO);return i&&(t=t.replace(TY,"")),t=t.replace(/@\*/g,bu).replace(/@\w+/g,e=>bu+"-"+e.slice(1)).replace(/:animating/g,$g),[t,i]}function kY(t){return t?L({},t):null}var Hw=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 AY(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 RY(t,i){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let r=yu(t,i).duration;return Lw(r,0,"")}let e=t;if(e.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Lw(0,0,"");return r.dynamic=!0,r.strValue=e,r}let o=yu(e,i);return Lw(o.duration,o.delay,o.easing)}function Is(t){return t?(t=L({},t),t.params&&(t.params=kY(t.params))):t={},t}function Lw(t,i,e){return{duration:t,delay:i,easing:e}}function ex(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 wu=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()}},OY=1,PY=":enter",FY=new RegExp(PY,"g"),NY=":leave",LY=new RegExp(NY,"g");function zO(t,i,e,n,o,r=new Map,a=new Map,s,c,m=[]){return new Ww().buildKeyframes(t,i,e,n,o,r,a,s,c,m)}var Ww=class{buildKeyframes(i,e,n,o,r,a,s,c,m,f=[]){m=m||new wu;let v=new Gw(i,e,m,o,r,f,[]);v.options=c;let D=c.delay?ar(c.delay):0;v.currentTimeline.delayNextStep(D),v.currentTimeline.setStyles([a],null,v.errors,c),ki(this,n,v);let x=v.timelines.filter(M=>M.containsAnimation());if(x.length&&s.size){let M;for(let O=x.length-1;O>=0;O--){let K=x[O];if(K.element===e){M=K;break}}M&&!M.allowOnlyTimelineStyles()&&M.setStyles([s],null,v.errors,c)}return x.length?x.map(M=>M.buildKeyframes()):[ex(e,[],[],[],0,D,"",!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:ar(dc(r,o?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let r=e.currentTimeline.currentTime,a=n.duration!=null?ar(n.duration):null,s=n.delay!=null?ar(n.delay):null;return a!==0&&i.forEach(c=>{let m=e.appendInstructionToTimeline(c,a,s);r=Math.max(r,m.duration+m.delay)}),r}visitReference(i,e){e.updateOptions(i.options,!0),ki(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==ft.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=t_);let a=ar(r.delay);o.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>ki(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?ar(i.options.delay):0;i.steps.forEach(a=>{let s=e.createSubContext(i.options);r&&s.delayNextStep(r),ki(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?dc(n,e.params,e.errors):n;return yu(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==ft.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(c=>{let m=c.offset||0;s.forwardTime(m*r),s.setStyles(c.styles,c.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?ar(o.delay):0;r&&(e.previousNode.type===ft.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=t_);let a=n,s=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let c=null;s.forEach((m,f)=>{e.currentQueryIndex=f;let v=e.createSubContext(i.options,m);r&&v.delayNextStep(r),m===e.element&&(c=v.currentTimeline),ki(this,i.animation,v),v.currentTimeline.applyStylesToKeyframe();let D=v.currentTimeline.currentTime;a=Math.max(a,D)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),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),c=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":c=s-c;break;case"full":c=n.currentStaggerTime;break}let f=e.currentTimeline;c&&f.delayNextStep(c);let v=f.currentTime;ki(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-v+(o.startTime-n.currentTimeline.startTime)}},t_={},Gw=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=t_;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(i,e,n,o,r,a,s,c){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.currentTimeline=c||new n_(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=ar(n.duration)),n.delay!=null&&(o.delay=ar(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]=dc(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=t_,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 $w(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(FY,"."+this._enterClassName),i=i.replace(LY,"."+this._leaveClassName);let c=n!=1,m=this._driver.query(this.element,i,c);n!==0&&(m=n<0?m.slice(m.length+n,m.length):m.slice(0,n)),s.push(...m)}return!r&&s.length==0&&a.push(dO(e)),s}},n_=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+=OY,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||Ao),this._currentKeyframe.set(e,Ao);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);let r=o&&o.params||{},a=VY(i,this._globalTimelineStyles);for(let[s,c]of a){let m=dc(c,r,n);this._pendingStyles.set(s,m),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ao),this._updateStyle(s,m)}}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,c)=>{let m=new Map([...this._backFill,...s]);m.forEach((f,v)=>{f===_u?i.add(v):f===Ao&&e.add(v)}),n||m.set("offset",c/this.duration),o.push(m)});let r=[...i.values()],a=[...e.values()];if(n){let s=o[0],c=new Map(s);s.set("offset",0),c.set("offset",1),o=[s,c]}return ex(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}},$w=class extends n_{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,c=new Map(i[0]);c.set("offset",0),r.push(c);let m=new Map(i[0]);m.set("offset",AO(s)),r.push(m);let f=i.length-1;for(let v=1;v<=f;v++){let D=new Map(i[v]),x=D.get("offset"),M=e+x*n;D.set("offset",AO(M/a)),r.push(D)}n=a,e=0,o="",i=r}return ex(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}};function AO(t,i=3){let e=Math.pow(10,i-1);return Math.round(t*e)/e}function VY(t,i){let e=new Map,n;return t.forEach(o=>{if(o==="*"){n??=i.keys();for(let r of n)e.set(r,Ao)}else for(let[r,a]of o)e.set(r,a)}),e}function RO(t,i,e,n,o,r,a,s,c,m,f,v,D){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:r,toState:n,toStyles:a,timelines:s,queriedElements:c,preStyleProps:m,postStyleProps:f,totalTime:v,errors:D}}var Vw={},i_=class{_triggerName;ast;_stateStyles;constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return BY(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,c,m,f){let v=[],D=this.ast.options&&this.ast.options.params||Vw,x=s&&s.params||Vw,M=this.buildStyles(n,x,v),O=c&&c.params||Vw,K=this.buildStyles(o,O,v),U=new Set,Xe=new Map,gt=new Map,pn=o==="void",Lr={params:UO(O,D),delay:this.ast.options?.delay},Wi=f?[]:zO(i,e,this.ast.animation,r,a,M,K,Lr,m,v),Xn=0;return Wi.forEach(pi=>{Xn=Math.max(pi.duration+pi.delay,Xn)}),v.length?RO(e,this._triggerName,n,o,pn,M,K,[],[],Xe,gt,Xn,v):(Wi.forEach(pi=>{let Ca=pi.element,Rs=Ii(Xe,Ca,new Set);pi.preStyleProps.forEach(wa=>Rs.add(wa));let lx=Ii(gt,Ca,new Set);pi.postStyleProps.forEach(wa=>lx.add(wa)),Ca!==e&&U.add(Ca)}),RO(e,this._triggerName,n,o,pn,M,K,Wi,[...U.values()],Xe,gt,Xn))}};function BY(t,i,e,n,o){return t.some(r=>r(i,e,n,o))}function UO(t,i){let e=L({},i);return Object.entries(t).forEach(([n,o])=>{o!=null&&(e[n]=o)}),e}var qw=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=UO(i,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,s)=>{a&&(a=dc(a,o,e));let c=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,c,a,e),n.set(s,a)})}),n}};function jY(t,i,e){return new Yw(t,i,e)}var Yw=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 qw(o.style,r,n))}),OO(this.states,"true","1"),OO(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new i_(i,o,this.states))}),this.fallbackTransition=zY(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 zY(t,i,e){let n=[(a,s)=>!0],o={type:ft.Sequence,steps:[],options:null},r={type:ft.Transition,animation:o,matchers:n,options:null,queryCount:0,depCount:0};return new i_(t,r,i)}function OO(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 UY=new wu,Qw=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=jO(this._driver,e,n,o);if(n.length)throw hO(n);this._animations.set(i,r)}_buildPlayer(i,e,n){let o=i.element,r=Iw(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=zO(this._driver,e,r,Pw,Gg,new Map,new Map,n,UY,o),a.forEach(f=>{let v=Ii(s,f.element,new Map);f.postStyleProps.forEach(D=>v.set(D,null))})):(o.push(fO()),a=[]),o.length)throw gO(o);s.forEach((f,v)=>{f.forEach((D,x)=>{f.set(x,this._driver.computeStyle(v,x,Ao))})});let c=a.map(f=>{let v=s.get(f.element);return this._buildPlayer(f,new Map,v)}),m=Nr(c);return this._playersById.set(i,m),m.onDestroy(()=>this.destroy(i)),this.players.push(m),m}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 _O(i);return e}listen(i,e,n,o){let r=Hg(e,"","","");return Ug(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}}},PO="ng-animate-queued",HY=".ng-animate-queued",Bw="ng-animate-disabled",WY=".ng-animate-disabled",GY="ng-star-inserted",$Y=".ng-star-inserted",qY=[],HO={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},YY={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Oo="__ng_removed",xu=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=KY(o),n){let r=i,{value:a}=r,s=u_(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])})}}},Cu="void",jw=new xu(Cu),Kw=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,mo(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw vO(n,e);if(n==null||n.length==0)throw bO(e);if(!ZY(n))throw yO(n,e);let r=Ii(this._elementListeners,i,[]),a={name:e,phase:n,callback:o};r.push(a);let s=Ii(this._engine.statesByElement,i,new Map);return s.has(e)||(mo(i,vu),mo(i,vu+"-"+e),s.set(e,jw)),()=>{this._engine.afterFlush(()=>{let c=r.indexOf(a);c>=0&&r.splice(c,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 CO(i);return e}trigger(i,e,n,o=!0){let r=this._getTrigger(e),a=new Du(this.id,e,i),s=this._engine.statesByElement.get(i);s||(mo(i,vu),mo(i,vu+"-"+e),this._engine.statesByElement.set(i,s=new Map));let c=s.get(e),m=new xu(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&m.absorbOptions(c.options),s.set(e,m),c||(c=jw),!(m.value===Cu)&&c.value===m.value){if(!eQ(c.params,m.params)){let O=[],K=r.matchStyles(c.value,c.params,O),U=r.matchStyles(m.value,m.params,O);O.length?this._engine.reportError(O):this._engine.afterFlush(()=>{ya(i,K),Ro(i,U)})}return}let D=Ii(this._engine.playersByElement,i,[]);D.forEach(O=>{O.namespaceId==this.id&&O.triggerName==e&&O.queued&&O.destroy()});let x=r.matchTransition(c.value,m.value,i,m.params),M=!1;if(!x){if(!o)return;x=r.fallbackTransition,M=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:x,fromState:c,toState:m,player:a,isFallbackTransition:M}),M||(mo(i,PO),a.onStart(()=>{uc(i,PO)})),a.onDone(()=>{let O=this.players.indexOf(a);O>=0&&this.players.splice(O,1);let K=this._engine.playersByElement.get(i);if(K){let U=K.indexOf(a);U>=0&&K.splice(U,1)}}),this.players.push(a),D.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,bu,!0);n.forEach(o=>{if(o[Oo])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((c,m)=>{if(a.set(m,c.value),this._triggers.has(m)){let f=this.trigger(i,m,Cu,o);f&&s.push(f)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&Nr(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 c=this._triggers.get(a).fallbackTransition,m=n.get(a)||jw,f=new xu(Cu),v=new Du(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:c,fromState:m,toState:f,player:v,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[Oo];(!r||r===HO)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){mo(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 c=Hg(r,n.triggerName,n.fromState.value,n.toState.value);c._data=i,Ug(n.player,s.phase,c,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)}},Zw=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 Kw(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 c=o.get(s);if(c){let m=n.indexOf(c);n.splice(m+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(Zg(e)){let r=this._fetchNamespace(i);if(r)return r.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!Zg(e))return;let r=e[Oo];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),mo(i,Bw)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),uc(i,Bw))}removeNode(i,e,n){if(Zg(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[Oo]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(i,e,n,o,r){return Zg(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,bu,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(i,$g,!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 Nr(this.players).onDone(()=>i());i()})}processLeaveNode(i){let e=i[Oo];if(e&&e.setForRemoval){if(i[Oo]=HO,e.namespaceId){this.destroyInnerAnimations(i);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(Bw)&&this.markElementAsDisabled(i,!1),this.driver.query(i,WY,!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?Nr(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw wO(i)}_flushAnimations(i,e){let n=new wu,o=[],r=new Map,a=[],s=new Map,c=new Map,m=new Map,f=new Set;this.disabledNodes.forEach(ye=>{f.add(ye);let Pe=this.driver.query(ye,HY,!0);for(let He=0;He{let He=Pw+O++;M.set(Pe,He),ye.forEach(Mt=>mo(Mt,He))});let K=[],U=new Set,Xe=new Set;for(let ye=0;yeU.add(Mt)):Xe.add(Pe))}let gt=new Map,pn=LO(D,Array.from(U));pn.forEach((ye,Pe)=>{let He=Gg+O++;gt.set(Pe,He),ye.forEach(Mt=>mo(Mt,He))}),i.push(()=>{x.forEach((ye,Pe)=>{let He=M.get(Pe);ye.forEach(Mt=>uc(Mt,He))}),pn.forEach((ye,Pe)=>{let He=gt.get(Pe);ye.forEach(Mt=>uc(Mt,He))}),K.forEach(ye=>{this.processLeaveNode(ye)})});let Lr=[],Wi=[];for(let ye=this._namespaceList.length-1;ye>=0;ye--)this._namespaceList[ye].drainQueuedTransitions(e).forEach(He=>{let Mt=He.player,An=He.element;if(Lr.push(Mt),this.collectedEnterElements.length){let Hn=An[Oo];if(Hn&&Hn.setForMove){if(Hn.previousTriggersValues&&Hn.previousTriggersValues.has(He.triggerName)){let xa=Hn.previousTriggersValues.get(He.triggerName),Gi=this.statesByElement.get(He.element);if(Gi&&Gi.has(He.triggerName)){let Eu=Gi.get(He.triggerName);Eu.value=xa,Gi.set(He.triggerName,Eu)}}Mt.destroy();return}}let Po=!v||!this.driver.containsElement(v,An),Ai=gt.get(An),Vr=M.get(An),un=this._buildInstruction(He,n,Vr,Ai,Po);if(un.errors&&un.errors.length){Wi.push(un);return}if(Po){Mt.onStart(()=>ya(An,un.fromStyles)),Mt.onDestroy(()=>Ro(An,un.toStyles)),o.push(Mt);return}if(He.isFallbackTransition){Mt.onStart(()=>ya(An,un.fromStyles)),Mt.onDestroy(()=>Ro(An,un.toStyles)),o.push(Mt);return}let ux=[];un.timelines.forEach(Hn=>{Hn.stretchStartingKeyframe=!0,this.disabledNodes.has(Hn.element)||ux.push(Hn)}),un.timelines=ux,n.append(An,un.timelines);let PP={instruction:un,player:Mt,element:An};a.push(PP),un.queriedElements.forEach(Hn=>Ii(s,Hn,[]).push(Mt)),un.preStyleProps.forEach((Hn,xa)=>{if(Hn.size){let Gi=c.get(xa);Gi||c.set(xa,Gi=new Set),Hn.forEach((Eu,d_)=>Gi.add(d_))}}),un.postStyleProps.forEach((Hn,xa)=>{let Gi=m.get(xa);Gi||m.set(xa,Gi=new Set),Hn.forEach((Eu,d_)=>Gi.add(d_))})});if(Wi.length){let ye=[];Wi.forEach(Pe=>{ye.push(xO(Pe.triggerName,Pe.errors))}),Lr.forEach(Pe=>Pe.destroy()),this.reportError(ye)}let Xn=new Map,pi=new Map;a.forEach(ye=>{let Pe=ye.element;n.has(Pe)&&(pi.set(Pe,Pe),this._beforeAnimationBuild(ye.player.namespaceId,ye.instruction,Xn))}),o.forEach(ye=>{let Pe=ye.element;this._getPreviousPlayers(Pe,!1,ye.namespaceId,ye.triggerName,null).forEach(Mt=>{Ii(Xn,Pe,[]).push(Mt),Mt.destroy()})});let Ca=K.filter(ye=>VO(ye,c,m)),Rs=new Map;NO(Rs,this.driver,Xe,m,Ao).forEach(ye=>{VO(ye,c,m)&&Ca.push(ye)});let wa=new Map;x.forEach((ye,Pe)=>{NO(wa,this.driver,new Set(ye),c,_u)}),Ca.forEach(ye=>{let Pe=Rs.get(ye),He=wa.get(ye);Rs.set(ye,new Map([...Pe?.entries()??[],...He?.entries()??[]]))});let c_=[],cx=[],dx={};a.forEach(ye=>{let{element:Pe,player:He,instruction:Mt}=ye;if(n.has(Pe)){if(f.has(Pe)){He.onDestroy(()=>Ro(Pe,Mt.toStyles)),He.disabled=!0,He.overrideTotalTime(Mt.totalTime),o.push(He);return}let An=dx;if(pi.size>1){let Ai=Pe,Vr=[];for(;Ai=Ai.parentNode;){let un=pi.get(Ai);if(un){An=un;break}Vr.push(Ai)}Vr.forEach(un=>pi.set(un,An))}let Po=this._buildAnimation(He.namespaceId,Mt,Xn,r,wa,Rs);if(He.setRealPlayer(Po),An===dx)c_.push(He);else{let Ai=this.playersByElement.get(An);Ai&&Ai.length&&(He.parentPlayer=Nr(Ai)),o.push(He)}}else ya(Pe,Mt.fromStyles),He.onDestroy(()=>Ro(Pe,Mt.toStyles)),cx.push(He),f.has(Pe)&&o.push(He)}),cx.forEach(ye=>{let Pe=r.get(ye.element);if(Pe&&Pe.length){let He=Nr(Pe);ye.setRealPlayer(He)}}),o.forEach(ye=>{ye.parentPlayer?ye.syncPlayerEvents(ye.parentPlayer):ye.destroy()});for(let ye=0;ye!Po.destroyed);An.length?XY(this,Pe,An):this.processLeaveNode(Pe)}return K.length=0,c_.forEach(ye=>{this.players.push(ye),ye.onDone(()=>{ye.destroy();let Pe=this.players.indexOf(ye);this.players.splice(Pe,1)}),ye.play()}),c_}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 c=!r||r==Cu;s.forEach(m=>{m.queued||!c&&m.triggerName!=o||a.push(m)})}}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 c of e.timelines){let m=c.element,f=m!==r,v=Ii(n,m,[]);this._getPreviousPlayers(m,f,a,s,e.toState).forEach(x=>{let M=x.getRealPlayer();M.beforeDestroy&&M.beforeDestroy(),x.destroy(),v.push(x)})}ya(r,e.fromStyles)}_buildAnimation(i,e,n,o,r,a){let s=e.triggerName,c=e.element,m=[],f=new Set,v=new Set,D=e.timelines.map(M=>{let O=M.element;f.add(O);let K=O[Oo];if(K&&K.removedBeforeQueried)return new Fr(M.duration,M.delay);let U=O!==c,Xe=JY((n.get(O)||qY).map(Xn=>Xn.getRealPlayer())).filter(Xn=>{let pi=Xn;return pi.element?pi.element===O:!1}),gt=r.get(O),pn=a.get(O),Lr=Iw(this._normalizer,M.keyframes,gt,pn),Wi=this._buildPlayer(M,Lr,Xe);if(M.subTimeline&&o&&v.add(O),U){let Xn=new Du(i,s,O);Xn.setRealPlayer(Wi),m.push(Xn)}return Wi});m.forEach(M=>{Ii(this.playersByQueriedElement,M.element,[]).push(M),M.onDone(()=>QY(this.playersByQueriedElement,M.element,M))}),f.forEach(M=>mo(M,Fw));let x=Nr(D);return x.onDestroy(()=>{f.forEach(M=>uc(M,Fw)),Ro(c,e.toStyles)}),v.forEach(M=>{Ii(o,M,[]).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 Fr(i.duration,i.delay)}},Du=class{namespaceId;triggerName;element;_player=new Fr;_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=>Ug(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){Ii(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 QY(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 KY(t){return t??null}function Zg(t){return t&&t.nodeType===1}function ZY(t){return t=="start"||t=="done"}function FO(t,i){let e=t.style.display;return t.style.display=i??"none",e}function NO(t,i,e,n,o){let r=[];e.forEach(c=>r.push(FO(c)));let a=[];n.forEach((c,m)=>{let f=new Map;c.forEach(v=>{let D=i.computeStyle(m,v,o);f.set(v,D),(!D||D.length==0)&&(m[Oo]=YY,a.push(m))}),t.set(m,f)});let s=0;return e.forEach(c=>FO(c,r[s++])),a}function LO(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 c=r.get(s);if(c)return c;let m=s.parentNode;return e.has(m)?c=m:o.has(m)?c=n:c=a(m),r.set(s,c),c}return i.forEach(s=>{let c=a(s);c!==n&&e.get(c).push(s)}),e}function mo(t,i){t.classList?.add(i)}function uc(t,i){t.classList?.remove(i)}function XY(t,i,e){Nr(e).onDone(()=>t.processLeaveNode(i))}function JY(t){let i=[];return WO(t,i),i}function WO(t,i){for(let e=0;eo.add(r)):i.set(t,n),e.delete(t),!0}var mc=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(i,e)=>{};constructor(i,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new Zw(i.body,e,n),this._timelineEngine=new Qw(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 c=[],m=[],f=jO(this._driver,r,c,m);if(c.length)throw pO(o,c);s=jY(o,f,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]=kw(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]=kw(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 tQ(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=zw(i[0]),i.length>1&&(n=zw(i[i.length-1]))):i instanceof Map&&(e=zw(i)),e||n?new nQ(t,e,n):null}var nQ=(()=>{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&&Ro(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ro(this._element,this._initialStyles),this._endStyles&&(Ro(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ya(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ya(this._element,this._endStyles),this._endStyles=null),Ro(this._element,this._initialStyles),this._state=3)}}return t})();function zw(t){let i=null;return t.forEach((e,n)=>{iQ(n)&&(i=i||new Map,i.set(n,e))}),i}function iQ(t){return t==="display"||t==="position"}var o_=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;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._initialized=!0;let i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",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){return i.animate(this._convertKeyframesToObject(e),n)}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(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}setPosition(i){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}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:Yg(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){let e=i==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},r_=class{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}containsElement(i,e){return Aw(i,e)}getParentElement(i){return Wg(i)}query(i,e,n){return Rw(i,e,n)}computeStyle(i,e,n){return Yg(i,e)}animate(i,e,n,o,r,a=[]){let s=o==0?"both":"forwards",c={duration:n,delay:o,fill:s};r&&(c.easing=r);let m=new Map,f=a.filter(x=>x instanceof o_);MO(n,o)&&f.forEach(x=>{x.currentSnapshot.forEach((M,O)=>m.set(O,M))});let v=SO(e).map(x=>new Map(x));v=TO(i,v,m);let D=tQ(i,v);return new o_(i,v,c,D)}};var Xg="@",GO="@.disabled",a_=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){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)==Xg&&e==GO?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)}},Xw=class extends a_{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)==Xg?e.charAt(1)=="."&&e==GO?(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)==Xg){let r=oQ(i),a=e.slice(1),s="";return a.charAt(0)!=Xg&&([a,s]=rQ(a)),this.engine.listen(this.namespaceId,r,a,s,c=>{let m=c._data||-1;this.factory.scheduleListenerCallback(m,n,c)})}return this.delegate.listen(i,e,n,o)}};function oQ(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function rQ(t){let i=t.indexOf("."),e=t.substring(0,i),n=t.slice(i+1);return[e,n]}var s_=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 n="",o=this.delegate.createRenderer(i,e);if(!i||!e?.data?.animation){let m=this._rendererCache,f=m.get(o);if(!f){let v=()=>m.delete(o);f=new a_(n,o,this.engine,v),m.set(o,f)}return f}let r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,i);let s=m=>{Array.isArray(m)?m.forEach(s):this.engine.registerTrigger(r,a,i,m.name,m)};return e.data.animation.forEach(s),new Xw(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 sQ=(()=>{class t extends mc{constructor(e,n,o){super(e,n,o)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(se(he),se(ks),se(As))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function lQ(){return new Jg}function cQ(t,i,e){return new s_(t,i,e)}var qO=[{provide:As,useFactory:lQ},{provide:mc,useClass:sQ},{provide:hn,useFactory:cQ,deps:[od,mc,ie]}],dQ=[{provide:ks,useClass:Jw},{provide:tt,useValue:"NoopAnimations"},...qO],$O=[{provide:ks,useFactory:()=>new r_},{provide:tt,useFactory:()=>"BrowserAnimations"},...qO],YO=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?dQ:$O}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:$O,imports:[ad]})}return t})();var uQ=["button"],mQ=["*"];function pQ(t,i){if(t&1&&(l(0,"div",2),T(1,"mat-pseudo-checkbox",6),d()),t&2){let e=g();u(),_("disabled",e.disabled)}}var hQ=new R("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:fQ});function fQ(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var gQ=new R("MatButtonToggleGroup");var tx=class{source;value;constructor(i,e){this.source=i,this.value=e}};var _Q=(()=>{class t{_changeDetectorRef=p(xe);_elementRef=p(Z);_focusMonitor=p(Cn);_idGenerator=p(ut);_animationMode=p(tt,{optional:!0});_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex}set tabIndex(e){e!==this._tabIndex&&(this._tabIndex=e,this._markForCheck())}_tabIndex;disableRipple;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 k;constructor(){p(yt).load(gn);let e=p(gQ,{optional:!0}),n=p(new Nn("tabindex"),{optional:!0})||"",o=p(hQ,{optional:!0});this._tabIndex=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._animationMode!=="NoopAnimations"&&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 tx(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=S({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&me(uQ,5),n&2){let r;q(r=Y())&&(o._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(n,o){n&1&&b("focus",function(){return o.focus()}),n&2&&(ne("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),ee("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",$],appearance:"appearance",checked:[2,"checked","checked",$],disabled:[2,"disabled","disabled",$],disabledInteractive:[2,"disabledInteractive","disabledInteractive",$]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:mQ,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){let r=A();Le(),l(0,"button",1,0),b("click",function(){return C(r),w(o._onButtonClick())}),E(2,pQ,2,1,"div",2),l(3,"span",3),ce(4),d()(),T(5,"span",4)(6,"span",5)}if(n&2){let r=Ge(1);_("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),ne("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),u(2),I(o.buttonToggleGroup&&(!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator||o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),u(4),_("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Bi,Df],styles:[`.mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large));border:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-legacy-button-toggle-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-legacy-button-toggle-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-standard-button-toggle-background-color, transparent);font-family:var(--mat-standard-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-standard-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-standard-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-standard-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-standard-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-standard-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-standard-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-standard-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large));border-top-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large))} -`],encapsulation:2,changeDetection:0})}return t})(),QO=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,tr,_Q,fe]})}return t})();var bQ=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],yQ=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function CQ(t,i){t&1&&(l(0,"span",3),ce(1,1),d())}function wQ(t,i){t&1&&(l(0,"span",6),ce(1,2),d())}var xQ=`.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width, 1px);border-radius:var(--mdc-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size, 24px);height:var(--mdc-chip-with-avatar-avatar-size, 24px);font-size:var(--mdc-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius, 8px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mdc-chip-with-icon-icon-size, 18px);height:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content} -`,DQ=[[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],SQ=["mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function EQ(t,i){t&1&&T(0,"span",0)}function MQ(t,i){t&1&&(l(0,"span",2),ce(1),d())}function TQ(t,i){t&1&&ce(0,1)}function IQ(t,i){t&1&&T(0,"span",7)}function kQ(t,i){if(t&1&&E(0,TQ,1,0)(1,IQ,1,0,"span",7),t&2){let e=g();I(e.contentEditInput?0:1)}}function AQ(t,i){t&1&&ce(0,2)}function RQ(t,i){t&1&&(l(0,"span",5),ce(1,3),d())}var XO=["*"],OQ=`.mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px} -`,JO=new R("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),KO=new R("MatChipAvatar"),ZO=new R("MatChipTrailingIcon"),ix=new R("MatChipRemove"),ax=new R("MatChip"),l_=(()=>{class t{_elementRef=p(Z);_parentChip=p(ax);isInteractive=!0;_isPrimary=!0;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}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(){p(yt).load(gn),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(n,o){n&1&&b("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(ne("tabindex",o._getTabindex())("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),ee("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--presentational",!o.isInteractive)("mdc-evolution-chip__action--trailing",!o._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",$],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:Zt(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})();var eP=(()=>{class t extends l_{_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=nt(t)))(o||t)}})();static \u0275dir=B({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&&ne("aria-hidden",null)},features:[Ce([{provide:ix,useExisting:t}]),_e]})}return t})(),ox=(()=>{class t{_changeDetectorRef=p(xe);_elementRef=p(Z);_ngZone=p(ie);_focusMonitor=p(Cn);_globalRippleOptions=p(Hl,{optional:!0});_document=p(he);_onFocus=new z;_onBlur=new z;_isBasicChip;role=null;_hasFocusInternal=!1;_pendingFocus;_actionChanges;_animationsDisabled;_allLeadingIcons;_allTrailingIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=p(ut).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_ariaDescriptionId=`${this.id}-aria-description`;_chipListDisabled=!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 k;destroyed=new k;basicChipAttrName="mat-basic-chip";leadingIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=p($h);_injector=p(Ie);constructor(){let e=p(yt);e.load(gn),e.load(eo);let n=p(tt,{optional:!0});this._animationsDisabled=n==="NoopAnimations",this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){let e=this._elementRef.nativeElement;this._isBasicChip=e.hasAttribute(this.basicChipAttrName)||e.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=_t(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(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.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_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=S({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,r){if(n&1&&(je(r,KO,5),je(r,ZO,5),je(r,ix,5),je(r,KO,5),je(r,ZO,5),je(r,ix,5)),n&2){let a;q(a=Y())&&(o.leadingIcon=a.first),q(a=Y())&&(o.trailingIcon=a.first),q(a=Y())&&(o.removeIcon=a.first),q(a=Y())&&(o._allLeadingIcons=a),q(a=Y())&&(o._allTrailingIcons=a),q(a=Y())&&(o._allRemoveIcons=a)}},viewQuery:function(n,o){if(n&1&&me(l_,5),n&2){let r;q(r=Y())&&(o.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(n,o){n&1&&b("keydown",function(a){return o._handleKeydown(a)}),n&2&&(bn("id",o.id),ne("role",o.role)("aria-label",o.ariaLabel),Vt("mat-"+(o.color||"primary")),ee("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",$],highlighted:[2,"highlighted","highlighted",$],disableRipple:[2,"disableRipple","disableRipple",$],disabled:[2,"disabled","disabled",$]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ce([{provide:ax,useExisting:t}])],ngContentSelectors:yQ,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(Le(bQ),T(0,"span",0),l(1,"span",1)(2,"span",2),E(3,CQ,2,0,"span",3),l(4,"span",4),ce(5),T(6,"span",5),d()()(),E(7,wQ,2,0,"span",6)),n&2&&(u(2),_("isInteractive",!1),u(),I(o.leadingIcon?3:-1),u(4),I(o._hasTrailingIcon()?7:-1))},dependencies:[l_],styles:[`.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width, 1px);border-radius:var(--mdc-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size, 24px);height:var(--mdc-chip-with-avatar-avatar-size, 24px);font-size:var(--mdc-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius, 8px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mdc-chip-with-icon-icon-size, 18px);height:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content} -`],encapsulation:2,changeDetection:0})}return t})();var nx=(()=>{class t{_elementRef=p(Z);_document=p(he);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=B({type:t,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return t})(),sx=(()=>{class t extends ox{basicChipAttrName="mat-basic-chip-row";_editStartPending=!1;editable=!1;edited=new k;defaultEditInput;contentEditInput;_isEditing=!1;constructor(){super(),this.role="row",this._onBlur.pipe(Te(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_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)}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_startEditing(e){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(e.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,Ht(()=>{this._getEditInput().initialize(n),this._editStartPending=!1},{injector:this._injector})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({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&&je(r,nx,5),n&2){let a;q(a=Y())&&(o.contentEditInput=a.first)}},viewQuery:function(n,o){if(n&1&&me(nx,5),n&2){let r;q(r=Y())&&(o.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(n,o){n&1&&b("focus",function(){return o._handleFocus()})("dblclick",function(a){return o._handleDoubleclick(a)}),n&2&&(bn("id",o.id),ne("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),ee("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-chip-editing",o._isEditing)("mat-mdc-chip-editable",o.editable)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon()))},inputs:{editable:"editable"},outputs:{edited:"edited"},features:[Ce([{provide:ox,useExisting:t},{provide:ax,useExisting:t}]),_e],ngContentSelectors:SQ,decls:10,vars:9,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"disabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"cdk-visually-hidden",3,"id"],["matChipEditInput",""]],template:function(n,o){n&1&&(Le(DQ),E(0,EQ,1,0,"span",0),l(1,"span",1),E(2,MQ,2,0,"span",2),l(3,"span",3),E(4,kQ,2,1)(5,AQ,1,0),T(6,"span",4),d()(),E(7,RQ,2,0,"span",5),l(8,"span",6),h(9),d()),n&2&&(I(o._isEditing?-1:0),u(),_("disabled",o.disabled),ne("aria-label",o.ariaLabel)("aria-describedby",o._ariaDescriptionId),u(),I(o.leadingIcon?2:-1),u(2),I(o._isEditing?4:5),u(3),I(o._hasTrailingIcon()?7:-1),u(),_("id",o._ariaDescriptionId),u(),de(o.ariaDescription))},dependencies:[l_,nx],styles:[xQ],encapsulation:2,changeDetection:0})}return t})(),PQ=(()=>{class t{_elementRef=p(Z);_changeDetectorRef=p(xe);_dir=p(Pt,{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 Qi;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(xt(null),Dt(()=>_t(...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(xt(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 Tr(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Te(this._destroyed)).subscribe(({chip:e})=>{let n=e._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(Te(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(xt(null),Te(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Te(this._destroyed)).subscribe(e=>{let o=this._chips.toArray().indexOf(e.chip);this._isValidIndex(o)&&e.chip._hasFocus()&&(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=S({type:t,selectors:[["mat-chip-set"]],contentQueries:function(n,o,r){if(n&1&&je(r,ox,5),n&2){let a;q(a=Y())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&b("keydown",function(a){return o._handleKeydown(a)}),n&2&&ne("role",o.role)},inputs:{disabled:[2,"disabled","disabled",$],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Zt(e)]},ngContentSelectors:XO,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(Le(),l(0,"div",0),ce(1),d())},styles:[`.mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px} -`],encapsulation:2,changeDetection:0})}return t})();var rx=class{source;value;constructor(i,e){this.source=i,this.value=e}},tP=(()=>{class t extends PQ{ngControl=p(Mi,{optional:!0,self:!0});controlType="mat-chip-grid";_chipInput;_defaultRole="grid";_errorStateTracker;_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.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||this._chips.length===0)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(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(ir.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 k;valueChange=new k;_chips=void 0;stateChanges=new z;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(){super();let e=p(ro,{optional:!0}),n=p(pa,{optional:!0}),o=p(bs);this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new ha(o,this.ngControl,n,e,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(Te(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),_t(this.chipFocusChanges,this._chips.changes).pipe(Te(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit(),this._chipInput}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){if(!(this.disabled||this._chipInput.focused)){if(!this._chips.length||this._chips.first.disabled)Promise.resolve().then(()=>this._chipInput.focus());else{let e=this._keyManager.activeItem;e?e.focus():this._keyManager.setFirstItemActive()}this.stateChanges.next()}}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?.setDescribedByIds(e)}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&&Et(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(c=>c._isPrimary===o._isPrimary&&!this._skipPredicate(c)),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 rx(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=S({type:t,selectors:[["mat-chip-grid"]],contentQueries:function(n,o,r){if(n&1&&je(r,sx,5),n&2){let a;q(a=Y())&&(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&&b("focus",function(){return o.focus()})("blur",function(){return o._blur()}),n&2&&(ne("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),ee("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",$],placeholder:"placeholder",required:[2,"required","required",$],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[Ce([{provide:Ar,useExisting:t}]),_e],ngContentSelectors:XO,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(Le(),l(0,"div",0),ce(1),d())},styles:[OQ],encapsulation:2,changeDetection:0})}return t})(),nP=(()=>{class t{_elementRef=p(Z);focused=!1;get chipGrid(){return this._chipGrid}set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}_chipGrid;addOnBlur=!1;separatorKeyCodes;chipEnd=new k;placeholder="";id=p(ut).getId("mat-mdc-chip-list-input-");get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=e}_disabled=!1;get empty(){return!this.inputElement.value}inputElement;constructor(){let e=p(JO),n=p(ao,{optional:!0});this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=e.separatorKeyCodes,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=""}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}_isSeparatorKey(e){return!Et(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(n,o){n&1&&b("keydown",function(a){return o._keydown(a)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),n&2&&(bn("id",o.id),ne("disabled",o.disabled||null)("placeholder",o.placeholder||null)("aria-invalid",o._chipGrid&&o._chipGrid.ngControl?o._chipGrid.ngControl.invalid:null)("aria-required",o._chipGrid&&o._chipGrid.required||null)("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",$],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",$]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Be]})}return t})();var iP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[bs,{provide:JO,useValue:{separatorKeyCodes:[13]}}],imports:[fe,tr,fe]})}return t})();var oP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();var rP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,oP,Si]})}return t})();var NQ=["*",[["mat-toolbar-row"]]],LQ=["*","mat-toolbar-row"],VQ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),aP=(()=>{class t{_elementRef=p(Z);_platform=p(et);_document=p(he);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=S({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,o,r){if(n&1&&je(r,VQ,5),n&2){let a;q(a=Y())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(Vt(o.color?"mat-"+o.color:""),ee("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:LQ,decls:2,vars:0,template:function(n,o){n&1&&(Le(NQ),ce(0),ce(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))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}} -`],encapsulation:2,changeDetection:0})}return t})();var sP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();var lP=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=X({providers:[{provide:Kf,useValue:{floatLabel:"always",appearance:"outline"}},{provide:ou,useValue:udsData.language}],imports:[Qa,fk,ff,sP,nr,FA,ws,rP,jy,_a,jA,lu,PR,Ik,YA,rA,lA,qf,eg,wk,iP,QO,hR,rR,Mk,rg,AA,xA]})}}return t})();function jQ(t,i){if(t&1){let e=A();l(0,"button",7),b("click",function(){let o=C(e).$implicit,r=g();return w(r.changeLang(o))}),h(1),d()}if(t&2){let e=i.$implicit;u(),de(e.name)}}function zQ(t,i){t&1&&(l(0,"uds-translate"),h(1,"Light theme"),d())}function UQ(t,i){t&1&&(l(0,"uds-translate"),h(1,"Dark theme"),d())}function HQ(t,i){t&1&&(l(0,"uds-translate"),h(1,"Light theme"),d())}function WQ(t,i){t&1&&(l(0,"uds-translate"),h(1,"Dark theme"),d())}function GQ(t,i){if(t&1&&(l(0,"button",11)(1,"i",8),h(2,"face"),d(),l(3,"span"),h(4),d()()),t&2){let e=g(),n=Ge(8);_("matMenuTriggerFor",n),u(4),de(e.api.user.user)}}function $Q(t,i){if(t&1&&(l(0,"a",22)(1,"i",8),h(2,"arrow_back"),d()()),t&2){let e=g(2);_("routerLink",e.parentRoute)}}function qQ(t,i){if(t&1&&T(0,"img",23),t&2){let e=g(2),n=g();_("src",n.api.staticURL("admin/img/icons/"+e.icon+".png"),Ee)}}function YQ(t,i){if(t&1&&(l(0,"div",20)(1,"span",21),h(2,"/"),d(),E(3,$Q,3,1,"a",22)(4,qQ,1,1,"img",23),l(5,"span",24),h(6),d()()),t&2){let e=g();u(3),I(e.parentRoute?3:-1),u(),I(e.icon?4:-1),u(2),de(e.title)}}function QQ(t,i){t&1&&E(0,YQ,7,3,"div",20),t&2&&I(i.title?0:-1)}function KQ(t,i){if(t&1&&(l(0,"button",17),h(1),l(2,"i",8),h(3,"arrow_drop_down"),d()()),t&2){let e=g(),n=Ge(8);_("matMenuTriggerFor",n),u(),F("",e.api.user.user," ")}}var cP=(()=>{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)(y(j),y(ga))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-navbar"]],standalone:!1,decls:53,vars:19,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){let r=A();l(0,"form",3),T(1,"input",4)(2,"input",5),d(),l(3,"mat-menu",null,0),oe(5,jQ,2,1,"button",6,le),d(),l(7,"mat-menu",null,1)(9,"button",7),b("click",function(){return C(r),w(o.user())}),l(10,"i",8),h(11,"home"),d(),l(12,"uds-translate"),h(13,"User mode"),d()(),l(14,"button",7),b("click",function(){return C(r),w(o.toggleTheme())}),l(15,"i",8),h(16),d(),E(17,zQ,2,0,"uds-translate")(18,UQ,2,0,"uds-translate"),d(),l(19,"button",7),b("click",function(){return C(r),w(o.logout())}),l(20,"i",9),h(21,"exit_to_app"),d(),l(22,"uds-translate"),h(23,"Logout"),d()()(),l(24,"mat-menu",10,2)(26,"button",7),b("click",function(){return C(r),w(o.toggleTheme())}),l(27,"i",8),h(28),d(),E(29,HQ,2,0,"uds-translate")(30,WQ,2,0,"uds-translate"),d(),E(31,GQ,5,2,"button",11),l(32,"button",11)(33,"i",8),h(34,"language"),d(),l(35,"span"),h(36),d()()(),l(37,"mat-toolbar",12)(38,"button",13),T(39,"img",14),d(),E(40,QQ,1,1),dt(41,"async"),T(42,"span",15),l(43,"div",16)(44,"button",17),h(45),l(46,"i",8),h(47,"arrow_drop_down"),d()(),E(48,KQ,4,2,"button",17),d(),l(49,"div",18)(50,"button",19)(51,"i",8),h(52,"menu"),d()()()()}if(n&2){let r,a=Ge(4),s=Ge(25);Xr("action",o.api.config.urls.change_language,Ee),u(),Xr("name",o.api.csrfField),Xr("value",o.api.csrfToken),u(),Xr("value",o.lang.id),u(3),re(o.langs),u(11),de(o.api.isDarkTheme?"wb_sunny":"brightness_2"),u(),I(o.api.isDarkTheme?17:18),u(11),de(o.api.isDarkTheme?"wb_sunny":"brightness_2"),u(),I(o.api.isDarkTheme?29:30),u(2),I(o.api.user.isLogged?31:-1),u(),_("matMenuTriggerFor",a),u(4),de(o.lang.name),u(3),_("src",o.api.staticURL("admin/img/udsicon.png"),Ee),u(),I((r=vt(41,17,o.headerData$))?40:-1,r),u(4),_("matMenuTriggerFor",a),u(),F("",o.lang.name," "),u(3),I(o.api.user.isLogged?48:-1),u(2),_("matMenuTriggerFor",s)}},dependencies:[ln,hf,df,ro,aP,De,On,ba,xs,dg,ue,Jc],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}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 dP=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=S({type:t,selectors:[["uds-footer"]],standalone:!1,decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(n,o){n&1&&(l(0,"div"),h(1,"\xA9 2012-2025 "),l(2,"a",0),h(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, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}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 JQ(t,i){if(t&1&&(l(0,"a",16),T(1,"img",2),l(2,"uds-translate"),h(3,"Groups"),d()()),t&2){let e=g();u(),_("src",e.icon("groups"),Ee)}}function eK(t,i){if(t&1){let e=A();l(0,"a",3),b("click",function(){C(e);let o=g();return w(o.toggleConfig())}),T(1,"img",2),l(2,"span")(3,"uds-translate"),h(4,"Tools"),d(),l(5,"i",4),h(6,"arrow_drop_down"),d()()()}if(t&2){let e=g();u(),_("src",e.icon("tools"),Ee)}}var uP=(()=>{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)(y(j),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"a",1),T(2,"img",2),l(3,"uds-translate"),h(4,"Summary"),d()(),l(5,"a",3),b("click",function(){return o.toggleServices()}),T(6,"img",2),l(7,"span")(8,"uds-translate"),h(9,"Services"),d(),l(10,"i",4),h(11,"arrow_drop_down"),d()()(),l(12,"div",5)(13,"a",6),T(14,"img",2),l(15,"uds-translate"),h(16,"Providers"),d()(),l(17,"a",7),T(18,"img",2),l(19,"uds-translate"),h(20,"Servers"),d()()(),l(21,"a",3),b("click",function(){return o.toggleAuths()}),T(22,"img",2),l(23,"span")(24,"uds-translate"),h(25,"Authentication"),d(),l(26,"i",4),h(27,"arrow_drop_down"),d()()(),l(28,"div",5)(29,"a",8),T(30,"img",2),l(31,"uds-translate"),h(32,"Authenticators"),d()(),l(33,"a",9),T(34,"img",2),l(35,"uds-translate"),h(36,"Multi Factor"),d()()(),l(37,"a",10),T(38,"img",2),l(39,"uds-translate"),h(40,"Os Managers"),d()(),l(41,"a",3),b("click",function(){return o.toggleConnectivity()}),T(42,"img",2),l(43,"span")(44,"uds-translate"),h(45,"Connectivity"),d(),l(46,"i",4),h(47,"arrow_drop_down"),d()()(),l(48,"div",5)(49,"a",11),T(50,"img",2),l(51,"uds-translate"),h(52,"Transports"),d()(),l(53,"a",12),T(54,"img",2),l(55,"uds-translate"),h(56,"Networks"),d()(),l(57,"a",13),T(58,"img",2),l(59,"uds-translate"),h(60,"Tunnels"),d()()(),l(61,"a",3),b("click",function(){return o.togglePools()}),T(62,"img",2),l(63,"span")(64,"uds-translate"),h(65,"Pools"),d(),l(66,"i",4),h(67,"arrow_drop_down"),d()()(),l(68,"div",5)(69,"a",14),T(70,"img",2),l(71,"uds-translate"),h(72,"Service pools"),d()(),l(73,"a",15),T(74,"img",2),l(75,"uds-translate"),h(76,"Meta pools"),d()(),E(77,JQ,4,1,"a",16),l(78,"a",17),T(79,"img",2),l(80,"uds-translate"),h(81,"Calendars"),d()(),l(82,"a",18),T(83,"img",2),l(84,"uds-translate"),h(85,"Accounting"),d()()(),E(86,eK,7,1,"a",19),l(87,"div",5)(88,"a",20),T(89,"img",2),l(90,"uds-translate"),h(91,"Gallery"),d()(),l(92,"a",21),T(93,"img",2),l(94,"uds-translate"),h(95,"Reports"),d()(),l(96,"a",22),T(97,"img",2),l(98,"uds-translate"),h(99,"Notifiers"),d()(),l(100,"a",3),b("click",function(){return o.tokensShown=!o.tokensShown}),T(101,"img",2),l(102,"span")(103,"uds-translate"),h(104,"Tokens"),d(),l(105,"i",4),h(106,"arrow_drop_down"),d()()(),l(107,"div",23)(108,"a",24),T(109,"img",2),l(110,"uds-translate"),h(111,"Actor"),d()(),l(112,"a",25),T(113,"img",2),l(114,"uds-translate"),h(115,"Servers"),d()()(),l(116,"a",26),T(117,"img",2),l(118,"uds-translate"),h(119,"Configuration"),d()(),l(120,"a",3),b("click",function(){return o.flushCache()}),T(121,"img",2),l(122,"uds-translate"),h(123,"Flush Cache"),d()()()()),n&2&&(u(2),_("src",o.icon("dashboard-monitor"),Ee),u(4),_("src",o.icon("providers"),Ee),u(6),_("hidden",!o.servicesShown),u(2),_("src",o.icon("providers"),Ee),u(4),_("src",o.icon("servers"),Ee),u(4),_("src",o.icon("authentication"),Ee),u(6),_("hidden",!o.authsShown),u(2),_("src",o.icon("authenticators"),Ee),u(4),_("src",o.icon("mfas"),Ee),u(4),_("src",o.icon("osmanagers"),Ee),u(4),_("src",o.icon("connectivity"),Ee),u(6),_("hidden",!o.connectivityShown),u(2),_("src",o.icon("transports"),Ee),u(4),_("src",o.icon("networks"),Ee),u(4),_("src",o.icon("tunnels"),Ee),u(4),_("src",o.icon("poolsmenu"),Ee),u(6),_("hidden",!o.poolsShown),u(2),_("src",o.icon("pools"),Ee),u(4),_("src",o.icon("metas"),Ee),u(3),I(o.api.user.isAdmin?77:-1),u(2),_("src",o.icon("calendars"),Ee),u(4),_("src",o.icon("accounts"),Ee),u(3),I(o.api.user.isAdmin?86:-1),u(),_("hidden",!o.configShown),u(2),_("src",o.icon("gallery"),Ee),u(4),_("src",o.icon("reports"),Ee),u(4),_("src",o.icon("notifiers"),Ee),u(4),_("src",o.icon("tokens"),Ee),u(6),_("hidden",!o.tokensShown),u(2),_("src",o.icon("actors"),Ee),u(4),_("src",o.icon("servers"),Ee),u(4),_("src",o.icon("configuration"),Ee),u(4),_("src",o.icon("flush-cache"),Ee))},dependencies:[ln,ua,ue],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}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 nK(t,i){if(t&1&&T(0,"div",0),t&2){let e=g();_("innerHTML",e.messages,Wt)}}var mP=(()=>{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)(y(j))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-notices"]],standalone:!1,decls:1,vars:1,consts:[[1,"notice",3,"innerHTML"]],template:function(n,o){n&1&&E(0,nK,1,1,"div",0),n&2&&I(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 oK=["backgroundThumbnail"],pP=(()=>{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 c=0,m=20;for(c=-m;c<=this.ctx.canvas.width+m;c+=m){let f=r.yBase+Math.sin(c*.001+this.time*r.speed+r.offset)*r.amplitude+Math.cos(c*.003+this.time*r.speed*.5)*(r.amplitude*.4);c===-m?this.ctx.moveTo(c,f):this.ctx.lineTo(c,f)}this.ctx.stroke()}),this.animationFrameId=requestAnimationFrame(()=>this.animate())}ngOnDestroy(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId)}static{this.\u0275fac=function(n){return new(n||t)(y(j))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-background"]],viewQuery:function(n,o){if(n&1&&me(oK,5),n&2){let r;q(r=Y())&&(o.canvasRef=r.first)}},hostBindings:function(n,o){n&1&&b("resize",function(){return o.onResize()},!1,ul)},standalone:!1,decls:2,vars:0,consts:[["backgroundThumbnail",""],[1,"background-canvas"]],template:function(n,o){n&1&&T(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 hP=(()=>{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)(y(j))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-root"]],hostBindings:function(n,o){n&1&&b("keydown",function(a){return o.handleKeyboardEvent(a)},!1,wE)},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&&(T(0,"uds-background")(1,"uds-navbar"),l(2,"div",0),b("click",function(){return o.api.toggleSidebar()}),l(3,"i",1),h(4),d()(),T(5,"uds-sidebar"),l(6,"div",2)(7,"div",3),T(8,"uds-notices")(9,"router-outlet"),d(),l(10,"div",4),T(11,"uds-footer"),d()()),n&2&&(u(2),ee("sidebar-hidden",!o.api.sidebarVisible),u(2),de(o.api.sidebarVisible?"chevron_left":"chevron_right"),u(),ee("sidebar-hidden",!o.api.sidebarVisible),u(),ee("sidebar-hidden",!o.api.sidebarVisible))},dependencies:[Ed,cP,dP,uP,mP,pP],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 fP=(()=>{class t extends va{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=N({token:t,factory:t.\u0275fac})}}return t})();var gP=(()=>{class t{constructor(){this.field={},this.changed=new k}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=S({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&&(l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"input",0),W("ngModelChange",function(a){return G(o.field.value,a)||(o.field.value=a),a}),b("change",function(){return o.changed.emit(o)}),d()()),n&2&&(u(2),F(" ",o.field.gui.label," "),u(),H("ngModel",o.field.value),_("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:[st,we,Tn,vs,Se,ge,Ae,mt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();function aK(t,i){if(t&1&&(l(0,"mat-option",1),h(1),d()),t&2){let e=i.$implicit;_("value",e),u(),F(" ",e," ")}}var _P=(()=>{class t{constructor(){this.field={},this.changed=new k,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=S({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=A();l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"mat-autocomplete",null,0),oe(5,aK,2,2,"mat-option",1,le),d(),l(7,"input",2),W("ngModelChange",function(s){return C(r),G(o.field.value,s)||(o.field.value=s),w(s)}),b("change",function(){return C(r),w(o.changed.emit(o))}),d()()}if(n&2){let r=Ge(4);u(2),F(" ",o.field.gui.label," "),u(3),re(o._filter()),u(2),H("ngModel",o.field.value),_("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:[st,we,Tn,vs,Se,ge,Ae,mt,Ze,ic,Es],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var vP=(()=>{class t{constructor(){this.field={},this.changed=new k}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=S({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&&(l(0,"mat-form-field",0)(1,"mat-label"),h(2),d(),l(3,"input",1),W("ngModelChange",function(a){return G(o.field.value,a)||(o.field.value=a),a}),b("change",function(){return o.changed.emit(o)}),d()()),n&2&&(u(2),F(" ",o.field.gui.label," "),u(),H("ngModel",o.field.value),_("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0))},dependencies:[st,ji,we,Tn,Se,ge,Ae,mt],encapsulation:2})}}return t})();var bP=(()=>{class t{constructor(){this.field={},this.changed=new k,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=S({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&&(l(0,"mat-form-field",0)(1,"mat-label"),h(2),d(),l(3,"input",1),W("ngModelChange",function(a){return G(o.field.value,a)||(o.field.value=a),a}),b("change",function(){return o.changed.emit(o)}),d(),l(4,"button",2),b("click",function(){return o.passwordType=o.passwordType==="text"?"password":"text"}),l(5,"i",3),h(6),d()()()),n&2&&(u(2),F(" ",o.field.gui.label," "),u(),H("ngModel",o.field.value),_("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("type",o.passwordType),u(3),de(o.passwordType==="text"?"visibility_off":"visibility"))},dependencies:[st,we,Tn,Se,On,ge,Ae,Ui,mt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var yP=(()=>{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=S({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},standalone:!1,decls:0,vars:0,template:function(n,o){},encapsulation:2})}}return t})();var CP=(()=>{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=S({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&&(l(0,"mat-form-field",0)(1,"mat-label"),h(2),d(),l(3,"textarea",1),W("ngModelChange",function(a){return G(o.field.value,a)||(o.field.value=a),a}),d()()),n&2&&(u(2),F(" ",o.field.gui.label," "),u(),H("ngModel",o.field.value),_("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:[st,we,Tn,vs,Se,ge,Ae,mt],encapsulation:2})}}return t})();function sK(t,i){if(t&1&&(l(0,"mat-option",2),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.text," ")}}var wP=(()=>{class t{constructor(){this.field={},this.changed=new k,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=S({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,features:[Be],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&&(l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"mat-select",0),W("ngModelChange",function(a){return G(o.field.value,a)||(o.field.value=a),a}),b("valueChange",function(){return o.changed.emit(o)}),l(4,"uds-cond-select-search",1),b("changed",function(a){return o.filter=a}),d(),oe(5,sK,2,2,"mat-option",2,le),d()()),n&2&&(u(2),F(" ",o.field.gui.label," "),u(),H("ngModel",o.field.value),_("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),u(),_("options",o.field.gui.choices)("placeholderLabel",o.placeholderLabel)("noEntriesFoundLabel",o.noEntriesFoundLabel),u(),re(o.filteredValues()))},dependencies:[we,Tn,Se,ge,Ae,ht,Ze,dn],encapsulation:2})}}return t})();function lK(t,i){if(t&1&&(l(0,"mat-option",2),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.text," ")}}var xP=(()=>{class t{constructor(){this.field={},this.changed=new k,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=S({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&&(l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"mat-select",0),W("ngModelChange",function(a){return G(o.field.value,a)||(o.field.value=a),a}),b("valueChange",function(){return o.changed.emit(o)}),l(4,"mat-select-trigger"),h(5),d(),l(6,"uds-cond-select-search",1),b("changed",function(a){return o.filter=a}),d(),oe(7,lK,2,2,"mat-option",2,le),d()()),n&2&&(u(2),F(" ",o.field.gui.label," "),u(),H("ngModel",o.field.value),_("placeholder",o.selectTriggerString())("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),u(2),F(" ",o.selectTriggerString()," "),u(),_("options",o.field.gui.choices),u(),re(o.filteredValues()))},dependencies:[we,Tn,Se,ge,Ae,ht,su,Ze,dn],encapsulation:2})}}return t})();function cK(t,i){if(t&1){let e=A();l(0,"div",3)(1,"div",12),h(2),d(),l(3,"div",13),h(4," \xA0"),l(5,"a",14),b("click",function(){let o=C(e).$index,r=g();return w(r.removeElement(o))}),l(6,"i",15),h(7,"close"),d()()()()}if(t&2){let e=i.$implicit;u(2),F(" ",e," ")}}var DP=(()=>{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 qt,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)(y(j),y(te),y(Oe),y(ze))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0),h(1),d(),l(2,"mat-dialog-content")(3,"div",1)(4,"div",2),oe(5,cK,8,1,"div",3,le),d(),l(7,"div",4)(8,"button",5),b("click",function(){return o.removeAll()}),l(9,"uds-translate"),h(10,"Remove all"),d()()(),l(11,"div",6)(12,"mat-form-field",7)(13,"input",8),b("keyup",function(a){return o.checkKey(a)}),W("ngModelChange",function(a){return G(o.input,a)||(o.input=a),a}),d(),l(14,"button",9),b("click",function(){return o.addElements()}),l(15,"i",10),h(16,"add"),d()()()()()(),l(17,"mat-dialog-actions")(18,"button",5),b("click",function(){return o.cancel()}),l(19,"uds-translate"),h(20,"Cancel"),d()(),l(21,"button",11),b("click",function(){return o.save()}),l(22,"uds-translate"),h(23,"Ok"),d()()()),n&2&&(u(),F(" ",o.data.title,` -`),u(4),re(o.values),u(8),H("ngModel",o.input))},dependencies:[st,we,Se,De,On,$e,Ye,qe,ge,Ui,mt,ue],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 SP=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new k}ngOnInit(){}valueEmpty(){return this.field.value===void 0||this.field.value===null||this.field.value.length===0}launch(){return V(this,null,function*(){this.valueEmpty()&&(this.field.value=[]);let e=yield DP.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)(y(j))}}static{this.\u0275cmp=S({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&&(l(0,"mat-form-field",0),b("click",function(){return o.launch()}),l(1,"mat-label"),h(2),d(),T(3,"input",1),d()),n&2&&(u(2),F(" ",o.field.gui.label," "),u(),_("readonly",!0)("value",o.getValue())("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0))},dependencies:[ge,Ae,mt],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]})}}return t})();var EP=(()=>{class t{constructor(){this.field={},this.changed=new k}ngOnInit(){MI(this.field.value)?this.field.value=Wh(this.field.gui.default):this.field.value=Wh(this.field.value)}getValue(){return Wh(this.field.value)?django.gettext("Yes"):django.gettext("No")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"mat-slide-toggle",1),W("ngModelChange",function(a){return G(o.field.value,a)||(o.field.value=a),a}),b("change",function(){return o.changed.emit(o)}),h(2),d()()),n&2&&(u(),H("ngModel",o.field.value),_("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),u(),F(" ",o.field.gui.label," "))},dependencies:[we,Tn,Se,rr],styles:[".toggle[_ngcontent-%COMP%]{margin-bottom:1.5rem}"]})}}return t})();function dK(t,i){if(t&1&&T(0,"div",3),t&2){let e=g().$implicit,n=g();_("innerHTML",n.asIcon(e),Wt)}}function uK(t,i){if(t&1&&(l(0,"div"),E(1,dK,1,1,"div",3),d()),t&2){let e=i.$implicit,n=g();u(),I(e.id===n.field.value?1:-1)}}function mK(t,i){if(t&1&&(l(0,"mat-option",2),T(1,"div",3),d()),t&2){let e=i.$implicit,n=g();_("value",e.id),u(),_("innerHTML",n.asIcon(e),Wt)}}var MP=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new k,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)(y(j))}}static{this.\u0275cmp=S({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&&(l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"mat-select",0),b("valueChange",function(){return o.changed.emit(o)}),W("ngModelChange",function(a){return G(o.field.value,a)||(o.field.value=a),a}),l(4,"mat-select-trigger"),oe(5,uK,2,1,"div",null,le),d(),l(7,"uds-cond-select-search",1),b("changed",function(a){return o.filter=a}),d(),oe(8,mK,2,2,"mat-option",2,le),d()()),n&2&&(u(2),F(" ",o.field.gui.label," "),u(),_("placeholder",o.field.gui.tooltip),H("ngModel",o.field.value),_("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),u(2),re(o.field.gui.choices),u(2),_("options",o.field.gui.choices),u(),re(o.filteredValues()))},dependencies:[we,Tn,Se,ge,Ae,ht,su,Ze,dn],encapsulation:2})}}return t})();var TP=(()=>{class t{constructor(){this.field={},this.changed=new k,this.value=new Date}get date(){return this.value}set date(e){this.value!==e&&(this.value=e,this.field.value=da("%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=da("%Y-01-01"):this.field.value==="2000-01-01"&&(this.field.value=da("%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=S({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=A();l(0,"mat-form-field",1)(1,"mat-label"),h(2),d(),l(3,"input",2),W("ngModelChange",function(s){return C(r),G(o.date,s)||(o.date=s),w(s)}),d(),T(4,"mat-datepicker-toggle",3)(5,"mat-datepicker",null,0),d()}if(n&2){let r=Ge(6);u(2),F(" ",o.field.gui.label," "),u(),_("matDatepicker",r),H("ngModel",o.date),_("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0),u(),_("for",r)}},dependencies:[st,we,Se,ge,Ae,Ui,mt,Bg,sc,gu],encapsulation:2})}}return t})();function pK(t,i){if(t&1){let e=A();l(0,"mat-chip-row",5),b("removed",function(){let o=C(e).$implicit,r=g();return w(r.remove(o))}),h(1),l(2,"i",6),h(3,"cancel"),d()()}if(t&2){let e=i.$implicit,n=g();_("removable",n.field.gui.readonly!==!0),u(),F(" ",e," ")}}var IP=(()=>{class t{constructor(){this.field={},this.changed=new k,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=S({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){let r=A();l(0,"mat-form-field",1)(1,"mat-label"),h(2),d(),l(3,"mat-chip-grid",2,0),b("change",function(){return C(r),w(o.changed.emit(o))}),oe(5,pK,4,2,"mat-chip-row",3,le),l(7,"input",4),b("matChipInputTokenEnd",function(s){return C(r),w(o.add(s))}),d()()()}if(n&2){let r=Ge(4);u(2),F(" ",o.field.gui.label," "),u(),_("disabled",o.field.gui.readonly===!0),u(2),re(o.field.value),u(2),_("placeholder",o.field.gui.tooltip)("matChipInputFor",r)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},dependencies:[ge,Ae,tP,nP,eP,sx],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]})}}return t})();var WRe=Mu(RP());var OP=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t,bootstrap:[hP]})}static{this.\u0275inj=X({providers:[j,te,{provide:va,useClass:fP},W0(G0())],imports:[ad,QR,YO,lP,Fk.forRoot({echarts:()=>import("./chunk-T47LOWTI.js")})]})}}return t})();FM(_f,function(){return[To,gP,vP,bP,yP,CP,wP,xP,SP,EP,MP,TP,IP,_P]},[]);yf.production&&void 0;V0().bootstrapModule(OP).catch(t=>console.log(t)); +`],encapsulation:2,changeDetection:0})}return t})();function hw(t){return t?.nodeName==="TD"}function fw(t){let i;return hw(t)?i=t:hw(t.parentNode)?i=t.parentNode:hw(t.parentNode?.parentNode)&&(i=t.parentNode.parentNode),i?.getAttribute("data-mat-row")!=null?i:null}function gw(t,i,e){return e!==null&&i!==e&&t=i&&t===e}function vw(t,i,e,n){return n&&i!==null&&e!==null&&i!==e&&t>=i&&t<=e}function DR(t){let i=t.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var mo=class{start;end;_disableStructuralEquivalency;constructor(i,e){this.start=i,this.end=e}},fu=(()=>{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){Dp()};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),Oq=(()=>{class t extends fu{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)(le(Pn))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();function Pq(t,i){return t||new Oq(i)}var kR={provide:fu,deps:[[new Co,new hr,fu],Pn],useFactory:Pq};var AR=new R("MAT_DATE_RANGE_SELECTION_STRATEGY");var bw=7,Fq=0,SR=(()=>{class t{_changeDetectorRef=p(De);_dateFormats=p(fa,{optional:!0});_dateAdapter=p(Pn,{optional:!0});_dir=p(Pt,{optional:!0});_rangeStrategy=p(AR,{optional:!0});_rerenderSubscription=be.EMPTY;_selectionKeyPressed;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 mo?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new k;_userSelection=new k;dragStarted=new k;dragEnded=new k;activeDateChange=new k;_matCalendarBody;_monthLabel;_weeks;_firstWeekOffset;_rangeStart;_rangeEnd;_comparisonRangeStart;_comparisonRangeEnd;_previewStart;_previewEnd;_isRange;_todayDate;_weekdays;constructor(){p(yt).load(eo),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(xt(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 mo?(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&&!Et(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=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(bw+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%bw,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=this._getCellCompareValue(r.start),this._previewEnd=this._getCellCompareValue(r.end),this.activeDrag&&o){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,e);a&&(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end))}this._changeDetectorRef.detectChanges()}}_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:Fq++}));this._weekdays=r.slice(e).concat(r.slice(0,e))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames();this._weeks=[[]];for(let o=0,r=this._firstWeekOffset;o=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 mo?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&me(rc,5),n&2){let r;q(r=Y())&&(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:[je],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&&(l(0,"table",0)(1,"thead",1)(2,"tr"),oe(3,yq,5,2,"th",2,IR),d(),l(5,"tr",3),I(6,"th",4),d()(),l(7,"tbody",5),b("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&&(u(3),re(o._weekdays),u(4),_("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:[rc],encapsulation:2,changeDetection:0})}return t})(),Hi=24,yw=4,ER=(()=>{class t{_changeDetectorRef=p(De);_dateAdapter=p(Pn,{optional:!0});_dir=p(Pt,{optional:!0});_rerenderSubscription=be.EMPTY;_selectionKeyPressed;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),RR(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof mo?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new k;yearSelected=new k;activeDateChange=new k;_matCalendarBody;_years;_todayYear;_selectedYear;constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(xt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let n=this._dateAdapter.getYear(this._activeDate)-pu(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let o=0,r=[];othis._createCellForYear(a))),r=[]);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,-yw);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,yw);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-pu(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Hi-pu(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Hi*10:-Hi);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Hi*10:Hi);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 pu(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 hu(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(De);_dateFormats=p(fa,{optional:!0});_dateAdapter=p(Pn,{optional:!0});_dir=p(Pt,{optional:!0});_rerenderSubscription=be.EMPTY;_selectionKeyPressed;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 mo?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new k;monthSelected=new k;activeDateChange=new k;_matCalendarBody;_months;_yearLabel;_todayMonth;_selectedMonth;constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(xt(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=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,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 hu(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(ac);calendar=p(Cw);_dateAdapter=p(Pn,{optional:!0});_dateFormats=p(fa,{optional:!0});constructor(){p(yt).load(eo);let e=p(De);this.calendar.stateChanges.subscribe(()=>e.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Hi)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Hi)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(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):RR(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-pu(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Hi-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(ut).getId("mat-calendar-period-label-");static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Cq,decls:17,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(n,o){n&1&&(Le(),l(0,"div",0)(1,"div",1)(2,"span",2),h(3),d(),l(4,"button",3),b("click",function(){return o.currentPeriodClicked()}),l(5,"span",4),h(6),d(),on(),l(7,"svg",5),I(8,"polygon",6),d()(),vr(),I(9,"div",7),ue(10),l(11,"button",8),b("click",function(){return o.previousClicked()}),on(),l(12,"svg",9),I(13,"path",10),d()(),vr(),l(14,"button",11),b("click",function(){return o.nextClicked()}),on(),l(15,"svg",9),I(16,"path",12),d()()()()),n&2&&(u(2),_("id",o._periodButtonLabelId),u(),ae(o.periodButtonDescription),u(),ne("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),u(2),ae(o.periodButtonText),u(),X("mat-calendar-invert",o.calendar.currentView!=="month"),u(4),_("disabled",!o.previousEnabled()),ne("aria-label",o.prevButtonLabel),u(3),_("disabled",!o.nextEnabled()),ne("aria-label",o.nextButtonLabel))},dependencies:[ye,wn],encapsulation:2,changeDetection:0})}return t})(),Cw=(()=>{class t{_dateAdapter=p(Pn,{optional:!0});_dateFormats=p(fa,{optional:!0});_changeDetectorRef=p(De);_elementRef=p(Z);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof mo?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new k;yearSelected=new k;monthSelected=new k;viewChanged=new k(!0);_userSelection=new k;_userDragDrop=new k;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.viewChanged.emit(n)}_currentView;_activeDrag=null;stateChanges=new z;constructor(){this._intlChanges=p(ac).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new ri(this.headerComponent||PR),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(Ji())&&(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 mo||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=S({type:t,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&(me(SR,5),me(MR,5),me(ER,5)),n&2){let r;q(r=Y())&&(o.monthView=r.first),q(r=Y())&&(o.yearView=r.first),q(r=Y())&&(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:[we([kR]),je],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&&(E(0,wq,0,0,"ng-template",0),l(1,"div",1),E(2,xq,1,11,"mat-month-view",2)(3,Dq,1,6,"mat-year-view",3)(4,Sq,1,6,"mat-multi-year-view",3),d()),n&2){let r;_("cdkPortalOutlet",o._calendarHeaderPortal),u(2),T((r=o.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1)}},dependencies:[Kn,Od,SR,MR,ER],styles:[`.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})(),FR=new R("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=p(At);return()=>t.scrollStrategies.reposition()}});function Lq(t){return()=>t.scrollStrategies.reposition()}var Vq={provide:FR,deps:[At],useFactory:Lq},NR=(()=>{class t{_elementRef=p(Z);_animationsDisabled=p(tt,{optional:!0})==="NoopAnimations";_changeDetectorRef=p(De);_globalModel=p(fu);_dateAdapter=p(Pn);_ngZone=p(ie);_rangeSelectionStrategy=p(AR,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new z;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(p(yt).load(eo),this._closeButtonText=p(ac).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,n=p(kt);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 mo;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=S({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&me(Cw,5),n&2){let r;q(r=Y())&&(o._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(n,o){n&2&&(Bt(o.color?"mat-"+o.color:""),X("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","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){if(n&1&&(l(0,"div",0)(1,"mat-calendar",1),b("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(),E(2,Eq,0,0,"ng-template",2),l(3,"button",3),b("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),h(4),d()()),n&2){let r;X("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),ne("aria-modal",!0)("aria-labelledby",(r=o._dialogLabelId)!==null&&r!==void 0?r:void 0),u(),Bt(o.datepicker.panelClass),_("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),u(),_("cdkPortalOutlet",o._actionsPortal),u(),X("cdk-visually-hidden",!o._closeButtonFocused),_("color",o.color||"primary"),u(),ae(o._closeButtonText)}},dependencies:[ky,Cw,Kn,ye],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}} +`],encapsulation:2,changeDetection:0})}return t})(),TR=(()=>{class t{_overlay=p(At);_viewContainerRef=p(Rt);_dateAdapter=p(Pn,{optional:!0});_dir=p(Pt,{optional:!0});_model=p(fu);_scrollStrategy=p(FR);_inputStateChanges=be.EMPTY;_document=p(he);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;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 k;monthSelected=new k;viewChanged=new k(!0);dateClass;openedStream=new k;closedStream=new k;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=lI(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=p(ut).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;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new z;_injector=p(Ie);_changeDetectorRef=p(De);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 Fl&&(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=Ji(),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(wt(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 ri(NR,this._viewContainerRef),o=this._overlayRef=this._overlay.create(new si({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?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`}));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||Ht(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=this._overlay.position().flexibleConnectedTo(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 _t(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(Ke(o=>o.keyCode===27&&!Et(o)||this.datepickerInput&&Et(o,"altKey")&&o.keyCode===38&&n.every(r=>!Et(o,r)))))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",$],disabled:[2,"disabled","disabled",$],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",$],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",$]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[je]})}return t})(),zg=(()=>{class t extends TR{static \u0275fac=(()=>{let e;return function(o){return(e||(e=nt(t)))(o||t)}})();static \u0275cmp=S({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[we([kR,{provide:TR,useExisting:t}]),_e],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})(),oc=class{target;targetElement;value;constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value}},Bq=(()=>{class t{_elementRef=p(Z);_dateAdapter=p(Pn,{optional:!0});_dateFormats=p(fa,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_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 k;dateInput=new k;stateChanges=new z;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=be.EMPTY;_localeSubscription=be.EMPTY;_pendingValue;_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 oc(this,this._elementRef.nativeElement)),this.dateChange.emit(new oc(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){jq(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)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let n=["ctrlKey","shiftKey","metaKey"];Et(e,"altKey")&&e.keyCode===40&&n.every(r=>!Et(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let n=this._lastValueValid,o=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let r=!this._dateAdapter.sameDate(o,this.value);!o||r?this._cvaOnChange(o):(e&&!this.value&&this._cvaOnChange(o),n!==this._lastValueValid&&this._validatorOnChange()),r&&(this._assignValue(o),this.dateInput.emit(new oc(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new oc(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){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let n=this._getDateFilter();return!n||n(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",$]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[je]})}return t})();function jq(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 zq={provide:mi,useExisting:tn(()=>sc),multi:!0},Uq={provide:ro,useExisting:tn(()=>sc),multi:!0},sc=(()=>{class t extends Bq{_formField=p(so,{optional:!0});_closedSubscription=be.EMPTY;_openedSubscription=be.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=yi(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;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;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;constructor(){super(),this._validator=ir.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=B({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&b("input",function(a){return o._onInput(a.target.value)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(a){return o._onKeydown(a)}),n&2&&(bn("disabled",o.disabled),ne("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:[we([zq,Uq,{provide:pg,useExisting:t}]),_e]})}return t})(),Hq=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),gu=(()=>{class t{_intl=p(ac);_changeDetectorRef=p(De);_stateChanges=be.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=p(new Nn("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:se(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:se(),o=this.datepicker?_t(this.datepicker.openedStream,this.datepicker.closedStream):se();this._stateChanges.unsubscribe(),this._stateChanges=_t(this._intl.changes,e,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,r){if(n&1&&ze(r,Hq,5),n&2){let a;q(a=Y())&&(o._customIcon=a.first)}},viewQuery:function(n,o){if(n&1&&me(Mq,5),n&2){let r;q(r=Y())&&(o._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&b("click",function(a){return o._open(a)}),n&2&&(ne("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),X("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",$],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[je],ngContentSelectors:Iq,decls:4,vars:7,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(n,o){n&1&&(Le(Tq),l(0,"button",1,0),E(2,kq,2,0,":svg:svg",2),ue(3),d()),n&2&&(_("disabled",o.disabled)("disableRipple",o.disableRipple),ne("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("tabindex",o.disabled?-1:o.tabIndex)("aria-expanded",o.datepicker?o.datepicker.opened:null),u(2),T(o._customIcon?-1:2))},dependencies:[wn],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-on-surface-variant))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}} +`],encapsulation:2,changeDetection:0})}return t})();var LR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[ac,Vq],imports:[nr,jn,ms,Si,fe,NR,gu,PR,Li]})}return t})();function Wq(t,i){t&1&&(l(0,"uds-translate"),h(1,"Edit rule"),d())}function Gq(t,i){t&1&&(l(0,"uds-translate"),h(1,"New rule"),d())}function $q(t,i){if(t&1&&(l(0,"mat-option",9),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.value," ")}}function qq(t,i){if(t&1&&(l(0,"mat-option",9),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.value," ")}}function Yq(t,i){if(t&1&&(l(0,"mat-option",9),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.value," ")}}function Qq(t,i){if(t&1){let e=A();l(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),h(3,"Week days"),d()(),l(4,"mat-select",19),W("ngModelChange",function(o){C(e);let r=g();return G(r.wDays,o)||(r.wDays=o),w(o)}),oe(5,Yq,2,2,"mat-option",9,ce),d()()}if(t&2){let e=g();u(4),H("ngModel",e.wDays),u(),re(e.weekDays)}}function Kq(t,i){if(t&1){let e=A();l(0,"mat-form-field",10)(1,"mat-label")(2,"uds-translate"),h(3,"Repeat every"),d()(),l(4,"input",7),W("ngModelChange",function(o){C(e);let r=g();return G(r.rule.interval,o)||(r.rule.interval=o),w(o)}),d(),l(5,"div",20),h(6),d()()}if(t&2){let e=g();u(4),H("ngModel",e.rule.interval),u(2),F("\xA0",e.frequency(),"")}}var Ug={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")]},Hg={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},BR=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],jR=(t,i=!1)=>{let e=new Array;for(let n=0;n<7;n++)t&1&&e.push(BR[n].substr(0,i?100:3)),t>>=1;return e.length?e.join(", "):django.gettext("(no days)")},zR=t=>{t.frequency==="WEEKDAYS"?t.interval=jR(t.interval):t.interval=t.interval+" "+Ug[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+Hg[t.duration_unit]},xw=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.dunits=Object.keys(Hg).map(a=>({id:a,value:Hg[a]})),this.freqs=Object.keys(Ug).map(a=>({id:a,value:Ug[a][2]})),this.weekDays=BR.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=Hy(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+=" "+jR(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")+" "+da(n,r),this.rule.end?e+=" "+django.gettext("until")+" "+da(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+" "+Hg[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)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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=A();l(0,"h4",2),E(1,Wq,2,0,"uds-translate"),dt(2,"notEmpty"),E(3,Gq,2,0,"uds-translate"),dt(4,"isEmpty"),d(),l(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),h(10,"Name"),d()(),l(11,"input",4),W("ngModelChange",function(s){return C(r),G(o.rule.name,s)||(o.rule.name=s),w(s)}),d()(),l(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),h(15,"Comments"),d()(),l(16,"input",4),W("ngModelChange",function(s){return C(r),G(o.rule.comments,s)||(o.rule.comments=s),w(s)}),d()(),l(17,"h3")(18,"uds-translate"),h(19,"Event"),d()(),l(20,"mat-form-field",5)(21,"mat-label")(22,"uds-translate"),h(23,"Start time"),d()(),l(24,"input",6),W("ngModelChange",function(s){return C(r),G(o.startTime,s)||(o.startTime=s),w(s)}),d()(),l(25,"mat-form-field",5)(26,"mat-label")(27,"uds-translate"),h(28,"Duration"),d()(),l(29,"input",7),W("ngModelChange",function(s){return C(r),G(o.rule.duration,s)||(o.rule.duration=s),w(s)}),d()(),l(30,"mat-form-field",5)(31,"mat-label")(32,"uds-translate"),h(33,"Duration units"),d()(),l(34,"mat-select",8),W("ngModelChange",function(s){return C(r),G(o.rule.duration_unit,s)||(o.rule.duration_unit=s),w(s)}),oe(35,$q,2,2,"mat-option",9,ce),d()(),l(37,"h3"),h(38," Repetition "),d(),l(39,"mat-form-field",10)(40,"mat-label")(41,"uds-translate"),h(42," Start date "),d()(),l(43,"input",11),W("ngModelChange",function(s){return C(r),G(o.startDate,s)||(o.startDate=s),w(s)}),d(),I(44,"mat-datepicker-toggle",12)(45,"mat-datepicker",null,0),d(),l(47,"mat-form-field",10)(48,"mat-label")(49,"uds-translate"),h(50," Repeat until date "),d()(),l(51,"input",13),W("ngModelChange",function(s){return C(r),G(o.endDate,s)||(o.endDate=s),w(s)}),d(),I(52,"mat-datepicker-toggle",12)(53,"mat-datepicker",null,1),d(),l(55,"div",14)(56,"mat-form-field",10)(57,"mat-label")(58,"uds-translate"),h(59,"Frequency"),d()(),l(60,"mat-select",15),W("ngModelChange",function(s){return C(r),G(o.rule.frequency,s)||(o.rule.frequency=s),w(s)}),b("valueChange",function(){return C(r),w(o.rule.interval=1)}),oe(61,qq,2,2,"mat-option",9,ce),d()(),E(63,Qq,7,1,"mat-form-field",10)(64,Kq,7,2,"mat-form-field",10),d(),l(65,"h3")(66,"uds-translate"),h(67,"Summary"),d()(),l(68,"div",16),h(69),d()()(),l(70,"mat-dialog-actions")(71,"button",17)(72,"uds-translate"),h(73,"Cancel"),d()(),l(74,"button",18),b("click",function(){return C(r),w(o.save())}),l(75,"uds-translate"),h(76,"Ok"),d()()()}if(n&2){let r=Ye(46),a=Ye(54);u(),T(vt(2,19,o.rule.id)?1:-1),u(2),T(vt(4,21,o.rule.id)?3:-1),u(8),H("ngModel",o.rule.name),u(5),H("ngModel",o.rule.comments),u(8),H("ngModel",o.startTime),u(5),H("ngModel",o.rule.duration),u(5),H("ngModel",o.rule.duration_unit),u(),re(o.dunits),u(8),_("matDatepicker",r),H("ngModel",o.startDate),u(),_("for",r),u(7),_("matDatepicker",a),H("ngModel",o.endDate),_("placeholder",o.FOREVER_STRING),u(),_("for",a),u(8),H("ngModel",o.rule.frequency),u(),re(o.freqs),u(2),T(o.rule.frequency==="WEEKDAYS"?63:-1),u(),T(o.rule.frequency!=="WEEKDAYS"&&o.rule.frequency!=="NEVER"?64:-1),u(5),F(" ",o.summary()," "),u(5),_("disabled",o.updateRuleData()!==null||o.rule.name==="")}},dependencies:[st,ji,xe,Se,ye,Ft,Ue,We,He,ge,Ae,Ui,pt,ht,Ze,zg,sc,gu,de,JA,mn],styles:[".mat-mdc-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-mdc-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-mdc-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-mdc-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#23238580;color:#fff}"]})}}return t})();var Zq=t=>["/pools","calendars",t];function Xq(t,i){t&1&&(l(0,"uds-translate"),h(1,"Rules"),d())}function Jq(t,i){if(t&1){let e=A();l(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),E(4,Xq,2,0,"ng-template",8),l(5,"div",9)(6,"uds-table",10),b("newAction",function(o){C(e);let r=g();return w(r.onNewRule(o))})("editAction",function(o){C(e);let r=g();return w(r.onEditRule(o))})("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteRule(o))}),d()()()()()()}if(t&2){let e=g();u(2),_("@.disabled",!0),u(4),_("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 UR=(()=>{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){xw.launch(this.api,this.calendarRules).subscribe(()=>e.table.reloadPage())}onEditRule(e){xw.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){zR(e)}static{this.\u0275fac=function(n){return new(n||t)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),h(4,"arrow_back"),d()(),h(5," \xA0"),I(6,"img",4),h(7),d(),E(8,Jq,7,7,"div",5),dt(9,"notEmpty"),d()),n&2&&(u(2),_("routerLink",Qn(6,Zq,o.calendar?o.calendar.id:"")),u(4),_("src",o.api.staticURL("admin/img/icons/calendars.png"),Ee),u(),F(" ",o.calendar==null?null:o.calendar.name," "),u(),T(vt(9,4,o.calendar)?8:-1))},dependencies:[cn,Yt,Qt,Jt,de,Me,mn],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 eY='event'+django.gettext("Set time mark")+"",Dw=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o,this.cButtons=[{id:"timemark",html:eY,type:ot.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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"uds-table",0),b("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&&_("rest",o.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)("onItem",o.processElement)},dependencies:[Me],encapsulation:2})}}return t})();var tY=t=>["/pools","accounts",t];function nY(t,i){t&1&&(l(0,"uds-translate"),h(1,"Account usage"),d())}function iY(t,i){if(t&1){let e=A();l(0,"div",5)(1,"div",6)(2,"mat-tab-group",7)(3,"mat-tab"),E(4,nY,2,0,"ng-template",8),l(5,"div",9)(6,"uds-table",10),b("deleteAction",function(o){C(e);let r=g();return w(r.onDeleteUsage(o))}),d()()()()()()}if(t&2){let e=g();u(2),_("@.disabled",!0),u(4),_("rest",e.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("tableId","account-d-usage"+e.account.id)}}var HR=(()=>{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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),h(4,"arrow_back"),d()(),h(5," \xA0"),I(6,"img",4),h(7),d(),E(8,iY,7,6,"div",5),dt(9,"notEmpty"),d()),n&2&&(u(2),_("routerLink",Qn(6,tY,o.account?o.account.id:"")),u(4),_("src",o.api.staticURL("admin/img/icons/accounts.png"),Ee),u(),F(" ",o.account==null?null:o.account.name," "),u(),T(vt(9,4,o.account)?8:-1))},dependencies:[cn,Yt,Qt,Jt,de,Me,mn],encapsulation:2})}}return t})();function oY(t,i){t&1&&(l(0,"uds-translate"),h(1,"New image for"),d())}function rY(t,i){t&1&&(l(0,"uds-translate"),h(1,"Edit for"),d())}var Sw=(()=>{class t{constructor(e,n,o,r){this.api=e,this.rest=n,this.dialogRef=o,this.onSave=new k(!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)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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=A();l(0,"h4",1),E(1,oY,2,0,"uds-translate")(2,rY,2,0,"uds-translate"),d(),l(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),h(8,"Image name"),d()(),l(9,"input",3),W("ngModelChange",function(s){return C(r),G(o.image.name,s)||(o.image.name=s),w(s)}),d()(),l(10,"input",4,0),b("change",function(s){return C(r),w(o.onFileChanged(s))}),d(),l(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),h(15,"Image (click to change)"),d()(),l(16,"input",5),b("click",function(){C(r);let s=Ye(11);return w(s.click())}),d(),l(17,"div",6),b("click",function(){C(r);let s=Ye(11);return w(s.click())}),I(18,"div",7),d()(),l(19,"div",8)(20,"uds-translate"),h(21,' For optimal results, use "squared" images. '),d(),l(22,"uds-translate"),h(23," The image will be resized on upload to "),d(),h(24),d()()(),l(25,"mat-dialog-actions")(26,"button",9)(27,"uds-translate"),h(28,"Cancel"),d()(),l(29,"button",10),b("click",function(){return C(r),w(o.save())}),l(30,"uds-translate"),h(31,"Ok"),d()()()}n&2&&(u(),T(o.image.id?-1:1),u(),T(o.image.id?2:-1),u(7),H("ngModel",o.image.name),u(7),_("hidden",!0),u(2),_("ngStyle",o.background()),u(6),wi(" ",o.api.config.image_size[0],"x",o.api.config.image_size[1]," "))},dependencies:[Zc,st,xe,Se,ye,Ft,Ue,We,He,ge,Ae,pt,de],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 Ew=(()=>{class t{constructor(e,n,o){this.route=e,this.rest=n,this.api=o}ngOnInit(){}onNew(e){Sw.launch(this.api).subscribe(()=>e.table.reloadPage())}onEdit(e){Sw.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)(y(ke),y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"uds-table",0),b("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&&_("rest",o.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",o.api.config.admin.page_size)},dependencies:[Me],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]})}}return t})();var WR=Mu(lg());var aY='assessment'+django.gettext("Generate report")+"",GR=(()=>{class t{constructor(e,n){this.rest=e,this.api=n,this.customButtons=[{id:"genreport",html:aY,type:ot.SINGLE_SELECT}]}ngOnInit(){}generateReport(e){return N(this,null,function*(){let n=new qt;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,c=new Uint8Array(s);for(let f=0;f{(0,WR.saveAs)(m,r.filename,{autoBom:!1})})})}static{this.\u0275fac=function(n){return new(n||t)(y(te),y(j))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-reports"]],standalone:!1,decls:1,vars:6,consts:[["icon","reports",3,"customButtonAction","rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize"]],template:function(n,o){n&1&&(l(0,"uds-table",0),b("customButtonAction",function(a){return o.generateReport(a)}),d()),n&2&&_("rest",o.rest.reports)("multiSelect",!1)("allowExport",!1)("hasPermissions",!1)("customButtons",o.customButtons)("pageSize",o.api.config.admin.page_size)},dependencies:[Me],styles:[".mat-column-group{max-width:16rem} .mat-column-name{max-width:32rem}"]})}}return t})();var $R=(()=>{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)(y(j),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div")(1,"uds-table",0),b("newAction",function(a){return o.onNew(a)})("editAction",function(a){return o.onEdit(a)})("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(u(),_("rest",o.rest.notifiers)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Me],encapsulation:2})}}return t})();function sY(t,i){if(t&1&&h(0),t&2){let e=g().$implicit;F(" ",e," ")}}function lY(t,i){if(t&1){let e=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),h(3),d(),l(4,"input",11),W("ngModelChange",function(o){C(e);let r=g(2).$implicit,a=g().$implicit,s=g(2);return G(s.config[a][r].value,o)||(s.config[a][r].value=o),w(o)}),d()()()}if(t&2){let e=g(2).$implicit,n=g().$implicit,o=g(2);u(3),ae(e),u(),_("type",o.config[n][e].crypt?"password":"text"),H("ngModel",o.config[n][e].value),_("matTooltip",o.config[n][e].help)}}function cY(t,i){if(t&1){let e=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),h(3),d(),l(4,"textarea",12),W("ngModelChange",function(o){C(e);let r=g(2).$implicit,a=g().$implicit,s=g(2);return G(s.config[a][r].value,o)||(s.config[a][r].value=o),w(o)}),d()()()}if(t&2){let e=g(2).$implicit,n=g().$implicit,o=g(2);u(3),ae(e),u(),H("ngModel",o.config[n][e].value),_("matTooltip",o.config[n][e].help)}}function dY(t,i){if(t&1){let e=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),h(3),d(),l(4,"input",13),W("ngModelChange",function(o){C(e);let r=g(2).$implicit,a=g().$implicit,s=g(2);return G(s.config[a][r].value,o)||(s.config[a][r].value=o),w(o)}),d()()()}if(t&2){let e=g(2).$implicit,n=g().$implicit,o=g(2);u(3),ae(e),u(),H("ngModel",o.config[n][e].value),_("matTooltip",o.config[n][e].help)}}function uY(t,i){if(t&1){let e=A();l(0,"div")(1,"div",14)(2,"mat-slide-toggle",15),W("ngModelChange",function(o){C(e);let r=g(2).$implicit,a=g().$implicit,s=g(2);return G(s.config[a][r].value,o)||(s.config[a][r].value=o),w(o)}),h(3),d()()()}if(t&2){let e=g(2).$implicit,n=g().$implicit,o=g(2);u(2),H("ngModel",o.config[n][e].value),_("matTooltip",o.config[n][e].help),u(),F(" ",e," ")}}function mY(t,i){if(t&1&&(l(0,"mat-option",16),h(1),d()),t&2){let e=i.$implicit;_("value",e),u(),F(" ",e," ")}}function pY(t,i){if(t&1){let e=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),h(3),d(),l(4,"mat-select",15),W("ngModelChange",function(o){C(e);let r=g(2).$implicit,a=g().$implicit,s=g(2);return G(s.config[a][r].value,o)||(s.config[a][r].value=o),w(o)}),oe(5,mY,2,2,"mat-option",16,ce),d()()()}if(t&2){let e=g(2).$implicit,n=g().$implicit,o=g(2);u(3),F(" ",e," "),u(),H("ngModel",o.config[n][e].value),_("matTooltip",o.config[n][e].help),u(),re(o.config[n][e].params)}}function hY(t,i){if(t&1){let e=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),h(3),d(),l(4,"input",17),W("ngModelChange",function(o){C(e);let r=g(2).$implicit,a=g().$implicit,s=g(2);return G(s.config[a][r].value,o)||(s.config[a][r].value=o),w(o)}),d()()()}if(t&2){let e=g(2).$implicit,n=g().$implicit,o=g(2);u(3),ae(e),u(),H("ngModel",o.config[n][e].value),_("matTooltip",o.config[n][e].help)}}function fY(t,i){}function gY(t,i){if(t&1){let e=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),h(3),d(),l(4,"input",18),W("ngModelChange",function(o){C(e);let r=g(2).$implicit,a=g().$implicit,s=g(2);return G(s.config[a][r].value,o)||(s.config[a][r].value=o),w(o)}),d()()()}if(t&2){let e=g(2).$implicit,n=g().$implicit,o=g(2);u(3),ae(e),u(),H("ngModel",o.config[n][e].value),_("matTooltip",o.config[n][e].help)}}function _Y(t,i){if(t&1){let e=A();l(0,"div")(1,"mat-form-field")(2,"mat-label"),h(3),d(),l(4,"input",19),W("ngModelChange",function(o){C(e);let r=g(2).$implicit,a=g().$implicit,s=g(2);return G(s.config[a][r].value,o)||(s.config[a][r].value=o),w(o)}),d()()()}if(t&2){let e=g(2).$implicit,n=g().$implicit,o=g(2);u(3),ae(e),u(),H("ngModel",o.config[n][e].value),_("matTooltip",o.config[n][e].help)}}function vY(t,i){if(t&1&&E(0,lY,5,4,"div")(1,cY,5,3,"div")(2,dY,5,3,"div")(3,uY,4,3,"div")(4,pY,7,3,"div")(5,hY,5,3,"div")(6,fY,0,0)(7,gY,5,3,"div")(8,_Y,5,3,"div"),t&2){let e,n=g().$implicit,o=g().$implicit,r=g(2);T((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 bY(t,i){if(t&1&&(l(0,"div",10),E(1,vY,9,1),d()),t&2){let e=i.$implicit,n=g().$implicit,o=g(2);u(),T(o.config[n][e]?1:-1)}}function yY(t,i){if(t&1&&(l(0,"mat-tab"),E(1,sY,1,1,"ng-template",8),l(2,"div",9),oe(3,bY,2,1,"div",10,ce),d()()),t&2){let e=i.$implicit,n=g(2);u(3),re(n.configElements(e))}}function CY(t,i){if(t&1){let e=A();l(0,"div",3)(1,"div",4)(2,"mat-tab-group",5),oe(3,yY,5,0,"mat-tab",null,ce),d(),l(5,"div",6)(6,"button",7),b("click",function(){C(e);let o=g();return w(o.save())}),l(7,"uds-translate"),h(8,"Save"),d()()()()()}if(t&2){let e=g();u(2),_("@.disabled",!0),u(),re(e.sections())}}var qR=["UDS","Security"],YR=["UDS ID"],QR=(()=>{class t{constructor(e,n){this.rest=e,this.api=n}ngOnInit(){return N(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)&&!qR.includes(n)&&e.push(n);return e=e.sort((n,o)=>n.localeCompare(o)),e.unshift.apply(e,qR),e}configElements(e){let n=[],o=this.config[e];if(o)for(let r in o)o.hasOwnProperty(r)&&!(e==="UDS"&&YR.includes(r))&&n.push(r);return n=n.sort((r,a)=>r.localeCompare(a)),e==="UDS"&&n.unshift.apply(n,YR),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)(y(te),y(j))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"div",1),I(2,"img",2),h(3,"\xA0"),l(4,"uds-translate"),h(5,"UDS Configuration"),d()(),E(6,CY,9,1,"div",3),dt(7,"notEmpty"),d()),n&2&&(u(2),_("src",o.api.staticURL("admin/img/icons/configuration.png"),Ee),u(4),T(vt(7,2,o.config)?6:-1))},dependencies:[st,ji,xe,Se,ye,To,ge,Ae,pt,ht,Ze,Yt,Qt,Jt,rr,de,mn],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 KR=(()=>{class t{constructor(e,n,o){this.api=e,this.route=n,this.rest=o}ngOnInit(){}onDelete(e){return N(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)(y(j),y(ke),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div")(1,"uds-table",0),b("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(u(),_("rest",o.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Me],encapsulation:2})}}return t})();var ZR=(()=>{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)(y(j),y(ke),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div")(1,"uds-table",0),b("deleteAction",function(a){return o.onDelete(a)}),d()()),n&2&&(u(),_("rest",o.rest.serversTokens)("multiSelect",!0)("allowExport",!0)("pageSize",o.api.config.admin.page_size))},dependencies:[Me],encapsulation:2})}}return t})();var wY=[{path:"",canActivate:[Pk],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:zk},{path:"services/providers",component:YC},{path:"services/providers/:provider/detail",component:QC},{path:"services/providers/:provider",component:YC},{path:"services/providers/:provider/detail/:service",component:QC},{path:"services/servers",component:KC},{path:"services/servers/:server/detail",component:rR},{path:"services/servers/:server",component:KC},{path:"authenticators",component:ZC},{path:"authenticators/:authenticator/detail",component:Og},{path:"authenticators/:authenticator",component:ZC},{path:"authenticators/:authenticator/detail/groups/:group",component:Og},{path:"authenticators/:authenticator/detail/users/:user",component:Og},{path:"mfas",component:XC},{path:"mfas/:mfa",component:XC},{path:"osmanagers",component:iw},{path:"osmanagers/:osmanager",component:iw},{path:"connectivity/transports",component:ow},{path:"connectivity/transports/:transport",component:ow},{path:"connectivity/networks",component:rw},{path:"connectivity/networks/:network",component:rw},{path:"connectivity/tunnels",component:aw},{path:"connectivity/tunnels/:tunnel",component:aw},{path:"connectivity/tunnels/:tunnel/detail",component:pR},{path:"pools/service-pools",component:sw},{path:"pools/service-pools/:pool",component:sw},{path:"pools/service-pools/:pool/detail",component:Bg},{path:"pools/meta-pools",component:dw},{path:"pools/meta-pools/:metapool",component:dw},{path:"pools/meta-pools/:metapool/detail",component:wR},{path:"pools/pool-groups",component:mw},{path:"pools/pool-groups/:poolgroup",component:mw},{path:"pools/calendars",component:pw},{path:"pools/calendars/:calendar",component:pw},{path:"pools/calendars/:calendar/detail",component:UR},{path:"pools/accounts",component:Dw},{path:"pools/accounts/:account",component:Dw},{path:"pools/accounts/:account/detail",component:HR},{path:"tools/gallery",component:Ew},{path:"tools/gallery/:image",component:Ew},{path:"tools/reports",component:GR},{path:"tools/notifiers",component:$R},{path:"tools/tokens/actor",component:KR},{path:"tools/tokens/server",component:ZR},{path:"tools/configuration",component:QR}]}],XR=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ee({type:t})}static{this.\u0275inj=J({imports:[Ch.forRoot(wY,{}),Ch]})}}return t})();var ft=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}(ft||{}),Ao="*";function JR(t,i=null){return{type:ft.Sequence,steps:t,options:i}}function Mw(t){return{type:ft.Style,styles:t,offset:null}}var Fr=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}},lc=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}},_u="!";function eO(t){return new Q(3e3,!1)}function xY(){return new Q(3100,!1)}function DY(){return new Q(3101,!1)}function SY(t){return new Q(3001,!1)}function EY(t){return new Q(3003,!1)}function MY(t){return new Q(3004,!1)}function nO(t,i){return new Q(3005,!1)}function iO(){return new Q(3006,!1)}function oO(){return new Q(3007,!1)}function rO(t,i){return new Q(3008,!1)}function aO(t){return new Q(3002,!1)}function sO(t,i,e,n,o){return new Q(3010,!1)}function lO(){return new Q(3011,!1)}function cO(){return new Q(3012,!1)}function dO(){return new Q(3200,!1)}function uO(){return new Q(3202,!1)}function mO(){return new Q(3013,!1)}function pO(t){return new Q(3014,!1)}function hO(t){return new Q(3015,!1)}function fO(t){return new Q(3016,!1)}function gO(t,i){return new Q(3404,!1)}function TY(t){return new Q(3502,!1)}function _O(t){return new Q(3503,!1)}function vO(){return new Q(3300,!1)}function bO(t){return new Q(3504,!1)}function yO(t){return new Q(3301,!1)}function CO(t,i){return new Q(3302,!1)}function wO(t){return new Q(3303,!1)}function xO(t,i){return new Q(3400,!1)}function DO(t){return new Q(3401,!1)}function SO(t){return new Q(3402,!1)}function EO(t,i){return new Q(3505,!1)}function Nr(t){switch(t.length){case 0:return new Fr;case 1:return t[0];default:return new lc(t)}}function Aw(t,i,e=new Map,n=new Map){let o=[],r=[],a=-1,s=null;if(i.forEach(c=>{let m=c.get("offset"),f=m==a,v=f&&s||new Map;c.forEach((D,x)=>{let M=x,O=D;if(x!=="offset")switch(M=t.normalizePropertyName(M,o),O){case _u:O=e.get(x);break;case Ao:O=n.get(x);break;default:O=t.normalizeStyleValue(x,M,O,o);break}v.set(M,O)}),f||r.push(v),s=v,a=m}),o.length)throw TY(o);return r}function Wg(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&Tw(e,"start",t)));break;case"done":t.onDone(()=>n(e&&Tw(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&Tw(e,"destroy",t)));break}}function Tw(t,i,e){let n=e.totalTime,o=!!e.disabled,r=Gg(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 Gg(t,i,e,n,o="",r=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:r,disabled:!!a}}function Ii(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function Rw(t){let i=t.indexOf(":"),e=t.substring(1,i),n=t.slice(i+1);return[e,n]}var IY=typeof document>"u"?null:document.documentElement;function $g(t){let i=t.parentNode||t.host||null;return i===IY?null:i}function kY(t){return t.substring(1,6)=="ebkit"}var Ts=null,tO=!1;function MO(t){Ts||(Ts=AY()||{},tO=Ts.style?"WebkitAppearance"in Ts.style:!1);let i=!0;return Ts.style&&!kY(t)&&(i=t in Ts.style,!i&&tO&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Ts.style)),i}function AY(){return typeof document<"u"?document.body:null}function Ow(t,i){for(;i;){if(i===t)return!0;i=$g(i)}return!1}function Pw(t,i,e){if(e)return Array.from(t.querySelectorAll(i));let n=t.querySelector(i);return n?[n]:[]}var RY=1e3,Fw="{{",OY="}}",Nw="ng-enter",qg="ng-leave",vu="ng-trigger",bu=".ng-trigger",Lw="ng-animating",Yg=".ng-animating";function ar(t){if(typeof t=="number")return t;let i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:Iw(parseFloat(i[1]),i[2])}function Iw(t,i){switch(i){case"s":return t*RY;default:return t}}function yu(t,i,e){return t.hasOwnProperty("duration")?t:PY(t,i,e)}function PY(t,i,e){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,o,r=0,a="";if(typeof t=="string"){let s=t.match(n);if(s===null)return i.push(eO(t)),{duration:0,delay:0,easing:""};o=Iw(parseFloat(s[1]),s[2]);let c=s[3];c!=null&&(r=Iw(parseFloat(c),s[4]));let m=s[5];m&&(a=m)}else o=t;if(!e){let s=!1,c=i.length;o<0&&(i.push(xY()),s=!0),r<0&&(i.push(DY()),s=!0),s&&i.splice(c,0,eO(t))}return{duration:o,delay:r,easing:a}}function TO(t){return t.length?t[0]instanceof Map?t:t.map(i=>new Map(Object.entries(i))):[]}function Ro(t,i,e){i.forEach((n,o)=>{let r=Qg(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=n})}function Ca(t,i){i.forEach((e,n)=>{let o=Qg(n);t.style[o]=""})}function cc(t){return Array.isArray(t)?t.length==1?t[0]:JR(t):t}function IO(t,i,e){let n=i.params||{},o=Vw(t);o.length&&o.forEach(r=>{n.hasOwnProperty(r)||e.push(SY(r))})}var kw=new RegExp(`${Fw}\\s*(.+?)\\s*${OY}`,"g");function Vw(t){let i=[];if(typeof t=="string"){let e;for(;e=kw.exec(t);)i.push(e[1]);kw.lastIndex=0}return i}function dc(t,i,e){let n=`${t}`,o=n.replace(kw,(r,a)=>{let s=i[a];return s==null&&(e.push(EY(a)),s=""),s.toString()});return o==n?t:o}var FY=/-+([a-z0-9])/g;function Qg(t){return t.replace(FY,(...i)=>i[1].toUpperCase())}function kO(t,i){return t===0||i===0}function AO(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,Kg(t,s)))}}return i}function ki(t,i,e){switch(i.type){case ft.Trigger:return t.visitTrigger(i,e);case ft.State:return t.visitState(i,e);case ft.Transition:return t.visitTransition(i,e);case ft.Sequence:return t.visitSequence(i,e);case ft.Group:return t.visitGroup(i,e);case ft.Animate:return t.visitAnimate(i,e);case ft.Keyframes:return t.visitKeyframes(i,e);case ft.Style:return t.visitStyle(i,e);case ft.Reference:return t.visitReference(i,e);case ft.AnimateChild:return t.visitAnimateChild(i,e);case ft.AnimateRef:return t.visitAnimateRef(i,e);case ft.Query:return t.visitQuery(i,e);case ft.Stagger:return t.visitStagger(i,e);default:throw MY(i.type)}}function Kg(t,i){return window.getComputedStyle(t)[i]}var tx=(()=>{class t{validateStyleProperty(e){return MO(e)}containsElement(e,n){return Ow(e,n)}getParentElement(e){return $g(e)}query(e,n,o){return Pw(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,r,a,s=[],c){return new Fr(o,r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})(),ks=class{static NOOP=new tx},As=class{};var NY=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"]),t_=class extends As{normalizePropertyName(i,e){return Qg(i)}normalizeStyleValue(i,e,n,o){let r="",a=n.toString().trim();if(NY.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(nO(i,n))}return a+r}};var n_="*";function LY(t,i){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>VY(n,e,i)):e.push(t),e}function VY(t,i,e){if(t[0]==":"){let c=BY(t,e);if(typeof c=="function"){i.push(c);return}t=c}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(hO(t)),i;let o=n[1],r=n[2],a=n[3];i.push(RO(o,a));let s=o==n_&&a==n_;r[0]=="<"&&!s&&i.push(RO(a,o))}function BY(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 Zg=new Set(["true","1"]),Xg=new Set(["false","0"]);function RO(t,i){let e=Zg.has(t)||Xg.has(t),n=Zg.has(i)||Xg.has(i);return(o,r)=>{let a=t==n_||t==o,s=i==n_||i==r;return!a&&e&&typeof o=="boolean"&&(a=o?Zg.has(t):Xg.has(t)),!s&&n&&typeof r=="boolean"&&(s=r?Zg.has(i):Xg.has(i)),a&&s}}var UO=":self",jY=new RegExp(`s*${UO}s*,?`,"g");function HO(t,i,e,n){return new Ww(t).build(i,e,n)}var OO="",Ww=class{_driver;constructor(i){this._driver=i}build(i,e,n){let o=new Gw(e);return this._resetContextStyleTimingState(o),ki(this,cc(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector=OO,i.collectedStyles=new Map,i.collectedStyles.set(OO,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(iO()),i.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==ft.State){let c=s,m=c.name;m.toString().split(/\s*,\s*/).forEach(f=>{c.name=f,r.push(this.visitState(c,e))}),c.name=m}else if(s.type==ft.Transition){let c=this.visitTransition(s,e);n+=c.queryCount,o+=c.depCount,a.push(c)}else e.errors.push(oO())}),{type:ft.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(c=>{Vw(c).forEach(m=>{a.hasOwnProperty(m)||r.add(m)})})}),r.size&&e.errors.push(rO(i.name,[...r.values()]))}return{type:ft.State,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;let n=ki(this,cc(i.animation),e),o=LY(i.expr,e.errors);return{type:ft.Transition,matchers:o,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Is(i.options)}}visitSequence(i,e){return{type:ft.Sequence,steps:i.steps.map(n=>ki(this,n,e)),options:Is(i.options)}}visitGroup(i,e){let n=e.currentTime,o=0,r=i.steps.map(a=>{e.currentTime=n;let s=ki(this,a,e);return o=Math.max(o,e.currentTime),s});return e.currentTime=o,{type:ft.Group,steps:r,options:Is(i.options)}}visitAnimate(i,e){let n=WY(i.timings,e.errors);e.currentAnimateTimings=n;let o,r=i.styles?i.styles:Mw({});if(r.type==ft.Keyframes)o=this.visitKeyframes(r,e);else{let a=i.styles,s=!1;if(!a){s=!0;let m={};n.easing&&(m.easing=n.easing),a=Mw(m)}e.currentTime+=n.duration+n.delay;let c=this.visitStyle(a,e);c.isEmptyStep=s,o=c}return e.currentAnimateTimings=null,{type:ft.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===Ao?n.push(s):e.errors.push(aO(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 c of s.values())if(c.toString().indexOf(Fw)>=0){r=!0;break}}}),{type:ft.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,c)=>{let m=e.collectedStyles.get(e.currentQuerySelector),f=m.get(c),v=!0;f&&(r!=o&&r>=f.startTime&&o<=f.endTime&&(e.errors.push(sO(c,f.startTime,f.endTime,r,o)),v=!1),r=f.startTime),v&&m.set(c,{startTime:r,endTime:o}),e.options&&IO(s,e.options,e.errors)})})}visitKeyframes(i,e){let n={type:ft.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(lO()),n;let o=1,r=0,a=[],s=!1,c=!1,m=0,f=i.steps.map(U=>{let Xe=this._makeStyleAst(U,e),gt=Xe.offset!=null?Xe.offset:HY(Xe.styles),pn=0;return gt!=null&&(r++,pn=Xe.offset=gt),c=c||pn<0||pn>1,s=s||pn0&&r{let gt=D>0?Xe==x?1:D*Xe:a[Xe],pn=gt*K;e.currentTime=M+O.delay+pn,O.duration=pn,this._validateStyleAst(U,e),U.offset=gt,n.styles.push(U)}),n}visitReference(i,e){return{type:ft.Reference,animation:ki(this,cc(i.animation),e),options:Is(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:ft.AnimateChild,options:Is(i.options)}}visitAnimateRef(i,e){return{type:ft.AnimateRef,animation:this.visitReference(i.animation,e),options:Is(i.options)}}visitQuery(i,e){let n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;let[r,a]=zY(i.selector);e.currentQuerySelector=n.length?n+" "+r:r,Ii(e.collectedStyles,e.currentQuerySelector,new Map);let s=ki(this,cc(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:ft.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:s,originalSelector:i.selector,options:Is(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(mO());let n=i.timings==="full"?{duration:0,delay:0,easing:"full"}:yu(i.timings,e.errors,!0);return{type:ft.Stagger,animation:ki(this,cc(i.animation),e),timings:n,options:null}}};function zY(t){let i=!!t.split(/\s*,\s*/).find(e=>e==UO);return i&&(t=t.replace(jY,"")),t=t.replace(/@\*/g,bu).replace(/@\w+/g,e=>bu+"-"+e.slice(1)).replace(/:animating/g,Yg),[t,i]}function UY(t){return t?V({},t):null}var Gw=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 HY(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 WY(t,i){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let r=yu(t,i).duration;return Bw(r,0,"")}let e=t;if(e.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Bw(0,0,"");return r.dynamic=!0,r.strValue=e,r}let o=yu(e,i);return Bw(o.duration,o.delay,o.easing)}function Is(t){return t?(t=V({},t),t.params&&(t.params=UY(t.params))):t={},t}function Bw(t,i,e){return{duration:t,delay:i,easing:e}}function nx(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 wu=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()}},GY=1,$Y=":enter",qY=new RegExp($Y,"g"),YY=":leave",QY=new RegExp(YY,"g");function WO(t,i,e,n,o,r=new Map,a=new Map,s,c,m=[]){return new $w().buildKeyframes(t,i,e,n,o,r,a,s,c,m)}var $w=class{buildKeyframes(i,e,n,o,r,a,s,c,m,f=[]){m=m||new wu;let v=new qw(i,e,m,o,r,f,[]);v.options=c;let D=c.delay?ar(c.delay):0;v.currentTimeline.delayNextStep(D),v.currentTimeline.setStyles([a],null,v.errors,c),ki(this,n,v);let x=v.timelines.filter(M=>M.containsAnimation());if(x.length&&s.size){let M;for(let O=x.length-1;O>=0;O--){let K=x[O];if(K.element===e){M=K;break}}M&&!M.allowOnlyTimelineStyles()&&M.setStyles([s],null,v.errors,c)}return x.length?x.map(M=>M.buildKeyframes()):[nx(e,[],[],[],0,D,"",!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:ar(dc(r,o?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let r=e.currentTimeline.currentTime,a=n.duration!=null?ar(n.duration):null,s=n.delay!=null?ar(n.delay):null;return a!==0&&i.forEach(c=>{let m=e.appendInstructionToTimeline(c,a,s);r=Math.max(r,m.duration+m.delay)}),r}visitReference(i,e){e.updateOptions(i.options,!0),ki(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==ft.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=i_);let a=ar(r.delay);o.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>ki(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?ar(i.options.delay):0;i.steps.forEach(a=>{let s=e.createSubContext(i.options);r&&s.delayNextStep(r),ki(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?dc(n,e.params,e.errors):n;return yu(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==ft.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(c=>{let m=c.offset||0;s.forwardTime(m*r),s.setStyles(c.styles,c.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?ar(o.delay):0;r&&(e.previousNode.type===ft.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=i_);let a=n,s=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;let c=null;s.forEach((m,f)=>{e.currentQueryIndex=f;let v=e.createSubContext(i.options,m);r&&v.delayNextStep(r),m===e.element&&(c=v.currentTimeline),ki(this,i.animation,v),v.currentTimeline.applyStylesToKeyframe();let D=v.currentTimeline.currentTime;a=Math.max(a,D)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),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),c=a*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":c=s-c;break;case"full":c=n.currentStaggerTime;break}let f=e.currentTimeline;c&&f.delayNextStep(c);let v=f.currentTime;ki(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-v+(o.startTime-n.currentTimeline.startTime)}},i_={},qw=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=i_;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(i,e,n,o,r,a,s,c){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=r,this.errors=a,this.timelines=s,this.currentTimeline=c||new o_(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=ar(n.duration)),n.delay!=null&&(o.delay=ar(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]=dc(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=i_,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 Yw(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(qY,"."+this._enterClassName),i=i.replace(QY,"."+this._leaveClassName);let c=n!=1,m=this._driver.query(this.element,i,c);n!==0&&(m=n<0?m.slice(m.length+n,m.length):m.slice(0,n)),s.push(...m)}return!r&&s.length==0&&a.push(pO(e)),s}},o_=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+=GY,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||Ao),this._currentKeyframe.set(e,Ao);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);let r=o&&o.params||{},a=KY(i,this._globalTimelineStyles);for(let[s,c]of a){let m=dc(c,r,n);this._pendingStyles.set(s,m),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Ao),this._updateStyle(s,m)}}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,c)=>{let m=new Map([...this._backFill,...s]);m.forEach((f,v)=>{f===_u?i.add(v):f===Ao&&e.add(v)}),n||m.set("offset",c/this.duration),o.push(m)});let r=[...i.values()],a=[...e.values()];if(n){let s=o[0],c=new Map(s);s.set("offset",0),c.set("offset",1),o=[s,c]}return nx(this.element,o,r,a,this.duration,this.startTime,this.easing,!1)}},Yw=class extends o_{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,c=new Map(i[0]);c.set("offset",0),r.push(c);let m=new Map(i[0]);m.set("offset",PO(s)),r.push(m);let f=i.length-1;for(let v=1;v<=f;v++){let D=new Map(i[v]),x=D.get("offset"),M=e+x*n;D.set("offset",PO(M/a)),r.push(D)}n=a,e=0,o="",i=r}return nx(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}};function PO(t,i=3){let e=Math.pow(10,i-1);return Math.round(t*e)/e}function KY(t,i){let e=new Map,n;return t.forEach(o=>{if(o==="*"){n??=i.keys();for(let r of n)e.set(r,Ao)}else for(let[r,a]of o)e.set(r,a)}),e}function FO(t,i,e,n,o,r,a,s,c,m,f,v,D){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:r,toState:n,toStyles:a,timelines:s,queriedElements:c,preStyleProps:m,postStyleProps:f,totalTime:v,errors:D}}var jw={},r_=class{_triggerName;ast;_stateStyles;constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return ZY(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,c,m,f){let v=[],D=this.ast.options&&this.ast.options.params||jw,x=s&&s.params||jw,M=this.buildStyles(n,x,v),O=c&&c.params||jw,K=this.buildStyles(o,O,v),U=new Set,Xe=new Map,gt=new Map,pn=o==="void",Lr={params:GO(O,D),delay:this.ast.options?.delay},Wi=f?[]:WO(i,e,this.ast.animation,r,a,M,K,Lr,m,v),Xn=0;return Wi.forEach(pi=>{Xn=Math.max(pi.duration+pi.delay,Xn)}),v.length?FO(e,this._triggerName,n,o,pn,M,K,[],[],Xe,gt,Xn,v):(Wi.forEach(pi=>{let wa=pi.element,Rs=Ii(Xe,wa,new Set);pi.preStyleProps.forEach(xa=>Rs.add(xa));let dx=Ii(gt,wa,new Set);pi.postStyleProps.forEach(xa=>dx.add(xa)),wa!==e&&U.add(wa)}),FO(e,this._triggerName,n,o,pn,M,K,Wi,[...U.values()],Xe,gt,Xn))}};function ZY(t,i,e,n,o){return t.some(r=>r(i,e,n,o))}function GO(t,i){let e=V({},i);return Object.entries(t).forEach(([n,o])=>{o!=null&&(e[n]=o)}),e}var Qw=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=GO(i,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,s)=>{a&&(a=dc(a,o,e));let c=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,c,a,e),n.set(s,a)})}),n}};function XY(t,i,e){return new Kw(t,i,e)}var Kw=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 Qw(o.style,r,n))}),NO(this.states,"true","1"),NO(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new r_(i,o,this.states))}),this.fallbackTransition=JY(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 JY(t,i,e){let n=[(a,s)=>!0],o={type:ft.Sequence,steps:[],options:null},r={type:ft.Transition,animation:o,matchers:n,options:null,queryCount:0,depCount:0};return new r_(t,r,i)}function NO(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 eQ=new wu,Zw=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=HO(this._driver,e,n,o);if(n.length)throw _O(n);this._animations.set(i,r)}_buildPlayer(i,e,n){let o=i.element,r=Aw(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=WO(this._driver,e,r,Nw,qg,new Map,new Map,n,eQ,o),a.forEach(f=>{let v=Ii(s,f.element,new Map);f.postStyleProps.forEach(D=>v.set(D,null))})):(o.push(vO()),a=[]),o.length)throw bO(o);s.forEach((f,v)=>{f.forEach((D,x)=>{f.set(x,this._driver.computeStyle(v,x,Ao))})});let c=a.map(f=>{let v=s.get(f.element);return this._buildPlayer(f,new Map,v)}),m=Nr(c);return this._playersById.set(i,m),m.onDestroy(()=>this.destroy(i)),this.players.push(m),m}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 yO(i);return e}listen(i,e,n,o){let r=Gg(e,"","","");return Wg(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}}},LO="ng-animate-queued",tQ=".ng-animate-queued",zw="ng-animate-disabled",nQ=".ng-animate-disabled",iQ="ng-star-inserted",oQ=".ng-star-inserted",rQ=[],$O={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},aQ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Oo="__ng_removed",xu=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=lQ(o),n){let r=i,{value:a}=r,s=p_(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])})}}},Cu="void",Uw=new xu(Cu),Xw=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,po(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw CO(n,e);if(n==null||n.length==0)throw wO(e);if(!cQ(n))throw xO(n,e);let r=Ii(this._elementListeners,i,[]),a={name:e,phase:n,callback:o};r.push(a);let s=Ii(this._engine.statesByElement,i,new Map);return s.has(e)||(po(i,vu),po(i,vu+"-"+e),s.set(e,Uw)),()=>{this._engine.afterFlush(()=>{let c=r.indexOf(a);c>=0&&r.splice(c,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 DO(i);return e}trigger(i,e,n,o=!0){let r=this._getTrigger(e),a=new Du(this.id,e,i),s=this._engine.statesByElement.get(i);s||(po(i,vu),po(i,vu+"-"+e),this._engine.statesByElement.set(i,s=new Map));let c=s.get(e),m=new xu(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&m.absorbOptions(c.options),s.set(e,m),c||(c=Uw),!(m.value===Cu)&&c.value===m.value){if(!mQ(c.params,m.params)){let O=[],K=r.matchStyles(c.value,c.params,O),U=r.matchStyles(m.value,m.params,O);O.length?this._engine.reportError(O):this._engine.afterFlush(()=>{Ca(i,K),Ro(i,U)})}return}let D=Ii(this._engine.playersByElement,i,[]);D.forEach(O=>{O.namespaceId==this.id&&O.triggerName==e&&O.queued&&O.destroy()});let x=r.matchTransition(c.value,m.value,i,m.params),M=!1;if(!x){if(!o)return;x=r.fallbackTransition,M=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:x,fromState:c,toState:m,player:a,isFallbackTransition:M}),M||(po(i,LO),a.onStart(()=>{uc(i,LO)})),a.onDone(()=>{let O=this.players.indexOf(a);O>=0&&this.players.splice(O,1);let K=this._engine.playersByElement.get(i);if(K){let U=K.indexOf(a);U>=0&&K.splice(U,1)}}),this.players.push(a),D.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,bu,!0);n.forEach(o=>{if(o[Oo])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((c,m)=>{if(a.set(m,c.value),this._triggers.has(m)){let f=this.trigger(i,m,Cu,o);f&&s.push(f)}}),s.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&Nr(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 c=this._triggers.get(a).fallbackTransition,m=n.get(a)||Uw,f=new xu(Cu),v=new Du(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:c,fromState:m,toState:f,player:v,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[Oo];(!r||r===$O)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){po(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 c=Gg(r,n.triggerName,n.fromState.value,n.toState.value);c._data=i,Wg(n.player,s.phase,c,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)}},Jw=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 Xw(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 c=o.get(s);if(c){let m=n.indexOf(c);n.splice(m+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(Jg(e)){let r=this._fetchNamespace(i);if(r)return r.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!Jg(e))return;let r=e[Oo];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),po(i,zw)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),uc(i,zw))}removeNode(i,e,n){if(Jg(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[Oo]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(i,e,n,o,r){return Jg(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,bu,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(i,Yg,!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 Nr(this.players).onDone(()=>i());i()})}processLeaveNode(i){let e=i[Oo];if(e&&e.setForRemoval){if(i[Oo]=$O,e.namespaceId){this.destroyInnerAnimations(i);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(zw)&&this.markElementAsDisabled(i,!1),this.driver.query(i,nQ,!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?Nr(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw SO(i)}_flushAnimations(i,e){let n=new wu,o=[],r=new Map,a=[],s=new Map,c=new Map,m=new Map,f=new Set;this.disabledNodes.forEach(Ce=>{f.add(Ce);let Pe=this.driver.query(Ce,tQ,!0);for(let $e=0;$e{let $e=Nw+O++;M.set(Pe,$e),Ce.forEach(Mt=>po(Mt,$e))});let K=[],U=new Set,Xe=new Set;for(let Ce=0;CeU.add(Mt)):Xe.add(Pe))}let gt=new Map,pn=jO(D,Array.from(U));pn.forEach((Ce,Pe)=>{let $e=qg+O++;gt.set(Pe,$e),Ce.forEach(Mt=>po(Mt,$e))}),i.push(()=>{x.forEach((Ce,Pe)=>{let $e=M.get(Pe);Ce.forEach(Mt=>uc(Mt,$e))}),pn.forEach((Ce,Pe)=>{let $e=gt.get(Pe);Ce.forEach(Mt=>uc(Mt,$e))}),K.forEach(Ce=>{this.processLeaveNode(Ce)})});let Lr=[],Wi=[];for(let Ce=this._namespaceList.length-1;Ce>=0;Ce--)this._namespaceList[Ce].drainQueuedTransitions(e).forEach($e=>{let Mt=$e.player,Rn=$e.element;if(Lr.push(Mt),this.collectedEnterElements.length){let Hn=Rn[Oo];if(Hn&&Hn.setForMove){if(Hn.previousTriggersValues&&Hn.previousTriggersValues.has($e.triggerName)){let Da=Hn.previousTriggersValues.get($e.triggerName),Gi=this.statesByElement.get($e.element);if(Gi&&Gi.has($e.triggerName)){let Eu=Gi.get($e.triggerName);Eu.value=Da,Gi.set($e.triggerName,Eu)}}Mt.destroy();return}}let Po=!v||!this.driver.containsElement(v,Rn),Ai=gt.get(Rn),Vr=M.get(Rn),un=this._buildInstruction($e,n,Vr,Ai,Po);if(un.errors&&un.errors.length){Wi.push(un);return}if(Po){Mt.onStart(()=>Ca(Rn,un.fromStyles)),Mt.onDestroy(()=>Ro(Rn,un.toStyles)),o.push(Mt);return}if($e.isFallbackTransition){Mt.onStart(()=>Ca(Rn,un.fromStyles)),Mt.onDestroy(()=>Ro(Rn,un.toStyles)),o.push(Mt);return}let px=[];un.timelines.forEach(Hn=>{Hn.stretchStartingKeyframe=!0,this.disabledNodes.has(Hn.element)||px.push(Hn)}),un.timelines=px,n.append(Rn,un.timelines);let LP={instruction:un,player:Mt,element:Rn};a.push(LP),un.queriedElements.forEach(Hn=>Ii(s,Hn,[]).push(Mt)),un.preStyleProps.forEach((Hn,Da)=>{if(Hn.size){let Gi=c.get(Da);Gi||c.set(Da,Gi=new Set),Hn.forEach((Eu,m_)=>Gi.add(m_))}}),un.postStyleProps.forEach((Hn,Da)=>{let Gi=m.get(Da);Gi||m.set(Da,Gi=new Set),Hn.forEach((Eu,m_)=>Gi.add(m_))})});if(Wi.length){let Ce=[];Wi.forEach(Pe=>{Ce.push(EO(Pe.triggerName,Pe.errors))}),Lr.forEach(Pe=>Pe.destroy()),this.reportError(Ce)}let Xn=new Map,pi=new Map;a.forEach(Ce=>{let Pe=Ce.element;n.has(Pe)&&(pi.set(Pe,Pe),this._beforeAnimationBuild(Ce.player.namespaceId,Ce.instruction,Xn))}),o.forEach(Ce=>{let Pe=Ce.element;this._getPreviousPlayers(Pe,!1,Ce.namespaceId,Ce.triggerName,null).forEach(Mt=>{Ii(Xn,Pe,[]).push(Mt),Mt.destroy()})});let wa=K.filter(Ce=>zO(Ce,c,m)),Rs=new Map;BO(Rs,this.driver,Xe,m,Ao).forEach(Ce=>{zO(Ce,c,m)&&wa.push(Ce)});let xa=new Map;x.forEach((Ce,Pe)=>{BO(xa,this.driver,new Set(Ce),c,_u)}),wa.forEach(Ce=>{let Pe=Rs.get(Ce),$e=xa.get(Ce);Rs.set(Ce,new Map([...Pe?.entries()??[],...$e?.entries()??[]]))});let u_=[],ux=[],mx={};a.forEach(Ce=>{let{element:Pe,player:$e,instruction:Mt}=Ce;if(n.has(Pe)){if(f.has(Pe)){$e.onDestroy(()=>Ro(Pe,Mt.toStyles)),$e.disabled=!0,$e.overrideTotalTime(Mt.totalTime),o.push($e);return}let Rn=mx;if(pi.size>1){let Ai=Pe,Vr=[];for(;Ai=Ai.parentNode;){let un=pi.get(Ai);if(un){Rn=un;break}Vr.push(Ai)}Vr.forEach(un=>pi.set(un,Rn))}let Po=this._buildAnimation($e.namespaceId,Mt,Xn,r,xa,Rs);if($e.setRealPlayer(Po),Rn===mx)u_.push($e);else{let Ai=this.playersByElement.get(Rn);Ai&&Ai.length&&($e.parentPlayer=Nr(Ai)),o.push($e)}}else Ca(Pe,Mt.fromStyles),$e.onDestroy(()=>Ro(Pe,Mt.toStyles)),ux.push($e),f.has(Pe)&&o.push($e)}),ux.forEach(Ce=>{let Pe=r.get(Ce.element);if(Pe&&Pe.length){let $e=Nr(Pe);Ce.setRealPlayer($e)}}),o.forEach(Ce=>{Ce.parentPlayer?Ce.syncPlayerEvents(Ce.parentPlayer):Ce.destroy()});for(let Ce=0;Ce!Po.destroyed);Rn.length?dQ(this,Pe,Rn):this.processLeaveNode(Pe)}return K.length=0,u_.forEach(Ce=>{this.players.push(Ce),Ce.onDone(()=>{Ce.destroy();let Pe=this.players.indexOf(Ce);this.players.splice(Pe,1)}),Ce.play()}),u_}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 c=!r||r==Cu;s.forEach(m=>{m.queued||!c&&m.triggerName!=o||a.push(m)})}}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 c of e.timelines){let m=c.element,f=m!==r,v=Ii(n,m,[]);this._getPreviousPlayers(m,f,a,s,e.toState).forEach(x=>{let M=x.getRealPlayer();M.beforeDestroy&&M.beforeDestroy(),x.destroy(),v.push(x)})}Ca(r,e.fromStyles)}_buildAnimation(i,e,n,o,r,a){let s=e.triggerName,c=e.element,m=[],f=new Set,v=new Set,D=e.timelines.map(M=>{let O=M.element;f.add(O);let K=O[Oo];if(K&&K.removedBeforeQueried)return new Fr(M.duration,M.delay);let U=O!==c,Xe=uQ((n.get(O)||rQ).map(Xn=>Xn.getRealPlayer())).filter(Xn=>{let pi=Xn;return pi.element?pi.element===O:!1}),gt=r.get(O),pn=a.get(O),Lr=Aw(this._normalizer,M.keyframes,gt,pn),Wi=this._buildPlayer(M,Lr,Xe);if(M.subTimeline&&o&&v.add(O),U){let Xn=new Du(i,s,O);Xn.setRealPlayer(Wi),m.push(Xn)}return Wi});m.forEach(M=>{Ii(this.playersByQueriedElement,M.element,[]).push(M),M.onDone(()=>sQ(this.playersByQueriedElement,M.element,M))}),f.forEach(M=>po(M,Lw));let x=Nr(D);return x.onDestroy(()=>{f.forEach(M=>uc(M,Lw)),Ro(c,e.toStyles)}),v.forEach(M=>{Ii(o,M,[]).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 Fr(i.duration,i.delay)}},Du=class{namespaceId;triggerName;element;_player=new Fr;_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=>Wg(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){Ii(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 sQ(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 lQ(t){return t??null}function Jg(t){return t&&t.nodeType===1}function cQ(t){return t=="start"||t=="done"}function VO(t,i){let e=t.style.display;return t.style.display=i??"none",e}function BO(t,i,e,n,o){let r=[];e.forEach(c=>r.push(VO(c)));let a=[];n.forEach((c,m)=>{let f=new Map;c.forEach(v=>{let D=i.computeStyle(m,v,o);f.set(v,D),(!D||D.length==0)&&(m[Oo]=aQ,a.push(m))}),t.set(m,f)});let s=0;return e.forEach(c=>VO(c,r[s++])),a}function jO(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 c=r.get(s);if(c)return c;let m=s.parentNode;return e.has(m)?c=m:o.has(m)?c=n:c=a(m),r.set(s,c),c}return i.forEach(s=>{let c=a(s);c!==n&&e.get(c).push(s)}),e}function po(t,i){t.classList?.add(i)}function uc(t,i){t.classList?.remove(i)}function dQ(t,i,e){Nr(e).onDone(()=>t.processLeaveNode(i))}function uQ(t){let i=[];return qO(t,i),i}function qO(t,i){for(let e=0;eo.add(r)):i.set(t,n),e.delete(t),!0}var mc=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(i,e)=>{};constructor(i,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new Jw(i.body,e,n),this._timelineEngine=new Zw(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 c=[],m=[],f=HO(this._driver,r,c,m);if(c.length)throw gO(o,c);s=XY(o,f,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]=Rw(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]=Rw(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 pQ(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=Hw(i[0]),i.length>1&&(n=Hw(i[i.length-1]))):i instanceof Map&&(e=Hw(i)),e||n?new hQ(t,e,n):null}var hQ=(()=>{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&&Ro(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ro(this._element,this._initialStyles),this._endStyles&&(Ro(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ca(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ca(this._element,this._endStyles),this._endStyles=null),Ro(this._element,this._initialStyles),this._state=3)}}return t})();function Hw(t){let i=null;return t.forEach((e,n)=>{fQ(n)&&(i=i||new Map,i.set(n,e))}),i}function fQ(t){return t==="display"||t==="position"}var a_=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;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._initialized=!0;let i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",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){return i.animate(this._convertKeyframesToObject(e),n)}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(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}setPosition(i){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}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:Kg(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){let e=i==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},s_=class{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}containsElement(i,e){return Ow(i,e)}getParentElement(i){return $g(i)}query(i,e,n){return Pw(i,e,n)}computeStyle(i,e,n){return Kg(i,e)}animate(i,e,n,o,r,a=[]){let s=o==0?"both":"forwards",c={duration:n,delay:o,fill:s};r&&(c.easing=r);let m=new Map,f=a.filter(x=>x instanceof a_);kO(n,o)&&f.forEach(x=>{x.currentSnapshot.forEach((M,O)=>m.set(O,M))});let v=TO(e).map(x=>new Map(x));v=AO(i,v,m);let D=pQ(i,v);return new a_(i,v,c,D)}};var e_="@",YO="@.disabled",l_=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){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)==e_&&e==YO?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)}},ex=class extends l_{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)==e_?e.charAt(1)=="."&&e==YO?(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)==e_){let r=gQ(i),a=e.slice(1),s="";return a.charAt(0)!=e_&&([a,s]=_Q(a)),this.engine.listen(this.namespaceId,r,a,s,c=>{let m=c._data||-1;this.factory.scheduleListenerCallback(m,n,c)})}return this.delegate.listen(i,e,n,o)}};function gQ(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function _Q(t){let i=t.indexOf("."),e=t.substring(0,i),n=t.slice(i+1);return[e,n]}var c_=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 n="",o=this.delegate.createRenderer(i,e);if(!i||!e?.data?.animation){let m=this._rendererCache,f=m.get(o);if(!f){let v=()=>m.delete(o);f=new l_(n,o,this.engine,v),m.set(o,f)}return f}let r=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,i);let s=m=>{Array.isArray(m)?m.forEach(s):this.engine.registerTrigger(r,a,i,m.name,m)};return e.data.animation.forEach(s),new ex(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 bQ=(()=>{class t extends mc{constructor(e,n,o){super(e,n,o)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||t)(le(he),le(ks),le(As))};static \u0275prov=L({token:t,factory:t.\u0275fac})}return t})();function yQ(){return new t_}function CQ(t,i,e){return new c_(t,i,e)}var KO=[{provide:As,useFactory:yQ},{provide:mc,useClass:bQ},{provide:hn,useFactory:CQ,deps:[od,mc,ie]}],wQ=[{provide:ks,useClass:tx},{provide:tt,useValue:"NoopAnimations"},...KO],QO=[{provide:ks,useFactory:()=>new s_},{provide:tt,useFactory:()=>"BrowserAnimations"},...KO],ZO=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?wQ:QO}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:QO,imports:[ad]})}return t})();var xQ=["button"],DQ=["*"];function SQ(t,i){if(t&1&&(l(0,"div",2),I(1,"mat-pseudo-checkbox",6),d()),t&2){let e=g();u(),_("disabled",e.disabled)}}var EQ=new R("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:MQ});function MQ(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var TQ=new R("MatButtonToggleGroup");var ix=class{source;value;constructor(i,e){this.source=i,this.value=e}};var IQ=(()=>{class t{_changeDetectorRef=p(De);_elementRef=p(Z);_focusMonitor=p(Cn);_idGenerator=p(ut);_animationMode=p(tt,{optional:!0});_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex}set tabIndex(e){e!==this._tabIndex&&(this._tabIndex=e,this._markForCheck())}_tabIndex;disableRipple;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 k;constructor(){p(yt).load(gn);let e=p(TQ,{optional:!0}),n=p(new Nn("tabindex"),{optional:!0})||"",o=p(EQ,{optional:!0});this._tabIndex=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._animationMode!=="NoopAnimations"&&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 ix(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=S({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&me(xQ,5),n&2){let r;q(r=Y())&&(o._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(n,o){n&1&&b("focus",function(){return o.focus()}),n&2&&(ne("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),X("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",$],appearance:"appearance",checked:[2,"checked","checked",$],disabled:[2,"disabled","disabled",$],disabledInteractive:[2,"disabledInteractive","disabledInteractive",$]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:DQ,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){let r=A();Le(),l(0,"button",1,0),b("click",function(){return C(r),w(o._onButtonClick())}),E(2,SQ,2,1,"div",2),l(3,"span",3),ue(4),d()(),I(5,"span",4)(6,"span",5)}if(n&2){let r=Ye(1);_("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),ne("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),u(2),T(o.buttonToggleGroup&&(!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator||o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),u(4),_("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[Bi,Df],styles:[`.mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large));border:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-legacy-button-toggle-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-legacy-button-toggle-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-standard-button-toggle-background-color, transparent);font-family:var(--mat-standard-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-standard-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-standard-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-standard-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-standard-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-standard-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-standard-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var(--mat-standard-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large));border-top-left-radius:var(--mat-standard-button-toggle-shape, var(--mat-sys-corner-extra-large))} +`],encapsulation:2,changeDetection:0})}return t})(),XO=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[fe,tr,IQ,fe]})}return t})();var AQ=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],RQ=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function OQ(t,i){t&1&&(l(0,"span",3),ue(1,1),d())}function PQ(t,i){t&1&&(l(0,"span",6),ue(1,2),d())}var FQ=`.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width, 1px);border-radius:var(--mdc-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size, 24px);height:var(--mdc-chip-with-avatar-avatar-size, 24px);font-size:var(--mdc-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius, 8px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mdc-chip-with-icon-icon-size, 18px);height:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content} +`,NQ=[[["mat-chip-avatar"],["","matChipAvatar",""]],[["","matChipEditInput",""]],"*",[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],LQ=["mat-chip-avatar, [matChipAvatar]","[matChipEditInput]","*","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function VQ(t,i){t&1&&I(0,"span",0)}function BQ(t,i){t&1&&(l(0,"span",2),ue(1),d())}function jQ(t,i){t&1&&ue(0,1)}function zQ(t,i){t&1&&I(0,"span",7)}function UQ(t,i){if(t&1&&E(0,jQ,1,0)(1,zQ,1,0,"span",7),t&2){let e=g();T(e.contentEditInput?0:1)}}function HQ(t,i){t&1&&ue(0,2)}function WQ(t,i){t&1&&(l(0,"span",5),ue(1,3),d())}var tP=["*"],GQ=`.mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px} +`,nP=new R("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),JO=new R("MatChipAvatar"),eP=new R("MatChipTrailingIcon"),rx=new R("MatChipRemove"),lx=new R("MatChip"),d_=(()=>{class t{_elementRef=p(Z);_parentChip=p(lx);isInteractive=!0;_isPrimary=!0;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}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(){p(yt).load(gn),this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(n,o){n&1&&b("click",function(a){return o._handleClick(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(ne("tabindex",o._getTabindex())("disabled",o._getDisabledAttribute())("aria-disabled",o.disabled),X("mdc-evolution-chip__action--primary",o._isPrimary)("mdc-evolution-chip__action--presentational",!o.isInteractive)("mdc-evolution-chip__action--trailing",!o._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",$],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?-1:Zt(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return t})();var iP=(()=>{class t extends d_{_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=nt(t)))(o||t)}})();static \u0275dir=B({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&&ne("aria-hidden",null)},features:[we([{provide:rx,useExisting:t}]),_e]})}return t})(),ax=(()=>{class t{_changeDetectorRef=p(De);_elementRef=p(Z);_ngZone=p(ie);_focusMonitor=p(Cn);_globalRippleOptions=p(Hl,{optional:!0});_document=p(he);_onFocus=new z;_onBlur=new z;_isBasicChip;role=null;_hasFocusInternal=!1;_pendingFocus;_actionChanges;_animationsDisabled;_allLeadingIcons;_allTrailingIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=p(ut).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_ariaDescriptionId=`${this.id}-aria-description`;_chipListDisabled=!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 k;destroyed=new k;basicChipAttrName="mat-basic-chip";leadingIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=p($h);_injector=p(Ie);constructor(){let e=p(yt);e.load(gn),e.load(eo);let n=p(tt,{optional:!0});this._animationsDisabled=n==="NoopAnimations",this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){let e=this._elementRef.nativeElement;this._isBasicChip=e.hasAttribute(this.basicChipAttrName)||e.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=_t(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(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.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_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=S({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(n,o,r){if(n&1&&(ze(r,JO,5),ze(r,eP,5),ze(r,rx,5),ze(r,JO,5),ze(r,eP,5),ze(r,rx,5)),n&2){let a;q(a=Y())&&(o.leadingIcon=a.first),q(a=Y())&&(o.trailingIcon=a.first),q(a=Y())&&(o.removeIcon=a.first),q(a=Y())&&(o._allLeadingIcons=a),q(a=Y())&&(o._allTrailingIcons=a),q(a=Y())&&(o._allRemoveIcons=a)}},viewQuery:function(n,o){if(n&1&&me(d_,5),n&2){let r;q(r=Y())&&(o.primaryAction=r.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(n,o){n&1&&b("keydown",function(a){return o._handleKeydown(a)}),n&2&&(bn("id",o.id),ne("role",o.role)("aria-label",o.ariaLabel),Bt("mat-"+(o.color||"primary")),X("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",$],highlighted:[2,"highlighted","highlighted",$],disableRipple:[2,"disableRipple","disableRipple",$],disabled:[2,"disabled","disabled",$]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[we([{provide:lx,useExisting:t}])],ngContentSelectors:RQ,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(n,o){n&1&&(Le(AQ),I(0,"span",0),l(1,"span",1)(2,"span",2),E(3,OQ,2,0,"span",3),l(4,"span",4),ue(5),I(6,"span",5),d()()(),E(7,PQ,2,0,"span",6)),n&2&&(u(2),_("isInteractive",!1),u(),T(o.leadingIcon?3:-1),u(4),T(o._hasTrailingIcon()?7:-1))},dependencies:[d_],styles:[`.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width, 1px);border-radius:var(--mdc-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size, 24px);height:var(--mdc-chip-with-avatar-avatar-size, 24px);font-size:var(--mdc-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius, 8px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mdc-chip-with-icon-icon-size, 18px);height:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content} +`],encapsulation:2,changeDetection:0})}return t})();var ox=(()=>{class t{_elementRef=p(Z);_document=p(he);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=B({type:t,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return t})(),cx=(()=>{class t extends ax{basicChipAttrName="mat-basic-chip-row";_editStartPending=!1;editable=!1;edited=new k;defaultEditInput;contentEditInput;_isEditing=!1;constructor(){super(),this.role="row",this._onBlur.pipe(Te(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_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)}_handleDoubleclick(e){!this.disabled&&this.editable&&this._startEditing(e)}_startEditing(e){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(e.target)===this.removeIcon)return;let n=this.value;this._isEditing=this._editStartPending=!0,Ht(()=>{this._getEditInput().initialize(n),this._editStartPending=!1},{injector:this._injector})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({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&&ze(r,ox,5),n&2){let a;q(a=Y())&&(o.contentEditInput=a.first)}},viewQuery:function(n,o){if(n&1&&me(ox,5),n&2){let r;q(r=Y())&&(o.defaultEditInput=r.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(n,o){n&1&&b("focus",function(){return o._handleFocus()})("dblclick",function(a){return o._handleDoubleclick(a)}),n&2&&(bn("id",o.id),ne("tabindex",o.disabled?null:-1)("aria-label",null)("aria-description",null)("role",o.role),X("mat-mdc-chip-with-avatar",o.leadingIcon)("mat-mdc-chip-disabled",o.disabled)("mat-mdc-chip-editing",o._isEditing)("mat-mdc-chip-editable",o.editable)("mdc-evolution-chip--disabled",o.disabled)("mdc-evolution-chip--with-trailing-action",o._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",o.leadingIcon)("mdc-evolution-chip--with-primary-icon",o.leadingIcon)("mdc-evolution-chip--with-avatar",o.leadingIcon)("mat-mdc-chip-highlighted",o.highlighted)("mat-mdc-chip-with-trailing-icon",o._hasTrailingIcon()))},inputs:{editable:"editable"},outputs:{edited:"edited"},features:[we([{provide:ax,useExisting:t},{provide:lx,useExisting:t}]),_e],ngContentSelectors:LQ,decls:10,vars:9,consts:[[1,"mat-mdc-chip-focus-overlay"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"disabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"cdk-visually-hidden",3,"id"],["matChipEditInput",""]],template:function(n,o){n&1&&(Le(NQ),E(0,VQ,1,0,"span",0),l(1,"span",1),E(2,BQ,2,0,"span",2),l(3,"span",3),E(4,UQ,2,1)(5,HQ,1,0),I(6,"span",4),d()(),E(7,WQ,2,0,"span",5),l(8,"span",6),h(9),d()),n&2&&(T(o._isEditing?-1:0),u(),_("disabled",o.disabled),ne("aria-label",o.ariaLabel)("aria-describedby",o._ariaDescriptionId),u(),T(o.leadingIcon?2:-1),u(2),T(o._isEditing?4:5),u(3),T(o._hasTrailingIcon()?7:-1),u(),_("id",o._ariaDescriptionId),u(),ae(o.ariaDescription))},dependencies:[d_,ox],styles:[FQ],encapsulation:2,changeDetection:0})}return t})(),$Q=(()=>{class t{_elementRef=p(Z);_changeDetectorRef=p(De);_dir=p(Pt,{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 Qi;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(xt(null),Dt(()=>_t(...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(xt(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 Tr(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Te(this._destroyed)).subscribe(({chip:e})=>{let n=e._getSourceAction(document.activeElement);n&&this._keyManager.updateActiveItem(n)}),this._dir?.change.pipe(Te(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(xt(null),Te(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Te(this._destroyed)).subscribe(e=>{let o=this._chips.toArray().indexOf(e.chip);this._isValidIndex(o)&&e.chip._hasFocus()&&(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=S({type:t,selectors:[["mat-chip-set"]],contentQueries:function(n,o,r){if(n&1&&ze(r,ax,5),n&2){let a;q(a=Y())&&(o._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(n,o){n&1&&b("keydown",function(a){return o._handleKeydown(a)}),n&2&&ne("role",o.role)},inputs:{disabled:[2,"disabled","disabled",$],role:"role",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Zt(e)]},ngContentSelectors:tP,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(Le(),l(0,"div",0),ue(1),d())},styles:[`.mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px} +`],encapsulation:2,changeDetection:0})}return t})();var sx=class{source;value;constructor(i,e){this.source=i,this.value=e}},oP=(()=>{class t extends $Q{ngControl=p(Mi,{optional:!0,self:!0});controlType="mat-chip-grid";_chipInput;_defaultRole="grid";_errorStateTracker;_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.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||this._chips.length===0)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(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(ir.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 k;valueChange=new k;_chips=void 0;stateChanges=new z;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(){super();let e=p(ao,{optional:!0}),n=p(pa,{optional:!0}),o=p(ys);this.ngControl&&(this.ngControl.valueAccessor=this),this._errorStateTracker=new ha(o,this.ngControl,n,e,this.stateChanges)}ngAfterContentInit(){this.chipBlurChanges.pipe(Te(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),_t(this.chipFocusChanges,this._chips.changes).pipe(Te(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit(),this._chipInput}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(e){this._chipInput=e,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(e){!this.disabled&&!this._originatesFromChip(e)&&this.focus()}focus(){if(!(this.disabled||this._chipInput.focused)){if(!this._chips.length||this._chips.first.disabled)Promise.resolve().then(()=>this._chipInput.focus());else{let e=this._keyManager.activeItem;e?e.focus():this._keyManager.setFirstItemActive()}this.stateChanges.next()}}setDescribedByIds(e){this._ariaDescribedbyIds=e,this._chipInput?.setDescribedByIds(e)}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&&Et(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(c=>c._isPrimary===o._isPrimary&&!this._skipPredicate(c)),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 sx(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=S({type:t,selectors:[["mat-chip-grid"]],contentQueries:function(n,o,r){if(n&1&&ze(r,cx,5),n&2){let a;q(a=Y())&&(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&&b("focus",function(){return o.focus()})("blur",function(){return o._blur()}),n&2&&(ne("role",o.role)("tabindex",o.disabled||o._chips&&o._chips.length===0?-1:o.tabIndex)("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState),X("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",$],placeholder:"placeholder",required:[2,"required","required",$],value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[we([{provide:Ar,useExisting:t}]),_e],ngContentSelectors:tP,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(n,o){n&1&&(Le(),l(0,"div",0),ue(1),d())},styles:[GQ],encapsulation:2,changeDetection:0})}return t})(),rP=(()=>{class t{_elementRef=p(Z);focused=!1;get chipGrid(){return this._chipGrid}set chipGrid(e){e&&(this._chipGrid=e,this._chipGrid.registerInput(this))}_chipGrid;addOnBlur=!1;separatorKeyCodes;chipEnd=new k;placeholder="";id=p(ut).getId("mat-mdc-chip-list-input-");get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(e){this._disabled=e}_disabled=!1;get empty(){return!this.inputElement.value}inputElement;constructor(){let e=p(nP),n=p(so,{optional:!0});this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=e.separatorKeyCodes,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=""}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}_isSeparatorKey(e){return!Et(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(n,o){n&1&&b("keydown",function(a){return o._keydown(a)})("blur",function(){return o._blur()})("focus",function(){return o._focus()})("input",function(){return o._onInput()}),n&2&&(bn("id",o.id),ne("disabled",o.disabled||null)("placeholder",o.placeholder||null)("aria-invalid",o._chipGrid&&o._chipGrid.ngControl?o._chipGrid.ngControl.invalid:null)("aria-required",o._chipGrid&&o._chipGrid.required||null)("required",o._chipGrid&&o._chipGrid.required||null))},inputs:{chipGrid:[0,"matChipInputFor","chipGrid"],addOnBlur:[2,"matChipInputAddOnBlur","addOnBlur",$],separatorKeyCodes:[0,"matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:[2,"disabled","disabled",$]},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[je]})}return t})();var aP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({providers:[ys,{provide:nP,useValue:{separatorKeyCodes:[13]}}],imports:[fe,tr,fe]})}return t})();var sP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({})}return t})();var lP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[fe,sP,Si]})}return t})();var YQ=["*",[["mat-toolbar-row"]]],QQ=["*","mat-toolbar-row"],KQ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=B({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),cP=(()=>{class t{_elementRef=p(Z);_platform=p(et);_document=p(he);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=S({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,o,r){if(n&1&&ze(r,KQ,5),n&2){let a;q(a=Y())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(Bt(o.color?"mat-"+o.color:""),X("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:QQ,decls:2,vars:0,template:function(n,o){n&1&&(Le(YQ),ue(0),ue(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))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}} +`],encapsulation:2,changeDetection:0})}return t})();var dP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ee({type:t});static \u0275inj=J({imports:[fe,fe]})}return t})();var uP=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ee({type:t})}static{this.\u0275inj=J({providers:[{provide:Xf,useValue:{floatLabel:"always",appearance:"outline"}},{provide:ou,useValue:udsData.language}],imports:[Ka,_k,ff,dP,nr,VA,ws,lP,Uy,va,HA,lu,LR,Ak,ZA,lA,uA,Yf,ng,Dk,aP,XO,_R,lR,Ik,sg,PA,EA]})}}return t})();function XQ(t,i){if(t&1){let e=A();l(0,"button",7),b("click",function(){let o=C(e).$implicit,r=g();return w(r.changeLang(o))}),h(1),d()}if(t&2){let e=i.$implicit;u(),ae(e.name)}}function JQ(t,i){t&1&&(l(0,"uds-translate"),h(1,"Light theme"),d())}function eK(t,i){t&1&&(l(0,"uds-translate"),h(1,"Dark theme"),d())}function tK(t,i){t&1&&(l(0,"uds-translate"),h(1,"Light theme"),d())}function nK(t,i){t&1&&(l(0,"uds-translate"),h(1,"Dark theme"),d())}function iK(t,i){if(t&1&&(l(0,"button",11)(1,"i",8),h(2,"face"),d(),l(3,"span"),h(4),d()()),t&2){let e=g(),n=Ye(8);_("matMenuTriggerFor",n),u(4),ae(e.api.user.user)}}function oK(t,i){if(t&1&&(l(0,"a",22)(1,"i",8),h(2,"arrow_back"),d()()),t&2){let e=g(2);_("routerLink",e.parentRoute)}}function rK(t,i){if(t&1&&I(0,"img",23),t&2){let e=g(2),n=g();_("src",n.api.staticURL("admin/img/icons/"+e.icon+".png"),Ee)}}function aK(t,i){if(t&1&&(l(0,"div",20)(1,"span",21),h(2,"/"),d(),E(3,oK,3,1,"a",22)(4,rK,1,1,"img",23),l(5,"span",24),h(6),d()()),t&2){let e=g();u(3),T(e.parentRoute?3:-1),u(),T(e.icon?4:-1),u(2),ae(e.title)}}function sK(t,i){t&1&&E(0,aK,7,3,"div",20),t&2&&T(i.title?0:-1)}function lK(t,i){if(t&1&&(l(0,"button",17),h(1),l(2,"i",8),h(3,"arrow_drop_down"),d()()),t&2){let e=g(),n=Ye(8);_("matMenuTriggerFor",n),u(),F("",e.api.user.user," ")}}var mP=(()=>{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)(y(j),y(ga))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-navbar"]],standalone:!1,decls:53,vars:19,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){let r=A();l(0,"form",3),I(1,"input",4)(2,"input",5),d(),l(3,"mat-menu",null,0),oe(5,XQ,2,1,"button",6,ce),d(),l(7,"mat-menu",null,1)(9,"button",7),b("click",function(){return C(r),w(o.user())}),l(10,"i",8),h(11,"home"),d(),l(12,"uds-translate"),h(13,"User mode"),d()(),l(14,"button",7),b("click",function(){return C(r),w(o.toggleTheme())}),l(15,"i",8),h(16),d(),E(17,JQ,2,0,"uds-translate")(18,eK,2,0,"uds-translate"),d(),l(19,"button",7),b("click",function(){return C(r),w(o.logout())}),l(20,"i",9),h(21,"exit_to_app"),d(),l(22,"uds-translate"),h(23,"Logout"),d()()(),l(24,"mat-menu",10,2)(26,"button",7),b("click",function(){return C(r),w(o.toggleTheme())}),l(27,"i",8),h(28),d(),E(29,tK,2,0,"uds-translate")(30,nK,2,0,"uds-translate"),d(),E(31,iK,5,2,"button",11),l(32,"button",11)(33,"i",8),h(34,"language"),d(),l(35,"span"),h(36),d()()(),l(37,"mat-toolbar",12)(38,"button",13),I(39,"img",14),d(),E(40,sK,1,1),dt(41,"async"),I(42,"span",15),l(43,"div",16)(44,"button",17),h(45),l(46,"i",8),h(47,"arrow_drop_down"),d()(),E(48,lK,4,2,"button",17),d(),l(49,"div",18)(50,"button",19)(51,"i",8),h(52,"menu"),d()()()()}if(n&2){let r,a=Ye(4),s=Ye(25);Xr("action",o.api.config.urls.change_language,Ee),u(),Xr("name",o.api.csrfField),Xr("value",o.api.csrfToken),u(),Xr("value",o.lang.id),u(3),re(o.langs),u(11),ae(o.api.isDarkTheme?"wb_sunny":"brightness_2"),u(),T(o.api.isDarkTheme?17:18),u(11),ae(o.api.isDarkTheme?"wb_sunny":"brightness_2"),u(),T(o.api.isDarkTheme?29:30),u(2),T(o.api.user.isLogged?31:-1),u(),_("matMenuTriggerFor",a),u(4),ae(o.lang.name),u(3),_("src",o.api.staticURL("admin/img/udsicon.png"),Ee),u(),T((r=vt(41,17,o.headerData$))?40:-1,r),u(4),_("matMenuTriggerFor",a),u(),F("",o.lang.name," "),u(3),T(o.api.user.isLogged?48:-1),u(2),_("matMenuTriggerFor",s)}},dependencies:[cn,hf,df,ao,cP,ye,wn,ya,xs,mg,de,Jc],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}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 pP=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=S({type:t,selectors:[["uds-footer"]],standalone:!1,decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(n,o){n&1&&(l(0,"div"),h(1,"\xA9 2012-2025 "),l(2,"a",0),h(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, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}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 uK(t,i){if(t&1&&(l(0,"a",16),I(1,"img",2),l(2,"uds-translate"),h(3,"Groups"),d()()),t&2){let e=g();u(),_("src",e.icon("groups"),Ee)}}function mK(t,i){if(t&1){let e=A();l(0,"a",3),b("click",function(){C(e);let o=g();return w(o.toggleConfig())}),I(1,"img",2),l(2,"span")(3,"uds-translate"),h(4,"Tools"),d(),l(5,"i",4),h(6,"arrow_drop_down"),d()()()}if(t&2){let e=g();u(),_("src",e.icon("tools"),Ee)}}var hP=(()=>{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)(y(j),y(te))}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"a",1),I(2,"img",2),l(3,"uds-translate"),h(4,"Summary"),d()(),l(5,"a",3),b("click",function(){return o.toggleServices()}),I(6,"img",2),l(7,"span")(8,"uds-translate"),h(9,"Services"),d(),l(10,"i",4),h(11,"arrow_drop_down"),d()()(),l(12,"div",5)(13,"a",6),I(14,"img",2),l(15,"uds-translate"),h(16,"Providers"),d()(),l(17,"a",7),I(18,"img",2),l(19,"uds-translate"),h(20,"Servers"),d()()(),l(21,"a",3),b("click",function(){return o.toggleAuths()}),I(22,"img",2),l(23,"span")(24,"uds-translate"),h(25,"Authentication"),d(),l(26,"i",4),h(27,"arrow_drop_down"),d()()(),l(28,"div",5)(29,"a",8),I(30,"img",2),l(31,"uds-translate"),h(32,"Authenticators"),d()(),l(33,"a",9),I(34,"img",2),l(35,"uds-translate"),h(36,"Multi Factor"),d()()(),l(37,"a",10),I(38,"img",2),l(39,"uds-translate"),h(40,"Os Managers"),d()(),l(41,"a",3),b("click",function(){return o.toggleConnectivity()}),I(42,"img",2),l(43,"span")(44,"uds-translate"),h(45,"Connectivity"),d(),l(46,"i",4),h(47,"arrow_drop_down"),d()()(),l(48,"div",5)(49,"a",11),I(50,"img",2),l(51,"uds-translate"),h(52,"Transports"),d()(),l(53,"a",12),I(54,"img",2),l(55,"uds-translate"),h(56,"Networks"),d()(),l(57,"a",13),I(58,"img",2),l(59,"uds-translate"),h(60,"Tunnels"),d()()(),l(61,"a",3),b("click",function(){return o.togglePools()}),I(62,"img",2),l(63,"span")(64,"uds-translate"),h(65,"Pools"),d(),l(66,"i",4),h(67,"arrow_drop_down"),d()()(),l(68,"div",5)(69,"a",14),I(70,"img",2),l(71,"uds-translate"),h(72,"Service pools"),d()(),l(73,"a",15),I(74,"img",2),l(75,"uds-translate"),h(76,"Meta pools"),d()(),E(77,uK,4,1,"a",16),l(78,"a",17),I(79,"img",2),l(80,"uds-translate"),h(81,"Calendars"),d()(),l(82,"a",18),I(83,"img",2),l(84,"uds-translate"),h(85,"Accounting"),d()()(),E(86,mK,7,1,"a",19),l(87,"div",5)(88,"a",20),I(89,"img",2),l(90,"uds-translate"),h(91,"Gallery"),d()(),l(92,"a",21),I(93,"img",2),l(94,"uds-translate"),h(95,"Reports"),d()(),l(96,"a",22),I(97,"img",2),l(98,"uds-translate"),h(99,"Notifiers"),d()(),l(100,"a",3),b("click",function(){return o.tokensShown=!o.tokensShown}),I(101,"img",2),l(102,"span")(103,"uds-translate"),h(104,"Tokens"),d(),l(105,"i",4),h(106,"arrow_drop_down"),d()()(),l(107,"div",23)(108,"a",24),I(109,"img",2),l(110,"uds-translate"),h(111,"Actor"),d()(),l(112,"a",25),I(113,"img",2),l(114,"uds-translate"),h(115,"Servers"),d()()(),l(116,"a",26),I(117,"img",2),l(118,"uds-translate"),h(119,"Configuration"),d()(),l(120,"a",3),b("click",function(){return o.flushCache()}),I(121,"img",2),l(122,"uds-translate"),h(123,"Flush Cache"),d()()()()),n&2&&(u(2),_("src",o.icon("dashboard-monitor"),Ee),u(4),_("src",o.icon("providers"),Ee),u(6),_("hidden",!o.servicesShown),u(2),_("src",o.icon("providers"),Ee),u(4),_("src",o.icon("servers"),Ee),u(4),_("src",o.icon("authentication"),Ee),u(6),_("hidden",!o.authsShown),u(2),_("src",o.icon("authenticators"),Ee),u(4),_("src",o.icon("mfas"),Ee),u(4),_("src",o.icon("osmanagers"),Ee),u(4),_("src",o.icon("connectivity"),Ee),u(6),_("hidden",!o.connectivityShown),u(2),_("src",o.icon("transports"),Ee),u(4),_("src",o.icon("networks"),Ee),u(4),_("src",o.icon("tunnels"),Ee),u(4),_("src",o.icon("poolsmenu"),Ee),u(6),_("hidden",!o.poolsShown),u(2),_("src",o.icon("pools"),Ee),u(4),_("src",o.icon("metas"),Ee),u(3),T(o.api.user.isAdmin?77:-1),u(2),_("src",o.icon("calendars"),Ee),u(4),_("src",o.icon("accounts"),Ee),u(3),T(o.api.user.isAdmin?86:-1),u(),_("hidden",!o.configShown),u(2),_("src",o.icon("gallery"),Ee),u(4),_("src",o.icon("reports"),Ee),u(4),_("src",o.icon("notifiers"),Ee),u(4),_("src",o.icon("tokens"),Ee),u(6),_("hidden",!o.tokensShown),u(2),_("src",o.icon("actors"),Ee),u(4),_("src",o.icon("servers"),Ee),u(4),_("src",o.icon("configuration"),Ee),u(4),_("src",o.icon("flush-cache"),Ee))},dependencies:[cn,ua,de],styles:[".mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-0, none)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-1, none)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-2, none)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-3, none)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-4, none)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-5, none)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-6, none)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-7, none)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-8, none)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-9, none)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-10, none)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-11, none)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-12, none)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-13, none)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-14, none)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-15, none)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-16, none)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-17, none)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-18, none)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-19, none)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-20, none)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-21, none)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-22, none)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-23, none)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--mat-app-elevation-shadow-level-24, none)}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 hK(t,i){if(t&1&&I(0,"div",0),t&2){let e=g();_("innerHTML",e.messages,Wt)}}var fP=(()=>{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)(y(j))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-notices"]],standalone:!1,decls:1,vars:1,consts:[[1,"notice",3,"innerHTML"]],template:function(n,o){n&1&&E(0,hK,1,1,"div",0),n&2&&T(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 gK=["backgroundThumbnail"],gP=(()=>{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 c=0,m=20;for(c=-m;c<=this.ctx.canvas.width+m;c+=m){let f=r.yBase+Math.sin(c*.001+this.time*r.speed+r.offset)*r.amplitude+Math.cos(c*.003+this.time*r.speed*.5)*(r.amplitude*.4);c===-m?this.ctx.moveTo(c,f):this.ctx.lineTo(c,f)}this.ctx.stroke()}),this.animationFrameId=requestAnimationFrame(()=>this.animate())}ngOnDestroy(){this.animationFrameId&&cancelAnimationFrame(this.animationFrameId)}static{this.\u0275fac=function(n){return new(n||t)(y(j))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-background"]],viewQuery:function(n,o){if(n&1&&me(gK,5),n&2){let r;q(r=Y())&&(o.canvasRef=r.first)}},hostBindings:function(n,o){n&1&&b("resize",function(){return o.onResize()},!1,ul)},standalone:!1,decls:2,vars:0,consts:[["backgroundThumbnail",""],[1,"background-canvas"]],template:function(n,o){n&1&&I(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 _P=(()=>{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)(y(j))}}static{this.\u0275cmp=S({type:t,selectors:[["uds-root"]],hostBindings:function(n,o){n&1&&b("keydown",function(a){return o.handleKeyboardEvent(a)},!1,DE)},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&&(I(0,"uds-background")(1,"uds-navbar"),l(2,"div",0),b("click",function(){return o.api.toggleSidebar()}),l(3,"i",1),h(4),d()(),I(5,"uds-sidebar"),l(6,"div",2)(7,"div",3),I(8,"uds-notices")(9,"router-outlet"),d(),l(10,"div",4),I(11,"uds-footer"),d()()),n&2&&(u(2),X("sidebar-hidden",!o.api.sidebarVisible),u(2),ae(o.api.sidebarVisible?"chevron_left":"chevron_right"),u(),X("sidebar-hidden",!o.api.sidebarVisible),u(),X("sidebar-hidden",!o.api.sidebarVisible))},dependencies:[Ed,mP,pP,hP,fP,gP],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 vP=(()=>{class t extends ba{constructor(){super(),this.itemsPerPageLabel=django.gettext("Items per page")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=L({token:t,factory:t.\u0275fac})}}return t})();var bP=(()=>{class t{constructor(){this.field={},this.changed=new k}ngOnInit(){this.field.value=this.field.value||this.field.gui.default||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=S({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&&(l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"input",0),W("ngModelChange",function(a){return G(o.field.value,a)||(o.field.value=a),a}),b("change",function(){return o.changed.emit(o)}),d()()),n&2&&(u(2),F(" ",o.field.gui.label," "),u(),H("ngModel",o.field.value),_("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:[st,xe,In,bs,Se,ge,Ae,pt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();function vK(t,i){if(t&1&&(l(0,"mat-option",1),h(1),d()),t&2){let e=i.$implicit;_("value",e),u(),F(" ",e," ")}}var yP=(()=>{class t{constructor(){this.field={},this.changed=new k,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=S({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=A();l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"mat-autocomplete",null,0),oe(5,vK,2,2,"mat-option",1,ce),d(),l(7,"input",2),W("ngModelChange",function(s){return C(r),G(o.field.value,s)||(o.field.value=s),w(s)}),b("change",function(){return C(r),w(o.changed.emit(o))}),d()()}if(n&2){let r=Ye(4);u(2),F(" ",o.field.gui.label," "),u(3),re(o._filter()),u(2),H("ngModel",o.field.value),_("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:[st,xe,In,bs,Se,ge,Ae,pt,Ze,ic,Es],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var CP=(()=>{class t{constructor(){this.field={},this.changed=new k}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=S({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&&(l(0,"mat-form-field",0)(1,"mat-label"),h(2),d(),l(3,"input",1),W("ngModelChange",function(a){return G(o.field.value,a)||(o.field.value=a),a}),b("change",function(){return o.changed.emit(o)}),d()()),n&2&&(u(2),F(" ",o.field.gui.label," "),u(),H("ngModel",o.field.value),_("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0))},dependencies:[st,ji,xe,In,Se,ge,Ae,pt],encapsulation:2})}}return t})();var wP=(()=>{class t{constructor(){this.field={},this.changed=new k,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=S({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&&(l(0,"mat-form-field",0)(1,"mat-label"),h(2),d(),l(3,"input",1),W("ngModelChange",function(a){return G(o.field.value,a)||(o.field.value=a),a}),b("change",function(){return o.changed.emit(o)}),d(),l(4,"button",2),b("click",function(){return o.passwordType=o.passwordType==="text"?"password":"text"}),l(5,"i",3),h(6),d()()()),n&2&&(u(2),F(" ",o.field.gui.label," "),u(),H("ngModel",o.field.value),_("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0)("type",o.passwordType),u(3),ae(o.passwordType==="text"?"visibility_off":"visibility"))},dependencies:[st,xe,In,Se,wn,ge,Ae,Ui,pt],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]})}}return t})();var xP=(()=>{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=S({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},standalone:!1,decls:0,vars:0,template:function(n,o){},encapsulation:2})}}return t})();var DP=(()=>{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=S({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&&(l(0,"mat-form-field",0)(1,"mat-label"),h(2),d(),l(3,"textarea",1),W("ngModelChange",function(a){return G(o.field.value,a)||(o.field.value=a),a}),d()()),n&2&&(u(2),F(" ",o.field.gui.label," "),u(),H("ngModel",o.field.value),_("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:[st,xe,In,bs,Se,ge,Ae,pt],encapsulation:2})}}return t})();function bK(t,i){if(t&1&&(l(0,"mat-option",2),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.text," ")}}var SP=(()=>{class t{constructor(){this.field={},this.changed=new k,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=S({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},standalone:!1,features:[je],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&&(l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"mat-select",0),W("ngModelChange",function(a){return G(o.field.value,a)||(o.field.value=a),a}),b("valueChange",function(){return o.changed.emit(o)}),l(4,"uds-cond-select-search",1),b("changed",function(a){return o.filter=a}),d(),oe(5,bK,2,2,"mat-option",2,ce),d()()),n&2&&(u(2),F(" ",o.field.gui.label," "),u(),H("ngModel",o.field.value),_("placeholder",o.field.gui.tooltip)("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),u(),_("options",o.field.gui.choices)("placeholderLabel",o.placeholderLabel)("noEntriesFoundLabel",o.noEntriesFoundLabel),u(),re(o.filteredValues()))},dependencies:[xe,In,Se,ge,Ae,ht,Ze,dn],encapsulation:2})}}return t})();function yK(t,i){if(t&1&&(l(0,"mat-option",2),h(1),d()),t&2){let e=i.$implicit;_("value",e.id),u(),F(" ",e.text," ")}}var EP=(()=>{class t{constructor(){this.field={},this.changed=new k,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=S({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&&(l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"mat-select",0),W("ngModelChange",function(a){return G(o.field.value,a)||(o.field.value=a),a}),b("valueChange",function(){return o.changed.emit(o)}),l(4,"mat-select-trigger"),h(5),d(),l(6,"uds-cond-select-search",1),b("changed",function(a){return o.filter=a}),d(),oe(7,yK,2,2,"mat-option",2,ce),d()()),n&2&&(u(2),F(" ",o.field.gui.label," "),u(),H("ngModel",o.field.value),_("placeholder",o.selectTriggerString())("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),u(2),F(" ",o.selectTriggerString()," "),u(),_("options",o.field.gui.choices),u(),re(o.filteredValues()))},dependencies:[xe,In,Se,ge,Ae,ht,su,Ze,dn],encapsulation:2})}}return t})();function CK(t,i){if(t&1){let e=A();l(0,"div",3)(1,"div",12),h(2),d(),l(3,"div",13),h(4," \xA0"),l(5,"a",14),b("click",function(){let o=C(e).$index,r=g();return w(r.removeElement(o))}),l(6,"i",15),h(7,"close"),d()()()()}if(t&2){let e=i.$implicit;u(2),F(" ",e," ")}}var MP=(()=>{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 qt,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)(y(j),y(te),y(Re),y(Ve))}}static{this.\u0275cmp=S({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&&(l(0,"h4",0),h(1),d(),l(2,"mat-dialog-content")(3,"div",1)(4,"div",2),oe(5,CK,8,1,"div",3,ce),d(),l(7,"div",4)(8,"button",5),b("click",function(){return o.removeAll()}),l(9,"uds-translate"),h(10,"Remove all"),d()()(),l(11,"div",6)(12,"mat-form-field",7)(13,"input",8),b("keyup",function(a){return o.checkKey(a)}),W("ngModelChange",function(a){return G(o.input,a)||(o.input=a),a}),d(),l(14,"button",9),b("click",function(){return o.addElements()}),l(15,"i",10),h(16,"add"),d()()()()()(),l(17,"mat-dialog-actions")(18,"button",5),b("click",function(){return o.cancel()}),l(19,"uds-translate"),h(20,"Cancel"),d()(),l(21,"button",11),b("click",function(){return o.save()}),l(22,"uds-translate"),h(23,"Ok"),d()()()),n&2&&(u(),F(" ",o.data.title,` +`),u(4),re(o.values),u(8),H("ngModel",o.input))},dependencies:[st,xe,Se,ye,wn,Ue,We,He,ge,Ui,pt,de],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 TP=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new k}ngOnInit(){}valueEmpty(){return this.field.value===void 0||this.field.value===null||this.field.value.length===0}launch(){return N(this,null,function*(){this.valueEmpty()&&(this.field.value=[]);let e=yield MP.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)(y(j))}}static{this.\u0275cmp=S({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&&(l(0,"mat-form-field",0),b("click",function(){return o.launch()}),l(1,"mat-label"),h(2),d(),I(3,"input",1),d()),n&2&&(u(2),F(" ",o.field.gui.label," "),u(),_("readonly",!0)("value",o.getValue())("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0))},dependencies:[ge,Ae,pt],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]})}}return t})();var IP=(()=>{class t{constructor(){this.field={},this.changed=new k}ngOnInit(){II(this.field.value)?this.field.value=Wh(this.field.gui.default):this.field.value=Wh(this.field.value)}getValue(){return Wh(this.field.value)?django.gettext("Yes"):django.gettext("No")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=S({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&&(l(0,"div",0)(1,"mat-slide-toggle",1),W("ngModelChange",function(a){return G(o.field.value,a)||(o.field.value=a),a}),b("change",function(){return o.changed.emit(o)}),h(2),d()()),n&2&&(u(),H("ngModel",o.field.value),_("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),u(),F(" ",o.field.gui.label," "))},dependencies:[xe,In,Se,rr],styles:[".toggle[_ngcontent-%COMP%]{margin-bottom:1.5rem}"]})}}return t})();function wK(t,i){if(t&1&&I(0,"div",3),t&2){let e=g().$implicit,n=g();_("innerHTML",n.asIcon(e),Wt)}}function xK(t,i){if(t&1&&(l(0,"div"),E(1,wK,1,1,"div",3),d()),t&2){let e=i.$implicit,n=g();u(),T(e.id===n.field.value?1:-1)}}function DK(t,i){if(t&1&&(l(0,"mat-option",2),I(1,"div",3),d()),t&2){let e=i.$implicit,n=g();_("value",e.id),u(),_("innerHTML",n.asIcon(e),Wt)}}var kP=(()=>{class t{constructor(e){this.api=e,this.field={},this.changed=new k,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)(y(j))}}static{this.\u0275cmp=S({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&&(l(0,"mat-form-field")(1,"mat-label"),h(2),d(),l(3,"mat-select",0),b("valueChange",function(){return o.changed.emit(o)}),W("ngModelChange",function(a){return G(o.field.value,a)||(o.field.value=a),a}),l(4,"mat-select-trigger"),oe(5,xK,2,1,"div",null,ce),d(),l(7,"uds-cond-select-search",1),b("changed",function(a){return o.filter=a}),d(),oe(8,DK,2,2,"mat-option",2,ce),d()()),n&2&&(u(2),F(" ",o.field.gui.label," "),u(),_("placeholder",o.field.gui.tooltip),H("ngModel",o.field.value),_("required",o.field.gui.required===!0)("disabled",o.field.gui.readonly===!0),u(2),re(o.field.gui.choices),u(2),_("options",o.field.gui.choices),u(),re(o.filteredValues()))},dependencies:[xe,In,Se,ge,Ae,ht,su,Ze,dn],encapsulation:2})}}return t})();var AP=(()=>{class t{constructor(){this.field={},this.changed=new k,this.value=new Date}get date(){return this.value}set date(e){this.value!==e&&(this.value=e,this.field.value=da("%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=da("%Y-01-01"):this.field.value==="2000-01-01"&&(this.field.value=da("%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=S({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=A();l(0,"mat-form-field",1)(1,"mat-label"),h(2),d(),l(3,"input",2),W("ngModelChange",function(s){return C(r),G(o.date,s)||(o.date=s),w(s)}),d(),I(4,"mat-datepicker-toggle",3)(5,"mat-datepicker",null,0),d()}if(n&2){let r=Ye(6);u(2),F(" ",o.field.gui.label," "),u(),_("matDatepicker",r),H("ngModel",o.date),_("placeholder",o.field.gui.tooltip)("disabled",o.field.gui.readonly===!0),u(),_("for",r)}},dependencies:[st,xe,Se,ge,Ae,Ui,pt,zg,sc,gu],encapsulation:2})}}return t})();function SK(t,i){if(t&1){let e=A();l(0,"mat-chip-row",5),b("removed",function(){let o=C(e).$implicit,r=g();return w(r.remove(o))}),h(1),l(2,"i",6),h(3,"cancel"),d()()}if(t&2){let e=i.$implicit,n=g();_("removable",n.field.gui.readonly!==!0),u(),F(" ",e," ")}}var RP=(()=>{class t{constructor(){this.field={},this.changed=new k,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=S({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){let r=A();l(0,"mat-form-field",1)(1,"mat-label"),h(2),d(),l(3,"mat-chip-grid",2,0),b("change",function(){return C(r),w(o.changed.emit(o))}),oe(5,SK,4,2,"mat-chip-row",3,ce),l(7,"input",4),b("matChipInputTokenEnd",function(s){return C(r),w(o.add(s))}),d()()()}if(n&2){let r=Ye(4);u(2),F(" ",o.field.gui.label," "),u(),_("disabled",o.field.gui.readonly===!0),u(2),re(o.field.value),u(2),_("placeholder",o.field.gui.tooltip)("matChipInputFor",r)("matChipInputSeparatorKeyCodes",o.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},dependencies:[ge,Ae,oP,rP,iP,cx],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]})}}return t})();var lOe=Mu(FP());var NP=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=ee({type:t,bootstrap:[_P]})}static{this.\u0275inj=J({providers:[j,te,{provide:ba,useClass:vP},$0(q0())],imports:[ad,XR,ZO,uP,Vk.forRoot({echarts:()=>import("./chunk-T47LOWTI.js")})]})}}return t})();LM(_f,function(){return[To,bP,CP,wP,xP,DP,SP,EP,TP,IP,kP,AP,RP,yP]},[]);yf.production&&void 0;j0().bootstrapModule(NP).catch(t=>console.log(t)); diff --git a/src/uds/static/admin/translations-fakejs.js b/src/uds/static/admin/translations-fakejs.js index 7bec490cf..f9ce9c731 100644 --- a/src/uds/static/admin/translations-fakejs.js +++ b/src/uds/static/admin/translations-fakejs.js @@ -136,6 +136,7 @@ gettext("Closes"); gettext("Hours"); gettext("Sessions"); gettext("Errors"); +gettext("Failed attempts"); gettext("No data for this period"); gettext("New Authenticator"); gettext("Edit Authenticator"); @@ -434,6 +435,12 @@ gettext("Logs"); gettext("Ok"); gettext("Summary"); gettext("Servers"); +gettext("Updated"); +gettext("License expired"); +gettext("License expires in"); +gettext("days"); +gettext("License valid until"); +gettext("No license"); gettext("Loading dashboard data..."); gettext("Users"); gettext("Groups"); @@ -451,6 +458,7 @@ 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"); @@ -471,6 +479,18 @@ gettext("assigned"); gettext("View service pools"); gettext("restrained services"); gettext("View service pools"); +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("Summary"); gettext("Users"); gettext("Groups"); diff --git a/src/uds/templates/uds/admin/index.html b/src/uds/templates/uds/admin/index.html index 6219a2cde..2fca854fa 100644 --- a/src/uds/templates/uds/admin/index.html +++ b/src/uds/templates/uds/admin/index.html @@ -101,6 +101,6 @@ - +