Viewing File: /usr/local/cpanel/base/frontend/jupiter/team-manager/vendor.140c34b2ed9283e9.js

(self.webpackChunkteam_manager=self.webpackChunkteam_manager||[]).push([[736],{109:(J,F,p)=>{"use strict";p.d(F,{F:()=>r});var r=(()=>{return(_=r||(r={}))[_.GET=0]="GET",_[_.HEAD=1]="HEAD",_[_.POST=2]="POST",_[_.PUT=3]="PUT",_[_.DELETE=4]="DELETE",_[_.CONNECT=5]="CONNECT",_[_.OPTIONS=6]="OPTIONS",_[_.TRACE=7]="TRACE",_[_.PATCH=8]="PATCH",r;var _})()},6020:(J,F,p)=>{"use strict";p.d(F,{j:()=>_t});var r=p(1978),_=p.n(r);function V(Fe){return Fe?"1":"0"}var I=p(755),R=p(3357),x=p(7709);const L=Number.POSITIVE_INFINITY;class G{constructor(le=1,Te=20){if(le<=0)throw new Error("The page must be 1 or greater. This is the logical page, not a programming index.");if(Te<=0)throw new Error("The pageSize must be set to 'ALL' or a number > 0");this.page=le,this.pageSize=Te}all(){return this.pageSize===L}}class ne{constructor(le=[]){this.headers=le}push(le){this.headers.push(le)}forEach(le,Te){this.headers.forEach(le,Te)}toArray(){const le=[];return this.headers.forEach(Te=>le.push({name:Te.name,value:Te.value})),le}toObject(){return this.headers.reduce((le,Te)=>(le[Te.name]=Te.value,le),{})}}class re{constructor(le){this._header=le}get name(){return this._header.name}get value(){return this._header.value}}Error,Error;class ve extends Error{constructor(le){super(le),this.name="WhmApiTokenInvalidError",Object.setPrototypeOf(this,ve.prototype)}}class at extends Error{constructor(le){super(le),this.name="WhmApiTokenMismatchError",Object.setPrototypeOf(this,at.prototype)}}class Ye extends re{constructor(le,Te){if(!le)throw new ve("You must pass a valid token to the constructor.");if(!Te&&!/^.+:/.test(le))throw new ve("You must pass a WHM username associated with the WHM API token.");if(!Te&&!/:.+$/.test(le))throw new ve("You must pass a valid WHM API token.");super({name:"Authorization",value:`whm ${Te?Te+":":""}${le}`})}}var st=p(109);const Je=new class be{constructor(){this.map={},this.map.DEFAULT={verb:"DEFAULT",dataInBody:!0},[st.F.GET,st.F.DELETE,st.F.HEAD].forEach(le=>{const Te=st.F[le].toString();this.map[Te]={verb:Te,dataInBody:!1}}),[st.F.POST,st.F.PUT,st.F.PATCH].forEach(le=>{const Te=st.F[le].toString();this.map[Te]={verb:Te,dataInBody:!0}})}getRule(le){const Te="string"==typeof le?le:st.F[le].toString();let He=this.map[Te];return He||(He=this.map.DEFAULT),He}};var Gt=p(3022);class _t extends class Be{constructor(le){this.namespace="",this.method="",this.arguments=[],this.sorts=[],this.filters=[],this.columns=[],this.pager=new G,this.headers=new ne,this._usePager=!1,this.defaultConfig={analytics:!1,json:!1},this.config=this.defaultConfig,le&&(this.method=le.method,le.namespace&&(this.namespace=le.namespace),le.arguments&&le.arguments.forEach(Te=>{this.addArgument(Te)}),le.sorts&&le.sorts.forEach(Te=>{this.addSort(Te)}),le.filters&&le.filters.forEach(Te=>{this.addFilter(Te)}),le.columns&&le.columns.forEach(Te=>this.addColumn(Te)),le.pager&&this.paginate(le.pager),this.config=le.config?le.config:this.defaultConfig,le.headers&&le.headers.forEach(Te=>{this.addHeader(Te)}))}get usePager(){return this._usePager}addArgument(le){return this.arguments.push(le instanceof x.h?le:new x.h(le.name,le.value)),this}addSort(le){return this.sorts.push(le instanceof I.PE?le:new I.PE(le.column,le.direction,le.type)),this}addFilter(le){return this.filters.push(le instanceof R.w?le:new R.w(le.column,le.operator,le.value)),this}addColumn(le){return this.columns.push(le),this}addHeader(le){return this.headers.push(le instanceof re?le:new re(le)),this}paginate(le){return this.pager=le instanceof G?le:new G(le.page,le.pageSize||20),this._usePager=!0,this}}{addHeader(le){if(le instanceof Ye)throw new at("A WhmApiTokenHeader cannot be used on a CpanelApiRequest");return super.addHeader(le),this}_build(le,Te){let He="";return le.forEach((dt,Ze,$e)=>{He+=Te.encode(dt.name,dt.value,Ze===$e.length-1)}),Te.separatorStart+He+Te.separatorEnd}_generateArguments(le){this.arguments.forEach(Te=>le.push(Te))}_generateSorts(le){this.sorts.forEach((Te,He)=>{0===He&&le.push({name:"api.sort",value:V(!0)}),le.push({name:"api.sort_column_"+He,value:Te.column}),le.push({name:"api.sort_reverse_"+He,value:V(Te.direction!==I.Sr.Ascending)}),le.push({name:"api.sort_method_"+He,value:_()(I.ER[Te.type])})})}_lookupFilterOperator(le){switch(le){case R.p.GreaterThanUnlimited:return"gt_handle_unlimited";case R.p.GreaterThan:return"gt";case R.p.LessThanUnlimited:return"lt_handle_unlimited";case R.p.LessThan:return"lt";case R.p.NotEqual:return"ne";case R.p.Equal:return"eq";case R.p.Defined:return"defined";case R.p.Undefined:return"undefined";case R.p.Matches:return"matches";case R.p.Ends:return"ends";case R.p.Begins:return"begins";case R.p.Contains:return"contains";default:throw new Error(`Unrecognized FilterOperator ${R.p[le]} for UAPI`)}}_generateFilters(le){this.filters.forEach((Te,He)=>{le.push({name:"api.filter_column_"+He,value:Te.column}),le.push({name:"api.filter_type_"+He,value:this._lookupFilterOperator(Te.operator)}),le.push({name:"api.filter_term_"+He,value:Te.value})})}_traslatePageToStart(le){return(le.page-1)*le.pageSize+1}_generatePagination(le){if(!this.usePager)return;const Te=this.pager.all();le.push({name:"api.paginate",value:V(!0)}),le.push({name:"api.paginate_start",value:Te?-1:this._traslatePageToStart(this.pager)}),Te||le.push({name:"api.paginate_size",value:this.pager.pageSize})}_generateConfiguration(le){this.config&&this.config.analytics&&le.push({name:"api.analytics",value:V(this.config.analytics)})}constructor(le){super(le)}generate(le){if(!this.namespace)throw new Error("You must define a namespace for the UAPI call before you generate a request");if(!this.method)throw new Error("You must define a method for the UAPI call before you generate a request");le||(le={verb:st.F.POST,encoder:this.config.json?new Gt.tO:new Gt.VN}),le.encoder||(le.encoder=this.config.json?new Gt.tO:new Gt.VN);const Te=Je.getRule(le.verb),He={headers:new ne([{name:"Content-Type",value:le.encoder.contentType}]),url:["","execute",this.namespace,this.method].map(encodeURIComponent).join("/"),body:""},dt=[];this._generateArguments(dt),this._generateSorts(dt),this._generateFilters(dt),this._generatePagination(dt),this._generateConfiguration(dt);const Ze=this._build(dt,le.encoder);return Te.dataInBody?He.body=Ze:He.url+=le.verb===st.F.GET?`?${Ze}`:Ze,this.headers.forEach($e=>{He.headers.push({name:$e.name,value:$e.value})}),He}}},7709:(J,F,p)=>{"use strict";p.d(F,{h:()=>r});class r{constructor(j,A){if(!j)throw new Error("You must provide a name when creating a name/value argument");this.name=j,this.value=A}}},3022:(J,F,p)=>{"use strict";p.d(F,{tO:()=>at,VN:()=>ve});var r=p(4235),_=p.n(r),V=p(1305),j=p.n(V),A=p(4798),I=p.n(A),R=p(9138),x=p.n(R),H=p(248),L=p.n(H),G=p(1503),ne=p.n(G),re=p(7614),Oe=p.n(re);function Se(Ye){if(_()(Ye)||j()(Ye)||I()(Ye)||x()(Ye)||L()(Ye))return!0;if(!Oe()(Ye)&&!ne()(Ye))return!1;for(const Be in Ye)if(!Se(Ye[Be]))return!1;return!0}class ve{constructor(){this.contentType="application/x-www-form-urlencoded",this.separatorStart="",this.separatorEnd="",this.recordSeparator="&"}encode(Be,st,be){if(!Be)throw new Error("Name must have a non-empty value");return`${Be}=${encodeURIComponent(st.toString())}`+(be?"":this.recordSeparator)}}class at{constructor(){this.contentType="application/json",this.separatorStart="{",this.separatorEnd="}",this.recordSeparator=","}encode(Be,st,be){if(!Be)throw new Error("Name must have a non-empty value");if(!Se(st))throw new Error("The passed in value can not be serialized to JSON");return JSON.stringify(Be)+":"+JSON.stringify(st)+(be?"":this.recordSeparator)}}},3357:(J,F,p)=>{"use strict";p.d(F,{p:()=>r,w:()=>_});var r=(()=>{return(V=r||(r={}))[V.Contains=0]="Contains",V[V.Begins=1]="Begins",V[V.Ends=2]="Ends",V[V.Matches=3]="Matches",V[V.Equal=4]="Equal",V[V.NotEqual=5]="NotEqual",V[V.LessThan=6]="LessThan",V[V.LessThanUnlimited=7]="LessThanUnlimited",V[V.GreaterThan=8]="GreaterThan",V[V.GreaterThanUnlimited=9]="GreaterThanUnlimited",V[V.Defined=10]="Defined",V[V.Undefined=11]="Undefined",r;var V})();class _{constructor(j,A,I){if(!j)throw new Error("You must define a non-empty column name.");this.column=j,this.operator=A,this.value=I}}},6962:(J,F,p)=>{"use strict";p.d(F,{a:()=>r});class r{get pathname(){return window.location.pathname}get port(){return window.location.port}get hostname(){return window.location.hostname}get protocol(){return window.location.protocol}}},5712:(J,F,p)=>{"use strict";p.d(F,{b5:()=>I});const A={80:"other",443:"other",2082:"cpanel",2083:"cpanel",2086:"whostmgr",2087:"whostmgr",2095:"webmail",2096:"webmail",9876:"unittest",9877:"unittest",9878:"unittest",9879:"unittest",frontend:"cpanel",webmail:"webmail"};class I{constructor(x){this.unprotectedPaths=["/resetpass","/invitation"],this.protocol=x.protocol;let H=x.port;H||(function r(R){return/^https:$/i.test(R)}(this.protocol)?H="443":function _(R){return/^http:$/i.test(R)}(this.protocol)&&(H="80")),this.domain=x.hostname,this.port=parseInt(H,10),this.path=x.pathname;const L=this.path.match(/((?:\/cpsess\d+)?)(?:\/([^\/]+))?/)||[];if(this.applicationName=/^whm\./.test(this.domain)?A[2087]:/^cpanel\./.test(this.domain)?A[2083]:/^webmail\./.test(this.domain)?A[2095]:A[H.toString()]||A[L[2]]||"whostmgr",this.securityToken=L[1]||"",this.applicationPath=this.securityToken?this.path.replace(this.securityToken,""):this.path,this.theme="",!this.isUnprotected&&(this.isCpanel||this.isWebmail)){const ne=this.path.split("/");this.theme=ne[3]}this.themePath="";let G=this.securityToken+"/";this.isUnprotected?G="/":this.isCpanel?G+="frontend/"+this.theme+"/":this.isWebmail?G+="webmail/"+this.theme+"/":this.isOther&&(G="/"),this.themePath=G,this.rootUrl=this.protocol+"//"+this.domain+":"+this.port}get isOther(){return/other/i.test(this.applicationName)}get isUnprotected(){return!this.securityToken&&-1!==this.unprotectedPaths.indexOf(function V(R){return R&&R.replace(/\/?$/,"")}(this.applicationPath))}get isCpanel(){return/cpanel/i.test(this.applicationName)}get isWhm(){return/whostmgr/i.test(this.applicationName)}get isWebmail(){return/webmail/i.test(this.applicationName)}buildPath(x){return this.themePath+x}buildFullPath(x){return this.protocol+"//"+this.domain+":"+this.port+this.buildPath(x)}buildTokenPath(x){return this.protocol+"//"+this.domain+":"+this.port+this.securityToken+x}}},755:(J,F,p)=>{"use strict";p.d(F,{ER:()=>_,PE:()=>V,Sr:()=>r});var r=(()=>{return(j=r||(r={}))[j.Ascending=0]="Ascending",j[j.Descending=1]="Descending",r;var j})(),_=(()=>{return(j=_||(_={}))[j.Lexicographic=0]="Lexicographic",j[j.Ipv4=1]="Ipv4",j[j.Numeric=2]="Numeric",j[j.NumericZeroAsMax=3]="NumericZeroAsMax",_;var j})();class V{constructor(A,I=r.Ascending,R=_.Lexicographic){if(!A)throw new Error("You must provide a non-empty column name for a Sort rule.");this.column=A,this.direction=I,this.type=R}}},269:(J,F,p)=>{"use strict";F.g=void 0;const _=p(1680);Object.defineProperty(F,"g",{enumerable:!0,get:function(){return _.Locale}})},5074:(J,F)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.CLDR=void 0,F.CLDR=class p{constructor(_){this.rawData=_,this.validateCLDR(this.rawData)}validateCLDR(_){if(!_)throw new Error("CLDR data cannot be null");if(!_.locale)throw new Error("CLDR data is missing locale information");if(!Object.prototype.hasOwnProperty.call(_,"functions")||Object.prototype.hasOwnProperty.call(_,"get_plural_form")||"function"!=typeof _.functions.get_plural_form)throw new Error("CLDR data is missing function get_plural_form");if(!Object.prototype.hasOwnProperty.call(_,"datetime_info"))throw new Error("CLDR data is missing datetime_info");if(!Object.prototype.hasOwnProperty.call(_,"misc_info"))throw new Error("CLDR data is missing misc_info");if(!Object.prototype.hasOwnProperty.call(_.misc_info,"cldr_formats"))throw new Error("CLDR data is missing cldr_formats");if(!Object.prototype.hasOwnProperty.call(_.misc_info,"orientation")||!Object.prototype.hasOwnProperty.call(_.misc_info.orientation,"characters"))throw new Error("CLDR data is missing orientation information");if(!Object.prototype.hasOwnProperty.call(_.misc_info,"delimiters"))throw new Error("CLDR data is missing delimiter information");return!0}getLocale(){return this.rawData.locale}getPluralForm(_,...V){return this.rawData.functions.get_plural_form(_,...V)}getDateTimeInfo(){return this.rawData.datetime_info}getFormats(){return this.rawData.misc_info.cldr_formats}getDelimiters(){return this.rawData.misc_info.delimiters}isRtl(){return"right-to-left"===this.rawData.misc_info.orientation.characters}isLtr(){return"left-to-right"===this.rawData.misc_info.orientation.characters}}},1680:(J,F,p)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.Locale=void 0;const r=p(2889),_=p(9483),V=p(741),j=p(786),A=p(5074);F.Locale=class I{constructor(x,H={}){this.lexicon=H,this._cldr=new A.CLDR(x)}maketext(x,...H){return r.maketext({cldr:this._cldr,lexicon:this.lexicon,template:x,args:H})}localDatetime(x,H){return this._datetimeWrapper(_.local_datetime,x,H)}datetime(x,H){return this._datetimeWrapper(_.datetime,x,H)}_datetimeWrapper(x,H,L){return x({cldr:this._cldr,args:[H,L]})}getCurrentLocale(){return this._cldr.getLocale()}get isRtl(){return this._cldr.isRtl()}get isLtr(){return this._cldr.isLtr()}get cldr(){return this._cldr}numf(x,H){return this._formatNumber(V.numf,x,H)}format_bytes(x,H){return this._formatNumber(V.format_bytes,x,H)}_formatNumber(x,...H){return this._callCLDRFunc(x,H)}list_and(...x){return this._callCLDRFunc(j.list_and,x)}list_and_quoted(...x){return this._callCLDRFunc(j.list_and_quoted,x)}list_or(...x){return this._callCLDRFunc(j.list_or,x)}list_or_quoted(...x){return this._callCLDRFunc(j.list_or_quoted,x)}_callCLDRFunc(x,H){return x({cldr:this._cldr,args:H})}}},7296:(J,F,p)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.asis=void 0;const r=p(5247);F.asis=function _({args:[V,...j]}){if(!V||j.length>0||"string"!=typeof V)throw new Error("asis function accepts one non translatable string.");return(V=V.replace(/chr\((\d+)\)/g,function(A,I){return r.functions.chr(Number(I))})).replace(/amp\(\)/g,function(A){return r.functions.amp()})}},527:(J,F)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.boolean=void 0,F.boolean=function p({args:[r,_,V,j]}){if(null==_||0===_.length||null==V||0===V.length)throw new Error("boolean function needs a valid whenTrue, whenFalse arguments.");return String(typeof r<"u"&&r?_:j&&null==r?j:V)}},9076:(J,F)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.comment=void 0,F.comment=function p({args:[r]}){return""}},9483:(J,F,p)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.local_datetime=F.datetime=F.dateToLocalDayNum=void 0;const r=p(5074),_=function(L){const G=L.getUTCDay()-1;return G<0?6:G},V=[7,1,2,3,4,5,6];function j(L,G){return(V[L.getUTCDay()]+7-G)%7+1}F.dateToLocalDayNum=j;const A=function(L,G,ne){let re="",Oe=0;return G=G||0,ne=String(void 0===ne?" ":ne),Oe=G-String(L).length,Oe>0&&(re=[...Array(Oe)].map(String.prototype.valueOf,ne).join("")),re+L};function I({cldr:L,args:[G=new Date,ne],tzString:re="UTC"}){if("number"==typeof G&&/^-?\d+$/.test(G.toString())&&(G=new Date(1e3*G)),!(G instanceof Date))throw new Error("The datetime function only accepts Date instances or integer values (unix timestamps) for the `date` parameter.");if(!(L instanceof r.CLDR))throw new Error("The datetime function requires a valid CLDR instance for the `cldr` parameter.");const Oe=L.getDateTimeInfo();return"string"==typeof ne&&/^(?:date|time|datetime|special)_format_/.test(ne)&&(ne=Oe[ne]),ne||(ne=Oe.date_format_long),ne.replace(/('[^']+')|(([a-zA-Z])\3*)/g,function(Se,Ne,ve){return Ne?function R(L){return L.substr(1,L.length-2)}(Ne):function x(L,G,ne,re){switch(ne){case"yy":return Math.abs(L.getUTCFullYear()).toString().slice(-2);case"y":case"yyy":case"yyyy":return String(Math.abs(L.getUTCFullYear()));case"MMMMM":return G.month_format_narrow[L.getUTCMonth()];case"LLLLL":return G.month_stand_alone_narrow[L.getUTCMonth()];case"MMMM":return G.month_format_wide[L.getUTCMonth()];case"LLLL":return G.month_stand_alone_wide[L.getUTCMonth()];case"MMM":return G.month_format_abbreviated[L.getUTCMonth()];case"LLL":return G.month_stand_alone_abbreviated[L.getUTCMonth()];case"MM":case"LL":return A((L.getUTCMonth()+1).toString(),2,"0");case"M":case"L":return String(L.getUTCMonth()+1);case"EEEE":return G.day_format_wide[_(L)];case"EEE":case"EE":case"E":return G.day_format_abbreviated[_(L)];case"EEEEE":return G.day_format_narrow[_(L)];case"cccc":return G.day_stand_alone_wide[_(L)];case"ccc":return G.day_stand_alone_abbreviated[_(L)];case"cc":case"c":return String(j(L,Number(G.first_day_of_week)));case"ccccc":return G.day_stand_alone_narrow[_(L)];case"dd":return A(L.getUTCDate().toString(),2,"0");case"d":return String(L.getUTCDate());case"h":case"hh":{let Oe=L.getUTCHours();Oe>12&&(Oe-=12),0===Oe&&(Oe=12);const Se="hh"===ne?A(Oe.toString(),2,"0"):Oe;return String(Se)}case"H":return String(L.getUTCHours());case"HH":return A(L.getUTCHours().toString(),2,"0");case"m":return String(L.getUTCMinutes());case"mm":return A(L.getUTCMinutes().toString(),2,"0");case"s":return String(L.getUTCSeconds());case"ss":return A(L.getUTCSeconds().toString(),2,"0");case"a":return L.getUTCHours()<12?G.am_pm_abbreviated[0]:G.am_pm_abbreviated[1];case"z":case"zzzz":case"v":case"vvvv":return re;case"G":case"GG":case"GGG":return G.era_abbreviated[L.getUTCFullYear()<0?0:1];case"GGGGG":return G.era_narrow[L.getUTCFullYear()<0?0:1];case"GGGG":return G.era_wide[L.getUTCFullYear()<0?0:1]}return ne}(G,Oe,ve,re)})}F.datetime=I,F.local_datetime=function H({cldr:L,args:[G=new Date,ne]}){if("number"==typeof G&&/^-?\d+$/.test(G.toString())&&(G=new Date(1e3*G)),!(G instanceof Date))throw new Error("The datetime function only accepts Date instances or integer values (unix timestamps) for the `date` parameter.");if(!(L instanceof r.CLDR))throw new Error("The datetime function requires a valid CLDR instance for the `cldr` parameter.");const re=G.getTimezoneOffset();(G=new Date(G)).setMinutes(G.getMinutes()-re);const Oe=re>0?"-":"+",Se=Math.floor(Math.abs(re)/60),Ne=Math.abs(re%60);return I({cldr:L,args:[G,ne],tzString:"GMT"+Oe+A(Se.toString(),2,"0")+A(Ne.toString(),2,"0")})}},40:(J,F,p)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.functions=void 0;const r=p(7296),_=p(5247),V=p(9076),j=p(527),A=p(741),I=p(9483),R=p(786);F.functions={asis:r.asis,output:_.output,comment:V.comment,boolean:j.boolean,numf:A.numf,numerate:A.numerate,quant:A.quant,format_bytes:A.format_bytes,datetime:I.datetime,local_datetime:I.local_datetime,list_and:R.list_and,list_or:R.list_or,list_or_quoted:R.list_or_quoted,list_and_quoted:R.list_and_quoted}},786:(J,F)=>{"use strict";function r(R,x,...H){let L=H.slice();switch(1===L.length&&Array.isArray(L[0])&&(L=L[0].slice()),(typeof L>"u"||0===L.length)&&(L=[""]),L=L.map(G=>function p(R,x){const H=R.getDelimiters();return H&&Object.prototype.hasOwnProperty.call(H,"quotation_start")&&Object.prototype.hasOwnProperty.call(H,"quotation_end")?H.quotation_start+x+H.quotation_end:x}(R,G)),x){case"list_and":return A({cldr:R,args:L});case"list_or":return I({cldr:R,args:L});default:throw new Error("Did you mean list_and_quoted or list_or_quoted?")}}function j(R,x,...H){let L=H.slice();1===L.length&&Array.isArray(L[0])&&(L=L[0].slice());const G=L.length;let ne,re,Oe,Se;try{ne=R.getFormats()[x]}catch{throw new Error("CLDR Data is missing information related to formatting list.")}const Ne=function(ve,at){switch(at){case"0":return Oe;case"1":return L[Se++]}};switch(G){case 0:return"";case 1:return String(L[0]);default:if(Oe=2===G?ne[2]:ne.start,Oe=Oe.replace(/\{([01])\}/g,function(ve,at){return L[at]}),2===G)return Oe;for(Se=2;Se<G;)re=ne[Se===G-1?"end":"middle"],Oe=re.replace(/\{([01])\}/g,Ne);return Oe}}function A({cldr:R,args:[...x]}){return j(R,"list",...x)}function I({cldr:R,args:[...x]}){return j(R,"list_or",...x)}Object.defineProperty(F,"__esModule",{value:!0}),F.list_or=F.list_and=F.list_or_quoted=F.list_and_quoted=void 0,F.list_and_quoted=function _({cldr:R,args:[...x]}){return r(R,"list_and",...x)},F.list_or_quoted=function V({cldr:R,args:[...x]}){return r(R,"list_or",...x)},F.list_and=A,F.list_or=I},5247:(J,F,p)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.functions=F.output=void 0;const r=p(7906),_=p(8533);F.output=function V({args:[j,...A]}){if(A&&"string"==typeof A[0]&&(A[0]=A[0].replace(/chr\((\d+)\)/g,function(I,R){return F.functions.chr(Number(R))}),A[0]=A[0].replace(/amp\(\)/g,function(I){return F.functions.amp()})),"function"==typeof F.functions[j])return F.functions[j](...A);throw new Error(`Locale output function '${j}' is not implemented.`)},F.functions={amp:()=>r.htmlEscape("&"),apos:()=>r.htmlEscape("'"),quot:()=>r.htmlEscape('"'),underline:j=>`<u>${j}</u>`,strong:j=>`<strong>${j}</strong>`,em:j=>`<em>${j}</em>`,abbr:(j,A)=>`<abbr title="${A}">${j}</abbr>`,acronym:(j,A)=>`<abbr title="${A}" class="initialism">${j}</abbr>`,class:(j,...A)=>`<span class="${A.join(" ")}">${j}</span>`,chr(j){if("string"==typeof j&&(j=Number(j)),"number"!=typeof j||isNaN(j))throw new Error("chr needs a number as argument");return r.htmlEscape(String.fromCharCode(j))},url(j,...A){let I,R;if("object"==typeof A[A.length-1])if(I=A[A.length-1],2===A.length){if(I.html)throw new Error("Cannot provide both text and configuration with html attribute");R=A[0]}else I&&I.html?(R=I.html,delete I.html):R=j;else A.length%2==0?(I=_.listToObject(...A),I&&"html"in I&&""!==I.html?(R=I.html,delete I.html):R=j):(R=A.shift(),I=_.listToObject(...A));"_type"in I&&"offsite"===I._type&&(I.class="offsite",I.target="_blank",delete I._type);let x=`<a href="${j}"`;if("object"==typeof I)for(const H in I)Object.prototype.hasOwnProperty.call(I,H)&&(x+=` ${H}="${I[H]}"`);return x+=`>${R}</a>`,x}}},741:(J,F,p)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.format_bytes=F.numf=F.quant=F.numerate=void 0;const r=p(5074);function V({cldr:R,args:[x,...H]}){if(!(R instanceof r.CLDR))throw new Error("`quant` function requires a valid CLDR instance for the `cldr` parameter.");let L,G=3;x instanceof Array?(G=x[1],L=x[0]):L=x;const ne=R.getPluralForm(L,...H),re=ne[0]?ne[0]:H[H.length-1];if(ne&&ne.length>=2&&ne[1])return re;const Se=A({cldr:R,args:[L,G]});return-1!==re.indexOf("%s")?re.replace(/%s/g,Se):R.isRtl()?re+" "+Se:Se+" "+re}function A({cldr:R,args:[x,H=6]}){if(!(R instanceof r.CLDR))throw new Error("`numf` function requires a valid CLDR instance for the `cldr` parameter.");if(/e/.test(x.toString()))return String(x);const{decimalFormat:L,decimalGroup:G,decimalDecimal:ne}=function j(R){const x={},H=R.getFormats();return Object.prototype.hasOwnProperty.call(H,"decimal")&&(x.decimalFormat=H.decimal),Object.prototype.hasOwnProperty.call(H,"_decimal_format_group")&&(x.decimalGroup=H._decimal_format_group),Object.prototype.hasOwnProperty.call(H,"_decimal_format_decimal")&&(x.decimalDecimal=H._decimal_format_decimal),x}(R);if(!L||!G||!ne)throw new Error("CLDR Data is missing information related to formatting decimals.");const re=x<0;x=Math.abs(x);let Se,Ne,Oe=Math.floor(x);/(?!')\.(?!')/.test(x.toString())&&(Se=String(x).replace(/^[^.]+/,"0"),Se=Number(Se).toFixed(H),/^1/.test(Se)?(Oe++,x=Oe,Se=void 0):Se=Se.replace(/^.*\./,"").replace(/0+$/,"")),Ne=/(?!');(?!')/.test(L)?L.split(/(?!');(?!')/)[re?1:0]:(re?"-":"")+L;const Ye=Ne.match(/[0#].*[0#]/)[0].split(/(?!')\.(?!')/)[0].split("").reverse().join("").split(/(?!'),(?!')/);let Be;1===Ye.length?Be="":(Ye.pop(),Be=G);const st=String(Oe).split("").reverse(),be=[];let Je;const Gt=function(Fe){switch(Fe){case"#":return st.shift()||"";case"0":return st.shift()||"0"}};for(;st.length;){Ye.length&&(Je=Ye.shift());const Fe=Je.replace(/(?!')[0#]|[0#](?!')/g,Gt).replace(/'([.,0#;\xa4%E])'$/,"").replace(/'([.,0#;\xa4%E])'/,"$1");be.push(Fe)}const _t=be.join(Be).split("").reverse().join("")+(Se?ne+Se:"");return Ne.replace(/[0#].*[0#]/,_t)}F.numerate=function _({cldr:R,args:[x,...H]}){if(!(R instanceof r.CLDR))throw new Error("`numerate` function requires a valid CLDR instance for the `cldr` parameter.");const L=R.getPluralForm(x,...H);return L?L[0]:H[H.length-1]},F.quant=V,F.numf=A,F.format_bytes=function I({cldr:R,args:[x,H=2]}){if(!(R instanceof r.CLDR))throw new Error("`format_bytes` function requires a valid CLDR instance for the `cldr` parameter.");const L=["KB","MB","GB","TB","PB","EB","ZB","YB"],ne=x&&Math.min(Math.floor(Math.log(x)/Math.log(1024)),L.length);return ne?A({cldr:R,args:[x/Math.pow(1024,ne),H]})+"\xa0"+L[ne-1]:V({cldr:R,args:[x,"%s\xa0byte","%s\xa0bytes"]})}},2889:(J,F,p)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.maketext=F.functions=F.config=void 0;const r=p(40);function A(I,R){const x=[];let H=!1,L=!1;return I.forEach((G,ne)=>{if("_"===G.charAt(0))if("_*"===G){if(L)throw"You cannot combine wildcard substitution (_*) with a numeric substitution (e.g. _1) in the same bracket.";x.push(...R),H=!0}else{const re=G.match(F.config.underscoreDigitRe);if(re){if(H)throw"You cannot combine wildcard substitution (_*) with a numeric substitution (e.g. _1) in the same bracket.";const[Oe,Se]=re,Ne=Number(Se)-1;if(!(Ne in R))throw`The "${Oe}" substitution argument was not passed to the maketext function.`;x.push(R[Ne]),L=!0}}else x.push(G)}),x}F.config={bracketRe:/([^~\[\]]+|~.|\[|\]|~)/g,underscoreDigitRe:/^_(\d+)$/,fauxComma:"\x07",fauxCommaRe:new RegExp("\x07","g"),tildeChars:new Set(["[","]","~"])},F.functions={...r.functions},F.maketext=function V({cldr:I,lexicon:R,template:x,args:H}){if("string"!=typeof x)throw"You must pass a string template to the maketext function.";if(-1===(x=R&&R[x]||x).indexOf("["))return x;const L=x.match(F.config.bracketRe)||[],G=[];let ne=!1,re="";if(L.forEach(Oe=>{if("["===Oe){if(ne)throw Error(`Invalid maketext string: ${x} \nThe string contains nested brackets.`);ne=!0}else if("]"===Oe){if(!ne)throw Error(`Invalid maketext string: ${x} \nThe string contains an unmatched closing bracket character (]).`);if(!re)throw Error(`Invalid maketext string: ${x} \nThe string contains empty brackets. Use the escape character (~) if the bracket characters were meant to be printed literally.`);let Se;ne=!1;try{Se=function j(I,R,x){let H=R.split(",");if(H=H.map(ne=>ne.replace(F.config.fauxCommaRe,",")),1===H.length){if(!F.config.underscoreDigitRe.test(H[0]))throw"A bracket must contain more than one argument, unless it is a pure substition.\n Example: Number of accounts: [_1]";const[ne]=A(H,x);return String(ne)}const L=H.shift();if(!L||"function"!=typeof F.functions[L])throw`Invalid function "${L}" in maketext string.`;const G=A(H,x);return F.functions[L]({cldr:I,args:G})}(I,re,H)}catch(Ne){throw Error(`Invalid maketext string: ${x} \n${Ne}`)}re="",G.push(Se)}else if("~"===Oe.charAt(0)){const Se=Oe.charAt(1)||"~";ne?re+=","===Se?F.config.fauxComma:Se:F.config.tildeChars.has(Se)?G.push(Se):G.push(Oe)}else ne?re+=Oe:G.push(Oe)}),ne)throw Error(`Invalid maketext string: ${x} \nThe string contains an unmatched opening bracket character ([).`);return G.join("")}},7906:(J,F)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.htmlEscape=F.entityMap=void 0,F.entityMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},F.htmlEscape=function p(r){return String(r).replace(/[&<>"'\/]/g,_=>F.entityMap[_])}},8533:(J,F)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.listToObject=void 0,F.listToObject=function _(...V){let j={};return function p(V){if(V.length%2>0)throw new Error("An associative list must have an even number of parts: {name1}, {value1}, {name2}, {value2} ...");for(let A=0,I=V.length;A<I;A+=2){const R=V[A];if("string"!=typeof R||""===R)throw new Error("An associative list must provide non-empty string names in the 1st, 3rd, ... positions.")}return!0}(V)&&(j=function r(V){const j=V.length,A={};let R,x,I=0;for(;I<j;)R=V[I],x=V[++I],A[R]=x,I++;return A}(V)),j}},50:(J,F,p)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.commonValidators=void 0;const r=p(2257);F.commonValidators=new class _ extends r.BaseValidator{constructor(){super(...arguments),this.prefix="common",this.STARTS_WITH_LETTER=/^[a-zA-Z]/,this.CONTAINS_SPACES=/^\S*$/}required(j){const A=j||this.locale.maketext("This field is required.");return I=>{let R={},x=I.value;return x&&(x=x.toString()),x&&x.length?null:(R=this.addError(R,"required",A),R)}}requiredTrue(j){const A=j||this.locale.maketext("This control's value should be true.");return I=>{let R={};return!0!==I.value?(R=this.addError(R,"requiredTrue",A),R):null}}startsWithLetter(j){return A=>{let I={};return A.value&&!this.STARTS_WITH_LETTER.test(A.value)?(I=this.addError(I,"doesNotStartWithLetter",j),I):null}}containsSpaces(j){return A=>{let I={};return A.value&&!this.CONTAINS_SPACES.test(A.value)?(I=this.addError(I,"containsSpace",j),I):null}}minLength(j,A){return I=>{let R={};return I.value&&I.value.length<A?(R=this.addError(R,"minLength",j),R):null}}maxLength(j,A){return I=>{let R={};return I.value&&I.value.length>A?(R=this.addError(R,"maxLength",j),R):null}}}},7414:(J,F,p)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.cPUserNoteValidators=void 0;const r=p(2257),_=p(9761),j=/[^ \n\P{White_Space}]|[^ \n\P{Control}]|[^ \P{Separator}]/u;F.cPUserNoteValidators=new class A extends r.BaseValidator{constructor(){super(...arguments),this.prefix="note"}validate(R=250,x=""){return H=>{let L=_.stringValidators.validUnicode()(H);if(!L){const G=this.locale.maketext("This note is too long.");L=_.stringValidators.maxCharacterLength(G)(R,H)}if(!L){const G=H.match(j);if(G){L={};const ne=G.index,re=G[0].codePointAt(0);this.addError(L,"character",this.locale.maketext("[asis,Unicode] character [numf,_1] (position [numf,_2]) is forbidden.",re,1+ne))}}return L}}}},6128:(J,F,p)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.cpanelUsernameValidators=void 0;const r=p(2257);F.cpanelUsernameValidators=new class _ extends r.BaseValidator{constructor(){super(...arguments),this.prefix="cpanelUsername",this.VALID_USERNAME=/^(?![-.0-9])[a-z0-9]{1,16}$/}cpanelUsername(j){const A=j||this.locale.maketext("This is not a valid username.");return I=>{let R={};return I.value&&!this.VALID_USERNAME.test(I.value)?(R=this.addError(R,"invalidUsername",A),R):null}}}},6156:(J,F,p)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.databaseValidators=void 0;const r=p(2257),_=p(6369);F.databaseValidators=new class V extends r.BaseValidator{constructor(){super(...arguments),this.prefix="databases",this._dbPrefix="",this.DATABASE_NAME_LENGTH_LIMIT=64,this.ANYTHING_BUT_PRINTABLE_7_BIT_ASCII=/[^\u0020-\u007e]/,this.MYSQL_DB_NAME_INVALID_CHARACTERS=/[`'"\/\\]/,this.MYSQL_DB_NAME_INVALID_CHARACTERS_LIST=["'",'"',"`","/","\\"],this.MYSQL_DB_NAME_WILDCARDS=/(_|%|\\)/g,this.MYSQL_STARTED_ALLOWING_FILESYS_CHARACTERS=50116,this.MYSQL_STARTED_ALLOWING_LONG_USERNAMES=1e5}get dbPrefix(){return this._dbPrefix}validateDatabaseName(A,I,R){return x=>A===_.DatabaseType.MySQL?(this._dbPrefix=I||"",this.validateMySQLDatabaseName(x.value,R||"")):null}validateMySQLDatabaseName(A,I){const R=this._performMySqlDatabaseNameValidation(A,I);let x={};return R?(x=this.addError(x,"databaseName",R),x):null}_performMySqlDatabaseNameValidation(A,I){let R=null;return R=this._verifyNameLengthLimit(A),null!==R||(R=this._verifyDatabaseNameIgnoreLength(A),null!==R)||(R=this._verifyDatabaseName(A,I)),R}_verifyNameLengthLimit(A){let I=null,R=this.DATABASE_NAME_LENGTH_LIMIT;this._dbPrefix&&(R-=this._dbPrefix.length+1);const x=unescape(encodeURIComponent(A)).length-R;return x>0&&(I={message:this.locale.maketext("This value is too long by [quant,_1,character,characters]. The maximum length is [quant,_2,character,characters].",x,R)}),I}_verifyDatabaseNameIgnoreLength(A){return this.ANYTHING_BUT_PRINTABLE_7_BIT_ASCII.test(A)?{message:this.locale.maketext("This system allows only printable [asis,ASCII] characters in database names.")}:this.MYSQL_DB_NAME_INVALID_CHARACTERS.test(A)?{message:this.locale.maketext("This system prohibits the following [numerate,_1,character,characters] in database names: [list_or,_2]",3,this.MYSQL_DB_NAME_INVALID_CHARACTERS_LIST)}:null}_verifyDatabaseName(A,I){if(null!==A&&A.endsWith(" "))return{message:this.locale.maketext("A [asis,MariaDB]/[asis,MySQL] database name cannot end with a space character.")};const R=this._verifySpecialWildcardsInDatabaseNames(A);return null!==R?R:I&&this._convertVersionStringToNumber(I)<this.MYSQL_STARTED_ALLOWING_FILESYS_CHARACTERS&&/\./.test(A)?{message:this.locale.maketext("This system\u2019s [asis,MySQL] version ([_1]) prohibits the character \u201c[_2]\u201d in database names. Ask your administrator to upgrade to a [asis,MariaDB] or to a newer [asis,MySQL] version.",I,".")}:null}_convertVersionStringToNumber(A){return A.match(/mariadb/i)&&(A=A.replace(/^[^-]+-/,"")),parseInt(A.replace(/-.*/,"").split(/\./).map(function(I){return I.padStart(2,"0")}).join(""),10)}_verifySpecialWildcardsInDatabaseNames(A){if(null===A)return null;const I=A.replace(this.MYSQL_DB_NAME_WILDCARDS,"\\$1").length;let R=this.DATABASE_NAME_LENGTH_LIMIT;this._dbPrefix&&(R-=this._dbPrefix.length+1);const x=I-R;return x>0?{message:this.locale.maketext("This database name has too many wildcard-sensitive characters ([list_and_quoted,_1]). The system stores each of these as two characters internally, up to a limit of [quant,_2,character,characters]. This name would take up [quant,_3,character,characters] of internal storage, which is [numf,_4] too many.",["\\","_","%"],R,I,x)}:null}}},4559:function(J,F,p){"use strict";var r=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(F,"__esModule",{value:!0}),F.domainValidators=void 0;const _=p(549),V=r(p(4879)),j=r(p(836)),A=p(2257);F.domainValidators=new class I extends A.BaseValidator{constructor(){super(...arguments),this.prefix="domains",this.VALID_TLD_REGEX=/^[.][a-zA-Z0-9]+$/,this.VALID_IDN_TLD_REGEX=/^[.]xn--[a-zA-Z0-9-]+$/,this.MAX_DOMAIN_BYTES=254,this.MAX_LABEL_BYTES=63,this.UNICODE_ASCII_CUTOFF=127,this.NONINITIAL_LABEL_REGEX=/^[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?$/,this.IPv4_REGEX=/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/,this.IPv6_REGEX=/((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))/}_getNonASCII(x){const H=[],L=V.default.ucs2.decode(x);for(let G=0;G<L.length;G++)L[G]>this.UNICODE_ASCII_CUTOFF&&H.push(V.default.ucs2.encode([L[G]]));return j.default(H)}_validateLabelBasics(){return x=>{let H={};if(x.value&&0!==x.value.length){if(x.value.length>this.MAX_LABEL_BYTES)H=this.addError(H,"length",{message:this.locale.maketext("A label must not exceed [quant,_1,character,characters].",this.MAX_LABEL_BYTES),MAX_LABEL_BYTES:this.MAX_LABEL_BYTES});else if("-"===x.value[0])H=this.addError(H,"charCondition",this.locale.maketext("A label must not begin with \u201c[_1]\u201d.","-"));else if("-"===x.value[x.value.length-1])H=this.addError(H,"charCondition",this.locale.maketext("A label must not end with \u201c[_1]\u201d.","-"));else if(V.default.toASCII(x.value).length>this.MAX_LABEL_BYTES){const L=this._getNonASCII(x.value);H=this.addError(H,"length",this.locale.maketext("The label\u2019s [asis,Punycode] representation cannot exceed [quant,_1,byte,bytes]. (Non-[asis,ASCII] characters, like \u201c[_2]\u201d, require multiple characters to represent in [asis,Punycode].)",this.MAX_LABEL_BYTES,L[0]))}}else H=this.addError(H,"length",this.locale.maketext("A label must not be empty."));return H}}validDomainLength(){return x=>{let H={};if(x.value.length>this.MAX_DOMAIN_BYTES)return H=this.addError(H,"length",this.locale.maketext("The domain name cannot exceed [quant,_1,character,characters].",this.MAX_DOMAIN_BYTES)),H;if(V.default.toASCII(x.value).length>this.MAX_DOMAIN_BYTES){const G=this._getNonASCII(x.value);return H=this.addError(H,"length",this.locale.maketext("The domain name\u2019s [asis,Punycode] representation cannot exceed [quant,_1,character,characters]. (Non-[asis,ASCII] characters, like \u201c[_2]\u201d, require multiple characters to represent in [asis,Punycode].)",this.MAX_DOMAIN_BYTES,G[0])),H}return null}}validateLabel(){return x=>_.runValidationGroup(x,[this._validateLabelBasics(),H=>{let L={};return this.NONINITIAL_LABEL_REGEX.test(H.value)||(L=this.addError(L,"charCondition",this.locale.maketext("The label must contain only the following characters: [list_and,_1].",["a-z","A-Z","0-9","-"]))),L}])}validateTLD(){return x=>{let H={};return!this.VALID_TLD_REGEX.test(x.value)&&!this.VALID_IDN_TLD_REGEX.test(x.value)&&(H=this.addError(H,"tld",this.locale.maketext("The domain name must include a valid [output,acronym,TLD,Top Level Domain]."))),H}}fqdn(){return x=>{const H=x.value.split("."),L=H[H.length-1],G=H[0],ne=x.value,re=[()=>{let Oe={};const Se=this.IPv4_REGEX.test(ne),Ne=this.IPv6_REGEX.test(ne);return Se||Ne?Oe=this.addError(Oe,"ipAddr",this.locale.maketext("You [output,strong,must] enter a hostname.")):H.length<2?Oe=this.addError(Oe,"oneDomain",this.locale.maketext("The domain name must include at least two labels.")):null},this.validDomainLength(),this.validateLabel().bind(this,{value:G}),this.validateTLD().bind(this,{value:"."+L})];return H.forEach(Oe=>{re.push(this.validateLabel().bind(this,{value:Oe}))}),_.runValidationGroup(x,re)}}fqdnOrIP(){return x=>{const H=_.runValidationGroup(x,[this.anyIP()]),L=x.value.split("."),G=L[L.length-1],ne=L[0],re=[Se=>{let Ne={};return L.length<2&&(Ne=this.addError(Ne,"oneDomain",this.locale.maketext("The domain name must include at least two labels."))),Ne},this.validDomainLength(),this.validateLabel().bind(this,{value:ne}),this.validateTLD().bind(this,{value:"."+G})];L.forEach(Se=>{re.push(this.validateLabel().bind(this,{value:Se}))});const Oe=_.runValidationGroup(x,re);return H&&Oe?{...H,...Oe}:null}}ipv4(){return x=>{let H={};return x.value&&!this.IPv4_REGEX.test(x.value)?(H=this.addError(H,"ipv4",this.locale.maketext("Invalid [asis,IPv4] compatible address.")),H):null}}ipv6(){return x=>{let H={};return x.value&&!this.IPv6_REGEX.test(x.value)?(H=this.addError(H,"ipv6",this.locale.maketext("Invalid [asis,IPv6] compatible address.")),H):null}}anyIP(){return x=>{let H={};return!x.value||this.IPv4_REGEX.test(x.value)||this.IPv6_REGEX.test(x.value)?null:(H=this.addError(H,"anyIP",this.locale.maketext("Invalid [asis,IPv4] or [asis,IPv6] compatible address.")),H)}}}},8415:(J,F,p)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.emailValidators=void 0;const r=p(2257);F.emailValidators=new class _ extends r.BaseValidator{constructor(){super(...arguments),this.prefix="email",this.VALID_EMAIL=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}validateEmail(j){const A=j||this.locale.maketext("Make sure to use a valid email format. For example, [asis,user@example.com].");return I=>{let R={};return I.value&&!this.VALID_EMAIL.test(I.value)?(R=this.addError(R,"invalidEmail",A),R):null}}}},7348:(J,F,p)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.equalityValidators=void 0;const r=p(2257);F.equalityValidators=new class _ extends r.BaseValidator{constructor(){super(...arguments),this.prefix="equality"}equalTo(j,A,I){return R=>{const x=R.get(A).value;let L={};return x===R.get(I).value&&""!==x?(L=this.addError(L,"equalFields",j),L):null}}}},2502:(J,F,p)=>{"use strict";F.uZ=F.HB=F.Tt=F.YZ=F.dt=void 0;const _=p(50);Object.defineProperty(F,"dt",{enumerable:!0,get:function(){return _.commonValidators}});p(4559);const j=p(2257);Object.defineProperty(F,"uZ",{enumerable:!0,get:function(){return j.BaseValidator}});p(6156),p(6369);const R=p(6128);Object.defineProperty(F,"YZ",{enumerable:!0,get:function(){return R.cpanelUsernameValidators}});const x=p(8415);Object.defineProperty(F,"Tt",{enumerable:!0,get:function(){return x.emailValidators}});const H=p(7348);Object.defineProperty(F,"HB",{enumerable:!0,get:function(){return H.equalityValidators}});p(7414),p(9761)},2257:(J,F)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.BaseValidator=void 0;let p,r=!0;F.BaseValidator=class V{constructor(){this.prefix="",p={maketext:A=>{throw"DEVELOPER: You must specify a locale engine through the static variable BaseValidator.locale = myLocaleEngine"}}}static set locale(A){p=A}get locale(){return p}_buildKey(A){return r?`cpanel.${this.prefix}.${A}`:A}static disablePrefixing(){r=!1}static enablePrefixing(){r=!0}addError(A={},I,R){return"string"==typeof R&&(R={message:R}),A[this._buildKey(I)]=R,A}}},6369:(J,F)=>{"use strict";var r;Object.defineProperty(F,"__esModule",{value:!0}),F.DatabaseType=void 0,(r=F.DatabaseType||(F.DatabaseType={})).MySQL="MySQL",r.PostgreSQL="PostgreSQL"},91:(J,F)=>{"use strict";function V(A){return"0x"+A.toString(16)}Object.defineProperty(F,"__esModule",{value:!0}),F.characterLength=void 0,F.characterLength=function j(A,I){let R=0;for(let x=0;x<A.length;x++){R++;const H=A.charCodeAt(x);if(55296==(64512&H)){if(x++,x===A.length)throw new Error(I.maketext("This string ends with an incomplete [asis,UTF-16] surrogate pair ([_1]).",V(H)));const L=A.charCodeAt(x);if(56320!=(64512&L))throw new Error(I.maketext("This string contains an invalid [asis,UTF-16] surrogate pair ([join,~, ,_1]) at position [numf,_2].",[H,L].map(V),x))}}return R}},549:function(J,F,p){"use strict";var r=this&&this.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(F,"__esModule",{value:!0}),F.runValidationGroup=void 0;const _=r(p(9721));F.runValidationGroup=function V(j,A){const I={};return A.forEach(R=>{_.default(I,R(j))}),Object.keys(I).length?I:null}},9761:(J,F,p)=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.stringValidators=void 0;const r=p(2257),_=p(91);F.stringValidators=new class j extends r.BaseValidator{constructor(){super(...arguments),this.prefix="string"}validUnicode(){return I=>{let R;try{R=_.characterLength(I,this.locale)}catch(x){const H={};return this.addError(H,"unicode",x.message),H}return null}}maxCharacterLength(I){return(R,x)=>{if(_.characterLength(x,this.locale)>R){const ne={};return this.addError(ne,"length",I),ne}return null}}maxUTF8Length(I){return(R,x)=>{if(function V(A){return unescape(encodeURIComponent(A)).length}(x)>R){const H={};return this.addError(H,"length",I),H}return null}}}},4994:(J,F,p)=>{var r=p(4312),_=p(6421),V=p(5764),j=p(8685),A=p(6676);function I(R){var x=-1,H=null==R?0:R.length;for(this.clear();++x<H;){var L=R[x];this.set(L[0],L[1])}}I.prototype.clear=r,I.prototype.delete=_,I.prototype.get=V,I.prototype.has=j,I.prototype.set=A,J.exports=I},9215:(J,F,p)=>{var r=p(1840),_=p(4378),V=p(4981),j=p(7343),A=p(8895);function I(R){var x=-1,H=null==R?0:R.length;for(this.clear();++x<H;){var L=R[x];this.set(L[0],L[1])}}I.prototype.clear=r,I.prototype.delete=_,I.prototype.get=V,I.prototype.has=j,I.prototype.set=A,J.exports=I},1501:(J,F,p)=>{var V=p(3436)(p(2119),"Map");J.exports=V},9850:(J,F,p)=>{var r=p(638),_=p(1184),V=p(866),j=p(3771),A=p(1772);function I(R){var x=-1,H=null==R?0:R.length;for(this.clear();++x<H;){var L=R[x];this.set(L[0],L[1])}}I.prototype.clear=r,I.prototype.delete=_,I.prototype.get=V,I.prototype.has=j,I.prototype.set=A,J.exports=I},6323:(J,F,p)=>{var V=p(3436)(p(2119),"Set");J.exports=V},8849:(J,F,p)=>{var r=p(9850),_=p(4600),V=p(1387);function j(A){var I=-1,R=null==A?0:A.length;for(this.__data__=new r;++I<R;)this.add(A[I])}j.prototype.add=j.prototype.push=_,j.prototype.has=V,J.exports=j},443:(J,F,p)=>{var r=p(2119);J.exports=r.Symbol},6999:J=>{J.exports=function F(p,r,_){switch(_.length){case 0:return p.call(r);case 1:return p.call(r,_[0]);case 2:return p.call(r,_[0],_[1]);case 3:return p.call(r,_[0],_[1],_[2])}return p.apply(r,_)}},1253:(J,F,p)=>{var r=p(4164);J.exports=function _(V,j){return!(null==V||!V.length)&&r(V,j,0)>-1}},7609:J=>{J.exports=function F(p,r,_){for(var V=-1,j=null==p?0:p.length;++V<j;)if(_(r,p[V]))return!0;return!1}},2271:(J,F,p)=>{var r=p(5334),_=p(7151),V=p(1503),j=p(891),A=p(8442),I=p(8159),x=Object.prototype.hasOwnProperty;J.exports=function H(L,G){var ne=V(L),re=!ne&&_(L),Oe=!ne&&!re&&j(L),Se=!ne&&!re&&!Oe&&I(L),Ne=ne||re||Oe||Se,ve=Ne?r(L.length,String):[],at=ve.length;for(var Ye in L)(G||x.call(L,Ye))&&(!Ne||!("length"==Ye||Oe&&("offset"==Ye||"parent"==Ye)||Se&&("buffer"==Ye||"byteLength"==Ye||"byteOffset"==Ye)||A(Ye,at)))&&ve.push(Ye);return ve}},4633:J=>{J.exports=function F(p,r){for(var _=-1,V=null==p?0:p.length,j=Array(V);++_<V;)j[_]=r(p[_],_,p);return j}},8745:J=>{J.exports=function F(p,r,_,V){var j=-1,A=null==p?0:p.length;for(V&&A&&(_=p[++j]);++j<A;)_=r(_,p[j],j,p);return _}},69:J=>{var F=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;J.exports=function p(r){return r.match(F)||[]}},9719:(J,F,p)=>{var r=p(5683),_=p(217),j=Object.prototype.hasOwnProperty;J.exports=function A(I,R,x){var H=I[R];(!j.call(I,R)||!_(H,x)||void 0===x&&!(R in I))&&r(I,R,x)}},3503:(J,F,p)=>{var r=p(217);J.exports=function _(V,j){for(var A=V.length;A--;)if(r(V[A][0],j))return A;return-1}},5683:(J,F,p)=>{var r=p(6713);J.exports=function _(V,j,A){"__proto__"==j&&r?r(V,j,{configurable:!0,enumerable:!0,value:A,writable:!0}):V[j]=A}},5317:J=>{J.exports=function F(p,r,_,V){for(var j=p.length,A=_+(V?1:-1);V?A--:++A<j;)if(r(p[A],A,p))return A;return-1}},3337:(J,F,p)=>{var r=p(443),_=p(1318),V=p(2902),I=r?r.toStringTag:void 0;J.exports=function R(x){return null==x?void 0===x?"[object Undefined]":"[object Null]":I&&I in Object(x)?_(x):V(x)}},4164:(J,F,p)=>{var r=p(5317),_=p(968),V=p(4977);J.exports=function j(A,I,R){return I==I?V(A,I,R):r(A,_,R)}},186:(J,F,p)=>{var r=p(3337),_=p(2671);J.exports=function j(A){return _(A)&&"[object Arguments]"==r(A)}},968:J=>{J.exports=function F(p){return p!=p}},7304:(J,F,p)=>{var r=p(5946),_=p(1943),V=p(5940),j=p(2827),I=/^\[object .+?Constructor\]$/,G=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");J.exports=function ne(re){return!(!V(re)||_(re))&&(r(re)?G:I).test(j(re))}},1083:(J,F,p)=>{var r=p(3337),_=p(6231),V=p(2671),Te={};Te["[object Float32Array]"]=Te["[object Float64Array]"]=Te["[object Int8Array]"]=Te["[object Int16Array]"]=Te["[object Int32Array]"]=Te["[object Uint8Array]"]=Te["[object Uint8ClampedArray]"]=Te["[object Uint16Array]"]=Te["[object Uint32Array]"]=!0,Te["[object Arguments]"]=Te["[object Array]"]=Te["[object ArrayBuffer]"]=Te["[object Boolean]"]=Te["[object DataView]"]=Te["[object Date]"]=Te["[object Error]"]=Te["[object Function]"]=Te["[object Map]"]=Te["[object Number]"]=Te["[object Object]"]=Te["[object RegExp]"]=Te["[object Set]"]=Te["[object String]"]=Te["[object WeakMap]"]=!1,J.exports=function He(dt){return V(dt)&&_(dt.length)&&!!Te[r(dt)]}},2809:(J,F,p)=>{var r=p(5940),_=p(5488),V=p(2158),A=Object.prototype.hasOwnProperty;J.exports=function I(R){if(!r(R))return V(R);var x=_(R),H=[];for(var L in R)"constructor"==L&&(x||!A.call(R,L))||H.push(L);return H}},2724:J=>{J.exports=function F(p){return function(r){return null==p?void 0:p[r]}}},3269:(J,F,p)=>{var r=p(2608),_=p(3983),V=p(2185);J.exports=function j(A,I){return V(_(A,I,r),A+"")}},9510:(J,F,p)=>{var r=p(6684),_=p(6713),V=p(2608);J.exports=_?function(A,I){return _(A,"toString",{configurable:!0,enumerable:!1,value:r(I),writable:!0})}:V},5334:J=>{J.exports=function F(p,r){for(var _=-1,V=Array(p);++_<p;)V[_]=r(_);return V}},3935:(J,F,p)=>{var r=p(443),_=p(4633),V=p(1503),j=p(4129),I=r?r.prototype:void 0,R=I?I.toString:void 0;J.exports=function x(H){if("string"==typeof H)return H;if(V(H))return _(H,x)+"";if(j(H))return R?R.call(H):"";var L=H+"";return"0"==L&&1/H==-1/0?"-0":L}},5647:J=>{J.exports=function F(p){return function(r){return p(r)}}},707:(J,F,p)=>{var r=p(8849),_=p(1253),V=p(7609),j=p(5972),A=p(4575),I=p(4174);J.exports=function x(H,L,G){var ne=-1,re=_,Oe=H.length,Se=!0,Ne=[],ve=Ne;if(G)Se=!1,re=V;else if(Oe>=200){var at=L?null:A(H);if(at)return I(at);Se=!1,re=j,ve=new r}else ve=L?[]:Ne;e:for(;++ne<Oe;){var Ye=H[ne],Be=L?L(Ye):Ye;if(Ye=G||0!==Ye?Ye:0,Se&&Be==Be){for(var st=ve.length;st--;)if(ve[st]===Be)continue e;L&&ve.push(Be),Ne.push(Ye)}else re(ve,Be,G)||(ve!==Ne&&ve.push(Be),Ne.push(Ye))}return Ne}},5972:J=>{J.exports=function F(p,r){return p.has(r)}},1989:(J,F,p)=>{var r=p(9719),_=p(5683);J.exports=function V(j,A,I,R){var x=!I;I||(I={});for(var H=-1,L=A.length;++H<L;){var G=A[H],ne=R?R(I[G],j[G],G,I,j):void 0;void 0===ne&&(ne=j[G]),x?_(I,G,ne):r(I,G,ne)}return I}},4610:(J,F,p)=>{var r=p(2119);J.exports=r["__core-js_shared__"]},4944:(J,F,p)=>{var r=p(3269),_=p(3342);J.exports=function V(j){return r(function(A,I){var R=-1,x=I.length,H=x>1?I[x-1]:void 0,L=x>2?I[2]:void 0;for(H=j.length>3&&"function"==typeof H?(x--,H):void 0,L&&_(I[0],I[1],L)&&(H=x<3?void 0:H,x=1),A=Object(A);++R<x;){var G=I[R];G&&j(A,G,R,H)}return A})}},1491:(J,F,p)=>{var r=p(8745),_=p(4707),V=p(7188),A=RegExp("['\u2019]","g");J.exports=function I(R){return function(x){return r(V(_(x).replace(A,"")),R,"")}}},4575:(J,F,p)=>{var r=p(6323),_=p(2552),V=p(4174),A=r&&1/V(new r([,-0]))[1]==1/0?function(I){return new r(I)}:_;J.exports=A},9148:(J,F,p)=>{var V=p(2724)({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"});J.exports=V},6713:(J,F,p)=>{var r=p(3436),_=function(){try{var V=r(Object,"defineProperty");return V({},"",{}),V}catch{}}();J.exports=_},9122:J=>{var F="object"==typeof global&&global&&global.Object===Object&&global;J.exports=F},4537:(J,F,p)=>{var r=p(3819);J.exports=function _(V,j){var A=V.__data__;return r(j)?A["string"==typeof j?"string":"hash"]:A.map}},3436:(J,F,p)=>{var r=p(7304),_=p(1990);J.exports=function V(j,A){var I=_(j,A);return r(I)?I:void 0}},9519:(J,F,p)=>{var _=p(9385)(Object.getPrototypeOf,Object);J.exports=_},1318:(J,F,p)=>{var r=p(443),_=Object.prototype,V=_.hasOwnProperty,j=_.toString,A=r?r.toStringTag:void 0;J.exports=function I(R){var x=V.call(R,A),H=R[A];try{R[A]=void 0;var L=!0}catch{}var G=j.call(R);return L&&(x?R[A]=H:delete R[A]),G}},1990:J=>{J.exports=function F(p,r){return null==p?void 0:p[r]}},9062:J=>{var F=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;J.exports=function p(r){return F.test(r)}},4312:(J,F,p)=>{var r=p(862);J.exports=function _(){this.__data__=r?r(null):{},this.size=0}},6421:J=>{J.exports=function F(p){var r=this.has(p)&&delete this.__data__[p];return this.size-=r?1:0,r}},5764:(J,F,p)=>{var r=p(862),j=Object.prototype.hasOwnProperty;J.exports=function A(I){var R=this.__data__;if(r){var x=R[I];return"__lodash_hash_undefined__"===x?void 0:x}return j.call(R,I)?R[I]:void 0}},8685:(J,F,p)=>{var r=p(862),V=Object.prototype.hasOwnProperty;J.exports=function j(A){var I=this.__data__;return r?void 0!==I[A]:V.call(I,A)}},6676:(J,F,p)=>{var r=p(862);J.exports=function V(j,A){var I=this.__data__;return this.size+=this.has(j)?0:1,I[j]=r&&void 0===A?"__lodash_hash_undefined__":A,this}},8442:J=>{var p=/^(?:0|[1-9]\d*)$/;J.exports=function r(_,V){var j=typeof _;return!!(V=V??9007199254740991)&&("number"==j||"symbol"!=j&&p.test(_))&&_>-1&&_%1==0&&_<V}},3342:(J,F,p)=>{var r=p(217),_=p(6507),V=p(8442),j=p(5940);J.exports=function A(I,R,x){if(!j(x))return!1;var H=typeof R;return!!("number"==H?_(x)&&V(R,x.length):"string"==H&&R in x)&&r(x[R],I)}},3819:J=>{J.exports=function F(p){var r=typeof p;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==p:null===p}},1943:(J,F,p)=>{var j,r=p(4610),_=(j=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"";J.exports=function V(j){return!!_&&_ in j}},5488:J=>{var F=Object.prototype;J.exports=function p(r){var _=r&&r.constructor;return r===("function"==typeof _&&_.prototype||F)}},1840:J=>{J.exports=function F(){this.__data__=[],this.size=0}},4378:(J,F,p)=>{var r=p(3503),V=Array.prototype.splice;J.exports=function j(A){var I=this.__data__,R=r(I,A);return!(R<0||(R==I.length-1?I.pop():V.call(I,R,1),--this.size,0))}},4981:(J,F,p)=>{var r=p(3503);J.exports=function _(V){var j=this.__data__,A=r(j,V);return A<0?void 0:j[A][1]}},7343:(J,F,p)=>{var r=p(3503);J.exports=function _(V){return r(this.__data__,V)>-1}},8895:(J,F,p)=>{var r=p(3503);J.exports=function _(V,j){var A=this.__data__,I=r(A,V);return I<0?(++this.size,A.push([V,j])):A[I][1]=j,this}},638:(J,F,p)=>{var r=p(4994),_=p(9215),V=p(1501);J.exports=function j(){this.size=0,this.__data__={hash:new r,map:new(V||_),string:new r}}},1184:(J,F,p)=>{var r=p(4537);J.exports=function _(V){var j=r(this,V).delete(V);return this.size-=j?1:0,j}},866:(J,F,p)=>{var r=p(4537);J.exports=function _(V){return r(this,V).get(V)}},3771:(J,F,p)=>{var r=p(4537);J.exports=function _(V){return r(this,V).has(V)}},1772:(J,F,p)=>{var r=p(4537);J.exports=function _(V,j){var A=r(this,V),I=A.size;return A.set(V,j),this.size+=A.size==I?0:1,this}},862:(J,F,p)=>{var _=p(3436)(Object,"create");J.exports=_},2158:J=>{J.exports=function F(p){var r=[];if(null!=p)for(var _ in Object(p))r.push(_);return r}},3597:(J,F,p)=>{J=p.nmd(J);var r=p(9122),_=F&&!F.nodeType&&F,V=_&&J&&!J.nodeType&&J,A=V&&V.exports===_&&r.process,I=function(){try{return V&&V.require&&V.require("util").types||A&&A.binding&&A.binding("util")}catch{}}();J.exports=I},2902:J=>{var p=Object.prototype.toString;J.exports=function r(_){return p.call(_)}},9385:J=>{J.exports=function F(p,r){return function(_){return p(r(_))}}},3983:(J,F,p)=>{var r=p(6999),_=Math.max;J.exports=function V(j,A,I){return A=_(void 0===A?j.length-1:A,0),function(){for(var R=arguments,x=-1,H=_(R.length-A,0),L=Array(H);++x<H;)L[x]=R[A+x];x=-1;for(var G=Array(A+1);++x<A;)G[x]=R[x];return G[A]=I(L),r(j,this,G)}}},2119:(J,F,p)=>{var r=p(9122),_="object"==typeof self&&self&&self.Object===Object&&self,V=r||_||Function("return this")();J.exports=V},4600:J=>{J.exports=function p(r){return this.__data__.set(r,"__lodash_hash_undefined__"),this}},1387:J=>{J.exports=function F(p){return this.__data__.has(p)}},4174:J=>{J.exports=function F(p){var r=-1,_=Array(p.size);return p.forEach(function(V){_[++r]=V}),_}},2185:(J,F,p)=>{var r=p(9510),V=p(29)(r);J.exports=V},29:J=>{var r=Date.now;J.exports=function _(V){var j=0,A=0;return function(){var I=r(),R=16-(I-A);if(A=I,R>0){if(++j>=800)return arguments[0]}else j=0;return V.apply(void 0,arguments)}}},4977:J=>{J.exports=function F(p,r,_){for(var V=_-1,j=p.length;++V<j;)if(p[V]===r)return V;return-1}},2827:J=>{var p=Function.prototype.toString;J.exports=function r(_){if(null!=_){try{return p.call(_)}catch{}try{return _+""}catch{}}return""}},910:J=>{var F="\\ud800-\\udfff",j="\\u2700-\\u27bf",A="a-z\\xdf-\\xf6\\xf8-\\xff",L="A-Z\\xc0-\\xd6\\xd8-\\xde",ne="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="["+ne+"]",Ne="\\d+",ve="["+j+"]",at="["+A+"]",Ye="[^"+F+ne+Ne+j+A+L+"]",Je="(?:\\ud83c[\\udde6-\\uddff]){2}",Gt="[\\ud800-\\udbff][\\udc00-\\udfff]",_t="["+L+"]",le="(?:"+at+"|"+Ye+")",Te="(?:"+_t+"|"+Ye+")",He="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",dt="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ze="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",$e="[\\ufe0e\\ufe0f]?",Mn=$e+Ze+"(?:\\u200d(?:"+["[^"+F+"]",Je,Gt].join("|")+")"+$e+Ze+")*",un="(?:"+[ve,Je,Gt].join("|")+")"+Mn,Fn=RegExp([_t+"?"+at+"+"+He+"(?="+[Oe,_t,"$"].join("|")+")",Te+"+"+dt+"(?="+[Oe,_t+le,"$"].join("|")+")",_t+"?"+le+"+"+He,_t+"+"+dt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ne,un].join("|"),"g");J.exports=function bn(Yn){return Yn.match(Fn)||[]}},9919:(J,F,p)=>{var r=p(1989),_=p(4944),V=p(6555),j=_(function(A,I){r(I,V(I),A)});J.exports=j},6684:J=>{J.exports=function F(p){return function(){return p}}},4707:(J,F,p)=>{var r=p(9148),_=p(3943),V=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,H=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");J.exports=function L(G){return(G=_(G))&&G.replace(V,r).replace(H,"")}},217:J=>{J.exports=function F(p,r){return p===r||p!=p&&r!=r}},9721:(J,F,p)=>{J.exports=p(9919)},2608:J=>{J.exports=function F(p){return p}},7151:(J,F,p)=>{var r=p(186),_=p(2671),V=Object.prototype,j=V.hasOwnProperty,A=V.propertyIsEnumerable,I=r(function(){return arguments}())?r:function(R){return _(R)&&j.call(R,"callee")&&!A.call(R,"callee")};J.exports=I},1503:J=>{J.exports=Array.isArray},6507:(J,F,p)=>{var r=p(5946),_=p(6231);J.exports=function V(j){return null!=j&&_(j.length)&&!r(j)}},4798:(J,F,p)=>{var r=p(3337),_=p(2671);J.exports=function j(A){return!0===A||!1===A||_(A)&&"[object Boolean]"==r(A)}},891:(J,F,p)=>{J=p.nmd(J);var r=p(2119),_=p(3580),V=F&&!F.nodeType&&F,j=V&&J&&!J.nodeType&&J,I=j&&j.exports===V?r.Buffer:void 0;J.exports=(I?I.isBuffer:void 0)||_},5946:(J,F,p)=>{var r=p(3337),_=p(5940);J.exports=function R(x){if(!_(x))return!1;var H=r(x);return"[object Function]"==H||"[object GeneratorFunction]"==H||"[object AsyncFunction]"==H||"[object Proxy]"==H}},6231:J=>{J.exports=function p(r){return"number"==typeof r&&r>-1&&r%1==0&&r<=9007199254740991}},1305:J=>{J.exports=function F(p){return null===p}},9138:(J,F,p)=>{var r=p(3337),_=p(2671);J.exports=function j(A){return"number"==typeof A||_(A)&&"[object Number]"==r(A)}},5940:J=>{J.exports=function F(p){var r=typeof p;return null!=p&&("object"==r||"function"==r)}},2671:J=>{J.exports=function F(p){return null!=p&&"object"==typeof p}},7614:(J,F,p)=>{var r=p(3337),_=p(9519),V=p(2671),R=Function.prototype.toString,x=Object.prototype.hasOwnProperty,H=R.call(Object);J.exports=function L(G){if(!V(G)||"[object Object]"!=r(G))return!1;var ne=_(G);if(null===ne)return!0;var re=x.call(ne,"constructor")&&ne.constructor;return"function"==typeof re&&re instanceof re&&R.call(re)==H}},248:(J,F,p)=>{var r=p(3337),_=p(1503),V=p(2671);J.exports=function A(I){return"string"==typeof I||!_(I)&&V(I)&&"[object String]"==r(I)}},4129:(J,F,p)=>{var r=p(3337),_=p(2671);J.exports=function j(A){return"symbol"==typeof A||_(A)&&"[object Symbol]"==r(A)}},8159:(J,F,p)=>{var r=p(1083),_=p(5647),V=p(3597),j=V&&V.isTypedArray,A=j?_(j):r;J.exports=A},4235:J=>{J.exports=function F(p){return void 0===p}},6555:(J,F,p)=>{var r=p(2271),_=p(2809),V=p(6507);J.exports=function j(A){return V(A)?r(A,!0):_(A)}},2552:J=>{J.exports=function F(){}},1978:(J,F,p)=>{var _=p(1491)(function(V,j,A){return V+(A?"_":"")+j.toLowerCase()});J.exports=_},3580:J=>{J.exports=function F(){return!1}},3943:(J,F,p)=>{var r=p(3935);J.exports=function _(V){return null==V?"":r(V)}},836:(J,F,p)=>{var r=p(707);J.exports=function _(V){return V&&V.length?r(V):[]}},7188:(J,F,p)=>{var r=p(69),_=p(9062),V=p(3943),j=p(910);J.exports=function A(I,R,x){return I=V(I),void 0===(R=x?void 0:R)?_(I)?j(I):r(I):I.match(R)||[]}},4879:(J,F,p)=>{"use strict";p.r(F),p.d(F,{decode:()=>_t,default:()=>dt,encode:()=>Fe,toASCII:()=>Te,toUnicode:()=>le,ucs2decode:()=>Be,ucs2encode:()=>st});const r=2147483647,_=36,L=/^xn--/,G=/[^\0-\x7E]/,ne=/[\x2E\u3002\uFF0E\uFF61]/g,re={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Se=Math.floor,Ne=String.fromCharCode;function ve(Ze){throw new RangeError(re[Ze])}function Ye(Ze,$e){const yn=Ze.split("@");let Vt="";yn.length>1&&(Vt=yn[0]+"@",Ze=yn[1]);const Mn=function at(Ze,$e){const yn=[];let Vt=Ze.length;for(;Vt--;)yn[Vt]=$e(Ze[Vt]);return yn}((Ze=Ze.replace(ne,".")).split("."),$e).join(".");return Vt+Mn}function Be(Ze){const $e=[];let yn=0;const Vt=Ze.length;for(;yn<Vt;){const gn=Ze.charCodeAt(yn++);if(gn>=55296&&gn<=56319&&yn<Vt){const Mn=Ze.charCodeAt(yn++);56320==(64512&Mn)?$e.push(((1023&gn)<<10)+(1023&Mn)+65536):($e.push(gn),yn--)}else $e.push(gn)}return $e}const st=Ze=>String.fromCodePoint(...Ze),be=function(Ze){return Ze-48<10?Ze-22:Ze-65<26?Ze-65:Ze-97<26?Ze-97:_},Je=function(Ze,$e){return Ze+22+75*(Ze<26)-((0!=$e)<<5)},Gt=function(Ze,$e,yn){let Vt=0;for(Ze=yn?Se(Ze/700):Ze>>1,Ze+=Se(Ze/$e);Ze>455;Vt+=_)Ze=Se(Ze/35);return Se(Vt+36*Ze/(Ze+38))},_t=function(Ze){const $e=[],yn=Ze.length;let Vt=0,gn=128,Mn=72,un=Ze.lastIndexOf("-");un<0&&(un=0);for(let Fn=0;Fn<un;++Fn)Ze.charCodeAt(Fn)>=128&&ve("not-basic"),$e.push(Ze.charCodeAt(Fn));for(let Fn=un>0?un+1:0;Fn<yn;){let bn=Vt;for(let Ht=1,Yt=_;;Yt+=_){Fn>=yn&&ve("invalid-input");const An=be(Ze.charCodeAt(Fn++));(An>=_||An>Se((r-Vt)/Ht))&&ve("overflow"),Vt+=An*Ht;const cn=Yt<=Mn?1:Yt>=Mn+26?26:Yt-Mn;if(An<cn)break;const Ln=_-cn;Ht>Se(r/Ln)&&ve("overflow"),Ht*=Ln}const Yn=$e.length+1;Mn=Gt(Vt-bn,Yn,0==bn),Se(Vt/Yn)>r-gn&&ve("overflow"),gn+=Se(Vt/Yn),Vt%=Yn,$e.splice(Vt++,0,gn)}return String.fromCodePoint(...$e)},Fe=function(Ze){const $e=[];let yn=(Ze=Be(Ze)).length,Vt=128,gn=0,Mn=72;for(const bn of Ze)bn<128&&$e.push(Ne(bn));let un=$e.length,Fn=un;for(un&&$e.push("-");Fn<yn;){let bn=r;for(const Ht of Ze)Ht>=Vt&&Ht<bn&&(bn=Ht);const Yn=Fn+1;bn-Vt>Se((r-gn)/Yn)&&ve("overflow"),gn+=(bn-Vt)*Yn,Vt=bn;for(const Ht of Ze)if(Ht<Vt&&++gn>r&&ve("overflow"),Ht==Vt){let Yt=gn;for(let An=_;;An+=_){const cn=An<=Mn?1:An>=Mn+26?26:An-Mn;if(Yt<cn)break;const Ln=Yt-cn,wn=_-cn;$e.push(Ne(Je(cn+Ln%wn,0))),Yt=Se(Ln/wn)}$e.push(Ne(Je(Yt,0))),Mn=Gt(gn,Yn,Fn==un),gn=0,++Fn}++gn,++Vt}return $e.join("")},le=function(Ze){return Ye(Ze,function($e){return L.test($e)?_t($e.slice(4).toLowerCase()):$e})},Te=function(Ze){return Ye(Ze,function($e){return G.test($e)?"xn--"+Fe($e):$e})},dt={version:"2.1.0",ucs2:{decode:Be,encode:st},decode:_t,encode:Fe,toASCII:Te,toUnicode:le}},2916:(J,F,p)=>{"use strict";p.d(F,{y:()=>G});var r=p(3489),V=p(7668),j=p(3292),I=p(3821),R=p(5379);var L=p(2830);let G=(()=>{class re{constructor(Se){this._isScalar=!1,Se&&(this._subscribe=Se)}lift(Se){const Ne=new re;return Ne.source=this,Ne.operator=Se,Ne}subscribe(Se,Ne,ve){const{operator:at}=this,Ye=function A(re,Oe,Se){if(re){if(re instanceof r.L)return re;if(re[V.b])return re[V.b]()}return re||Oe||Se?new r.L(re,Oe,Se):new r.L(j.c)}(Se,Ne,ve);if(Ye.add(at?at.call(Ye,this.source):this.source||L.v.useDeprecatedSynchronousErrorHandling&&!Ye.syncErrorThrowable?this._subscribe(Ye):this._trySubscribe(Ye)),L.v.useDeprecatedSynchronousErrorHandling&&Ye.syncErrorThrowable&&(Ye.syncErrorThrowable=!1,Ye.syncErrorThrown))throw Ye.syncErrorValue;return Ye}_trySubscribe(Se){try{return this._subscribe(Se)}catch(Ne){L.v.useDeprecatedSynchronousErrorHandling&&(Se.syncErrorThrown=!0,Se.syncErrorValue=Ne),function _(re){for(;re;){const{closed:Oe,destination:Se,isStopped:Ne}=re;if(Oe||Ne)return!1;re=Se&&Se instanceof r.L?Se:null}return!0}(Se)?Se.error(Ne):console.warn(Ne)}}forEach(Se,Ne){return new(Ne=ne(Ne))((ve,at)=>{let Ye;Ye=this.subscribe(Be=>{try{Se(Be)}catch(st){at(st),Ye&&Ye.unsubscribe()}},at,ve)})}_subscribe(Se){const{source:Ne}=this;return Ne&&Ne.subscribe(Se)}[I.L](){return this}pipe(...Se){return 0===Se.length?this:function H(re){return 0===re.length?R.y:1===re.length?re[0]:function(Se){return re.reduce((Ne,ve)=>ve(Ne),Se)}}(Se)(this)}toPromise(Se){return new(Se=ne(Se))((Ne,ve)=>{let at;this.subscribe(Ye=>at=Ye,Ye=>ve(Ye),()=>Ne(at))})}}return re.create=Oe=>new re(Oe),re})();function ne(re){if(re||(re=L.v.Promise||Promise),!re)throw new Error("no Promise impl found");return re}},3292:(J,F,p)=>{"use strict";p.d(F,{c:()=>V});var r=p(2830),_=p(2782);const V={closed:!0,next(j){},error(j){if(r.v.useDeprecatedSynchronousErrorHandling)throw j;(0,_.z)(j)},complete(){}}},5529:(J,F,p)=>{"use strict";p.d(F,{xQ:()=>x,Yc:()=>R});var r=p(2916),_=p(3489),V=p(2654),j=p(5279);class A extends V.w{constructor(G,ne){super(),this.subject=G,this.subscriber=ne,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const G=this.subject,ne=G.observers;if(this.subject=null,!ne||0===ne.length||G.isStopped||G.closed)return;const re=ne.indexOf(this.subscriber);-1!==re&&ne.splice(re,1)}}var I=p(7668);class R extends _.L{constructor(G){super(G),this.destination=G}}let x=(()=>{class L extends r.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[I.b](){return new R(this)}lift(ne){const re=new H(this,this);return re.operator=ne,re}next(ne){if(this.closed)throw new j.N;if(!this.isStopped){const{observers:re}=this,Oe=re.length,Se=re.slice();for(let Ne=0;Ne<Oe;Ne++)Se[Ne].next(ne)}}error(ne){if(this.closed)throw new j.N;this.hasError=!0,this.thrownError=ne,this.isStopped=!0;const{observers:re}=this,Oe=re.length,Se=re.slice();for(let Ne=0;Ne<Oe;Ne++)Se[Ne].error(ne);this.observers.length=0}complete(){if(this.closed)throw new j.N;this.isStopped=!0;const{observers:ne}=this,re=ne.length,Oe=ne.slice();for(let Se=0;Se<re;Se++)Oe[Se].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(ne){if(this.closed)throw new j.N;return super._trySubscribe(ne)}_subscribe(ne){if(this.closed)throw new j.N;return this.hasError?(ne.error(this.thrownError),V.w.EMPTY):this.isStopped?(ne.complete(),V.w.EMPTY):(this.observers.push(ne),new A(this,ne))}asObservable(){const ne=new r.y;return ne.source=this,ne}}return L.create=(G,ne)=>new H(G,ne),L})();class H extends x{constructor(G,ne){super(),this.destination=G,this.source=ne}next(G){const{destination:ne}=this;ne&&ne.next&&ne.next(G)}error(G){const{destination:ne}=this;ne&&ne.error&&this.destination.error(G)}complete(){const{destination:G}=this;G&&G.complete&&this.destination.complete()}_subscribe(G){const{source:ne}=this;return ne?this.source.subscribe(G):V.w.EMPTY}}},3489:(J,F,p)=>{"use strict";p.d(F,{L:()=>R});var r=p(7043),_=p(3292),V=p(2654),j=p(7668),A=p(2830),I=p(2782);class R extends V.w{constructor(L,G,ne){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=_.c;break;case 1:if(!L){this.destination=_.c;break}if("object"==typeof L){L instanceof R?(this.syncErrorThrowable=L.syncErrorThrowable,this.destination=L,L.add(this)):(this.syncErrorThrowable=!0,this.destination=new x(this,L));break}default:this.syncErrorThrowable=!0,this.destination=new x(this,L,G,ne)}}[j.b](){return this}static create(L,G,ne){const re=new R(L,G,ne);return re.syncErrorThrowable=!1,re}next(L){this.isStopped||this._next(L)}error(L){this.isStopped||(this.isStopped=!0,this._error(L))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(L){this.destination.next(L)}_error(L){this.destination.error(L),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:L}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=L,this}}class x extends R{constructor(L,G,ne,re){super(),this._parentSubscriber=L;let Oe,Se=this;(0,r.m)(G)?Oe=G:G&&(Oe=G.next,ne=G.error,re=G.complete,G!==_.c&&(Se=Object.create(G),(0,r.m)(Se.unsubscribe)&&this.add(Se.unsubscribe.bind(Se)),Se.unsubscribe=this.unsubscribe.bind(this))),this._context=Se,this._next=Oe,this._error=ne,this._complete=re}next(L){if(!this.isStopped&&this._next){const{_parentSubscriber:G}=this;A.v.useDeprecatedSynchronousErrorHandling&&G.syncErrorThrowable?this.__tryOrSetError(G,this._next,L)&&this.unsubscribe():this.__tryOrUnsub(this._next,L)}}error(L){if(!this.isStopped){const{_parentSubscriber:G}=this,{useDeprecatedSynchronousErrorHandling:ne}=A.v;if(this._error)ne&&G.syncErrorThrowable?(this.__tryOrSetError(G,this._error,L),this.unsubscribe()):(this.__tryOrUnsub(this._error,L),this.unsubscribe());else if(G.syncErrorThrowable)ne?(G.syncErrorValue=L,G.syncErrorThrown=!0):(0,I.z)(L),this.unsubscribe();else{if(this.unsubscribe(),ne)throw L;(0,I.z)(L)}}}complete(){if(!this.isStopped){const{_parentSubscriber:L}=this;if(this._complete){const G=()=>this._complete.call(this._context);A.v.useDeprecatedSynchronousErrorHandling&&L.syncErrorThrowable?(this.__tryOrSetError(L,G),this.unsubscribe()):(this.__tryOrUnsub(G),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(L,G){try{L.call(this._context,G)}catch(ne){if(this.unsubscribe(),A.v.useDeprecatedSynchronousErrorHandling)throw ne;(0,I.z)(ne)}}__tryOrSetError(L,G,ne){if(!A.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{G.call(this._context,ne)}catch(re){return A.v.useDeprecatedSynchronousErrorHandling?(L.syncErrorValue=re,L.syncErrorThrown=!0,!0):((0,I.z)(re),!0)}return!1}_unsubscribe(){const{_parentSubscriber:L}=this;this._context=null,this._parentSubscriber=null,L.unsubscribe()}}},2654:(J,F,p)=>{"use strict";p.d(F,{w:()=>I});var r=p(6688),_=p(7830),V=p(7043);const A=(()=>{function x(H){return Error.call(this),this.message=H?`${H.length} errors occurred during unsubscription:\n${H.map((L,G)=>`${G+1}) ${L.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=H,this}return x.prototype=Object.create(Error.prototype),x})();class I{constructor(H){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,H&&(this._ctorUnsubscribe=!0,this._unsubscribe=H)}unsubscribe(){let H;if(this.closed)return;let{_parentOrParents:L,_ctorUnsubscribe:G,_unsubscribe:ne,_subscriptions:re}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,L instanceof I)L.remove(this);else if(null!==L)for(let Oe=0;Oe<L.length;++Oe)L[Oe].remove(this);if((0,V.m)(ne)){G&&(this._unsubscribe=void 0);try{ne.call(this)}catch(Oe){H=Oe instanceof A?R(Oe.errors):[Oe]}}if((0,r.k)(re)){let Oe=-1,Se=re.length;for(;++Oe<Se;){const Ne=re[Oe];if((0,_.K)(Ne))try{Ne.unsubscribe()}catch(ve){H=H||[],ve instanceof A?H=H.concat(R(ve.errors)):H.push(ve)}}}if(H)throw new A(H)}add(H){let L=H;if(!H)return I.EMPTY;switch(typeof H){case"function":L=new I(H);case"object":if(L===this||L.closed||"function"!=typeof L.unsubscribe)return L;if(this.closed)return L.unsubscribe(),L;if(!(L instanceof I)){const re=L;L=new I,L._subscriptions=[re]}break;default:throw new Error("unrecognized teardown "+H+" added to Subscription.")}let{_parentOrParents:G}=L;if(null===G)L._parentOrParents=this;else if(G instanceof I){if(G===this)return L;L._parentOrParents=[G,this]}else{if(-1!==G.indexOf(this))return L;G.push(this)}const ne=this._subscriptions;return null===ne?this._subscriptions=[L]:ne.push(L),L}remove(H){const L=this._subscriptions;if(L){const G=L.indexOf(H);-1!==G&&L.splice(G,1)}}}var x;function R(x){return x.reduce((H,L)=>H.concat(L instanceof A?L.errors:L),[])}I.EMPTY=((x=new I).closed=!0,x)},2830:(J,F,p)=>{"use strict";p.d(F,{v:()=>_});let r=!1;const _={Promise:void 0,set useDeprecatedSynchronousErrorHandling(V){if(V){const j=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+j.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=V},get useDeprecatedSynchronousErrorHandling(){return r}}},1177:(J,F,p)=>{"use strict";p.d(F,{Ds:()=>I,IY:()=>j,ft:()=>x});var r=p(3489),_=p(2916),V=p(9249);class j extends r.L{constructor(L){super(),this.parent=L}_next(L){this.parent.notifyNext(L)}_error(L){this.parent.notifyError(L),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class I extends r.L{notifyNext(L){this.destination.next(L)}notifyError(L){this.destination.error(L)}notifyComplete(){this.destination.complete()}}function x(H,L){if(L.closed)return;if(H instanceof _.y)return H.subscribe(L);let G;try{G=(0,V.s)(H)(L)}catch(ne){L.error(ne)}return G}},1762:(J,F,p)=>{"use strict";p.d(F,{N:()=>I,c:()=>A});var r=p(5529),_=p(2916),V=p(2654),j=p(4327);class A extends _.y{constructor(G,ne){super(),this.source=G,this.subjectFactory=ne,this._refCount=0,this._isComplete=!1}_subscribe(G){return this.getSubject().subscribe(G)}getSubject(){const G=this._subject;return(!G||G.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let G=this._connection;return G||(this._isComplete=!1,G=this._connection=new V.w,G.add(this.source.subscribe(new R(this.getSubject(),this))),G.closed&&(this._connection=null,G=V.w.EMPTY)),G}refCount(){return(0,j.x)()(this)}}const I=(()=>{const L=A.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:L._subscribe},_isComplete:{value:L._isComplete,writable:!0},getSubject:{value:L.getSubject},connect:{value:L.connect},refCount:{value:L.refCount}}})();class R extends r.Yc{constructor(G,ne){super(G),this.connectable=ne}_error(G){this._unsubscribe(),super._error(G)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const G=this.connectable;if(G){this.connectable=null;const ne=G._connection;G._refCount=0,G._subject=null,G._connection=null,ne&&ne.unsubscribe()}}}},1221:(J,F,p)=>{"use strict";p.d(F,{z:()=>j});var r=p(1086),_=p(9146);function j(...A){return function V(){return(0,_.J)(1)}()((0,r.of)(...A))}},8896:(J,F,p)=>{"use strict";p.d(F,{E:()=>_,c:()=>V});var r=p(2916);const _=new r.y(A=>A.complete());function V(A){return A?function j(A){return new r.y(I=>A.schedule(()=>I.complete()))}(A):_}},567:(J,F,p)=>{"use strict";p.d(F,{D:()=>I});var r=p(2916),_=p(6688),V=p(4850),j=p(7830),A=p(5254);function I(...x){if(1===x.length){const H=x[0];if((0,_.k)(H))return R(H,null);if((0,j.K)(H)&&Object.getPrototypeOf(H)===Object.prototype){const L=Object.keys(H);return R(L.map(G=>H[G]),L)}}if("function"==typeof x[x.length-1]){const H=x.pop();return R(x=1===x.length&&(0,_.k)(x[0])?x[0]:x,null).pipe((0,V.U)(L=>H(...L)))}return R(x,null)}function R(x,H){return new r.y(L=>{const G=x.length;if(0===G)return void L.complete();const ne=new Array(G);let re=0,Oe=0;for(let Se=0;Se<G;Se++){const Ne=(0,A.D)(x[Se]);let ve=!1;L.add(Ne.subscribe({next:at=>{ve||(ve=!0,Oe++),ne[Se]=at},error:at=>L.error(at),complete:()=>{re++,(re===G||!ve)&&(Oe===G&&L.next(H?H.reduce((at,Ye,Be)=>(at[Ye]=ne[Be],at),{}):ne),L.complete())}}))}})}},5254:(J,F,p)=>{"use strict";p.d(F,{D:()=>Se});var r=p(2916),_=p(9249),V=p(2654),j=p(3821),R=p(6454),x=p(5430),G=p(8955),ne=p(8515);function Se(Ne,ve){return ve?function Oe(Ne,ve){if(null!=Ne){if(function L(Ne){return Ne&&"function"==typeof Ne[j.L]}(Ne))return function A(Ne,ve){return new r.y(at=>{const Ye=new V.w;return Ye.add(ve.schedule(()=>{const Be=Ne[j.L]();Ye.add(Be.subscribe({next(st){Ye.add(ve.schedule(()=>at.next(st)))},error(st){Ye.add(ve.schedule(()=>at.error(st)))},complete(){Ye.add(ve.schedule(()=>at.complete()))}}))})),Ye})}(Ne,ve);if((0,G.t)(Ne))return function I(Ne,ve){return new r.y(at=>{const Ye=new V.w;return Ye.add(ve.schedule(()=>Ne.then(Be=>{Ye.add(ve.schedule(()=>{at.next(Be),Ye.add(ve.schedule(()=>at.complete()))}))},Be=>{Ye.add(ve.schedule(()=>at.error(Be)))}))),Ye})}(Ne,ve);if((0,ne.z)(Ne))return(0,R.r)(Ne,ve);if(function re(Ne){return Ne&&"function"==typeof Ne[x.hZ]}(Ne)||"string"==typeof Ne)return function H(Ne,ve){if(!Ne)throw new Error("Iterable cannot be null");return new r.y(at=>{const Ye=new V.w;let Be;return Ye.add(()=>{Be&&"function"==typeof Be.return&&Be.return()}),Ye.add(ve.schedule(()=>{Be=Ne[x.hZ](),Ye.add(ve.schedule(function(){if(at.closed)return;let st,be;try{const Je=Be.next();st=Je.value,be=Je.done}catch(Je){return void at.error(Je)}be?at.complete():(at.next(st),this.schedule())}))})),Ye})}(Ne,ve)}throw new TypeError((null!==Ne&&typeof Ne||Ne)+" is not observable")}(Ne,ve):Ne instanceof r.y?Ne:new r.y((0,_.s)(Ne))}},3009:(J,F,p)=>{"use strict";p.d(F,{n:()=>j});var r=p(2916),_=p(3650),V=p(6454);function j(A,I){return I?(0,V.r)(A,I):new r.y((0,_.V)(A))}},3753:(J,F,p)=>{"use strict";p.d(F,{R:()=>I});var r=p(2916),_=p(6688),V=p(7043),j=p(4850);function I(G,ne,re,Oe){return(0,V.m)(re)&&(Oe=re,re=void 0),Oe?I(G,ne,re).pipe((0,j.U)(Se=>(0,_.k)(Se)?Oe(...Se):Oe(Se))):new r.y(Se=>{R(G,ne,function Ne(ve){Se.next(arguments.length>1?Array.prototype.slice.call(arguments):ve)},Se,re)})}function R(G,ne,re,Oe,Se){let Ne;if(function L(G){return G&&"function"==typeof G.addEventListener&&"function"==typeof G.removeEventListener}(G)){const ve=G;G.addEventListener(ne,re,Se),Ne=()=>ve.removeEventListener(ne,re,Se)}else if(function H(G){return G&&"function"==typeof G.on&&"function"==typeof G.off}(G)){const ve=G;G.on(ne,re),Ne=()=>ve.off(ne,re)}else if(function x(G){return G&&"function"==typeof G.addListener&&"function"==typeof G.removeListener}(G)){const ve=G;G.addListener(ne,re),Ne=()=>ve.removeListener(ne,re)}else{if(!G||!G.length)throw new TypeError("Invalid event target");for(let ve=0,at=G.length;ve<at;ve++)R(G[ve],ne,re,Oe,Se)}Oe.add(Ne)}},6787:(J,F,p)=>{"use strict";p.d(F,{T:()=>A});var r=p(2916),_=p(2866),V=p(9146),j=p(3009);function A(...I){let R=Number.POSITIVE_INFINITY,x=null,H=I[I.length-1];return(0,_.K)(H)?(x=I.pop(),I.length>1&&"number"==typeof I[I.length-1]&&(R=I.pop())):"number"==typeof H&&(R=I.pop()),null===x&&1===I.length&&I[0]instanceof r.y?I[0]:(0,V.J)(R)((0,j.n)(I,x))}},1086:(J,F,p)=>{"use strict";p.d(F,{of:()=>j});var r=p(2866),_=p(3009),V=p(6454);function j(...A){let I=A[A.length-1];return(0,r.K)(I)?(A.pop(),(0,V.r)(A,I)):(0,_.n)(A)}},7221:(J,F,p)=>{"use strict";p.d(F,{K:()=>_});var r=p(1177);function _(A){return function(R){const x=new V(A),H=R.lift(x);return x.caught=H}}class V{constructor(I){this.selector=I}call(I,R){return R.subscribe(new j(I,this.selector,this.caught))}}class j extends r.Ds{constructor(I,R,x){super(I),this.selector=R,this.caught=x}error(I){if(!this.isStopped){let R;try{R=this.selector(I,this.caught)}catch(L){return void super.error(L)}this._unsubscribeAndRecycle();const x=new r.IY(this);this.add(x);const H=(0,r.ft)(R,x);H!==x&&this.add(H)}}}},1406:(J,F,p)=>{"use strict";p.d(F,{b:()=>_});var r=p(1709);function _(V,j){return(0,r.zg)(V,j,1)}},13:(J,F,p)=>{"use strict";p.d(F,{b:()=>V});var r=p(3489),_=p(353);function V(R,x=_.P){return H=>H.lift(new j(R,x))}class j{constructor(x,H){this.dueTime=x,this.scheduler=H}call(x,H){return H.subscribe(new A(x,this.dueTime,this.scheduler))}}class A extends r.L{constructor(x,H,L){super(x),this.dueTime=H,this.scheduler=L,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(x){this.clearDebounce(),this.lastValue=x,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(I,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:x}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(x)}}clearDebounce(){const x=this.debouncedSubscription;null!==x&&(this.remove(x),x.unsubscribe(),this.debouncedSubscription=null)}}function I(R){R.debouncedNext()}},2198:(J,F,p)=>{"use strict";p.d(F,{h:()=>_});var r=p(3489);function _(A,I){return function(x){return x.lift(new V(A,I))}}class V{constructor(I,R){this.predicate=I,this.thisArg=R}call(I,R){return R.subscribe(new j(I,this.predicate,this.thisArg))}}class j extends r.L{constructor(I,R,x){super(I),this.predicate=R,this.thisArg=x,this.count=0}_next(I){let R;try{R=this.predicate.call(this.thisArg,I,this.count++)}catch(x){return void this.destination.error(x)}R&&this.destination.next(I)}}},537:(J,F,p)=>{"use strict";p.d(F,{x:()=>V});var r=p(3489),_=p(2654);function V(I){return R=>R.lift(new j(I))}class j{constructor(R){this.callback=R}call(R,x){return x.subscribe(new A(R,this.callback))}}class A extends r.L{constructor(R,x){super(R),this.add(new _.w(x))}}},4850:(J,F,p)=>{"use strict";p.d(F,{U:()=>_});var r=p(3489);function _(A,I){return function(x){if("function"!=typeof A)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return x.lift(new V(A,I))}}class V{constructor(I,R){this.project=I,this.thisArg=R}call(I,R){return R.subscribe(new j(I,this.project,this.thisArg))}}class j extends r.L{constructor(I,R,x){super(I),this.project=R,this.count=0,this.thisArg=x||this}_next(I){let R;try{R=this.project.call(this.thisArg,I,this.count++)}catch(x){return void this.destination.error(x)}this.destination.next(R)}}},9146:(J,F,p)=>{"use strict";p.d(F,{J:()=>V});var r=p(1709),_=p(5379);function V(j=Number.POSITIVE_INFINITY){return(0,r.zg)(_.y,j)}},1709:(J,F,p)=>{"use strict";p.d(F,{zg:()=>j});var r=p(4850),_=p(5254),V=p(1177);function j(x,H,L=Number.POSITIVE_INFINITY){return"function"==typeof H?G=>G.pipe(j((ne,re)=>(0,_.D)(x(ne,re)).pipe((0,r.U)((Oe,Se)=>H(ne,Oe,re,Se))),L)):("number"==typeof H&&(L=H),G=>G.lift(new A(x,L)))}class A{constructor(H,L=Number.POSITIVE_INFINITY){this.project=H,this.concurrent=L}call(H,L){return L.subscribe(new I(H,this.project,this.concurrent))}}class I extends V.Ds{constructor(H,L,G=Number.POSITIVE_INFINITY){super(H),this.project=L,this.concurrent=G,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(H){this.active<this.concurrent?this._tryNext(H):this.buffer.push(H)}_tryNext(H){let L;const G=this.index++;try{L=this.project(H,G)}catch(ne){return void this.destination.error(ne)}this.active++,this._innerSub(L)}_innerSub(H){const L=new V.IY(this),G=this.destination;G.add(L);const ne=(0,V.ft)(H,L);ne!==L&&G.add(ne)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(H){this.destination.next(H)}notifyComplete(){const H=this.buffer;this.active--,H.length>0?this._next(H.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(J,F,p)=>{"use strict";p.d(F,{x:()=>_});var r=p(3489);function _(){return function(I){return I.lift(new V(I))}}class V{constructor(I){this.connectable=I}call(I,R){const{connectable:x}=this;x._refCount++;const H=new j(I,x),L=R.subscribe(H);return H.closed||(H.connection=x.connect()),L}}class j extends r.L{constructor(I,R){super(I),this.connectable=R}_unsubscribe(){const{connectable:I}=this;if(!I)return void(this.connection=null);this.connectable=null;const R=I._refCount;if(R<=0)return void(this.connection=null);if(I._refCount=R-1,R>1)return void(this.connection=null);const{connection:x}=this,H=I._connection;this.connection=null,H&&(!x||H===x)&&H.unsubscribe()}}},1059:(J,F,p)=>{"use strict";p.d(F,{O:()=>V});var r=p(1221),_=p(2866);function V(...j){const A=j[j.length-1];return(0,_.K)(A)?(j.pop(),I=>(0,r.z)(j,I,A)):I=>(0,r.z)(j,I)}},2986:(J,F,p)=>{"use strict";p.d(F,{q:()=>j});var r=p(3489),_=p(4231),V=p(8896);function j(R){return x=>0===R?(0,V.c)():x.lift(new A(R))}class A{constructor(x){if(this.total=x,this.total<0)throw new _.W}call(x,H){return H.subscribe(new I(x,this.total))}}class I extends r.L{constructor(x,H){super(x),this.total=H,this.count=0}_next(x){const H=this.total,L=++this.count;L<=H&&(this.destination.next(x),L===H&&(this.destination.complete(),this.unsubscribe()))}}},7625:(J,F,p)=>{"use strict";p.d(F,{R:()=>_});var r=p(1177);function _(A){return I=>I.lift(new V(A))}class V{constructor(I){this.notifier=I}call(I,R){const x=new j(I),H=(0,r.ft)(this.notifier,new r.IY(x));return H&&!x.seenValue?(x.add(H),R.subscribe(x)):x}}class j extends r.Ds{constructor(I){super(I),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},2868:(J,F,p)=>{"use strict";p.d(F,{b:()=>j});var r=p(3489);function _(){}var V=p(7043);function j(R,x,H){return function(G){return G.lift(new A(R,x,H))}}class A{constructor(x,H,L){this.nextOrObserver=x,this.error=H,this.complete=L}call(x,H){return H.subscribe(new I(x,this.nextOrObserver,this.error,this.complete))}}class I extends r.L{constructor(x,H,L,G){super(x),this._tapNext=_,this._tapError=_,this._tapComplete=_,this._tapError=L||_,this._tapComplete=G||_,(0,V.m)(H)?(this._context=this,this._tapNext=H):H&&(this._context=H,this._tapNext=H.next||_,this._tapError=H.error||_,this._tapComplete=H.complete||_)}_next(x){try{this._tapNext.call(this._context,x)}catch(H){return void this.destination.error(H)}this.destination.next(x)}_error(x){try{this._tapError.call(this._context,x)}catch(H){return void this.destination.error(H)}this.destination.error(x)}_complete(){try{this._tapComplete.call(this._context)}catch(x){return void this.destination.error(x)}return this.destination.complete()}}},6454:(J,F,p)=>{"use strict";p.d(F,{r:()=>V});var r=p(2916),_=p(2654);function V(j,A){return new r.y(I=>{const R=new _.w;let x=0;return R.add(A.schedule(function(){x!==j.length?(I.next(j[x++]),I.closed||R.add(this.schedule())):I.complete()})),R})}},6686:(J,F,p)=>{"use strict";p.d(F,{o:()=>V});var r=p(2654);class _ extends r.w{constructor(A,I){super()}schedule(A,I=0){return this}}class V extends _{constructor(A,I){super(A,I),this.scheduler=A,this.work=I,this.pending=!1}schedule(A,I=0){if(this.closed)return this;this.state=A;const R=this.id,x=this.scheduler;return null!=R&&(this.id=this.recycleAsyncId(x,R,I)),this.pending=!0,this.delay=I,this.id=this.id||this.requestAsyncId(x,this.id,I),this}requestAsyncId(A,I,R=0){return setInterval(A.flush.bind(A,this),R)}recycleAsyncId(A,I,R=0){if(null!==R&&this.delay===R&&!1===this.pending)return I;clearInterval(I)}execute(A,I){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const R=this._execute(A,I);if(R)return R;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(A,I){let x,R=!1;try{this.work(A)}catch(H){R=!0,x=!!H&&H||new Error(H)}if(R)return this.unsubscribe(),x}_unsubscribe(){const A=this.id,I=this.scheduler,R=I.actions,x=R.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==x&&R.splice(x,1),null!=A&&(this.id=this.recycleAsyncId(I,A,null)),this.delay=null}}},2268:(J,F,p)=>{"use strict";p.d(F,{v:()=>_});let r=(()=>{class V{constructor(A,I=V.now){this.SchedulerAction=A,this.now=I}schedule(A,I=0,R){return new this.SchedulerAction(this,A).schedule(R,I)}}return V.now=()=>Date.now(),V})();class _ extends r{constructor(j,A=r.now){super(j,()=>_.delegate&&_.delegate!==this?_.delegate.now():A()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(j,A=0,I){return _.delegate&&_.delegate!==this?_.delegate.schedule(j,A,I):super.schedule(j,A,I)}flush(j){const{actions:A}=this;if(this.active)return void A.push(j);let I;this.active=!0;do{if(I=j.execute(j.state,j.delay))break}while(j=A.shift());if(this.active=!1,I){for(;j=A.shift();)j.unsubscribe();throw I}}}},352:(J,F,p)=>{"use strict";p.d(F,{Z:()=>A});var r=p(6686),V=p(2268);const A=new class j extends V.v{flush(x){this.active=!0,this.scheduled=void 0;const{actions:H}=this;let L,G=-1,ne=H.length;x=x||H.shift();do{if(L=x.execute(x.state,x.delay))break}while(++G<ne&&(x=H.shift()));if(this.active=!1,L){for(;++G<ne&&(x=H.shift());)x.unsubscribe();throw L}}}(class _ extends r.o{constructor(x,H){super(x,H),this.scheduler=x,this.work=H}requestAsyncId(x,H,L=0){return null!==L&&L>0?super.requestAsyncId(x,H,L):(x.actions.push(this),x.scheduled||(x.scheduled=requestAnimationFrame(()=>x.flush(null))))}recycleAsyncId(x,H,L=0){if(null!==L&&L>0||null===L&&this.delay>0)return super.recycleAsyncId(x,H,L);0===x.actions.length&&(cancelAnimationFrame(H),x.scheduled=void 0)}})},353:(J,F,p)=>{"use strict";p.d(F,{P:()=>j});var r=p(6686);const j=new(p(2268).v)(r.o)},5430:(J,F,p)=>{"use strict";p.d(F,{hZ:()=>_});const _=function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(J,F,p)=>{"use strict";p.d(F,{L:()=>r});const r="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(J,F,p)=>{"use strict";p.d(F,{b:()=>r});const r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(J,F,p)=>{"use strict";p.d(F,{W:()=>_});const _=(()=>{function V(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return V.prototype=Object.create(Error.prototype),V})()},5279:(J,F,p)=>{"use strict";p.d(F,{N:()=>_});const _=(()=>{function V(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return V.prototype=Object.create(Error.prototype),V})()},2782:(J,F,p)=>{"use strict";function r(_){setTimeout(()=>{throw _},0)}p.d(F,{z:()=>r})},5379:(J,F,p)=>{"use strict";function r(_){return _}p.d(F,{y:()=>r})},6688:(J,F,p)=>{"use strict";p.d(F,{k:()=>r});const r=Array.isArray||(_=>_&&"number"==typeof _.length)},8515:(J,F,p)=>{"use strict";p.d(F,{z:()=>r});const r=_=>_&&"number"==typeof _.length&&"function"!=typeof _},7043:(J,F,p)=>{"use strict";function r(_){return"function"==typeof _}p.d(F,{m:()=>r})},7830:(J,F,p)=>{"use strict";function r(_){return null!==_&&"object"==typeof _}p.d(F,{K:()=>r})},8955:(J,F,p)=>{"use strict";function r(_){return!!_&&"function"!=typeof _.subscribe&&"function"==typeof _.then}p.d(F,{t:()=>r})},2866:(J,F,p)=>{"use strict";function r(_){return _&&"function"==typeof _.schedule}p.d(F,{K:()=>r})},9249:(J,F,p)=>{"use strict";p.d(F,{s:()=>G});var r=p(3650),_=p(2782),j=p(5430),I=p(3821),x=p(8515),H=p(8955),L=p(7830);const G=ne=>{if(ne&&"function"==typeof ne[I.L])return(ne=>re=>{const Oe=ne[I.L]();if("function"!=typeof Oe.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return Oe.subscribe(re)})(ne);if((0,x.z)(ne))return(0,r.V)(ne);if((0,H.t)(ne))return(ne=>re=>(ne.then(Oe=>{re.closed||(re.next(Oe),re.complete())},Oe=>re.error(Oe)).then(null,_.z),re))(ne);if(ne&&"function"==typeof ne[j.hZ])return(ne=>re=>{const Oe=ne[j.hZ]();for(;;){let Se;try{Se=Oe.next()}catch(Ne){return re.error(Ne),re}if(Se.done){re.complete();break}if(re.next(Se.value),re.closed)break}return"function"==typeof Oe.return&&re.add(()=>{Oe.return&&Oe.return()}),re})(ne);{const Oe=`You provided ${(0,L.K)(ne)?"an invalid object":`'${ne}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(Oe)}}},3650:(J,F,p)=>{"use strict";p.d(F,{V:()=>r});const r=_=>V=>{for(let j=0,A=_.length;j<A&&!V.closed;j++)V.next(_[j]);V.complete()}},8583:()=>{"use strict";!function(fe){const Ee=fe.performance;function Ae(ye){Ee&&Ee.mark&&Ee.mark(ye)}function _e(ye,we){Ee&&Ee.measure&&Ee.measure(ye,we)}Ae("Zone");const Re=fe.__Zone_symbol_prefix||"__zone_symbol__";function tt(ye){return Re+ye}const ft=!0===fe[tt("forceDuplicateZoneCheck")];if(fe.Zone){if(ft||"function"!=typeof fe.Zone.__symbol__)throw new Error("Zone already loaded.");return fe.Zone}let ct=(()=>{class ye{constructor(E,P){this._parent=E,this._name=P?P.name||"unnamed":"<root>",this._properties=P&&P.properties||{},this._zoneDelegate=new kt(this,this._parent&&this._parent._zoneDelegate,P)}static assertZonePatched(){if(fe.Promise!==bt.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let E=ye.current;for(;E.parent;)E=E.parent;return E}static get current(){return k.zone}static get currentTask(){return q}static __load_patch(E,P,m=!1){if(bt.hasOwnProperty(E)){if(!m&&ft)throw Error("Already loaded patch: "+E)}else if(!fe["__Zone_disable_"+E]){const B="Zone:"+E;Ae(B),bt[E]=P(fe,ye,hn),_e(B,B)}}get parent(){return this._parent}get name(){return this._name}get(E){const P=this.getZoneWith(E);if(P)return P._properties[E]}getZoneWith(E){let P=this;for(;P;){if(P._properties.hasOwnProperty(E))return P;P=P._parent}return null}fork(E){if(!E)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,E)}wrap(E,P){if("function"!=typeof E)throw new Error("Expecting function got: "+E);const m=this._zoneDelegate.intercept(this,E,P),B=this;return function(){return B.runGuarded(m,this,arguments,P)}}run(E,P,m,B){k={parent:k,zone:this};try{return this._zoneDelegate.invoke(this,E,P,m,B)}finally{k=k.parent}}runGuarded(E,P=null,m,B){k={parent:k,zone:this};try{try{return this._zoneDelegate.invoke(this,E,P,m,B)}catch(ue){if(this._zoneDelegate.handleError(this,ue))throw ue}}finally{k=k.parent}}runTask(E,P,m){if(E.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(E.zone||It).name+"; Execution: "+this.name+")");if(E.state===Ct&&(E.type===yt||E.type===ht))return;const B=E.state!=Jt;B&&E._transitionTo(Jt,Pt),E.runCount++;const ue=q;q=E,k={parent:k,zone:this};try{E.type==ht&&E.data&&!E.data.isPeriodic&&(E.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,E,P,m)}catch(ce){if(this._zoneDelegate.handleError(this,ce))throw ce}}finally{E.state!==Ct&&E.state!==Ke&&(E.type==yt||E.data&&E.data.isPeriodic?B&&E._transitionTo(Pt,Jt):(E.runCount=0,this._updateTaskCount(E,-1),B&&E._transitionTo(Ct,Jt,Ct))),k=k.parent,q=ue}}scheduleTask(E){if(E.zone&&E.zone!==this){let m=this;for(;m;){if(m===E.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${E.zone.name}`);m=m.parent}}E._transitionTo(an,Ct);const P=[];E._zoneDelegates=P,E._zone=this;try{E=this._zoneDelegate.scheduleTask(this,E)}catch(m){throw E._transitionTo(Ke,an,Ct),this._zoneDelegate.handleError(this,m),m}return E._zoneDelegates===P&&this._updateTaskCount(E,1),E.state==an&&E._transitionTo(Pt,an),E}scheduleMicroTask(E,P,m,B){return this.scheduleTask(new Dt(it,E,P,m,B,void 0))}scheduleMacroTask(E,P,m,B,ue){return this.scheduleTask(new Dt(ht,E,P,m,B,ue))}scheduleEventTask(E,P,m,B,ue){return this.scheduleTask(new Dt(yt,E,P,m,B,ue))}cancelTask(E){if(E.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(E.zone||It).name+"; Execution: "+this.name+")");E._transitionTo(Tt,Pt,Jt);try{this._zoneDelegate.cancelTask(this,E)}catch(P){throw E._transitionTo(Ke,Tt),this._zoneDelegate.handleError(this,P),P}return this._updateTaskCount(E,-1),E._transitionTo(Ct,Tt),E.runCount=0,E}_updateTaskCount(E,P){const m=E._zoneDelegates;-1==P&&(E._zoneDelegates=null);for(let B=0;B<m.length;B++)m[B]._updateTaskCount(E.type,P)}}return ye.__symbol__=tt,ye})();const St={name:"",onHasTask:(ye,we,E,P)=>ye.hasTask(E,P),onScheduleTask:(ye,we,E,P)=>ye.scheduleTask(E,P),onInvokeTask:(ye,we,E,P,m,B)=>ye.invokeTask(E,P,m,B),onCancelTask:(ye,we,E,P)=>ye.cancelTask(E,P)};class kt{constructor(we,E,P){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=we,this._parentDelegate=E,this._forkZS=P&&(P&&P.onFork?P:E._forkZS),this._forkDlgt=P&&(P.onFork?E:E._forkDlgt),this._forkCurrZone=P&&(P.onFork?this.zone:E._forkCurrZone),this._interceptZS=P&&(P.onIntercept?P:E._interceptZS),this._interceptDlgt=P&&(P.onIntercept?E:E._interceptDlgt),this._interceptCurrZone=P&&(P.onIntercept?this.zone:E._interceptCurrZone),this._invokeZS=P&&(P.onInvoke?P:E._invokeZS),this._invokeDlgt=P&&(P.onInvoke?E:E._invokeDlgt),this._invokeCurrZone=P&&(P.onInvoke?this.zone:E._invokeCurrZone),this._handleErrorZS=P&&(P.onHandleError?P:E._handleErrorZS),this._handleErrorDlgt=P&&(P.onHandleError?E:E._handleErrorDlgt),this._handleErrorCurrZone=P&&(P.onHandleError?this.zone:E._handleErrorCurrZone),this._scheduleTaskZS=P&&(P.onScheduleTask?P:E._scheduleTaskZS),this._scheduleTaskDlgt=P&&(P.onScheduleTask?E:E._scheduleTaskDlgt),this._scheduleTaskCurrZone=P&&(P.onScheduleTask?this.zone:E._scheduleTaskCurrZone),this._invokeTaskZS=P&&(P.onInvokeTask?P:E._invokeTaskZS),this._invokeTaskDlgt=P&&(P.onInvokeTask?E:E._invokeTaskDlgt),this._invokeTaskCurrZone=P&&(P.onInvokeTask?this.zone:E._invokeTaskCurrZone),this._cancelTaskZS=P&&(P.onCancelTask?P:E._cancelTaskZS),this._cancelTaskDlgt=P&&(P.onCancelTask?E:E._cancelTaskDlgt),this._cancelTaskCurrZone=P&&(P.onCancelTask?this.zone:E._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const m=P&&P.onHasTask;(m||E&&E._hasTaskZS)&&(this._hasTaskZS=m?P:St,this._hasTaskDlgt=E,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=we,P.onScheduleTask||(this._scheduleTaskZS=St,this._scheduleTaskDlgt=E,this._scheduleTaskCurrZone=this.zone),P.onInvokeTask||(this._invokeTaskZS=St,this._invokeTaskDlgt=E,this._invokeTaskCurrZone=this.zone),P.onCancelTask||(this._cancelTaskZS=St,this._cancelTaskDlgt=E,this._cancelTaskCurrZone=this.zone))}fork(we,E){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,we,E):new ct(we,E)}intercept(we,E,P){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,we,E,P):E}invoke(we,E,P,m,B){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,we,E,P,m,B):E.apply(P,m)}handleError(we,E){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,we,E)}scheduleTask(we,E){let P=E;if(this._scheduleTaskZS)this._hasTaskZS&&P._zoneDelegates.push(this._hasTaskDlgtOwner),P=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,we,E),P||(P=E);else if(E.scheduleFn)E.scheduleFn(E);else{if(E.type!=it)throw new Error("Task is missing scheduleFn.");Ue(E)}return P}invokeTask(we,E,P,m){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,we,E,P,m):E.callback.apply(P,m)}cancelTask(we,E){let P;if(this._cancelTaskZS)P=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,we,E);else{if(!E.cancelFn)throw Error("Task is not cancelable");P=E.cancelFn(E)}return P}hasTask(we,E){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,we,E)}catch(P){this.handleError(we,P)}}_updateTaskCount(we,E){const P=this._taskCounts,m=P[we],B=P[we]=m+E;if(B<0)throw new Error("More tasks executed then were scheduled.");0!=m&&0!=B||this.hasTask(this.zone,{microTask:P.microTask>0,macroTask:P.macroTask>0,eventTask:P.eventTask>0,change:we})}}class Dt{constructor(we,E,P,m,B,ue){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=we,this.source=E,this.data=m,this.scheduleFn=B,this.cancelFn=ue,!P)throw new Error("callback is not defined");this.callback=P;const ce=this;this.invoke=we===yt&&m&&m.useG?Dt.invokeTask:function(){return Dt.invokeTask.call(fe,ce,this,arguments)}}static invokeTask(we,E,P){we||(we=this),Y++;try{return we.runCount++,we.zone.runTask(we,E,P)}finally{1==Y&&ut(),Y--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Ct,an)}_transitionTo(we,E,P){if(this._state!==E&&this._state!==P)throw new Error(`${this.type} '${this.source}': can not transition to '${we}', expecting state '${E}'${P?" or '"+P+"'":""}, was '${this._state}'.`);this._state=we,we==Ct&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const Wt=tt("setTimeout"),De=tt("Promise"),se=tt("then");let Me,K=[],Pe=!1;function Ue(ye){if(0===Y&&0===K.length)if(Me||fe[De]&&(Me=fe[De].resolve(0)),Me){let we=Me[se];we||(we=Me.then),we.call(Me,ut)}else fe[Wt](ut,0);ye&&K.push(ye)}function ut(){if(!Pe){for(Pe=!0;K.length;){const ye=K;K=[];for(let we=0;we<ye.length;we++){const E=ye[we];try{E.zone.runTask(E,null,null)}catch(P){hn.onUnhandledError(P)}}}hn.microtaskDrainDone(),Pe=!1}}const It={name:"NO ZONE"},Ct="notScheduled",an="scheduling",Pt="scheduled",Jt="running",Tt="canceling",Ke="unknown",it="microTask",ht="macroTask",yt="eventTask",bt={},hn={symbol:tt,currentZoneFrame:()=>k,onUnhandledError:te,microtaskDrainDone:te,scheduleMicroTask:Ue,showUncaughtError:()=>!ct[tt("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:te,patchMethod:()=>te,bindArguments:()=>[],patchThen:()=>te,patchMacroTask:()=>te,patchEventPrototype:()=>te,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>te,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>te,wrapWithCurrentZone:()=>te,filterProperties:()=>[],attachOriginToPatched:()=>te,_redefineProperty:()=>te,patchCallbacks:()=>te};let k={parent:null,zone:new ct(null,null)},q=null,Y=0;function te(){}_e("Zone","Zone"),fe.Zone=ct}(typeof window<"u"&&window||typeof self<"u"&&self||global);const F=Object.getOwnPropertyDescriptor,p=Object.defineProperty,r=Object.getPrototypeOf,_=Object.create,V=Array.prototype.slice,j="addEventListener",A="removeEventListener",I=Zone.__symbol__(j),R=Zone.__symbol__(A),x="true",H="false",L=Zone.__symbol__("");function G(fe,Ee){return Zone.current.wrap(fe,Ee)}function ne(fe,Ee,Ae,_e,Re){return Zone.current.scheduleMacroTask(fe,Ee,Ae,_e,Re)}const re=Zone.__symbol__,Oe=typeof window<"u",Se=Oe?window:void 0,Ne=Oe&&Se||"object"==typeof self&&self||global,at=[null];function Ye(fe,Ee){for(let Ae=fe.length-1;Ae>=0;Ae--)"function"==typeof fe[Ae]&&(fe[Ae]=G(fe[Ae],Ee+"_"+Ae));return fe}function st(fe){return!fe||!1!==fe.writable&&!("function"==typeof fe.get&&typeof fe.set>"u")}const be=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Je=!("nw"in Ne)&&typeof Ne.process<"u"&&"[object process]"==={}.toString.call(Ne.process),Gt=!Je&&!be&&!(!Oe||!Se.HTMLElement),_t=typeof Ne.process<"u"&&"[object process]"==={}.toString.call(Ne.process)&&!be&&!(!Oe||!Se.HTMLElement),Fe={},le=function(fe){if(!(fe=fe||Ne.event))return;let Ee=Fe[fe.type];Ee||(Ee=Fe[fe.type]=re("ON_PROPERTY"+fe.type));const Ae=this||fe.target||Ne,_e=Ae[Ee];let Re;if(Gt&&Ae===Se&&"error"===fe.type){const tt=fe;Re=_e&&_e.call(this,tt.message,tt.filename,tt.lineno,tt.colno,tt.error),!0===Re&&fe.preventDefault()}else Re=_e&&_e.apply(this,arguments),null!=Re&&!Re&&fe.preventDefault();return Re};function Te(fe,Ee,Ae){let _e=F(fe,Ee);if(!_e&&Ae&&F(Ae,Ee)&&(_e={enumerable:!0,configurable:!0}),!_e||!_e.configurable)return;const Re=re("on"+Ee+"patched");if(fe.hasOwnProperty(Re)&&fe[Re])return;delete _e.writable,delete _e.value;const tt=_e.get,ft=_e.set,ct=Ee.substr(2);let St=Fe[ct];St||(St=Fe[ct]=re("ON_PROPERTY"+ct)),_e.set=function(kt){let Dt=this;!Dt&&fe===Ne&&(Dt=Ne),Dt&&(Dt[St]&&Dt.removeEventListener(ct,le),ft&&ft.apply(Dt,at),"function"==typeof kt?(Dt[St]=kt,Dt.addEventListener(ct,le,!1)):Dt[St]=null)},_e.get=function(){let kt=this;if(!kt&&fe===Ne&&(kt=Ne),!kt)return null;const Dt=kt[St];if(Dt)return Dt;if(tt){let Wt=tt&&tt.call(this);if(Wt)return _e.set.call(this,Wt),"function"==typeof kt.removeAttribute&&kt.removeAttribute(Ee),Wt}return null},p(fe,Ee,_e),fe[Re]=!0}function He(fe,Ee,Ae){if(Ee)for(let _e=0;_e<Ee.length;_e++)Te(fe,"on"+Ee[_e],Ae);else{const _e=[];for(const Re in fe)"on"==Re.substr(0,2)&&_e.push(Re);for(let Re=0;Re<_e.length;Re++)Te(fe,_e[Re],Ae)}}const dt=re("originalInstance");function Ze(fe){const Ee=Ne[fe];if(!Ee)return;Ne[re(fe)]=Ee,Ne[fe]=function(){const Re=Ye(arguments,fe);switch(Re.length){case 0:this[dt]=new Ee;break;case 1:this[dt]=new Ee(Re[0]);break;case 2:this[dt]=new Ee(Re[0],Re[1]);break;case 3:this[dt]=new Ee(Re[0],Re[1],Re[2]);break;case 4:this[dt]=new Ee(Re[0],Re[1],Re[2],Re[3]);break;default:throw new Error("Arg list too long.")}},Vt(Ne[fe],Ee);const Ae=new Ee(function(){});let _e;for(_e in Ae)"XMLHttpRequest"===fe&&"responseBlob"===_e||function(Re){"function"==typeof Ae[Re]?Ne[fe].prototype[Re]=function(){return this[dt][Re].apply(this[dt],arguments)}:p(Ne[fe].prototype,Re,{set:function(tt){"function"==typeof tt?(this[dt][Re]=G(tt,fe+"."+Re),Vt(this[dt][Re],tt)):this[dt][Re]=tt},get:function(){return this[dt][Re]}})}(_e);for(_e in Ee)"prototype"!==_e&&Ee.hasOwnProperty(_e)&&(Ne[fe][_e]=Ee[_e])}function $e(fe,Ee,Ae){let _e=fe;for(;_e&&!_e.hasOwnProperty(Ee);)_e=r(_e);!_e&&fe[Ee]&&(_e=fe);const Re=re(Ee);let tt=null;if(_e&&(!(tt=_e[Re])||!_e.hasOwnProperty(Re))&&(tt=_e[Re]=_e[Ee],st(_e&&F(_e,Ee)))){const ct=Ae(tt,Re,Ee);_e[Ee]=function(){return ct(this,arguments)},Vt(_e[Ee],tt)}return tt}function yn(fe,Ee,Ae){let _e=null;function Re(tt){const ft=tt.data;return ft.args[ft.cbIdx]=function(){tt.invoke.apply(this,arguments)},_e.apply(ft.target,ft.args),tt}_e=$e(fe,Ee,tt=>function(ft,ct){const St=Ae(ft,ct);return St.cbIdx>=0&&"function"==typeof ct[St.cbIdx]?ne(St.name,ct[St.cbIdx],St,Re):tt.apply(ft,ct)})}function Vt(fe,Ee){fe[re("OriginalDelegate")]=Ee}let gn=!1,Mn=!1;function Fn(){if(gn)return Mn;gn=!0;try{const fe=Se.navigator.userAgent;(-1!==fe.indexOf("MSIE ")||-1!==fe.indexOf("Trident/")||-1!==fe.indexOf("Edge/"))&&(Mn=!0)}catch{}return Mn}Zone.__load_patch("ZoneAwarePromise",(fe,Ee,Ae)=>{const _e=Object.getOwnPropertyDescriptor,Re=Object.defineProperty,ft=Ae.symbol,ct=[],St=!0===fe[ft("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],kt=ft("Promise"),Dt=ft("then");Ae.onUnhandledError=ce=>{if(Ae.showUncaughtError()){const ae=ce&&ce.rejection;ae?console.error("Unhandled Promise rejection:",ae instanceof Error?ae.message:ae,"; Zone:",ce.zone.name,"; Task:",ce.task&&ce.task.source,"; Value:",ae,ae instanceof Error?ae.stack:void 0):console.error(ce)}},Ae.microtaskDrainDone=()=>{for(;ct.length;){const ce=ct.shift();try{ce.zone.runGuarded(()=>{throw ce.throwOriginal?ce.rejection:ce})}catch(ae){se(ae)}}};const De=ft("unhandledPromiseRejectionHandler");function se(ce){Ae.onUnhandledError(ce);try{const ae=Ee[De];"function"==typeof ae&&ae.call(this,ce)}catch{}}function K(ce){return ce&&ce.then}function Pe(ce){return ce}function Me(ce){return E.reject(ce)}const Ue=ft("state"),ut=ft("value"),It=ft("finally"),Ct=ft("parentPromiseValue"),an=ft("parentPromiseState"),Jt=null,Ke=!1;function ht(ce,ae){return xe=>{try{k(ce,ae,xe)}catch(nt){k(ce,!1,nt)}}}const hn=ft("currentTaskTrace");function k(ce,ae,xe){const nt=function(){let ce=!1;return function(xe){return function(){ce||(ce=!0,xe.apply(null,arguments))}}}();if(ce===xe)throw new TypeError("Promise resolved with itself");if(ce[Ue]===Jt){let Et=null;try{("object"==typeof xe||"function"==typeof xe)&&(Et=xe&&xe.then)}catch(Nt){return nt(()=>{k(ce,!1,Nt)})(),ce}if(ae!==Ke&&xe instanceof E&&xe.hasOwnProperty(Ue)&&xe.hasOwnProperty(ut)&&xe[Ue]!==Jt)Y(xe),k(ce,xe[Ue],xe[ut]);else if(ae!==Ke&&"function"==typeof Et)try{Et.call(xe,nt(ht(ce,ae)),nt(ht(ce,!1)))}catch(Nt){nt(()=>{k(ce,!1,Nt)})()}else{ce[Ue]=ae;const Nt=ce[ut];if(ce[ut]=xe,ce[It]===It&&!0===ae&&(ce[Ue]=ce[an],ce[ut]=ce[Ct]),ae===Ke&&xe instanceof Error){const vt=Ee.currentTask&&Ee.currentTask.data&&Ee.currentTask.data.__creationTrace__;vt&&Re(xe,hn,{configurable:!0,enumerable:!1,writable:!0,value:vt})}for(let vt=0;vt<Nt.length;)te(ce,Nt[vt++],Nt[vt++],Nt[vt++],Nt[vt++]);if(0==Nt.length&&ae==Ke){ce[Ue]=0;let vt=xe;try{throw new Error("Uncaught (in promise): "+function tt(ce){return ce&&ce.toString===Object.prototype.toString?(ce.constructor&&ce.constructor.name||"")+": "+JSON.stringify(ce):ce?ce.toString():Object.prototype.toString.call(ce)}(xe)+(xe&&xe.stack?"\n"+xe.stack:""))}catch(pt){vt=pt}St&&(vt.throwOriginal=!0),vt.rejection=xe,vt.promise=ce,vt.zone=Ee.current,vt.task=Ee.currentTask,ct.push(vt),Ae.scheduleMicroTask()}}}return ce}const q=ft("rejectionHandledHandler");function Y(ce){if(0===ce[Ue]){try{const ae=Ee[q];ae&&"function"==typeof ae&&ae.call(this,{rejection:ce[ut],promise:ce})}catch{}ce[Ue]=Ke;for(let ae=0;ae<ct.length;ae++)ce===ct[ae].promise&&ct.splice(ae,1)}}function te(ce,ae,xe,nt,Et){Y(ce);const Nt=ce[Ue],vt=Nt?"function"==typeof nt?nt:Pe:"function"==typeof Et?Et:Me;ae.scheduleMicroTask("Promise.then",()=>{try{const pt=ce[ut],Qt=!!xe&&It===xe[It];Qt&&(xe[Ct]=pt,xe[an]=Nt);const ln=ae.run(vt,void 0,Qt&&vt!==Me&&vt!==Pe?[]:[pt]);k(xe,!0,ln)}catch(pt){k(xe,!1,pt)}},xe)}const we=function(){};class E{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(ae){return k(new this(null),!0,ae)}static reject(ae){return k(new this(null),Ke,ae)}static race(ae){let xe,nt,Et=new this((pt,Qt)=>{xe=pt,nt=Qt});function Nt(pt){xe(pt)}function vt(pt){nt(pt)}for(let pt of ae)K(pt)||(pt=this.resolve(pt)),pt.then(Nt,vt);return Et}static all(ae){return E.allWithCallback(ae)}static allSettled(ae){return(this&&this.prototype instanceof E?this:E).allWithCallback(ae,{thenCallback:nt=>({status:"fulfilled",value:nt}),errorCallback:nt=>({status:"rejected",reason:nt})})}static allWithCallback(ae,xe){let nt,Et,Nt=new this((ln,on)=>{nt=ln,Et=on}),vt=2,pt=0;const Qt=[];for(let ln of ae){K(ln)||(ln=this.resolve(ln));const on=pt;try{ln.then(Gn=>{Qt[on]=xe?xe.thenCallback(Gn):Gn,vt--,0===vt&&nt(Qt)},Gn=>{xe?(Qt[on]=xe.errorCallback(Gn),vt--,0===vt&&nt(Qt)):Et(Gn)})}catch(Gn){Et(Gn)}vt++,pt++}return vt-=2,0===vt&&nt(Qt),Nt}constructor(ae){const xe=this;if(!(xe instanceof E))throw new Error("Must be an instanceof Promise.");xe[Ue]=Jt,xe[ut]=[];try{ae&&ae(ht(xe,!0),ht(xe,Ke))}catch(nt){k(xe,!1,nt)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return E}then(ae,xe){let nt=this.constructor[Symbol.species];(!nt||"function"!=typeof nt)&&(nt=this.constructor||E);const Et=new nt(we),Nt=Ee.current;return this[Ue]==Jt?this[ut].push(Nt,Et,ae,xe):te(this,Nt,Et,ae,xe),Et}catch(ae){return this.then(null,ae)}finally(ae){let xe=this.constructor[Symbol.species];(!xe||"function"!=typeof xe)&&(xe=E);const nt=new xe(we);nt[It]=It;const Et=Ee.current;return this[Ue]==Jt?this[ut].push(Et,nt,ae,ae):te(this,Et,nt,ae,ae),nt}}E.resolve=E.resolve,E.reject=E.reject,E.race=E.race,E.all=E.all;const P=fe[kt]=fe.Promise;fe.Promise=E;const m=ft("thenPatched");function B(ce){const ae=ce.prototype,xe=_e(ae,"then");if(xe&&(!1===xe.writable||!xe.configurable))return;const nt=ae.then;ae[Dt]=nt,ce.prototype.then=function(Et,Nt){return new E((pt,Qt)=>{nt.call(this,pt,Qt)}).then(Et,Nt)},ce[m]=!0}return Ae.patchThen=B,P&&(B(P),$e(fe,"fetch",ce=>function ue(ce){return function(ae,xe){let nt=ce.apply(ae,xe);if(nt instanceof E)return nt;let Et=nt.constructor;return Et[m]||B(Et),nt}}(ce))),Promise[Ee.__symbol__("uncaughtPromiseErrors")]=ct,E}),Zone.__load_patch("toString",fe=>{const Ee=Function.prototype.toString,Ae=re("OriginalDelegate"),_e=re("Promise"),Re=re("Error"),tt=function(){if("function"==typeof this){const kt=this[Ae];if(kt)return"function"==typeof kt?Ee.call(kt):Object.prototype.toString.call(kt);if(this===Promise){const Dt=fe[_e];if(Dt)return Ee.call(Dt)}if(this===Error){const Dt=fe[Re];if(Dt)return Ee.call(Dt)}}return Ee.call(this)};tt[Ae]=Ee,Function.prototype.toString=tt;const ft=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":ft.call(this)}});let bn=!1;if(typeof window<"u")try{const fe=Object.defineProperty({},"passive",{get:function(){bn=!0}});window.addEventListener("test",fe,fe),window.removeEventListener("test",fe,fe)}catch{bn=!1}const Yn={useG:!0},Ht={},Yt={},An=new RegExp("^"+L+"(\\w+)(true|false)$"),cn=re("propagationStopped");function Ln(fe,Ee){const Ae=(Ee?Ee(fe):fe)+H,_e=(Ee?Ee(fe):fe)+x,Re=L+Ae,tt=L+_e;Ht[fe]={},Ht[fe][H]=Re,Ht[fe][x]=tt}function wn(fe,Ee,Ae){const _e=Ae&&Ae.add||j,Re=Ae&&Ae.rm||A,tt=Ae&&Ae.listeners||"eventListeners",ft=Ae&&Ae.rmAll||"removeAllListeners",ct=re(_e),St="."+_e+":",Wt=function(Me,Ue,ut){if(Me.isRemoved)return;const It=Me.callback;"object"==typeof It&&It.handleEvent&&(Me.callback=an=>It.handleEvent(an),Me.originalDelegate=It),Me.invoke(Me,Ue,[ut]);const Ct=Me.options;Ct&&"object"==typeof Ct&&Ct.once&&Ue[Re].call(Ue,ut.type,Me.originalDelegate?Me.originalDelegate:Me.callback,Ct)},De=function(Me){if(!(Me=Me||fe.event))return;const Ue=this||Me.target||fe,ut=Ue[Ht[Me.type][H]];if(ut)if(1===ut.length)Wt(ut[0],Ue,Me);else{const It=ut.slice();for(let Ct=0;Ct<It.length&&(!Me||!0!==Me[cn]);Ct++)Wt(It[Ct],Ue,Me)}},se=function(Me){if(!(Me=Me||fe.event))return;const Ue=this||Me.target||fe,ut=Ue[Ht[Me.type][x]];if(ut)if(1===ut.length)Wt(ut[0],Ue,Me);else{const It=ut.slice();for(let Ct=0;Ct<It.length&&(!Me||!0!==Me[cn]);Ct++)Wt(It[Ct],Ue,Me)}};function K(Me,Ue){if(!Me)return!1;let ut=!0;Ue&&void 0!==Ue.useG&&(ut=Ue.useG);const It=Ue&&Ue.vh;let Ct=!0;Ue&&void 0!==Ue.chkDup&&(Ct=Ue.chkDup);let an=!1;Ue&&void 0!==Ue.rt&&(an=Ue.rt);let Pt=Me;for(;Pt&&!Pt.hasOwnProperty(_e);)Pt=r(Pt);if(!Pt&&Me[_e]&&(Pt=Me),!Pt||Pt[ct])return!1;const Jt=Ue&&Ue.eventNameToString,Tt={},Ke=Pt[ct]=Pt[_e],it=Pt[re(Re)]=Pt[Re],ht=Pt[re(tt)]=Pt[tt],yt=Pt[re(ft)]=Pt[ft];let bt;function hn(ae,xe){return!bn&&"object"==typeof ae&&ae?!!ae.capture:bn&&xe?"boolean"==typeof ae?{capture:ae,passive:!0}:ae?"object"==typeof ae&&!1!==ae.passive?Object.assign(Object.assign({},ae),{passive:!0}):ae:{passive:!0}:ae}Ue&&Ue.prepend&&(bt=Pt[re(Ue.prepend)]=Pt[Ue.prepend]);const we=ut?function(ae){if(!Tt.isExisting)return Ke.call(Tt.target,Tt.eventName,Tt.capture?se:De,Tt.options)}:function(ae){return Ke.call(Tt.target,Tt.eventName,ae.invoke,Tt.options)},E=ut?function(ae){if(!ae.isRemoved){const xe=Ht[ae.eventName];let nt;xe&&(nt=xe[ae.capture?x:H]);const Et=nt&&ae.target[nt];if(Et)for(let Nt=0;Nt<Et.length;Nt++)if(Et[Nt]===ae){Et.splice(Nt,1),ae.isRemoved=!0,0===Et.length&&(ae.allRemoved=!0,ae.target[nt]=null);break}}if(ae.allRemoved)return it.call(ae.target,ae.eventName,ae.capture?se:De,ae.options)}:function(ae){return it.call(ae.target,ae.eventName,ae.invoke,ae.options)},m=Ue&&Ue.diff?Ue.diff:function(ae,xe){const nt=typeof xe;return"function"===nt&&ae.callback===xe||"object"===nt&&ae.originalDelegate===xe},B=Zone[re("UNPATCHED_EVENTS")],ue=fe[re("PASSIVE_EVENTS")],ce=function(ae,xe,nt,Et,Nt=!1,vt=!1){return function(){const pt=this||fe;let Qt=arguments[0];Ue&&Ue.transferEventName&&(Qt=Ue.transferEventName(Qt));let ln=arguments[1];if(!ln)return ae.apply(this,arguments);if(Je&&"uncaughtException"===Qt)return ae.apply(this,arguments);let on=!1;if("function"!=typeof ln){if(!ln.handleEvent)return ae.apply(this,arguments);on=!0}if(It&&!It(ae,ln,pt,arguments))return;const Gn=bn&&!!ue&&-1!==ue.indexOf(Qt),Hn=hn(arguments[2],Gn);if(B)for(let nr=0;nr<B.length;nr++)if(Qt===B[nr])return Gn?ae.call(pt,Qt,ln,Hn):ae.apply(this,arguments);const qn=!!Hn&&("boolean"==typeof Hn||Hn.capture),Or=!(!Hn||"object"!=typeof Hn)&&Hn.once,qr=Zone.current;let Pn=Ht[Qt];Pn||(Ln(Qt,Jt),Pn=Ht[Qt]);const Qn=Pn[qn?x:H];let Hr,br=pt[Qn],fi=!1;if(br){if(fi=!0,Ct)for(let nr=0;nr<br.length;nr++)if(m(br[nr],ln))return}else br=pt[Qn]=[];const pr=pt.constructor.name,pi=Yt[pr];pi&&(Hr=pi[Qt]),Hr||(Hr=pr+xe+(Jt?Jt(Qt):Qt)),Tt.options=Hn,Or&&(Tt.options.once=!1),Tt.target=pt,Tt.capture=qn,Tt.eventName=Qt,Tt.isExisting=fi;const wr=ut?Yn:void 0;wr&&(wr.taskData=Tt);const gr=qr.scheduleEventTask(Hr,ln,wr,nt,Et);return Tt.target=null,wr&&(wr.taskData=null),Or&&(Hn.once=!0),!bn&&"boolean"==typeof gr.options||(gr.options=Hn),gr.target=pt,gr.capture=qn,gr.eventName=Qt,on&&(gr.originalDelegate=ln),vt?br.unshift(gr):br.push(gr),Nt?pt:void 0}};return Pt[_e]=ce(Ke,St,we,E,an),bt&&(Pt.prependListener=ce(bt,".prependListener:",function(ae){return bt.call(Tt.target,Tt.eventName,ae.invoke,Tt.options)},E,an,!0)),Pt[Re]=function(){const ae=this||fe;let xe=arguments[0];Ue&&Ue.transferEventName&&(xe=Ue.transferEventName(xe));const nt=arguments[2],Et=!!nt&&("boolean"==typeof nt||nt.capture),Nt=arguments[1];if(!Nt)return it.apply(this,arguments);if(It&&!It(it,Nt,ae,arguments))return;const vt=Ht[xe];let pt;vt&&(pt=vt[Et?x:H]);const Qt=pt&&ae[pt];if(Qt)for(let ln=0;ln<Qt.length;ln++){const on=Qt[ln];if(m(on,Nt))return Qt.splice(ln,1),on.isRemoved=!0,0===Qt.length&&(on.allRemoved=!0,ae[pt]=null,"string"==typeof xe)&&(ae[L+"ON_PROPERTY"+xe]=null),on.zone.cancelTask(on),an?ae:void 0}return it.apply(this,arguments)},Pt[tt]=function(){const ae=this||fe;let xe=arguments[0];Ue&&Ue.transferEventName&&(xe=Ue.transferEventName(xe));const nt=[],Et=ur(ae,Jt?Jt(xe):xe);for(let Nt=0;Nt<Et.length;Nt++){const vt=Et[Nt];nt.push(vt.originalDelegate?vt.originalDelegate:vt.callback)}return nt},Pt[ft]=function(){const ae=this||fe;let xe=arguments[0];if(xe){Ue&&Ue.transferEventName&&(xe=Ue.transferEventName(xe));const nt=Ht[xe];if(nt){const vt=ae[nt[H]],pt=ae[nt[x]];if(vt){const Qt=vt.slice();for(let ln=0;ln<Qt.length;ln++){const on=Qt[ln];this[Re].call(this,xe,on.originalDelegate?on.originalDelegate:on.callback,on.options)}}if(pt){const Qt=pt.slice();for(let ln=0;ln<Qt.length;ln++){const on=Qt[ln];this[Re].call(this,xe,on.originalDelegate?on.originalDelegate:on.callback,on.options)}}}}else{const nt=Object.keys(ae);for(let Et=0;Et<nt.length;Et++){const vt=An.exec(nt[Et]);let pt=vt&&vt[1];pt&&"removeListener"!==pt&&this[ft].call(this,pt)}this[ft].call(this,"removeListener")}if(an)return this},Vt(Pt[_e],Ke),Vt(Pt[Re],it),yt&&Vt(Pt[ft],yt),ht&&Vt(Pt[tt],ht),!0}let Pe=[];for(let Me=0;Me<Ee.length;Me++)Pe[Me]=K(Ee[Me],Ae);return Pe}function ur(fe,Ee){if(!Ee){const tt=[];for(let ft in fe){const ct=An.exec(ft);let St=ct&&ct[1];if(St&&(!Ee||St===Ee)){const kt=fe[ft];if(kt)for(let Dt=0;Dt<kt.length;Dt++)tt.push(kt[Dt])}}return tt}let Ae=Ht[Ee];Ae||(Ln(Ee),Ae=Ht[Ee]);const _e=fe[Ae[H]],Re=fe[Ae[x]];return _e?Re?_e.concat(Re):_e.slice():Re?Re.slice():[]}function En(fe,Ee){const Ae=fe.Event;Ae&&Ae.prototype&&Ee.patchMethod(Ae.prototype,"stopImmediatePropagation",_e=>function(Re,tt){Re[cn]=!0,_e&&_e.apply(Re,tt)})}function Vn(fe,Ee,Ae,_e,Re){const tt=Zone.__symbol__(_e);if(Ee[tt])return;const ft=Ee[tt]=Ee[_e];Ee[_e]=function(ct,St,kt){return St&&St.prototype&&Re.forEach(function(Dt){const Wt=`${Ae}.${_e}::`+Dt,De=St.prototype;if(De.hasOwnProperty(Dt)){const se=fe.ObjectGetOwnPropertyDescriptor(De,Dt);se&&se.value?(se.value=fe.wrapWithCurrentZone(se.value,Wt),fe._redefineProperty(St.prototype,Dt,se)):De[Dt]&&(De[Dt]=fe.wrapWithCurrentZone(De[Dt],Wt))}else De[Dt]&&(De[Dt]=fe.wrapWithCurrentZone(De[Dt],Wt))}),ft.call(Ee,ct,St,kt)},fe.attachOriginToPatched(Ee[_e],ft)}const rr=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],zn=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],ze=["load"],me=["blur","error","focus","load","resize","scroll","messageerror"],he=["bounce","finish","start"],Qe=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],je=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],qe=["close","error","open","message"],ot=["error","message"],dn=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],rr,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function Ft(fe,Ee,Ae){if(!Ae||0===Ae.length)return Ee;const _e=Ae.filter(tt=>tt.target===fe);if(!_e||0===_e.length)return Ee;const Re=_e[0].ignoreProperties;return Ee.filter(tt=>-1===Re.indexOf(tt))}function At(fe,Ee,Ae,_e){fe&&He(fe,Ft(fe,Ee,Ae),_e)}Zone.__load_patch("util",(fe,Ee,Ae)=>{Ae.patchOnProperties=He,Ae.patchMethod=$e,Ae.bindArguments=Ye,Ae.patchMacroTask=yn;const _e=Ee.__symbol__("BLACK_LISTED_EVENTS"),Re=Ee.__symbol__("UNPATCHED_EVENTS");fe[Re]&&(fe[_e]=fe[Re]),fe[_e]&&(Ee[_e]=Ee[Re]=fe[_e]),Ae.patchEventPrototype=En,Ae.patchEventTarget=wn,Ae.isIEOrEdge=Fn,Ae.ObjectDefineProperty=p,Ae.ObjectGetOwnPropertyDescriptor=F,Ae.ObjectCreate=_,Ae.ArraySlice=V,Ae.patchClass=Ze,Ae.wrapWithCurrentZone=G,Ae.filterProperties=Ft,Ae.attachOriginToPatched=Vt,Ae._redefineProperty=Object.defineProperty,Ae.patchCallbacks=Vn,Ae.getGlobalObjects=()=>({globalSources:Yt,zoneSymbolEventNames:Ht,eventNames:dn,isBrowser:Gt,isMix:_t,isNode:Je,TRUE_STR:x,FALSE_STR:H,ZONE_SYMBOL_PREFIX:L,ADD_EVENT_LISTENER_STR:j,REMOVE_EVENT_LISTENER_STR:A})});const vn=re("zoneTask");function Dn(fe,Ee,Ae,_e){let Re=null,tt=null;Ae+=_e;const ft={};function ct(kt){const Dt=kt.data;return Dt.args[0]=function(){return kt.invoke.apply(this,arguments)},Dt.handleId=Re.apply(fe,Dt.args),kt}function St(kt){return tt.call(fe,kt.data.handleId)}Re=$e(fe,Ee+=_e,kt=>function(Dt,Wt){if("function"==typeof Wt[0]){const De={isPeriodic:"Interval"===_e,delay:"Timeout"===_e||"Interval"===_e?Wt[1]||0:void 0,args:Wt},se=Wt[0];Wt[0]=function(){try{return se.apply(this,arguments)}finally{De.isPeriodic||("number"==typeof De.handleId?delete ft[De.handleId]:De.handleId&&(De.handleId[vn]=null))}};const K=ne(Ee,Wt[0],De,ct,St);if(!K)return K;const Pe=K.data.handleId;return"number"==typeof Pe?ft[Pe]=K:Pe&&(Pe[vn]=K),Pe&&Pe.ref&&Pe.unref&&"function"==typeof Pe.ref&&"function"==typeof Pe.unref&&(K.ref=Pe.ref.bind(Pe),K.unref=Pe.unref.bind(Pe)),"number"==typeof Pe||Pe?Pe:K}return kt.apply(fe,Wt)}),tt=$e(fe,Ae,kt=>function(Dt,Wt){const De=Wt[0];let se;"number"==typeof De?se=ft[De]:(se=De&&De[vn],se||(se=De)),se&&"string"==typeof se.type?"notScheduled"!==se.state&&(se.cancelFn&&se.data.isPeriodic||0===se.runCount)&&("number"==typeof De?delete ft[De]:De&&(De[vn]=null),se.zone.cancelTask(se)):kt.apply(fe,Wt)})}Zone.__load_patch("legacy",fe=>{const Ee=fe[Zone.__symbol__("legacyPatch")];Ee&&Ee()}),Zone.__load_patch("queueMicrotask",(fe,Ee,Ae)=>{Ae.patchMethod(fe,"queueMicrotask",_e=>function(Re,tt){Ee.current.scheduleMicroTask("queueMicrotask",tt[0])})}),Zone.__load_patch("timers",fe=>{const Ae="clear";Dn(fe,"set",Ae,"Timeout"),Dn(fe,"set",Ae,"Interval"),Dn(fe,"set",Ae,"Immediate")}),Zone.__load_patch("requestAnimationFrame",fe=>{Dn(fe,"request","cancel","AnimationFrame"),Dn(fe,"mozRequest","mozCancel","AnimationFrame"),Dn(fe,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(fe,Ee)=>{const Ae=["alert","prompt","confirm"];for(let _e=0;_e<Ae.length;_e++)$e(fe,Ae[_e],(tt,ft,ct)=>function(St,kt){return Ee.current.run(tt,fe,kt,ct)})}),Zone.__load_patch("EventTarget",(fe,Ee,Ae)=>{(function sn(fe,Ee){Ee.patchEventPrototype(fe,Ee)})(fe,Ae),function $t(fe,Ee){if(Zone[Ee.symbol("patchEventTarget")])return;const{eventNames:Ae,zoneSymbolEventNames:_e,TRUE_STR:Re,FALSE_STR:tt,ZONE_SYMBOL_PREFIX:ft}=Ee.getGlobalObjects();for(let St=0;St<Ae.length;St++){const kt=Ae[St],De=ft+(kt+tt),se=ft+(kt+Re);_e[kt]={},_e[kt][tt]=De,_e[kt][Re]=se}const ct=fe.EventTarget;ct&&ct.prototype&&Ee.patchEventTarget(fe,[ct&&ct.prototype])}(fe,Ae);const _e=fe.XMLHttpRequestEventTarget;_e&&_e.prototype&&Ae.patchEventTarget(fe,[_e.prototype])}),Zone.__load_patch("MutationObserver",(fe,Ee,Ae)=>{Ze("MutationObserver"),Ze("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(fe,Ee,Ae)=>{Ze("IntersectionObserver")}),Zone.__load_patch("FileReader",(fe,Ee,Ae)=>{Ze("FileReader")}),Zone.__load_patch("on_property",(fe,Ee,Ae)=>{!function Xn(fe,Ee){if(Je&&!_t||Zone[fe.symbol("patchEvents")])return;const Ae=typeof WebSocket<"u",_e=Ee.__Zone_ignore_on_properties;if(Gt){const ft=window,ct=function un(){try{const fe=Se.navigator.userAgent;if(-1!==fe.indexOf("MSIE ")||-1!==fe.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:ft,ignoreProperties:["error"]}]:[];At(ft,dn.concat(["messageerror"]),_e&&_e.concat(ct),r(ft)),At(Document.prototype,dn,_e),typeof ft.SVGElement<"u"&&At(ft.SVGElement.prototype,dn,_e),At(Element.prototype,dn,_e),At(HTMLElement.prototype,dn,_e),At(HTMLMediaElement.prototype,zn,_e),At(HTMLFrameSetElement.prototype,rr.concat(me),_e),At(HTMLBodyElement.prototype,rr.concat(me),_e),At(HTMLFrameElement.prototype,ze,_e),At(HTMLIFrameElement.prototype,ze,_e);const St=ft.HTMLMarqueeElement;St&&At(St.prototype,he,_e);const kt=ft.Worker;kt&&At(kt.prototype,ot,_e)}const Re=Ee.XMLHttpRequest;Re&&At(Re.prototype,Qe,_e);const tt=Ee.XMLHttpRequestEventTarget;tt&&At(tt&&tt.prototype,Qe,_e),typeof IDBIndex<"u"&&(At(IDBIndex.prototype,je,_e),At(IDBRequest.prototype,je,_e),At(IDBOpenDBRequest.prototype,je,_e),At(IDBDatabase.prototype,je,_e),At(IDBTransaction.prototype,je,_e),At(IDBCursor.prototype,je,_e)),Ae&&At(WebSocket.prototype,qe,_e)}(Ae,fe)}),Zone.__load_patch("customElements",(fe,Ee,Ae)=>{!function Rt(fe,Ee){const{isBrowser:Ae,isMix:_e}=Ee.getGlobalObjects();(Ae||_e)&&fe.customElements&&"customElements"in fe&&Ee.patchCallbacks(Ee,fe.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(fe,Ae)}),Zone.__load_patch("XHR",(fe,Ee)=>{!function St(kt){const Dt=kt.XMLHttpRequest;if(!Dt)return;const Wt=Dt.prototype;let se=Wt[I],K=Wt[R];if(!se){const it=kt.XMLHttpRequestEventTarget;if(it){const ht=it.prototype;se=ht[I],K=ht[R]}}const Pe="readystatechange",Me="scheduled";function Ue(it){const ht=it.data,yt=ht.target;yt[tt]=!1,yt[ct]=!1;const bt=yt[Re];se||(se=yt[I],K=yt[R]),bt&&K.call(yt,Pe,bt);const hn=yt[Re]=()=>{if(yt.readyState===yt.DONE)if(!ht.aborted&&yt[tt]&&it.state===Me){const q=yt[Ee.__symbol__("loadfalse")];if(0!==yt.status&&q&&q.length>0){const Y=it.invoke;it.invoke=function(){const te=yt[Ee.__symbol__("loadfalse")];for(let ye=0;ye<te.length;ye++)te[ye]===it&&te.splice(ye,1);!ht.aborted&&it.state===Me&&Y.call(it)},q.push(it)}else it.invoke()}else!ht.aborted&&!1===yt[tt]&&(yt[ct]=!0)};return se.call(yt,Pe,hn),yt[Ae]||(yt[Ae]=it),Tt.apply(yt,ht.args),yt[tt]=!0,it}function ut(){}function It(it){const ht=it.data;return ht.aborted=!0,Ke.apply(ht.target,ht.args)}const Ct=$e(Wt,"open",()=>function(it,ht){return it[_e]=0==ht[2],it[ft]=ht[1],Ct.apply(it,ht)}),Pt=re("fetchTaskAborting"),Jt=re("fetchTaskScheduling"),Tt=$e(Wt,"send",()=>function(it,ht){if(!0===Ee.current[Jt]||it[_e])return Tt.apply(it,ht);{const yt={target:it,url:it[ft],isPeriodic:!1,args:ht,aborted:!1},bt=ne("XMLHttpRequest.send",ut,yt,Ue,It);it&&!0===it[ct]&&!yt.aborted&&bt.state===Me&&bt.invoke()}}),Ke=$e(Wt,"abort",()=>function(it,ht){const yt=function De(it){return it[Ae]}(it);if(yt&&"string"==typeof yt.type){if(null==yt.cancelFn||yt.data&&yt.data.aborted)return;yt.zone.cancelTask(yt)}else if(!0===Ee.current[Pt])return Ke.apply(it,ht)})}(fe);const Ae=re("xhrTask"),_e=re("xhrSync"),Re=re("xhrListener"),tt=re("xhrScheduled"),ft=re("xhrURL"),ct=re("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",fe=>{fe.navigator&&fe.navigator.geolocation&&function Be(fe,Ee){const Ae=fe.constructor.name;for(let _e=0;_e<Ee.length;_e++){const Re=Ee[_e],tt=fe[Re];if(tt){if(!st(F(fe,Re)))continue;fe[Re]=(ct=>{const St=function(){return ct.apply(this,Ye(arguments,Ae+"."+Re))};return Vt(St,ct),St})(tt)}}}(fe.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(fe,Ee)=>{function Ae(_e){return function(Re){ur(fe,_e).forEach(ft=>{const ct=fe.PromiseRejectionEvent;if(ct){const St=new ct(_e,{promise:Re.promise,reason:Re.rejection});ft.invoke(St)}})}}fe.PromiseRejectionEvent&&(Ee[re("unhandledPromiseRejectionHandler")]=Ae("unhandledrejection"),Ee[re("rejectionHandledHandler")]=Ae("rejectionhandled"))})},7340:(J,F,p)=>{"use strict";p.d(F,{LC:()=>_,SB:()=>H,X$:()=>j,ZE:()=>Ye,ZN:()=>at,_j:()=>r,eR:()=>G,jt:()=>A,k1:()=>Be,l3:()=>V,oB:()=>x,vP:()=>R});class r{}class _{}const V="*";function j(st,be){return{type:7,name:st,definitions:be,options:{}}}function A(st,be=null){return{type:4,styles:be,timings:st}}function R(st,be=null){return{type:2,steps:st,options:be}}function x(st){return{type:6,styles:st,offset:null}}function H(st,be,Je){return{type:0,name:st,styles:be,options:Je}}function G(st,be,Je=null){return{type:1,expr:st,animation:be,options:Je}}function ve(st){Promise.resolve(null).then(st)}class at{constructor(be=0,Je=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=be+Je}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(be=>be()),this._onDoneFns=[])}onStart(be){this._onStartFns.push(be)}onDone(be){this._onDoneFns.push(be)}onDestroy(be){this._onDestroyFns.push(be)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ve(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(be=>be()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(be=>be()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(be){this._position=this.totalTime?be*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(be){const Je="start"==be?this._onStartFns:this._onDoneFns;Je.forEach(Gt=>Gt()),Je.length=0}}class Ye{constructor(be){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=be;let Je=0,Gt=0,_t=0;const Fe=this.players.length;0==Fe?ve(()=>this._onFinish()):this.players.forEach(le=>{le.onDone(()=>{++Je==Fe&&this._onFinish()}),le.onDestroy(()=>{++Gt==Fe&&this._onDestroy()}),le.onStart(()=>{++_t==Fe&&this._onStart()})}),this.totalTime=this.players.reduce((le,Te)=>Math.max(le,Te.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(be=>be()),this._onDoneFns=[])}init(){this.players.forEach(be=>be.init())}onStart(be){this._onStartFns.push(be)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(be=>be()),this._onStartFns=[])}onDone(be){this._onDoneFns.push(be)}onDestroy(be){this._onDestroyFns.push(be)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(be=>be.play())}pause(){this.players.forEach(be=>be.pause())}restart(){this.players.forEach(be=>be.restart())}finish(){this._onFinish(),this.players.forEach(be=>be.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(be=>be.destroy()),this._onDestroyFns.forEach(be=>be()),this._onDestroyFns=[])}reset(){this.players.forEach(be=>be.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(be){const Je=be*this.totalTime;this.players.forEach(Gt=>{const _t=Gt.totalTime?Math.min(1,Je/Gt.totalTime):1;Gt.setPosition(_t)})}getPosition(){const be=this.players.reduce((Je,Gt)=>null===Je||Gt.totalTime>Je.totalTime?Gt:Je,null);return null!=be?be.getPosition():0}beforeDestroy(){this.players.forEach(be=>{be.beforeDestroy&&be.beforeDestroy()})}triggerCallback(be){const Je="start"==be?this._onStartFns:this._onDoneFns;Je.forEach(Gt=>Gt()),Je.length=0}}const Be="!"},6895:(J,F,p)=>{"use strict";p.d(F,{Do:()=>st,ED:()=>ln,EM:()=>mr,HT:()=>A,JF:()=>Ji,K0:()=>R,Mx:()=>P,NF:()=>kr,O5:()=>nt,PC:()=>qn,RF:()=>pt,S$:()=>ve,V_:()=>L,Ye:()=>be,b0:()=>Be,bD:()=>Jr,ez:()=>Yi,lw:()=>x,mk:()=>m,mr:()=>Ye,n9:()=>Qt,q:()=>V,sg:()=>ce,tP:()=>Or,w_:()=>I});var r=p(5062);let _=null;function V(){return _}function A(D){_||(_=D)}class I{}const R=new r.OlP("DocumentToken");let x=(()=>{class D{historyGo(T){throw new Error("Not implemented")}}return D.\u0275fac=function(T){return new(T||D)},D.\u0275prov=r.Yz7({token:D,factory:function(){return function H(){return(0,r.LFG)(G)}()},providedIn:"platform"}),D})();const L=new r.OlP("Location Initialized");let G=(()=>{class D extends x{constructor(T){super(),this._doc=T,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(T){const Q=V().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("popstate",T,!1),()=>Q.removeEventListener("popstate",T)}onHashChange(T){const Q=V().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("hashchange",T,!1),()=>Q.removeEventListener("hashchange",T)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(T){this.location.pathname=T}pushState(T,Q,de){ne()?this._history.pushState(T,Q,de):this.location.hash=de}replaceState(T,Q,de){ne()?this._history.replaceState(T,Q,de):this.location.hash=de}forward(){this._history.forward()}back(){this._history.back()}historyGo(T=0){this._history.go(T)}getState(){return this._history.state}}return D.\u0275fac=function(T){return new(T||D)(r.LFG(R))},D.\u0275prov=r.Yz7({token:D,factory:function(){return function re(){return new G((0,r.LFG)(R))}()},providedIn:"platform"}),D})();function ne(){return!!window.history.pushState}function Oe(D,z){if(0==D.length)return z;if(0==z.length)return D;let T=0;return D.endsWith("/")&&T++,z.startsWith("/")&&T++,2==T?D+z.substring(1):1==T?D+z:D+"/"+z}function Se(D){const z=D.match(/#|\?|$/),T=z&&z.index||D.length;return D.slice(0,T-("/"===D[T-1]?1:0))+D.slice(T)}function Ne(D){return D&&"?"!==D[0]?"?"+D:D}let ve=(()=>{class D{historyGo(T){throw new Error("Not implemented")}}return D.\u0275fac=function(T){return new(T||D)},D.\u0275prov=r.Yz7({token:D,factory:function(){return function at(D){const z=(0,r.LFG)(R).location;return new Be((0,r.LFG)(x),z&&z.origin||"")}()},providedIn:"root"}),D})();const Ye=new r.OlP("appBaseHref");let Be=(()=>{class D extends ve{constructor(T,Q){if(super(),this._platformLocation=T,this._removeListenerFns=[],null==Q&&(Q=this._platformLocation.getBaseHrefFromDOM()),null==Q)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Q}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}prepareExternalUrl(T){return Oe(this._baseHref,T)}path(T=!1){const Q=this._platformLocation.pathname+Ne(this._platformLocation.search),de=this._platformLocation.hash;return de&&T?`${Q}${de}`:Q}pushState(T,Q,de,Ve){const rt=this.prepareExternalUrl(de+Ne(Ve));this._platformLocation.pushState(T,Q,rt)}replaceState(T,Q,de,Ve){const rt=this.prepareExternalUrl(de+Ne(Ve));this._platformLocation.replaceState(T,Q,rt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(T=0){this._platformLocation.historyGo?.(T)}}return D.\u0275fac=function(T){return new(T||D)(r.LFG(x),r.LFG(Ye,8))},D.\u0275prov=r.Yz7({token:D,factory:D.\u0275fac}),D})(),st=(()=>{class D extends ve{constructor(T,Q){super(),this._platformLocation=T,this._baseHref="",this._removeListenerFns=[],null!=Q&&(this._baseHref=Q)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}path(T=!1){let Q=this._platformLocation.hash;return null==Q&&(Q="#"),Q.length>0?Q.substring(1):Q}prepareExternalUrl(T){const Q=Oe(this._baseHref,T);return Q.length>0?"#"+Q:Q}pushState(T,Q,de,Ve){let rt=this.prepareExternalUrl(de+Ne(Ve));0==rt.length&&(rt=this._platformLocation.pathname),this._platformLocation.pushState(T,Q,rt)}replaceState(T,Q,de,Ve){let rt=this.prepareExternalUrl(de+Ne(Ve));0==rt.length&&(rt=this._platformLocation.pathname),this._platformLocation.replaceState(T,Q,rt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(T=0){this._platformLocation.historyGo?.(T)}}return D.\u0275fac=function(T){return new(T||D)(r.LFG(x),r.LFG(Ye,8))},D.\u0275prov=r.Yz7({token:D,factory:D.\u0275fac}),D})(),be=(()=>{class D{constructor(T,Q){this._subject=new r.vpe,this._urlChangeListeners=[],this._platformStrategy=T;const de=this._platformStrategy.getBaseHref();this._platformLocation=Q,this._baseHref=Se(_t(de)),this._platformStrategy.onPopState(Ve=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ve.state,type:Ve.type})})}path(T=!1){return this.normalize(this._platformStrategy.path(T))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(T,Q=""){return this.path()==this.normalize(T+Ne(Q))}normalize(T){return D.stripTrailingSlash(function Gt(D,z){return D&&z.startsWith(D)?z.substring(D.length):z}(this._baseHref,_t(T)))}prepareExternalUrl(T){return T&&"/"!==T[0]&&(T="/"+T),this._platformStrategy.prepareExternalUrl(T)}go(T,Q="",de=null){this._platformStrategy.pushState(de,"",T,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+Ne(Q)),de)}replaceState(T,Q="",de=null){this._platformStrategy.replaceState(de,"",T,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+Ne(Q)),de)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(T=0){this._platformStrategy.historyGo?.(T)}onUrlChange(T){this._urlChangeListeners.push(T),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Q=>{this._notifyUrlChangeListeners(Q.url,Q.state)}))}_notifyUrlChangeListeners(T="",Q){this._urlChangeListeners.forEach(de=>de(T,Q))}subscribe(T,Q,de){return this._subject.subscribe({next:T,error:Q,complete:de})}}return D.normalizeQueryParams=Ne,D.joinWithSlash=Oe,D.stripTrailingSlash=Se,D.\u0275fac=function(T){return new(T||D)(r.LFG(ve),r.LFG(x))},D.\u0275prov=r.Yz7({token:D,factory:function(){return function Je(){return new be((0,r.LFG)(ve),(0,r.LFG)(x))}()},providedIn:"root"}),D})();function _t(D){return D.replace(/\/index.html$/,"")}function P(D,z){z=encodeURIComponent(z);for(const T of D.split(";")){const Q=T.indexOf("="),[de,Ve]=-1==Q?[T,""]:[T.slice(0,Q),T.slice(Q+1)];if(de.trim()===z)return decodeURIComponent(Ve)}return null}let m=(()=>{class D{constructor(T,Q,de,Ve){this._iterableDiffers=T,this._keyValueDiffers=Q,this._ngEl=de,this._renderer=Ve,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(T){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof T?T.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(T){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof T?T.split(/\s+/):T,this._rawClass&&((0,r.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const T=this._iterableDiffer.diff(this._rawClass);T&&this._applyIterableChanges(T)}else if(this._keyValueDiffer){const T=this._keyValueDiffer.diff(this._rawClass);T&&this._applyKeyValueChanges(T)}}_applyKeyValueChanges(T){T.forEachAddedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),T.forEachChangedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),T.forEachRemovedItem(Q=>{Q.previousValue&&this._toggleClass(Q.key,!1)})}_applyIterableChanges(T){T.forEachAddedItem(Q=>{if("string"!=typeof Q.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,r.AaK)(Q.item)}`);this._toggleClass(Q.item,!0)}),T.forEachRemovedItem(Q=>this._toggleClass(Q.item,!1))}_applyClasses(T){T&&(Array.isArray(T)||T instanceof Set?T.forEach(Q=>this._toggleClass(Q,!0)):Object.keys(T).forEach(Q=>this._toggleClass(Q,!!T[Q])))}_removeClasses(T){T&&(Array.isArray(T)||T instanceof Set?T.forEach(Q=>this._toggleClass(Q,!1)):Object.keys(T).forEach(Q=>this._toggleClass(Q,!1)))}_toggleClass(T,Q){(T=T.trim())&&T.split(/\s+/g).forEach(de=>{Q?this._renderer.addClass(this._ngEl.nativeElement,de):this._renderer.removeClass(this._ngEl.nativeElement,de)})}}return D.\u0275fac=function(T){return new(T||D)(r.Y36(r.ZZ4),r.Y36(r.aQg),r.Y36(r.SBq),r.Y36(r.Qsj))},D.\u0275dir=r.lG2({type:D,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),D})();class ue{constructor(z,T,Q,de){this.$implicit=z,this.ngForOf=T,this.index=Q,this.count=de}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ce=(()=>{class D{constructor(T,Q,de){this._viewContainer=T,this._template=Q,this._differs=de,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(T){this._ngForOf=T,this._ngForOfDirty=!0}set ngForTrackBy(T){this._trackByFn=T}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(T){T&&(this._template=T)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const T=this._ngForOf;!this._differ&&T&&(this._differ=this._differs.find(T).create(this.ngForTrackBy))}if(this._differ){const T=this._differ.diff(this._ngForOf);T&&this._applyChanges(T)}}_applyChanges(T){const Q=this._viewContainer;T.forEachOperation((de,Ve,rt)=>{if(null==de.previousIndex)Q.createEmbeddedView(this._template,new ue(de.item,this._ngForOf,-1,-1),null===rt?void 0:rt);else if(null==rt)Q.remove(null===Ve?void 0:Ve);else if(null!==Ve){const gt=Q.get(Ve);Q.move(gt,rt),ae(gt,de)}});for(let de=0,Ve=Q.length;de<Ve;de++){const gt=Q.get(de).context;gt.index=de,gt.count=Ve,gt.ngForOf=this._ngForOf}T.forEachIdentityChange(de=>{ae(Q.get(de.currentIndex),de)})}static ngTemplateContextGuard(T,Q){return!0}}return D.\u0275fac=function(T){return new(T||D)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(r.ZZ4))},D.\u0275dir=r.lG2({type:D,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),D})();function ae(D,z){D.context.$implicit=z.item}let nt=(()=>{class D{constructor(T,Q){this._viewContainer=T,this._context=new Et,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Q}set ngIf(T){this._context.$implicit=this._context.ngIf=T,this._updateView()}set ngIfThen(T){Nt("ngIfThen",T),this._thenTemplateRef=T,this._thenViewRef=null,this._updateView()}set ngIfElse(T){Nt("ngIfElse",T),this._elseTemplateRef=T,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(T,Q){return!0}}return D.\u0275fac=function(T){return new(T||D)(r.Y36(r.s_b),r.Y36(r.Rgc))},D.\u0275dir=r.lG2({type:D,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),D})();class Et{constructor(){this.$implicit=null,this.ngIf=null}}function Nt(D,z){if(z&&!z.createEmbeddedView)throw new Error(`${D} must be a TemplateRef, but received '${(0,r.AaK)(z)}'.`)}class vt{constructor(z,T){this._viewContainerRef=z,this._templateRef=T,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(z){z&&!this._created?this.create():!z&&this._created&&this.destroy()}}let pt=(()=>{class D{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(T){this._ngSwitch=T,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(T){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(T)}_matchCase(T){const Q=T==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Q,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Q}_updateDefaultCases(T){if(this._defaultViews&&T!==this._defaultUsed){this._defaultUsed=T;for(let Q=0;Q<this._defaultViews.length;Q++)this._defaultViews[Q].enforceState(T)}}}return D.\u0275fac=function(T){return new(T||D)},D.\u0275dir=r.lG2({type:D,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),D})(),Qt=(()=>{class D{constructor(T,Q,de){this.ngSwitch=de,de._addCase(),this._view=new vt(T,Q)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return D.\u0275fac=function(T){return new(T||D)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(pt,9))},D.\u0275dir=r.lG2({type:D,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),D})(),ln=(()=>{class D{constructor(T,Q,de){de._addDefault(new vt(T,Q))}}return D.\u0275fac=function(T){return new(T||D)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(pt,9))},D.\u0275dir=r.lG2({type:D,selectors:[["","ngSwitchDefault",""]]}),D})(),qn=(()=>{class D{constructor(T,Q,de){this._ngEl=T,this._differs=Q,this._renderer=de,this._ngStyle=null,this._differ=null}set ngStyle(T){this._ngStyle=T,!this._differ&&T&&(this._differ=this._differs.find(T).create())}ngDoCheck(){if(this._differ){const T=this._differ.diff(this._ngStyle);T&&this._applyChanges(T)}}_setStyle(T,Q){const[de,Ve]=T.split(".");null!=(Q=null!=Q&&Ve?`${Q}${Ve}`:Q)?this._renderer.setStyle(this._ngEl.nativeElement,de,Q):this._renderer.removeStyle(this._ngEl.nativeElement,de)}_applyChanges(T){T.forEachRemovedItem(Q=>this._setStyle(Q.key,null)),T.forEachAddedItem(Q=>this._setStyle(Q.key,Q.currentValue)),T.forEachChangedItem(Q=>this._setStyle(Q.key,Q.currentValue))}}return D.\u0275fac=function(T){return new(T||D)(r.Y36(r.SBq),r.Y36(r.aQg),r.Y36(r.Qsj))},D.\u0275dir=r.lG2({type:D,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),D})(),Or=(()=>{class D{constructor(T){this._viewContainerRef=T,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(T){if(T.ngTemplateOutlet){const Q=this._viewContainerRef;this._viewRef&&Q.remove(Q.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?Q.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&T.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return D.\u0275fac=function(T){return new(T||D)(r.Y36(r.s_b))},D.\u0275dir=r.lG2({type:D,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[r.TTD]}),D})(),Yi=(()=>{class D{}return D.\u0275fac=function(T){return new(T||D)},D.\u0275mod=r.oAB({type:D}),D.\u0275inj=r.cJS({}),D})();const Jr="browser";function kr(D){return D===Jr}let mr=(()=>{class D{}return D.\u0275prov=(0,r.Yz7)({token:D,providedIn:"root",factory:()=>new Ni((0,r.LFG)(R),window)}),D})();class Ni{constructor(z,T){this.document=z,this.window=T,this.offset=()=>[0,0]}setOffset(z){this.offset=Array.isArray(z)?()=>z:z}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(z){this.supportsScrolling()&&this.window.scrollTo(z[0],z[1])}scrollToAnchor(z){if(!this.supportsScrolling())return;const T=function Kr(D,z){const T=D.getElementById(z)||D.getElementsByName(z)[0];if(T)return T;if("function"==typeof D.createTreeWalker&&D.body&&(D.body.createShadowRoot||D.body.attachShadow)){const Q=D.createTreeWalker(D.body,NodeFilter.SHOW_ELEMENT);let de=Q.currentNode;for(;de;){const Ve=de.shadowRoot;if(Ve){const rt=Ve.getElementById(z)||Ve.querySelector(`[name="${z}"]`);if(rt)return rt}de=Q.nextNode()}}return null}(this.document,z);T&&(this.scrollToElement(T),T.focus())}setHistoryScrollRestoration(z){if(this.supportScrollRestoration()){const T=this.window.history;T&&T.scrollRestoration&&(T.scrollRestoration=z)}}scrollToElement(z){const T=z.getBoundingClientRect(),Q=T.left+this.window.pageXOffset,de=T.top+this.window.pageYOffset,Ve=this.offset();this.window.scrollTo(Q-Ve[0],de-Ve[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const z=wi(this.window.history)||wi(Object.getPrototypeOf(this.window.history));return!(!z||!z.writable&&!z.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function wi(D){return Object.getOwnPropertyDescriptor(D,"scrollRestoration")}class Ji{}},529:(J,F,p)=>{"use strict";p.d(F,{JF:()=>zt,WM:()=>L,eN:()=>$e});var r=p(6895),_=p(5062),V=p(1086),j=p(2916),A=p(1406),I=p(2198),R=p(4850);class x{}class H{}class L{constructor(me){this.normalizedNames=new Map,this.lazyUpdate=null,me?this.lazyInit="string"==typeof me?()=>{this.headers=new Map,me.split("\n").forEach(he=>{const Qe=he.indexOf(":");if(Qe>0){const je=he.slice(0,Qe),qe=je.toLowerCase(),ot=he.slice(Qe+1).trim();this.maybeSetNormalizedName(je,qe),this.headers.has(qe)?this.headers.get(qe).push(ot):this.headers.set(qe,[ot])}})}:()=>{this.headers=new Map,Object.keys(me).forEach(he=>{let Qe=me[he];const je=he.toLowerCase();"string"==typeof Qe&&(Qe=[Qe]),Qe.length>0&&(this.headers.set(je,Qe),this.maybeSetNormalizedName(he,je))})}:this.headers=new Map}has(me){return this.init(),this.headers.has(me.toLowerCase())}get(me){this.init();const he=this.headers.get(me.toLowerCase());return he&&he.length>0?he[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(me){return this.init(),this.headers.get(me.toLowerCase())||null}append(me,he){return this.clone({name:me,value:he,op:"a"})}set(me,he){return this.clone({name:me,value:he,op:"s"})}delete(me,he){return this.clone({name:me,value:he,op:"d"})}maybeSetNormalizedName(me,he){this.normalizedNames.has(he)||this.normalizedNames.set(he,me)}init(){this.lazyInit&&(this.lazyInit instanceof L?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(me=>this.applyUpdate(me)),this.lazyUpdate=null))}copyFrom(me){me.init(),Array.from(me.headers.keys()).forEach(he=>{this.headers.set(he,me.headers.get(he)),this.normalizedNames.set(he,me.normalizedNames.get(he))})}clone(me){const he=new L;return he.lazyInit=this.lazyInit&&this.lazyInit instanceof L?this.lazyInit:this,he.lazyUpdate=(this.lazyUpdate||[]).concat([me]),he}applyUpdate(me){const he=me.name.toLowerCase();switch(me.op){case"a":case"s":let Qe=me.value;if("string"==typeof Qe&&(Qe=[Qe]),0===Qe.length)return;this.maybeSetNormalizedName(me.name,he);const je=("a"===me.op?this.headers.get(he):void 0)||[];je.push(...Qe),this.headers.set(he,je);break;case"d":const qe=me.value;if(qe){let ot=this.headers.get(he);if(!ot)return;ot=ot.filter(dn=>-1===qe.indexOf(dn)),0===ot.length?(this.headers.delete(he),this.normalizedNames.delete(he)):this.headers.set(he,ot)}else this.headers.delete(he),this.normalizedNames.delete(he)}}forEach(me){this.init(),Array.from(this.normalizedNames.keys()).forEach(he=>me(this.normalizedNames.get(he),this.headers.get(he)))}}class G{encodeKey(me){return Se(me)}encodeValue(me){return Se(me)}decodeKey(me){return decodeURIComponent(me)}decodeValue(me){return decodeURIComponent(me)}}const re=/%(\d[a-f0-9])/gi,Oe={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Se(ze){return encodeURIComponent(ze).replace(re,(me,he)=>Oe[he]??me)}function Ne(ze){return`${ze}`}class ve{constructor(me={}){if(this.updates=null,this.cloneFrom=null,this.encoder=me.encoder||new G,me.fromString){if(me.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ne(ze,me){const he=new Map;return ze.length>0&&ze.replace(/^\?/,"").split("&").forEach(je=>{const qe=je.indexOf("="),[ot,dn]=-1==qe?[me.decodeKey(je),""]:[me.decodeKey(je.slice(0,qe)),me.decodeValue(je.slice(qe+1))],Ft=he.get(ot)||[];Ft.push(dn),he.set(ot,Ft)}),he}(me.fromString,this.encoder)}else me.fromObject?(this.map=new Map,Object.keys(me.fromObject).forEach(he=>{const Qe=me.fromObject[he];this.map.set(he,Array.isArray(Qe)?Qe:[Qe])})):this.map=null}has(me){return this.init(),this.map.has(me)}get(me){this.init();const he=this.map.get(me);return he?he[0]:null}getAll(me){return this.init(),this.map.get(me)||null}keys(){return this.init(),Array.from(this.map.keys())}append(me,he){return this.clone({param:me,value:he,op:"a"})}appendAll(me){const he=[];return Object.keys(me).forEach(Qe=>{const je=me[Qe];Array.isArray(je)?je.forEach(qe=>{he.push({param:Qe,value:qe,op:"a"})}):he.push({param:Qe,value:je,op:"a"})}),this.clone(he)}set(me,he){return this.clone({param:me,value:he,op:"s"})}delete(me,he){return this.clone({param:me,value:he,op:"d"})}toString(){return this.init(),this.keys().map(me=>{const he=this.encoder.encodeKey(me);return this.map.get(me).map(Qe=>he+"="+this.encoder.encodeValue(Qe)).join("&")}).filter(me=>""!==me).join("&")}clone(me){const he=new ve({encoder:this.encoder});return he.cloneFrom=this.cloneFrom||this,he.updates=(this.updates||[]).concat(me),he}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(me=>this.map.set(me,this.cloneFrom.map.get(me))),this.updates.forEach(me=>{switch(me.op){case"a":case"s":const he=("a"===me.op?this.map.get(me.param):void 0)||[];he.push(Ne(me.value)),this.map.set(me.param,he);break;case"d":if(void 0===me.value){this.map.delete(me.param);break}{let Qe=this.map.get(me.param)||[];const je=Qe.indexOf(Ne(me.value));-1!==je&&Qe.splice(je,1),Qe.length>0?this.map.set(me.param,Qe):this.map.delete(me.param)}}}),this.cloneFrom=this.updates=null)}}class Ye{constructor(){this.map=new Map}set(me,he){return this.map.set(me,he),this}get(me){return this.map.has(me)||this.map.set(me,me.defaultValue()),this.map.get(me)}delete(me){return this.map.delete(me),this}has(me){return this.map.has(me)}keys(){return this.map.keys()}}function st(ze){return typeof ArrayBuffer<"u"&&ze instanceof ArrayBuffer}function be(ze){return typeof Blob<"u"&&ze instanceof Blob}function Je(ze){return typeof FormData<"u"&&ze instanceof FormData}class _t{constructor(me,he,Qe,je){let qe;if(this.url=he,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=me.toUpperCase(),function Be(ze){switch(ze){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||je?(this.body=void 0!==Qe?Qe:null,qe=je):qe=Qe,qe&&(this.reportProgress=!!qe.reportProgress,this.withCredentials=!!qe.withCredentials,qe.responseType&&(this.responseType=qe.responseType),qe.headers&&(this.headers=qe.headers),qe.context&&(this.context=qe.context),qe.params&&(this.params=qe.params)),this.headers||(this.headers=new L),this.context||(this.context=new Ye),this.params){const ot=this.params.toString();if(0===ot.length)this.urlWithParams=he;else{const dn=he.indexOf("?");this.urlWithParams=he+(-1===dn?"?":dn<he.length-1?"&":"")+ot}}else this.params=new ve,this.urlWithParams=he}serializeBody(){return null===this.body?null:st(this.body)||be(this.body)||Je(this.body)||function Gt(ze){return typeof URLSearchParams<"u"&&ze instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof ve?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Je(this.body)?null:be(this.body)?this.body.type||null:st(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ve?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(me={}){const he=me.method||this.method,Qe=me.url||this.url,je=me.responseType||this.responseType,qe=void 0!==me.body?me.body:this.body,ot=void 0!==me.withCredentials?me.withCredentials:this.withCredentials,dn=void 0!==me.reportProgress?me.reportProgress:this.reportProgress;let Ft=me.headers||this.headers,At=me.params||this.params;const Xn=me.context??this.context;return void 0!==me.setHeaders&&(Ft=Object.keys(me.setHeaders).reduce((vn,Dn)=>vn.set(Dn,me.setHeaders[Dn]),Ft)),me.setParams&&(At=Object.keys(me.setParams).reduce((vn,Dn)=>vn.set(Dn,me.setParams[Dn]),At)),new _t(he,Qe,qe,{params:At,headers:Ft,context:Xn,reportProgress:dn,responseType:je,withCredentials:ot})}}var Fe=(()=>((Fe=Fe||{})[Fe.Sent=0]="Sent",Fe[Fe.UploadProgress=1]="UploadProgress",Fe[Fe.ResponseHeader=2]="ResponseHeader",Fe[Fe.DownloadProgress=3]="DownloadProgress",Fe[Fe.Response=4]="Response",Fe[Fe.User=5]="User",Fe))();class le{constructor(me,he=200,Qe="OK"){this.headers=me.headers||new L,this.status=void 0!==me.status?me.status:he,this.statusText=me.statusText||Qe,this.url=me.url||null,this.ok=this.status>=200&&this.status<300}}class Te extends le{constructor(me={}){super(me),this.type=Fe.ResponseHeader}clone(me={}){return new Te({headers:me.headers||this.headers,status:void 0!==me.status?me.status:this.status,statusText:me.statusText||this.statusText,url:me.url||this.url||void 0})}}class He extends le{constructor(me={}){super(me),this.type=Fe.Response,this.body=void 0!==me.body?me.body:null}clone(me={}){return new He({body:void 0!==me.body?me.body:this.body,headers:me.headers||this.headers,status:void 0!==me.status?me.status:this.status,statusText:me.statusText||this.statusText,url:me.url||this.url||void 0})}}class dt extends le{constructor(me){super(me,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${me.url||"(unknown url)"}`:`Http failure response for ${me.url||"(unknown url)"}: ${me.status} ${me.statusText}`,this.error=me.error||null}}function Ze(ze,me){return{body:me,headers:ze.headers,context:ze.context,observe:ze.observe,params:ze.params,reportProgress:ze.reportProgress,responseType:ze.responseType,withCredentials:ze.withCredentials}}let $e=(()=>{class ze{constructor(he){this.handler=he}request(he,Qe,je={}){let qe;if(he instanceof _t)qe=he;else{let Ft,At;Ft=je.headers instanceof L?je.headers:new L(je.headers),je.params&&(At=je.params instanceof ve?je.params:new ve({fromObject:je.params})),qe=new _t(he,Qe,void 0!==je.body?je.body:null,{headers:Ft,context:je.context,params:At,reportProgress:je.reportProgress,responseType:je.responseType||"json",withCredentials:je.withCredentials})}const ot=(0,V.of)(qe).pipe((0,A.b)(Ft=>this.handler.handle(Ft)));if(he instanceof _t||"events"===je.observe)return ot;const dn=ot.pipe((0,I.h)(Ft=>Ft instanceof He));switch(je.observe||"body"){case"body":switch(qe.responseType){case"arraybuffer":return dn.pipe((0,R.U)(Ft=>{if(null!==Ft.body&&!(Ft.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Ft.body}));case"blob":return dn.pipe((0,R.U)(Ft=>{if(null!==Ft.body&&!(Ft.body instanceof Blob))throw new Error("Response is not a Blob.");return Ft.body}));case"text":return dn.pipe((0,R.U)(Ft=>{if(null!==Ft.body&&"string"!=typeof Ft.body)throw new Error("Response is not a string.");return Ft.body}));default:return dn.pipe((0,R.U)(Ft=>Ft.body))}case"response":return dn;default:throw new Error(`Unreachable: unhandled observe type ${je.observe}}`)}}delete(he,Qe={}){return this.request("DELETE",he,Qe)}get(he,Qe={}){return this.request("GET",he,Qe)}head(he,Qe={}){return this.request("HEAD",he,Qe)}jsonp(he,Qe){return this.request("JSONP",he,{params:(new ve).append(Qe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(he,Qe={}){return this.request("OPTIONS",he,Qe)}patch(he,Qe,je={}){return this.request("PATCH",he,Ze(je,Qe))}post(he,Qe,je={}){return this.request("POST",he,Ze(je,Qe))}put(he,Qe,je={}){return this.request("PUT",he,Ze(je,Qe))}}return ze.\u0275fac=function(he){return new(he||ze)(_.LFG(x))},ze.\u0275prov=_.Yz7({token:ze,factory:ze.\u0275fac}),ze})();class yn{constructor(me,he){this.next=me,this.interceptor=he}handle(me){return this.interceptor.intercept(me,this.next)}}const Vt=new _.OlP("HTTP_INTERCEPTORS");let gn=(()=>{class ze{intercept(he,Qe){return Qe.handle(he)}}return ze.\u0275fac=function(he){return new(he||ze)},ze.\u0275prov=_.Yz7({token:ze,factory:ze.\u0275fac}),ze})();const cn=/^\)\]\}',?\n/;let wn=(()=>{class ze{constructor(he){this.xhrFactory=he}handle(he){if("JSONP"===he.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new j.y(Qe=>{const je=this.xhrFactory.build();if(je.open(he.method,he.urlWithParams),he.withCredentials&&(je.withCredentials=!0),he.headers.forEach((Rt,$t)=>je.setRequestHeader(Rt,$t.join(","))),he.headers.has("Accept")||je.setRequestHeader("Accept","application/json, text/plain, */*"),!he.headers.has("Content-Type")){const Rt=he.detectContentTypeHeader();null!==Rt&&je.setRequestHeader("Content-Type",Rt)}if(he.responseType){const Rt=he.responseType.toLowerCase();je.responseType="json"!==Rt?Rt:"text"}const qe=he.serializeBody();let ot=null;const dn=()=>{if(null!==ot)return ot;const Rt=je.statusText||"OK",$t=new L(je.getAllResponseHeaders()),sn=function Ln(ze){return"responseURL"in ze&&ze.responseURL?ze.responseURL:/^X-Request-URL:/m.test(ze.getAllResponseHeaders())?ze.getResponseHeader("X-Request-URL"):null}(je)||he.url;return ot=new Te({headers:$t,status:je.status,statusText:Rt,url:sn}),ot},Ft=()=>{let{headers:Rt,status:$t,statusText:sn,url:fe}=dn(),Ee=null;204!==$t&&(Ee=typeof je.response>"u"?je.responseText:je.response),0===$t&&($t=Ee?200:0);let Ae=$t>=200&&$t<300;if("json"===he.responseType&&"string"==typeof Ee){const _e=Ee;Ee=Ee.replace(cn,"");try{Ee=""!==Ee?JSON.parse(Ee):null}catch(Re){Ee=_e,Ae&&(Ae=!1,Ee={error:Re,text:Ee})}}Ae?(Qe.next(new He({body:Ee,headers:Rt,status:$t,statusText:sn,url:fe||void 0})),Qe.complete()):Qe.error(new dt({error:Ee,headers:Rt,status:$t,statusText:sn,url:fe||void 0}))},At=Rt=>{const{url:$t}=dn(),sn=new dt({error:Rt,status:je.status||0,statusText:je.statusText||"Unknown Error",url:$t||void 0});Qe.error(sn)};let Xn=!1;const vn=Rt=>{Xn||(Qe.next(dn()),Xn=!0);let $t={type:Fe.DownloadProgress,loaded:Rt.loaded};Rt.lengthComputable&&($t.total=Rt.total),"text"===he.responseType&&!!je.responseText&&($t.partialText=je.responseText),Qe.next($t)},Dn=Rt=>{let $t={type:Fe.UploadProgress,loaded:Rt.loaded};Rt.lengthComputable&&($t.total=Rt.total),Qe.next($t)};return je.addEventListener("load",Ft),je.addEventListener("error",At),je.addEventListener("timeout",At),je.addEventListener("abort",At),he.reportProgress&&(je.addEventListener("progress",vn),null!==qe&&je.upload&&je.upload.addEventListener("progress",Dn)),je.send(qe),Qe.next({type:Fe.Sent}),()=>{je.removeEventListener("error",At),je.removeEventListener("abort",At),je.removeEventListener("load",Ft),je.removeEventListener("timeout",At),he.reportProgress&&(je.removeEventListener("progress",vn),null!==qe&&je.upload&&je.upload.removeEventListener("progress",Dn)),je.readyState!==je.DONE&&je.abort()}})}}return ze.\u0275fac=function(he){return new(he||ze)(_.LFG(r.JF))},ze.\u0275prov=_.Yz7({token:ze,factory:ze.\u0275fac}),ze})();const ur=new _.OlP("XSRF_COOKIE_NAME"),En=new _.OlP("XSRF_HEADER_NAME");class Vn{}let lr=(()=>{class ze{constructor(he,Qe,je){this.doc=he,this.platform=Qe,this.cookieName=je,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const he=this.doc.cookie||"";return he!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,r.Mx)(he,this.cookieName),this.lastCookieString=he),this.lastToken}}return ze.\u0275fac=function(he){return new(he||ze)(_.LFG(r.K0),_.LFG(_.Lbi),_.LFG(ur))},ze.\u0275prov=_.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),or=(()=>{class ze{constructor(he,Qe){this.tokenService=he,this.headerName=Qe}intercept(he,Qe){const je=he.url.toLowerCase();if("GET"===he.method||"HEAD"===he.method||je.startsWith("http://")||je.startsWith("https://"))return Qe.handle(he);const qe=this.tokenService.getToken();return null!==qe&&!he.headers.has(this.headerName)&&(he=he.clone({headers:he.headers.set(this.headerName,qe)})),Qe.handle(he)}}return ze.\u0275fac=function(he){return new(he||ze)(_.LFG(Vn),_.LFG(En))},ze.\u0275prov=_.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),rr=(()=>{class ze{constructor(he,Qe){this.backend=he,this.injector=Qe,this.chain=null}handle(he){if(null===this.chain){const Qe=this.injector.get(Vt,[]);this.chain=Qe.reduceRight((je,qe)=>new yn(je,qe),this.backend)}return this.chain.handle(he)}}return ze.\u0275fac=function(he){return new(he||ze)(_.LFG(H),_.LFG(_.zs3))},ze.\u0275prov=_.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),Sn=(()=>{class ze{static disable(){return{ngModule:ze,providers:[{provide:or,useClass:gn}]}}static withOptions(he={}){return{ngModule:ze,providers:[he.cookieName?{provide:ur,useValue:he.cookieName}:[],he.headerName?{provide:En,useValue:he.headerName}:[]]}}}return ze.\u0275fac=function(he){return new(he||ze)},ze.\u0275mod=_.oAB({type:ze}),ze.\u0275inj=_.cJS({providers:[or,{provide:Vt,useExisting:or,multi:!0},{provide:Vn,useClass:lr},{provide:ur,useValue:"XSRF-TOKEN"},{provide:En,useValue:"X-XSRF-TOKEN"}]}),ze})(),zt=(()=>{class ze{}return ze.\u0275fac=function(he){return new(he||ze)},ze.\u0275mod=_.oAB({type:ze}),ze.\u0275inj=_.cJS({providers:[$e,{provide:x,useClass:rr},wn,{provide:H,useExisting:wn}],imports:[[Sn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),ze})()},5062:(J,F,p)=>{"use strict";p.d(F,{deG:()=>Ho,tb:()=>ym,AFp:()=>gm,ip1:()=>pm,CZH:()=>ud,hGG:()=>lw,z2F:()=>yd,sBO:()=>W0,Sil:()=>D0,_Vd:()=>tc,EJc:()=>w0,SBq:()=>sl,qLn:()=>xl,vpe:()=>ps,tBr:()=>Zo,XFs:()=>jt,OlP:()=>Jn,zs3:()=>us,ZZ4:()=>Dd,aQg:()=>Md,soG:()=>hd,YKP:()=>Tg,h0i:()=>ya,PXZ:()=>L0,R0b:()=>zi,FiY:()=>ho,Lbi:()=>v0,g9A:()=>_m,Qsj:()=>mb,FYo:()=>wg,JOm:()=>ls,tp0:()=>fo,Rgc:()=>cl,dDg:()=>bm,GfV:()=>Eg,s_b:()=>ic,ifc:()=>At,eFA:()=>Dm,G48:()=>z0,Gpc:()=>Ne,X6Q:()=>G0,_c5:()=>aw,VLi:()=>F0,c2e:()=>C0,zSh:()=>gu,wAp:()=>rn,vHH:()=>Be,cg1:()=>Uu,kL8:()=>Wp,dqk:()=>$t,sIi:()=>Ja,CqO:()=>Jf,QGY:()=>Iu,F4k:()=>Qf,RDi:()=>z,AaK:()=>re,qOj:()=>Cu,TTD:()=>Jr,_Bn:()=>vg,xp6:()=>Oh,uIk:()=>Eu,Tol:()=>vp,Gre:()=>kp,ekj:()=>Lu,Suo:()=>Wg,Xpm:()=>Dt,lG2:()=>ut,Yz7:()=>wn,cJS:()=>En,oAB:()=>Pe,Yjl:()=>It,Y36:()=>Xa,_UZ:()=>xu,GkF:()=>Au,BQk:()=>Wl,ynx:()=>zl,qZA:()=>Gl,TgZ:()=>$l,EpF:()=>qf,n5z:()=>Z,Ikx:()=>ju,LFG:()=>yr,$8M:()=>ge,$Z:()=>Zf,NdJ:()=>Nu,CRH:()=>Yg,oxw:()=>tp,Hsn:()=>rp,F$t:()=>np,Q6J:()=>Pu,s9C:()=>ku,MGl:()=>Yl,hYB:()=>Ru,VKq:()=>xg,WLB:()=>Ag,kEZ:()=>Ig,l5B:()=>Ng,iGM:()=>Gg,MAs:()=>Lf,CHM:()=>Mo,oJD:()=>Qd,LSH:()=>xc,YNc:()=>Rf,W1O:()=>Jg,_uU:()=>Tp,Oqu:()=>Bu,hij:()=>ql,Gf:()=>zg});var r=p(5529),_=p(2654),V=p(2916),j=p(6787),A=p(1762);class R{constructor(t,n){this.subjectFactory=t,this.selector=n}call(t,n){const{selector:i}=this,s=this.subjectFactory(),a=i(s).subscribe(t);return a.add(n.subscribe(s)),a}}var x=p(4327);function H(){return new r.xQ}function G(e){for(let t in e)if(e[t]===G)return t;throw Error("Could not find renamed property on target object.")}function ne(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function re(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(re).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Oe(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Se=G({__forward_ref__:G});function Ne(e){return e.__forward_ref__=Ne,e.toString=function(){return re(this())},e}function ve(e){return at(e)?e():e}function at(e){return"function"==typeof e&&e.hasOwnProperty(Se)&&e.__forward_ref__===Ne}class Be extends Error{constructor(t,n){super(function st(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function be(e){return"string"==typeof e?e:null==e?"":String(e)}function Je(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():be(e)}function le(e,t){const n=t?` in ${t}`:"";throw new Be(-201,`No provider for ${Je(e)} found${n}`)}function Ht(e,t){null==e&&function Yt(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function wn(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function En(e){return{providers:e.providers||[],imports:e.imports||[]}}function Vn(e){return lr(e,zn)||lr(e,zt)}function lr(e,t){return e.hasOwnProperty(t)?e[t]:null}function dr(e){return e&&(e.hasOwnProperty(Sn)||e.hasOwnProperty($n))?e[Sn]:null}const zn=G({\u0275prov:G}),Sn=G({\u0275inj:G}),zt=G({ngInjectableDef:G}),$n=G({ngInjectorDef:G});var jt=(()=>((jt=jt||{})[jt.Default=0]="Default",jt[jt.Host=1]="Host",jt[jt.Self=2]="Self",jt[jt.SkipSelf=4]="SkipSelf",jt[jt.Optional=8]="Optional",jt))();let ze;function he(e){const t=ze;return ze=e,t}function Qe(e,t,n){const i=Vn(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&jt.Optional?null:void 0!==t?t:void le(re(e),"Injector")}function qe(e){return{toString:e}.toString()}var ot=(()=>((ot=ot||{})[ot.OnPush=0]="OnPush",ot[ot.Default=1]="Default",ot))(),At=(()=>{return(e=At||(At={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",At;var e})();const Xn=typeof globalThis<"u"&&globalThis,vn=typeof window<"u"&&window,Dn=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,$t=Xn||typeof global<"u"&&global||vn||Dn,Ee={},Ae=[],_e=G({\u0275cmp:G}),Re=G({\u0275dir:G}),tt=G({\u0275pipe:G}),ft=G({\u0275mod:G}),ct=G({\u0275fac:G}),St=G({__NG_ELEMENT_ID__:G});let kt=0;function Dt(e){return qe(()=>{const n={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ot.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ae,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||At.Emulated,id:"c",styles:e.styles||Ae,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,a=e.features,d=e.pipes;return i.id+=kt++,i.inputs=Ue(e.inputs,n),i.outputs=Ue(e.outputs),a&&a.forEach(g=>g(i)),i.directiveDefs=s?()=>("function"==typeof s?s():s).map(De):null,i.pipeDefs=d?()=>("function"==typeof d?d():d).map(se):null,i})}function De(e){return Ct(e)||function an(e){return e[Re]||null}(e)}function se(e){return function Pt(e){return e[tt]||null}(e)}const K={};function Pe(e){return qe(()=>{const t={type:e.type,bootstrap:e.bootstrap||Ae,declarations:e.declarations||Ae,imports:e.imports||Ae,exports:e.exports||Ae,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(K[e.id]=e.type),t})}function Ue(e,t){if(null==e)return Ee;const n={};for(const i in e)if(e.hasOwnProperty(i)){let s=e[i],a=s;Array.isArray(s)&&(a=s[1],s=s[0]),n[s]=i,t&&(t[s]=a)}return n}const ut=Dt;function It(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ct(e){return e[_e]||null}function Jt(e,t){const n=e[ft]||null;if(!n&&!0===t)throw new Error(`Type ${re(e)} does not have '\u0275mod' property.`);return n}const B=16;function Hn(e){return Array.isArray(e)&&"object"==typeof e[1]}function qn(e){return Array.isArray(e)&&!0===e[1]}function Or(e){return 0!=(8&e.flags)}function qr(e){return 2==(2&e.flags)}function Pn(e){return 1==(1&e.flags)}function Qn(e){return null!==e.template}function br(e){return 0!=(512&e[2])}function Gr(e,t){return e.hasOwnProperty(ct)?e[ct]:null}class Yi{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function Jr(){return Zi}function Zi(e){return e.type.prototype.ngOnChanges&&(e.setInput=oi),qi}function qi(){const e=Ci(this),t=e?.current;if(t){const n=e.previous;if(n===Ee)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function oi(e,t,n,i){const s=Ci(e)||function Ii(e,t){return e[kr]=t}(e,{previous:Ee,current:null}),a=s.current||(s.current={}),d=s.previous,g=this.declaredInputs[n],v=d[g];a[g]=new Yi(v&&v.currentValue,t,d===Ee),e[i]=t}Jr.ngInherit=!0;const kr="__ngSimpleChanges__";function Ci(e){return e[kr]||null}let D;function z(e){D=e}function T(){return void 0!==D?D:typeof document<"u"?document:void 0}function de(e){return!!e.listen}const Ve={createRenderer:(e,t)=>T()};function gt(e){for(;Array.isArray(e);)e=e[0];return e}function fn(e,t){return gt(t[e])}function Kt(e,t){return gt(t[e.index])}function kn(e,t){return e.data[t]}function S(e,t){const n=t[e];return Hn(n)?n:n[0]}function b(e){return 4==(4&e[2])}function C(e){return 128==(128&e[2])}function Le(e,t){return null==t?null:e[t]}function Ot(e){e[18]=0}function Un(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const Zt={lFrame:No(null),bindingsEnabled:!0};function Ki(){return Zt.bindingsEnabled}function Xe(){return Zt.lFrame.lView}function Tn(){return Zt.lFrame.tView}function Mo(e){return Zt.lFrame.contextLView=e,e[8]}function ir(){let e=To();for(;null!==e&&64===e.type;)e=e.parent;return e}function To(){return Zt.lFrame.currentTNode}function Lr(e,t){const n=Zt.lFrame;n.currentTNode=e,n.isParent=t}function Zs(){return Zt.lFrame.isParent}function Is(){Zt.lFrame.isParent=!1}function Mr(){const e=Zt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ts(){return Zt.lFrame.bindingIndex++}function Fr(e){const t=Zt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function wa(e,t){const n=Zt.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ns(t)}function Ns(e){Zt.lFrame.currentDirectiveIndex=e}function Ao(){return Zt.lFrame.currentQueryIndex}function Js(e){Zt.lFrame.currentQueryIndex=e}function hl(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Ks(e,t,n){if(n&jt.SkipSelf){let s=t,a=e;for(;!(s=s.parent,null!==s||n&jt.Host||(s=hl(a),null===s||(a=a[15],10&s.type))););if(null===s)return!1;t=s,e=a}const i=Zt.lFrame=Io();return i.currentTNode=t,i.lView=e,!0}function ks(e){const t=Io(),n=e[1];Zt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Io(){const e=Zt.lFrame,t=null===e?null:e.child;return null===t?No(e):t}function No(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Ea(){const e=Zt.lFrame;return Zt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Tr=Ea;function _s(){const e=Ea();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function _r(){return Zt.lFrame.selectedIndex}function li(e){Zt.lFrame.selectedIndex=e}function tr(){const e=Zt.lFrame;return kn(e.tView,e.selectedIndex)}function ns(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const a=e.data[n].type.prototype,{ngAfterContentInit:d,ngAfterContentChecked:g,ngAfterViewInit:v,ngAfterViewChecked:N,ngOnDestroy:$}=a;d&&(e.contentHooks||(e.contentHooks=[])).push(-n,d),g&&((e.contentHooks||(e.contentHooks=[])).push(n,g),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,g)),v&&(e.viewHooks||(e.viewHooks=[])).push(-n,v),N&&((e.viewHooks||(e.viewHooks=[])).push(n,N),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,N)),null!=$&&(e.destroyHooks||(e.destroyHooks=[])).push(n,$)}}function Xs(e,t,n){ys(e,t,3,n)}function rs(e,t,n,i){(3&e[2])===n&&ys(e,t,n,i)}function eo(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function ys(e,t,n,i){const a=i??-1,d=t.length-1;let g=0;for(let v=void 0!==i?65535&e[18]:0;v<d;v++)if("number"==typeof t[v+1]){if(g=t[v],null!=i&&g>=i)break}else t[v]<0&&(e[18]+=65536),(g<a||-1==a)&&(ko(e,n,t,v),e[18]=(4294901760&e[18])+v+2),v++}function ko(e,t,n,i){const s=n[i]<0,a=n[i+1],g=e[s?-n[i]:n[i]];if(s){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{a.call(g)}finally{}}}else try{a.call(g)}finally{}}class vs{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function is(e,t,n){const i=de(e);let s=0;for(;s<n.length;){const a=n[s];if("number"==typeof a){if(0!==a)break;s++;const d=n[s++],g=n[s++],v=n[s++];i?e.setAttribute(t,g,v,d):t.setAttributeNS(d,g,v)}else{const d=a,g=n[++s];Ti(d)?i&&e.setProperty(t,d,g):i?e.setAttribute(t,d,g):t.setAttribute(d,g),s++}}return s}function Cs(e){return 3===e||4===e||6===e}function Ti(e){return 64===e.charCodeAt(0)}function Rs(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const s=t[i];"number"==typeof s?n=s:0===n||Ro(e,n,s,null,-1===n||2===n?t[++i]:null)}}return e}function Ro(e,t,n,i,s){let a=0,d=e.length;if(-1===t)d=-1;else for(;a<e.length;){const g=e[a++];if("number"==typeof g){if(g===t){d=-1;break}if(g>t){d=a-1;break}}}for(;a<e.length;){const g=e[a];if("number"==typeof g)break;if(g===n){if(null===i)return void(null!==s&&(e[a+1]=s));if(i===e[a+1])return void(e[a+2]=s)}a++,null!==i&&a++,null!==s&&a++}-1!==d&&(e.splice(d,0,t),a=d+1),e.splice(a++,0,n),null!==i&&e.splice(a++,0,i),null!==s&&e.splice(a++,0,s)}function no(e){return-1!==e}function Fi(e){return 32767&e}function ki(e,t){let n=function Lo(e){return e>>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let bs=!0;function Ls(e){const t=bs;return bs=e,t}let Bo=0;function Vs(e,t){const n=so(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,io(i.data,e),io(t,null),io(i.blueprint,null));const s=ws(e,t),a=e.injectorIndex;if(no(s)){const d=Fi(s),g=ki(s,t),v=g[1].data;for(let N=0;N<8;N++)t[a+N]=g[d+N]|v[d+N]}return t[a+8]=s,a}function io(e,t){e.push(0,0,0,0,0,0,0,0,t)}function so(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ws(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,s=t;for(;null!==s;){const a=s[1],d=a.type;if(i=2===d?a.declTNode:1===d?s[6]:null,null===i)return-1;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Bs(e,t,n){!function gl(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(St)&&(i=n[St]),null==i&&(i=n[St]=Bo++);const s=255&i;t.data[e+(s>>5)]|=1<<s}(e,t,n)}function jo(e,t,n){if(n&jt.Optional)return e;le(t,"NodeInjector")}function js(e,t,n,i){if(n&jt.Optional&&void 0===i&&(i=null),0==(n&(jt.Self|jt.Host))){const s=e[9],a=he(void 0);try{return s?s.get(t,i,n&jt.Optional):Qe(t,i,n&jt.Optional)}finally{he(a)}}return jo(i,t,n)}function Fa(e,t,n,i=jt.Default,s){if(null!==e){const a=function f(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(St)?e[St]:void 0;return"number"==typeof t?t>=0?255&t:Ra:t}(n);if("function"==typeof a){if(!Ks(t,e,i))return i&jt.Host?jo(s,n,i):js(t,n,i,s);try{const d=a(i);if(null!=d||i&jt.Optional)return d;le(n)}finally{Tr()}}else if("number"==typeof a){let d=null,g=so(e,t),v=-1,N=i&jt.Host?t[B][6]:null;for((-1===g||i&jt.SkipSelf)&&(v=-1===g?ws(e,t):t[g+8],-1!==v&&w(i,!1)?(d=t[1],g=Fi(v),t=ki(v,t)):g=-1);-1!==g;){const $=t[1];if(h(a,g,$.data)){const ee=ml(g,t,n,d,i,N);if(ee!==ka)return ee}v=t[g+8],-1!==v&&w(i,t[1].data[g+8]===N)&&h(a,g,t)?(d=$,g=Fi(v),t=ki(v,t)):g=-1}}}return js(t,n,i,s)}const ka={};function Ra(){return new O(ir(),Xe())}function ml(e,t,n,i,s,a){const d=t[1],g=d.data[e+8],$=Uo(g,d,n,null==i?qr(g)&&bs:i!=d&&0!=(3&g.type),s&jt.Host&&a===g);return null!==$?y(t,d,$,g):ka}function Uo(e,t,n,i,s){const a=e.providerIndexes,d=t.data,g=1048575&a,v=e.directiveStart,$=a>>20,pe=s?g+$:e.directiveEnd;for(let Ie=i?g:g+$;Ie<pe;Ie++){const We=d[Ie];if(Ie<v&&n===We||Ie>=v&&We.type===n)return Ie}if(s){const Ie=d[v];if(Ie&&Qn(Ie)&&Ie.type===n)return v}return null}function y(e,t,n,i){let s=e[n];const a=t.data;if(function Oa(e){return e instanceof vs}(s)){const d=s;d.resolving&&function Gt(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Be(-200,`Circular dependency in DI detected for ${e}${n}`)}(Je(a[n]));const g=Ls(d.canSeeViewProviders);d.resolving=!0;const v=d.injectImpl?he(d.injectImpl):null;Ks(e,i,jt.Default);try{s=e[n]=d.factory(void 0,a,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Pa(e,t,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:a}=t.type.prototype;if(i){const d=Zi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,d),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,d)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,s),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,a[n],t)}finally{null!==v&&he(v),Ls(g),d.resolving=!1,Tr()}}return s}function h(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function w(e,t){return!(e&jt.Self||e&jt.Host&&t)}class O{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,i){return Fa(this._tNode,this._lView,t,i,n)}}function Z(e){return qe(()=>{const t=e.prototype.constructor,n=t[ct]||ie(t),i=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==i;){const a=s[ct]||ie(s);if(a&&a!==n)return a;s=Object.getPrototypeOf(s)}return a=>new a})}function ie(e){return at(e)?()=>{const t=ie(ve(e));return t&&t()}:Gr(e)}function ge(e){return function Na(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let s=0;for(;s<i;){const a=n[s];if(Cs(a))break;if(0===a)s+=2;else if("number"==typeof a)for(s++;s<i&&"string"==typeof n[s];)s++;else{if(a===t)return n[s+1];s+=2}}}return null}(ir(),e)}const Mt="__parameters__";function Rn(e,t,n){return qe(()=>{const i=function jn(e){return function(...n){if(e){const i=e(...n);for(const s in i)this[s]=i[s]}}}(t);function s(...a){if(this instanceof s)return i.apply(this,a),this;const d=new s(...a);return g.annotation=d,g;function g(v,N,$){const ee=v.hasOwnProperty(Mt)?v[Mt]:Object.defineProperty(v,Mt,{value:[]})[Mt];for(;ee.length<=$;)ee.push(null);return(ee[$]=ee[$]||[]).push(d),v}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}class Jn{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=wn({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Ho=new Jn("AnalyzeForEntryComponents");function ei(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),ei(i,t)):t!==e&&t.push(i)}return t}function Si(e,t){e.forEach(n=>Array.isArray(n)?Si(n,t):t(n))}function ti(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Kn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function zr(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function Wr(e,t,n){let i=$s(e,t);return i>=0?e[1|i]=n:(i=~i,function Pi(e,t,n,i){let s=e.length;if(s==t)e.push(n,i);else if(1===s)e.push(i,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Go(e,t){const n=$s(e,t);if(n>=0)return e[1|n]}function $s(e,t){return function zo(e,t,n){let i=0,s=e.length>>n;for(;s!==i;){const a=i+(s-i>>1),d=e[a<<n];if(t===d)return a<<n;d>t?s=a:i=a+1}return~(s<<n)}(e,t,1)}const lo={},Wo="__NG_DI_FLAG__",co="ngTempTokenPath",gc=/\n/gm,_c="__source",Gd=G({provide:String,useValue:G});let Yo;function yc(e){const t=Yo;return Yo=e,t}function Va(e,t=jt.Default){if(void 0===Yo)throw new Be(203,"");return null===Yo?Qe(e,void 0,t):Yo.get(e,t&jt.Optional?null:void 0,t)}function yr(e,t=jt.Default){return(function me(){return ze}()||Va)(ve(e),t)}const vc=yr;function Ba(e){const t=[];for(let n=0;n<e.length;n++){const i=ve(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Be(900,"");let s,a=jt.Default;for(let d=0;d<i.length;d++){const g=i[d],v=Cc(g);"number"==typeof v?-1===v?s=g.token:a|=v:s=g}t.push(yr(s,a))}else t.push(yr(i))}return t}function uo(e,t){return e[Wo]=t,e.prototype[Wo]=t,e}function Cc(e){return e[Wo]}const Zo=uo(Rn("Inject",e=>({token:e})),-1),ho=uo(Rn("Optional"),8),fo=uo(Rn("SkipSelf"),4);let Ua,U;function l(e){return function u(){if(void 0===Ua&&(Ua=null,$t.trustedTypes))try{Ua=$t.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ua}()?.createHTML(e)||e}function oe(e){return function X(){if(void 0===U&&(U=null,$t.trustedTypes))try{U=$t.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return U}()?.createHTML(e)||e}class mt{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function On(e){return e instanceof mt?e.changingThisBreaksApplicationSecurity:e}function sr(e,t){const n=function vr(e){return e instanceof mt&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}class Vi{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(l(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class Bi{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=l(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=l(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let s=n.length-1;0<s;s--){const d=n.item(s).name;("xmlns:ns1"===d||0===d.indexOf("ns1:"))&&t.removeAttribute(d)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const go=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Pl=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function mo(e){return(e=String(e)).match(go)||e.match(Pl)?e:"unsafe:"+e}function Ut(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function nn(...e){const t={};for(const n of e)for(const i in n)n.hasOwnProperty(i)&&(t[i]=!0);return t}const Nn=Ut("area,br,col,hr,img,wbr"),fr=Ut("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ui=Ut("rp,rt"),qo=nn(Nn,nn(fr,Ut("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")),nn(ui,Ut("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")),nn(ui,fr)),Ha=Ut("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Sr=Ut("srcset"),os=nn(Ha,Sr,Ut("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,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ut("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")),$a=Ut("script,style,template");class jm{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,i=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?i=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,i&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let s=this.checkClobberedElement(n,n.nextSibling);if(s){n=s;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!qo.hasOwnProperty(n))return this.sanitizedSomething=!0,!$a.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const i=t.attributes;for(let s=0;s<i.length;s++){const a=i.item(s),d=a.name,g=d.toLowerCase();if(!os.hasOwnProperty(g)){this.sanitizedSomething=!0;continue}let v=a.value;Ha[g]&&(v=mo(v)),Sr[g]&&(e=v,v=(e=String(e)).split(",").map(t=>mo(t.trim())).join(", ")),this.buf.push(" ",d,'="',qd(v),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();qo.hasOwnProperty(n)&&!Nn.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(qd(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Um=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Hm=/([^\#-~ |!])/g;function qd(e){return e.replace(/&/g,"&amp;").replace(Um,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Hm,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ol;function Oc(e){return"content"in e&&function Gm(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Cr=(()=>((Cr=Cr||{})[Cr.NONE=0]="NONE",Cr[Cr.HTML=1]="HTML",Cr[Cr.STYLE=2]="STYLE",Cr[Cr.SCRIPT=3]="SCRIPT",Cr[Cr.URL=4]="URL",Cr[Cr.RESOURCE_URL=5]="RESOURCE_URL",Cr))();function Qd(e){const t=Ga();return t?oe(t.sanitize(Cr.HTML,e)||""):sr(e,"HTML")?oe(On(e)):function $m(e,t){let n=null;try{Ol=Ol||function Oi(e){const t=new Bi(e);return function Sl(){try{return!!(new window.DOMParser).parseFromString(l(""),"text/html")}catch{return!1}}()?new Vi(t):t}(e);let i=t?String(t):"";n=Ol.getInertBodyElement(i);let s=5,a=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=a,a=n.innerHTML,n=Ol.getInertBodyElement(i)}while(i!==a);return l((new jm).sanitizeChildren(Oc(n)||n))}finally{if(n){const i=Oc(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}(T(),be(e))}function xc(e){const t=Ga();return t?t.sanitize(Cr.URL,e)||"":sr(e,"URL")?On(e):mo(be(e))}function Ga(){const e=Xe();return e&&e[12]}const Xd="__ngContext__";function jr(e,t){e[Xd]=t}function Ic(e){const t=function za(e){return e[Xd]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Fc(e){return e.ngOriginalError}function o_(e,...t){e.error(...t)}class xl{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=function s_(e){return e&&e.ngErrorLogger||o_}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Fc(t);for(;n&&Fc(n);)n=Fc(n);return n||null}}const m_=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind($t))();function as(e){return e instanceof Function?e():e}var ls=(()=>((ls=ls||{})[ls.Important=1]="Important",ls[ls.DashCase=2]="DashCase",ls))();function Rc(e,t){return undefined(e,t)}function Wa(e){const t=e[3];return qn(t)?t[3]:t}function Lc(e){return lh(e[13])}function Vc(e){return lh(e[4])}function lh(e){for(;null!==e&&!qn(e);)e=e[4];return e}function Jo(e,t,n,i,s){if(null!=i){let a,d=!1;qn(i)?a=i:Hn(i)&&(d=!0,i=i[0]);const g=gt(i);0===e&&null!==n?null==s?ph(t,n,g):_o(t,n,g,s||null,!0):1===e&&null!==n?_o(t,n,g,s||null,!0):2===e?function bh(e,t,n){const i=Al(e,t);i&&function x_(e,t,n,i){de(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,g,d):3===e&&t.destroyNode(g),null!=a&&function N_(e,t,n,i,s){const a=n[7];a!==gt(n)&&Jo(t,e,i,a,s);for(let g=10;g<n.length;g++){const v=n[g];Ya(v[1],v,e,t,i,a)}}(t,e,a,n,s)}}function jc(e,t,n){if(de(e))return e.createElement(t,n);{const i=null!==n?function Ji(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(n):null;return null===i?e.createElement(t):e.createElementNS(i,t)}}function uh(e,t){const n=e[9],i=n.indexOf(t),s=t[3];1024&t[2]&&(t[2]&=-1025,Un(s,-1)),n.splice(i,1)}function Uc(e,t){if(e.length<=10)return;const n=10+t,i=e[n];if(i){const s=i[17];null!==s&&s!==e&&uh(s,i),t>0&&(e[n-1][4]=i[4]);const a=Kn(e,10+t);!function w_(e,t){Ya(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const d=a[19];null!==d&&d.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function dh(e,t){if(!(256&t[2])){const n=t[11];de(n)&&n.destroyNode&&Ya(e,t,n,3,null,null),function M_(e){let t=e[13];if(!t)return Hc(e[1],e);for(;t;){let n=null;if(Hn(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Hn(t)&&Hc(t[1],t),t=t[3];null===t&&(t=e),Hn(t)&&Hc(t[1],t),n=t&&t[4]}t=n}}(t)}}function Hc(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function O_(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const s=t[n[i]];if(!(s instanceof vs)){const a=n[i+1];if(Array.isArray(a))for(let d=0;d<a.length;d+=2){const g=s[a[d]],v=a[d+1];try{v.call(g)}finally{}}else try{a.call(s)}finally{}}}}(e,t),function P_(e,t){const n=e.cleanup,i=t[7];let s=-1;if(null!==n)for(let a=0;a<n.length-1;a+=2)if("string"==typeof n[a]){const d=n[a+1],g="function"==typeof d?d(t):gt(t[d]),v=i[s=n[a+2]],N=n[a+3];"boolean"==typeof N?g.removeEventListener(n[a],v,N):N>=0?i[s=N]():i[s=-N].unsubscribe(),a+=2}else{const d=i[s=n[a+1]];n[a].call(d)}if(null!==i){for(let a=s+1;a<i.length;a++)i[a]();t[7]=null}}(e,t),1===t[1].type&&de(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&qn(t[3])){n!==t[3]&&uh(n,t);const i=t[19];null!==i&&i.detachView(e)}}}function hh(e,t,n){return function fh(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){const s=e.data[i.directiveStart].encapsulation;if(s===At.None||s===At.Emulated)return null}return Kt(i,n)}(e,t.parent,n)}function _o(e,t,n,i,s){de(e)?e.insertBefore(t,n,i,s):t.insertBefore(n,i,s)}function ph(e,t,n){de(e)?e.appendChild(t,n):t.appendChild(n)}function gh(e,t,n,i,s){null!==i?_o(e,t,n,i,s):ph(e,t,n)}function Al(e,t){return de(e)?e.parentNode(t):t.parentNode}function mh(e,t,n){return yh(e,t,n)}let yh=function _h(e,t,n){return 40&e.type?Kt(e,n):null};function Il(e,t,n,i){const s=hh(e,i,t),a=t[11],g=mh(i.parent||t[6],i,t);if(null!=s)if(Array.isArray(n))for(let v=0;v<n.length;v++)gh(a,s,n[v],g,!1);else gh(a,s,n,g,!1)}function Nl(e,t){if(null!==t){const n=t.type;if(3&n)return Kt(t,e);if(4&n)return Gc(-1,e[t.index]);if(8&n){const i=t.child;if(null!==i)return Nl(e,i);{const s=e[t.index];return qn(s)?Gc(-1,s):gt(s)}}if(32&n)return Rc(t,e)()||gt(e[t.index]);{const i=Ch(e,t);return null!==i?Array.isArray(i)?i[0]:Nl(Wa(e[B]),i):Nl(e,t.next)}}return null}function Ch(e,t){return null!==t?e[B][6].projection[t.projection]:null}function Gc(e,t){const n=10+e+1;if(n<t.length){const i=t[n],s=i[1].firstChild;if(null!==s)return Nl(i,s)}return t[7]}function zc(e,t,n,i,s,a,d){for(;null!=n;){const g=i[n.index],v=n.type;if(d&&0===t&&(g&&jr(gt(g),i),n.flags|=4),64!=(64&n.flags))if(8&v)zc(e,t,n.child,i,s,a,!1),Jo(t,e,s,g,a);else if(32&v){const N=Rc(n,i);let $;for(;$=N();)Jo(t,e,s,$,a);Jo(t,e,s,g,a)}else 16&v?wh(e,t,i,n,s,a):Jo(t,e,s,g,a);n=d?n.projectionNext:n.next}}function Ya(e,t,n,i,s,a){zc(n,i,e.firstChild,t,s,a,!1)}function wh(e,t,n,i,s,a){const d=n[B],v=d[6].projection[i.projection];if(Array.isArray(v))for(let N=0;N<v.length;N++)Jo(t,e,s,v[N],a);else zc(e,t,v,d[3],s,a,!0)}function Eh(e,t,n){de(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Wc(e,t,n){de(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function Dh(e,t,n){let i=e.length;for(;;){const s=e.indexOf(t,n);if(-1===s)return s;if(0===s||e.charCodeAt(s-1)<=32){const a=t.length;if(s+a===i||e.charCodeAt(s+a)<=32)return s}n=s+1}}const Mh="ng-template";function k_(e,t,n){let i=0;for(;i<e.length;){let s=e[i++];if(n&&"class"===s){if(s=e[i],-1!==Dh(s.toLowerCase(),t,0))return!0}else if(1===s){for(;i<e.length&&"string"==typeof(s=e[i++]);)if(s.toLowerCase()===t)return!0;return!1}}return!1}function Th(e){return 4===e.type&&e.value!==Mh}function R_(e,t,n){return t===(4!==e.type||n?e.value:Mh)}function L_(e,t,n){let i=4;const s=e.attrs||[],a=function j_(e){for(let t=0;t<e.length;t++)if(Cs(e[t]))return t;return e.length}(s);let d=!1;for(let g=0;g<t.length;g++){const v=t[g];if("number"!=typeof v){if(!d)if(4&i){if(i=2|1&i,""!==v&&!R_(e,v,n)||""===v&&1===t.length){if(ji(i))return!1;d=!0}}else{const N=8&i?v:t[++g];if(8&i&&null!==e.attrs){if(!k_(e.attrs,N,n)){if(ji(i))return!1;d=!0}continue}const ee=V_(8&i?"class":v,s,Th(e),n);if(-1===ee){if(ji(i))return!1;d=!0;continue}if(""!==N){let pe;pe=ee>a?"":s[ee+1].toLowerCase();const Ie=8&i?pe:null;if(Ie&&-1!==Dh(Ie,N,0)||2&i&&N!==pe){if(ji(i))return!1;d=!0}}}}else{if(!d&&!ji(i)&&!ji(v))return!1;if(d&&ji(v))continue;d=!1,i=v|1&i}}return ji(i)||d}function ji(e){return 0==(1&e)}function V_(e,t,n,i){if(null===t)return-1;let s=0;if(i||!n){let a=!1;for(;s<t.length;){const d=t[s];if(d===e)return s;if(3===d||6===d)a=!0;else{if(1===d||2===d){let g=t[++s];for(;"string"==typeof g;)g=t[++s];continue}if(4===d)break;if(0===d){s+=4;continue}}s+=a?1:2}return-1}return function U_(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function Sh(e,t,n=!1){for(let i=0;i<t.length;i++)if(L_(e,t[i],n))return!0;return!1}function H_(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let s=0;s<e.length;s++)if(e[s]!==i[s])continue e;return!0}}return!1}function Ph(e,t){return e?":not("+t.trim()+")":t}function $_(e){let t=e[0],n=1,i=2,s="",a=!1;for(;n<e.length;){let d=e[n];if("string"==typeof d)if(2&i){const g=e[++n];s+="["+d+(g.length>0?'="'+g+'"':"")+"]"}else 8&i?s+="."+d:4&i&&(s+=" "+d);else""!==s&&!ji(d)&&(t+=Ph(a,s),s=""),i=d,a=a||!ji(i);n++}return""!==s&&(t+=Ph(a,s)),t}const mn={};function Oh(e){xh(Tn(),Xe(),_r()+e,!1)}function xh(e,t,n,i){if(!i)if(3==(3&t[2])){const a=e.preOrderCheckHooks;null!==a&&Xs(t,a,n)}else{const a=e.preOrderHooks;null!==a&&rs(t,a,0,n)}li(n)}function Fl(e,t){return e<<17|t<<2}function Ui(e){return e>>17&32767}function Yc(e){return 2|e}function Os(e){return(131068&e)>>2}function Zc(e,t){return-131069&e|t<<2}function qc(e){return 1|e}function Uh(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const s=n[i],a=n[i+1];if(-1!==a){const d=e.data[a];Js(s),d.contentQueries(2,t[a],a)}}}function Za(e,t,n,i,s,a,d,g,v,N){const $=t.blueprint.slice();return $[0]=s,$[2]=140|i,Ot($),$[3]=$[15]=e,$[8]=n,$[10]=d||e&&e[10],$[11]=g||e&&e[11],$[12]=v||e&&e[12]||null,$[9]=N||e&&e[9]||null,$[6]=a,$[B]=2==t.type?e[B]:$,$}function Ko(e,t,n,i,s){let a=e.data[t];if(null===a)a=function iu(e,t,n,i,s){const a=To(),d=Zs(),v=e.data[t]=function ay(e,t,n,i,s,a){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,d?a:a&&a.parent,n,t,i,s);return null===e.firstChild&&(e.firstChild=v),null!==a&&(d?null==a.child&&null!==v.parent&&(a.child=v):null===a.next&&(a.next=v)),v}(e,t,n,i,s),function ba(){return Zt.lFrame.inI18n}()&&(a.flags|=64);else if(64&a.type){a.type=n,a.value=i,a.attrs=s;const d=function es(){const e=Zt.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();a.injectorIndex=null===d?-1:d.injectorIndex}return Lr(a,!0),a}function Xo(e,t,n,i){if(0===n)return-1;const s=t.length;for(let a=0;a<n;a++)t.push(i),e.blueprint.push(i),e.data.push(null);return s}function qa(e,t,n){ks(t);try{const i=e.viewQuery;null!==i&&fu(1,i,n);const s=e.template;null!==s&&Hh(e,t,s,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Uh(e,t),e.staticViewQueries&&fu(2,e.viewQuery,n);const a=e.components;null!==a&&function iy(e,t){for(let n=0;n<t.length;n++)My(e,t[n])}(t,a)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{t[2]&=-5,_s()}}function ea(e,t,n,i){const s=t[2];if(256!=(256&s)){ks(t);try{Ot(t),function Po(e){return Zt.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Hh(e,t,n,2,i);const d=3==(3&s);if(d){const N=e.preOrderCheckHooks;null!==N&&Xs(t,N,null)}else{const N=e.preOrderHooks;null!==N&&rs(t,N,0,null),eo(t,0)}if(function Ey(e){for(let t=Lc(e);null!==t;t=Vc(t)){if(!t[2])continue;const n=t[9];for(let i=0;i<n.length;i++){const s=n[i],a=s[3];0==(1024&s[2])&&Un(a,1),s[2]|=1024}}}(t),function wy(e){for(let t=Lc(e);null!==t;t=Vc(t))for(let n=10;n<t.length;n++){const i=t[n],s=i[1];C(i)&&ea(s,i,s.template,i[8])}}(t),null!==e.contentQueries&&Uh(e,t),d){const N=e.contentCheckHooks;null!==N&&Xs(t,N)}else{const N=e.contentHooks;null!==N&&rs(t,N,1),eo(t,1)}!function ny(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let i=0;i<n.length;i++){const s=n[i];if(s<0)li(~s);else{const a=s,d=n[++i],g=n[++i];wa(d,a),g(2,t[a])}}}finally{li(-1)}}(e,t);const g=e.components;null!==g&&function ry(e,t){for(let n=0;n<t.length;n++)Dy(e,t[n])}(t,g);const v=e.viewQuery;if(null!==v&&fu(2,v,i),d){const N=e.viewCheckHooks;null!==N&&Xs(t,N)}else{const N=e.viewHooks;null!==N&&rs(t,N,2),eo(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[2]&=-73,1024&t[2]&&(t[2]&=-1025,Un(t[3],-1))}finally{_s()}}}function sy(e,t,n,i){const s=t[10],d=b(t);try{!d&&s.begin&&s.begin(),d&&qa(e,t,i),ea(e,t,n,i)}finally{!d&&s.end&&s.end()}}function Hh(e,t,n,i,s){const a=_r(),d=2&i;try{li(-1),d&&t.length>20&&xh(e,t,20,!1),n(i,s)}finally{li(a)}}function $h(e,t,n){if(Or(t)){const s=t.directiveEnd;for(let a=t.directiveStart;a<s;a++){const d=e.data[a];d.contentQueries&&d.contentQueries(1,n[a],a)}}}function su(e,t,n){!Ki()||(function py(e,t,n,i){const s=n.directiveStart,a=n.directiveEnd;e.firstCreatePass||Vs(n,t),jr(i,t);const d=n.initialInputs;for(let g=s;g<a;g++){const v=e.data[g],N=Qn(v);N&&vy(t,n,v);const $=y(t,e,g,n);jr($,t),null!==d&&Cy(0,g-s,$,v,0,d),N&&(S(n.index,t)[8]=$)}}(e,t,n,Kt(n,t)),128==(128&n.flags)&&function gy(e,t,n){const i=n.directiveStart,s=n.directiveEnd,d=n.index,g=function xo(){return Zt.lFrame.currentDirectiveIndex}();try{li(d);for(let v=i;v<s;v++){const N=e.data[v],$=t[v];Ns(v),(null!==N.hostBindings||0!==N.hostVars||null!==N.hostAttrs)&&Jh(N,$)}}finally{li(-1),Ns(g)}}(e,t,n))}function ou(e,t,n=Kt){const i=t.localNames;if(null!==i){let s=t.index+1;for(let a=0;a<i.length;a+=2){const d=i[a+1],g=-1===d?n(t,e):e[d];e[s++]=g}}}function Gh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Ll(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Ll(e,t,n,i,s,a,d,g,v,N){const $=20+i,ee=$+s,pe=function oy(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:mn);return n}($,ee),Ie="function"==typeof N?N():N;return pe[1]={type:e,blueprint:pe,template:n,queries:null,viewQuery:g,declTNode:t,data:pe.slice().fill(null,$),bindingStartIndex:$,expandoStartIndex:ee,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof a?a():a,pipeRegistry:"function"==typeof d?d():d,firstChild:null,schemas:v,consts:Ie,incompleteFirstPass:!1}}function Yh(e,t,n,i){const s=rf(t);null===n?s.push(i):(s.push(n),e.firstCreatePass&&sf(e).push(i,s.length-1))}function Zh(e,t,n){for(let i in e)if(e.hasOwnProperty(i)){const s=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,s):n[i]=[t,s]}return n}function di(e,t,n,i,s,a,d,g){const v=Kt(t,n);let $,N=t.inputs;!g&&null!=N&&($=N[i])?(lf(e,n,$,i,s),qr(t)&&function uy(e,t){const n=S(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i=function cy(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),s=null!=d?d(s,t.value||"",i):s,de(a)?a.setProperty(v,i,s):Ti(i)||(v.setProperty?v.setProperty(i,s):v[i]=s))}function au(e,t,n,i){let s=!1;if(Ki()){const a=function my(e,t,n){const i=e.directiveRegistry;let s=null;if(i)for(let a=0;a<i.length;a++){const d=i[a];Sh(n,d.selectors,!1)&&(s||(s=[]),Bs(Vs(n,t),e,d.type),Qn(d)?(Kh(e,n),s.unshift(d)):s.push(d))}return s}(e,t,n),d=null===i?null:{"":-1};if(null!==a){s=!0,Xh(n,e.data.length,a.length);for(let $=0;$<a.length;$++){const ee=a[$];ee.providersResolver&&ee.providersResolver(ee)}let g=!1,v=!1,N=Xo(e,t,a.length,null);for(let $=0;$<a.length;$++){const ee=a[$];n.mergedAttrs=Rs(n.mergedAttrs,ee.hostAttrs),ef(e,n,t,N,ee),yy(N,ee,d),null!==ee.contentQueries&&(n.flags|=8),(null!==ee.hostBindings||null!==ee.hostAttrs||0!==ee.hostVars)&&(n.flags|=128);const pe=ee.type.prototype;!g&&(pe.ngOnChanges||pe.ngOnInit||pe.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),g=!0),!v&&(pe.ngOnChanges||pe.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),v=!0),N++}!function ly(e,t){const i=t.directiveEnd,s=e.data,a=t.attrs,d=[];let g=null,v=null;for(let N=t.directiveStart;N<i;N++){const $=s[N],ee=$.inputs,pe=null===a||Th(t)?null:by(ee,a);d.push(pe),g=Zh(ee,N,g),v=Zh($.outputs,N,v)}null!==g&&(g.hasOwnProperty("class")&&(t.flags|=16),g.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=d,t.inputs=g,t.outputs=v}(e,n)}d&&function _y(e,t,n){if(t){const i=e.localNames=[];for(let s=0;s<t.length;s+=2){const a=n[t[s+1]];if(null==a)throw new Be(-301,!1);i.push(t[s],a)}}}(n,i,d)}return n.mergedAttrs=Rs(n.mergedAttrs,n.attrs),s}function Qh(e,t,n,i,s,a){const d=a.hostBindings;if(d){let g=e.hostBindingOpCodes;null===g&&(g=e.hostBindingOpCodes=[]);const v=~t.index;(function fy(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(g)!=v&&g.push(v),g.push(i,s,d)}}function Jh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Kh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function yy(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;Qn(t)&&(n[""]=e)}}function Xh(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ef(e,t,n,i,s){e.data[i]=s;const a=s.factory||(s.factory=Gr(s.type)),d=new vs(a,Qn(s),null);e.blueprint[i]=d,n[i]=d,Qh(e,t,0,i,Xo(e,n,s.hostVars,mn),s)}function vy(e,t,n){const i=Kt(t,e),s=Gh(n),a=e[10],d=Vl(e,Za(e,s,null,n.onPush?64:16,i,t,a,a.createRenderer(i,n),null,null));e[t.index]=d}function cs(e,t,n,i,s,a){const d=Kt(e,t);!function lu(e,t,n,i,s,a,d){if(null==a)de(e)?e.removeAttribute(t,s,n):t.removeAttribute(s);else{const g=null==d?be(a):d(a,i||"",s);de(e)?e.setAttribute(t,s,g,n):n?t.setAttributeNS(n,s,g):t.setAttribute(s,g)}}(t[11],d,a,e.value,n,i,s)}function Cy(e,t,n,i,s,a){const d=a[t];if(null!==d){const g=i.setInput;for(let v=0;v<d.length;){const N=d[v++],$=d[v++],ee=d[v++];null!==g?i.setInput(n,ee,N,$):n[$]=ee}}}function by(e,t){let n=null,i=0;for(;i<t.length;){const s=t[i];if(0!==s)if(5!==s){if("number"==typeof s)break;e.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,e[s],t[i+1])),i+=2}else i+=2;else i+=4}return n}function tf(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function Dy(e,t){const n=S(t,e);if(C(n)){const i=n[1];80&n[2]?ea(i,n,i.template,n[8]):n[5]>0&&cu(n)}}function cu(e){for(let i=Lc(e);null!==i;i=Vc(i))for(let s=10;s<i.length;s++){const a=i[s];if(1024&a[2]){const d=a[1];ea(d,a,d.template,a[8])}else a[5]>0&&cu(a)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const s=S(n[i],e);C(s)&&s[5]>0&&cu(s)}}function My(e,t){const n=S(t,e),i=n[1];(function Ty(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(i,n),qa(i,n,n[8])}function Vl(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function uu(e){for(;e;){e[2]|=64;const t=Wa(e);if(br(e)&&!t)return e;e=t}return null}function nf(e){!function du(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],i=Ic(n),s=i[1];sy(s,i,s.template,n)}}(e[8])}function fu(e,t,n){Js(0),t(e,n)}const Py=(()=>Promise.resolve(null))();function rf(e){return e[7]||(e[7]=[])}function sf(e){return e.cleanup||(e.cleanup=[])}function af(e,t){const n=e[9],i=n?n.get(xl,null):null;i&&i.handleError(t)}function lf(e,t,n,i,s){for(let a=0;a<n.length;){const d=n[a++],g=n[a++],v=t[d],N=e.data[d];null!==N.setInput?N.setInput(v,s,i,g):v[g]=s}}function xs(e,t,n){const i=fn(t,e);!function ch(e,t,n){de(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}function Bl(e,t,n){let i=n?e.styles:null,s=n?e.classes:null,a=0;if(null!==t)for(let d=0;d<t.length;d++){const g=t[d];"number"==typeof g?a=g:1==a?s=Oe(s,g):2==a&&(i=Oe(i,g+": "+t[++d]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=s:e.classesWithoutHost=s}const pu=new Jn("INJECTOR",-1);class cf{get(t,n=lo){if(n===lo){const i=new Error(`NullInjectorError: No provider for ${re(t)}!`);throw i.name="NullInjectorError",i}return n}}const gu=new Jn("Set Injector scope."),Qa={},Ay={};let mu;function uf(){return void 0===mu&&(mu=new cf),mu}function df(e,t=null,n=null,i){const s=hf(e,t,n,i);return s._resolveInjectorDefTypes(),s}function hf(e,t=null,n=null,i){return new Iy(e,n,t||uf(),i)}class Iy{constructor(t,n,i,s=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const a=[];n&&Si(n,g=>this.processProvider(g,t,n)),Si([t],g=>this.processInjectorType(g,[],a)),this.records.set(pu,ta(void 0,this));const d=this.records.get(gu);this.scope=null!=d?d.value:null,this.source=s||("object"==typeof t?null:re(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=lo,i=jt.Default){this.assertNotDestroyed();const s=yc(this),a=he(void 0);try{if(!(i&jt.SkipSelf)){let g=this.records.get(t);if(void 0===g){const v=function jy(e){return"function"==typeof e||"object"==typeof e&&e instanceof Jn}(t)&&Vn(t);g=v&&this.injectableDefInScope(v)?ta(_u(t),Qa):null,this.records.set(t,g)}if(null!=g)return this.hydrate(t,g)}return(i&jt.Self?uf():this.parent).get(t,n=i&jt.Optional&&n===lo?null:n)}catch(d){if("NullInjectorError"===d.name){if((d[co]=d[co]||[]).unshift(re(t)),s)throw d;return function bc(e,t,n,i){const s=e[co];throw t[_c]&&s.unshift(t[_c]),e.message=function wc(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let s=re(t);if(Array.isArray(t))s=t.map(re).join(" -> ");else if("object"==typeof t){let a=[];for(let d in t)if(t.hasOwnProperty(d)){let g=t[d];a.push(d+":"+("string"==typeof g?JSON.stringify(g):re(g)))}s=`{${a.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${e.replace(gc,"\n  ")}`}("\n"+e.message,s,n,i),e.ngTokenPath=s,e[co]=null,e}(d,t,"R3InjectorError",this.source)}throw d}finally{he(a),yc(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,s)=>t.push(re(s))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Be(205,!1)}processInjectorType(t,n,i){if(!(t=ve(t)))return!1;let s=dr(t);const a=null==s&&t.ngModule||void 0,d=void 0===a?t:a,g=-1!==i.indexOf(d);if(void 0!==a&&(s=dr(a)),null==s)return!1;if(null!=s.imports&&!g){let $;i.push(d);try{Si(s.imports,ee=>{this.processInjectorType(ee,n,i)&&(void 0===$&&($=[]),$.push(ee))})}finally{}if(void 0!==$)for(let ee=0;ee<$.length;ee++){const{ngModule:pe,providers:Ie}=$[ee];Si(Ie,We=>this.processProvider(We,pe,Ie||Ae))}}this.injectorDefTypes.add(d);const v=Gr(d)||(()=>new d);this.records.set(d,ta(v,Qa));const N=s.providers;if(null!=N&&!g){const $=t;Si(N,ee=>this.processProvider(ee,$,N))}return void 0!==a&&void 0!==t.providers}processProvider(t,n,i){let s=na(t=ve(t))?t:ve(t&&t.provide);const a=function Fy(e,t,n){return pf(e)?ta(void 0,e.useValue):ta(ff(e),Qa)}(t);if(na(t)||!0!==t.multi)this.records.get(s);else{let d=this.records.get(s);d||(d=ta(void 0,Qa,!0),d.factory=()=>Ba(d.multi),this.records.set(s,d)),s=t,d.multi.push(t)}this.records.set(s,a)}hydrate(t,n){return n.value===Qa&&(n.value=Ay,n.value=n.factory()),"object"==typeof n.value&&n.value&&function By(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=ve(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function _u(e){const t=Vn(e),n=null!==t?t.factory:Gr(e);if(null!==n)return n;if(e instanceof Jn)throw new Be(204,!1);if(e instanceof Function)return function Ny(e){const t=e.length;if(t>0)throw zr(t,"?"),new Be(204,!1);const n=function or(e){const t=e&&(e[zn]||e[zt]);if(t){const n=function rr(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Be(204,!1)}function ff(e,t,n){let i;if(na(e)){const s=ve(e);return Gr(s)||_u(s)}if(pf(e))i=()=>ve(e.useValue);else if(function Ry(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Ba(e.deps||[]));else if(function ky(e){return!(!e||!e.useExisting)}(e))i=()=>yr(ve(e.useExisting));else{const s=ve(e&&(e.useClass||e.provide));if(!function Vy(e){return!!e.deps}(e))return Gr(s)||_u(s);i=()=>new s(...Ba(e.deps))}return i}function ta(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function pf(e){return null!==e&&"object"==typeof e&&Gd in e}function na(e){return"function"==typeof e}let us=(()=>{class e{static create(n,i){if(Array.isArray(n))return df({name:""},i,n,"");{const s=n.name??"";return df({name:s},n.parent,n.providers,s)}}}return e.THROW_IF_NOT_FOUND=lo,e.NULL=new cf,e.\u0275prov=wn({token:e,providedIn:"any",factory:()=>yr(pu)}),e.__NG_ELEMENT_ID__=-1,e})();function Zy(e,t){ns(Ic(e)[1],ir())}function Cu(e){let t=function Tf(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let s;if(Qn(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Be(903,"");s=t.\u0275dir}if(s){if(n){i.push(s);const d=e;d.inputs=bu(e.inputs),d.declaredInputs=bu(e.declaredInputs),d.outputs=bu(e.outputs);const g=s.hostBindings;g&&Ky(e,g);const v=s.viewQuery,N=s.contentQueries;if(v&&Qy(e,v),N&&Jy(e,N),ne(e.inputs,s.inputs),ne(e.declaredInputs,s.declaredInputs),ne(e.outputs,s.outputs),Qn(s)&&s.data.animation){const $=e.data;$.animation=($.animation||[]).concat(s.data.animation)}}const a=s.features;if(a)for(let d=0;d<a.length;d++){const g=a[d];g&&g.ngInherit&&g(e),g===Cu&&(n=!1)}}t=Object.getPrototypeOf(t)}!function qy(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const s=e[i];s.hostVars=t+=s.hostVars,s.hostAttrs=Rs(s.hostAttrs,n=Rs(n,s.hostAttrs))}}(i)}function bu(e){return e===Ee?{}:e===Ae?[]:e}function Qy(e,t){const n=e.viewQuery;e.viewQuery=n?(i,s)=>{t(i,s),n(i,s)}:t}function Jy(e,t){const n=e.contentQueries;e.contentQueries=n?(i,s,a)=>{t(i,s,a),n(i,s,a)}:t}function Ky(e,t){const n=e.hostBindings;e.hostBindings=n?(i,s)=>{t(i,s),n(i,s)}:t}let jl=null;function ra(){if(!jl){const e=$t.Symbol;if(e&&e.iterator)jl=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(jl=i)}}}return jl}function Ja(e){return!!wu(e)&&(Array.isArray(e)||!(e instanceof Map)&&ra()in e)}function wu(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ds(e,t,n){return e[t]=n}function Ur(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function yo(e,t,n,i){const s=Ur(e,t,n);return Ur(e,t+1,i)||s}function Eu(e,t,n,i){const s=Xe();return Ur(s,ts(),t)&&(Tn(),cs(tr(),s,e,t,n,i)),Eu}function sa(e,t,n,i){return Ur(e,ts(),n)?t+be(n)+i:mn}function oa(e,t,n,i,s,a){const g=yo(e,function xr(){return Zt.lFrame.bindingIndex}(),n,s);return Fr(2),g?t+be(n)+i+be(s)+a:mn}function Rf(e,t,n,i,s,a,d,g){const v=Xe(),N=Tn(),$=e+20,ee=N.firstCreatePass?function sv(e,t,n,i,s,a,d,g,v){const N=t.consts,$=Ko(t,e,4,d||null,Le(N,g));au(t,n,$,Le(N,v)),ns(t,$);const ee=$.tViews=Ll(2,$,i,s,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,N);return null!==t.queries&&(t.queries.template(t,$),ee.queries=t.queries.embeddedTView($)),$}($,N,v,t,n,i,s,a,d):N.data[$];Lr(ee,!1);const pe=v[11].createComment("");Il(N,v,pe,ee),jr(pe,v),Vl(v,v[$]=tf(pe,v,pe,ee)),Pn(ee)&&su(N,v,ee),null!=d&&ou(v,ee,g)}function Lf(e){return function er(e,t){return e[t]}(function So(){return Zt.lFrame.contextLView}(),20+e)}function Xa(e,t=jt.Default){const n=Xe();return null===n?yr(e,t):Fa(ir(),n,ve(e),t)}function Zf(){throw new Error("invalid")}function Pu(e,t,n){const i=Xe();return Ur(i,ts(),t)&&di(Tn(),tr(),i,e,t,i[11],n,!1),Pu}function Ou(e,t,n,i,s){const d=s?"class":"style";lf(e,n,t.inputs[d],d,i)}function $l(e,t,n,i){const s=Xe(),a=Tn(),d=20+e,g=s[11],v=s[d]=jc(g,t,function Xr(){return Zt.lFrame.currentNamespace}()),N=a.firstCreatePass?function Tv(e,t,n,i,s,a,d){const g=t.consts,N=Ko(t,e,2,s,Le(g,a));return au(t,n,N,Le(g,d)),null!==N.attrs&&Bl(N,N.attrs,!1),null!==N.mergedAttrs&&Bl(N,N.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,N),N}(d,a,s,0,t,n,i):a.data[d];Lr(N,!0);const $=N.mergedAttrs;null!==$&&is(g,v,$);const ee=N.classes;null!==ee&&Wc(g,v,ee);const pe=N.styles;return null!==pe&&Eh(g,v,pe),64!=(64&N.flags)&&Il(a,s,v,N),0===function ai(){return Zt.lFrame.elementDepthCount}()&&jr(v,s),function wo(){Zt.lFrame.elementDepthCount++}(),Pn(N)&&(su(a,s,N),$h(a,N,s)),null!==i&&ou(s,N),$l}function Gl(){let e=ir();Zs()?Is():(e=e.parent,Lr(e,!1));const t=e;!function Eo(){Zt.lFrame.elementDepthCount--}();const n=Tn();return n.firstCreatePass&&(ns(n,e),Or(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Aa(e){return 0!=(16&e.flags)}(t)&&Ou(n,t,Xe(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Ar(e){return 0!=(32&e.flags)}(t)&&Ou(n,t,Xe(),t.stylesWithoutHost,!1),Gl}function xu(e,t,n,i){return $l(e,t,n,i),Gl(),xu}function zl(e,t,n){const i=Xe(),s=Tn(),a=e+20,d=s.firstCreatePass?function Sv(e,t,n,i,s){const a=t.consts,d=Le(a,i),g=Ko(t,e,8,"ng-container",d);return null!==d&&Bl(g,d,!0),au(t,n,g,Le(a,s)),null!==t.queries&&t.queries.elementStart(t,g),g}(a,s,i,t,n):s.data[a];Lr(d,!0);const g=i[a]=i[11].createComment("");return Il(s,i,g,d),jr(g,i),Pn(d)&&(su(s,i,d),$h(s,d,i)),null!=n&&ou(i,d),zl}function Wl(){let e=ir();const t=Tn();return Zs()?Is():(e=e.parent,Lr(e,!1)),t.firstCreatePass&&(ns(t,e),Or(e)&&t.queries.elementEnd(e)),Wl}function Au(e,t,n){return zl(e,t,n),Wl(),Au}function qf(){return Xe()}function Iu(e){return!!e&&"function"==typeof e.then}function Qf(e){return!!e&&"function"==typeof e.subscribe}const Jf=Qf;function Nu(e,t,n,i){const s=Xe(),a=Tn(),d=ir();return function Xf(e,t,n,i,s,a,d,g){const v=Pn(i),$=e.firstCreatePass&&sf(e),ee=t[8],pe=rf(t);let Ie=!0;if(3&i.type||g){const wt=Kt(i,t),Lt=g?g(wt):wt,et=pe.length,en=g?xn=>g(gt(xn[i.index])):i.index;if(de(n)){let xn=null;if(!g&&v&&(xn=function Pv(e,t,n,i){const s=e.cleanup;if(null!=s)for(let a=0;a<s.length-1;a+=2){const d=s[a];if(d===n&&s[a+1]===i){const g=t[7],v=s[a+2];return g.length>v?g[v]:null}"string"==typeof d&&(a+=2)}return null}(e,t,s,i.index)),null!==xn)(xn.__ngLastListenerFn__||xn).__ngNextListenerFn__=a,xn.__ngLastListenerFn__=a,Ie=!1;else{a=Fu(i,t,ee,a,!1);const Wn=n.listen(Lt,s,a);pe.push(a,Wn),$&&$.push(s,en,et,et+1)}}else a=Fu(i,t,ee,a,!0),Lt.addEventListener(s,a,d),pe.push(a),$&&$.push(s,en,et,d)}else a=Fu(i,t,ee,a,!1);const We=i.outputs;let lt;if(Ie&&null!==We&&(lt=We[s])){const wt=lt.length;if(wt)for(let Lt=0;Lt<wt;Lt+=2){const hi=t[lt[Lt]][lt[Lt+1]].subscribe(a),bo=pe.length;pe.push(a,hi),$&&$.push(s,i.index,bo,-(bo+1))}}}(a,s,s[11],d,e,t,!!n,i),Nu}function ep(e,t,n,i){try{return!1!==n(i)}catch(s){return af(e,s),!1}}function Fu(e,t,n,i,s){return function a(d){if(d===Function)return i;const g=2&e.flags?S(e.index,t):t;0==(32&t[2])&&uu(g);let v=ep(t,0,i,d),N=a.__ngNextListenerFn__;for(;N;)v=ep(t,0,N,d)&&v,N=N.__ngNextListenerFn__;return s&&!1===v&&(d.preventDefault(),d.returnValue=!1),v}}function tp(e=1){return function fl(e){return(Zt.lFrame.contextLView=function Fo(e,t){for(;e>0;)t=t[15],e--;return t}(e,Zt.lFrame.contextLView))[8]}(e)}function Ov(e,t){let n=null;const i=function B_(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let s=0;s<t.length;s++){const a=t[s];if("*"!==a){if(null===i?Sh(e,a,!0):H_(i,a))return s}else n=s}return n}function np(e){const t=Xe()[B][6];if(!t.projection){const i=t.projection=zr(e?e.length:1,null),s=i.slice();let a=t.child;for(;null!==a;){const d=e?Ov(a,e):0;null!==d&&(s[d]?s[d].projectionNext=a:i[d]=a,s[d]=a),a=a.next}}}function rp(e,t=0,n){const i=Xe(),s=Tn(),a=Ko(s,20+e,16,null,n||null);null===a.projection&&(a.projection=t),Is(),64!=(64&a.flags)&&function I_(e,t,n){wh(t[11],0,t,n,hh(e,n,t),mh(n.parent||t[6],n,t))}(s,i,a)}function ku(e,t,n){return Yl(e,"",t,"",n),ku}function Yl(e,t,n,i,s){const a=Xe(),d=sa(a,t,n,i);return d!==mn&&di(Tn(),tr(),a,e,d,a[11],s,!1),Yl}function Ru(e,t,n,i,s,a,d){const g=Xe(),v=oa(g,t,n,i,s,a);return v!==mn&&di(Tn(),tr(),g,e,v,g[11],d,!1),Ru}function dp(e,t,n,i,s){const a=e[n+1],d=null===t;let g=i?Ui(a):Os(a),v=!1;for(;0!==g&&(!1===v||d);){const $=e[g+1];Iv(e[g],t)&&(v=!0,e[g+1]=i?qc($):Yc($)),g=i?Ui($):Os($)}v&&(e[n+1]=i?Yc(a):qc(a))}function Iv(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&$s(e,t)>=0}const Pr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function hp(e){return e.substring(Pr.key,Pr.keyEnd)}function fp(e,t){const n=Pr.textEnd;return n===t?-1:(t=Pr.keyEnd=function Rv(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Pr.key=t,n),pa(e,t,n))}function pa(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Lu(e,t){return function $i(e,t,n,i){const s=Xe(),a=Tn(),d=Fr(2);a.firstUpdatePass&&bp(a,e,d,i),t!==mn&&Ur(s,d,t)&&Ep(a,a.data[_r()],s,s[11],e,s[d+1]=function Wv(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=re(On(e)))),e}(t,n),i,d)}(e,t,null,!0),Lu}function vp(e){Gi(Wr,fs,e,!0)}function fs(e,t){for(let n=function Fv(e){return function gp(e){Pr.key=0,Pr.keyEnd=0,Pr.value=0,Pr.valueEnd=0,Pr.textEnd=e.length}(e),fp(e,pa(e,0,Pr.textEnd))}(t);n>=0;n=fp(t,n))Wr(e,hp(t),!0)}function Gi(e,t,n,i){const s=Tn(),a=Fr(2);s.firstUpdatePass&&bp(s,null,a,i);const d=Xe();if(n!==mn&&Ur(d,a,n)){const g=s.data[_r()];if(Mp(g,i)&&!Cp(s,a)){let v=i?g.classesWithoutHost:g.stylesWithoutHost;null!==v&&(n=Oe(v,n||"")),Ou(s,g,d,n,i)}else!function zv(e,t,n,i,s,a,d,g){s===mn&&(s=Ae);let v=0,N=0,$=0<s.length?s[0]:null,ee=0<a.length?a[0]:null;for(;null!==$||null!==ee;){const pe=v<s.length?s[v+1]:void 0,Ie=N<a.length?a[N+1]:void 0;let lt,We=null;$===ee?(v+=2,N+=2,pe!==Ie&&(We=ee,lt=Ie)):null===ee||null!==$&&$<ee?(v+=2,We=$):(N+=2,We=ee,lt=Ie),null!==We&&Ep(e,t,n,i,We,lt,d,g),$=v<s.length?s[v]:null,ee=N<a.length?a[N]:null}}(s,g,d,d[11],d[a+1],d[a+1]=function Gv(e,t,n){if(null==n||""===n)return Ae;const i=[],s=On(n);if(Array.isArray(s))for(let a=0;a<s.length;a++)e(i,s[a],!0);else if("object"==typeof s)for(const a in s)s.hasOwnProperty(a)&&e(i,a,s[a]);else"string"==typeof s&&t(i,s);return i}(e,t,n),i,a)}}function Cp(e,t){return t>=e.expandoStartIndex}function bp(e,t,n,i){const s=e.data;if(null===s[n+1]){const a=s[_r()],d=Cp(e,n);Mp(a,i)&&null===t&&!d&&(t=!1),t=function jv(e,t,n,i){const s=function Fs(e){const t=Zt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let a=i?t.residualClasses:t.residualStyles;if(null===s)0===(i?t.classBindings:t.styleBindings)&&(n=el(n=Vu(null,e,t,n,i),t.attrs,i),a=null);else{const d=t.directiveStylingLast;if(-1===d||e[d]!==s)if(n=Vu(s,e,t,n,i),null===a){let v=function Uv(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==Os(i))return e[Ui(i)]}(e,t,i);void 0!==v&&Array.isArray(v)&&(v=Vu(null,e,t,v[1],i),v=el(v,t.attrs,i),function Hv(e,t,n,i){e[Ui(n?t.classBindings:t.styleBindings)]=i}(e,t,i,v))}else a=function $v(e,t,n){let i;const s=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<s;a++)i=el(i,e[a].hostAttrs,n);return el(i,t.attrs,n)}(e,t,i)}return void 0!==a&&(i?t.residualClasses=a:t.residualStyles=a),n}(s,a,t,i),function xv(e,t,n,i,s,a){let d=a?t.classBindings:t.styleBindings,g=Ui(d),v=Os(d);e[i]=n;let $,N=!1;if(Array.isArray(n)){const ee=n;$=ee[1],(null===$||$s(ee,$)>0)&&(N=!0)}else $=n;if(s)if(0!==v){const pe=Ui(e[g+1]);e[i+1]=Fl(pe,g),0!==pe&&(e[pe+1]=Zc(e[pe+1],i)),e[g+1]=function W_(e,t){return 131071&e|t<<17}(e[g+1],i)}else e[i+1]=Fl(g,0),0!==g&&(e[g+1]=Zc(e[g+1],i)),g=i;else e[i+1]=Fl(v,0),0===g?g=i:e[v+1]=Zc(e[v+1],i),v=i;N&&(e[i+1]=Yc(e[i+1])),dp(e,$,i,!0),dp(e,$,i,!1),function Av(e,t,n,i,s){const a=s?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&$s(a,t)>=0&&(n[i+1]=qc(n[i+1]))}(t,$,e,i,a),d=Fl(g,v),a?t.classBindings=d:t.styleBindings=d}(s,a,t,n,d,i)}}function Vu(e,t,n,i,s){let a=null;const d=n.directiveEnd;let g=n.directiveStylingLast;for(-1===g?g=n.directiveStart:g++;g<d&&(a=t[g],i=el(i,a.hostAttrs,s),a!==e);)g++;return null!==e&&(n.directiveStylingLast=g),i}function el(e,t,n){const i=n?1:2;let s=-1;if(null!==t)for(let a=0;a<t.length;a++){const d=t[a];"number"==typeof d?s=d:s===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Wr(e,d,!!n||t[++a]))}return void 0===e?null:e}function Ep(e,t,n,i,s,a,d,g){if(!(3&t.type))return;const v=e.data,N=v[g+1];Zl(function Nh(e){return 1==(1&e)}(N)?Dp(v,t,n,s,Os(N),d):void 0)||(Zl(a)||function Ih(e){return 2==(2&e)}(N)&&(a=Dp(v,null,n,s,g,d)),function F_(e,t,n,i,s){const a=de(e);if(t)s?a?e.addClass(n,i):n.classList.add(i):a?e.removeClass(n,i):n.classList.remove(i);else{let d=-1===i.indexOf("-")?void 0:ls.DashCase;if(null==s)a?e.removeStyle(n,i,d):n.style.removeProperty(i);else{const g="string"==typeof s&&s.endsWith("!important");g&&(s=s.slice(0,-10),d|=ls.Important),a?e.setStyle(n,i,s,d):n.style.setProperty(i,s,g?"important":"")}}}(i,d,fn(_r(),n),s,a))}function Dp(e,t,n,i,s,a){const d=null===t;let g;for(;s>0;){const v=e[s],N=Array.isArray(v),$=N?v[1]:v,ee=null===$;let pe=n[s+1];pe===mn&&(pe=ee?Ae:void 0);let Ie=ee?Go(pe,i):$===i?pe:void 0;if(N&&!Zl(Ie)&&(Ie=Go(v,i)),Zl(Ie)&&(g=Ie,d))return g;const We=e[s+1];s=d?Ui(We):Os(We)}if(null!==t){let v=a?t.residualClasses:t.residualStyles;null!=v&&(g=Go(v,i))}return g}function Zl(e){return void 0!==e}function Mp(e,t){return 0!=(e.flags&(t?16:32))}function Tp(e,t=""){const n=Xe(),i=Tn(),s=e+20,a=i.firstCreatePass?Ko(i,s,1,t,null):i.data[s],d=n[s]=function Bc(e,t){return de(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Il(i,n,d,a),Lr(a,!1)}function Bu(e){return ql("",e,""),Bu}function ql(e,t,n){const i=Xe(),s=sa(i,e,t,n);return s!==mn&&xs(i,_r(),s),ql}function kp(e,t,n){Gi(Wr,fs,sa(Xe(),e,t,n),!0)}function ju(e,t,n){const i=Xe();return Ur(i,ts(),t)&&di(Tn(),tr(),i,e,t,i[11],n,!0),ju}const vo=void 0;var dC=["en",[["a","p"],["AM","PM"],vo],[["AM","PM"],vo,vo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],vo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],vo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",vo,"{1} 'at' {0}",vo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function uC(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let ga={};function Uu(e){const t=function hC(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Yp(t);if(n)return n;const i=t.split("-")[0];if(n=Yp(i),n)return n;if("en"===i)return dC;throw new Error(`Missing locale data for the locale "${e}".`)}function Wp(e){return Uu(e)[rn.PluralCase]}function Yp(e){return e in ga||(ga[e]=$t.ng&&$t.ng.common&&$t.ng.common.locales&&$t.ng.common.locales[e]),ga[e]}var rn=(()=>((rn=rn||{})[rn.LocaleId=0]="LocaleId",rn[rn.DayPeriodsFormat=1]="DayPeriodsFormat",rn[rn.DayPeriodsStandalone=2]="DayPeriodsStandalone",rn[rn.DaysFormat=3]="DaysFormat",rn[rn.DaysStandalone=4]="DaysStandalone",rn[rn.MonthsFormat=5]="MonthsFormat",rn[rn.MonthsStandalone=6]="MonthsStandalone",rn[rn.Eras=7]="Eras",rn[rn.FirstDayOfWeek=8]="FirstDayOfWeek",rn[rn.WeekendRange=9]="WeekendRange",rn[rn.DateFormat=10]="DateFormat",rn[rn.TimeFormat=11]="TimeFormat",rn[rn.DateTimeFormat=12]="DateTimeFormat",rn[rn.NumberSymbols=13]="NumberSymbols",rn[rn.NumberFormats=14]="NumberFormats",rn[rn.CurrencyCode=15]="CurrencyCode",rn[rn.CurrencySymbol=16]="CurrencySymbol",rn[rn.CurrencyName=17]="CurrencyName",rn[rn.Currencies=18]="Currencies",rn[rn.Directionality=19]="Directionality",rn[rn.PluralCase=20]="PluralCase",rn[rn.ExtraData=21]="ExtraData",rn))();const Ql="en-US";let Zp=Ql;function Gu(e,t,n,i,s){if(e=ve(e),Array.isArray(e))for(let a=0;a<e.length;a++)Gu(e[a],t,n,i,s);else{const a=Tn(),d=Xe();let g=na(e)?e:ve(e.provide),v=ff(e);const N=ir(),$=1048575&N.providerIndexes,ee=N.directiveStart,pe=N.providerIndexes>>20;if(na(e)||!e.multi){const Ie=new vs(v,s,Xa),We=Wu(g,t,s?$:$+pe,ee);-1===We?(Bs(Vs(N,d),a,g),zu(a,e,t.length),t.push(g),N.directiveStart++,N.directiveEnd++,s&&(N.providerIndexes+=1048576),n.push(Ie),d.push(Ie)):(n[We]=Ie,d[We]=Ie)}else{const Ie=Wu(g,t,$+pe,ee),We=Wu(g,t,$,$+pe),lt=Ie>=0&&n[Ie],wt=We>=0&&n[We];if(s&&!wt||!s&&!lt){Bs(Vs(N,d),a,g);const Lt=function ub(e,t,n,i,s){const a=new vs(e,n,Xa);return a.multi=[],a.index=t,a.componentProviders=0,yg(a,s,i&&!n),a}(s?cb:lb,n.length,s,i,v);!s&&wt&&(n[We].providerFactory=Lt),zu(a,e,t.length,0),t.push(g),N.directiveStart++,N.directiveEnd++,s&&(N.providerIndexes+=1048576),n.push(Lt),d.push(Lt)}else zu(a,e,Ie>-1?Ie:We,yg(n[s?We:Ie],v,!s&&i));!s&&i&&wt&&n[We].componentProviders++}}}function zu(e,t,n,i){const s=na(t),a=function Ly(e){return!!e.useClass}(t);if(s||a){const v=(a?ve(t.useClass):t).prototype.ngOnDestroy;if(v){const N=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const $=N.indexOf(n);-1===$?N.push(n,[i,v]):N[$+1].push(i,v)}else N.push(n,v)}}}function yg(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Wu(e,t,n,i){for(let s=n;s<i;s++)if(t[s]===e)return s;return-1}function lb(e,t,n,i){return Yu(this.multi,[])}function cb(e,t,n,i){const s=this.multi;let a;if(this.providerFactory){const d=this.providerFactory.componentProviders,g=y(n,n[1],this.providerFactory.index,i);a=g.slice(0,d),Yu(s,a);for(let v=d;v<g.length;v++)a.push(g[v])}else a=[],Yu(s,a);return a}function Yu(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function vg(e,t=[]){return n=>{n.providersResolver=(i,s)=>function ab(e,t,n){const i=Tn();if(i.firstCreatePass){const s=Qn(e);Gu(n,i.data,i.blueprint,s,!0),Gu(t,i.data,i.blueprint,s,!1)}}(i,s?s(e):e,t)}}class Cg{}class fb{resolveComponentFactory(t){throw function hb(e){const t=Error(`No component factory found for ${re(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let tc=(()=>{class e{}return e.NULL=new fb,e})();function pb(){return _a(ir(),Xe())}function _a(e,t){return new sl(Kt(e,t))}let sl=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=pb,e})();function gb(e){return e instanceof sl?e.nativeElement:e}class wg{}let mb=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function yb(){const e=Xe(),n=S(ir().index,e);return function _b(e){return e[11]}(Hn(n)?n:e)}(),e})(),vb=(()=>{class e{}return e.\u0275prov=wn({token:e,providedIn:"root",factory:()=>null}),e})();class Eg{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Cb=new Eg("13.3.11"),Zu={};function nc(e,t,n,i,s=!1){for(;null!==n;){const a=t[n.index];if(null!==a&&i.push(gt(a)),qn(a))for(let g=10;g<a.length;g++){const v=a[g],N=v[1].firstChild;null!==N&&nc(v[1],v,N,i)}const d=n.type;if(8&d)nc(e,t,n.child,i);else if(32&d){const g=Rc(n,t);let v;for(;v=g();)i.push(v)}else if(16&d){const g=Ch(t,n);if(Array.isArray(g))i.push(...g);else{const v=Wa(t[B]);nc(v[1],v,g,i,!0)}}n=s?n.projectionNext:n.next}return i}class ol{constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,n=t[1];return nc(n,t,n.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(qn(t)){const n=t[8],i=n?n.indexOf(this):-1;i>-1&&(Uc(t,i),Kn(n,i))}this._attachedToViewContainer=!1}dh(this._lView[1],this._lView)}onDestroy(t){Yh(this._lView[1],this._lView,null,t)}markForCheck(){uu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function hu(e,t,n){const i=t[10];i.begin&&i.begin();try{ea(e,t,e.template,n)}catch(s){throw af(t,s),s}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Be(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function D_(e,t){Ya(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Be(902,"");this._appRef=t}}class bb extends ol{constructor(t){super(t),this._view=t}detectChanges(){nf(this._view)}checkNoChanges(){}get context(){return null}}class Dg extends tc{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ct(t);return new qu(n,this.ngModule)}}function Mg(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class qu extends Cg{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function G_(e){return e.map($_).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Mg(this.componentDef.inputs)}get outputs(){return Mg(this.componentDef.outputs)}create(t,n,i,s){const a=(s=s||this.ngModule)?function Eb(e,t){return{get:(n,i,s)=>{const a=e.get(n,Zu,s);return a!==Zu||i===Zu?a:t.get(n,i,s)}}}(t,s.injector):t,d=a.get(wg,Ve),g=a.get(vb,null),v=d.createRenderer(null,this.componentDef),N=this.componentDef.selectors[0][0]||"div",$=i?function Wh(e,t,n){if(de(e))return e.selectRootElement(t,n===At.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(v,i,this.componentDef.encapsulation):jc(d.createRenderer(null,this.componentDef),N,function wb(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(N)),ee=this.componentDef.onPush?576:528,pe=function Mf(e,t){return{components:[],scheduler:e||m_,clean:Py,playerHandler:t||null,flags:0}}(),Ie=Ll(0,null,null,1,0,null,null,null,null,null),We=Za(null,Ie,pe,ee,null,null,d,v,g,a);let lt,wt;ks(We);try{const Lt=function Ef(e,t,n,i,s,a){const d=n[1];n[20]=e;const v=Ko(d,20,2,"#host",null),N=v.mergedAttrs=t.hostAttrs;null!==N&&(Bl(v,N,!0),null!==e&&(is(s,e,N),null!==v.classes&&Wc(s,e,v.classes),null!==v.styles&&Eh(s,e,v.styles)));const $=i.createRenderer(e,t),ee=Za(n,Gh(t),null,t.onPush?64:16,n[20],v,i,$,a||null,null);return d.firstCreatePass&&(Bs(Vs(v,n),d,t.type),Kh(d,v),Xh(v,n.length,1)),Vl(n,ee),n[20]=ee}($,this.componentDef,We,d,v);if($)if(i)is(v,$,["ng-version",Cb.full]);else{const{attrs:et,classes:en}=function z_(e){const t=[],n=[];let i=1,s=2;for(;i<e.length;){let a=e[i];if("string"==typeof a)2===s?""!==a&&t.push(a,e[++i]):8===s&&n.push(a);else{if(!ji(s))break;s=a}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);et&&is(v,$,et),en&&en.length>0&&Wc(v,$,en.join(" "))}if(wt=kn(Ie,20),void 0!==n){const et=wt.projection=[];for(let en=0;en<this.ngContentSelectors.length;en++){const xn=n[en];et.push(null!=xn?Array.from(xn):null)}}lt=function Df(e,t,n,i,s){const a=n[1],d=function hy(e,t,n){const i=ir();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ef(e,i,t,Xo(e,t,1,null),n));const s=y(t,e,i.directiveStart,i);jr(s,t);const a=Kt(i,t);return a&&jr(a,t),s}(a,n,t);if(i.components.push(d),e[8]=d,s&&s.forEach(v=>v(d,t)),t.contentQueries){const v=ir();t.contentQueries(1,d,v.directiveStart)}const g=ir();return!a.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(li(g.index),Qh(n[1],g,0,g.directiveStart,g.directiveEnd,t),Jh(t,d)),d}(Lt,this.componentDef,We,pe,[Zy]),qa(Ie,We,null)}finally{_s()}return new Mb(this.componentType,lt,_a(wt,We),We,wt)}}class Mb extends class db{}{constructor(t,n,i,s,a){super(),this.location=i,this._rootLView=s,this._tNode=a,this.instance=n,this.hostView=this.changeDetectorRef=new bb(s),this.componentType=t}get injector(){return new O(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class ya{}class Tg{}const va=new Map;class Og extends ya{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Dg(this);const i=Jt(t);this._bootstrapComponents=as(i.bootstrap),this._r3Injector=hf(t,n,[{provide:ya,useValue:this},{provide:tc,useValue:this.componentFactoryResolver}],re(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=us.THROW_IF_NOT_FOUND,i=jt.Default){return t===us||t===ya||t===pu?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Qu extends Tg{constructor(t){super(),this.moduleType=t,null!==Jt(t)&&function Sb(e){const t=new Set;!function n(i){const s=Jt(i,!0),a=s.id;null!==a&&(function Sg(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${re(t)} vs ${re(t.name)}`)}(a,va.get(a),i),va.set(a,i));const d=as(s.imports);for(const g of d)t.has(g)||(t.add(g),n(g))}(e)}(t)}create(t){return new Og(this.moduleType,t)}}function xg(e,t,n,i){return function Fg(e,t,n,i,s,a){const d=t+n;return Ur(e,d,s)?ds(e,d+1,a?i.call(a,s):i(s)):al(e,d+1)}(Xe(),Mr(),e,t,n,i)}function Ag(e,t,n,i,s){return function kg(e,t,n,i,s,a,d){const g=t+n;return yo(e,g,s,a)?ds(e,g+2,d?i.call(d,s,a):i(s,a)):al(e,g+2)}(Xe(),Mr(),e,t,n,i,s)}function Ig(e,t,n,i,s,a){return function Rg(e,t,n,i,s,a,d,g){const v=t+n;return function Ul(e,t,n,i,s){const a=yo(e,t,n,i);return Ur(e,t+2,s)||a}(e,v,s,a,d)?ds(e,v+3,g?i.call(g,s,a,d):i(s,a,d)):al(e,v+3)}(Xe(),Mr(),e,t,n,i,s,a)}function Ng(e,t,n,i,s,a,d){return function Lg(e,t,n,i,s,a,d,g,v){const N=t+n;return function xi(e,t,n,i,s,a){const d=yo(e,t,n,i);return yo(e,t+2,s,a)||d}(e,N,s,a,d,g)?ds(e,N+4,v?i.call(v,s,a,d,g):i(s,a,d,g)):al(e,N+4)}(Xe(),Mr(),e,t,n,i,s,a,d)}function al(e,t){const n=e[t];return n===mn?void 0:n}function Ju(e){return t=>{setTimeout(e,void 0,t)}}const ps=class Ub extends r.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){let s=t,a=n||(()=>null),d=i;if(t&&"object"==typeof t){const v=t;s=v.next?.bind(v),a=v.error?.bind(v),d=v.complete?.bind(v)}this.__isAsync&&(a=Ju(a),s&&(s=Ju(s)),d&&(d=Ju(d)));const g=super.subscribe({next:s,error:a,complete:d});return t instanceof _.w&&t.add(g),g}};function Hb(){return this._results[ra()]()}class Ku{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=ra(),i=Ku.prototype;i[n]||(i[n]=Hb)}get changes(){return this._changes||(this._changes=new ps)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const s=ei(t);(this._changesDetected=!function uc(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let s=e[i],a=t[i];if(n&&(s=n(s),a=n(a)),a!==s)return!1}return!0}(i._results,s,n))&&(i._results=s,i.length=s.length,i.last=s[this.length-1],i.first=s[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let cl=(()=>{class e{}return e.__NG_ELEMENT_ID__=zb,e})();const $b=cl,Gb=class extends $b{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Za(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[19];return null!==a&&(i[19]=a.createEmbeddedView(n)),qa(n,i,t),new ol(i)}};function zb(){return rc(ir(),Xe())}function rc(e,t){return 4&e.type?new Gb(t,e,_a(e,t)):null}let ic=(()=>{class e{}return e.__NG_ELEMENT_ID__=Wb,e})();function Wb(){return Ug(ir(),Xe())}const Yb=ic,Bg=class extends Yb{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return _a(this._hostTNode,this._hostLView)}get injector(){return new O(this._hostTNode,this._hostLView)}get parentInjector(){const t=ws(this._hostTNode,this._hostLView);if(no(t)){const n=ki(t,this._hostLView),i=Fi(t);return new O(n[1].data[i+8],n)}return new O(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=jg(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const s=t.createEmbeddedView(n||{});return this.insert(s,i),s}createComponent(t,n,i,s,a){const d=t&&!function ao(e){return"function"==typeof e}(t);let g;if(d)g=n;else{const ee=n||{};g=ee.index,i=ee.injector,s=ee.projectableNodes,a=ee.ngModuleRef}const v=d?t:new qu(Ct(t)),N=i||this.parentInjector;if(!a&&null==v.ngModule){const pe=(d?N:this.parentInjector).get(ya,null);pe&&(a=pe)}const $=v.create(N,s,void 0,a);return this.insert($.hostView,g),$}insert(t,n){const i=t._lView,s=i[1];if(function W(e){return qn(e[3])}(i)){const $=this.indexOf(t);if(-1!==$)this.detach($);else{const ee=i[3],pe=new Bg(ee,ee[6],ee[3]);pe.detach(pe.indexOf(t))}}const a=this._adjustIndex(n),d=this._lContainer;!function T_(e,t,n,i){const s=10+i,a=n.length;i>0&&(n[s-1][4]=t),i<a-10?(t[4]=n[s],ti(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;const d=t[17];null!==d&&n!==d&&function S_(e,t){const n=e[9];t[B]!==t[3][3][B]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(d,t);const g=t[19];null!==g&&g.insertView(e),t[2]|=128}(s,i,d,a);const g=Gc(a,d),v=i[11],N=Al(v,d[7]);return null!==N&&function E_(e,t,n,i,s,a){i[0]=s,i[6]=t,Ya(e,i,n,1,s,a)}(s,d[6],v,i,N,g),t.attachToViewContainerRef(),ti(Xu(d),a,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=jg(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),i=Uc(this._lContainer,n);i&&(Kn(Xu(this._lContainer),n),dh(i[1],i))}detach(t){const n=this._adjustIndex(t,-1),i=Uc(this._lContainer,n);return i&&null!=Kn(Xu(this._lContainer),n)?new ol(i):null}_adjustIndex(t,n=0){return t??this.length+n}};function jg(e){return e[8]}function Xu(e){return e[8]||(e[8]=[])}function Ug(e,t){let n;const i=t[e.index];if(qn(i))n=i;else{let s;if(8&e.type)s=gt(i);else{const a=t[11];s=a.createComment("");const d=Kt(e,t);_o(a,Al(a,d),s,function A_(e,t){return de(e)?e.nextSibling(t):t.nextSibling}(a,d),!1)}t[e.index]=n=tf(i,t,s,e),Vl(t,n)}return new Bg(n,e,t)}class ed{constructor(t){this.queryList=t,this.matches=null}clone(){return new ed(this.queryList)}setDirty(){this.queryList.setDirty()}}class td{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const i=null!==t.contentQueries?t.contentQueries[0]:n.length,s=[];for(let a=0;a<i;a++){const d=n.getByIndex(a);s.push(this.queries[d.indexInDeclarationView].clone())}return new td(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==Qg(t,n).matches&&this.queries[n].setDirty()}}class Hg{constructor(t,n,i=null){this.predicate=t,this.flags=n,this.read=i}}class nd{constructor(t=[]){this.queries=t}elementStart(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let i=0;i<this.length;i++){const s=null!==n?n.length:0,a=this.getByIndex(i).embeddedTView(t,s);a&&(a.indexInDeclarationView=i,null!==n?n.push(a):n=[a])}return null!==n?new nd(n):null}template(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class rd{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new rd(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==n;)i=i.parent;return n===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const i=this.metadata.predicate;if(Array.isArray(i))for(let s=0;s<i.length;s++){const a=i[s];this.matchTNodeWithReadOption(t,n,Qb(n,a)),this.matchTNodeWithReadOption(t,n,Uo(n,t,a,!1,!1))}else i===cl?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Uo(n,t,i,!1,!1))}matchTNodeWithReadOption(t,n,i){if(null!==i){const s=this.metadata.read;if(null!==s)if(s===sl||s===ic||s===cl&&4&n.type)this.addMatch(n.index,-2);else{const a=Uo(n,t,s,!1,!1);null!==a&&this.addMatch(n.index,a)}else this.addMatch(n.index,i)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function Qb(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function Kb(e,t,n,i){return-1===n?function Jb(e,t){return 11&e.type?_a(e,t):4&e.type?rc(e,t):null}(t,e):-2===n?function Xb(e,t,n){return n===sl?_a(t,e):n===cl?rc(t,e):n===ic?Ug(t,e):void 0}(e,t,i):y(e,e[1],n,t)}function $g(e,t,n,i){const s=t[19].queries[i];if(null===s.matches){const a=e.data,d=n.matches,g=[];for(let v=0;v<d.length;v+=2){const N=d[v];g.push(N<0?null:Kb(t,a[N],d[v+1],n.metadata.read))}s.matches=g}return s.matches}function id(e,t,n,i){const s=e.queries.getByIndex(n),a=s.matches;if(null!==a){const d=$g(e,t,s,n);for(let g=0;g<a.length;g+=2){const v=a[g];if(v>0)i.push(d[g/2]);else{const N=a[g+1],$=t[-v];for(let ee=10;ee<$.length;ee++){const pe=$[ee];pe[17]===pe[3]&&id(pe[1],pe,N,i)}if(null!==$[9]){const ee=$[9];for(let pe=0;pe<ee.length;pe++){const Ie=ee[pe];id(Ie[1],Ie,N,i)}}}}}return i}function Gg(e){const t=Xe(),n=Tn(),i=Ao();Js(i+1);const s=Qg(n,i);if(e.dirty&&b(t)===(2==(2&s.metadata.flags))){if(null===s.matches)e.reset([]);else{const a=s.crossesNgTemplate?id(n,t,i,[]):$g(n,t,s,i);e.reset(a,gb),e.notifyOnChanges()}return!0}return!1}function zg(e,t,n){const i=Tn();i.firstCreatePass&&(qg(i,new Hg(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),Zg(i,Xe(),t)}function Wg(e,t,n,i){const s=Tn();if(s.firstCreatePass){const a=ir();qg(s,new Hg(t,n,i),a.index),function t0(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(s,e),2==(2&n)&&(s.staticContentQueries=!0)}Zg(s,Xe(),n)}function Yg(){return function e0(e,t){return e[19].queries[t].queryList}(Xe(),Ao())}function Zg(e,t,n){const i=new Ku(4==(4&n));Yh(e,t,i,i.destroy),null===t[19]&&(t[19]=new td),t[19].queries.push(new ed(i))}function qg(e,t,n){null===e.queries&&(e.queries=new nd),e.queries.track(new rd(t,n))}function Qg(e,t){return e.queries.getByIndex(t)}function Jg(e,t){return rc(e,t)}function ac(...e){}const pm=new Jn("Application Initializer");let ud=(()=>{class e{constructor(n){this.appInits=n,this.resolve=ac,this.reject=ac,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,s)=>{this.resolve=i,this.reject=s})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s<this.appInits.length;s++){const a=this.appInits[s]();if(Iu(a))n.push(a);else if(Jf(a)){const d=new Promise((g,v)=>{a.subscribe({complete:g,error:v})});n.push(d)}}Promise.all(n).then(()=>{i()}).catch(s=>{this.reject(s)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(yr(pm,8))},e.\u0275prov=wn({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const gm=new Jn("AppId",{providedIn:"root",factory:function mm(){return`${dd()}${dd()}${dd()}`}});function dd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const _m=new Jn("Platform Initializer"),v0=new Jn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),ym=new Jn("appBootstrapListener");let C0=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=wn({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const hd=new Jn("LocaleId",{providedIn:"root",factory:()=>vc(hd,jt.Optional|jt.SkipSelf)||function b0(){return typeof $localize<"u"&&$localize.locale||Ql}()}),w0=new Jn("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class E0{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let D0=(()=>{class e{compileModuleSync(n){return new Qu(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),a=as(Jt(n).declarations).reduce((d,g)=>{const v=Ct(g);return v&&d.push(new qu(v)),d},[]);return new E0(i,a)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=wn({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const T0=(()=>Promise.resolve(0))();function fd(e){typeof Zone>"u"?T0.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class zi{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ps(!1),this.onMicrotaskEmpty=new ps(!1),this.onStable=new ps(!1),this.onError=new ps(!1),typeof Zone>"u")throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&n,s.shouldCoalesceRunChangeDetection=i,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function S0(){let e=$t.requestAnimationFrame,t=$t.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function x0(e){const t=()=>{!function O0(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call($t,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,gd(e),e.isCheckStableRunning=!0,pd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),gd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,a,d,g)=>{try{return vm(e),n.invokeTask(s,a,d,g)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),Cm(e)}},onInvoke:(n,i,s,a,d,g,v)=>{try{return vm(e),n.invoke(s,a,d,g,v)}finally{e.shouldCoalesceRunChangeDetection&&t(),Cm(e)}},onHasTask:(n,i,s,a)=>{n.hasTask(s,a),i===s&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,gd(e),pd(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,i,s,a)=>(n.handleError(s,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!zi.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(zi.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,s){const a=this._inner,d=a.scheduleEventTask("NgZoneEvent: "+s,t,P0,ac,ac);try{return a.runTask(d,n,i)}finally{a.cancelTask(d)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const P0={};function pd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function gd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function vm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Cm(e){e._nesting--,pd(e)}class A0{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ps,this.onMicrotaskEmpty=new ps,this.onStable=new ps,this.onError=new ps}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,s){return t.apply(n,i)}}let bm=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{zi.assertNotInAngularZone(),fd(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())fd(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,s){let a=-1;i&&i>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(d=>d.timeoutId!==a),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:a,updateCb:s})}whenStable(n,i,s){if(s&&!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(n,i,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,s){return[]}}return e.\u0275fac=function(n){return new(n||e)(yr(zi))},e.\u0275prov=wn({token:e,factory:e.\u0275fac}),e})(),I0=(()=>{class e{constructor(){this._applications=new Map,md.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return md.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=wn({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();class N0{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function F0(e){md=e}let md=new N0,dl=null;const wm=new Jn("AllowMultipleToken"),Em=new Jn("PlatformOnDestroy");class L0{constructor(t,n){this.name=t,this.token=n}}function Dm(e,t,n=[]){const i=`Platform: ${t}`,s=new Jn(i);return(a=[])=>{let d=_d();if(!d||d.injector.get(wm,!1)){const g=[...n,...a,{provide:s,useValue:!0}];e?e(g):function V0(e){if(dl&&!dl.get(wm,!1))throw new Be(400,"");dl=e;const t=e.get(Mm),n=e.get(_m,null);n&&n.forEach(i=>i())}(function j0(e=[],t){return us.create({name:t,providers:[{provide:gu,useValue:"platform"},{provide:Em,useValue:()=>dl=null},...e]})}(g,i))}return function B0(e){const t=_d();if(!t)throw new Be(401,"");return t}()}}function _d(){return dl?.get(Mm)??null}let Mm=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const g=function U0(e,t){let n;return n="noop"===e?new A0:("zone.js"===e?void 0:e)||new zi({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!t?.ngZoneEventCoalescing,shouldCoalesceRunChangeDetection:!!t?.ngZoneRunCoalescing}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),v=[{provide:zi,useValue:g}];return g.run(()=>{const N=us.create({providers:v,parent:this.injector,name:n.moduleType.name}),$=n.create(N),ee=$.injector.get(xl,null);if(!ee)throw new Be(402,"");return g.runOutsideAngular(()=>{const pe=g.onError.subscribe({next:Ie=>{ee.handleError(Ie)}});$.onDestroy(()=>{vd(this._modules,$),pe.unsubscribe()})}),function H0(e,t,n){try{const i=n();return Iu(i)?i.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(ee,g,()=>{const pe=$.injector.get(ud);return pe.runInitializers(),pe.donePromise.then(()=>(function mC(e){Ht(e,"Expected localeId to be defined"),"string"==typeof e&&(Zp=e.toLowerCase().replace(/_/g,"-"))}($.injector.get(hd,Ql)||Ql),this._moduleDoBootstrap($),$))})})}bootstrapModule(n,i=[]){const s=Tm({},i);return function k0(e,t,n){const i=new Qu(n);return Promise.resolve(i)}(0,0,n).then(a=>this.bootstrapModuleFactory(a,s))}_moduleDoBootstrap(n){const i=n.injector.get(yd);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(s=>i.bootstrap(s));else{if(!n.instance.ngDoBootstrap)throw new Be(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Be(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i()),this._injector.get(Em,null)?.(),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(yr(us))},e.\u0275prov=wn({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Tm(e,t){return Array.isArray(t)?t.reduce(Tm,e):{...e,...t}}let yd=(()=>{class e{constructor(n,i,s,a){this._zone=n,this._injector=i,this._exceptionHandler=s,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const d=new V.y(v=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{v.next(this._stable),v.complete()})}),g=new V.y(v=>{let N;this._zone.runOutsideAngular(()=>{N=this._zone.onStable.subscribe(()=>{zi.assertNotInAngularZone(),fd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,v.next(!0))})})});const $=this._zone.onUnstable.subscribe(()=>{zi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{v.next(!1)}))});return()=>{N.unsubscribe(),$.unsubscribe()}});this.isStable=(0,j.T)(d,g.pipe(function L(){return e=>(0,x.x)()(function I(e,t){return function(i){let s;if(s="function"==typeof e?e:function(){return e},"function"==typeof t)return i.lift(new R(s,t));const a=Object.create(i,A.N);return a.source=i,a.subjectFactory=s,a}}(H)(e))}()))}bootstrap(n,i){if(!this._initStatus.done)throw new Be(405,"");let s;s=n instanceof Cg?n:this._injector.get(tc).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function R0(e){return e.isBoundToModule}(s)?void 0:this._injector.get(ya),g=s.create(us.NULL,[],i||s.selector,a),v=g.location.nativeElement,N=g.injector.get(bm,null),$=N&&g.injector.get(I0);return N&&$&&$.registerApplication(v,N),g.onDestroy(()=>{this.detachView(g.hostView),vd(this.components,g),$&&$.unregisterApplication(v)}),this._loadComponent(g),g}tick(){if(this._runningTick)throw new Be(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;vd(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(ym,[]).concat(this._bootstrapListeners).forEach(s=>s(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(yr(zi),yr(us),yr(xl),yr(ud))},e.\u0275prov=wn({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function vd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Pm=!0,Om=!1;function G0(){return Om=!0,Pm}function z0(){if(Om)throw new Error("Cannot enable prod mode after platform setup.");Pm=!1}let W0=(()=>{class e{}return e.__NG_ELEMENT_ID__=Y0,e})();function Y0(e){return function Z0(e,t,n){if(qr(e)&&!n){const i=S(e.index,t);return new ol(i,i)}return 47&e.type?new ol(t[B],t):null}(ir(),Xe(),16==(16&e))}class Nm{constructor(){}supports(t){return Ja(t)}create(t){return new ew(t)}}const X0=(e,t)=>t;class ew{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||X0}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,s=0,a=null;for(;n||i;){const d=!i||n&&n.currentIndex<km(i,s,a)?n:i,g=km(d,s,a),v=d.currentIndex;if(d===i)s--,i=i._nextRemoved;else if(n=n._next,null==d.previousIndex)s++;else{a||(a=[]);const N=g-s,$=v-s;if(N!=$){for(let pe=0;pe<N;pe++){const Ie=pe<a.length?a[pe]:a[pe]=0,We=Ie+pe;$<=We&&We<N&&(a[pe]=Ie+1)}a[d.previousIndex]=$-N}}g!==v&&t(d,g,v)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!Ja(t))throw new Be(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let s,a,d,n=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let g=0;g<this.length;g++)a=t[g],d=this._trackByFn(g,a),null!==n&&Object.is(n.trackById,d)?(i&&(n=this._verifyReinsertion(n,a,d,g)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,d,g),i=!0),n=n._next}else s=0,function iv(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[ra()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(t,g=>{d=this._trackByFn(s,g),null!==n&&Object.is(n.trackById,d)?(i&&(n=this._verifyReinsertion(n,g,d,s)),Object.is(n.item,g)||this._addIdentityChange(n,g)):(n=this._mismatch(n,g,d,s),i=!0),n=n._next,s++}),this.length=s;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,s){let a;return null===t?a=this._itTail:(a=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,a,s)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,s))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,a,s)):t=this._addAfter(new tw(n,i),a,s),t}_verifyReinsertion(t,n,i,s){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==a?t=this._reinsertAfter(a,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,a=t._nextRemoved;return null===s?this._removalsHead=a:s._nextRemoved=a,null===a?this._removalsTail=s:a._prevRemoved=s,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const s=null===n?this._itHead:n._next;return t._next=s,t._prev=n,null===s?this._itTail=t:s._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Fm),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Fm),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class tw{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class nw{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class Fm{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new nw,this.map.set(n,i)),i.add(t)}get(t,n){const s=this.map.get(t);return s?s.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function km(e,t,n){const i=e.previousIndex;if(null===i)return i;let s=0;return n&&i<n.length&&(s=n[i]),i+t+s}class Rm{constructor(){}supports(t){return t instanceof Map||wu(t)}create(){return new rw}}class rw{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||wu(t)))throw new Be(900,"")}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,s)=>{if(n&&n.key===s)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const a=this._getOrCreateRecordForKey(s,i);n=this._insertBeforeOrAppend(n,a)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const s=this._records.get(t);this._maybeAddToChanges(s,n);const a=s._prev,d=s._next;return a&&(a._next=d),d&&(d._prev=a),s._next=null,s._prev=null,s}const i=new iw(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class iw{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Lm(){return new Dd([new Nm])}let Dd=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const s=i.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Lm()),deps:[[e,new fo,new ho]]}}find(n){const i=this.factories.find(s=>s.supports(n));if(null!=i)return i;throw new Be(901,"")}}return e.\u0275prov=wn({token:e,providedIn:"root",factory:Lm}),e})();function Vm(){return new Md([new Rm])}let Md=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const s=i.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Vm()),deps:[[e,new fo,new ho]]}}find(n){const i=this.factories.find(a=>a.supports(n));if(i)return i;throw new Be(901,"")}}return e.\u0275prov=wn({token:e,providedIn:"root",factory:Vm}),e})();const aw=Dm(null,"core",[]);let lw=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(yr(yd))},e.\u0275mod=Pe({type:e}),e.\u0275inj=En({}),e})()},4006:(J,F,p)=>{"use strict";p.d(F,{Fj:()=>Oe,JJ:()=>dr,JL:()=>zn,JU:()=>x,NI:()=>E,On:()=>on,UX:()=>Kt,Wl:()=>L,_:()=>br,_Y:()=>Gn,a5:()=>Vn,cw:()=>P,oH:()=>wr,qu:()=>kn,sg:()=>nr,u:()=>Wi,u5:()=>fn,wV:()=>qn});var r=p(5062),_=p(6895),V=p(5254),j=p(567),A=p(4850);let I=(()=>{class S{constructor(C,W){this._renderer=C,this._elementRef=W,this.onChange=Le=>{},this.onTouched=()=>{}}setProperty(C,W){this._renderer.setProperty(this._elementRef.nativeElement,C,W)}registerOnTouched(C){this.onTouched=C}registerOnChange(C){this.onChange=C}setDisabledState(C){this.setProperty("disabled",C)}}return S.\u0275fac=function(C){return new(C||S)(r.Y36(r.Qsj),r.Y36(r.SBq))},S.\u0275dir=r.lG2({type:S}),S})(),R=(()=>{class S extends I{}return S.\u0275fac=function(){let b;return function(W){return(b||(b=r.n5z(S)))(W||S)}}(),S.\u0275dir=r.lG2({type:S,features:[r.qOj]}),S})();const x=new r.OlP("NgValueAccessor"),H={provide:x,useExisting:(0,r.Gpc)(()=>L),multi:!0};let L=(()=>{class S extends R{writeValue(C){this.setProperty("checked",C)}}return S.\u0275fac=function(){let b;return function(W){return(b||(b=r.n5z(S)))(W||S)}}(),S.\u0275dir=r.lG2({type:S,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(C,W){1&C&&r.NdJ("change",function(Ot){return W.onChange(Ot.target.checked)})("blur",function(){return W.onTouched()})},features:[r._Bn([H]),r.qOj]}),S})();const G={provide:x,useExisting:(0,r.Gpc)(()=>Oe),multi:!0},re=new r.OlP("CompositionEventMode");let Oe=(()=>{class S extends I{constructor(C,W,Le){super(C,W),this._compositionMode=Le,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ne(){const S=(0,_.q)()?(0,_.q)().getUserAgent():"";return/android (\d+)/.test(S.toLowerCase())}())}writeValue(C){this.setProperty("value",C??"")}_handleInput(C){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(C)}_compositionStart(){this._composing=!0}_compositionEnd(C){this._composing=!1,this._compositionMode&&this.onChange(C)}}return S.\u0275fac=function(C){return new(C||S)(r.Y36(r.Qsj),r.Y36(r.SBq),r.Y36(re,8))},S.\u0275dir=r.lG2({type:S,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(C,W){1&C&&r.NdJ("input",function(Ot){return W._handleInput(Ot.target.value)})("blur",function(){return W.onTouched()})("compositionstart",function(){return W._compositionStart()})("compositionend",function(Ot){return W._compositionEnd(Ot.target.value)})},features:[r._Bn([G]),r.qOj]}),S})();const ve=new r.OlP("NgValidators"),at=new r.OlP("NgAsyncValidators");function dt(S){return null!=S}function Ze(S){const b=(0,r.QGY)(S)?(0,V.D)(S):S;return(0,r.CqO)(b),b}function $e(S){let b={};return S.forEach(C=>{b=null!=C?{...b,...C}:b}),0===Object.keys(b).length?null:b}function yn(S,b){return b.map(C=>C(S))}function gn(S){return S.map(b=>function Vt(S){return!S.validate}(b)?b:C=>b.validate(C))}function un(S){return null!=S?function Mn(S){if(!S)return null;const b=S.filter(dt);return 0==b.length?null:function(C){return $e(yn(C,b))}}(gn(S)):null}function bn(S){return null!=S?function Fn(S){if(!S)return null;const b=S.filter(dt);return 0==b.length?null:function(C){const W=yn(C,b).map(Ze);return(0,j.D)(W).pipe((0,A.U)($e))}}(gn(S)):null}function Yn(S,b){return null===S?[b]:Array.isArray(S)?[...S,b]:[S,b]}function Ht(S){return S._rawValidators}function Yt(S){return S._rawAsyncValidators}function An(S){return S?Array.isArray(S)?S:[S]:[]}function cn(S,b){return Array.isArray(S)?S.includes(b):S===b}function Ln(S,b){const C=An(b);return An(S).forEach(Le=>{cn(C,Le)||C.push(Le)}),C}function wn(S,b){return An(b).filter(C=>!cn(S,C))}class ur{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(b){this._rawValidators=b||[],this._composedValidatorFn=un(this._rawValidators)}_setAsyncValidators(b){this._rawAsyncValidators=b||[],this._composedAsyncValidatorFn=bn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(b){this._onDestroyCallbacks.push(b)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(b=>b()),this._onDestroyCallbacks=[]}reset(b){this.control&&this.control.reset(b)}hasError(b,C){return!!this.control&&this.control.hasError(b,C)}getError(b,C){return this.control?this.control.getError(b,C):null}}class En extends ur{get formDirective(){return null}get path(){return null}}class Vn extends ur{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class lr{constructor(b){this._cd=b}is(b){return"submitted"===b?!!this._cd?.submitted:!!this._cd?.control?.[b]}}let dr=(()=>{class S extends lr{constructor(C){super(C)}}return S.\u0275fac=function(C){return new(C||S)(r.Y36(Vn,2))},S.\u0275dir=r.lG2({type:S,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(C,W){2&C&&r.ekj("ng-untouched",W.is("untouched"))("ng-touched",W.is("touched"))("ng-pristine",W.is("pristine"))("ng-dirty",W.is("dirty"))("ng-valid",W.is("valid"))("ng-invalid",W.is("invalid"))("ng-pending",W.is("pending"))},features:[r.qOj]}),S})(),zn=(()=>{class S extends lr{constructor(C){super(C)}}return S.\u0275fac=function(C){return new(C||S)(r.Y36(En,10))},S.\u0275dir=r.lG2({type:S,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(C,W){2&C&&r.ekj("ng-untouched",W.is("untouched"))("ng-touched",W.is("touched"))("ng-pristine",W.is("pristine"))("ng-dirty",W.is("dirty"))("ng-valid",W.is("valid"))("ng-invalid",W.is("invalid"))("ng-pending",W.is("pending"))("ng-submitted",W.is("submitted"))},features:[r.qOj]}),S})();function Dn(S,b){return[...b.path,S]}function Rt(S,b){Ee(S,b),b.valueAccessor.writeValue(S.value),function _e(S,b){b.valueAccessor.registerOnChange(C=>{S._pendingValue=C,S._pendingChange=!0,S._pendingDirty=!0,"change"===S.updateOn&&tt(S,b)})}(S,b),function ft(S,b){const C=(W,Le)=>{b.valueAccessor.writeValue(W),Le&&b.viewToModelUpdate(W)};S.registerOnChange(C),b._registerOnDestroy(()=>{S._unregisterOnChange(C)})}(S,b),function Re(S,b){b.valueAccessor.registerOnTouched(()=>{S._pendingTouched=!0,"blur"===S.updateOn&&S._pendingChange&&tt(S,b),"submit"!==S.updateOn&&S.markAsTouched()})}(S,b),function fe(S,b){if(b.valueAccessor.setDisabledState){const C=W=>{b.valueAccessor.setDisabledState(W)};S.registerOnDisabledChange(C),b._registerOnDestroy(()=>{S._unregisterOnDisabledChange(C)})}}(S,b)}function $t(S,b,C=!0){const W=()=>{};b.valueAccessor&&(b.valueAccessor.registerOnChange(W),b.valueAccessor.registerOnTouched(W)),Ae(S,b),S&&(b._invokeOnDestroyCallbacks(),S._registerOnCollectionChange(()=>{}))}function sn(S,b){S.forEach(C=>{C.registerOnValidatorChange&&C.registerOnValidatorChange(b)})}function Ee(S,b){const C=Ht(S);null!==b.validator?S.setValidators(Yn(C,b.validator)):"function"==typeof C&&S.setValidators([C]);const W=Yt(S);null!==b.asyncValidator?S.setAsyncValidators(Yn(W,b.asyncValidator)):"function"==typeof W&&S.setAsyncValidators([W]);const Le=()=>S.updateValueAndValidity();sn(b._rawValidators,Le),sn(b._rawAsyncValidators,Le)}function Ae(S,b){let C=!1;if(null!==S){if(null!==b.validator){const Le=Ht(S);if(Array.isArray(Le)&&Le.length>0){const Ot=Le.filter(Un=>Un!==b.validator);Ot.length!==Le.length&&(C=!0,S.setValidators(Ot))}}if(null!==b.asyncValidator){const Le=Yt(S);if(Array.isArray(Le)&&Le.length>0){const Ot=Le.filter(Un=>Un!==b.asyncValidator);Ot.length!==Le.length&&(C=!0,S.setAsyncValidators(Ot))}}}const W=()=>{};return sn(b._rawValidators,W),sn(b._rawAsyncValidators,W),C}function tt(S,b){S._pendingDirty&&S.markAsDirty(),S.setValue(S._pendingValue,{emitModelToViewChange:!1}),b.viewToModelUpdate(S._pendingValue),S._pendingChange=!1}function se(S,b){if(!S.hasOwnProperty("model"))return!1;const C=S.model;return!!C.isFirstChange()||!Object.is(b,C.currentValue)}function Me(S,b){if(!b)return null;let C,W,Le;return Array.isArray(b),b.forEach(Ot=>{Ot.constructor===Oe?C=Ot:function K(S){return Object.getPrototypeOf(S.constructor)===R}(Ot)?W=Ot:Le=Ot}),Le||W||C||null}function Ue(S,b){const C=S.indexOf(b);C>-1&&S.splice(C,1)}const Ct="VALID",an="INVALID",Pt="PENDING",Jt="DISABLED";function Ke(S){return(bt(S)?S.validators:S)||null}function it(S){return Array.isArray(S)?un(S):S||null}function ht(S,b){return(bt(b)?b.asyncValidators:S)||null}function yt(S){return Array.isArray(S)?bn(S):S||null}function bt(S){return null!=S&&!Array.isArray(S)&&"object"==typeof S}const hn=S=>S instanceof E,k=S=>S instanceof P,q=S=>S instanceof m;function Y(S){return hn(S)?S.value:S.getRawValue()}function te(S,b){const C=k(S),W=S.controls;if(!(C?Object.keys(W):W).length)throw new r.vHH(1e3,"");if(!W[b])throw new r.vHH(1001,"")}function ye(S,b){k(S),S._forEachChild((W,Le)=>{if(void 0===b[Le])throw new r.vHH(1002,"")})}class we{constructor(b,C){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=b,this._rawAsyncValidators=C,this._composedValidatorFn=it(this._rawValidators),this._composedAsyncValidatorFn=yt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(b){this._rawValidators=this._composedValidatorFn=b}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(b){this._rawAsyncValidators=this._composedAsyncValidatorFn=b}get parent(){return this._parent}get valid(){return this.status===Ct}get invalid(){return this.status===an}get pending(){return this.status==Pt}get disabled(){return this.status===Jt}get enabled(){return this.status!==Jt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(b){this._rawValidators=b,this._composedValidatorFn=it(b)}setAsyncValidators(b){this._rawAsyncValidators=b,this._composedAsyncValidatorFn=yt(b)}addValidators(b){this.setValidators(Ln(b,this._rawValidators))}addAsyncValidators(b){this.setAsyncValidators(Ln(b,this._rawAsyncValidators))}removeValidators(b){this.setValidators(wn(b,this._rawValidators))}removeAsyncValidators(b){this.setAsyncValidators(wn(b,this._rawAsyncValidators))}hasValidator(b){return cn(this._rawValidators,b)}hasAsyncValidator(b){return cn(this._rawAsyncValidators,b)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(b={}){this.touched=!0,this._parent&&!b.onlySelf&&this._parent.markAsTouched(b)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(b=>b.markAllAsTouched())}markAsUntouched(b={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(C=>{C.markAsUntouched({onlySelf:!0})}),this._parent&&!b.onlySelf&&this._parent._updateTouched(b)}markAsDirty(b={}){this.pristine=!1,this._parent&&!b.onlySelf&&this._parent.markAsDirty(b)}markAsPristine(b={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(C=>{C.markAsPristine({onlySelf:!0})}),this._parent&&!b.onlySelf&&this._parent._updatePristine(b)}markAsPending(b={}){this.status=Pt,!1!==b.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!b.onlySelf&&this._parent.markAsPending(b)}disable(b={}){const C=this._parentMarkedDirty(b.onlySelf);this.status=Jt,this.errors=null,this._forEachChild(W=>{W.disable({...b,onlySelf:!0})}),this._updateValue(),!1!==b.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...b,skipPristineCheck:C}),this._onDisabledChange.forEach(W=>W(!0))}enable(b={}){const C=this._parentMarkedDirty(b.onlySelf);this.status=Ct,this._forEachChild(W=>{W.enable({...b,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:b.emitEvent}),this._updateAncestors({...b,skipPristineCheck:C}),this._onDisabledChange.forEach(W=>W(!1))}_updateAncestors(b){this._parent&&!b.onlySelf&&(this._parent.updateValueAndValidity(b),b.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(b){this._parent=b}updateValueAndValidity(b={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ct||this.status===Pt)&&this._runAsyncValidator(b.emitEvent)),!1!==b.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!b.onlySelf&&this._parent.updateValueAndValidity(b)}_updateTreeValidity(b={emitEvent:!0}){this._forEachChild(C=>C._updateTreeValidity(b)),this.updateValueAndValidity({onlySelf:!0,emitEvent:b.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Jt:Ct}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(b){if(this.asyncValidator){this.status=Pt,this._hasOwnPendingAsyncValidator=!0;const C=Ze(this.asyncValidator(this));this._asyncValidationSubscription=C.subscribe(W=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(W,{emitEvent:b})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(b,C={}){this.errors=b,this._updateControlsErrors(!1!==C.emitEvent)}get(b){return function Tt(S,b,C){if(null==b||(Array.isArray(b)||(b=b.split(C)),Array.isArray(b)&&0===b.length))return null;let W=S;return b.forEach(Le=>{W=k(W)?W.controls.hasOwnProperty(Le)?W.controls[Le]:null:q(W)&&W.at(Le)||null}),W}(this,b,".")}getError(b,C){const W=C?this.get(C):this;return W&&W.errors?W.errors[b]:null}hasError(b,C){return!!this.getError(b,C)}get root(){let b=this;for(;b._parent;)b=b._parent;return b}_updateControlsErrors(b){this.status=this._calculateStatus(),b&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(b)}_initObservables(){this.valueChanges=new r.vpe,this.statusChanges=new r.vpe}_calculateStatus(){return this._allControlsDisabled()?Jt:this.errors?an:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Pt)?Pt:this._anyControlsHaveStatus(an)?an:Ct}_anyControlsHaveStatus(b){return this._anyControls(C=>C.status===b)}_anyControlsDirty(){return this._anyControls(b=>b.dirty)}_anyControlsTouched(){return this._anyControls(b=>b.touched)}_updatePristine(b={}){this.pristine=!this._anyControlsDirty(),this._parent&&!b.onlySelf&&this._parent._updatePristine(b)}_updateTouched(b={}){this.touched=this._anyControlsTouched(),this._parent&&!b.onlySelf&&this._parent._updateTouched(b)}_isBoxedValue(b){return"object"==typeof b&&null!==b&&2===Object.keys(b).length&&"value"in b&&"disabled"in b}_registerOnCollectionChange(b){this._onCollectionChange=b}_setUpdateStrategy(b){bt(b)&&null!=b.updateOn&&(this._updateOn=b.updateOn)}_parentMarkedDirty(b){return!b&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class E extends we{constructor(b=null,C,W){super(Ke(C),ht(W,C)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(b),this._setUpdateStrategy(C),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),bt(C)&&C.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(b)?b.value:b)}setValue(b,C={}){this.value=this._pendingValue=b,this._onChange.length&&!1!==C.emitModelToViewChange&&this._onChange.forEach(W=>W(this.value,!1!==C.emitViewToModelChange)),this.updateValueAndValidity(C)}patchValue(b,C={}){this.setValue(b,C)}reset(b=this.defaultValue,C={}){this._applyFormState(b),this.markAsPristine(C),this.markAsUntouched(C),this.setValue(this.value,C),this._pendingChange=!1}_updateValue(){}_anyControls(b){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(b){this._onChange.push(b)}_unregisterOnChange(b){Ue(this._onChange,b)}registerOnDisabledChange(b){this._onDisabledChange.push(b)}_unregisterOnDisabledChange(b){Ue(this._onDisabledChange,b)}_forEachChild(b){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(b){this._isBoxedValue(b)?(this.value=this._pendingValue=b.value,b.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=b}}class P extends we{constructor(b,C,W){super(Ke(C),ht(W,C)),this.controls=b,this._initObservables(),this._setUpdateStrategy(C),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(b,C){return this.controls[b]?this.controls[b]:(this.controls[b]=C,C.setParent(this),C._registerOnCollectionChange(this._onCollectionChange),C)}addControl(b,C,W={}){this.registerControl(b,C),this.updateValueAndValidity({emitEvent:W.emitEvent}),this._onCollectionChange()}removeControl(b,C={}){this.controls[b]&&this.controls[b]._registerOnCollectionChange(()=>{}),delete this.controls[b],this.updateValueAndValidity({emitEvent:C.emitEvent}),this._onCollectionChange()}setControl(b,C,W={}){this.controls[b]&&this.controls[b]._registerOnCollectionChange(()=>{}),delete this.controls[b],C&&this.registerControl(b,C),this.updateValueAndValidity({emitEvent:W.emitEvent}),this._onCollectionChange()}contains(b){return this.controls.hasOwnProperty(b)&&this.controls[b].enabled}setValue(b,C={}){ye(this,b),Object.keys(b).forEach(W=>{te(this,W),this.controls[W].setValue(b[W],{onlySelf:!0,emitEvent:C.emitEvent})}),this.updateValueAndValidity(C)}patchValue(b,C={}){null!=b&&(Object.keys(b).forEach(W=>{this.controls[W]&&this.controls[W].patchValue(b[W],{onlySelf:!0,emitEvent:C.emitEvent})}),this.updateValueAndValidity(C))}reset(b={},C={}){this._forEachChild((W,Le)=>{W.reset(b[Le],{onlySelf:!0,emitEvent:C.emitEvent})}),this._updatePristine(C),this._updateTouched(C),this.updateValueAndValidity(C)}getRawValue(){return this._reduceChildren({},(b,C,W)=>(b[W]=Y(C),b))}_syncPendingControls(){let b=this._reduceChildren(!1,(C,W)=>!!W._syncPendingControls()||C);return b&&this.updateValueAndValidity({onlySelf:!0}),b}_forEachChild(b){Object.keys(this.controls).forEach(C=>{const W=this.controls[C];W&&b(W,C)})}_setUpControls(){this._forEachChild(b=>{b.setParent(this),b._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(b){for(const C of Object.keys(this.controls)){const W=this.controls[C];if(this.contains(C)&&b(W))return!0}return!1}_reduceValue(){return this._reduceChildren({},(b,C,W)=>((C.enabled||this.disabled)&&(b[W]=C.value),b))}_reduceChildren(b,C){let W=b;return this._forEachChild((Le,Ot)=>{W=C(W,Le,Ot)}),W}_allControlsDisabled(){for(const b of Object.keys(this.controls))if(this.controls[b].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class m extends we{constructor(b,C,W){super(Ke(C),ht(W,C)),this.controls=b,this._initObservables(),this._setUpdateStrategy(C),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(b){return this.controls[b]}push(b,C={}){this.controls.push(b),this._registerControl(b),this.updateValueAndValidity({emitEvent:C.emitEvent}),this._onCollectionChange()}insert(b,C,W={}){this.controls.splice(b,0,C),this._registerControl(C),this.updateValueAndValidity({emitEvent:W.emitEvent})}removeAt(b,C={}){this.controls[b]&&this.controls[b]._registerOnCollectionChange(()=>{}),this.controls.splice(b,1),this.updateValueAndValidity({emitEvent:C.emitEvent})}setControl(b,C,W={}){this.controls[b]&&this.controls[b]._registerOnCollectionChange(()=>{}),this.controls.splice(b,1),C&&(this.controls.splice(b,0,C),this._registerControl(C)),this.updateValueAndValidity({emitEvent:W.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(b,C={}){ye(this,b),b.forEach((W,Le)=>{te(this,Le),this.at(Le).setValue(W,{onlySelf:!0,emitEvent:C.emitEvent})}),this.updateValueAndValidity(C)}patchValue(b,C={}){null!=b&&(b.forEach((W,Le)=>{this.at(Le)&&this.at(Le).patchValue(W,{onlySelf:!0,emitEvent:C.emitEvent})}),this.updateValueAndValidity(C))}reset(b=[],C={}){this._forEachChild((W,Le)=>{W.reset(b[Le],{onlySelf:!0,emitEvent:C.emitEvent})}),this._updatePristine(C),this._updateTouched(C),this.updateValueAndValidity(C)}getRawValue(){return this.controls.map(b=>Y(b))}clear(b={}){this.controls.length<1||(this._forEachChild(C=>C._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:b.emitEvent}))}_syncPendingControls(){let b=this.controls.reduce((C,W)=>!!W._syncPendingControls()||C,!1);return b&&this.updateValueAndValidity({onlySelf:!0}),b}_forEachChild(b){this.controls.forEach((C,W)=>{b(C,W)})}_updateValue(){this.value=this.controls.filter(b=>b.enabled||this.disabled).map(b=>b.value)}_anyControls(b){return this.controls.some(C=>C.enabled&&b(C))}_setUpControls(){this._forEachChild(b=>this._registerControl(b))}_allControlsDisabled(){for(const b of this.controls)if(b.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(b){b.setParent(this),b._registerOnCollectionChange(this._onCollectionChange)}}const Qt={provide:Vn,useExisting:(0,r.Gpc)(()=>on)},ln=(()=>Promise.resolve(null))();let on=(()=>{class S extends Vn{constructor(C,W,Le,Ot,Un){super(),this._changeDetectorRef=Un,this.control=new E,this._registered=!1,this.update=new r.vpe,this._parent=C,this._setValidators(W),this._setAsyncValidators(Le),this.valueAccessor=Me(0,Ot)}ngOnChanges(C){if(this._checkForErrors(),!this._registered||"name"in C){if(this._registered&&(this._checkName(),this.formDirective)){const W=C.name.previousValue;this.formDirective.removeControl({name:W,path:this._getPath(W)})}this._setUpControl()}"isDisabled"in C&&this._updateDisabled(C),se(C,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(C){this.viewModel=C,this.update.emit(C)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Rt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(C){ln.then(()=>{this.control.setValue(C,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(C){const W=C.isDisabled.currentValue,Le=""===W||W&&"false"!==W;ln.then(()=>{Le&&!this.control.disabled?this.control.disable():!Le&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(C){return this._parent?Dn(C,this._parent):[C]}}return S.\u0275fac=function(C){return new(C||S)(r.Y36(En,9),r.Y36(ve,10),r.Y36(at,10),r.Y36(x,10),r.Y36(r.sBO,8))},S.\u0275dir=r.lG2({type:S,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r._Bn([Qt]),r.qOj,r.TTD]}),S})(),Gn=(()=>{class S{}return S.\u0275fac=function(C){return new(C||S)},S.\u0275dir=r.lG2({type:S,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),S})();const Hn={provide:x,useExisting:(0,r.Gpc)(()=>qn),multi:!0};let qn=(()=>{class S extends R{writeValue(C){this.setProperty("value",C??"")}registerOnChange(C){this.onChange=W=>{C(""==W?null:parseFloat(W))}}}return S.\u0275fac=function(){let b;return function(W){return(b||(b=r.n5z(S)))(W||S)}}(),S.\u0275dir=r.lG2({type:S,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(C,W){1&C&&r.NdJ("input",function(Ot){return W.onChange(Ot.target.value)})("blur",function(){return W.onTouched()})},features:[r._Bn([Hn]),r.qOj]}),S})();const Or={provide:x,useExisting:(0,r.Gpc)(()=>br),multi:!0};let Pn=(()=>{class S{}return S.\u0275fac=function(C){return new(C||S)},S.\u0275mod=r.oAB({type:S}),S.\u0275inj=r.cJS({}),S})(),Qn=(()=>{class S{constructor(){this._accessors=[]}add(C,W){this._accessors.push([C,W])}remove(C){for(let W=this._accessors.length-1;W>=0;--W)if(this._accessors[W][1]===C)return void this._accessors.splice(W,1)}select(C){this._accessors.forEach(W=>{this._isSameGroup(W,C)&&W[1]!==C&&W[1].fireUncheck(C.value)})}_isSameGroup(C,W){return!!C[0].control&&C[0]._parent===W._control._parent&&C[1].name===W.name}}return S.\u0275fac=function(C){return new(C||S)},S.\u0275prov=r.Yz7({token:S,factory:S.\u0275fac,providedIn:Pn}),S})(),br=(()=>{class S extends R{constructor(C,W,Le,Ot){super(C,W),this._registry=Le,this._injector=Ot,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(Vn),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(C){this._state=C===this.value,this.setProperty("checked",this._state)}registerOnChange(C){this._fn=C,this.onChange=()=>{C(this.value),this._registry.select(this)}}fireUncheck(C){this.writeValue(C)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return S.\u0275fac=function(C){return new(C||S)(r.Y36(r.Qsj),r.Y36(r.SBq),r.Y36(Qn),r.Y36(r.zs3))},S.\u0275dir=r.lG2({type:S,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(C,W){1&C&&r.NdJ("change",function(){return W.onChange()})("blur",function(){return W.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r._Bn([Or]),r.qOj]}),S})();const pr=new r.OlP("NgModelWithFormControlWarning"),pi={provide:Vn,useExisting:(0,r.Gpc)(()=>wr)};let wr=(()=>{class S extends Vn{constructor(C,W,Le,Ot){super(),this._ngModelWarningConfig=Ot,this.update=new r.vpe,this._ngModelWarningSent=!1,this._setValidators(C),this._setAsyncValidators(W),this.valueAccessor=Me(0,Le)}set isDisabled(C){}ngOnChanges(C){if(this._isControlChanged(C)){const W=C.form.previousValue;W&&$t(W,this,!1),Rt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}se(C,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&$t(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(C){this.viewModel=C,this.update.emit(C)}_isControlChanged(C){return C.hasOwnProperty("form")}}return S._ngModelWarningSentOnce=!1,S.\u0275fac=function(C){return new(C||S)(r.Y36(ve,10),r.Y36(at,10),r.Y36(x,10),r.Y36(pr,8))},S.\u0275dir=r.lG2({type:S,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r._Bn([pi]),r.qOj,r.TTD]}),S})();const gr={provide:En,useExisting:(0,r.Gpc)(()=>nr)};let nr=(()=>{class S extends En{constructor(C,W){super(),this.validators=C,this.asyncValidators=W,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new r.vpe,this._setValidators(C),this._setAsyncValidators(W)}ngOnChanges(C){this._checkFormPresent(),C.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ae(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(C){const W=this.form.get(C.path);return Rt(W,C),W.updateValueAndValidity({emitEvent:!1}),this.directives.push(C),W}getControl(C){return this.form.get(C.path)}removeControl(C){$t(C.control||null,C,!1),Ue(this.directives,C)}addFormGroup(C){this._setUpFormContainer(C)}removeFormGroup(C){this._cleanUpFormContainer(C)}getFormGroup(C){return this.form.get(C.path)}addFormArray(C){this._setUpFormContainer(C)}removeFormArray(C){this._cleanUpFormContainer(C)}getFormArray(C){return this.form.get(C.path)}updateModel(C,W){this.form.get(C.path).setValue(W)}onSubmit(C){return this.submitted=!0,function Pe(S,b){S._syncPendingControls(),b.forEach(C=>{const W=C.control;"submit"===W.updateOn&&W._pendingChange&&(C.viewToModelUpdate(W._pendingValue),W._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(C),!1}onReset(){this.resetForm()}resetForm(C){this.form.reset(C),this.submitted=!1}_updateDomValue(){this.directives.forEach(C=>{const W=C.control,Le=this.form.get(C.path);W!==Le&&($t(W||null,C),hn(Le)&&(Rt(Le,C),C.control=Le))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(C){const W=this.form.get(C.path);(function ct(S,b){Ee(S,b)})(W,C),W.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(C){if(this.form){const W=this.form.get(C.path);W&&function St(S,b){return Ae(S,b)}(W,C)&&W.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ee(this.form,this),this._oldForm&&Ae(this._oldForm,this)}_checkFormPresent(){}}return S.\u0275fac=function(C){return new(C||S)(r.Y36(ve,10),r.Y36(at,10))},S.\u0275dir=r.lG2({type:S,selectors:[["","formGroup",""]],hostBindings:function(C,W){1&C&&r.NdJ("submit",function(Ot){return W.onSubmit(Ot)})("reset",function(){return W.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r._Bn([gr]),r.qOj,r.TTD]}),S})();const _i={provide:Vn,useExisting:(0,r.Gpc)(()=>Wi)};let Wi=(()=>{class S extends Vn{constructor(C,W,Le,Ot,Un){super(),this._ngModelWarningConfig=Un,this._added=!1,this.update=new r.vpe,this._ngModelWarningSent=!1,this._parent=C,this._setValidators(W),this._setAsyncValidators(Le),this.valueAccessor=Me(0,Ot)}set isDisabled(C){}ngOnChanges(C){this._added||this._setUpControl(),se(C,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(C){this.viewModel=C,this.update.emit(C)}get path(){return Dn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return S._ngModelWarningSentOnce=!1,S.\u0275fac=function(C){return new(C||S)(r.Y36(En,13),r.Y36(ve,10),r.Y36(at,10),r.Y36(x,10),r.Y36(pr,8))},S.\u0275dir=r.lG2({type:S,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r._Bn([_i]),r.qOj,r.TTD]}),S})(),Bn=(()=>{class S{}return S.\u0275fac=function(C){return new(C||S)},S.\u0275mod=r.oAB({type:S}),S.\u0275inj=r.cJS({imports:[[Pn]]}),S})(),fn=(()=>{class S{}return S.\u0275fac=function(C){return new(C||S)},S.\u0275mod=r.oAB({type:S}),S.\u0275inj=r.cJS({imports:[Bn]}),S})(),Kt=(()=>{class S{static withConfig(C){return{ngModule:S,providers:[{provide:pr,useValue:C.warnOnNgModelWithFormControl}]}}}return S.\u0275fac=function(C){return new(C||S)},S.\u0275mod=r.oAB({type:S}),S.\u0275inj=r.cJS({imports:[Bn]}),S})(),kn=(()=>{class S{group(C,W=null){const Le=this._reduceControls(C);let Zt,Ot=null,Un=null;return null!=W&&(function Zn(S){return void 0!==S.asyncValidators||void 0!==S.validators||void 0!==S.updateOn}(W)?(Ot=null!=W.validators?W.validators:null,Un=null!=W.asyncValidators?W.asyncValidators:null,Zt=null!=W.updateOn?W.updateOn:void 0):(Ot=null!=W.validator?W.validator:null,Un=null!=W.asyncValidator?W.asyncValidator:null)),new P(Le,{asyncValidators:Un,updateOn:Zt,validators:Ot})}control(C,W,Le){return new E(C,W,Le)}array(C,W,Le){const Ot=C.map(Un=>this._createControl(Un));return new m(Ot,W,Le)}_reduceControls(C){const W={};return Object.keys(C).forEach(Le=>{W[Le]=this._createControl(C[Le])}),W}_createControl(C){return hn(C)||k(C)||q(C)?C:Array.isArray(C)?this.control(C[0],C.length>1?C[1]:null,C.length>2?C[2]:null):this.control(C)}}return S.\u0275fac=function(C){return new(C||S)},S.\u0275prov=r.Yz7({token:S,factory:S.\u0275fac,providedIn:Kt}),S})()},1481:(J,F,p)=>{"use strict";p.d(F,{b2:()=>or,q6:()=>Vn,se:()=>Ze});var r=p(6895),_=p(5062);class V extends r.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class j extends V{static makeCurrent(){(0,r.HT)(new j)}onAndCancel(se,K,Pe){return se.addEventListener(K,Pe,!1),()=>{se.removeEventListener(K,Pe,!1)}}dispatchEvent(se,K){se.dispatchEvent(K)}remove(se){se.parentNode&&se.parentNode.removeChild(se)}createElement(se,K){return(K=K||this.getDefaultDocument()).createElement(se)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(se){return se.nodeType===Node.ELEMENT_NODE}isShadowRoot(se){return se instanceof DocumentFragment}getGlobalEventTarget(se,K){return"window"===K?window:"document"===K?se:"body"===K?se.body:null}getBaseHref(se){const K=function I(){return A=A||document.querySelector("base"),A?A.getAttribute("href"):null}();return null==K?null:function x(De){R=R||document.createElement("a"),R.setAttribute("href",De);const se=R.pathname;return"/"===se.charAt(0)?se:`/${se}`}(K)}resetBaseElement(){A=null}getUserAgent(){return window.navigator.userAgent}getCookie(se){return(0,r.Mx)(document.cookie,se)}}let R,A=null;const H=new _.OlP("TRANSITION_ID"),G=[{provide:_.ip1,useFactory:function L(De,se,K){return()=>{K.get(_.CZH).donePromise.then(()=>{const Pe=(0,r.q)(),Me=se.querySelectorAll(`style[ng-transition="${De}"]`);for(let Ue=0;Ue<Me.length;Ue++)Pe.remove(Me[Ue])})}},deps:[H,r.K0,_.zs3],multi:!0}];class ne{static init(){(0,_.VLi)(new ne)}addToWindow(se){_.dqk.getAngularTestability=(Pe,Me=!0)=>{const Ue=se.findTestabilityInTree(Pe,Me);if(null==Ue)throw new Error("Could not find testability for element.");return Ue},_.dqk.getAllAngularTestabilities=()=>se.getAllTestabilities(),_.dqk.getAllAngularRootElements=()=>se.getAllRootElements(),_.dqk.frameworkStabilizers||(_.dqk.frameworkStabilizers=[]),_.dqk.frameworkStabilizers.push(Pe=>{const Me=_.dqk.getAllAngularTestabilities();let Ue=Me.length,ut=!1;const It=function(Ct){ut=ut||Ct,Ue--,0==Ue&&Pe(ut)};Me.forEach(function(Ct){Ct.whenStable(It)})})}findTestabilityInTree(se,K,Pe){return null==K?null:se.getTestability(K)??(Pe?(0,r.q)().isShadowRoot(K)?this.findTestabilityInTree(se,K.host,!0):this.findTestabilityInTree(se,K.parentElement,!0):null)}}let re=(()=>{class De{build(){return new XMLHttpRequest}}return De.\u0275fac=function(K){return new(K||De)},De.\u0275prov=_.Yz7({token:De,factory:De.\u0275fac}),De})();const Oe=new _.OlP("EventManagerPlugins");let Se=(()=>{class De{constructor(K,Pe){this._zone=Pe,this._eventNameToPlugin=new Map,K.forEach(Me=>Me.manager=this),this._plugins=K.slice().reverse()}addEventListener(K,Pe,Me){return this._findPluginFor(Pe).addEventListener(K,Pe,Me)}addGlobalEventListener(K,Pe,Me){return this._findPluginFor(Pe).addGlobalEventListener(K,Pe,Me)}getZone(){return this._zone}_findPluginFor(K){const Pe=this._eventNameToPlugin.get(K);if(Pe)return Pe;const Me=this._plugins;for(let Ue=0;Ue<Me.length;Ue++){const ut=Me[Ue];if(ut.supports(K))return this._eventNameToPlugin.set(K,ut),ut}throw new Error(`No event manager plugin found for event ${K}`)}}return De.\u0275fac=function(K){return new(K||De)(_.LFG(Oe),_.LFG(_.R0b))},De.\u0275prov=_.Yz7({token:De,factory:De.\u0275fac}),De})();class Ne{constructor(se){this._doc=se}addGlobalEventListener(se,K,Pe){const Me=(0,r.q)().getGlobalEventTarget(this._doc,se);if(!Me)throw new Error(`Unsupported event target ${Me} for event ${K}`);return this.addEventListener(Me,K,Pe)}}let ve=(()=>{class De{constructor(){this._stylesSet=new Set}addStyles(K){const Pe=new Set;K.forEach(Me=>{this._stylesSet.has(Me)||(this._stylesSet.add(Me),Pe.add(Me))}),this.onStylesAdded(Pe)}onStylesAdded(K){}getAllStyles(){return Array.from(this._stylesSet)}}return De.\u0275fac=function(K){return new(K||De)},De.\u0275prov=_.Yz7({token:De,factory:De.\u0275fac}),De})(),at=(()=>{class De extends ve{constructor(K){super(),this._doc=K,this._hostNodes=new Map,this._hostNodes.set(K.head,[])}_addStylesToHost(K,Pe,Me){K.forEach(Ue=>{const ut=this._doc.createElement("style");ut.textContent=Ue,Me.push(Pe.appendChild(ut))})}addHost(K){const Pe=[];this._addStylesToHost(this._stylesSet,K,Pe),this._hostNodes.set(K,Pe)}removeHost(K){const Pe=this._hostNodes.get(K);Pe&&Pe.forEach(Ye),this._hostNodes.delete(K)}onStylesAdded(K){this._hostNodes.forEach((Pe,Me)=>{this._addStylesToHost(K,Me,Pe)})}ngOnDestroy(){this._hostNodes.forEach(K=>K.forEach(Ye))}}return De.\u0275fac=function(K){return new(K||De)(_.LFG(r.K0))},De.\u0275prov=_.Yz7({token:De,factory:De.\u0275fac}),De})();function Ye(De){(0,r.q)().remove(De)}const Be={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/MathML/"},st=/%COMP%/g;function Te(De,se,K){for(let Pe=0;Pe<se.length;Pe++){let Me=se[Pe];Array.isArray(Me)?Te(De,Me,K):(Me=Me.replace(st,De),K.push(Me))}return K}function He(De){return se=>{if("__ngUnwrap__"===se)return De;!1===De(se)&&(se.preventDefault(),se.returnValue=!1)}}let Ze=(()=>{class De{constructor(K,Pe,Me){this.eventManager=K,this.sharedStylesHost=Pe,this.appId=Me,this.rendererByCompId=new Map,this.defaultRenderer=new $e(K)}createRenderer(K,Pe){if(!K||!Pe)return this.defaultRenderer;switch(Pe.encapsulation){case _.ifc.Emulated:{let Me=this.rendererByCompId.get(Pe.id);return Me||(Me=new gn(this.eventManager,this.sharedStylesHost,Pe,this.appId),this.rendererByCompId.set(Pe.id,Me)),Me.applyToHost(K),Me}case 1:case _.ifc.ShadowDom:return new Mn(this.eventManager,this.sharedStylesHost,K,Pe);default:if(!this.rendererByCompId.has(Pe.id)){const Me=Te(Pe.id,Pe.styles,[]);this.sharedStylesHost.addStyles(Me),this.rendererByCompId.set(Pe.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return De.\u0275fac=function(K){return new(K||De)(_.LFG(Se),_.LFG(at),_.LFG(_.AFp))},De.\u0275prov=_.Yz7({token:De,factory:De.\u0275fac}),De})();class $e{constructor(se){this.eventManager=se,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(se,K){return K?document.createElementNS(Be[K]||K,se):document.createElement(se)}createComment(se){return document.createComment(se)}createText(se){return document.createTextNode(se)}appendChild(se,K){se.appendChild(K)}insertBefore(se,K,Pe){se&&se.insertBefore(K,Pe)}removeChild(se,K){se&&se.removeChild(K)}selectRootElement(se,K){let Pe="string"==typeof se?document.querySelector(se):se;if(!Pe)throw new Error(`The selector "${se}" did not match any elements`);return K||(Pe.textContent=""),Pe}parentNode(se){return se.parentNode}nextSibling(se){return se.nextSibling}setAttribute(se,K,Pe,Me){if(Me){K=Me+":"+K;const Ue=Be[Me];Ue?se.setAttributeNS(Ue,K,Pe):se.setAttribute(K,Pe)}else se.setAttribute(K,Pe)}removeAttribute(se,K,Pe){if(Pe){const Me=Be[Pe];Me?se.removeAttributeNS(Me,K):se.removeAttribute(`${Pe}:${K}`)}else se.removeAttribute(K)}addClass(se,K){se.classList.add(K)}removeClass(se,K){se.classList.remove(K)}setStyle(se,K,Pe,Me){Me&(_.JOm.DashCase|_.JOm.Important)?se.style.setProperty(K,Pe,Me&_.JOm.Important?"important":""):se.style[K]=Pe}removeStyle(se,K,Pe){Pe&_.JOm.DashCase?se.style.removeProperty(K):se.style[K]=""}setProperty(se,K,Pe){se[K]=Pe}setValue(se,K){se.nodeValue=K}listen(se,K,Pe){return"string"==typeof se?this.eventManager.addGlobalEventListener(se,K,He(Pe)):this.eventManager.addEventListener(se,K,He(Pe))}}class gn extends $e{constructor(se,K,Pe,Me){super(se),this.component=Pe;const Ue=Te(Me+"-"+Pe.id,Pe.styles,[]);K.addStyles(Ue),this.contentAttr=function Fe(De){return"_ngcontent-%COMP%".replace(st,De)}(Me+"-"+Pe.id),this.hostAttr=function le(De){return"_nghost-%COMP%".replace(st,De)}(Me+"-"+Pe.id)}applyToHost(se){super.setAttribute(se,this.hostAttr,"")}createElement(se,K){const Pe=super.createElement(se,K);return super.setAttribute(Pe,this.contentAttr,""),Pe}}class Mn extends $e{constructor(se,K,Pe,Me){super(se),this.sharedStylesHost=K,this.hostEl=Pe,this.shadowRoot=Pe.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ue=Te(Me.id,Me.styles,[]);for(let ut=0;ut<Ue.length;ut++){const It=document.createElement("style");It.textContent=Ue[ut],this.shadowRoot.appendChild(It)}}nodeOrShadowRoot(se){return se===this.hostEl?this.shadowRoot:se}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(se,K){return super.appendChild(this.nodeOrShadowRoot(se),K)}insertBefore(se,K,Pe){return super.insertBefore(this.nodeOrShadowRoot(se),K,Pe)}removeChild(se,K){return super.removeChild(this.nodeOrShadowRoot(se),K)}parentNode(se){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(se)))}}let un=(()=>{class De extends Ne{constructor(K){super(K)}supports(K){return!0}addEventListener(K,Pe,Me){return K.addEventListener(Pe,Me,!1),()=>this.removeEventListener(K,Pe,Me)}removeEventListener(K,Pe,Me){return K.removeEventListener(Pe,Me)}}return De.\u0275fac=function(K){return new(K||De)(_.LFG(r.K0))},De.\u0275prov=_.Yz7({token:De,factory:De.\u0275fac}),De})();const Fn=["alt","control","meta","shift"],Yn={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ht={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Yt={alt:De=>De.altKey,control:De=>De.ctrlKey,meta:De=>De.metaKey,shift:De=>De.shiftKey};let An=(()=>{class De extends Ne{constructor(K){super(K)}supports(K){return null!=De.parseEventName(K)}addEventListener(K,Pe,Me){const Ue=De.parseEventName(Pe),ut=De.eventCallback(Ue.fullKey,Me,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,r.q)().onAndCancel(K,Ue.domEventName,ut))}static parseEventName(K){const Pe=K.toLowerCase().split("."),Me=Pe.shift();if(0===Pe.length||"keydown"!==Me&&"keyup"!==Me)return null;const Ue=De._normalizeKey(Pe.pop());let ut="";if(Fn.forEach(Ct=>{const an=Pe.indexOf(Ct);an>-1&&(Pe.splice(an,1),ut+=Ct+".")}),ut+=Ue,0!=Pe.length||0===Ue.length)return null;const It={};return It.domEventName=Me,It.fullKey=ut,It}static getEventFullKey(K){let Pe="",Me=function cn(De){let se=De.key;if(null==se){if(se=De.keyIdentifier,null==se)return"Unidentified";se.startsWith("U+")&&(se=String.fromCharCode(parseInt(se.substring(2),16)),3===De.location&&Ht.hasOwnProperty(se)&&(se=Ht[se]))}return Yn[se]||se}(K);return Me=Me.toLowerCase()," "===Me?Me="space":"."===Me&&(Me="dot"),Fn.forEach(Ue=>{Ue!=Me&&Yt[Ue](K)&&(Pe+=Ue+".")}),Pe+=Me,Pe}static eventCallback(K,Pe,Me){return Ue=>{De.getEventFullKey(Ue)===K&&Me.runGuarded(()=>Pe(Ue))}}static _normalizeKey(K){return"esc"===K?"escape":K}}return De.\u0275fac=function(K){return new(K||De)(_.LFG(r.K0))},De.\u0275prov=_.Yz7({token:De,factory:De.\u0275fac}),De})();const Vn=(0,_.eFA)(_._c5,"browser",[{provide:_.Lbi,useValue:r.bD},{provide:_.g9A,useValue:function Ln(){j.makeCurrent(),ne.init()},multi:!0},{provide:r.K0,useFactory:function ur(){return(0,_.RDi)(document),document},deps:[]}]),lr=[{provide:_.zSh,useValue:"root"},{provide:_.qLn,useFactory:function wn(){return new _.qLn},deps:[]},{provide:Oe,useClass:un,multi:!0,deps:[r.K0,_.R0b,_.Lbi]},{provide:Oe,useClass:An,multi:!0,deps:[r.K0]},{provide:Ze,useClass:Ze,deps:[Se,at,_.AFp]},{provide:_.FYo,useExisting:Ze},{provide:ve,useExisting:at},{provide:at,useClass:at,deps:[r.K0]},{provide:_.dDg,useClass:_.dDg,deps:[_.R0b]},{provide:Se,useClass:Se,deps:[Oe,_.R0b]},{provide:r.JF,useClass:re,deps:[]}];let or=(()=>{class De{constructor(K){if(K)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(K){return{ngModule:De,providers:[{provide:_.AFp,useValue:K.appId},{provide:H,useExisting:_.AFp},G]}}}return De.\u0275fac=function(K){return new(K||De)(_.LFG(De,12))},De.\u0275mod=_.oAB({type:De}),De.\u0275inj=_.cJS({providers:lr,imports:[r.ez,_.hGG]}),De})();typeof window<"u"&&window},9877:(J,F,p)=>{"use strict";p.d(F,{gz:()=>pr,wM:()=>fe,m2:()=>je,F0:()=>Ar,yS:()=>Cs,Bz:()=>gl,lC:()=>Bn,R9:()=>dn});var r=p(6895),_=p(5062),V=p(5529),j=p(5279);class A extends V.xQ{constructor(f){super(),this._value=f}get value(){return this.getValue()}_subscribe(f){const h=super._subscribe(f);return h&&!h.closed&&f.next(this._value),h}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new j.N;return this._value}next(f){super.next(this._value=f)}}var I=p(2866),R=p(6688),x=p(3489);class H extends x.L{notifyNext(f,h,w,O,Z){this.destination.next(h)}notifyError(f,h){this.destination.error(f)}notifyComplete(f){this.destination.complete()}}class L extends x.L{constructor(f,h,w){super(),this.parent=f,this.outerValue=h,this.outerIndex=w,this.index=0}_next(f){this.parent.notifyNext(this.outerValue,f,this.outerIndex,this.index++,this)}_error(f){this.parent.notifyError(f,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var G=p(9249),ne=p(2916);function re(y,f,h,w,O=new L(y,h,w)){if(!O.closed)return f instanceof ne.y?f.subscribe(O):(0,G.s)(f)(O)}var Oe=p(3009);const Se={};class ve{constructor(f){this.resultSelector=f}call(f,h){return h.subscribe(new at(f,this.resultSelector))}}class at extends H{constructor(f,h){super(f),this.resultSelector=h,this.active=0,this.values=[],this.observables=[]}_next(f){this.values.push(Se),this.observables.push(f)}_complete(){const f=this.observables,h=f.length;if(0===h)this.destination.complete();else{this.active=h,this.toRespond=h;for(let w=0;w<h;w++)this.add(re(this,f[w],void 0,w))}}notifyComplete(f){0==(this.active-=1)&&this.destination.complete()}notifyNext(f,h,w){const O=this.values,ie=this.toRespond?O[w]===Se?--this.toRespond:this.toRespond:0;O[w]=h,0===ie&&(this.resultSelector?this._tryResultSelector(O):this.destination.next(O.slice()))}_tryResultSelector(f){let h;try{h=this.resultSelector.apply(this,f)}catch(w){return void this.destination.error(w)}this.destination.next(h)}}function Ye(y,f){return new ne.y(f?h=>f.schedule(Be,0,{error:y,subscriber:h}):h=>h.error(y))}function Be({error:y,subscriber:f}){f.error(y)}const be=(()=>{function y(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return y.prototype=Object.create(Error.prototype),y})();var Je=p(5254),Gt=p(8896);function _t(y){return new ne.y(f=>{let h;try{h=y()}catch(O){return void f.error(O)}return(h?(0,Je.D)(h):(0,Gt.c)()).subscribe(f)})}var Fe=p(1086),le=p(1221),Te=p(1762),He=p(4850),dt=p(1177);function Ze(y,f){return"function"==typeof f?h=>h.pipe(Ze((w,O)=>(0,Je.D)(y(w,O)).pipe((0,He.U)((Z,ie)=>f(w,Z,O,ie))))):h=>h.lift(new $e(y))}class $e{constructor(f){this.project=f}call(f,h){return h.subscribe(new yn(f,this.project))}}class yn extends dt.Ds{constructor(f,h){super(f),this.project=h,this.index=0}_next(f){let h;const w=this.index++;try{h=this.project(f,w)}catch(O){return void this.destination.error(O)}this._innerSub(h)}_innerSub(f){const h=this.innerSubscription;h&&h.unsubscribe();const w=new dt.IY(this),O=this.destination;O.add(w),this.innerSubscription=(0,dt.ft)(f,w),this.innerSubscription!==w&&O.add(this.innerSubscription)}_complete(){const{innerSubscription:f}=this;(!f||f.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(f){this.destination.next(f)}}function Vt(y,f){let h=!1;return arguments.length>=2&&(h=!0),function(O){return O.lift(new gn(y,f,h))}}class gn{constructor(f,h,w=!1){this.accumulator=f,this.seed=h,this.hasSeed=w}call(f,h){return h.subscribe(new Mn(f,this.accumulator,this.seed,this.hasSeed))}}class Mn extends x.L{constructor(f,h,w,O){super(f),this.accumulator=h,this._seed=w,this.hasSeed=O,this.index=0}get seed(){return this._seed}set seed(f){this.hasSeed=!0,this._seed=f}_next(f){if(this.hasSeed)return this._tryNext(f);this.seed=f,this.destination.next(f)}_tryNext(f){const h=this.index++;let w;try{w=this.accumulator(this.seed,f,h)}catch(O){this.destination.error(O)}this.seed=w,this.destination.next(w)}}var un=p(2198),Fn=p(4231);function bn(y){return function(h){return 0===y?(0,Gt.c)():h.lift(new Yn(y))}}class Yn{constructor(f){if(this.total=f,this.total<0)throw new Fn.W}call(f,h){return h.subscribe(new Ht(f,this.total))}}class Ht extends x.L{constructor(f,h){super(f),this.total=h,this.ring=new Array,this.count=0}_next(f){const h=this.ring,w=this.total,O=this.count++;h.length<w?h.push(f):h[O%w]=f}_complete(){const f=this.destination;let h=this.count;if(h>0){const w=this.count>=this.total?this.total:this.count,O=this.ring;for(let Z=0;Z<w;Z++){const ie=h++%w;f.next(O[ie])}}f.complete()}}function Yt(y=Ln){return f=>f.lift(new An(y))}class An{constructor(f){this.errorFactory=f}call(f,h){return h.subscribe(new cn(f,this.errorFactory))}}class cn extends x.L{constructor(f,h){super(f),this.errorFactory=h,this.hasValue=!1}_next(f){this.hasValue=!0,this.destination.next(f)}_complete(){if(this.hasValue)return this.destination.complete();{let f;try{f=this.errorFactory()}catch(h){f=h}this.destination.error(f)}}}function Ln(){return new be}function wn(y=null){return f=>f.lift(new ur(y))}class ur{constructor(f){this.defaultValue=f}call(f,h){return h.subscribe(new En(f,this.defaultValue))}}class En extends x.L{constructor(f,h){super(f),this.defaultValue=h,this.isEmpty=!0}_next(f){this.isEmpty=!1,this.destination.next(f)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var Vn=p(5379),or=p(2986);function rr(y,f){const h=arguments.length>=2;return w=>w.pipe(y?(0,un.h)((O,Z)=>y(O,Z,w)):Vn.y,(0,or.q)(1),h?wn(f):Yt(()=>new be))}var dr=p(1059),zn=p(7221),Sn=p(1406),zt=p(1709),$n=p(2868),jt=p(4327),ze=p(537),me=p(9146);class he{constructor(f,h){this.id=f,this.url=h}}class Qe extends he{constructor(f,h,w="imperative",O=null){super(f,h),this.navigationTrigger=w,this.restoredState=O}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class je extends he{constructor(f,h,w){super(f,h),this.urlAfterRedirects=w}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class qe extends he{constructor(f,h,w){super(f,h),this.reason=w}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ot extends he{constructor(f,h,w){super(f,h),this.error=w}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class dn extends he{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ft extends he{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class At extends he{constructor(f,h,w,O,Z){super(f,h),this.urlAfterRedirects=w,this.state=O,this.shouldActivate=Z}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Xn extends he{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vn extends he{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dn{constructor(f){this.route=f}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Rt{constructor(f){this.route=f}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class $t{constructor(f){this.snapshot=f}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sn{constructor(f){this.snapshot=f}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fe{constructor(f){this.snapshot=f}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ee{constructor(f){this.snapshot=f}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ae{constructor(f,h,w){this.routerEvent=f,this.position=h,this.anchor=w}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const _e="primary";class Re{constructor(f){this.params=f||{}}has(f){return Object.prototype.hasOwnProperty.call(this.params,f)}get(f){if(this.has(f)){const h=this.params[f];return Array.isArray(h)?h[0]:h}return null}getAll(f){if(this.has(f)){const h=this.params[f];return Array.isArray(h)?h:[h]}return[]}get keys(){return Object.keys(this.params)}}function tt(y){return new Re(y)}const ft="ngNavigationCancelingError";function ct(y){const f=Error("NavigationCancelingError: "+y);return f[ft]=!0,f}function kt(y,f,h){const w=h.path.split("/");if(w.length>y.length||"full"===h.pathMatch&&(f.hasChildren()||w.length<y.length))return null;const O={};for(let Z=0;Z<w.length;Z++){const ie=w[Z],ge=y[Z];if(ie.startsWith(":"))O[ie.substring(1)]=ge;else if(ie!==ge.path)return null}return{consumed:y.slice(0,w.length),posParams:O}}function Wt(y,f){const h=y?Object.keys(y):void 0,w=f?Object.keys(f):void 0;if(!h||!w||h.length!=w.length)return!1;let O;for(let Z=0;Z<h.length;Z++)if(O=h[Z],!De(y[O],f[O]))return!1;return!0}function De(y,f){if(Array.isArray(y)&&Array.isArray(f)){if(y.length!==f.length)return!1;const h=[...y].sort(),w=[...f].sort();return h.every((O,Z)=>w[Z]===O)}return y===f}function se(y){return Array.prototype.concat.apply([],y)}function K(y){return y.length>0?y[y.length-1]:null}function Me(y,f){for(const h in y)y.hasOwnProperty(h)&&f(y[h],h)}function Ue(y){return(0,_.CqO)(y)?y:(0,_.QGY)(y)?(0,Je.D)(Promise.resolve(y)):(0,Fe.of)(y)}const It={exact:function Jt(y,f,h){if(!q(y.segments,f.segments)||!ht(y.segments,f.segments,h)||y.numberOfChildren!==f.numberOfChildren)return!1;for(const w in f.children)if(!y.children[w]||!Jt(y.children[w],f.children[w],h))return!1;return!0},subset:Ke},Ct={exact:function Pt(y,f){return Wt(y,f)},subset:function Tt(y,f){return Object.keys(f).length<=Object.keys(y).length&&Object.keys(f).every(h=>De(y[h],f[h]))},ignored:()=>!0};function an(y,f,h){return It[h.paths](y.root,f.root,h.matrixParams)&&Ct[h.queryParams](y.queryParams,f.queryParams)&&!("exact"===h.fragment&&y.fragment!==f.fragment)}function Ke(y,f,h){return it(y,f,f.segments,h)}function it(y,f,h,w){if(y.segments.length>h.length){const O=y.segments.slice(0,h.length);return!(!q(O,h)||f.hasChildren()||!ht(O,h,w))}if(y.segments.length===h.length){if(!q(y.segments,h)||!ht(y.segments,h,w))return!1;for(const O in f.children)if(!y.children[O]||!Ke(y.children[O],f.children[O],w))return!1;return!0}{const O=h.slice(0,y.segments.length),Z=h.slice(y.segments.length);return!!(q(y.segments,O)&&ht(y.segments,O,w)&&y.children[_e])&&it(y.children[_e],f,Z,w)}}function ht(y,f,h){return f.every((w,O)=>Ct[h](y[O].parameters,w.parameters))}class yt{constructor(f,h,w){this.root=f,this.queryParams=h,this.fragment=w}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=tt(this.queryParams)),this._queryParamMap}toString(){return we.serialize(this)}}class bt{constructor(f,h){this.segments=f,this.children=h,this.parent=null,Me(h,(w,O)=>w.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return E(this)}}class hn{constructor(f,h){this.path=f,this.parameters=h}get parameterMap(){return this._parameterMap||(this._parameterMap=tt(this.parameters)),this._parameterMap}toString(){return nt(this)}}function q(y,f){return y.length===f.length&&y.every((h,w)=>h.path===f[w].path)}class te{}class ye{parse(f){const h=new Hn(f);return new yt(h.parseRootSegment(),h.parseQueryParams(),h.parseFragment())}serialize(f){const h=`/${P(f.root,!0)}`,w=function Nt(y){const f=Object.keys(y).map(h=>{const w=y[h];return Array.isArray(w)?w.map(O=>`${B(h)}=${B(O)}`).join("&"):`${B(h)}=${B(w)}`}).filter(h=>!!h);return f.length?`?${f.join("&")}`:""}(f.queryParams);return`${h}${w}${"string"==typeof f.fragment?`#${function ue(y){return encodeURI(y)}(f.fragment)}`:""}`}}const we=new ye;function E(y){return y.segments.map(f=>nt(f)).join("/")}function P(y,f){if(!y.hasChildren())return E(y);if(f){const h=y.children[_e]?P(y.children[_e],!1):"",w=[];return Me(y.children,(O,Z)=>{Z!==_e&&w.push(`${Z}:${P(O,!1)}`)}),w.length>0?`${h}(${w.join("//")})`:h}{const h=function Y(y,f){let h=[];return Me(y.children,(w,O)=>{O===_e&&(h=h.concat(f(w,O)))}),Me(y.children,(w,O)=>{O!==_e&&(h=h.concat(f(w,O)))}),h}(y,(w,O)=>O===_e?[P(y.children[_e],!1)]:[`${O}:${P(w,!1)}`]);return 1===Object.keys(y.children).length&&null!=y.children[_e]?`${E(y)}/${h[0]}`:`${E(y)}/(${h.join("//")})`}}function m(y){return encodeURIComponent(y).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function B(y){return m(y).replace(/%3B/gi,";")}function ce(y){return m(y).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ae(y){return decodeURIComponent(y)}function xe(y){return ae(y.replace(/\+/g,"%20"))}function nt(y){return`${ce(y.path)}${function Et(y){return Object.keys(y).map(f=>`;${ce(f)}=${ce(y[f])}`).join("")}(y.parameters)}`}const vt=/^[^\/()?;=#]+/;function pt(y){const f=y.match(vt);return f?f[0]:""}const Qt=/^[^=?&#]+/,on=/^[^&#]+/;class Hn{constructor(f){this.url=f,this.remaining=f}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new bt([],{}):new bt([],this.parseChildren())}parseQueryParams(){const f={};if(this.consumeOptional("?"))do{this.parseQueryParam(f)}while(this.consumeOptional("&"));return f}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const f=[];for(this.peekStartsWith("(")||f.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),f.push(this.parseSegment());let h={};this.peekStartsWith("/(")&&(this.capture("/"),h=this.parseParens(!0));let w={};return this.peekStartsWith("(")&&(w=this.parseParens(!1)),(f.length>0||Object.keys(h).length>0)&&(w[_e]=new bt(f,h)),w}parseSegment(){const f=pt(this.remaining);if(""===f&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(f),new hn(ae(f),this.parseMatrixParams())}parseMatrixParams(){const f={};for(;this.consumeOptional(";");)this.parseParam(f);return f}parseParam(f){const h=pt(this.remaining);if(!h)return;this.capture(h);let w="";if(this.consumeOptional("=")){const O=pt(this.remaining);O&&(w=O,this.capture(w))}f[ae(h)]=ae(w)}parseQueryParam(f){const h=function ln(y){const f=y.match(Qt);return f?f[0]:""}(this.remaining);if(!h)return;this.capture(h);let w="";if(this.consumeOptional("=")){const ie=function Gn(y){const f=y.match(on);return f?f[0]:""}(this.remaining);ie&&(w=ie,this.capture(w))}const O=xe(h),Z=xe(w);if(f.hasOwnProperty(O)){let ie=f[O];Array.isArray(ie)||(ie=[ie],f[O]=ie),ie.push(Z)}else f[O]=Z}parseParens(f){const h={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const w=pt(this.remaining),O=this.remaining[w.length];if("/"!==O&&")"!==O&&";"!==O)throw new Error(`Cannot parse url '${this.url}'`);let Z;w.indexOf(":")>-1?(Z=w.substr(0,w.indexOf(":")),this.capture(Z),this.capture(":")):f&&(Z=_e);const ie=this.parseChildren();h[Z]=1===Object.keys(ie).length?ie[_e]:new bt([],ie),this.consumeOptional("//")}return h}peekStartsWith(f){return this.remaining.startsWith(f)}consumeOptional(f){return!!this.peekStartsWith(f)&&(this.remaining=this.remaining.substring(f.length),!0)}capture(f){if(!this.consumeOptional(f))throw new Error(`Expected "${f}".`)}}class qn{constructor(f){this._root=f}get root(){return this._root.value}parent(f){const h=this.pathFromRoot(f);return h.length>1?h[h.length-2]:null}children(f){const h=Or(f,this._root);return h?h.children.map(w=>w.value):[]}firstChild(f){const h=Or(f,this._root);return h&&h.children.length>0?h.children[0].value:null}siblings(f){const h=qr(f,this._root);return h.length<2?[]:h[h.length-2].children.map(O=>O.value).filter(O=>O!==f)}pathFromRoot(f){return qr(f,this._root).map(h=>h.value)}}function Or(y,f){if(y===f.value)return f;for(const h of f.children){const w=Or(y,h);if(w)return w}return null}function qr(y,f){if(y===f.value)return[f];for(const h of f.children){const w=qr(y,h);if(w.length)return w.unshift(f),w}return[]}class Pn{constructor(f,h){this.value=f,this.children=h}toString(){return`TreeNode(${this.value})`}}function Qn(y){const f={};return y&&y.children.forEach(h=>f[h.value.outlet]=h),f}class br extends qn{constructor(f,h){super(f),this.snapshot=h,gi(this,f)}toString(){return this.snapshot.toString()}}function fi(y,f){const h=function Hr(y,f){const ie=new gr([],{},{},"",{},_e,f,null,y.root,-1,{});return new nr("",new Pn(ie,[]))}(y,f),w=new A([new hn("",{})]),O=new A({}),Z=new A({}),ie=new A({}),ge=new A(""),Ge=new pr(w,O,ie,ge,Z,_e,f,h.root);return Ge.snapshot=h.root,new br(new Pn(Ge,[]),h)}class pr{constructor(f,h,w,O,Z,ie,ge,Ge){this.url=f,this.params=h,this.queryParams=w,this.fragment=O,this.data=Z,this.outlet=ie,this.component=ge,this._futureSnapshot=Ge}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._paramMap=this.params.pipe((0,He.U)(f=>tt(f)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,He.U)(f=>tt(f)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function pi(y,f="emptyOnly"){const h=y.pathFromRoot;let w=0;if("always"!==f)for(w=h.length-1;w>=1;){const O=h[w],Z=h[w-1];if(O.routeConfig&&""===O.routeConfig.path)w--;else{if(Z.component)break;w--}}return function wr(y){return y.reduce((f,h)=>({params:{...f.params,...h.params},data:{...f.data,...h.data},resolve:{...f.resolve,...h._resolvedData}}),{params:{},data:{},resolve:{}})}(h.slice(w))}class gr{constructor(f,h,w,O,Z,ie,ge,Ge,Mt,Cn,qt){this.url=f,this.params=h,this.queryParams=w,this.fragment=O,this.data=Z,this.outlet=ie,this.component=ge,this.routeConfig=Ge,this._urlSegment=Mt,this._lastPathIndex=Cn,this._resolve=qt}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._paramMap=tt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=tt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(w=>w.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class nr extends qn{constructor(f,h){super(h),this.url=f,gi(this,h)}toString(){return ii(this._root)}}function gi(y,f){f.value._routerState=y,f.children.forEach(h=>gi(y,h))}function ii(y){const f=y.children.length>0?` { ${y.children.map(ii).join(", ")} } `:"";return`${y.value}${f}`}function si(y){if(y.snapshot){const f=y.snapshot,h=y._futureSnapshot;y.snapshot=h,Wt(f.queryParams,h.queryParams)||y.queryParams.next(h.queryParams),f.fragment!==h.fragment&&y.fragment.next(h.fragment),Wt(f.params,h.params)||y.params.next(h.params),function Dt(y,f){if(y.length!==f.length)return!1;for(let h=0;h<y.length;++h)if(!Wt(y[h],f[h]))return!1;return!0}(f.url,h.url)||y.url.next(h.url),Wt(f.data,h.data)||y.data.next(h.data)}else y.snapshot=y._futureSnapshot,y.data.next(y._futureSnapshot.data)}function mi(y,f){const h=Wt(y.params,f.params)&&function k(y,f){return q(y,f)&&y.every((h,w)=>Wt(h.parameters,f[w].parameters))}(y.url,f.url);return h&&!(!y.parent!=!f.parent)&&(!y.parent||mi(y.parent,f.parent))}function _i(y,f,h){if(h&&y.shouldReuseRoute(f.value,h.value.snapshot)){const w=h.value;w._futureSnapshot=f.value;const O=function Wi(y,f,h){return f.children.map(w=>{for(const O of h.children)if(y.shouldReuseRoute(w.value,O.value.snapshot))return _i(y,w,O);return _i(y,w)})}(y,f,h);return new Pn(w,O)}{if(y.shouldAttach(f.value)){const Z=y.retrieve(f.value);if(null!==Z){const ie=Z.route;return ie.value._futureSnapshot=f.value,ie.children=f.children.map(ge=>_i(y,ge)),ie}}const w=function As(y){return new pr(new A(y.url),new A(y.params),new A(y.queryParams),new A(y.fragment),new A(y.data),y.outlet,y.component,y)}(f.value),O=f.children.map(Z=>_i(y,Z));return new Pn(w,O)}}function Ai(y){return"object"==typeof y&&null!=y&&!y.outlets&&!y.segmentPath}function Er(y){return"object"==typeof y&&null!=y&&y.outlets}function $r(y,f,h,w,O){let Z={};if(w&&Me(w,(ge,Ge)=>{Z[Ge]=Array.isArray(ge)?ge.map(Mt=>`${Mt}`):`${ge}`}),y===f)return new yt(h,Z,O);const ie=Qr(y,f,h);return new yt(ie,Z,O)}function Qr(y,f,h){const w={};return Me(y.children,(O,Z)=>{w[Z]=O===f?h:Qr(O,f,h)}),new bt(y.segments,w)}class vi{constructor(f,h,w){if(this.isAbsolute=f,this.numberOfDoubleDots=h,this.commands=w,f&&w.length>0&&Ai(w[0]))throw new Error("Root segment cannot have matrix parameters");const O=w.find(Er);if(O&&O!==K(w))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gr{constructor(f,h,w){this.segmentGroup=f,this.processChildren=h,this.index=w}}function qi(y,f,h){if(y||(y=new bt([],{})),0===y.segments.length&&y.hasChildren())return oi(y,f,h);const w=function kr(y,f,h){let w=0,O=f;const Z={match:!1,pathIndex:0,commandIndex:0};for(;O<y.segments.length;){if(w>=h.length)return Z;const ie=y.segments[O],ge=h[w];if(Er(ge))break;const Ge=`${ge}`,Mt=w<h.length-1?h[w+1]:null;if(O>0&&void 0===Ge)break;if(Ge&&Mt&&"object"==typeof Mt&&void 0===Mt.outlets){if(!Qi(Ge,Mt,ie))return Z;w+=2}else{if(!Qi(Ge,{},ie))return Z;w++}O++}return{match:!0,pathIndex:O,commandIndex:w}}(y,f,h),O=h.slice(w.commandIndex);if(w.match&&w.pathIndex<y.segments.length){const Z=new bt(y.segments.slice(0,w.pathIndex),{});return Z.children[_e]=new bt(y.segments.slice(w.pathIndex),y.children),oi(Z,0,O)}return w.match&&0===O.length?new bt(y.segments,{}):w.match&&!y.hasChildren()?Ci(y,f,h):w.match?oi(y,0,O):Ci(y,f,h)}function oi(y,f,h){if(0===h.length)return new bt(y.segments,{});{const w=function Zi(y){return Er(y[0])?y[0].outlets:{[_e]:y}}(h),O={};return Me(w,(Z,ie)=>{"string"==typeof Z&&(Z=[Z]),null!==Z&&(O[ie]=qi(y.children[ie],f,Z))}),Me(y.children,(Z,ie)=>{void 0===w[ie]&&(O[ie]=Z)}),new bt(y.segments,O)}}function Ci(y,f,h){const w=y.segments.slice(0,f);let O=0;for(;O<h.length;){const Z=h[O];if(Er(Z)){const Ge=Ii(Z.outlets);return new bt(w,Ge)}if(0===O&&Ai(h[0])){w.push(new hn(y.segments[f].path,bi(h[0]))),O++;continue}const ie=Er(Z)?Z.outlets[_e]:`${Z}`,ge=O<h.length-1?h[O+1]:null;ie&&ge&&Ai(ge)?(w.push(new hn(ie,bi(ge))),O+=2):(w.push(new hn(ie,{})),O++)}return new bt(w,{})}function Ii(y){const f={};return Me(y,(h,w)=>{"string"==typeof h&&(h=[h]),null!==h&&(f[w]=Ci(new bt([],{}),0,h))}),f}function bi(y){const f={};return Me(y,(h,w)=>f[w]=`${h}`),f}function Qi(y,f,h){return y==h.path&&Wt(f,h.parameters)}class Ni{constructor(f,h,w,O){this.routeReuseStrategy=f,this.futureState=h,this.currState=w,this.forwardEvent=O}activate(f){const h=this.futureState._root,w=this.currState?this.currState._root:null;this.deactivateChildRoutes(h,w,f),si(this.futureState.root),this.activateChildRoutes(h,w,f)}deactivateChildRoutes(f,h,w){const O=Qn(h);f.children.forEach(Z=>{const ie=Z.value.outlet;this.deactivateRoutes(Z,O[ie],w),delete O[ie]}),Me(O,(Z,ie)=>{this.deactivateRouteAndItsChildren(Z,w)})}deactivateRoutes(f,h,w){const O=f.value,Z=h?h.value:null;if(O===Z)if(O.component){const ie=w.getContext(O.outlet);ie&&this.deactivateChildRoutes(f,h,ie.children)}else this.deactivateChildRoutes(f,h,w);else Z&&this.deactivateRouteAndItsChildren(h,w)}deactivateRouteAndItsChildren(f,h){f.value.component&&this.routeReuseStrategy.shouldDetach(f.value.snapshot)?this.detachAndStoreRouteSubtree(f,h):this.deactivateRouteAndOutlet(f,h)}detachAndStoreRouteSubtree(f,h){const w=h.getContext(f.value.outlet),O=w&&f.value.component?w.children:h,Z=Qn(f);for(const ie of Object.keys(Z))this.deactivateRouteAndItsChildren(Z[ie],O);if(w&&w.outlet){const ie=w.outlet.detach(),ge=w.children.onOutletDeactivated();this.routeReuseStrategy.store(f.value.snapshot,{componentRef:ie,route:f,contexts:ge})}}deactivateRouteAndOutlet(f,h){const w=h.getContext(f.value.outlet),O=w&&f.value.component?w.children:h,Z=Qn(f);for(const ie of Object.keys(Z))this.deactivateRouteAndItsChildren(Z[ie],O);w&&w.outlet&&(w.outlet.deactivate(),w.children.onOutletDeactivated(),w.attachRef=null,w.resolver=null,w.route=null)}activateChildRoutes(f,h,w){const O=Qn(h);f.children.forEach(Z=>{this.activateRoutes(Z,O[Z.value.outlet],w),this.forwardEvent(new Ee(Z.value.snapshot))}),f.children.length&&this.forwardEvent(new sn(f.value.snapshot))}activateRoutes(f,h,w){const O=f.value,Z=h?h.value:null;if(si(O),O===Z)if(O.component){const ie=w.getOrCreateContext(O.outlet);this.activateChildRoutes(f,h,ie.children)}else this.activateChildRoutes(f,h,w);else if(O.component){const ie=w.getOrCreateContext(O.outlet);if(this.routeReuseStrategy.shouldAttach(O.snapshot)){const ge=this.routeReuseStrategy.retrieve(O.snapshot);this.routeReuseStrategy.store(O.snapshot,null),ie.children.onOutletReAttached(ge.contexts),ie.attachRef=ge.componentRef,ie.route=ge.route.value,ie.outlet&&ie.outlet.attach(ge.componentRef,ge.route.value),si(ge.route.value),this.activateChildRoutes(f,null,ie.children)}else{const ge=function wi(y){for(let f=y.parent;f;f=f.parent){const h=f.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig;if(h&&h.component)return null}return null}(O.snapshot),Ge=ge?ge.module.componentFactoryResolver:null;ie.attachRef=null,ie.route=O,ie.resolver=Ge,ie.outlet&&ie.outlet.activateWith(O,Ge),this.activateChildRoutes(f,null,ie.children)}}else this.activateChildRoutes(f,null,w)}}class Kr{constructor(f,h){this.routes=f,this.module=h}}function Rr(y){return"function"==typeof y}function D(y){return y instanceof yt}const Ve=Symbol("INITIAL_VALUE");function rt(){return Ze(y=>function Ne(...y){let f,h;return(0,I.K)(y[y.length-1])&&(h=y.pop()),"function"==typeof y[y.length-1]&&(f=y.pop()),1===y.length&&(0,R.k)(y[0])&&(y=y[0]),(0,Oe.n)(y,h).lift(new ve(f))}(y.map(f=>f.pipe((0,or.q)(1),(0,dr.O)(Ve)))).pipe(Vt((f,h)=>{let w=!1;return h.reduce((O,Z,ie)=>O!==Ve?O:(Z===Ve&&(w=!0),w||!1!==Z&&ie!==h.length-1&&!D(Z)?O:Z),f)},Ve),(0,un.h)(f=>f!==Ve),(0,He.U)(f=>D(f)?f:!0===f),(0,or.q)(1)))}class gt{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new In,this.attachRef=null}}class In{constructor(){this.contexts=new Map}onChildOutletCreated(f,h){const w=this.getOrCreateContext(f);w.outlet=h,this.contexts.set(f,w)}onChildOutletDestroyed(f){const h=this.getContext(f);h&&(h.outlet=null,h.attachRef=null)}onOutletDeactivated(){const f=this.contexts;return this.contexts=new Map,f}onOutletReAttached(f){this.contexts=f}getOrCreateContext(f){let h=this.getContext(f);return h||(h=new gt,this.contexts.set(f,h)),h}getContext(f){return this.contexts.get(f)||null}}let Bn=(()=>{class y{constructor(h,w,O,Z,ie){this.parentContexts=h,this.location=w,this.resolver=O,this.changeDetector=ie,this.activated=null,this._activatedRoute=null,this.activateEvents=new _.vpe,this.deactivateEvents=new _.vpe,this.attachEvents=new _.vpe,this.detachEvents=new _.vpe,this.name=Z||_e,h.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const h=this.parentContexts.getContext(this.name);h&&h.route&&(h.attachRef?this.attach(h.attachRef,h.route):this.activateWith(h.route,h.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const h=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(h.instance),h}attach(h,w){this.activated=h,this._activatedRoute=w,this.location.insert(h.hostView),this.attachEvents.emit(h.instance)}deactivate(){if(this.activated){const h=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(h)}}activateWith(h,w){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=h;const ie=(w=w||this.resolver).resolveComponentFactory(h._futureSnapshot.routeConfig.component),ge=this.parentContexts.getOrCreateContext(this.name).children,Ge=new fn(h,ge,this.location.injector);this.activated=this.location.createComponent(ie,this.location.length,Ge),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return y.\u0275fac=function(h){return new(h||y)(_.Y36(In),_.Y36(_.s_b),_.Y36(_._Vd),_.$8M("name"),_.Y36(_.sBO))},y.\u0275dir=_.lG2({type:y,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),y})();class fn{constructor(f,h,w){this.route=f,this.childContexts=h,this.parent=w}get(f,h){return f===pr?this.route:f===In?this.childContexts:this.parent.get(f,h)}}let Kt=(()=>{class y{}return y.\u0275fac=function(h){return new(h||y)},y.\u0275cmp=_.Xpm({type:y,selectors:[["ng-component"]],decls:1,vars:0,template:function(h,w){1&h&&_._UZ(0,"router-outlet")},directives:[Bn],encapsulation:2}),y})();function Zn(y,f=""){for(let h=0;h<y.length;h++){const w=y[h];kn(w,er(f,w))}}function kn(y,f){y.children&&Zn(y.children,f)}function er(y,f){return f?y||f.path?y&&!f.path?`${y}/`:!y&&f.path?f.path:`${y}/${f.path}`:"":y}function S(y){const f=y.children&&y.children.map(S),h=f?{...y,children:f}:{...y};return!h.component&&(f||h.loadChildren)&&h.outlet&&h.outlet!==_e&&(h.component=Kt),h}function b(y){return y.outlet||_e}function C(y,f){const h=y.filter(w=>b(w)===f);return h.push(...y.filter(w=>b(w)!==f)),h}const W={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Le(y,f,h){if(""===f.path)return"full"===f.pathMatch&&(y.hasChildren()||h.length>0)?{...W}:{matched:!0,consumedSegments:[],remainingSegments:h,parameters:{},positionalParamSegments:{}};const O=(f.matcher||kt)(h,y,f);if(!O)return{...W};const Z={};Me(O.posParams,(ge,Ge)=>{Z[Ge]=ge.path});const ie=O.consumed.length>0?{...Z,...O.consumed[O.consumed.length-1].parameters}:Z;return{matched:!0,consumedSegments:O.consumed,remainingSegments:h.slice(O.consumed.length),parameters:ie,positionalParamSegments:O.posParams??{}}}function Ot(y,f,h,w,O="corrected"){if(h.length>0&&function Ei(y,f,h){return h.some(w=>ai(y,f,w)&&b(w)!==_e)}(y,h,w)){const ie=new bt(f,function Zt(y,f,h,w){const O={};O[_e]=w,w._sourceSegment=y,w._segmentIndexShift=f.length;for(const Z of h)if(""===Z.path&&b(Z)!==_e){const ie=new bt([],{});ie._sourceSegment=y,ie._segmentIndexShift=f.length,O[b(Z)]=ie}return O}(y,f,w,new bt(h,y.children)));return ie._sourceSegment=y,ie._segmentIndexShift=f.length,{segmentGroup:ie,slicedSegments:[]}}if(0===h.length&&function Dr(y,f,h){return h.some(w=>ai(y,f,w))}(y,h,w)){const ie=new bt(y.segments,function Un(y,f,h,w,O,Z){const ie={};for(const ge of w)if(ai(y,h,ge)&&!O[b(ge)]){const Ge=new bt([],{});Ge._sourceSegment=y,Ge._segmentIndexShift="legacy"===Z?y.segments.length:f.length,ie[b(ge)]=Ge}return{...O,...ie}}(y,f,h,w,y.children,O));return ie._sourceSegment=y,ie._segmentIndexShift=f.length,{segmentGroup:ie,slicedSegments:h}}const Z=new bt(y.segments,y.children);return Z._sourceSegment=y,Z._segmentIndexShift=f.length,{segmentGroup:Z,slicedSegments:h}}function ai(y,f,h){return(!(y.hasChildren()||f.length>0)||"full"!==h.pathMatch)&&""===h.path}function wo(y,f,h,w){return!!(b(y)===w||w!==_e&&ai(f,h,y))&&("**"===y.path||Le(f,y,h).matched)}function Eo(y,f,h){return 0===f.length&&!y.children[h]}class Ki{constructor(f){this.segmentGroup=f||null}}class Do{constructor(f){this.urlTree=f}}function Xi(y){return Ye(new Ki(y))}function Xe(y){return Ye(new Do(y))}class To{constructor(f,h,w,O,Z){this.configLoader=h,this.urlSerializer=w,this.urlTree=O,this.config=Z,this.allowRedirects=!0,this.ngModule=f.get(_.h0i)}apply(){const f=Ot(this.urlTree.root,[],[],this.config).segmentGroup,h=new bt(f.segments,f.children);return this.expandSegmentGroup(this.ngModule,this.config,h,_e).pipe((0,He.U)(Z=>this.createUrlTree(Lr(Z),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,zn.K)(Z=>{if(Z instanceof Do)return this.allowRedirects=!1,this.match(Z.urlTree);throw Z instanceof Ki?this.noMatchError(Z):Z}))}match(f){return this.expandSegmentGroup(this.ngModule,this.config,f.root,_e).pipe((0,He.U)(O=>this.createUrlTree(Lr(O),f.queryParams,f.fragment))).pipe((0,zn.K)(O=>{throw O instanceof Ki?this.noMatchError(O):O}))}noMatchError(f){return new Error(`Cannot match any routes. URL Segment: '${f.segmentGroup}'`)}createUrlTree(f,h,w){const O=f.segments.length>0?new bt([],{[_e]:f}):f;return new yt(O,h,w)}expandSegmentGroup(f,h,w,O){return 0===w.segments.length&&w.hasChildren()?this.expandChildren(f,h,w).pipe((0,He.U)(Z=>new bt([],Z))):this.expandSegment(f,w,h,w.segments,O,!0)}expandChildren(f,h,w){const O=[];for(const Z of Object.keys(w.children))"primary"===Z?O.unshift(Z):O.push(Z);return(0,Je.D)(O).pipe((0,Sn.b)(Z=>{const ie=w.children[Z],ge=C(h,Z);return this.expandSegmentGroup(f,ge,ie,Z).pipe((0,He.U)(Ge=>({segment:Ge,outlet:Z})))}),Vt((Z,ie)=>(Z[ie.outlet]=ie.segment,Z),{}),function lr(y,f){const h=arguments.length>=2;return w=>w.pipe(y?(0,un.h)((O,Z)=>y(O,Z,w)):Vn.y,bn(1),h?wn(f):Yt(()=>new be))}())}expandSegment(f,h,w,O,Z,ie){return(0,Je.D)(w).pipe((0,Sn.b)(ge=>this.expandSegmentAgainstRoute(f,h,w,ge,O,Z,ie).pipe((0,zn.K)(Mt=>{if(Mt instanceof Ki)return(0,Fe.of)(null);throw Mt}))),rr(ge=>!!ge),(0,zn.K)((ge,Ge)=>{if(ge instanceof be||"EmptyError"===ge.name)return Eo(h,O,Z)?(0,Fe.of)(new bt([],{})):Xi(h);throw ge}))}expandSegmentAgainstRoute(f,h,w,O,Z,ie,ge){return wo(O,h,Z,ie)?void 0===O.redirectTo?this.matchSegmentAgainstRoute(f,h,O,Z,ie):ge&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(f,h,w,O,Z,ie):Xi(h):Xi(h)}expandSegmentAgainstRouteUsingRedirect(f,h,w,O,Z,ie){return"**"===O.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(f,w,O,ie):this.expandRegularSegmentAgainstRouteUsingRedirect(f,h,w,O,Z,ie)}expandWildCardWithParamsAgainstRouteUsingRedirect(f,h,w,O){const Z=this.applyRedirectCommands([],w.redirectTo,{});return w.redirectTo.startsWith("/")?Xe(Z):this.lineralizeSegments(w,Z).pipe((0,zt.zg)(ie=>{const ge=new bt(ie,{});return this.expandSegment(f,ge,h,ie,O,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(f,h,w,O,Z,ie){const{matched:ge,consumedSegments:Ge,remainingSegments:Mt,positionalParamSegments:Cn}=Le(h,O,Z);if(!ge)return Xi(h);const qt=this.applyRedirectCommands(Ge,O.redirectTo,Cn);return O.redirectTo.startsWith("/")?Xe(qt):this.lineralizeSegments(O,qt).pipe((0,zt.zg)(jn=>this.expandSegment(f,h,w,jn.concat(Mt),ie,!1)))}matchSegmentAgainstRoute(f,h,w,O,Z){if("**"===w.path)return w.loadChildren?(w._loadedConfig?(0,Fe.of)(w._loadedConfig):this.configLoader.load(f.injector,w)).pipe((0,He.U)(qt=>(w._loadedConfig=qt,new bt(O,{})))):(0,Fe.of)(new bt(O,{}));const{matched:ie,consumedSegments:ge,remainingSegments:Ge}=Le(h,w,O);return ie?this.getChildConfig(f,w,O).pipe((0,zt.zg)(Cn=>{const qt=Cn.module,jn=Cn.routes,{segmentGroup:Rn,slicedSegments:Us}=Ot(h,ge,Ge,jn),Es=new bt(Rn.segments,Rn.children);if(0===Us.length&&Es.hasChildren())return this.expandChildren(qt,jn,Es).pipe((0,He.U)(_l=>new bt(ge,_l)));if(0===jn.length&&0===Us.length)return(0,Fe.of)(new bt(ge,{}));const Jn=b(w)===Z;return this.expandSegment(qt,Es,jn,Us,Jn?_e:Z,!0).pipe((0,He.U)(Hs=>new bt(ge.concat(Hs.segments),Hs.children)))})):Xi(h)}getChildConfig(f,h,w){return h.children?(0,Fe.of)(new Kr(h.children,f)):h.loadChildren?void 0!==h._loadedConfig?(0,Fe.of)(h._loadedConfig):this.runCanLoadGuards(f.injector,h,w).pipe((0,zt.zg)(O=>O?this.configLoader.load(f.injector,h).pipe((0,He.U)(Z=>(h._loadedConfig=Z,Z))):function Mo(y){return Ye(ct(`Cannot load children because the guard of the route "path: '${y.path}'" returned false`))}(h))):(0,Fe.of)(new Kr([],f))}runCanLoadGuards(f,h,w){const O=h.canLoad;if(!O||0===O.length)return(0,Fe.of)(!0);const Z=O.map(ie=>{const ge=f.get(ie);let Ge;if(function z(y){return y&&Rr(y.canLoad)}(ge))Ge=ge.canLoad(h,w);else{if(!Rr(ge))throw new Error("Invalid CanLoad guard");Ge=ge(h,w)}return Ue(Ge)});return(0,Fe.of)(Z).pipe(rt(),(0,$n.b)(ie=>{if(!D(ie))return;const ge=ct(`Redirecting to "${this.urlSerializer.serialize(ie)}"`);throw ge.url=ie,ge}),(0,He.U)(ie=>!0===ie))}lineralizeSegments(f,h){let w=[],O=h.root;for(;;){if(w=w.concat(O.segments),0===O.numberOfChildren)return(0,Fe.of)(w);if(O.numberOfChildren>1||!O.children[_e])return Ye(new Error(`Only absolute redirects can have named outlets. redirectTo: '${f.redirectTo}'`));O=O.children[_e]}}applyRedirectCommands(f,h,w){return this.applyRedirectCreatreUrlTree(h,this.urlSerializer.parse(h),f,w)}applyRedirectCreatreUrlTree(f,h,w,O){const Z=this.createSegmentGroup(f,h.root,w,O);return new yt(Z,this.createQueryParams(h.queryParams,this.urlTree.queryParams),h.fragment)}createQueryParams(f,h){const w={};return Me(f,(O,Z)=>{if("string"==typeof O&&O.startsWith(":")){const ge=O.substring(1);w[Z]=h[ge]}else w[Z]=O}),w}createSegmentGroup(f,h,w,O){const Z=this.createSegments(f,h.segments,w,O);let ie={};return Me(h.children,(ge,Ge)=>{ie[Ge]=this.createSegmentGroup(f,ge,w,O)}),new bt(Z,ie)}createSegments(f,h,w,O){return h.map(Z=>Z.path.startsWith(":")?this.findPosParam(f,Z,O):this.findOrReturn(Z,w))}findPosParam(f,h,w){const O=w[h.path.substring(1)];if(!O)throw new Error(`Cannot redirect to '${f}'. Cannot find '${h.path}'.`);return O}findOrReturn(f,h){let w=0;for(const O of h){if(O.path===f.path)return h.splice(w),O;w++}return f}}function Lr(y){const f={};for(const w of Object.keys(y.children)){const Z=Lr(y.children[w]);(Z.segments.length>0||Z.hasChildren())&&(f[w]=Z)}return function es(y){if(1===y.numberOfChildren&&y.children[_e]){const f=y.children[_e];return new bt(y.segments.concat(f.segments),f.children)}return y}(new bt(y.segments,f))}class Is{constructor(f){this.path=f,this.route=this.path[this.path.length-1]}}class qs{constructor(f,h){this.component=f,this.route=h}}function So(y,f,h){const w=y._root;return xr(w,f?f._root:null,h,[w.value])}function Di(y,f,h){const w=function Mr(y){if(!y)return null;for(let f=y.parent;f;f=f.parent){const h=f.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig}return null}(f);return(w?w.module.injector:h).get(y)}function xr(y,f,h,w,O={canDeactivateChecks:[],canActivateChecks:[]}){const Z=Qn(f);return y.children.forEach(ie=>{(function Po(y,f,h,w,O={canDeactivateChecks:[],canActivateChecks:[]}){const Z=y.value,ie=f?f.value:null,ge=h?h.getContext(y.value.outlet):null;if(ie&&Z.routeConfig===ie.routeConfig){const Ge=function ts(y,f,h){if("function"==typeof h)return h(y,f);switch(h){case"pathParamsChange":return!q(y.url,f.url);case"pathParamsOrQueryParamsChange":return!q(y.url,f.url)||!Wt(y.queryParams,f.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mi(y,f)||!Wt(y.queryParams,f.queryParams);default:return!mi(y,f)}}(ie,Z,Z.routeConfig.runGuardsAndResolvers);Ge?O.canActivateChecks.push(new Is(w)):(Z.data=ie.data,Z._resolvedData=ie._resolvedData),xr(y,f,Z.component?ge?ge.children:null:h,w,O),Ge&&ge&&ge.outlet&&ge.outlet.isActivated&&O.canDeactivateChecks.push(new qs(ge.outlet.component,ie))}else ie&&Fr(f,ge,O),O.canActivateChecks.push(new Is(w)),xr(y,null,Z.component?ge?ge.children:null:h,w,O)})(ie,Z[ie.value.outlet],h,w.concat([ie.value]),O),delete Z[ie.value.outlet]}),Me(Z,(ie,ge)=>Fr(ie,h.getContext(ge),O)),O}function Fr(y,f,h){const w=Qn(y),O=y.value;Me(w,(Z,ie)=>{Fr(Z,O.component?f?f.children.getContext(ie):null:f,h)}),h.canDeactivateChecks.push(new qs(O.component&&f&&f.outlet&&f.outlet.isActivated?f.outlet.component:null,O))}class hl{}function Ks(y){return new ne.y(f=>f.error(y))}class Io{constructor(f,h,w,O,Z,ie){this.rootComponentType=f,this.config=h,this.urlTree=w,this.url=O,this.paramsInheritanceStrategy=Z,this.relativeLinkResolution=ie}recognize(){const f=Ot(this.urlTree.root,[],[],this.config.filter(ie=>void 0===ie.redirectTo),this.relativeLinkResolution).segmentGroup,h=this.processSegmentGroup(this.config,f,_e);if(null===h)return null;const w=new gr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},_e,this.rootComponentType,null,this.urlTree.root,-1,{}),O=new Pn(w,h),Z=new nr(this.url,O);return this.inheritParamsAndData(Z._root),Z}inheritParamsAndData(f){const h=f.value,w=pi(h,this.paramsInheritanceStrategy);h.params=Object.freeze(w.params),h.data=Object.freeze(w.data),f.children.forEach(O=>this.inheritParamsAndData(O))}processSegmentGroup(f,h,w){return 0===h.segments.length&&h.hasChildren()?this.processChildren(f,h):this.processSegment(f,h,h.segments,w)}processChildren(f,h){const w=[];for(const Z of Object.keys(h.children)){const ie=h.children[Z],ge=C(f,Z),Ge=this.processSegmentGroup(ge,ie,Z);if(null===Ge)return null;w.push(...Ge)}const O=_s(w);return function No(y){y.sort((f,h)=>f.value.outlet===_e?-1:h.value.outlet===_e?1:f.value.outlet.localeCompare(h.value.outlet))}(O),O}processSegment(f,h,w,O){for(const Z of f){const ie=this.processSegmentAgainstRoute(Z,h,w,O);if(null!==ie)return ie}return Eo(h,w,O)?[]:null}processSegmentAgainstRoute(f,h,w,O){if(f.redirectTo||!wo(f,h,w,O))return null;let Z,ie=[],ge=[];if("**"===f.path){const Rn=w.length>0?K(w).parameters:{};Z=new gr(w,Rn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,li(f),b(f),f.component,f,Fo(h),_r(h)+w.length,tr(f))}else{const Rn=Le(h,f,w);if(!Rn.matched)return null;ie=Rn.consumedSegments,ge=Rn.remainingSegments,Z=new gr(ie,Rn.parameters,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,li(f),b(f),f.component,f,Fo(h),_r(h)+ie.length,tr(f))}const Ge=function Ea(y){return y.children?y.children:y.loadChildren?y._loadedConfig.routes:[]}(f),{segmentGroup:Mt,slicedSegments:Cn}=Ot(h,ie,ge,Ge.filter(Rn=>void 0===Rn.redirectTo),this.relativeLinkResolution);if(0===Cn.length&&Mt.hasChildren()){const Rn=this.processChildren(Ge,Mt);return null===Rn?null:[new Pn(Z,Rn)]}if(0===Ge.length&&0===Cn.length)return[new Pn(Z,[])];const qt=b(f)===O,jn=this.processSegment(Ge,Mt,Cn,qt?_e:O);return null===jn?null:[new Pn(Z,jn)]}}function Tr(y){const f=y.value.routeConfig;return f&&""===f.path&&void 0===f.redirectTo}function _s(y){const f=[],h=new Set;for(const w of y){if(!Tr(w)){f.push(w);continue}const O=f.find(Z=>w.value.routeConfig===Z.value.routeConfig);void 0!==O?(O.children.push(...w.children),h.add(O)):f.push(w)}for(const w of h){const O=_s(w.children);f.push(new Pn(w.value,O))}return f.filter(w=>!h.has(w))}function Fo(y){let f=y;for(;f._sourceSegment;)f=f._sourceSegment;return f}function _r(y){let f=y,h=f._segmentIndexShift?f._segmentIndexShift:0;for(;f._sourceSegment;)f=f._sourceSegment,h+=f._segmentIndexShift?f._segmentIndexShift:0;return h-1}function li(y){return y.data||{}}function tr(y){return y.resolve||{}}function Xr(y){return[...Object.keys(y),...Object.getOwnPropertySymbols(y)]}function ns(y){return Ze(f=>{const h=y(f);return h?(0,Je.D)(h).pipe((0,He.U)(()=>f)):(0,Fe.of)(f)})}class eo extends class rs{shouldDetach(f){return!1}store(f,h){}shouldAttach(f){return!1}retrieve(f){return null}shouldReuseRoute(f,h){return f.routeConfig===h.routeConfig}}{}const ys=new _.OlP("ROUTES");class ko{constructor(f,h,w,O){this.injector=f,this.compiler=h,this.onLoadStartListener=w,this.onLoadEndListener=O}load(f,h){if(h._loader$)return h._loader$;this.onLoadStartListener&&this.onLoadStartListener(h);const O=this.loadModuleFactory(h.loadChildren).pipe((0,He.U)(Z=>{this.onLoadEndListener&&this.onLoadEndListener(h);const ie=Z.create(f);return new Kr(se(ie.injector.get(ys,void 0,_.XFs.Self|_.XFs.Optional)).map(S),ie)}),(0,zn.K)(Z=>{throw h._loader$=void 0,Z}));return h._loader$=new Te.c(O,()=>new V.xQ).pipe((0,jt.x)()),h._loader$}loadModuleFactory(f){return Ue(f()).pipe((0,zt.zg)(h=>h instanceof _.YKP?(0,Fe.of)(h):(0,Je.D)(this.compiler.compileModuleAsync(h))))}}class vs{shouldProcessUrl(f){return!0}extract(f){return f}merge(f,h){return f}}function Oa(y){throw y}function xa(y,f,h){return f.parse("/")}function ci(y,f){return(0,Fe.of)(null)}const to={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Aa={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ar=(()=>{class y{constructor(h,w,O,Z,ie,ge,Ge){this.rootComponentType=h,this.urlSerializer=w,this.rootContexts=O,this.location=Z,this.config=Ge,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new V.xQ,this.errorHandler=Oa,this.malformedUriErrorHandler=xa,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ci,afterPreactivation:ci},this.urlHandlingStrategy=new vs,this.routeReuseStrategy=new eo,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=ie.get(_.h0i),this.console=ie.get(_.c2e);const qt=ie.get(_.R0b);this.isNgZoneEnabled=qt instanceof _.R0b&&_.R0b.isInAngularZone(),this.resetConfig(Ge),this.currentUrlTree=function ut(){return new yt(new bt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ko(ie,ge,jn=>this.triggerEvent(new Dn(jn)),jn=>this.triggerEvent(new Rt(jn))),this.routerState=fi(this.currentUrlTree,this.rootComponentType),this.transitions=new A({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(h){const w=this.events;return h.pipe((0,un.h)(O=>0!==O.id),(0,He.U)(O=>({...O,extractedUrl:this.urlHandlingStrategy.extract(O.rawUrl)})),Ze(O=>{let Z=!1,ie=!1;return(0,Fe.of)(O).pipe((0,$n.b)(ge=>{this.currentNavigation={id:ge.id,initialUrl:ge.currentRawUrl,extractedUrl:ge.extractedUrl,trigger:ge.source,extras:ge.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Ze(ge=>{const Ge=this.browserUrlTree.toString(),Mt=!this.navigated||ge.extractedUrl.toString()!==Ge||Ge!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Mt)&&this.urlHandlingStrategy.shouldProcessUrl(ge.rawUrl))return Ia(ge.source)&&(this.browserUrlTree=ge.extractedUrl),(0,Fe.of)(ge).pipe(Ze(qt=>{const jn=this.transitions.getValue();return w.next(new Qe(qt.id,this.serializeUrl(qt.extractedUrl),qt.source,qt.restoredState)),jn!==this.transitions.getValue()?Gt.E:Promise.resolve(qt)}),function Zs(y,f,h,w){return Ze(O=>function ir(y,f,h,w,O){return new To(y,f,h,w,O).apply()}(y,f,h,O.extractedUrl,w).pipe((0,He.U)(Z=>({...O,urlAfterRedirects:Z}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,$n.b)(qt=>{this.currentNavigation={...this.currentNavigation,finalUrl:qt.urlAfterRedirects}}),function Da(y,f,h,w,O){return(0,zt.zg)(Z=>function ks(y,f,h,w,O="emptyOnly",Z="legacy"){try{const ie=new Io(y,f,h,w,O,Z).recognize();return null===ie?Ks(new hl):(0,Fe.of)(ie)}catch(ie){return Ks(ie)}}(y,f,Z.urlAfterRedirects,h(Z.urlAfterRedirects),w,O).pipe((0,He.U)(ie=>({...Z,targetSnapshot:ie}))))}(this.rootComponentType,this.config,qt=>this.serializeUrl(qt),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,$n.b)(qt=>{if("eager"===this.urlUpdateStrategy){if(!qt.extras.skipLocationChange){const Rn=this.urlHandlingStrategy.merge(qt.urlAfterRedirects,qt.rawUrl);this.setBrowserUrl(Rn,qt)}this.browserUrlTree=qt.urlAfterRedirects}const jn=new dn(qt.id,this.serializeUrl(qt.extractedUrl),this.serializeUrl(qt.urlAfterRedirects),qt.targetSnapshot);w.next(jn)}));if(Mt&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:jn,extractedUrl:Rn,source:Us,restoredState:Es,extras:Jn}=ge,Ho=new Qe(jn,this.serializeUrl(Rn),Us,Es);w.next(Ho);const Hs=fi(Rn,this.rootComponentType).snapshot;return(0,Fe.of)({...ge,targetSnapshot:Hs,urlAfterRedirects:Rn,extras:{...Jn,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=ge.rawUrl,ge.resolve(null),Gt.E}),ns(ge=>{const{targetSnapshot:Ge,id:Mt,extractedUrl:Cn,rawUrl:qt,extras:{skipLocationChange:jn,replaceUrl:Rn}}=ge;return this.hooks.beforePreactivation(Ge,{navigationId:Mt,appliedUrlTree:Cn,rawUrlTree:qt,skipLocationChange:!!jn,replaceUrl:!!Rn})}),(0,$n.b)(ge=>{const Ge=new Ft(ge.id,this.serializeUrl(ge.extractedUrl),this.serializeUrl(ge.urlAfterRedirects),ge.targetSnapshot);this.triggerEvent(Ge)}),(0,He.U)(ge=>({...ge,guards:So(ge.targetSnapshot,ge.currentSnapshot,this.rootContexts)})),function ba(y,f){return(0,zt.zg)(h=>{const{targetSnapshot:w,currentSnapshot:O,guards:{canActivateChecks:Z,canDeactivateChecks:ie}}=h;return 0===ie.length&&0===Z.length?(0,Fe.of)({...h,guardsResult:!0}):function Oo(y,f,h,w){return(0,Je.D)(y).pipe((0,zt.zg)(O=>function Js(y,f,h,w,O){const Z=f&&f.routeConfig?f.routeConfig.canDeactivate:null;if(!Z||0===Z.length)return(0,Fe.of)(!0);const ie=Z.map(ge=>{const Ge=Di(ge,f,O);let Mt;if(function de(y){return y&&Rr(y.canDeactivate)}(Ge))Mt=Ue(Ge.canDeactivate(y,f,h,w));else{if(!Rr(Ge))throw new Error("Invalid CanDeactivate guard");Mt=Ue(Ge(y,f,h,w))}return Mt.pipe(rr())});return(0,Fe.of)(ie).pipe(rt())}(O.component,O.route,h,f,w)),rr(O=>!0!==O,!0))}(ie,w,O,y).pipe((0,zt.zg)(ge=>ge&&function Ji(y){return"boolean"==typeof y}(ge)?function wa(y,f,h,w){return(0,Je.D)(f).pipe((0,Sn.b)(O=>(0,le.z)(function Ns(y,f){return null!==y&&f&&f(new $t(y)),(0,Fe.of)(!0)}(O.route.parent,w),function xo(y,f){return null!==y&&f&&f(new fe(y)),(0,Fe.of)(!0)}(O.route,w),function Ao(y,f,h){const w=f[f.length-1],Z=f.slice(0,f.length-1).reverse().map(ie=>function Qs(y){const f=y.routeConfig?y.routeConfig.canActivateChild:null;return f&&0!==f.length?{node:y,guards:f}:null}(ie)).filter(ie=>null!==ie).map(ie=>_t(()=>{const ge=ie.guards.map(Ge=>{const Mt=Di(Ge,ie.node,h);let Cn;if(function Q(y){return y&&Rr(y.canActivateChild)}(Mt))Cn=Ue(Mt.canActivateChild(w,y));else{if(!Rr(Mt))throw new Error("Invalid CanActivateChild guard");Cn=Ue(Mt(w,y))}return Cn.pipe(rr())});return(0,Fe.of)(ge).pipe(rt())}));return(0,Fe.of)(Z).pipe(rt())}(y,O.path,h),function Fs(y,f,h){const w=f.routeConfig?f.routeConfig.canActivate:null;if(!w||0===w.length)return(0,Fe.of)(!0);const O=w.map(Z=>_t(()=>{const ie=Di(Z,f,h);let ge;if(function T(y){return y&&Rr(y.canActivate)}(ie))ge=Ue(ie.canActivate(f,y));else{if(!Rr(ie))throw new Error("Invalid CanActivate guard");ge=Ue(ie(f,y))}return ge.pipe(rr())}));return(0,Fe.of)(O).pipe(rt())}(y,O.route,h))),rr(O=>!0!==O,!0))}(w,Z,y,f):(0,Fe.of)(ge)),(0,He.U)(ge=>({...h,guardsResult:ge})))})}(this.ngModule.injector,ge=>this.triggerEvent(ge)),(0,$n.b)(ge=>{if(D(ge.guardsResult)){const Mt=ct(`Redirecting to "${this.serializeUrl(ge.guardsResult)}"`);throw Mt.url=ge.guardsResult,Mt}const Ge=new At(ge.id,this.serializeUrl(ge.extractedUrl),this.serializeUrl(ge.urlAfterRedirects),ge.targetSnapshot,!!ge.guardsResult);this.triggerEvent(Ge)}),(0,un.h)(ge=>!!ge.guardsResult||(this.restoreHistory(ge),this.cancelNavigationTransition(ge,""),!1)),ns(ge=>{if(ge.guards.canActivateChecks.length)return(0,Fe.of)(ge).pipe((0,$n.b)(Ge=>{const Mt=new Xn(Ge.id,this.serializeUrl(Ge.extractedUrl),this.serializeUrl(Ge.urlAfterRedirects),Ge.targetSnapshot);this.triggerEvent(Mt)}),Ze(Ge=>{let Mt=!1;return(0,Fe.of)(Ge).pipe(function Ma(y,f){return(0,zt.zg)(h=>{const{targetSnapshot:w,guards:{canActivateChecks:O}}=h;if(!O.length)return(0,Fe.of)(h);let Z=0;return(0,Je.D)(O).pipe((0,Sn.b)(ie=>function Ta(y,f,h,w){return function Sa(y,f,h,w){const O=Xr(y);if(0===O.length)return(0,Fe.of)({});const Z={};return(0,Je.D)(O).pipe((0,zt.zg)(ie=>function Pa(y,f,h,w){const O=Di(y,f,w);return Ue(O.resolve?O.resolve(f,h):O(f,h))}(y[ie],f,h,w).pipe((0,$n.b)(ge=>{Z[ie]=ge}))),bn(1),(0,zt.zg)(()=>Xr(Z).length===O.length?(0,Fe.of)(Z):Gt.E))}(y._resolve,y,f,w).pipe((0,He.U)(Z=>(y._resolvedData=Z,y.data={...y.data,...pi(y,h).resolve},null)))}(ie.route,w,y,f)),(0,$n.b)(()=>Z++),bn(1),(0,zt.zg)(ie=>Z===O.length?(0,Fe.of)(h):Gt.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,$n.b)({next:()=>Mt=!0,complete:()=>{Mt||(this.restoreHistory(Ge),this.cancelNavigationTransition(Ge,"At least one route resolver didn't emit any value."))}}))}),(0,$n.b)(Ge=>{const Mt=new vn(Ge.id,this.serializeUrl(Ge.extractedUrl),this.serializeUrl(Ge.urlAfterRedirects),Ge.targetSnapshot);this.triggerEvent(Mt)}))}),ns(ge=>{const{targetSnapshot:Ge,id:Mt,extractedUrl:Cn,rawUrl:qt,extras:{skipLocationChange:jn,replaceUrl:Rn}}=ge;return this.hooks.afterPreactivation(Ge,{navigationId:Mt,appliedUrlTree:Cn,rawUrlTree:qt,skipLocationChange:!!jn,replaceUrl:!!Rn})}),(0,He.U)(ge=>{const Ge=function gs(y,f,h){const w=_i(y,f._root,h?h._root:void 0);return new br(w,f)}(this.routeReuseStrategy,ge.targetSnapshot,ge.currentRouterState);return{...ge,targetRouterState:Ge}}),(0,$n.b)(ge=>{this.currentUrlTree=ge.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ge.urlAfterRedirects,ge.rawUrl),this.routerState=ge.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ge.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ge),this.browserUrlTree=ge.urlAfterRedirects)}),((y,f,h)=>(0,He.U)(w=>(new Ni(f,w.targetRouterState,w.currentRouterState,h).activate(y),w)))(this.rootContexts,this.routeReuseStrategy,ge=>this.triggerEvent(ge)),(0,$n.b)({next(){Z=!0},complete(){Z=!0}}),(0,ze.x)(()=>{Z||ie||this.cancelNavigationTransition(O,`Navigation ID ${O.id} is not equal to the current navigation id ${this.navigationId}`),this.currentNavigation?.id===O.id&&(this.currentNavigation=null)}),(0,zn.K)(ge=>{if(ie=!0,function St(y){return y&&y[ft]}(ge)){const Ge=D(ge.url);Ge||(this.navigated=!0,this.restoreHistory(O,!0));const Mt=new qe(O.id,this.serializeUrl(O.extractedUrl),ge.message);w.next(Mt),Ge?setTimeout(()=>{const Cn=this.urlHandlingStrategy.merge(ge.url,this.rawUrlTree),qt={skipLocationChange:O.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Ia(O.source)};this.scheduleNavigation(Cn,"imperative",null,qt,{resolve:O.resolve,reject:O.reject,promise:O.promise})},0):O.resolve(!1)}else{this.restoreHistory(O,!0);const Ge=new ot(O.id,this.serializeUrl(O.extractedUrl),ge);w.next(Ge);try{O.resolve(this.errorHandler(ge))}catch(Mt){O.reject(Mt)}}return Gt.E}))}))}resetRootComponentType(h){this.rootComponentType=h,this.routerState.root.component=this.rootComponentType}setTransition(h){this.transitions.next({...this.transitions.value,...h})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(h=>{const w="popstate"===h.type?"popstate":"hashchange";"popstate"===w&&setTimeout(()=>{const O={replaceUrl:!0},Z=h.state?.navigationId?h.state:null;if(Z){const ge={...Z};delete ge.navigationId,delete ge.\u0275routerPageId,0!==Object.keys(ge).length&&(O.state=ge)}const ie=this.parseUrl(h.url);this.scheduleNavigation(ie,w,Z,O)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(h){this.events.next(h)}resetConfig(h){Zn(h),this.config=h.map(S),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(h,w={}){const{relativeTo:O,queryParams:Z,fragment:ie,queryParamsHandling:ge,preserveFragment:Ge}=w,Mt=O||this.routerState.root,Cn=Ge?this.currentUrlTree.fragment:ie;let qt=null;switch(ge){case"merge":qt={...this.currentUrlTree.queryParams,...Z};break;case"preserve":qt=this.currentUrlTree.queryParams;break;default:qt=Z||null}return null!==qt&&(qt=this.removeEmptyProps(qt)),function yi(y,f,h,w,O){if(0===h.length)return $r(f.root,f.root,f.root,w,O);const Z=function ms(y){if("string"==typeof y[0]&&1===y.length&&"/"===y[0])return new vi(!0,0,y);let f=0,h=!1;const w=y.reduce((O,Z,ie)=>{if("object"==typeof Z&&null!=Z){if(Z.outlets){const ge={};return Me(Z.outlets,(Ge,Mt)=>{ge[Mt]="string"==typeof Ge?Ge.split("/"):Ge}),[...O,{outlets:ge}]}if(Z.segmentPath)return[...O,Z.segmentPath]}return"string"!=typeof Z?[...O,Z]:0===ie?(Z.split("/").forEach((ge,Ge)=>{0==Ge&&"."===ge||(0==Ge&&""===ge?h=!0:".."===ge?f++:""!=ge&&O.push(ge))}),O):[...O,Z]},[]);return new vi(h,f,w)}(h);if(Z.toRoot())return $r(f.root,f.root,new bt([],{}),w,O);const ie=function Yi(y,f,h){if(y.isAbsolute)return new Gr(f.root,!0,0);if(-1===h.snapshot._lastPathIndex){const Z=h.snapshot._urlSegment;return new Gr(Z,Z===f.root,0)}const w=Ai(y.commands[0])?0:1;return function Jr(y,f,h){let w=y,O=f,Z=h;for(;Z>O;){if(Z-=O,w=w.parent,!w)throw new Error("Invalid number of '../'");O=w.segments.length}return new Gr(w,!1,O-Z)}(h.snapshot._urlSegment,h.snapshot._lastPathIndex+w,y.numberOfDoubleDots)}(Z,f,y),ge=ie.processChildren?oi(ie.segmentGroup,ie.index,Z.commands):qi(ie.segmentGroup,ie.index,Z.commands);return $r(f.root,ie.segmentGroup,ge,w,O)}(Mt,this.currentUrlTree,h,qt,Cn??null)}navigateByUrl(h,w={skipLocationChange:!1}){const O=D(h)?h:this.parseUrl(h),Z=this.urlHandlingStrategy.merge(O,this.rawUrlTree);return this.scheduleNavigation(Z,"imperative",null,w)}navigate(h,w={skipLocationChange:!1}){return function pl(y){for(let f=0;f<y.length;f++){const h=y[f];if(null==h)throw new Error(`The requested path contains ${h} segment at index ${f}`)}}(h),this.navigateByUrl(this.createUrlTree(h,w),w)}serializeUrl(h){return this.urlSerializer.serialize(h)}parseUrl(h){let w;try{w=this.urlSerializer.parse(h)}catch(O){w=this.malformedUriErrorHandler(O,this.urlSerializer,h)}return w}isActive(h,w){let O;if(O=!0===w?{...to}:!1===w?{...Aa}:w,D(h))return an(this.currentUrlTree,h,O);const Z=this.parseUrl(h);return an(this.currentUrlTree,Z,O)}removeEmptyProps(h){return Object.keys(h).reduce((w,O)=>{const Z=h[O];return null!=Z&&(w[O]=Z),w},{})}processNavigations(){this.navigations.subscribe(h=>{this.navigated=!0,this.lastSuccessfulId=h.id,this.currentPageId=h.targetPageId,this.events.next(new je(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,h.resolve(!0)},h=>{this.console.warn(`Unhandled Navigation Error: ${h}`)})}scheduleNavigation(h,w,O,Z,ie){if(this.disposed)return Promise.resolve(!1);let ge,Ge,Mt;ie?(ge=ie.resolve,Ge=ie.reject,Mt=ie.promise):Mt=new Promise((jn,Rn)=>{ge=jn,Ge=Rn});const Cn=++this.navigationId;let qt;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(O=this.location.getState()),qt=O&&O.\u0275routerPageId?O.\u0275routerPageId:Z.replaceUrl||Z.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):qt=0,this.setTransition({id:Cn,targetPageId:qt,source:w,restoredState:O,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:h,extras:Z,resolve:ge,reject:Ge,promise:Mt,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Mt.catch(jn=>Promise.reject(jn))}setBrowserUrl(h,w){const O=this.urlSerializer.serialize(h),Z={...w.extras.state,...this.generateNgRouterState(w.id,w.targetPageId)};this.location.isCurrentPathEqualTo(O)||w.extras.replaceUrl?this.location.replaceState(O,"",Z):this.location.go(O,"",Z)}restoreHistory(h,w=!1){if("computed"===this.canceledNavigationResolution){const O=this.currentPageId-h.targetPageId;"popstate"!==h.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===O?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===O&&(this.resetState(h),this.browserUrlTree=h.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(O)}else"replace"===this.canceledNavigationResolution&&(w&&this.resetState(h),this.resetUrlToCurrentUrlTree())}resetState(h){this.routerState=h.currentRouterState,this.currentUrlTree=h.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,h.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(h,w){const O=new qe(h.id,this.serializeUrl(h.extractedUrl),w);this.triggerEvent(O),h.resolve(!1)}generateNgRouterState(h,w){return"computed"===this.canceledNavigationResolution?{navigationId:h,\u0275routerPageId:w}:{navigationId:h}}}return y.\u0275fac=function(h){_.$Z()},y.\u0275prov=_.Yz7({token:y,factory:y.\u0275fac}),y})();function Ia(y){return"imperative"!==y}let Cs=(()=>{class y{constructor(h,w,O){this.router=h,this.route=w,this.locationStrategy=O,this.commands=null,this.href=null,this.onChanges=new V.xQ,this.subscription=h.events.subscribe(Z=>{Z instanceof je&&this.updateTargetUrlAndHref()})}set routerLink(h){this.commands=null!=h?Array.isArray(h)?h:[h]:null}ngOnChanges(h){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(h,w,O,Z,ie){if(0!==h||w||O||Z||ie||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const ge={skipLocationChange:Ti(this.skipLocationChange),replaceUrl:Ti(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ge),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Ti(this.preserveFragment)})}}return y.\u0275fac=function(h){return new(h||y)(_.Y36(Ar),_.Y36(pr),_.Y36(r.S$))},y.\u0275dir=_.lG2({type:y,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(h,w){1&h&&_.NdJ("click",function(Z){return w.onClick(Z.button,Z.ctrlKey,Z.shiftKey,Z.altKey,Z.metaKey)}),2&h&&_.uIk("target",w.target)("href",w.href,_.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[_.TTD]}),y})();function Ti(y){return""===y||!!y}class no{}class Lo{preload(f,h){return(0,Fe.of)(null)}}let ki=(()=>{class y{constructor(h,w,O,Z){this.router=h,this.injector=O,this.preloadingStrategy=Z,this.loader=new ko(O,w,Ge=>h.triggerEvent(new Dn(Ge)),Ge=>h.triggerEvent(new Rt(Ge)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,un.h)(h=>h instanceof je),(0,Sn.b)(()=>this.preload())).subscribe(()=>{})}preload(){const h=this.injector.get(_.h0i);return this.processRoutes(h,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(h,w){const O=[];for(const Z of w)if(Z.loadChildren&&!Z.canLoad&&Z._loadedConfig){const ie=Z._loadedConfig;O.push(this.processRoutes(ie.module,ie.routes))}else Z.loadChildren&&!Z.canLoad?O.push(this.preloadConfig(h,Z)):Z.children&&O.push(this.processRoutes(h,Z.children));return(0,Je.D)(O).pipe((0,me.J)(),(0,He.U)(Z=>{}))}preloadConfig(h,w){return this.preloadingStrategy.preload(w,()=>(w._loadedConfig?(0,Fe.of)(w._loadedConfig):this.loader.load(h.injector,w)).pipe((0,zt.zg)(Z=>(w._loadedConfig=Z,this.processRoutes(Z.module,Z.routes)))))}}return y.\u0275fac=function(h){return new(h||y)(_.LFG(Ar),_.LFG(_.Sil),_.LFG(_.zs3),_.LFG(no))},y.\u0275prov=_.Yz7({token:y,factory:y.\u0275fac}),y})(),bs=(()=>{class y{constructor(h,w,O={}){this.router=h,this.viewportScroller=w,this.options=O,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},O.scrollPositionRestoration=O.scrollPositionRestoration||"disabled",O.anchorScrolling=O.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(h=>{h instanceof Qe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=h.navigationTrigger,this.restoredId=h.restoredState?h.restoredState.navigationId:0):h instanceof je&&(this.lastId=h.id,this.scheduleScrollEvent(h,this.router.parseUrl(h.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(h=>{h instanceof Ae&&(h.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(h.position):h.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(h.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(h,w){this.router.triggerEvent(new Ae(h,"popstate"===this.lastSource?this.store[this.restoredId]:null,w))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return y.\u0275fac=function(h){_.$Z()},y.\u0275prov=_.Yz7({token:y,factory:y.\u0275fac}),y})();const ss=new _.OlP("ROUTER_CONFIGURATION"),ro=new _.OlP("ROUTER_FORROOT_GUARD"),Vo=[r.Ye,{provide:te,useClass:ye},{provide:Ar,useFactory:function Bs(y,f,h,w,O,Z,ie={},ge,Ge){const Mt=new Ar(null,y,f,h,w,O,se(Z));return ge&&(Mt.urlHandlingStrategy=ge),Ge&&(Mt.routeReuseStrategy=Ge),function Na(y,f){y.errorHandler&&(f.errorHandler=y.errorHandler),y.malformedUriErrorHandler&&(f.malformedUriErrorHandler=y.malformedUriErrorHandler),y.onSameUrlNavigation&&(f.onSameUrlNavigation=y.onSameUrlNavigation),y.paramsInheritanceStrategy&&(f.paramsInheritanceStrategy=y.paramsInheritanceStrategy),y.relativeLinkResolution&&(f.relativeLinkResolution=y.relativeLinkResolution),y.urlUpdateStrategy&&(f.urlUpdateStrategy=y.urlUpdateStrategy),y.canceledNavigationResolution&&(f.canceledNavigationResolution=y.canceledNavigationResolution)}(ie,Mt),ie.enableTracing&&Mt.events.subscribe(Cn=>{console.group?.(`Router Event: ${Cn.constructor.name}`),console.log(Cn.toString()),console.log(Cn),console.groupEnd?.()}),Mt},deps:[te,In,r.Ye,_.zs3,_.Sil,ys,ss,[class Mi{},new _.FiY],[class Xs{},new _.FiY]]},In,{provide:pr,useFactory:function jo(y){return y.routerState.root},deps:[Ar]},ki,Lo,class Fi{preload(f,h){return h().pipe((0,zn.K)(()=>(0,Fe.of)(null)))}},{provide:ss,useValue:{enableTracing:!1}}];function Bo(){return new _.PXZ("Router",Ar)}let gl=(()=>{class y{constructor(h,w){}static forRoot(h,w){return{ngModule:y,providers:[Vo,ws(h),{provide:ro,useFactory:so,deps:[[Ar,new _.FiY,new _.tp0]]},{provide:ss,useValue:w||{}},{provide:r.S$,useFactory:io,deps:[r.lw,[new _.tBr(r.mr),new _.FiY],ss]},{provide:bs,useFactory:Vs,deps:[Ar,r.EM,ss]},{provide:no,useExisting:w&&w.preloadingStrategy?w.preloadingStrategy:Lo},{provide:_.PXZ,multi:!0,useFactory:Bo},[js,{provide:_.ip1,multi:!0,useFactory:Fa,deps:[js]},{provide:Ra,useFactory:ka,deps:[js]},{provide:_.tb,multi:!0,useExisting:Ra}]]}}static forChild(h){return{ngModule:y,providers:[ws(h)]}}}return y.\u0275fac=function(h){return new(h||y)(_.LFG(ro,8),_.LFG(Ar,8))},y.\u0275mod=_.oAB({type:y}),y.\u0275inj=_.cJS({}),y})();function Vs(y,f,h){return h.scrollOffset&&f.setOffset(h.scrollOffset),new bs(y,f,h)}function io(y,f,h={}){return h.useHash?new r.Do(y,f):new r.b0(y,f)}function so(y){return"guarded"}function ws(y){return[{provide:_.deG,multi:!0,useValue:y},{provide:ys,multi:!0,useValue:y}]}let js=(()=>{class y{constructor(h){this.injector=h,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new V.xQ}appInitializer(){return this.injector.get(r.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let w=null;const O=new Promise(ge=>w=ge),Z=this.injector.get(Ar),ie=this.injector.get(ss);return"disabled"===ie.initialNavigation?(Z.setUpLocationChangeListener(),w(!0)):"enabled"===ie.initialNavigation||"enabledBlocking"===ie.initialNavigation?(Z.hooks.afterPreactivation=()=>this.initNavigation?(0,Fe.of)(null):(this.initNavigation=!0,w(!0),this.resultOfPreactivationDone),Z.initialNavigation()):w(!0),O})}bootstrapListener(h){const w=this.injector.get(ss),O=this.injector.get(ki),Z=this.injector.get(bs),ie=this.injector.get(Ar),ge=this.injector.get(_.z2F);h===ge.components[0]&&(("enabledNonBlocking"===w.initialNavigation||void 0===w.initialNavigation)&&ie.initialNavigation(),O.setUpPreloading(),Z.init(),ie.resetRootComponentType(ge.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return y.\u0275fac=function(h){return new(h||y)(_.LFG(_.zs3))},y.\u0275prov=_.Yz7({token:y,factory:y.\u0275fac}),y})();function Fa(y){return y.appInitializer.bind(y)}function ka(y){return y.bootstrapListener.bind(y)}const Ra=new _.OlP("Router Initializer")},1620:(J,F,p)=>{"use strict";p.d(F,{au:()=>at,Tr:()=>be});var r=p(5062),_=p(529),V=p(4850),j=p(4235),A=p.n(j),I=p(1305),R=p.n(I),x=(()=>{return(_t=x||(x={}))[_t.Error=0]="Error",_t[_t.Warning=1]="Warning",_t[_t.Information=2]="Information",_t[_t.Unknown=3]="Unknown",x;var _t})();const H={isPaged:!1,isFiltered:!1,record:0,page:0,pageSize:0,totalRecords:0,totalPages:0,recordsBeforeFilter:0,batch:!1,properties:{}};class ne{constructor(Fe){this.isPaged=!1,this.record=0,this.page=0,this.pageSize=0,this.totalRecords=0,this.totalPages=0,this.isFiltered=!1,this.recordsBeforeFilter=0,this.batch=!1,this.properties={},Fe.paginate&&(this.isPaged=!0,this.record=parseInt(Fe.paginate.start_result,10)||0,this.page=parseInt(Fe.paginate.current_page,10)||0,this.pageSize=parseInt(Fe.paginate.results_per_page,10)||0,this.totalPages=parseInt(Fe.paginate.total_pages,10)||0,this.totalRecords=parseInt(Fe.paginate.total_results,10)||0),Fe.filter&&(this.isFiltered=!0,this.recordsBeforeFilter=parseInt(Fe.filter.records_before_filter,10)||0);const le=new Set(["paginate","filter"]);Object.keys(Fe).filter(Te=>!le.has(Te)).forEach(Te=>{this.properties[Te]=Fe[Te]})}}class re extends class G{constructor(Fe,le){if(this.status=0,this.messages=[],this.meta=function L(_t){return JSON.parse(JSON.stringify(_t))}(H),this.options={keepUnprocessedResponse:!1},A()(Fe)||R()(Fe))throw new Error("The response was unexpectedly undefined or null");le&&(this.options=le),this.options.keepUnprocessedResponse&&(this.raw=JSON.parse(JSON.stringify(Fe)))}get success(){return this.status>0}get failed(){return 0===this.status}_getMessages(Fe){return this.messages.filter(le=>le.type===Fe)}get errors(){return this._getMessages(x.Error)}get warnings(){return this._getMessages(x.Warning)}get infoMessages(){return this._getMessages(x.Information)}_hasMessages(Fe){return this.messages.filter(le=>le.type===Fe).length>0}get hasErrors(){return this._hasMessages(x.Error)}get hasWarnings(){return this._hasMessages(x.Warning)}get hasInfoMessages(){return this._hasMessages(x.Information)}get isPaged(){return this.meta.isPaged}get isFiltered(){return this.meta.isFiltered}}{_parseStatus(Fe){if(this.status=0,typeof Fe.status>"u")throw new Error("The response should have a numeric status property indicating the API succeeded (>0) or failed (=0)");this.status=parseInt(Fe.status,10)}_parseMessages(Fe){if("errors"in Fe){const le=Fe.errors;le&&le.length&&le.forEach(Te=>{this.messages.push({type:x.Error,message:Te})})}if("messages"in Fe){const le=Fe.messages;le&&le.forEach(Te=>{this.messages.push({type:x.Information,message:Te})})}}constructor(Fe,le){if(super(Fe,le),this._parseStatus(Fe),this._parseMessages(Fe),!Fe||!Object.prototype.hasOwnProperty.call(Fe,"data"))throw new Error("Expected response to contain a data property, but it is missing");this.data=Fe.data,Fe.metadata&&(this.meta=new ne(Fe.metadata))}}var Oe=p(109),Se=p(3022),Ne=p(5712),ve=p(6962);let at=(()=>{class _t{}return _t.\u0275fac=function(le){return new(le||_t)},_t.\u0275mod=r.oAB({type:_t}),_t.\u0275inj=r.cJS({imports:[[_.JF]]}),_t})(),be=(()=>{class _t{constructor(le){this.http=le}delete(le){const Te=le.generate(),He=this.packageUrl(Te);return this.http.delete(He,{headers:this.packageHeaders(Te)}).pipe((0,V.U)(this.packageResponseHandler(He)))}get(le){const Te=le.generate({verb:Oe.F.GET,encoder:new Se.VN}),He=this.packageUrl(Te);return this.http.get(He,{headers:this.packageHeaders(Te)}).pipe((0,V.U)(this.packageResponseHandler(He)))}options(le){const Te=le.generate(),He=this.packageUrl(Te);return this.http.options(He,{headers:this.packageHeaders(Te)}).pipe((0,V.U)(this.packageResponseHandler(He)))}patch(le){const Te=le.generate(),He=this.packageUrl(Te);return this.http.patch(He,Te.body,{headers:this.packageHeaders(Te)}).pipe((0,V.U)(this.packageResponseHandler(He)))}put(le){const Te=le.generate(),He=this.packageUrl(Te);return this.http.put(He,Te.body,{headers:this.packageHeaders(Te)}).pipe((0,V.U)(this.packageResponseHandler(He)))}post(le){const Te=le.generate(),He=this.packageUrl(Te);return this.http.post(He,Te.body,{headers:this.packageHeaders(Te)}).pipe((0,V.U)(this.packageResponseHandler(He)))}packageHeaders(le){const Te={};return le.headers.forEach(He=>{Te[He.name]=He.value}),new _.WM(Te)}packageUrl(le){return new Ne.b5(new ve.a).buildTokenPath(le.url)}packageResponseHandler(le){return Te=>{const He=new re(Te);return He.meta.properties.url=le,He}}}return _t.\u0275fac=function(le){return new(le||_t)(r.LFG(_.eN))},_t.\u0275prov=r.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"}),_t})()},348:(J,F,p)=>{"use strict";p.d(F,{m:()=>A});var r=p(5062),_=p(269);const V=new r.OlP("window"),j=I=>new _.g(I.CLDR,I.LEXICON);let A=(()=>{class I{}return I.\u0275fac=function(x){return new(x||I)},I.\u0275mod=r.oAB({type:I}),I.\u0275inj=r.cJS({providers:[{provide:V,useValue:window},{provide:_.g,useFactory:j,deps:[V]}],imports:[[]]}),I})()},6389:(J,F,p)=>{"use strict";p.d(F,{xV:()=>gc,zr:()=>mc,FP:()=>Ms,hF:()=>Cc,CQ:()=>bc,c9:()=>$o,wH:()=>$s,pm:()=>Go,Oc:()=>$d,df:()=>lo,hg:()=>fo,kx:()=>Ec,kM:()=>bl,k6:()=>ja,RV:()=>Sc,Qt:()=>Wd,u3:()=>Pc,Im:()=>Mc,gz:()=>Tc,gS:()=>wc,t8:()=>Zo,_q:()=>ho,vs:()=>El,fm:()=>Wo,wL:()=>co,ln:()=>hc,RU:()=>vl});var r=p(5062),_=p(6895),V=p(5529),j=p(3753),A=p(1086),I=p(9877),R=p(3489);class H{constructor(l,o){this.compare=l,this.keySelector=o}call(l,o){return o.subscribe(new L(l,this.compare,this.keySelector))}}class L extends R.L{constructor(l,o,c){super(l),this.keySelector=c,this.hasKey=!1,"function"==typeof o&&(this.compare=o)}compare(l,o){return l===o}_next(l){let o;try{const{keySelector:M}=this;o=M?M(l):l}catch(M){return this.destination.error(M)}let c=!1;if(this.hasKey)try{const{compare:M}=this;c=M(this.key,o)}catch(M){return this.destination.error(M)}else this.hasKey=!0;c||(this.key=o,this.destination.next(l))}}var G=p(4850),ne=p(2198),re=p(7625),Oe=p(13),Se=p(7221),Ne=p(2986),ve=p(4006),at=p(348),Ye=p(269),Be=p(7340),st=p(1481);const be=!1;function Gt(u){return new r.vHH(3e3,be)}function me(){return typeof window<"u"&&typeof window.document<"u"}function he(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Qe(u){switch(u.length){case 0:return new Be.ZN;case 1:return u[0];default:return new Be.ZE(u)}}function je(u,l,o,c,M={},U={}){const X=[],oe=[];let Ce=-1,ke=null;if(c.forEach(mt=>{const xt=mt.offset,tn=xt==Ce,pn=tn&&ke||{};Object.keys(mt).forEach(Xt=>{let _n=Xt,On=mt[Xt];if("offset"!==Xt)switch(_n=l.normalizePropertyName(_n,X),On){case Be.k1:On=M[Xt];break;case Be.l3:On=U[Xt];break;default:On=l.normalizeStyleValue(Xt,_n,On,X)}pn[_n]=On}),tn||oe.push(pn),ke=pn,Ce=xt}),X.length)throw function En(u){return new r.vHH(3502,be)}();return oe}function qe(u,l,o,c){switch(l){case"start":u.onStart(()=>c(o&&ot(o,"start",u)));break;case"done":u.onDone(()=>c(o&&ot(o,"done",u)));break;case"destroy":u.onDestroy(()=>c(o&&ot(o,"destroy",u)))}}function ot(u,l,o){const U=dn(u.element,u.triggerName,u.fromState,u.toState,l||u.phaseName,o.totalTime??u.totalTime,!!o.disabled),X=u._data;return null!=X&&(U._data=X),U}function dn(u,l,o,c,M="",U=0,X){return{element:u,triggerName:l,fromState:o,toState:c,phaseName:M,totalTime:U,disabled:!!X}}function Ft(u,l,o){let c;return u instanceof Map?(c=u.get(l),c||u.set(l,c=o)):(c=u[l],c||(c=u[l]=o)),c}function At(u){const l=u.indexOf(":");return[u.substring(1,l),u.substr(l+1)]}let Xn=(u,l)=>!1,vn=(u,l,o)=>[],Dn=null;function Rt(u){const l=u.parentNode||u.host;return l===Dn?null:l}(he()||typeof Element<"u")&&(me()?(Dn=(()=>document.documentElement)(),Xn=(u,l)=>{for(;l;){if(l===u)return!0;l=Rt(l)}return!1}):Xn=(u,l)=>u.contains(l),vn=(u,l,o)=>{if(o)return Array.from(u.querySelectorAll(l));const c=u.querySelector(l);return c?[c]:[]});let fe=null,Ee=!1;function Ae(u){fe||(fe=function _e(){return typeof document<"u"?document.body:null}()||{},Ee=!!fe.style&&"WebkitAppearance"in fe.style);let l=!0;return fe.style&&!function sn(u){return"ebkit"==u.substring(1,6)}(u)&&(l=u in fe.style,!l&&Ee&&(l="Webkit"+u.charAt(0).toUpperCase()+u.substr(1)in fe.style)),l}const Re=Xn,tt=vn;let ct=(()=>{class u{validateStyleProperty(o){return Ae(o)}matchesElement(o,c){return!1}containsElement(o,c){return Re(o,c)}getParentElement(o){return Rt(o)}query(o,c,M){return tt(o,c,M)}computeStyle(o,c,M){return M||""}animate(o,c,M,U,X,oe=[],Ce){return new Be.ZN(M,U)}}return u.\u0275fac=function(o){return new(o||u)},u.\u0275prov=r.Yz7({token:u,factory:u.\u0275fac}),u})(),St=(()=>{class u{}return u.NOOP=new ct,u})();const De="ng-enter",se="ng-leave",K="ng-trigger",Pe=".ng-trigger",Me="ng-animating",Ue=".ng-animating";function ut(u){if("number"==typeof u)return u;const l=u.match(/^(-?[\.\d]+)(m?s)/);return!l||l.length<2?0:It(parseFloat(l[1]),l[2])}function It(u,l){return"s"===l?1e3*u:u}function Ct(u,l,o){return u.hasOwnProperty("duration")?u:function an(u,l,o){let M,U=0,X="";if("string"==typeof u){const oe=u.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===oe)return l.push(Gt()),{duration:0,delay:0,easing:""};M=It(parseFloat(oe[1]),oe[2]);const Ce=oe[3];null!=Ce&&(U=It(parseFloat(Ce),oe[4]));const ke=oe[5];ke&&(X=ke)}else M=u;if(!o){let oe=!1,Ce=l.length;M<0&&(l.push(function _t(){return new r.vHH(3100,be)}()),oe=!0),U<0&&(l.push(function Fe(){return new r.vHH(3101,be)}()),oe=!0),oe&&l.splice(Ce,0,Gt())}return{duration:M,delay:U,easing:X}}(u,l,o)}function Pt(u,l={}){return Object.keys(u).forEach(o=>{l[o]=u[o]}),l}function Tt(u,l,o={}){if(l)for(let c in u)o[c]=u[c];else Pt(u,o);return o}function Ke(u,l,o){return o?l+":"+o+";":""}function it(u){let l="";for(let o=0;o<u.style.length;o++){const c=u.style.item(o);l+=Ke(0,c,u.style.getPropertyValue(c))}for(const o in u.style)u.style.hasOwnProperty(o)&&!o.startsWith("_")&&(l+=Ke(0,E(o),u.style[o]));u.setAttribute("style",l)}function ht(u,l,o){u.style&&(Object.keys(l).forEach(c=>{const M=we(c);o&&!o.hasOwnProperty(c)&&(o[c]=u.style[M]),u.style[M]=l[c]}),he()&&it(u))}function yt(u,l){u.style&&(Object.keys(l).forEach(o=>{const c=we(o);u.style[c]=""}),he()&&it(u))}function bt(u){return Array.isArray(u)?1==u.length?u[0]:(0,Be.vP)(u):u}const k=new RegExp("{{\\s*(.+?)\\s*}}","g");function q(u){let l=[];if("string"==typeof u){let o;for(;o=k.exec(u);)l.push(o[1]);k.lastIndex=0}return l}function Y(u,l,o){const c=u.toString(),M=c.replace(k,(U,X)=>{let oe=l[X];return l.hasOwnProperty(X)||(o.push(function Te(u){return new r.vHH(3003,be)}()),oe=""),oe.toString()});return M==c?u:M}function te(u){const l=[];let o=u.next();for(;!o.done;)l.push(o.value),o=u.next();return l}const ye=/-+([a-z0-9])/g;function we(u){return u.replace(ye,(...l)=>l[1].toUpperCase())}function E(u){return u.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function B(u,l,o){switch(l.type){case 7:return u.visitTrigger(l,o);case 0:return u.visitState(l,o);case 1:return u.visitTransition(l,o);case 2:return u.visitSequence(l,o);case 3:return u.visitGroup(l,o);case 4:return u.visitAnimate(l,o);case 5:return u.visitKeyframes(l,o);case 6:return u.visitStyle(l,o);case 8:return u.visitReference(l,o);case 9:return u.visitAnimateChild(l,o);case 10:return u.visitAnimateRef(l,o);case 11:return u.visitQuery(l,o);case 12:return u.visitStagger(l,o);default:throw function He(u){return new r.vHH(3004,be)}()}}function ue(u,l){return window.getComputedStyle(u)[l]}function Qt(u,l){const o=[];return"string"==typeof u?u.split(/\s*,\s*/).forEach(c=>function ln(u,l,o){if(":"==u[0]){const Ce=function on(u,l){switch(u){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(o,c)=>parseFloat(c)>parseFloat(o);case":decrement":return(o,c)=>parseFloat(c)<parseFloat(o);default:return l.push(function cn(u){return new r.vHH(3016,be)}()),"* => *"}}(u,o);if("function"==typeof Ce)return void l.push(Ce);u=Ce}const c=u.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==c||c.length<4)return o.push(function An(u){return new r.vHH(3015,be)}()),l;const M=c[1],U=c[2],X=c[3];l.push(qn(M,X));"<"==U[0]&&!("*"==M&&"*"==X)&&l.push(qn(X,M))}(c,o,l)):o.push(u),o}const Gn=new Set(["true","1"]),Hn=new Set(["false","0"]);function qn(u,l){const o=Gn.has(u)||Hn.has(u),c=Gn.has(l)||Hn.has(l);return(M,U)=>{let X="*"==u||u==M,oe="*"==l||l==U;return!X&&o&&"boolean"==typeof M&&(X=M?Gn.has(u):Hn.has(u)),!oe&&c&&"boolean"==typeof U&&(oe=U?Gn.has(l):Hn.has(l)),X&&oe}}const qr=new RegExp("s*:selfs*,?","g");function Pn(u,l,o,c){return new br(u).build(l,o,c)}class br{constructor(l){this._driver=l}build(l,o,c){const M=new pr(o);this._resetContextStyleTimingState(M);const U=B(this,bt(l),M);return M.unsupportedCSSPropertiesFound.size&&M.unsupportedCSSPropertiesFound.keys(),U}_resetContextStyleTimingState(l){l.currentQuerySelector="",l.collectedStyles={},l.collectedStyles[""]={},l.currentTime=0}visitTrigger(l,o){let c=o.queryCount=0,M=o.depCount=0;const U=[],X=[];return"@"==l.name.charAt(0)&&o.errors.push(function Ze(){return new r.vHH(3006,be)}()),l.definitions.forEach(oe=>{if(this._resetContextStyleTimingState(o),0==oe.type){const Ce=oe,ke=Ce.name;ke.toString().split(/\s*,\s*/).forEach(mt=>{Ce.name=mt,U.push(this.visitState(Ce,o))}),Ce.name=ke}else if(1==oe.type){const Ce=this.visitTransition(oe,o);c+=Ce.queryCount,M+=Ce.depCount,X.push(Ce)}else o.errors.push(function $e(){return new r.vHH(3007,be)}())}),{type:7,name:l.name,states:U,transitions:X,queryCount:c,depCount:M,options:null}}visitState(l,o){const c=this.visitStyle(l.styles,o),M=l.options&&l.options.params||null;if(c.containsDynamicStyles){const U=new Set,X=M||{};c.styles.forEach(oe=>{if(wr(oe)){const Ce=oe;Object.keys(Ce).forEach(ke=>{q(Ce[ke]).forEach(mt=>{X.hasOwnProperty(mt)||U.add(mt)})})}}),U.size&&(te(U.values()),o.errors.push(function yn(u,l){return new r.vHH(3008,be)}()))}return{type:0,name:l.name,style:c,options:M?{params:M}:null}}visitTransition(l,o){o.queryCount=0,o.depCount=0;const c=B(this,bt(l.animation),o);return{type:1,matchers:Qt(l.expr,o.errors),animation:c,queryCount:o.queryCount,depCount:o.depCount,options:nr(l.options)}}visitSequence(l,o){return{type:2,steps:l.steps.map(c=>B(this,c,o)),options:nr(l.options)}}visitGroup(l,o){const c=o.currentTime;let M=0;const U=l.steps.map(X=>{o.currentTime=c;const oe=B(this,X,o);return M=Math.max(M,o.currentTime),oe});return o.currentTime=M,{type:3,steps:U,options:nr(l.options)}}visitAnimate(l,o){const c=function gr(u,l){if(u.hasOwnProperty("duration"))return u;if("number"==typeof u)return gi(Ct(u,l).duration,0,"");const o=u;if(o.split(/\s+/).some(U=>"{"==U.charAt(0)&&"{"==U.charAt(1))){const U=gi(0,0,"");return U.dynamic=!0,U.strValue=o,U}const M=Ct(o,l);return gi(M.duration,M.delay,M.easing)}(l.timings,o.errors);o.currentAnimateTimings=c;let M,U=l.styles?l.styles:(0,Be.oB)({});if(5==U.type)M=this.visitKeyframes(U,o);else{let X=l.styles,oe=!1;if(!X){oe=!0;const ke={};c.easing&&(ke.easing=c.easing),X=(0,Be.oB)(ke)}o.currentTime+=c.duration+c.delay;const Ce=this.visitStyle(X,o);Ce.isEmptyStep=oe,M=Ce}return o.currentAnimateTimings=null,{type:4,timings:c,style:M,options:null}}visitStyle(l,o){const c=this._makeStyleAst(l,o);return this._validateStyleAst(c,o),c}_makeStyleAst(l,o){const c=[];Array.isArray(l.styles)?l.styles.forEach(X=>{"string"==typeof X?X==Be.l3?c.push(X):o.errors.push(function Vt(u){return new r.vHH(3002,be)}()):c.push(X)}):c.push(l.styles);let M=!1,U=null;return c.forEach(X=>{if(wr(X)){const oe=X,Ce=oe.easing;if(Ce&&(U=Ce,delete oe.easing),!M)for(let ke in oe)if(oe[ke].toString().indexOf("{{")>=0){M=!0;break}}}),{type:6,styles:c,easing:U,offset:l.offset,containsDynamicStyles:M,options:null}}_validateStyleAst(l,o){const c=o.currentAnimateTimings;let M=o.currentTime,U=o.currentTime;c&&U>0&&(U-=c.duration+c.delay),l.styles.forEach(X=>{"string"!=typeof X&&Object.keys(X).forEach(oe=>{if(!this._driver.validateStyleProperty(oe))return delete X[oe],void o.unsupportedCSSPropertiesFound.add(oe);const Ce=o.collectedStyles[o.currentQuerySelector],ke=Ce[oe];let mt=!0;ke&&(U!=M&&U>=ke.startTime&&M<=ke.endTime&&(o.errors.push(function Mn(u,l,o,c,M){return new r.vHH(3010,be)}()),mt=!1),U=ke.startTime),mt&&(Ce[oe]={startTime:U,endTime:M}),o.options&&function hn(u,l,o){const c=l.params||{},M=q(u);M.length&&M.forEach(U=>{c.hasOwnProperty(U)||o.push(function le(u){return new r.vHH(3001,be)}())})}(X[oe],o.options,o.errors)})})}visitKeyframes(l,o){const c={type:5,styles:[],options:null};if(!o.currentAnimateTimings)return o.errors.push(function un(){return new r.vHH(3011,be)}()),c;let U=0;const X=[];let oe=!1,Ce=!1,ke=0;const mt=l.steps.map(sr=>{const vr=this._makeStyleAst(sr,o);let Vr=null!=vr.offset?vr.offset:function pi(u){if("string"==typeof u)return null;let l=null;if(Array.isArray(u))u.forEach(o=>{if(wr(o)&&o.hasOwnProperty("offset")){const c=o;l=parseFloat(c.offset),delete c.offset}});else if(wr(u)&&u.hasOwnProperty("offset")){const o=u;l=parseFloat(o.offset),delete o.offset}return l}(vr.styles),Nr=0;return null!=Vr&&(U++,Nr=vr.offset=Vr),Ce=Ce||Nr<0||Nr>1,oe=oe||Nr<ke,ke=Nr,X.push(Nr),vr});Ce&&o.errors.push(function Fn(){return new r.vHH(3012,be)}()),oe&&o.errors.push(function bn(){return new r.vHH(3200,be)}());const xt=l.steps.length;let tn=0;U>0&&U<xt?o.errors.push(function Yn(){return new r.vHH(3202,be)}()):0==U&&(tn=1/(xt-1));const pn=xt-1,Xt=o.currentTime,_n=o.currentAnimateTimings,On=_n.duration;return mt.forEach((sr,vr)=>{const Vr=tn>0?vr==pn?1:tn*vr:X[vr],Nr=Vr*On;o.currentTime=Xt+_n.delay+Nr,_n.duration=Nr,this._validateStyleAst(sr,o),sr.offset=Vr,c.styles.push(sr)}),c}visitReference(l,o){return{type:8,animation:B(this,bt(l.animation),o),options:nr(l.options)}}visitAnimateChild(l,o){return o.depCount++,{type:9,options:nr(l.options)}}visitAnimateRef(l,o){return{type:10,animation:this.visitReference(l.animation,o),options:nr(l.options)}}visitQuery(l,o){const c=o.currentQuerySelector,M=l.options||{};o.queryCount++,o.currentQuery=l;const[U,X]=function fi(u){const l=!!u.split(/\s*,\s*/).find(o=>":self"==o);return l&&(u=u.replace(qr,"")),u=u.replace(/@\*/g,Pe).replace(/@\w+/g,o=>Pe+"-"+o.substr(1)).replace(/:animating/g,Ue),[u,l]}(l.selector);o.currentQuerySelector=c.length?c+" "+U:U,Ft(o.collectedStyles,o.currentQuerySelector,{});const oe=B(this,bt(l.animation),o);return o.currentQuery=null,o.currentQuerySelector=c,{type:11,selector:U,limit:M.limit||0,optional:!!M.optional,includeSelf:X,animation:oe,originalSelector:l.selector,options:nr(l.options)}}visitStagger(l,o){o.currentQuery||o.errors.push(function Ht(){return new r.vHH(3013,be)}());const c="full"===l.timings?{duration:0,delay:0,easing:"full"}:Ct(l.timings,o.errors,!0);return{type:12,animation:B(this,bt(l.animation),o),timings:c,options:null}}}class pr{constructor(l){this.errors=l,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function wr(u){return!Array.isArray(u)&&"object"==typeof u}function nr(u){return u?(u=Pt(u)).params&&(u.params=function Hr(u){return u?Pt(u):null}(u.params)):u={},u}function gi(u,l,o){return{duration:u,delay:l,easing:o}}function ii(u,l,o,c,M,U,X=null,oe=!1){return{type:1,element:u,keyframes:l,preStyleProps:o,postStyleProps:c,duration:M,delay:U,totalTime:M+U,easing:X,subTimeline:oe}}class si{constructor(){this._map=new Map}get(l){return this._map.get(l)||[]}append(l,o){let c=this._map.get(l);c||this._map.set(l,c=[]),c.push(...o)}has(l){return this._map.has(l)}clear(){this._map.clear()}}const _i=new RegExp(":enter","g"),As=new RegExp(":leave","g");function yi(u,l,o,c,M,U={},X={},oe,Ce,ke=[]){return(new Ai).buildKeyframes(u,l,o,c,M,U,X,oe,Ce,ke)}class Ai{buildKeyframes(l,o,c,M,U,X,oe,Ce,ke,mt=[]){ke=ke||new si;const xt=new $r(l,o,ke,M,U,mt,[]);xt.options=Ce,xt.currentTimeline.setStyles([X],null,xt.errors,Ce),B(this,c,xt);const tn=xt.timelines.filter(pn=>pn.containsAnimation());if(Object.keys(oe).length){let pn;for(let Xt=tn.length-1;Xt>=0;Xt--){const _n=tn[Xt];if(_n.element===o){pn=_n;break}}pn&&!pn.allowOnlyTimelineStyles()&&pn.setStyles([oe],null,xt.errors,Ce)}return tn.length?tn.map(pn=>pn.buildKeyframes()):[ii(o,[],[],[],0,0,"",!1)]}visitTrigger(l,o){}visitState(l,o){}visitTransition(l,o){}visitAnimateChild(l,o){const c=o.subInstructions.get(o.element);if(c){const M=o.createSubContext(l.options),U=o.currentTimeline.currentTime,X=this._visitSubInstructions(c,M,M.options);U!=X&&o.transformIntoNewTimeline(X)}o.previousNode=l}visitAnimateRef(l,o){const c=o.createSubContext(l.options);c.transformIntoNewTimeline(),this.visitReference(l.animation,c),o.transformIntoNewTimeline(c.currentTimeline.currentTime),o.previousNode=l}_visitSubInstructions(l,o,c){let U=o.currentTimeline.currentTime;const X=null!=c.duration?ut(c.duration):null,oe=null!=c.delay?ut(c.delay):null;return 0!==X&&l.forEach(Ce=>{const ke=o.appendInstructionToTimeline(Ce,X,oe);U=Math.max(U,ke.duration+ke.delay)}),U}visitReference(l,o){o.updateOptions(l.options,!0),B(this,l.animation,o),o.previousNode=l}visitSequence(l,o){const c=o.subContextCount;let M=o;const U=l.options;if(U&&(U.params||U.delay)&&(M=o.createSubContext(U),M.transformIntoNewTimeline(),null!=U.delay)){6==M.previousNode.type&&(M.currentTimeline.snapshotCurrentStyles(),M.previousNode=Er);const X=ut(U.delay);M.delayNextStep(X)}l.steps.length&&(l.steps.forEach(X=>B(this,X,M)),M.currentTimeline.applyStylesToKeyframe(),M.subContextCount>c&&M.transformIntoNewTimeline()),o.previousNode=l}visitGroup(l,o){const c=[];let M=o.currentTimeline.currentTime;const U=l.options&&l.options.delay?ut(l.options.delay):0;l.steps.forEach(X=>{const oe=o.createSubContext(l.options);U&&oe.delayNextStep(U),B(this,X,oe),M=Math.max(M,oe.currentTimeline.currentTime),c.push(oe.currentTimeline)}),c.forEach(X=>o.currentTimeline.mergeTimelineCollectedStyles(X)),o.transformIntoNewTimeline(M),o.previousNode=l}_visitTiming(l,o){if(l.dynamic){const c=l.strValue;return Ct(o.params?Y(c,o.params,o.errors):c,o.errors)}return{duration:l.duration,delay:l.delay,easing:l.easing}}visitAnimate(l,o){const c=o.currentAnimateTimings=this._visitTiming(l.timings,o),M=o.currentTimeline;c.delay&&(o.incrementTime(c.delay),M.snapshotCurrentStyles());const U=l.style;5==U.type?this.visitKeyframes(U,o):(o.incrementTime(c.duration),this.visitStyle(U,o),M.applyStylesToKeyframe()),o.currentAnimateTimings=null,o.previousNode=l}visitStyle(l,o){const c=o.currentTimeline,M=o.currentAnimateTimings;!M&&c.getCurrentStyleProperties().length&&c.forwardFrame();const U=M&&M.easing||l.easing;l.isEmptyStep?c.applyEmptyStep(U):c.setStyles(l.styles,U,o.errors,o.options),o.previousNode=l}visitKeyframes(l,o){const c=o.currentAnimateTimings,M=o.currentTimeline.duration,U=c.duration,oe=o.createSubContext().currentTimeline;oe.easing=c.easing,l.styles.forEach(Ce=>{oe.forwardTime((Ce.offset||0)*U),oe.setStyles(Ce.styles,Ce.easing,o.errors,o.options),oe.applyStylesToKeyframe()}),o.currentTimeline.mergeTimelineCollectedStyles(oe),o.transformIntoNewTimeline(M+U),o.previousNode=l}visitQuery(l,o){const c=o.currentTimeline.currentTime,M=l.options||{},U=M.delay?ut(M.delay):0;U&&(6===o.previousNode.type||0==c&&o.currentTimeline.getCurrentStyleProperties().length)&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Er);let X=c;const oe=o.invokeQuery(l.selector,l.originalSelector,l.limit,l.includeSelf,!!M.optional,o.errors);o.currentQueryTotal=oe.length;let Ce=null;oe.forEach((ke,mt)=>{o.currentQueryIndex=mt;const xt=o.createSubContext(l.options,ke);U&&xt.delayNextStep(U),ke===o.element&&(Ce=xt.currentTimeline),B(this,l.animation,xt),xt.currentTimeline.applyStylesToKeyframe(),X=Math.max(X,xt.currentTimeline.currentTime)}),o.currentQueryIndex=0,o.currentQueryTotal=0,o.transformIntoNewTimeline(X),Ce&&(o.currentTimeline.mergeTimelineCollectedStyles(Ce),o.currentTimeline.snapshotCurrentStyles()),o.previousNode=l}visitStagger(l,o){const c=o.parentContext,M=o.currentTimeline,U=l.timings,X=Math.abs(U.duration),oe=X*(o.currentQueryTotal-1);let Ce=X*o.currentQueryIndex;switch(U.duration<0?"reverse":U.easing){case"reverse":Ce=oe-Ce;break;case"full":Ce=c.currentStaggerTime}const mt=o.currentTimeline;Ce&&mt.delayNextStep(Ce);const xt=mt.currentTime;B(this,l.animation,o),o.previousNode=l,c.currentStaggerTime=M.currentTime-xt+(M.startTime-c.currentTimeline.startTime)}}const Er={};class $r{constructor(l,o,c,M,U,X,oe,Ce){this._driver=l,this.element=o,this.subInstructions=c,this._enterClassName=M,this._leaveClassName=U,this.errors=X,this.timelines=oe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Er,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ce||new Qr(this._driver,o,0),oe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(l,o){if(!l)return;const c=l;let M=this.options;null!=c.duration&&(M.duration=ut(c.duration)),null!=c.delay&&(M.delay=ut(c.delay));const U=c.params;if(U){let X=M.params;X||(X=this.options.params={}),Object.keys(U).forEach(oe=>{(!o||!X.hasOwnProperty(oe))&&(X[oe]=Y(U[oe],X,this.errors))})}}_copyOptions(){const l={};if(this.options){const o=this.options.params;if(o){const c=l.params={};Object.keys(o).forEach(M=>{c[M]=o[M]})}}return l}createSubContext(l=null,o,c){const M=o||this.element,U=new $r(this._driver,M,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(M,c||0));return U.previousNode=this.previousNode,U.currentAnimateTimings=this.currentAnimateTimings,U.options=this._copyOptions(),U.updateOptions(l),U.currentQueryIndex=this.currentQueryIndex,U.currentQueryTotal=this.currentQueryTotal,U.parentContext=this,this.subContextCount++,U}transformIntoNewTimeline(l){return this.previousNode=Er,this.currentTimeline=this.currentTimeline.fork(this.element,l),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(l,o,c){const M={duration:o??l.duration,delay:this.currentTimeline.currentTime+(c??0)+l.delay,easing:""},U=new vi(this._driver,l.element,l.keyframes,l.preStyleProps,l.postStyleProps,M,l.stretchStartingKeyframe);return this.timelines.push(U),M}incrementTime(l){this.currentTimeline.forwardTime(this.currentTimeline.duration+l)}delayNextStep(l){l>0&&this.currentTimeline.delayNextStep(l)}invokeQuery(l,o,c,M,U,X){let oe=[];if(M&&oe.push(this.element),l.length>0){l=(l=l.replace(_i,"."+this._enterClassName)).replace(As,"."+this._leaveClassName);let ke=this._driver.query(this.element,l,1!=c);0!==c&&(ke=c<0?ke.slice(ke.length+c,ke.length):ke.slice(0,c)),oe.push(...ke)}return!U&&0==oe.length&&X.push(function Yt(u){return new r.vHH(3014,be)}()),oe}}class Qr{constructor(l,o,c,M){this._driver=l,this.element=o,this.startTime=c,this._elementTimelineStylesLookup=M,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(o),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(o,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(l){const o=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||o?(this.forwardTime(this.currentTime+l),o&&this.snapshotCurrentStyles()):this.startTime+=l}fork(l,o){return this.applyStylesToKeyframe(),new Qr(this._driver,l,o||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(l){this.applyStylesToKeyframe(),this.duration=l,this._loadKeyframe()}_updateStyle(l,o){this._localTimelineStyles[l]=o,this._globalTimelineStyles[l]=o,this._styleSummary[l]={time:this.currentTime,value:o}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(l){l&&(this._previousKeyframe.easing=l),Object.keys(this._globalTimelineStyles).forEach(o=>{this._backFill[o]=this._globalTimelineStyles[o]||Be.l3,this._currentKeyframe[o]=Be.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(l,o,c,M){o&&(this._previousKeyframe.easing=o);const U=M&&M.params||{},X=function Gr(u,l){const o={};let c;return u.forEach(M=>{"*"===M?(c=c||Object.keys(l),c.forEach(U=>{o[U]=Be.l3})):Tt(M,!1,o)}),o}(l,this._globalTimelineStyles);Object.keys(X).forEach(oe=>{const Ce=Y(X[oe],U,c);this._pendingStyles[oe]=Ce,this._localTimelineStyles.hasOwnProperty(oe)||(this._backFill[oe]=this._globalTimelineStyles.hasOwnProperty(oe)?this._globalTimelineStyles[oe]:Be.l3),this._updateStyle(oe,Ce)})}applyStylesToKeyframe(){const l=this._pendingStyles,o=Object.keys(l);0!=o.length&&(this._pendingStyles={},o.forEach(c=>{this._currentKeyframe[c]=l[c]}),Object.keys(this._localTimelineStyles).forEach(c=>{this._currentKeyframe.hasOwnProperty(c)||(this._currentKeyframe[c]=this._localTimelineStyles[c])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(l=>{const o=this._localTimelineStyles[l];this._pendingStyles[l]=o,this._updateStyle(l,o)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const l=[];for(let o in this._currentKeyframe)l.push(o);return l}mergeTimelineCollectedStyles(l){Object.keys(l._styleSummary).forEach(o=>{const c=this._styleSummary[o],M=l._styleSummary[o];(!c||M.time>c.time)&&this._updateStyle(o,M.value)})}buildKeyframes(){this.applyStylesToKeyframe();const l=new Set,o=new Set,c=1===this._keyframes.size&&0===this.duration;let M=[];this._keyframes.forEach((oe,Ce)=>{const ke=Tt(oe,!0);Object.keys(ke).forEach(mt=>{const xt=ke[mt];xt==Be.k1?l.add(mt):xt==Be.l3&&o.add(mt)}),c||(ke.offset=Ce/this.duration),M.push(ke)});const U=l.size?te(l.values()):[],X=o.size?te(o.values()):[];if(c){const oe=M[0],Ce=Pt(oe);oe.offset=0,Ce.offset=1,M=[oe,Ce]}return ii(this.element,M,U,X,this.duration,this.startTime,this.easing,!1)}}class vi extends Qr{constructor(l,o,c,M,U,X,oe=!1){super(l,o,X.delay),this.keyframes=c,this.preStyleProps=M,this.postStyleProps=U,this._stretchStartingKeyframe=oe,this.timings={duration:X.duration,delay:X.delay,easing:X.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let l=this.keyframes,{delay:o,duration:c,easing:M}=this.timings;if(this._stretchStartingKeyframe&&o){const U=[],X=c+o,oe=o/X,Ce=Tt(l[0],!1);Ce.offset=0,U.push(Ce);const ke=Tt(l[0],!1);ke.offset=ms(oe),U.push(ke);const mt=l.length-1;for(let xt=1;xt<=mt;xt++){let tn=Tt(l[xt],!1);tn.offset=ms((o+tn.offset*c)/X),U.push(tn)}c=X,o=0,M="",l=U}return ii(this.element,l,this.preStyleProps,this.postStyleProps,c,o,M,!0)}}function ms(u,l=3){const o=Math.pow(10,l-1);return Math.round(u*o)/o}class Jr{}class qi extends Jr{normalizePropertyName(l,o){return we(l)}normalizeStyleValue(l,o,c,M){let U="";const X=c.toString().trim();if(oi[o]&&0!==c&&"0"!==c)if("number"==typeof c)U="px";else{const oe=c.match(/^[+-]?[\d\.]+([a-z]*)$/);oe&&0==oe[1].length&&M.push(function dt(u,l){return new r.vHH(3005,be)}())}return X+U}}const oi=(()=>function kr(u){const l={};return u.forEach(o=>l[o]=!0),l}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Ci(u,l,o,c,M,U,X,oe,Ce,ke,mt,xt,tn){return{type:0,element:u,triggerName:l,isRemovalTransition:M,fromState:o,fromStyles:U,toState:c,toStyles:X,timelines:oe,queriedElements:Ce,preStyleProps:ke,postStyleProps:mt,totalTime:xt,errors:tn}}const Ii={};class bi{constructor(l,o,c){this._triggerName=l,this.ast=o,this._stateStyles=c}match(l,o,c,M){return function Qi(u,l,o,c,M){return u.some(U=>U(l,o,c,M))}(this.ast.matchers,l,o,c,M)}buildStyles(l,o,c){const M=this._stateStyles["*"],U=this._stateStyles[l],X=M?M.buildStyles(o,c):{};return U?U.buildStyles(o,c):X}build(l,o,c,M,U,X,oe,Ce,ke,mt){const xt=[],tn=this.ast.options&&this.ast.options.params||Ii,Xt=this.buildStyles(c,oe&&oe.params||Ii,xt),_n=Ce&&Ce.params||Ii,On=this.buildStyles(M,_n,xt),sr=new Set,vr=new Map,Vr=new Map,Nr="void"===M,po={params:{...tn,..._n}},Li=mt?[]:yi(l,o,this.ast.animation,U,X,Xt,On,po,ke,xt);let Br=0;if(Li.forEach(Vi=>{Br=Math.max(Vi.duration+Vi.delay,Br)}),xt.length)return Ci(o,this._triggerName,c,M,Nr,Xt,On,[],[],vr,Vr,Br,xt);Li.forEach(Vi=>{const Bi=Vi.element,Sl=Ft(vr,Bi,{});Vi.preStyleProps.forEach(Gs=>Sl[Gs]=!0);const go=Ft(Vr,Bi,{});Vi.postStyleProps.forEach(Gs=>go[Gs]=!0),Bi!==o&&sr.add(Bi)});const Oi=te(sr.values());return Ci(o,this._triggerName,c,M,Nr,Xt,On,Li,Oi,vr,Vr,Br)}}class mr{constructor(l,o,c){this.styles=l,this.defaultParams=o,this.normalizer=c}buildStyles(l,o){const c={},M=Pt(this.defaultParams);return Object.keys(l).forEach(U=>{const X=l[U];null!=X&&(M[U]=X)}),this.styles.styles.forEach(U=>{if("string"!=typeof U){const X=U;Object.keys(X).forEach(oe=>{let Ce=X[oe];Ce.length>1&&(Ce=Y(Ce,M,o));const ke=this.normalizer.normalizePropertyName(oe,o);Ce=this.normalizer.normalizeStyleValue(oe,ke,Ce,o),c[ke]=Ce})}}),c}}class wi{constructor(l,o,c){this.name=l,this.ast=o,this._normalizer=c,this.transitionFactories=[],this.states={},o.states.forEach(M=>{this.states[M.name]=new mr(M.style,M.options&&M.options.params||{},c)}),Rr(this.states,"true","1"),Rr(this.states,"false","0"),o.transitions.forEach(M=>{this.transitionFactories.push(new bi(l,M,this.states))}),this.fallbackTransition=function Kr(u,l,o){return new bi(u,{type:1,animation:{type:2,steps:[],options:null},matchers:[(X,oe)=>!0],options:null,queryCount:0,depCount:0},l)}(l,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(l,o,c,M){return this.transitionFactories.find(X=>X.match(l,o,c,M))||null}matchStyles(l,o,c){return this.fallbackTransition.buildStyles(l,o,c)}}function Rr(u,l,o){u.hasOwnProperty(l)?u.hasOwnProperty(o)||(u[o]=u[l]):u.hasOwnProperty(o)&&(u[l]=u[o])}const Ji=new si;class D{constructor(l,o,c){this.bodyNode=l,this._driver=o,this._normalizer=c,this._animations={},this._playersById={},this.players=[]}register(l,o){const c=[],U=Pn(this._driver,o,c,[]);if(c.length)throw function Vn(u){return new r.vHH(3503,be)}();this._animations[l]=U}_buildPlayer(l,o,c){const M=l.element,U=je(0,this._normalizer,0,l.keyframes,o,c);return this._driver.animate(M,U,l.duration,l.delay,l.easing,[],!0)}create(l,o,c={}){const M=[],U=this._animations[l];let X;const oe=new Map;if(U?(X=yi(this._driver,o,U,De,se,{},{},c,Ji,M),X.forEach(mt=>{const xt=Ft(oe,mt.element,{});mt.postStyleProps.forEach(tn=>xt[tn]=null)})):(M.push(function lr(){return new r.vHH(3300,be)}()),X=[]),M.length)throw function or(u){return new r.vHH(3504,be)}();oe.forEach((mt,xt)=>{Object.keys(mt).forEach(tn=>{mt[tn]=this._driver.computeStyle(xt,tn,Be.l3)})});const ke=Qe(X.map(mt=>{const xt=oe.get(mt.element);return this._buildPlayer(mt,{},xt)}));return this._playersById[l]=ke,ke.onDestroy(()=>this.destroy(l)),this.players.push(ke),ke}destroy(l){const o=this._getPlayer(l);o.destroy(),delete this._playersById[l];const c=this.players.indexOf(o);c>=0&&this.players.splice(c,1)}_getPlayer(l){const o=this._playersById[l];if(!o)throw function rr(u){return new r.vHH(3301,be)}();return o}listen(l,o,c,M){const U=dn(o,"","","");return qe(this._getPlayer(l),c,U,M),()=>{}}command(l,o,c,M){if("register"==c)return void this.register(l,M[0]);if("create"==c)return void this.create(l,o,M[0]||{});const U=this._getPlayer(l);switch(c){case"play":U.play();break;case"pause":U.pause();break;case"reset":U.reset();break;case"restart":U.restart();break;case"finish":U.finish();break;case"init":U.init();break;case"setPosition":U.setPosition(parseFloat(M[0]));break;case"destroy":this.destroy(l)}}}const z="ng-animate-queued",Q="ng-animate-disabled",gt=[],In={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Bn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},fn="__ng_removed";class Kt{constructor(l,o=""){this.namespaceId=o;const c=l&&l.hasOwnProperty("value");if(this.value=function W(u){return u??null}(c?l.value:l),c){const U=Pt(l);delete U.value,this.options=U}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(l){const o=l.params;if(o){const c=this.options.params;Object.keys(o).forEach(M=>{null==c[M]&&(c[M]=o[M])})}}}const Zn="void",kn=new Kt(Zn);class er{constructor(l,o,c){this.id=l,this.hostElement=o,this._engine=c,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+l,Dr(o,this._hostClassName)}listen(l,o,c,M){if(!this._triggers.hasOwnProperty(o))throw function dr(u,l){return new r.vHH(3302,be)}();if(null==c||0==c.length)throw function zn(u){return new r.vHH(3303,be)}();if(!function Ot(u){return"start"==u||"done"==u}(c))throw function Sn(u,l){return new r.vHH(3400,be)}();const U=Ft(this._elementListeners,l,[]),X={name:o,phase:c,callback:M};U.push(X);const oe=Ft(this._engine.statesByElement,l,{});return oe.hasOwnProperty(o)||(Dr(l,K),Dr(l,K+"-"+o),oe[o]=kn),()=>{this._engine.afterFlush(()=>{const Ce=U.indexOf(X);Ce>=0&&U.splice(Ce,1),this._triggers[o]||delete oe[o]})}}register(l,o){return!this._triggers[l]&&(this._triggers[l]=o,!0)}_getTrigger(l){const o=this._triggers[l];if(!o)throw function zt(u){return new r.vHH(3401,be)}();return o}trigger(l,o,c,M=!0){const U=this._getTrigger(o),X=new b(this.id,o,l);let oe=this._engine.statesByElement.get(l);oe||(Dr(l,K),Dr(l,K+"-"+o),this._engine.statesByElement.set(l,oe={}));let Ce=oe[o];const ke=new Kt(c,this.id);if(!(c&&c.hasOwnProperty("value"))&&Ce&&ke.absorbOptions(Ce.options),oe[o]=ke,Ce||(Ce=kn),ke.value!==Zn&&Ce.value===ke.value){if(!function Do(u,l){const o=Object.keys(u),c=Object.keys(l);if(o.length!=c.length)return!1;for(let M=0;M<o.length;M++){const U=o[M];if(!l.hasOwnProperty(U)||u[U]!==l[U])return!1}return!0}(Ce.params,ke.params)){const _n=[],On=U.matchStyles(Ce.value,Ce.params,_n),sr=U.matchStyles(ke.value,ke.params,_n);_n.length?this._engine.reportError(_n):this._engine.afterFlush(()=>{yt(l,On),ht(l,sr)})}return}const tn=Ft(this._engine.playersByElement,l,[]);tn.forEach(_n=>{_n.namespaceId==this.id&&_n.triggerName==o&&_n.queued&&_n.destroy()});let pn=U.matchTransition(Ce.value,ke.value,l,ke.params),Xt=!1;if(!pn){if(!M)return;pn=U.fallbackTransition,Xt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:l,triggerName:o,transition:pn,fromState:Ce,toState:ke,player:X,isFallbackTransition:Xt}),Xt||(Dr(l,z),X.onStart(()=>{ai(l,z)})),X.onDone(()=>{let _n=this.players.indexOf(X);_n>=0&&this.players.splice(_n,1);const On=this._engine.playersByElement.get(l);if(On){let sr=On.indexOf(X);sr>=0&&On.splice(sr,1)}}),this.players.push(X),tn.push(X),X}deregister(l){delete this._triggers[l],this._engine.statesByElement.forEach((o,c)=>{delete o[l]}),this._elementListeners.forEach((o,c)=>{this._elementListeners.set(c,o.filter(M=>M.name!=l))})}clearElementCache(l){this._engine.statesByElement.delete(l),this._elementListeners.delete(l);const o=this._engine.playersByElement.get(l);o&&(o.forEach(c=>c.destroy()),this._engine.playersByElement.delete(l))}_signalRemovalForInnerTriggers(l,o){const c=this._engine.driver.query(l,Pe,!0);c.forEach(M=>{if(M[fn])return;const U=this._engine.fetchNamespacesByElement(M);U.size?U.forEach(X=>X.triggerLeaveAnimation(M,o,!1,!0)):this.clearElementCache(M)}),this._engine.afterFlushAnimationsDone(()=>c.forEach(M=>this.clearElementCache(M)))}triggerLeaveAnimation(l,o,c,M){const U=this._engine.statesByElement.get(l),X=new Map;if(U){const oe=[];if(Object.keys(U).forEach(Ce=>{if(X.set(Ce,U[Ce].value),this._triggers[Ce]){const ke=this.trigger(l,Ce,Zn,M);ke&&oe.push(ke)}}),oe.length)return this._engine.markElementAsRemoved(this.id,l,!0,o,X),c&&Qe(oe).onDone(()=>this._engine.processLeaveNode(l)),!0}return!1}prepareLeaveAnimationListeners(l){const o=this._elementListeners.get(l),c=this._engine.statesByElement.get(l);if(o&&c){const M=new Set;o.forEach(U=>{const X=U.name;if(M.has(X))return;M.add(X);const Ce=this._triggers[X].fallbackTransition,ke=c[X]||kn,mt=new Kt(Zn),xt=new b(this.id,X,l);this._engine.totalQueuedPlayers++,this._queue.push({element:l,triggerName:X,transition:Ce,fromState:ke,toState:mt,player:xt,isFallbackTransition:!0})})}}removeNode(l,o){const c=this._engine;if(l.childElementCount&&this._signalRemovalForInnerTriggers(l,o),this.triggerLeaveAnimation(l,o,!0))return;let M=!1;if(c.totalAnimations){const U=c.players.length?c.playersByQueriedElement.get(l):[];if(U&&U.length)M=!0;else{let X=l;for(;X=X.parentNode;)if(c.statesByElement.get(X)){M=!0;break}}}if(this.prepareLeaveAnimationListeners(l),M)c.markElementAsRemoved(this.id,l,!1,o);else{const U=l[fn];(!U||U===In)&&(c.afterFlush(()=>this.clearElementCache(l)),c.destroyInnerAnimations(l),c._onRemovalComplete(l,o))}}insertNode(l,o){Dr(l,this._hostClassName)}drainQueuedTransitions(l){const o=[];return this._queue.forEach(c=>{const M=c.player;if(M.destroyed)return;const U=c.element,X=this._elementListeners.get(U);X&&X.forEach(oe=>{if(oe.name==c.triggerName){const Ce=dn(U,c.triggerName,c.fromState.value,c.toState.value);Ce._data=l,qe(c.player,oe.phase,Ce,oe.callback)}}),M.markedForDestroy?this._engine.afterFlush(()=>{M.destroy()}):o.push(c)}),this._queue=[],o.sort((c,M)=>{const U=c.transition.ast.depCount,X=M.transition.ast.depCount;return 0==U||0==X?U-X:this._engine.driver.containsElement(c.element,M.element)?1:-1})}destroy(l){this.players.forEach(o=>o.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,l)}elementContainsData(l){let o=!1;return this._elementListeners.has(l)&&(o=!0),o=!!this._queue.find(c=>c.element===l)||o,o}}class S{constructor(l,o,c){this.bodyNode=l,this.driver=o,this._normalizer=c,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(M,U)=>{}}_onRemovalComplete(l,o){this.onRemovalComplete(l,o)}get queuedPlayers(){const l=[];return this._namespaceList.forEach(o=>{o.players.forEach(c=>{c.queued&&l.push(c)})}),l}createNamespace(l,o){const c=new er(l,o,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,o)?this._balanceNamespaceList(c,o):(this.newHostElements.set(o,c),this.collectEnterElement(o)),this._namespaceLookup[l]=c}_balanceNamespaceList(l,o){const c=this._namespaceList,M=this.namespacesByHostElement,U=c.length-1;if(U>=0){let X=!1;if(void 0!==this.driver.getParentElement){let oe=this.driver.getParentElement(o);for(;oe;){const Ce=M.get(oe);if(Ce){const ke=c.indexOf(Ce);c.splice(ke+1,0,l),X=!0;break}oe=this.driver.getParentElement(oe)}}else for(let oe=U;oe>=0;oe--)if(this.driver.containsElement(c[oe].hostElement,o)){c.splice(oe+1,0,l),X=!0;break}X||c.unshift(l)}else c.push(l);return M.set(o,l),l}register(l,o){let c=this._namespaceLookup[l];return c||(c=this.createNamespace(l,o)),c}registerTrigger(l,o,c){let M=this._namespaceLookup[l];M&&M.register(o,c)&&this.totalAnimations++}destroy(l,o){if(!l)return;const c=this._fetchNamespace(l);this.afterFlush(()=>{this.namespacesByHostElement.delete(c.hostElement),delete this._namespaceLookup[l];const M=this._namespaceList.indexOf(c);M>=0&&this._namespaceList.splice(M,1)}),this.afterFlushAnimationsDone(()=>c.destroy(o))}_fetchNamespace(l){return this._namespaceLookup[l]}fetchNamespacesByElement(l){const o=new Set,c=this.statesByElement.get(l);if(c){const M=Object.keys(c);for(let U=0;U<M.length;U++){const X=c[M[U]].namespaceId;if(X){const oe=this._fetchNamespace(X);oe&&o.add(oe)}}}return o}trigger(l,o,c,M){if(Le(o)){const U=this._fetchNamespace(l);if(U)return U.trigger(o,c,M),!0}return!1}insertNode(l,o,c,M){if(!Le(o))return;const U=o[fn];if(U&&U.setForRemoval){U.setForRemoval=!1,U.setForMove=!0;const X=this.collectedLeaveElements.indexOf(o);X>=0&&this.collectedLeaveElements.splice(X,1)}if(l){const X=this._fetchNamespace(l);X&&X.insertNode(o,c)}M&&this.collectEnterElement(o)}collectEnterElement(l){this.collectedEnterElements.push(l)}markElementAsDisabled(l,o){o?this.disabledNodes.has(l)||(this.disabledNodes.add(l),Dr(l,Q)):this.disabledNodes.has(l)&&(this.disabledNodes.delete(l),ai(l,Q))}removeNode(l,o,c,M){if(Le(o)){const U=l?this._fetchNamespace(l):null;if(U?U.removeNode(o,M):this.markElementAsRemoved(l,o,!1,M),c){const X=this.namespacesByHostElement.get(o);X&&X.id!==l&&X.removeNode(o,M)}}else this._onRemovalComplete(o,M)}markElementAsRemoved(l,o,c,M,U){this.collectedLeaveElements.push(o),o[fn]={namespaceId:l,setForRemoval:M,hasAnimation:c,removedBeforeQueried:!1,previousTriggersValues:U}}listen(l,o,c,M,U){return Le(o)?this._fetchNamespace(l).listen(o,c,M,U):()=>{}}_buildInstruction(l,o,c,M,U){return l.transition.build(this.driver,l.element,l.fromState.value,l.toState.value,c,M,l.fromState.options,l.toState.options,o,U)}destroyInnerAnimations(l){let o=this.driver.query(l,Pe,!0);o.forEach(c=>this.destroyActiveAnimationsForElement(c)),0!=this.playersByQueriedElement.size&&(o=this.driver.query(l,Ue,!0),o.forEach(c=>this.finishActiveQueriedAnimationOnElement(c)))}destroyActiveAnimationsForElement(l){const o=this.playersByElement.get(l);o&&o.forEach(c=>{c.queued?c.markedForDestroy=!0:c.destroy()})}finishActiveQueriedAnimationOnElement(l){const o=this.playersByQueriedElement.get(l);o&&o.forEach(c=>c.finish())}whenRenderingDone(){return new Promise(l=>{if(this.players.length)return Qe(this.players).onDone(()=>l());l()})}processLeaveNode(l){const o=l[fn];if(o&&o.setForRemoval){if(l[fn]=In,o.namespaceId){this.destroyInnerAnimations(l);const c=this._fetchNamespace(o.namespaceId);c&&c.clearElementCache(l)}this._onRemovalComplete(l,o.setForRemoval)}l.classList?.contains(Q)&&this.markElementAsDisabled(l,!1),this.driver.query(l,".ng-animate-disabled",!0).forEach(c=>{this.markElementAsDisabled(c,!1)})}flush(l=-1){let o=[];if(this.newHostElements.size&&(this.newHostElements.forEach((c,M)=>this._balanceNamespaceList(c,M)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let c=0;c<this.collectedEnterElements.length;c++)Dr(this.collectedEnterElements[c],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const c=[];try{o=this._flushAnimations(c,l)}finally{for(let M=0;M<c.length;M++)c[M]()}}else for(let c=0;c<this.collectedLeaveElements.length;c++)this.processLeaveNode(this.collectedLeaveElements[c]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(c=>c()),this._flushFns=[],this._whenQuietFns.length){const c=this._whenQuietFns;this._whenQuietFns=[],o.length?Qe(o).onDone(()=>{c.forEach(M=>M())}):c.forEach(M=>M())}}reportError(l){throw function $n(u){return new r.vHH(3402,be)}()}_flushAnimations(l,o){const c=new si,M=[],U=new Map,X=[],oe=new Map,Ce=new Map,ke=new Map,mt=new Set;this.disabledNodes.forEach(Bt=>{mt.add(Bt);const Ut=this.driver.query(Bt,".ng-animate-queued",!0);for(let nn=0;nn<Ut.length;nn++)mt.add(Ut[nn])});const xt=this.bodyNode,tn=Array.from(this.statesByElement.keys()),pn=Ei(tn,this.collectedEnterElements),Xt=new Map;let _n=0;pn.forEach((Bt,Ut)=>{const nn=De+_n++;Xt.set(Ut,nn),Bt.forEach(Nn=>Dr(Nn,nn))});const On=[],sr=new Set,vr=new Set;for(let Bt=0;Bt<this.collectedLeaveElements.length;Bt++){const Ut=this.collectedLeaveElements[Bt],nn=Ut[fn];nn&&nn.setForRemoval&&(On.push(Ut),sr.add(Ut),nn.hasAnimation?this.driver.query(Ut,".ng-star-inserted",!0).forEach(Nn=>sr.add(Nn)):vr.add(Ut))}const Vr=new Map,Nr=Ei(tn,Array.from(sr));Nr.forEach((Bt,Ut)=>{const nn=se+_n++;Vr.set(Ut,nn),Bt.forEach(Nn=>Dr(Nn,nn))}),l.push(()=>{pn.forEach((Bt,Ut)=>{const nn=Xt.get(Ut);Bt.forEach(Nn=>ai(Nn,nn))}),Nr.forEach((Bt,Ut)=>{const nn=Vr.get(Ut);Bt.forEach(Nn=>ai(Nn,nn))}),On.forEach(Bt=>{this.processLeaveNode(Bt)})});const po=[],Li=[];for(let Bt=this._namespaceList.length-1;Bt>=0;Bt--)this._namespaceList[Bt].drainQueuedTransitions(o).forEach(nn=>{const Nn=nn.player,fr=nn.element;if(po.push(Nn),this.collectedEnterElements.length){const Sr=fr[fn];if(Sr&&Sr.setForMove){if(Sr.previousTriggersValues&&Sr.previousTriggersValues.has(nn.triggerName)){const zs=Sr.previousTriggersValues.get(nn.triggerName),Ps=this.statesByElement.get(nn.element);Ps&&Ps[nn.triggerName]&&(Ps[nn.triggerName].value=zs)}return void Nn.destroy()}}const ui=!xt||!this.driver.containsElement(xt,fr),ri=Vr.get(fr),Ss=Xt.get(fr),ar=this._buildInstruction(nn,c,Ss,ri,ui);if(ar.errors&&ar.errors.length)return void Li.push(ar);if(ui)return Nn.onStart(()=>yt(fr,ar.fromStyles)),Nn.onDestroy(()=>ht(fr,ar.toStyles)),void M.push(Nn);if(nn.isFallbackTransition)return Nn.onStart(()=>yt(fr,ar.fromStyles)),Nn.onDestroy(()=>ht(fr,ar.toStyles)),void M.push(Nn);const qo=[];ar.timelines.forEach(Sr=>{Sr.stretchStartingKeyframe=!0,this.disabledNodes.has(Sr.element)||qo.push(Sr)}),ar.timelines=qo,c.append(fr,ar.timelines),X.push({instruction:ar,player:Nn,element:fr}),ar.queriedElements.forEach(Sr=>Ft(oe,Sr,[]).push(Nn)),ar.preStyleProps.forEach((Sr,zs)=>{const Ps=Object.keys(Sr);if(Ps.length){let os=Ce.get(zs);os||Ce.set(zs,os=new Set),Ps.forEach($a=>os.add($a))}}),ar.postStyleProps.forEach((Sr,zs)=>{const Ps=Object.keys(Sr);let os=ke.get(zs);os||ke.set(zs,os=new Set),Ps.forEach($a=>os.add($a))})});if(Li.length){const Bt=[];Li.forEach(Ut=>{Bt.push(function ze(u,l){return new r.vHH(3505,be)}())}),po.forEach(Ut=>Ut.destroy()),this.reportError(Bt)}const Br=new Map,Oi=new Map;X.forEach(Bt=>{const Ut=Bt.element;c.has(Ut)&&(Oi.set(Ut,Ut),this._beforeAnimationBuild(Bt.player.namespaceId,Bt.instruction,Br))}),M.forEach(Bt=>{const Ut=Bt.element;this._getPreviousPlayers(Ut,!1,Bt.namespaceId,Bt.triggerName,null).forEach(Nn=>{Ft(Br,Ut,[]).push(Nn),Nn.destroy()})});const Vi=On.filter(Bt=>Xi(Bt,Ce,ke)),Bi=new Map;Zt(Bi,this.driver,vr,ke,Be.l3).forEach(Bt=>{Xi(Bt,Ce,ke)&&Vi.push(Bt)});const go=new Map;pn.forEach((Bt,Ut)=>{Zt(go,this.driver,new Set(Bt),Ce,Be.k1)}),Vi.forEach(Bt=>{const Ut=Bi.get(Bt),nn=go.get(Bt);Bi.set(Bt,{...Ut,...nn})});const Gs=[],Pl=[],mo={};X.forEach(Bt=>{const{element:Ut,player:nn,instruction:Nn}=Bt;if(c.has(Ut)){if(mt.has(Ut))return nn.onDestroy(()=>ht(Ut,Nn.toStyles)),nn.disabled=!0,nn.overrideTotalTime(Nn.totalTime),void M.push(nn);let fr=mo;if(Oi.size>1){let ri=Ut;const Ss=[];for(;ri=ri.parentNode;){const ar=Oi.get(ri);if(ar){fr=ar;break}Ss.push(ri)}Ss.forEach(ar=>Oi.set(ar,fr))}const ui=this._buildAnimation(nn.namespaceId,Nn,Br,U,go,Bi);if(nn.setRealPlayer(ui),fr===mo)Gs.push(nn);else{const ri=this.playersByElement.get(fr);ri&&ri.length&&(nn.parentPlayer=Qe(ri)),M.push(nn)}}else yt(Ut,Nn.fromStyles),nn.onDestroy(()=>ht(Ut,Nn.toStyles)),Pl.push(nn),mt.has(Ut)&&M.push(nn)}),Pl.forEach(Bt=>{const Ut=U.get(Bt.element);if(Ut&&Ut.length){const nn=Qe(Ut);Bt.setRealPlayer(nn)}}),M.forEach(Bt=>{Bt.parentPlayer?Bt.syncPlayerEvents(Bt.parentPlayer):Bt.destroy()});for(let Bt=0;Bt<On.length;Bt++){const Ut=On[Bt],nn=Ut[fn];if(ai(Ut,se),nn&&nn.hasAnimation)continue;let Nn=[];if(oe.size){let ui=oe.get(Ut);ui&&ui.length&&Nn.push(...ui);let ri=this.driver.query(Ut,Ue,!0);for(let Ss=0;Ss<ri.length;Ss++){let ar=oe.get(ri[Ss]);ar&&ar.length&&Nn.push(...ar)}}const fr=Nn.filter(ui=>!ui.destroyed);fr.length?wo(this,Ut,fr):this.processLeaveNode(Ut)}return On.length=0,Gs.forEach(Bt=>{this.players.push(Bt),Bt.onDone(()=>{Bt.destroy();const Ut=this.players.indexOf(Bt);this.players.splice(Ut,1)}),Bt.play()}),Gs}elementContainsData(l,o){let c=!1;const M=o[fn];return M&&M.setForRemoval&&(c=!0),this.playersByElement.has(o)&&(c=!0),this.playersByQueriedElement.has(o)&&(c=!0),this.statesByElement.has(o)&&(c=!0),this._fetchNamespace(l).elementContainsData(o)||c}afterFlush(l){this._flushFns.push(l)}afterFlushAnimationsDone(l){this._whenQuietFns.push(l)}_getPreviousPlayers(l,o,c,M,U){let X=[];if(o){const oe=this.playersByQueriedElement.get(l);oe&&(X=oe)}else{const oe=this.playersByElement.get(l);if(oe){const Ce=!U||U==Zn;oe.forEach(ke=>{ke.queued||!Ce&&ke.triggerName!=M||X.push(ke)})}}return(c||M)&&(X=X.filter(oe=>!(c&&c!=oe.namespaceId||M&&M!=oe.triggerName))),X}_beforeAnimationBuild(l,o,c){const U=o.element,X=o.isRemovalTransition?void 0:l,oe=o.isRemovalTransition?void 0:o.triggerName;for(const Ce of o.timelines){const ke=Ce.element,mt=ke!==U,xt=Ft(c,ke,[]);this._getPreviousPlayers(ke,mt,X,oe,o.toState).forEach(pn=>{const Xt=pn.getRealPlayer();Xt.beforeDestroy&&Xt.beforeDestroy(),pn.destroy(),xt.push(pn)})}yt(U,o.fromStyles)}_buildAnimation(l,o,c,M,U,X){const oe=o.triggerName,Ce=o.element,ke=[],mt=new Set,xt=new Set,tn=o.timelines.map(Xt=>{const _n=Xt.element;mt.add(_n);const On=_n[fn];if(On&&On.removedBeforeQueried)return new Be.ZN(Xt.duration,Xt.delay);const sr=_n!==Ce,vr=function Eo(u){const l=[];return Ki(u,l),l}((c.get(_n)||gt).map(Br=>Br.getRealPlayer())).filter(Br=>!!Br.element&&Br.element===_n),Vr=U.get(_n),Nr=X.get(_n),po=je(0,this._normalizer,0,Xt.keyframes,Vr,Nr),Li=this._buildPlayer(Xt,po,vr);if(Xt.subTimeline&&M&&xt.add(_n),sr){const Br=new b(l,oe,_n);Br.setRealPlayer(Li),ke.push(Br)}return Li});ke.forEach(Xt=>{Ft(this.playersByQueriedElement,Xt.element,[]).push(Xt),Xt.onDone(()=>function C(u,l,o){let c;if(u instanceof Map){if(c=u.get(l),c){if(c.length){const M=c.indexOf(o);c.splice(M,1)}0==c.length&&u.delete(l)}}else if(c=u[l],c){if(c.length){const M=c.indexOf(o);c.splice(M,1)}0==c.length&&delete u[l]}return c}(this.playersByQueriedElement,Xt.element,Xt))}),mt.forEach(Xt=>Dr(Xt,Me));const pn=Qe(tn);return pn.onDestroy(()=>{mt.forEach(Xt=>ai(Xt,Me)),ht(Ce,o.toStyles)}),xt.forEach(Xt=>{Ft(M,Xt,[]).push(pn)}),pn}_buildPlayer(l,o,c){return o.length>0?this.driver.animate(l.element,o,l.duration,l.delay,l.easing,c):new Be.ZN(l.duration,l.delay)}}class b{constructor(l,o,c){this.namespaceId=l,this.triggerName=o,this.element=c,this._player=new Be.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(l){this._containsRealPlayer||(this._player=l,Object.keys(this._queuedCallbacks).forEach(o=>{this._queuedCallbacks[o].forEach(c=>qe(l,o,void 0,c))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(l.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(l){this.totalTime=l}syncPlayerEvents(l){const o=this._player;o.triggerCallback&&l.onStart(()=>o.triggerCallback("start")),l.onDone(()=>this.finish()),l.onDestroy(()=>this.destroy())}_queueEvent(l,o){Ft(this._queuedCallbacks,l,[]).push(o)}onDone(l){this.queued&&this._queueEvent("done",l),this._player.onDone(l)}onStart(l){this.queued&&this._queueEvent("start",l),this._player.onStart(l)}onDestroy(l){this.queued&&this._queueEvent("destroy",l),this._player.onDestroy(l)}init(){this._player.init()}hasStarted(){return!this.queued&&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(l){this.queued||this._player.setPosition(l)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(l){const o=this._player;o.triggerCallback&&o.triggerCallback(l)}}function Le(u){return u&&1===u.nodeType}function Un(u,l){const o=u.style.display;return u.style.display=l??"none",o}function Zt(u,l,o,c,M){const U=[];o.forEach(Ce=>U.push(Un(Ce)));const X=[];c.forEach((Ce,ke)=>{const mt={};Ce.forEach(xt=>{const tn=mt[xt]=l.computeStyle(ke,xt,M);(!tn||0==tn.length)&&(ke[fn]=Bn,X.push(ke))}),u.set(ke,mt)});let oe=0;return o.forEach(Ce=>Un(Ce,U[oe++])),X}function Ei(u,l){const o=new Map;if(u.forEach(oe=>o.set(oe,[])),0==l.length)return o;const M=new Set(l),U=new Map;function X(oe){if(!oe)return 1;let Ce=U.get(oe);if(Ce)return Ce;const ke=oe.parentNode;return Ce=o.has(ke)?ke:M.has(ke)?1:X(ke),U.set(oe,Ce),Ce}return l.forEach(oe=>{const Ce=X(oe);1!==Ce&&o.get(Ce).push(oe)}),o}function Dr(u,l){u.classList?.add(l)}function ai(u,l){u.classList?.remove(l)}function wo(u,l,o){Qe(o).onDone(()=>u.processLeaveNode(l))}function Ki(u,l){for(let o=0;o<u.length;o++){const c=u[o];c instanceof Be.ZE?Ki(c.players,l):l.push(c)}}function Xi(u,l,o){const c=o.get(u);if(!c)return!1;let M=l.get(u);return M?c.forEach(U=>M.add(U)):l.set(u,c),o.delete(u),!0}class Xe{constructor(l,o,c){this.bodyNode=l,this._driver=o,this._normalizer=c,this._triggerCache={},this.onRemovalComplete=(M,U)=>{},this._transitionEngine=new S(l,o,c),this._timelineEngine=new D(l,o,c),this._transitionEngine.onRemovalComplete=(M,U)=>this.onRemovalComplete(M,U)}registerTrigger(l,o,c,M,U){const X=l+"-"+M;let oe=this._triggerCache[X];if(!oe){const Ce=[],mt=Pn(this._driver,U,Ce,[]);if(Ce.length)throw function ur(u,l){return new r.vHH(3404,be)}();oe=function Ni(u,l,o){return new wi(u,l,o)}(M,mt,this._normalizer),this._triggerCache[X]=oe}this._transitionEngine.registerTrigger(o,M,oe)}register(l,o){this._transitionEngine.register(l,o)}destroy(l,o){this._transitionEngine.destroy(l,o)}onInsert(l,o,c,M){this._transitionEngine.insertNode(l,o,c,M)}onRemove(l,o,c,M){this._transitionEngine.removeNode(l,o,M||!1,c)}disableAnimations(l,o){this._transitionEngine.markElementAsDisabled(l,o)}process(l,o,c,M){if("@"==c.charAt(0)){const[U,X]=At(c);this._timelineEngine.command(U,o,X,M)}else this._transitionEngine.trigger(l,o,c,M)}listen(l,o,c,M,U){if("@"==c.charAt(0)){const[X,oe]=At(c);return this._timelineEngine.listen(X,o,oe,U)}return this._transitionEngine.listen(l,o,c,M,U)}flush(l=-1){this._transitionEngine.flush(l)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Mo=(()=>{class u{constructor(o,c,M){this._element=o,this._startStyles=c,this._endStyles=M,this._state=0;let U=u.initialStylesByElement.get(o);U||u.initialStylesByElement.set(o,U={}),this._initialStyles=U}start(){this._state<1&&(this._startStyles&&ht(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ht(this._element,this._initialStyles),this._endStyles&&(ht(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(u.initialStylesByElement.delete(this._element),this._startStyles&&(yt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(yt(this._element,this._endStyles),this._endStyles=null),ht(this._element,this._initialStyles),this._state=3)}}return u.initialStylesByElement=new WeakMap,u})();function ir(u){let l=null;const o=Object.keys(u);for(let c=0;c<o.length;c++){const M=o[c];To(M)&&(l=l||{},l[M]=u[M])}return l}function To(u){return"display"===u||"position"===u}class es{constructor(l,o,c,M){this.element=l,this.keyframes=o,this.options=c,this._specialStyles=M,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=c.duration,this._delay=c.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(l=>l()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const l=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,l,this.options),this._finalKeyframe=l.length?l[l.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(l,o,c){return l.animate(o,c)}onStart(l){this._onStartFns.push(l)}onDone(l){this._onDoneFns.push(l)}onDestroy(l){this._onDestroyFns.push(l)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(l=>l()),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}_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(l=>l()),this._onDestroyFns=[])}setPosition(l){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=l*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const l={};if(this.hasStarted()){const o=this._finalKeyframe;Object.keys(o).forEach(c=>{"offset"!=c&&(l[c]=this._finished?o[c]:ue(this.element,c))})}this.currentSnapshot=l}triggerCallback(l){const o="start"==l?this._onStartFns:this._onDoneFns;o.forEach(c=>c()),o.length=0}}class Lr{validateStyleProperty(l){return Ae(l)}matchesElement(l,o){return!1}containsElement(l,o){return Re(l,o)}getParentElement(l){return Rt(l)}query(l,o,c){return tt(l,o,c)}computeStyle(l,o,c){return window.getComputedStyle(l)[o]}animate(l,o,c,M,U,X=[]){const Ce={duration:c,delay:M,fill:0==M?"both":"forwards"};U&&(Ce.easing=U);const ke={},mt=X.filter(tn=>tn instanceof es);(function P(u,l){return 0===u||0===l})(c,M)&&mt.forEach(tn=>{let pn=tn.currentSnapshot;Object.keys(pn).forEach(Xt=>ke[Xt]=pn[Xt])}),o=function m(u,l,o){const c=Object.keys(o);if(c.length&&l.length){let U=l[0],X=[];if(c.forEach(oe=>{U.hasOwnProperty(oe)||X.push(oe),U[oe]=o[oe]}),X.length)for(var M=1;M<l.length;M++){let oe=l[M];X.forEach(function(Ce){oe[Ce]=ue(u,Ce)})}}return l}(l,o=o.map(tn=>Tt(tn,!1)),ke);const xt=function Tn(u,l){let o=null,c=null;return Array.isArray(l)&&l.length?(o=ir(l[0]),l.length>1&&(c=ir(l[l.length-1]))):l&&(o=ir(l)),o||c?new Mo(u,o,c):null}(l,o);return new es(l,o,Ce,xt)}}let Zs=(()=>{class u extends Be._j{constructor(o,c){super(),this._nextAnimationId=0,this._renderer=o.createRenderer(c.body,{id:"0",encapsulation:r.ifc.None,styles:[],data:{animation:[]}})}build(o){const c=this._nextAnimationId.toString();this._nextAnimationId++;const M=Array.isArray(o)?(0,Be.vP)(o):o;return So(this._renderer,null,c,"register",[M]),new Is(c,this._renderer)}}return u.\u0275fac=function(o){return new(o||u)(r.LFG(r.FYo),r.LFG(_.K0))},u.\u0275prov=r.Yz7({token:u,factory:u.\u0275fac}),u})();class Is extends Be.LC{constructor(l,o){super(),this._id=l,this._renderer=o}create(l,o){return new qs(this._id,l,o||{},this._renderer)}}class qs{constructor(l,o,c,M){this.id=l,this.element=o,this._renderer=M,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",c)}_listen(l,o){return this._renderer.listen(this.element,`@@${this.id}:${l}`,o)}_command(l,...o){return So(this._renderer,this.element,this.id,l,o)}onDone(l){this._listen("done",l)}onStart(l){this._listen("start",l)}onDestroy(l){this._listen("destroy",l)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(l){this._command("setPosition",l)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function So(u,l,o,c,M){return u.setProperty(l,`@@${o}:${c}`,M)}const Di="@.disabled";let Mr=(()=>{class u{constructor(o,c,M){this.delegate=o,this.engine=c,this._zone=M,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),c.onRemovalComplete=(U,X)=>{const oe=X?.parentNode(U);oe&&X.removeChild(oe,U)}}createRenderer(o,c){const U=this.delegate.createRenderer(o,c);if(!(o&&c&&c.data&&c.data.animation)){let mt=this._rendererCache.get(U);return mt||(mt=new xr("",U,this.engine),this._rendererCache.set(U,mt)),mt}const X=c.id,oe=c.id+"-"+this._currentId;this._currentId++,this.engine.register(oe,o);const Ce=mt=>{Array.isArray(mt)?mt.forEach(Ce):this.engine.registerTrigger(X,oe,o,mt.name,mt)};return c.data.animation.forEach(Ce),new Po(this,oe,U,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(o,c,M){o>=0&&o<this._microtaskId?this._zone.run(()=>c(M)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(U=>{const[X,oe]=U;X(oe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([c,M]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return u.\u0275fac=function(o){return new(o||u)(r.LFG(r.FYo),r.LFG(Xe),r.LFG(r.R0b))},u.\u0275prov=r.Yz7({token:u,factory:u.\u0275fac}),u})();class xr{constructor(l,o,c){this.namespaceId=l,this.delegate=o,this.engine=c,this.destroyNode=this.delegate.destroyNode?M=>o.destroyNode(M):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(l,o){return this.delegate.createElement(l,o)}createComment(l){return this.delegate.createComment(l)}createText(l){return this.delegate.createText(l)}appendChild(l,o){this.delegate.appendChild(l,o),this.engine.onInsert(this.namespaceId,o,l,!1)}insertBefore(l,o,c,M=!0){this.delegate.insertBefore(l,o,c),this.engine.onInsert(this.namespaceId,o,l,M)}removeChild(l,o,c){this.engine.onRemove(this.namespaceId,o,this.delegate,c)}selectRootElement(l,o){return this.delegate.selectRootElement(l,o)}parentNode(l){return this.delegate.parentNode(l)}nextSibling(l){return this.delegate.nextSibling(l)}setAttribute(l,o,c,M){this.delegate.setAttribute(l,o,c,M)}removeAttribute(l,o,c){this.delegate.removeAttribute(l,o,c)}addClass(l,o){this.delegate.addClass(l,o)}removeClass(l,o){this.delegate.removeClass(l,o)}setStyle(l,o,c,M){this.delegate.setStyle(l,o,c,M)}removeStyle(l,o,c){this.delegate.removeStyle(l,o,c)}setProperty(l,o,c){"@"==o.charAt(0)&&o==Di?this.disableAnimations(l,!!c):this.delegate.setProperty(l,o,c)}setValue(l,o){this.delegate.setValue(l,o)}listen(l,o,c){return this.delegate.listen(l,o,c)}disableAnimations(l,o){this.engine.disableAnimations(l,o)}}class Po extends xr{constructor(l,o,c,M){super(o,c,M),this.factory=l,this.namespaceId=o}setProperty(l,o,c){"@"==o.charAt(0)?"."==o.charAt(1)&&o==Di?this.disableAnimations(l,c=void 0===c||!!c):this.engine.process(this.namespaceId,l,o.substr(1),c):this.delegate.setProperty(l,o,c)}listen(l,o,c){if("@"==o.charAt(0)){const M=function ts(u){switch(u){case"body":return document.body;case"document":return document;case"window":return window;default:return u}}(l);let U=o.substr(1),X="";return"@"!=U.charAt(0)&&([U,X]=function Fr(u){const l=u.indexOf(".");return[u.substring(0,l),u.substr(l+1)]}(U)),this.engine.listen(this.namespaceId,M,U,X,oe=>{this.factory.scheduleListenerCallback(oe._data||-1,c,oe)})}return this.delegate.listen(l,o,c)}}let ba=(()=>{class u extends Xe{constructor(o,c,M){super(o.body,c,M)}ngOnDestroy(){this.flush()}}return u.\u0275fac=function(o){return new(o||u)(r.LFG(_.K0),r.LFG(St),r.LFG(Jr))},u.\u0275prov=r.Yz7({token:u,factory:u.\u0275fac}),u})();const xo=new r.OlP("AnimationModuleType"),Ns=[{provide:Be._j,useClass:Zs},{provide:Jr,useFactory:function Oo(){return new qi}},{provide:Xe,useClass:ba},{provide:r.FYo,useFactory:function wa(u,l,o){return new Mr(u,l,o)},deps:[st.se,Xe,r.R0b]}],Fs=[{provide:St,useFactory:()=>new Lr},{provide:xo,useValue:"BrowserAnimations"},...Ns],Ao=[{provide:St,useClass:ct},{provide:xo,useValue:"NoopAnimations"},...Ns];let Js=(()=>{class u{static withConfig(o){return{ngModule:u,providers:o.disableAnimations?Ao:Fs}}}return u.\u0275fac=function(o){return new(o||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({providers:Fs,imports:[st.b2]}),u})();var Ks=p(6962),ks=p(5712);const Io=typeof window<"u"&&window,No=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,Tr=Io||typeof global<"u"&&global||No;!function(){if(!Tr)throw new Error("RxJS could not find any global context (window, self, global)")}();var _s=p(2916);function _r(u,l=null){return new Xr({method:"GET",url:u,headers:l})}function li(u,l,o){return new Xr({method:"POST",url:u,body:l,headers:o})}function tr(u,l){return new Xr({method:"DELETE",url:u,headers:l})}function Da(u,l,o){return new Xr({method:"PUT",url:u,body:l,headers:o})}function Ma(u,l,o){return new Xr({method:"PATCH",url:u,body:l,headers:o})}const Ta=(0,G.U)((u,l)=>u.response);function Sa(u,l){return Ta(new Xr({method:"GET",url:u,responseType:"json",headers:l}))}class Xr extends _s.y{constructor(l){super();const o={async:!0,createXHR:function(){return this.crossDomain?function fl(){if(Tr.XMLHttpRequest)return new Tr.XMLHttpRequest;if(Tr.XDomainRequest)return new Tr.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function Fo(){if(Tr.XMLHttpRequest)return new Tr.XMLHttpRequest;{let u;try{const l=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];for(let o=0;o<3;o++)try{if(u=l[o],new Tr.ActiveXObject(u))break}catch{}return new Tr.ActiveXObject(u)}catch{throw new Error("XMLHttpRequest is not supported by your browser")}}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof l)o.url=l;else for(const c in l)l.hasOwnProperty(c)&&(o[c]=l[c]);this.request=o}_subscribe(l){return new Pa(l,this.request)}}Xr.create=(()=>{const u=l=>new Xr(l);return u.get=_r,u.post=li,u.delete=tr,u.put=Da,u.patch=Ma,u.getJSON=Sa,u})();class Pa extends R.L{constructor(l,o){super(l),this.request=o,this.done=!1;const c=o.headers=o.headers||{};!o.crossDomain&&!this.getHeader(c,"X-Requested-With")&&(c["X-Requested-With"]="XMLHttpRequest"),!this.getHeader(c,"Content-Type")&&!(Tr.FormData&&o.body instanceof Tr.FormData)&&typeof o.body<"u"&&(c["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),o.body=this.serializeBody(o.body,this.getHeader(o.headers,"Content-Type")),this.send()}next(l){this.done=!0;const{xhr:o,request:c,destination:M}=this;let U;try{U=new ns(l,o,c)}catch(X){return M.error(X)}M.next(U)}send(){const{request:l,request:{user:o,method:c,url:M,async:U,password:X,headers:oe,body:Ce}}=this;try{const ke=this.xhr=l.createXHR();this.setupEvents(ke,l),o?ke.open(c,M,U,o,X):ke.open(c,M,U),U&&(ke.timeout=l.timeout,ke.responseType=l.responseType),"withCredentials"in ke&&(ke.withCredentials=!!l.withCredentials),this.setHeaders(ke,oe),Ce?ke.send(Ce):ke.send()}catch(ke){this.error(ke)}}serializeBody(l,o){if(!l||"string"==typeof l)return l;if(Tr.FormData&&l instanceof Tr.FormData)return l;if(o){const c=o.indexOf(";");-1!==c&&(o=o.substring(0,c))}switch(o){case"application/x-www-form-urlencoded":return Object.keys(l).map(c=>`${encodeURIComponent(c)}=${encodeURIComponent(l[c])}`).join("&");case"application/json":return JSON.stringify(l);default:return l}}setHeaders(l,o){for(let c in o)o.hasOwnProperty(c)&&l.setRequestHeader(c,o[c])}getHeader(l,o){for(let c in l)if(c.toLowerCase()===o.toLowerCase())return l[c]}setupEvents(l,o){const c=o.progressSubscriber;function M(oe){const{subscriber:Ce,progressSubscriber:ke,request:mt}=M;let xt;ke&&ke.error(oe);try{xt=new Mi(this,mt)}catch(tn){xt=tn}Ce.error(xt)}if(l.ontimeout=M,M.request=o,M.subscriber=this,M.progressSubscriber=c,l.upload&&"withCredentials"in l){if(c){let Ce;Ce=function(ke){const{progressSubscriber:mt}=Ce;mt.next(ke)},Tr.XDomainRequest?l.onprogress=Ce:l.upload.onprogress=Ce,Ce.progressSubscriber=c}let oe;oe=function(Ce){const{progressSubscriber:ke,subscriber:mt,request:xt}=oe;let tn;ke&&ke.error(Ce);try{tn=new rs("ajax error",this,xt)}catch(pn){tn=pn}mt.error(tn)},l.onerror=oe,oe.request=o,oe.subscriber=this,oe.progressSubscriber=c}function U(oe){}function X(oe){const{subscriber:Ce,progressSubscriber:ke,request:mt}=X;if(4===this.readyState){let xt=1223===this.status?204:this.status,tn="text"===this.responseType?this.response||this.responseText:this.response;if(0===xt&&(xt=tn?200:0),xt<400)ke&&ke.complete(),Ce.next(oe),Ce.complete();else{let pn;ke&&ke.error(oe);try{pn=new rs("ajax error "+xt,this,mt)}catch(Xt){pn=Xt}Ce.error(pn)}}}l.onreadystatechange=U,U.subscriber=this,U.progressSubscriber=c,U.request=o,l.onload=X,X.subscriber=this,X.progressSubscriber=c,X.request=o}unsubscribe(){const{done:l,xhr:o}=this;!l&&o&&4!==o.readyState&&"function"==typeof o.abort&&o.abort(),super.unsubscribe()}}class ns{constructor(l,o,c){this.originalEvent=l,this.xhr=o,this.request=c,this.status=o.status,this.responseType=o.responseType||c.responseType,this.response=ys(this.responseType,o)}}const rs=(()=>{function u(l,o,c){return Error.call(this),this.message=l,this.name="AjaxError",this.xhr=o,this.request=c,this.status=o.status,this.responseType=o.responseType||c.responseType,this.response=ys(this.responseType,o),this}return u.prototype=Object.create(Error.prototype),u})();function ys(u,l){switch(u){case"json":return function eo(u){return"response"in u?u.responseType?u.response:JSON.parse(u.response||u.responseText||"null"):JSON.parse(u.responseText||"null")}(l);case"xml":return l.responseXML;default:return"response"in l?l.response:l.responseText}}const Mi=function ko(u,l){return rs.call(this,"ajax timeout",u,l),this.name="AjaxTimeoutError",this},vs=Xr.create,Oa=function(u,l){return{"pull-left":u,"float-left":l}},xa=function(u,l){return{"pull-right":u,"float-right":l}},ci=function(u,l){return{disabled:u,currentPage:l}};function to(u,l){if(1&u){const o=r.EpF();r.TgZ(0,"li",11)(1,"a",12),r.NdJ("click",function(M){return r.CHM(o),r.oxw().selectPage(1,M)}),r.GkF(2,13),r.qZA()()}if(2&u){const o=r.oxw(),c=r.MAs(13);r.ekj("disabled",o.noPrevious()||o.disabled),r.xp6(2),r.Q6J("ngTemplateOutlet",o.customFirstTemplate||c)("ngTemplateOutletContext",r.WLB(4,ci,o.noPrevious()||o.disabled,o.page))}}function Aa(u,l){if(1&u){const o=r.EpF();r.TgZ(0,"li",14)(1,"a",12),r.NdJ("click",function(M){r.CHM(o);const U=r.oxw();return U.selectPage(U.page-1,M)}),r.GkF(2,13),r.qZA()()}if(2&u){const o=r.oxw(),c=r.MAs(11);r.ekj("disabled",o.noPrevious()||o.disabled),r.xp6(2),r.Q6J("ngTemplateOutlet",o.customPreviousTemplate||c)("ngTemplateOutletContext",r.WLB(4,ci,o.noPrevious()||o.disabled,o.page))}}const Ar=function(u,l,o){return{disabled:u,$implicit:l,currentPage:o}};function pl(u,l){if(1&u){const o=r.EpF();r.TgZ(0,"li",15)(1,"a",12),r.NdJ("click",function(M){const X=r.CHM(o).$implicit;return r.oxw().selectPage(X.number,M)}),r.GkF(2,13),r.qZA()()}if(2&u){const o=l.$implicit,c=r.oxw(),M=r.MAs(7);r.ekj("active",o.active)("disabled",c.disabled&&!o.active),r.xp6(2),r.Q6J("ngTemplateOutlet",c.customPageTemplate||M)("ngTemplateOutletContext",r.kEZ(6,Ar,c.disabled,o,c.page))}}function Ia(u,l){if(1&u){const o=r.EpF();r.TgZ(0,"li",16)(1,"a",12),r.NdJ("click",function(M){r.CHM(o);const U=r.oxw();return U.selectPage(U.page+1,M)}),r.GkF(2,13),r.qZA()()}if(2&u){const o=r.oxw(),c=r.MAs(9);r.ekj("disabled",o.noNext()||o.disabled),r.xp6(2),r.Q6J("ngTemplateOutlet",o.customNextTemplate||c)("ngTemplateOutletContext",r.WLB(4,ci,o.noNext()||o.disabled,o.page))}}function is(u,l){if(1&u){const o=r.EpF();r.TgZ(0,"li",17)(1,"a",12),r.NdJ("click",function(M){r.CHM(o);const U=r.oxw();return U.selectPage(U.totalPages,M)}),r.GkF(2,13),r.qZA()()}if(2&u){const o=r.oxw(),c=r.MAs(15);r.ekj("disabled",o.noNext()||o.disabled),r.xp6(2),r.Q6J("ngTemplateOutlet",o.customLastTemplate||c)("ngTemplateOutletContext",r.WLB(4,ci,o.noNext()||o.disabled,o.page))}}function Cs(u,l){1&u&&r._uU(0),2&u&&r.Oqu(l.$implicit.text)}function Ti(u,l){if(1&u&&r._uU(0),2&u){const o=r.oxw();r.Oqu(o.getText("next"))}}function Rs(u,l){if(1&u&&r._uU(0),2&u){const o=r.oxw();r.Oqu(o.getText("previous"))}}function Ro(u,l){if(1&u&&r._uU(0),2&u){const o=r.oxw();r.Oqu(o.getText("first"))}}function no(u,l){if(1&u&&r._uU(0),2&u){const o=r.oxw();r.Oqu(o.getText("last"))}}let Fi=(()=>{class u{constructor(){this.main={itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",pageBtnClass:"",rotate:!0},this.pager={itemsPerPage:15,previousText:"\xab Previous",nextText:"Next \xbb",pageBtnClass:"",align:!0}}}return u.\u0275fac=function(o){return new(o||u)},u.\u0275prov=r.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();const Lo={provide:ve.JU,useExisting:(0,r.Gpc)(()=>ki),multi:!0};let ki=(()=>{class u{constructor(o,c,M){this.elementRef=o,this.changeDetection=M,this.align=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.firstText="First",this.previousText="\xab Previous",this.nextText="Next \xbb",this.lastText="Last",this.rotate=!0,this.pageBtnClass="",this.disabled=!1,this.numPages=new r.vpe,this.pageChanged=new r.vpe,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.classMap="",this.inited=!1,this._itemsPerPage=15,this._totalItems=0,this._totalPages=0,this._page=1,this.elementRef=o,this.config||this.configureOptions(Object.assign({},c.main,c.pager))}get itemsPerPage(){return this._itemsPerPage}set itemsPerPage(o){this._itemsPerPage=o,this.totalPages=this.calculateTotalPages()}get totalItems(){return this._totalItems}set totalItems(o){this._totalItems=o,this.totalPages=this.calculateTotalPages()}get totalPages(){return this._totalPages}set totalPages(o){this._totalPages=o,this.numPages.emit(o),this.inited&&this.selectPage(this.page)}get page(){return this._page}set page(o){const c=this._page;this._page=o>this.totalPages?this.totalPages:o||1,this.changeDetection.markForCheck(),!(c===this._page||typeof c>"u")&&this.pageChanged.emit({page:this._page,itemsPerPage:this.itemsPerPage})}configureOptions(o){this.config=Object.assign({},o)}ngOnInit(){typeof window<"u"&&(this.classMap=this.elementRef.nativeElement.getAttribute("class")||""),typeof this.maxSize>"u"&&(this.maxSize=this.config?.maxSize||0),typeof this.rotate>"u"&&(this.rotate=!!this.config?.rotate),typeof this.boundaryLinks>"u"&&(this.boundaryLinks=!!this.config?.boundaryLinks),typeof this.directionLinks>"u"&&(this.directionLinks=!!this.config?.directionLinks),typeof this.pageBtnClass>"u"&&(this.pageBtnClass=this.config?.pageBtnClass||""),typeof this.itemsPerPage>"u"&&(this.itemsPerPage=this.config?.itemsPerPage||0),this.totalPages=this.calculateTotalPages(),this.pages=this.getPages(this.page,this.totalPages),this.inited=!0}writeValue(o){this.page=o,this.pages=this.getPages(this.page,this.totalPages)}getText(o){return this[`${o}Text`]||this.config[`${o}Text`]}noPrevious(){return 1===this.page}noNext(){return this.page===this.totalPages}registerOnChange(o){this.onChange=o}registerOnTouched(o){this.onTouched=o}selectPage(o,c){c&&c.preventDefault(),this.disabled||(c&&c.target&&c.target.blur(),this.writeValue(o),this.onChange(this.page))}makePage(o,c,M){return{text:c,number:o,active:M}}getPages(o,c){const M=[];let U=1,X=c;const oe=typeof this.maxSize<"u"&&this.maxSize<c;oe&&this.maxSize&&(this.rotate?(U=Math.max(o-Math.floor(this.maxSize/2),1),X=U+this.maxSize-1,X>c&&(X=c,U=X-this.maxSize+1)):(U=(Math.ceil(o/this.maxSize)-1)*this.maxSize+1,X=Math.min(U+this.maxSize-1,c)));for(let Ce=U;Ce<=X;Ce++){const ke=this.makePage(Ce,Ce.toString(),Ce===o);M.push(ke)}if(oe&&!this.rotate){if(U>1){const Ce=this.makePage(U-1,"...",!1);M.unshift(Ce)}if(X<c){const Ce=this.makePage(X+1,"...",!1);M.push(Ce)}}return M}calculateTotalPages(){const o=this.itemsPerPage<1?1:Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(o||0,1)}}return u.\u0275fac=function(o){return new(o||u)(r.Y36(r.SBq),r.Y36(Fi),r.Y36(r.sBO))},u.\u0275cmp=r.Xpm({type:u,selectors:[["pager"]],inputs:{align:"align",maxSize:"maxSize",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",firstText:"firstText",previousText:"previousText",nextText:"nextText",lastText:"lastText",rotate:"rotate",pageBtnClass:"pageBtnClass",disabled:"disabled",itemsPerPage:"itemsPerPage",totalItems:"totalItems"},outputs:{numPages:"numPages",pageChanged:"pageChanged"},features:[r._Bn([Lo])],decls:7,vars:24,consts:[[1,"pager"],[3,"ngClass"],["href","",3,"click"]],template:function(o,c){1&o&&(r.TgZ(0,"ul",0)(1,"li",1)(2,"a",2),r.NdJ("click",function(U){return c.selectPage(c.page-1,U)}),r._uU(3),r.qZA()(),r.TgZ(4,"li",1)(5,"a",2),r.NdJ("click",function(U){return c.selectPage(c.page+1,U)}),r._uU(6),r.qZA()()()),2&o&&(r.xp6(1),r.Tol(c.pageBtnClass),r.ekj("disabled",c.noPrevious())("previous",c.align),r.Q6J("ngClass",r.WLB(18,Oa,c.align,c.align)),r.xp6(2),r.Oqu(c.getText("previous")),r.xp6(1),r.Tol(c.pageBtnClass),r.ekj("disabled",c.noNext())("next",c.align),r.Q6J("ngClass",r.WLB(21,xa,c.align,c.align)),r.xp6(2),r.Oqu(c.getText("next")))},directives:[_.mk],encapsulation:2}),u})();const bs={provide:ve.JU,useExisting:(0,r.Gpc)(()=>Ls),multi:!0};let Ls=(()=>{class u{constructor(o,c,M){this.elementRef=o,this.changeDetection=M,this.align=!0,this.boundaryLinks=!1,this.directionLinks=!0,this.rotate=!0,this.pageBtnClass="",this.disabled=!1,this.numPages=new r.vpe,this.pageChanged=new r.vpe,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.classMap="",this.inited=!1,this._itemsPerPage=10,this._totalItems=0,this._totalPages=0,this._page=1,this.elementRef=o,this.config||this.configureOptions(c.main)}get itemsPerPage(){return this._itemsPerPage}set itemsPerPage(o){this._itemsPerPage=o,this.totalPages=this.calculateTotalPages()}get totalItems(){return this._totalItems}set totalItems(o){this._totalItems=o,this.totalPages=this.calculateTotalPages()}get totalPages(){return this._totalPages}set totalPages(o){this._totalPages=o,this.numPages.emit(o),this.inited&&this.selectPage(this.page)}get page(){return this._page}set page(o){const c=this._page;this._page=o>this.totalPages?this.totalPages:o||1,this.changeDetection.markForCheck(),!(c===this._page||typeof c>"u")&&this.pageChanged.emit({page:this._page,itemsPerPage:this.itemsPerPage})}configureOptions(o){this.config=Object.assign({},o)}ngOnInit(){typeof window<"u"&&(this.classMap=this.elementRef.nativeElement.getAttribute("class")||""),typeof this.maxSize>"u"&&(this.maxSize=this.config?.maxSize||0),typeof this.rotate>"u"&&(this.rotate=!!this.config?.rotate),typeof this.boundaryLinks>"u"&&(this.boundaryLinks=!!this.config?.boundaryLinks),typeof this.directionLinks>"u"&&(this.directionLinks=!!this.config?.directionLinks),typeof this.pageBtnClass>"u"&&(this.pageBtnClass=this.config?.pageBtnClass||""),typeof this.itemsPerPage>"u"&&(this.itemsPerPage=this.config?.itemsPerPage||0),this.totalPages=this.calculateTotalPages(),this.pages=this.getPages(this.page,this.totalPages),this.inited=!0}writeValue(o){this.page=o,this.pages=this.getPages(this.page,this.totalPages)}getText(o){return this[`${o}Text`]||this.config[`${o}Text`]}noPrevious(){return 1===this.page}noNext(){return this.page===this.totalPages}registerOnChange(o){this.onChange=o}registerOnTouched(o){this.onTouched=o}selectPage(o,c){c&&c.preventDefault(),this.disabled||(c&&c.target&&c.target.blur(),this.writeValue(o),this.onChange(this.page))}makePage(o,c,M){return{text:c,number:o,active:M}}getPages(o,c){const M=[];let U=1,X=c;const oe=typeof this.maxSize<"u"&&this.maxSize<c;oe&&this.maxSize&&(this.rotate?(U=Math.max(o-Math.floor(this.maxSize/2),1),X=U+this.maxSize-1,X>c&&(X=c,U=X-this.maxSize+1)):(U=(Math.ceil(o/this.maxSize)-1)*this.maxSize+1,X=Math.min(U+this.maxSize-1,c)));for(let Ce=U;Ce<=X;Ce++){const ke=this.makePage(Ce,Ce.toString(),Ce===o);M.push(ke)}if(oe&&!this.rotate){if(U>1){const Ce=this.makePage(U-1,"...",!1);M.unshift(Ce)}if(X<c){const Ce=this.makePage(X+1,"...",!1);M.push(Ce)}}return M}calculateTotalPages(){const o=this.itemsPerPage<1?1:Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(o||0,1)}}return u.\u0275fac=function(o){return new(o||u)(r.Y36(r.SBq),r.Y36(Fi),r.Y36(r.sBO))},u.\u0275cmp=r.Xpm({type:u,selectors:[["pagination"]],inputs:{align:"align",maxSize:"maxSize",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",firstText:"firstText",previousText:"previousText",nextText:"nextText",lastText:"lastText",rotate:"rotate",pageBtnClass:"pageBtnClass",disabled:"disabled",customPageTemplate:"customPageTemplate",customNextTemplate:"customNextTemplate",customPreviousTemplate:"customPreviousTemplate",customFirstTemplate:"customFirstTemplate",customLastTemplate:"customLastTemplate",itemsPerPage:"itemsPerPage",totalItems:"totalItems"},outputs:{numPages:"numPages",pageChanged:"pageChanged"},features:[r._Bn([bs])],decls:16,vars:6,consts:[[1,"pagination",3,"ngClass"],["class","pagination-first page-item",3,"disabled",4,"ngIf"],["class","pagination-prev page-item",3,"disabled",4,"ngIf"],["class","pagination-page page-item",3,"active","disabled",4,"ngFor","ngForOf"],["class","pagination-next page-item",3,"disabled",4,"ngIf"],["class","pagination-last page-item",3,"disabled",4,"ngIf"],["defaultPageTemplate",""],["defaultNextTemplate",""],["defaultPreviousTemplate",""],["defaultFirstTemplate",""],["defaultLastTemplate",""],[1,"pagination-first","page-item"],["href","",1,"page-link",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"pagination-prev","page-item"],[1,"pagination-page","page-item"],[1,"pagination-next","page-item"],[1,"pagination-last","page-item"]],template:function(o,c){1&o&&(r.TgZ(0,"ul",0),r.YNc(1,to,3,7,"li",1),r.YNc(2,Aa,3,7,"li",2),r.YNc(3,pl,3,10,"li",3),r.YNc(4,Ia,3,7,"li",4),r.YNc(5,is,3,7,"li",5),r.qZA(),r.YNc(6,Cs,1,1,"ng-template",null,6,r.W1O),r.YNc(8,Ti,1,1,"ng-template",null,7,r.W1O),r.YNc(10,Rs,1,1,"ng-template",null,8,r.W1O),r.YNc(12,Ro,1,1,"ng-template",null,9,r.W1O),r.YNc(14,no,1,1,"ng-template",null,10,r.W1O)),2&o&&(r.Q6J("ngClass",c.classMap),r.xp6(1),r.Q6J("ngIf",c.boundaryLinks),r.xp6(1),r.Q6J("ngIf",c.directionLinks),r.xp6(1),r.Q6J("ngForOf",c.pages),r.xp6(1),r.Q6J("ngIf",c.directionLinks),r.xp6(1),r.Q6J("ngIf",c.boundaryLinks))},directives:[_.mk,_.O5,_.tP,_.sg],encapsulation:2}),u})(),ss=(()=>{class u{static forRoot(){return{ngModule:u,providers:[]}}}return u.\u0275fac=function(o){return new(o||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({imports:[[_.ez]]}),u})();function ro(u,l){if(1&u&&(r.TgZ(0,"span",7),r.Hsn(1),r.qZA()),2&u){const o=r.oxw(2);r.uIk("id",o.infoBlockID)}}function Vo(u,l){if(1&u){const o=r.EpF();r.ynx(0),r.TgZ(1,"a",3),r.NdJ("click",function(){return r.CHM(o),r.oxw().toggleInfoBlock()}),r._UZ(2,"span",4)(3,"span",5),r.qZA(),r.YNc(4,ro,2,1,"span",6),r.BQk()}if(2&u){const o=r.oxw();r.xp6(1),r.uIk("id",o.infoIconID)("title",o.toggleActionTitle),r.xp6(2),r.Q6J("innerHtml",o.toggleActionTitle,r.oJD),r.xp6(1),r.Q6J("ngIf",o.showInfoBlock)}}const Bo=["*"],io=["header"];function so(u,l){if(1&u){const o=r.EpF();r.TgZ(0,"button",4),r.NdJ("click",function(){return r.CHM(o),r.oxw().closeClicked()}),r._UZ(1,"i",5),r.qZA()}if(2&u){const o=r.oxw();r.uIk("id",o.buttonID)}}const ws=[[["","callout-heading",""]],"*"],Bs=["[callout-heading]","*"];function Na(u,l){if(1&u&&(r.TgZ(0,"li",3),r._UZ(1,"i",4)(2,"span",5),r.qZA()),2&u){const o=l.$implicit;r.uIk("id",o.id),r.xp6(2),r.Q6J("innerHtml",o.message,r.oJD)}}function jo(u,l){if(1&u&&(r.TgZ(0,"ul",1),r.YNc(1,Na,3,2,"li",2),r.qZA()),2&u){const o=r.oxw();r.xp6(1),r.Q6J("ngForOf",o.getFieldErrors())}}const js=function(u){return{visibility:u}};function h(u,l){if(1&u){const o=r.EpF();r.TgZ(0,"button",9),r.NdJ("click",function(){return r.CHM(o),r.oxw(2).fireClose()}),r.TgZ(1,"span"),r._uU(2,"\xd7"),r.qZA()()}if(2&u){const o=r.oxw(2);r.Q6J("id",o.closeButtonID)("title",o.closeLabel),r.uIk("aria-label",o.closeLabel),r.xp6(1),r.uIk("aria-hidden",!0)}}function w(u,l){if(1&u){const o=r.EpF();r.TgZ(0,"button",10),r.NdJ("click",function(){return r.CHM(o),r.oxw(2).fireToggleMore()}),r._uU(1),r.qZA()}if(2&u){const o=r.oxw(2);r.Q6J("id",o.moreButtonID),r.xp6(1),r.hij(" ",o.moreLabel," ")}}function O(u,l){if(1&u&&(r.TgZ(0,"strong",11),r._uU(1),r.qZA()),2&u){const o=r.oxw(2);r.xp6(1),r.Oqu(o.label)}}function Z(u,l){if(1&u&&(r.TgZ(0,"span",12),r._uU(1),r.qZA()),2&u){const o=r.oxw(2);r.Q6J("id",o.textMessageID),r.xp6(1),r.hij(" ",o.message," ")}}function ie(u,l){if(1&u&&(r.TgZ(0,"li")(1,"span",12),r._uU(2),r.qZA()()),2&u){const o=l.$implicit,c=l.index,M=r.oxw(3);r.xp6(1),r.s9C("id",M.textListID+"_"+c),r.xp6(1),r.hij(" ",o," ")}}function ge(u,l){if(1&u&&(r.TgZ(0,"ul",13),r.YNc(1,ie,3,2,"li",14),r.qZA()),2&u){const o=r.oxw(2);r.xp6(1),r.Q6J("ngForOf",o.alert.list)}}function Ge(u,l){if(1&u&&(r.TgZ(0,"div",1),r.YNc(1,h,3,4,"button",2),r.YNc(2,w,2,2,"button",3),r._UZ(3,"span"),r.TgZ(4,"div",4),r.YNc(5,O,2,1,"strong",5),r.TgZ(6,"span",6),r.YNc(7,Z,2,2,"span",7),r.qZA(),r.YNc(8,ge,2,1,"ul",8),r.qZA()()),2&u){const o=r.oxw();r.Gre("alert alert-",o.type," ng-hide"),r.Q6J("@openClose",o.animationClass),r.xp6(1),r.Q6J("ngIf",o.showCloseButton),r.xp6(1),r.Q6J("ngIf",o.showMoreButton),r.xp6(1),r.Tol(o.icon),r.uIk("aria-hidden",!0),r.xp6(2),r.Q6J("ngIf",o.hasLabel),r.xp6(2),r.Q6J("ngIf",o.message),r.xp6(1),r.Q6J("ngIf",o.alert&&o.alert.list&&o.alert.list.length)}}function Mt(u,l){if(1&u){const o=r.EpF();r.TgZ(0,"div",6)(1,"cp-alert",7),r.NdJ("close",function(){const U=r.CHM(o).$implicit;return r.oxw().alertClosed(U)}),r.qZA()()}if(2&u){const o=l.$implicit;r.xp6(1),r.Q6J("alert",o)}}function Cn(u,l){if(1&u&&r._UZ(0,"div",8),2&u){const o=r.oxw();r.Q6J("ngClass",o.positionClasses)}}const qt=["searchInput"];function jn(u,l){if(1&u&&(r.TgZ(0,"span",6),r._uU(1),r.qZA()),2&u){const o=r.oxw();r.xp6(1),r.Oqu(o.clearIconLabel)}}function Rn(u,l){if(1&u&&(r.TgZ(0,"div")(1,"div",4)(2,"span",5),r._uU(3),r.qZA(),r.TgZ(4,"span",6),r._uU(5),r.qZA()()()),2&u){const o=r.oxw();r.xp6(2),r.MGl("id","",o.id,"-limit"),r.xp6(1),r.Oqu(o.limitValue),r.xp6(2),r.Oqu(o.limitTitle)}}function Us(u,l){if(1&u&&(r.TgZ(0,"div",4)(1,"span",5),r._uU(2),r.qZA(),r.TgZ(3,"span",6),r._uU(4),r.qZA()()),2&u){const o=r.oxw();r.xp6(1),r.MGl("id","",o.id,"-available"),r.xp6(1),r.hij(" ",o.availableValue," "),r.xp6(2),r.Oqu(o.availableTitle)}}function Es(u,l){if(1&u){const o=r.EpF();r.TgZ(0,"a",11),r.NdJ("click",function(){return r.CHM(o),r.oxw(2).showWarningDetailsClick()}),r._UZ(1,"i",12),r._uU(2),r.qZA()}if(2&u){const o=r.oxw(2);r.MGl("id","",o.id,"-details"),r.s9C("title",o.detailsTooltip),r.xp6(2),r.hij(" ",o.viewDetailsText," ")}}function Jn(u,l){if(1&u&&(r.TgZ(0,"a",13),r._uU(1),r._UZ(2,"i",14),r.qZA()),2&u){const o=r.oxw(2);r.MGl("id","",o.id,"-upgrade"),r.s9C("href",o.upgradeLink,r.LSH),r.s9C("target",o.upgradeLinkTarget),r.s9C("title",o.locale.maketext("Upgrade")),r.xp6(1),r.hij(" ",o.locale.maketext("Upgrade")," ")}}function Ho(u,l){if(1&u&&(r.TgZ(0,"div",8),r.YNc(1,Es,3,3,"a",9),r.YNc(2,Jn,3,5,"a",10),r.qZA()),2&u){const o=r.oxw();r.xp6(1),r.Q6J("ngIf",o.showDetails),r.xp6(1),r.Q6J("ngIf",o.showUpgradeLink)}}const Hs=[[["","field-label-help-text",""]],[["","form-field-input-content",""]]],_l=["[field-label-help-text]","[form-field-input-content]"];function kd(u,l){1&u&&r._UZ(0,"li",13),2&u&&r.Q6J("ngClass",l.$implicit)}function Rd(u,l){if(1&u&&(r.TgZ(0,"ul",11),r.YNc(1,kd,1,1,"li",12),r.qZA()),2&u){const o=r.oxw();r.xp6(1),r.Q6J("ngForOf",o.strengthClasses)}}function Ld(u,l){if(1&u&&r._UZ(0,"div",14),2&u){const o=r.oxw();r.Q6J("innerHtml",o.strengthText,r.oJD)}}function oo(u,l){if(1&u&&(r.TgZ(0,"ul",15)(1,"li",16),r._UZ(2,"i",17)(3,"span",18),r.qZA()()),2&u){const o=r.oxw();r.xp6(3),r.Q6J("innerHtml",o.strengthText,r.oJD)}}function Vd(u,l){if(1&u&&(r.TgZ(0,"div",19)(1,"div",20)(2,"h4"),r._uU(3),r.qZA(),r.TgZ(4,"form",21)(5,"div",22)(6,"div",23)(7,"label",24)(8,"span"),r._uU(9),r.qZA()(),r._UZ(10,"input",25),r.qZA()(),r.TgZ(11,"div",26)(12,"div",27)(13,"div",28)(14,"label",29),r._UZ(15,"input",30),r.TgZ(16,"span"),r._uU(17),r.qZA()()(),r.TgZ(18,"div",28)(19,"label",29),r._UZ(20,"input",31),r.TgZ(21,"span"),r._uU(22),r.qZA()()(),r.TgZ(23,"div",28)(24,"label",29),r._UZ(25,"input",32),r.TgZ(26,"span"),r._uU(27),r.qZA()()(),r.TgZ(28,"div",28)(29,"label",29),r._UZ(30,"input",33),r.TgZ(31,"span"),r._uU(32),r.qZA()()()()()()()()),2&u){const o=r.oxw();r.xp6(3),r.Oqu(o.locale.maketext("Characters")),r.xp6(1),r.Q6J("formGroup",o.passwordConfigurationForm),r.xp6(5),r.Oqu(o.locale.maketext("Length")),r.xp6(1),r.Q6J("title",o.locale.maketext("Set password length.")),r.xp6(5),r.s9C("disabled",o.isInputDisabled("hasUppercase")),r.xp6(2),r.Oqu(o.locale.maketext("Uppercase Letters ([asis,ABC])")),r.xp6(5),r.Oqu(o.locale.maketext("Lowercase Letters ([asis,abc])")),r.xp6(5),r.Oqu(o.locale.maketext("Numbers ([asis,123])")),r.xp6(5),r.Oqu(o.locale.maketext("Symbols ([asis,@#$])"))}}const hr=function(u,l){return{"fa-eye":u,"fa-eye-slash":l}},La=function(u,l){return{"fa-caret-down":u,"fa-caret-up":l}};function ao(u,l){if(1&u){const o=r.EpF();r.TgZ(0,"button",3),r.NdJ("click",function(){const U=r.CHM(o).$implicit;return r.oxw().onOptionClicked(U)}),r.qZA()}if(2&u){const o=l.$implicit,c=r.oxw();r.Q6J("disabled",c.disabled)("selected",c.isOptionSelected(o))("value",o)}}function Bd(u,l){1&u&&r._uU(0," >\n")}function uc(u,l){1&u&&r._uU(0," <\n")}function ei(u,l){1&u&&r._uU(0," >>\n")}function Si(u,l){1&u&&r._uU(0," <<\n")}class ti{constructor(l,o,c=ti.defaultOptions){this._message=l,this._type=o;const M=c.id?c.id:Math.random().toString(36).substr(2,9);this._id=M,this._closable=c.isCloseable??!0,this._autoClosePeriod=c.autoClosePeriod,this._list=c.list,this._showMore=c.showMore||ti.defaultShowMore,this._ts=c.createdOn??Date.now()}get message(){return this._message}get type(){return this._type}get id(){return this._id}get isClosable(){return this._closable}get autoCloses(){return this._autoClosePeriod>0}get autoClosePeriod(){return this._autoClosePeriod}get list(){return this._list}get createdOn(){return this._ts}get showMore(){return this._showMore}static makeAlert(l){const{message:o,type:c,...M}=l;return new ti(o,c,M)}}ti.defaultShowMore=!1,ti.defaultAutoClosePeriod=0,ti.defaultOptions={autoClosePeriod:ti.defaultAutoClosePeriod,list:[]};var Kn=(()=>{return(u=Kn||(Kn={}))[u.error=0]="error",u[u.success=1]="success",u[u.warning=2]="warning",u[u.information=3]="information",Kn;var u})(),zr=(()=>{return(u=zr||(zr={})).add="add",u.remove="remove",u.clear="clear",zr;var u})();let $o=(()=>{class u{constructor(){this._alertEventsSource=new V.xQ,this._alerts={},this.alertEvents=this._alertEventsSource.asObservable()}add(o,c=u.defaultGroup){this._alerts[c]||(this._alerts[c]=[]);const M=o instanceof ti?o:ti.makeAlert(o);if(this.list(c).push(M),this._alertEventsSource.next({type:zr.add,group:c,alert:M}),(0,r.X6Q)())switch(M.type){case Kn.error:console.error(M.message,M);break;case Kn.warning:console.warn(M.message,M);break;default:console.log(M.message,M)}return M}success(o,c=u.defaultGroup){return this.add(new ti(o,Kn.success,u.defaultSuccessOptions),c)}error(o,c=u.defaultGroup){return this.add({message:o,type:Kn.error},c)}info(o,c=u.defaultGroup){return this.add({message:o,type:Kn.information},c)}warn(o,c=u.defaultGroup){return this.add({message:o,type:Kn.warning},c)}removeById(o,c=u.defaultGroup){const M=this.list(c),U=M.findIndex(X=>X.id===o,0);if(-1!==U){const X=M[U];M.splice(U,1),this._alertEventsSource.next({type:zr.remove,group:c,alert:X})}}clear(o=u.defaultGroup){this._alerts[o]=[],this._alertEventsSource.next({type:zr.clear,group:o})}list(o=u.defaultGroup){return null==this._alerts[o]&&(this._alerts[o]=[]),this._alerts[o]}}return u.defaultGroup="__DEFAULT__",u.defaultSuccessOptions={autoClosePeriod:1e4},u.\u0275fac=function(o){return new(o||u)},u.\u0275prov=r.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();var Pi=(()=>{return(u=Pi||(Pi={})).inline="inline",u.topLeft="top-left",u.topMiddle="top-middle",u.topRight="top-right",u.bottomLeft="bottom-left",u.bottomMiddle="bottom-middle",u.bottomRight="bottom-right",u.middleLeft="middle-left",u.middleMiddle="middle-middle",u.middleRight="middle-right",Pi;var u})();const Hd=Pi.topRight,yl=Pi.topLeft;let Go=(()=>{class u{constructor(o){this._router=o,this.activeBreadcrumbs=[],this.breadcrumbClicked$=(0,j.R)(document,"breadcrumbNavigate").pipe((0,G.U)(c=>this._router.navigate([c.detail.link]))),this._resolvedRoutes={},this._breadcrumbs=[]}initializeBreadcrumbs(){this.flattenedRoutesData=[],this._router.events.pipe((0,ne.h)(o=>o instanceof I.R9),(0,G.U)(o=>o.state.root)).subscribe(o=>this._resolvedRoutes=this._getResolvedRoutes(o.children)),this._router.events.pipe((0,ne.h)(o=>o instanceof I.wM),(0,G.U)(o=>o.snapshot)).subscribe(o=>this.buildBreadcrumbs(o)),this._router.events.pipe((0,ne.h)(o=>o instanceof I.m2),(0,G.U)(o=>o.url)).subscribe(o=>this.setBreadcrumbs(o)),this.breadcrumbClicked$.subscribe()}get flattenedRoutesData(){return this._flattenedRoutesData}set flattenedRoutesData(o){this._router.config.forEach(c=>{this._flattenRoute(c,o)}),this._flattenedRoutesData=o}_flattenRoute(o,c){return o.data&&o.data.breadcrumb&&c.push({path:o.path,id:o.data.breadcrumb.id,displayName:o.data.breadcrumb.displayName,longName:o.data.breadcrumb.longName,parentId:o.data.breadcrumb.parentId}),o.children&&o.children.forEach(M=>{this._flattenRoute(M,c)}),c}_getResolvedRoutes(o,c=[],M={}){return o.forEach(U=>{U.data&&U.data.breadcrumb&&(U.url.forEach(X=>{c.push(X.path)}),M[U.routeConfig.path]=c.join("/"),0!==U.children.length&&this._getResolvedRoutes(U.children,c,M))},this),M}buildBreadcrumbs(o){const c=[];o.data&&o.data.breadcrumb&&this._buildParentTree(o.data.breadcrumb.id,c),this._updateDynamicRoutes(c),this._breadcrumbs=c}_buildParentTree(o,c){const M=this.flattenedRoutesData.find(U=>U.id===o);return M&&(c.unshift(M),M.parentId&&this._buildParentTree(M.parentId,c)),c}_updateDynamicRoutes(o){return o.forEach(c=>{c.link=this._resolvedRoutes[c.path]?this._resolvedRoutes[c.path]:c.path})}setBreadcrumbs(o){this._getActiveBreadcrumbs(o);const c=new CustomEvent("breadcrumbSetCrumbs",{bubbles:!0,detail:{separator:u.crumbSeparator,crumbs:this.activeBreadcrumbs}});setTimeout(()=>document.dispatchEvent(c),0)}_getActiveBreadcrumbs(o){this.activeBreadcrumbs=[];for(const c of this._breadcrumbs)if(this.activeBreadcrumbs.push(c),"/"+c.link===o)return}}return u.crumbSeparator=" / ",u.\u0275fac=function(o){return new(o||u)(r.LFG(I.F0))},u.\u0275prov=r.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),$s=(()=>{class u{}return u.\u0275fac=function(o){return new(o||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({providers:[Go],imports:[[_.ez]]}),u})(),dc=(()=>{class u{constructor(){this._passwordCharsList={uppercase:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",lowercase:"abcdefghijklmnopqrstuvwxyz",numbers:"0123456789",symbols:"!@#$%^&*()-_=+{}[];,.?~"}}generatePassword(o){const c=this._buildCharsSet(o);return this._generateRandomChars(c,o.length)}_buildCharsSet(o){let c="";return o.hasUppercase&&(c+=this._passwordCharsList.uppercase),o.hasLowercase&&(c+=this._passwordCharsList.lowercase),o.hasNumbers&&(c+=this._passwordCharsList.numbers),o.hasSymbols&&(c+=this._passwordCharsList.symbols),c}_generateRandomChars(o,c){let U,M="";for(;c>0;)U=Math.floor(Math.random()*o.length),M+=o.substring(U,U+1),c--;return M}}return u.\u0275fac=function(o){return new(o||u)},u.\u0275prov=r.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),zo=(()=>{class u{changeControlUpdateStrategy(o,c){Object.defineProperty(o,"updateOn",{get:()=>c,configurable:!0})}}return u.\u0275fac=function(o){return new(o||u)},u.\u0275prov=r.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),hc=(()=>{class u{constructor(o,c){this.ngControl=o,this.validationStrategyService=c}onFocus(){this.control.touched&&this.validationStrategyService.changeControlUpdateStrategy(this.control,this.control.errors?"change":"blur")}ngAfterViewInit(){this.control=this.ngControl.control}}return u.\u0275fac=function(o){return new(o||u)(r.Y36(ve.a5),r.Y36(zo))},u.\u0275dir=r.lG2({type:u,selectors:[["","cpValidationStrategy",""]],hostBindings:function(o,c){1&o&&r.NdJ("focus",function(){return c.onFocus()})}}),u})(),vl=(()=>{class u{}return u.\u0275fac=function(o){return new(o||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({providers:[zo],imports:[[_.ez]]}),u})(),Cl=(()=>{class u{constructor(o){this.locale=o,this.showInfoToggle=!0,this.toggleActionTitleExpand=o.maketext("Expand"),this.toggleActionTitleCollapse=o.maketext("Collapse")}toggleInfoBlock(){this.showInfoBlock=!this.showInfoBlock,this.updateToggleActionTitle(this.showInfoBlock)}ngOnInit(){if(!this.id)throw new Error("id must be defined for `cp-form-label`");this.labelID=`${this.id}_label`,this.infoIconID=`${this.id}_infoIcon`,this.infoBlockID=`${this.id}_infoBlock`,this.showInfoBlock=(!0===this.showInfoBlock||!1===this.showInfoBlock)&&this.showInfoBlock,this.updateToggleActionTitle(this.showInfoBlock)}updateToggleActionTitle(o){this.toggleActionTitle=o?this.toggleActionTitleCollapse:this.toggleActionTitleExpand}}return u.\u0275fac=function(o){return new(o||u)(r.Y36(Ye.g))},u.\u0275cmp=r.Xpm({type:u,selectors:[["cp-form-label"]],inputs:{id:"id",for:"for",showInfoBlock:"showInfoBlock",labelText:"labelText",showInfoToggle:"showInfoToggle"},ngContentSelectors:Bo,decls:4,vars:4,consts:[[1,"toggle-info-label-container"],[3,"innerHtml"],[4,"ngIf"],["href","javascript:void(0)",1,"text-primary","form-info-sign",3,"click"],["aria-hidden","true",1,"far","fa-question-circle","text-primary"],[1,"sr-only",3,"innerHtml"],["class","info-block",4,"ngIf"],[1,"info-block"]],template:function(o,c){1&o&&(r.F$t(),r.TgZ(0,"div",0),r._UZ(1,"label",1),r._uU(2," \xa0 "),r.YNc(3,Vo,5,4,"ng-container",2),r.qZA()),2&o&&(r.xp6(1),r.Q6J("innerHtml",c.labelText,r.oJD),r.uIk("id",c.labelID)("for",c.for),r.xp6(2),r.Q6J("ngIf",c.showInfoToggle))},directives:[_.O5],styles:["label[_ngcontent-%COMP%]{margin:0 0 5px}.info-block[_ngcontent-%COMP%]{color:#737373;display:block;margin:0 0 5px;font-weight:400;font-size:13px}"]}),u})(),bl=(()=>{class u{}return u.\u0275fac=function(o){return new(o||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({imports:[[_.ez,at.m]]}),u})();var Ds=(()=>{return(u=Ds||(Ds={})).warnings="warnings",u.danger="danger",u.info="info",u.default="info",Ds;var u})();let $d=(()=>{class u{constructor(){this.calloutType=Ds.default,this.closeable=!1,this.close=new r.vpe}closeClicked(){this.close.emit(null)}ngOnInit(){if(!this.id)throw new Error("id must be defined for `cp-callout`");this.buttonID=`${this.id}_button`,this.headingID=`${this.id}_heading`,this.contentID=`${this.id}_content`}ngAfterViewInit(){0===this.header.nativeElement.children.length&&this.header.nativeElement.classList.add("hidden")}}return u.\u0275fac=function(o){return new(o||u)},u.\u0275cmp=r.Xpm({type:u,selectors:[["cp-callout"]],viewQuery:function(o,c){if(1&o&&r.Gf(io,5),2&o){let M;r.iGM(M=r.CRH())&&(c.header=M.first)}},inputs:{id:"id",calloutType:"calloutType",closeable:"closeable"},outputs:{close:"close"},ngContentSelectors:Bs,decls:7,vars:7,consts:[["role","alert"],["type","button","class","close","aria-label","Close",3,"click",4,"ngIf"],[1,"callout-heading"],["header",""],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true",1,"fas","fa-sm","fa-times"]],template:function(o,c){1&o&&(r.F$t(ws),r.TgZ(0,"div",0),r.YNc(1,so,2,1,"button",1),r.TgZ(2,"div",2,3),r.Hsn(4),r.qZA(),r.TgZ(5,"div"),r.Hsn(6,1),r.qZA()()),2&o&&(r.Gre("callout callout-",c.calloutType,""),r.uIk("aria-label",c.calloutType),r.xp6(1),r.Q6J("ngIf",c.closeable),r.xp6(1),r.uIk("id",c.headingID),r.xp6(3),r.uIk("id",c.contentID))},directives:[_.O5],styles:['.callout[_ngcontent-%COMP%]{border-left-width:3px;border-left-style:solid;border-left-color:#eee;margin:15px 0;padding:15px}.callout-danger[_ngcontent-%COMP%]{background-color:#f2dede;border-left-color:#d03f00}.callout-success[_ngcontent-%COMP%]{background-color:#dff2d5;border-left-color:#83b655}.callout-warning[_ngcontent-%COMP%]{background-color:#fcf8e1;border-left-color:#f6c342}.callout-info[_ngcontent-%COMP%]{background-color:#d7edf9;border-left-color:#179bd7}.callout-heading[_ngcontent-%COMP%]{font-size:16px;margin-bottom:15px;font-family:inherit;font-weight:600;line-height:1.1;color:inherit;text-transform:capitalize}html[dir="rtl"][_nghost-%COMP%]   .callout[_ngcontent-%COMP%], html[dir="rtl"]   [_nghost-%COMP%]   .callout[_ngcontent-%COMP%]{border-left-width:0;border-left-style:none;border-left-color:transparent;border-right-width:3px;border-right-style:solid;border-right-color:#eee}html[dir="rtl"][_nghost-%COMP%]   .callout-danger[_ngcontent-%COMP%], html[dir="rtl"]   [_nghost-%COMP%]   .callout-danger[_ngcontent-%COMP%]{border-left-color:transparent;border-right-color:#d03f00}html[dir="rtl"][_nghost-%COMP%]   .callout-success[_ngcontent-%COMP%], html[dir="rtl"]   [_nghost-%COMP%]   .callout-success[_ngcontent-%COMP%]{border-left-color:transparent;border-right-color:#83b655}html[dir="rtl"][_nghost-%COMP%]   .callout-warning[_ngcontent-%COMP%], html[dir="rtl"]   [_nghost-%COMP%]   .callout-warning[_ngcontent-%COMP%]{border-left-color:transparent;border-right-color:#f6c342}html[dir="rtl"][_nghost-%COMP%]   .callout-info[_ngcontent-%COMP%], html[dir="rtl"]   [_nghost-%COMP%]   .callout-info[_ngcontent-%COMP%]{border-left-color:transparent;border-right-color:#179bd7}']}),u})(),lo=(()=>{class u{}return u.\u0275fac=function(o){return new(o||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({imports:[[_.ez]]}),u})(),Wo=(()=>{class u{constructor(){}hasErrors(){return this.control&&!this.control.valid}hasChanged(){return this.control&&(this.control.dirty||this.control.touched)}getFieldErrors(){return this.control?Object.keys(this.control.errors).map(o=>(this.control.errors[o].id=`${this.id}_${o}`,this.control.errors[o].key=o,this.control.errors[o])):[]}ngOnInit(){if(!this.id)throw new Error("id must be defined for `cp-validation-container`")}}return u.\u0275fac=function(o){return new(o||u)},u.\u0275cmp=r.Xpm({type:u,selectors:[["cp-validation-container"]],inputs:{control:"control",id:"id"},decls:1,vars:1,consts:[["class","validation-container",4,"ngIf"],[1,"validation-container"],["class","validation validation-error ng-hide",4,"ngFor","ngForOf"],[1,"validation","validation-error","ng-hide"],[1,"fas","fa-exclamation-circle"],[1,"validation-message",3,"innerHtml"]],template:function(o,c){1&o&&r.YNc(0,jo,2,1,"ul",0),2&o&&r.Q6J("ngIf",c.hasErrors()&&c.hasChanged())},directives:[_.O5,_.sg],styles:['.validation-container[_ngcontent-%COMP%]{background-color:#f8c9c4;border:1px solid #a94442;padding:5px;border-radius:2px;list-style:none;margin-bottom:0;margin-top:5px}.validation-error[_ngcontent-%COMP%]{position:relative;line-height:20px}.validation-error[_ngcontent-%COMP%] > .fas[_ngcontent-%COMP%]{color:#a94442;display:inline-block;position:absolute;top:4px}.validation-message[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;margin-left:20px}html[dir="rtl"][_nghost-%COMP%]   .validation-message[_ngcontent-%COMP%], html[dir="rtl"]   [_nghost-%COMP%]   .validation-message[_ngcontent-%COMP%]{margin-right:20px;margin-left:0}']}),u})(),co=(()=>{class u{}return u.\u0275fac=function(o){return new(o||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({imports:[[_.ez]]}),u})();var Ms=(()=>{return(u=Ms||(Ms={})).loading="loading",u.disabled="disabled",u.enabled="enabled",Ms;var u})();let gc=(()=>{class u{constructor(){this.click=new r.vpe,this.type="button",this.buttonClass="btn-primary",this.isDisabled=!1,this.showSpinner=!1}set buttonState(o){switch(o){case Ms.enabled:this.setToEnabled();break;case Ms.loading:this.setToLoading();break;case Ms.disabled:this.setToDisable()}}ngOnInit(){if(!this.id)throw new Error("id must be defined for `cp-action-button`")}onClick(o){o.stopPropagation(),this.click.emit()}setToLoading(){this.isDisabled=!0,this.showSpinner=!0}setToDisable(){this.isDisabled=!0}setToEnabled(){this.isDisabled=!1,this.showSpinner=!1}}return u.\u0275fac=function(o){return new(o||u)},u.\u0275cmp=r.Xpm({type:u,selectors:[["cp-action-button"]],inputs:{id:"id",type:"type",buttonClass:"buttonClass",buttonState:"buttonState"},outputs:{click:"click"},ngContentSelectors:Bo,decls:3,vars:8,consts:[[1,"btn","action-button",3,"id","type","ngClass","disabled","click"],[1,"fas","fa-sync","fa-spin",3,"id","ngStyle"]],template:function(o,c){1&o&&(r.F$t(),r.TgZ(0,"button",0),r.NdJ("click",function(U){return c.onClick(U)}),r._UZ(1,"i",1),r.Hsn(2),r.qZA()),2&o&&(r.MGl("id","",c.id,"-button"),r.s9C("type",c.type),r.Q6J("ngClass",c.buttonClass)("disabled",c.isDisabled),r.xp6(1),r.MGl("id","",c.id,"-spinner"),r.Q6J("ngStyle",r.VKq(6,js,c.showSpinner?"visible":"hidden")))},directives:[_.mk,_.PC],styles:['.action-button[_ngcontent-%COMP%]{padding:6px 26px 6px 12px}html[dir="rtl"][_nghost-%COMP%]   .action-button[_ngcontent-%COMP%], html[dir="rtl"]   [_nghost-%COMP%]   .action-button[_ngcontent-%COMP%]{padding:6px 12px 6px 26px}']}),u})(),mc=(()=>{class u{}return u.\u0275fac=function(o){return new(o||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({imports:[[_.ez]]}),u})();var Ir=(()=>{return(u=Ir||(Ir={})).new="new",u.closed="closed",u.open="open",Ir;var u})();let vc=(()=>{class u{constructor(o){this.locale=o,this.close=new r.vpe,this.toggleMore=new r.vpe,this.animationClass=Ir.new}ngOnInit(){if(this._showMore=!1,this._closed=!1,this.moreButtonID=this._buildID("btnMore",this.type,this.alert.id),this.closeButtonID=this._buildID("btnClose",this.type,this.alert.id),this.textMessageID=this._buildID("txtMessage",this.type,this.alert.id),this.textListID=this._buildID("txtList",this.type,this.alert.id),!this.label)switch(this.alert.type){case Kn.success:this.label=this.locale.maketext("Success:");break;case Kn.error:this.label=this.locale.maketext("Error:");break;case Kn.information:this.label=this.locale.maketext("Information:");break;case Kn.warning:this.label=this.locale.maketext("Warning:")}this.moreLabel||(this.moreLabel=this.locale.maketext("More")),this.closeLabel||(this.closeLabel=this.locale.maketext("Close")),setTimeout(()=>{this.animationClass=Ir.open},.25)}ngAfterViewInit(){this.willAutoClose&&this.startTimer()}get icon(){switch(this.alert.type){case Kn.error:return"type-icon fas fa-times-circle";case Kn.warning:return"type-icon fas fa-exclamation-triangle";case Kn.information:return"type-icon fas fa-info-circle";case Kn.success:return"type-icon fas fa-check-circle"}}get type(){switch(this.alert.type){case Kn.error:return"danger";case Kn.warning:return"warning";case Kn.information:return"info";case Kn.success:return"success"}}fireToggleMore(){this._showMore=!this._showMore,this.toggleMore.emit({alert:this.alert,showMore:this._showMore,component:this})}fireClose(){this._timeout&&this.clearTimer(),this.animationClass=Ir.closed,setTimeout(()=>{this.close.emit({alert:this.alert,component:this}),this._closed=!0},250)}fireTimeout(){this.fireClose(),this.clearTimer()}get hasLabel(){const o=this.label;return null!==o&&""!==o}get showCloseButton(){return this.alert.isClosable}get showMoreButton(){return this.alert.showMore&&this.toggleMore.observers.length>0}get message(){return this.alert.message}startTimer(){this._timeout=setTimeout(()=>this.fireTimeout(),this.autoClosePeriod)}clearTimer(){this._timeout&&(clearTimeout(this._timeout),this._timeout=null)}get willAutoClose(){return this.autoClosePeriod>0}get autoClosePeriod(){return this.alert.autoClosePeriod}get isClosed(){return this._closed}_buildID(...o){return o.join("_")}}return u.\u0275fac=function(o){return new(o||u)(r.Y36(Ye.g))},u.\u0275cmp=r.Xpm({type:u,selectors:[["cp-alert"]],inputs:{alert:"alert",label:"label",closeLabel:"closeLabel",moreLabel:"moreLabel"},outputs:{close:"close",toggleMore:"toggleMore"},decls:1,vars:1,consts:[["role","alert",3,"class",4,"ngIf"],["role","alert"],["type","button","class","close",3,"id","title","click",4,"ngIf"],["type","button","class","btn btn-more btn-link pull-right flip",3,"id","click",4,"ngIf"],[1,"alert-message"],["class","alert-title",4,"ngIf"],[1,"alert-body"],[3,"id",4,"ngIf"],["class","alert-list",4,"ngIf"],["type","button",1,"close",3,"id","title","click"],["type","button",1,"btn","btn-more","btn-link","pull-right","flip",3,"id","click"],[1,"alert-title"],[3,"id"],[1,"alert-list"],[4,"ngFor","ngForOf"]],template:function(o,c){1&o&&r.YNc(0,Ge,9,13,"div",0),2&o&&r.Q6J("ngIf",!c.isClosed)},directives:[_.O5,_.sg],styles:['.alert-danger[_ngcontent-%COMP%]{background-color:#f2dede;border:1px solid #d03f00}html[dir="ltr"][_nghost-%COMP%]   .alert-danger[_ngcontent-%COMP%], html[dir="ltr"]   [_nghost-%COMP%]   .alert-danger[_ngcontent-%COMP%]{box-shadow:inset 41px 0 #d03f00}html[dir="rtl"][_nghost-%COMP%]   .alert-danger[_ngcontent-%COMP%], html[dir="rtl"]   [_nghost-%COMP%]   .alert-danger[_ngcontent-%COMP%]{box-shadow:inset -41px 0 #d03f00}.alert-success[_ngcontent-%COMP%]{background-color:#dff2d5;border:1px solid #83b655}html[dir="ltr"][_nghost-%COMP%]   .alert-success[_ngcontent-%COMP%], html[dir="ltr"]   [_nghost-%COMP%]   .alert-success[_ngcontent-%COMP%]{box-shadow:inset 41px 0 #83b655}html[dir="rtl"][_nghost-%COMP%]   .alert-success[_ngcontent-%COMP%], html[dir="rtl"]   [_nghost-%COMP%]   .alert-success[_ngcontent-%COMP%]{box-shadow:inset -41px 0 #83b655}.alert-warning[_ngcontent-%COMP%]{background-color:#fcf8e1;border:1px solid #f6c342}html[dir="ltr"][_nghost-%COMP%]   .alert-warning[_ngcontent-%COMP%], html[dir="ltr"]   [_nghost-%COMP%]   .alert-warning[_ngcontent-%COMP%]{box-shadow:inset 41px 0 #f6c342}html[dir="rtl"][_nghost-%COMP%]   .alert-warning[_ngcontent-%COMP%], html[dir="rtl"]   [_nghost-%COMP%]   .alert-warning[_ngcontent-%COMP%]{box-shadow:inset -41px 0 #f6c342}.alert-info[_ngcontent-%COMP%]{background-color:#d7edf9;border:1px solid #179bd7}html[dir="ltr"][_nghost-%COMP%]   .alert-info[_ngcontent-%COMP%], html[dir="ltr"]   [_nghost-%COMP%]   .alert-info[_ngcontent-%COMP%]{box-shadow:inset 41px 0 #179bd7}html[dir="rtl"][_nghost-%COMP%]   .alert-info[_ngcontent-%COMP%], html[dir="rtl"]   [_nghost-%COMP%]   .alert-info[_ngcontent-%COMP%]{box-shadow:inset -41px 0 #179bd7}.alert[_ngcontent-%COMP%]{position:relative;border-radius:2px;padding:10px 30px 10px 50px}html[dir="rtl"][_nghost-%COMP%]   .alert[_ngcontent-%COMP%], html[dir="rtl"]   [_nghost-%COMP%]   .alert[_ngcontent-%COMP%]{padding:10px 50px 10px 30px}.alert-message[_ngcontent-%COMP%]{color:#333;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word}.alert-message[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:underline}.alert[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{top:-2px;position:relative;right:-21px}html[dir="rtl"][_nghost-%COMP%]   .alert[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%], html[dir="rtl"]   [_nghost-%COMP%]   .alert[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{left:-21px;right:auto}.alert[_ngcontent-%COMP%]   .type-icon[_ngcontent-%COMP%]{color:#f2dede;left:10px;position:absolute;-webkit-text-size-adjust:100%;text-size-adjust:100%;font-size:20px;line-height:20px;top:9px}html[dir="rtl"][_nghost-%COMP%]   .alert[_ngcontent-%COMP%]   .type-icon[_ngcontent-%COMP%], html[dir="rtl"]   [_nghost-%COMP%]   .alert[_ngcontent-%COMP%]   .type-icon[_ngcontent-%COMP%]{left:auto;right:10px}.alert[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{opacity:.5}.alert-success[_ngcontent-%COMP%]   .type-icon[_ngcontent-%COMP%]{color:#dff2d5}.alert-warning[_ngcontent-%COMP%]   .type-icon[_ngcontent-%COMP%]{color:#fcf8e1}.alert-info[_ngcontent-%COMP%]   .type-icon[_ngcontent-%COMP%]{color:#d7edf9}.alert[_ngcontent-%COMP%]   .alert-message[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin-bottom:0;padding:0 30px}.alert-warning[_ngcontent-%COMP%]   .alert-message[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{color:#8a6d3b}.alert-warning[_ngcontent-%COMP%]   .alert-message[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#333}.alert-success[_ngcontent-%COMP%]   .alert-message[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{color:#3c763d}.alert-success[_ngcontent-%COMP%]   .alert-message[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#333}.alert-info[_ngcontent-%COMP%]   .alert-message[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{color:#31708f}.alert-info[_ngcontent-%COMP%]   .alert-message[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#333}.alert-danger[_ngcontent-%COMP%]   .alert-message[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{color:#a94442}.alert-danger[_ngcontent-%COMP%]   .alert-message[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#333}.alert[_ngcontent-%COMP%]   .btn-more[_ngcontent-%COMP%]{padding:0;margin:0;line-height:1em;text-transform:none;color:#255783}'],data:{animation:[(0,Be.X$)("openClose",[(0,Be.SB)(Ir.new,(0,Be.oB)({opacity:0})),(0,Be.SB)(Ir.open,(0,Be.oB)({opacity:1})),(0,Be.SB)(Ir.closed,(0,Be.oB)({opacity:0,transform:"translateX(25%)"})),(0,Be.eR)(`${Ir.open} => ${Ir.closed}`,[(0,Be.jt)("0.25s")]),(0,Be.eR)(`${Ir.new} => ${Ir.open}`,[(0,Be.jt)("0.25s")]),(0,Be.eR)(`${Ir.closed} => ${Ir.open}`,[(0,Be.jt)("0.25s")])])]}}),u})(),Ba=(()=>{class u{}return u.\u0275fac=function(o){return new(o||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({imports:[[_.ez,Js,at.m]]}),u})(),uo=(()=>{class u{constructor(o){this.locale=o}get position(){return this.locale.isLtr?Hd:yl}}return u.\u0275fac=function(o){return new(o||u)(r.LFG(Ye.g))},u.\u0275prov=r.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),Cc=(()=>{class u{constructor(o,c){this._alertService=o,this._positionService=c,this.alerts=this.alerts?this.alerts:[]}set position(o){this._position=((u,l=Pi.topRight)=>{if(u){const o=(u=>{const l=Object.keys(Pi),c=Object.values(Pi).indexOf(u);return-1!==c?l[c]:(console.warn("Invalid alertList.position set. It must be one of: top-left, top-middle, top-right, bottom-left, bottom-middle, bottom-right, middle-left, middle-middle, middle-right"),null)})(u);if(o)return Pi[o]}return l})(o)}get position(){return this._position.toString()}alertClosed(o){this._alertService.removeById(o.id,this.group)}ngOnInit(){this.group||(this.group=$o.defaultGroup),this._position||(this._position=this._positionService.position),this._alertService.list(this.group).forEach(c=>this._addAlert(c)),this._groupEvents=this._alertService.alertEvents.pipe((0,ne.h)(c=>c.group===this.group)),this._eventSubscription=this._groupEvents.subscribe({next:this._onAlertEvent.bind(this),error:console.error})}ngOnDestroy(){this._eventSubscription.unsubscribe()}_findAlertIndexById(o){return this.alerts.findIndex(c=>c.id===o)}_addAlert(o){return this.alerts.push(o),this.alerts}_removeAlert(o){const c=this._findAlertIndexById(o.id);return c>-1&&(this.alerts.splice(c,1),!0)}_clearAlerts(){this.alerts.splice(0,this.alerts.length)}_onAlertEvent(o){switch(o.type){case zr.add:this._addAlert(o.alert);break;case zr.clear:this._clearAlerts();break;case zr.remove:this._removeAlert(o.alert)}}get hasAlerts(){return this.alerts.length>0}get positionClasses(){return this.inline?u.positionPrefix+Pi.inline.toString():u.positionPrefix+this.position.toString()}}return u.positionPrefix="position-",u.\u0275fac=function(o){return new(o||u)(r.Y36($o),r.Y36(uo))},u.\u0275cmp=r.Xpm({type:u,selectors:[["cp-alert-list"]],inputs:{alerts:"alerts",group:"group",inline:"inline",position:"position"},decls:7,vars:3,consts:[[1,"alert-list-container",3,"ngClass"],["container",""],[1,"alert-list"],["list",""],["class","alert-container",4,"ngFor","ngForOf"],["class","alert-list-backdrop",3,"ngClass",4,"ngIf"],[1,"alert-container"],[3,"alert","close"],[1,"alert-list-backdrop",3,"ngClass"]],template:function(o,c){1&o&&(r.TgZ(0,"div")(1,"div",0,1)(3,"div",2,3),r.YNc(5,Mt,2,1,"div",4),r.qZA()(),r.YNc(6,Cn,1,1,"div",5),r.qZA()),2&o&&(r.xp6(1),r.Q6J("ngClass",c.positionClasses),r.xp6(4),r.Q6J("ngForOf",c.alerts),r.xp6(1),r.Q6J("ngIf",c.hasAlerts))},directives:[vc,_.mk,_.sg,_.O5],styles:[".alert-list-container.position-inline[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-top:0;margin-bottom:5px}@media (min-width: 768px){.alert-list-container.position-inline[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-bottom:10px}}.alert-list-container.position-top-left[_ngcontent-%COMP%]{position:fixed;z-index:900;min-width:25%;max-width:100%;padding-left:1px;padding-right:1px;left:0}@media (max-width: 768px){.whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-top-left[_ngcontent-%COMP%], .whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-top-left[_ngcontent-%COMP%]{max-width:calc(100% - 218px)}}@media (max-width: 768px){.cpanel[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-top-left[_ngcontent-%COMP%], .cpanel   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-top-left[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}}.alert-list-container.position-top-left.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-top-left[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.alert-list-container.position-top-left[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{max-width:500px}}.alert-list-container.position-top-left.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.whostmgr[_nghost-%COMP%]   .alert-list-container.position-top-left[_ngcontent-%COMP%], .whostmgr   [_nghost-%COMP%]   .alert-list-container.position-top-left[_ngcontent-%COMP%]{top:70px}.cpanel[_nghost-%COMP%]   .alert-list-container.position-top-left[_ngcontent-%COMP%], .cpanel   [_nghost-%COMP%]   .alert-list-container.position-top-left[_ngcontent-%COMP%]{top:30px}.webmail[_nghost-%COMP%]   .alert-list-container.position-top-left[_ngcontent-%COMP%], .webmail   [_nghost-%COMP%]   .alert-list-container.position-top-left[_ngcontent-%COMP%]{top:52px}@media (min-width: 768px){.whostmgr[_nghost-%COMP%]   .alert-list-container.position-top-left[_ngcontent-%COMP%], .whostmgr   [_nghost-%COMP%]   .alert-list-container.position-top-left[_ngcontent-%COMP%]{top:120px}.cpanel[_nghost-%COMP%]   .alert-list-container.position-top-left[_ngcontent-%COMP%], .cpanel   [_nghost-%COMP%]   .alert-list-container.position-top-left[_ngcontent-%COMP%]{top:52px}}@media (max-width: 667px){.webmail[_nghost-%COMP%]   .alert-list-container.position-top-left[_ngcontent-%COMP%], .webmail   [_nghost-%COMP%]   .alert-list-container.position-top-left[_ngcontent-%COMP%]{top:30px}}.alert-list-container.position-top-left[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-top:2px;margin-bottom:0}@media (min-width: 768px){.alert-list-container.position-top-left[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-top:10px}}.alert-list-container.position-top-left.show-scroll-bar[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{margin-bottom:2px}@media (min-width: 768px){.alert-list-container.position-top-left.show-scroll-bar[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{margin-bottom:10px}}@media (min-width: 768px){.alert-list-container.position-top-left[_ngcontent-%COMP%]{padding-left:10px;padding-right:0}}.alert-list-container.position-top-middle[_ngcontent-%COMP%]{position:fixed;z-index:900;min-width:25%;max-width:100%;padding-left:1px;padding-right:1px;left:50%;transform:translate(-50%)}@media (max-width: 768px){.whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-top-middle[_ngcontent-%COMP%], .whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-top-middle[_ngcontent-%COMP%]{max-width:calc(100% - 218px)}}@media (max-width: 768px){.cpanel[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-top-middle[_ngcontent-%COMP%], .cpanel   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-top-middle[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}}.alert-list-container.position-top-middle.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-top-middle[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.alert-list-container.position-top-middle[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{max-width:500px}}.alert-list-container.position-top-middle.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.whostmgr[_nghost-%COMP%]   .alert-list-container.position-top-middle[_ngcontent-%COMP%], .whostmgr   [_nghost-%COMP%]   .alert-list-container.position-top-middle[_ngcontent-%COMP%]{top:70px}.cpanel[_nghost-%COMP%]   .alert-list-container.position-top-middle[_ngcontent-%COMP%], .cpanel   [_nghost-%COMP%]   .alert-list-container.position-top-middle[_ngcontent-%COMP%]{top:30px}.webmail[_nghost-%COMP%]   .alert-list-container.position-top-middle[_ngcontent-%COMP%], .webmail   [_nghost-%COMP%]   .alert-list-container.position-top-middle[_ngcontent-%COMP%]{top:52px}@media (min-width: 768px){.whostmgr[_nghost-%COMP%]   .alert-list-container.position-top-middle[_ngcontent-%COMP%], .whostmgr   [_nghost-%COMP%]   .alert-list-container.position-top-middle[_ngcontent-%COMP%]{top:120px}.cpanel[_nghost-%COMP%]   .alert-list-container.position-top-middle[_ngcontent-%COMP%], .cpanel   [_nghost-%COMP%]   .alert-list-container.position-top-middle[_ngcontent-%COMP%]{top:52px}}@media (max-width: 667px){.webmail[_nghost-%COMP%]   .alert-list-container.position-top-middle[_ngcontent-%COMP%], .webmail   [_nghost-%COMP%]   .alert-list-container.position-top-middle[_ngcontent-%COMP%]{top:30px}}.alert-list-container.position-top-middle[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-top:2px;margin-bottom:0}@media (min-width: 768px){.alert-list-container.position-top-middle[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-top:10px}}.alert-list-container.position-top-middle.show-scroll-bar[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{margin-bottom:2px}@media (min-width: 768px){.alert-list-container.position-top-middle.show-scroll-bar[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{margin-bottom:10px}}@media (min-width: 768px){.alert-list-container.position-top-middle[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}.alert-list-container.position-top-right[_ngcontent-%COMP%]{position:fixed;z-index:900;min-width:25%;max-width:100%;padding-left:1px;padding-right:1px;right:0}@media (max-width: 768px){.whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-top-right[_ngcontent-%COMP%], .whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-top-right[_ngcontent-%COMP%]{max-width:calc(100% - 218px)}}@media (max-width: 768px){.cpanel[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-top-right[_ngcontent-%COMP%], .cpanel   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-top-right[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}}.alert-list-container.position-top-right.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-top-right[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.alert-list-container.position-top-right[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{max-width:500px}}.alert-list-container.position-top-right.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.whostmgr[_nghost-%COMP%]   .alert-list-container.position-top-right[_ngcontent-%COMP%], .whostmgr   [_nghost-%COMP%]   .alert-list-container.position-top-right[_ngcontent-%COMP%]{top:70px}.cpanel[_nghost-%COMP%]   .alert-list-container.position-top-right[_ngcontent-%COMP%], .cpanel   [_nghost-%COMP%]   .alert-list-container.position-top-right[_ngcontent-%COMP%]{top:30px}.webmail[_nghost-%COMP%]   .alert-list-container.position-top-right[_ngcontent-%COMP%], .webmail   [_nghost-%COMP%]   .alert-list-container.position-top-right[_ngcontent-%COMP%]{top:52px}@media (min-width: 768px){.whostmgr[_nghost-%COMP%]   .alert-list-container.position-top-right[_ngcontent-%COMP%], .whostmgr   [_nghost-%COMP%]   .alert-list-container.position-top-right[_ngcontent-%COMP%]{top:120px}.cpanel[_nghost-%COMP%]   .alert-list-container.position-top-right[_ngcontent-%COMP%], .cpanel   [_nghost-%COMP%]   .alert-list-container.position-top-right[_ngcontent-%COMP%]{top:52px}}@media (max-width: 667px){.webmail[_nghost-%COMP%]   .alert-list-container.position-top-right[_ngcontent-%COMP%], .webmail   [_nghost-%COMP%]   .alert-list-container.position-top-right[_ngcontent-%COMP%]{top:30px}}.alert-list-container.position-top-right[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-top:2px;margin-bottom:0}@media (min-width: 768px){.alert-list-container.position-top-right[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-top:10px}}.alert-list-container.position-top-right.show-scroll-bar[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{margin-bottom:2px}@media (min-width: 768px){.alert-list-container.position-top-right.show-scroll-bar[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{margin-bottom:10px}}@media (min-width: 768px){.alert-list-container.position-top-right[_ngcontent-%COMP%]{padding-left:0;padding-right:10px}}.alert-list-container.position-middle-left[_ngcontent-%COMP%]{position:fixed;z-index:900;min-width:25%;max-width:100%;padding-left:1px;padding-right:1px;top:50%;transform:translateY(-50%);left:0}@media (max-width: 768px){.whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-middle-left[_ngcontent-%COMP%], .whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-middle-left[_ngcontent-%COMP%]{max-width:calc(100% - 218px)}}@media (max-width: 768px){.cpanel[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-middle-left[_ngcontent-%COMP%], .cpanel   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-middle-left[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}}.alert-list-container.position-middle-left.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-middle-left[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.alert-list-container.position-middle-left[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{max-width:500px}}.alert-list-container.position-middle-left.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-middle-left[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-top:1px;margin-bottom:1px}@media (min-width: 768px){.alert-list-container.position-middle-left[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-bottom:5px;margin-top:5px}}@media (min-width: 768px){.alert-list-container.position-middle-left[_ngcontent-%COMP%]{padding-left:10px;padding-right:0}}.alert-list-backdrop.position-middle-middle[_ngcontent-%COMP%]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:899;overflow:hidden;outline:0;background-color:#000;opacity:.5}.alert-list-container.position-middle-middle[_ngcontent-%COMP%]{position:fixed;z-index:900;min-width:25%;max-width:100%;padding-left:1px;padding-right:1px;top:50%;transform:translateY(-50%);left:50%;transform:translate(-50%)}@media (max-width: 768px){.whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-middle-middle[_ngcontent-%COMP%], .whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-middle-middle[_ngcontent-%COMP%]{max-width:calc(100% - 218px)}}@media (max-width: 768px){.cpanel[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-middle-middle[_ngcontent-%COMP%], .cpanel   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-middle-middle[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}}.alert-list-container.position-middle-middle.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-middle-middle[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.alert-list-container.position-middle-middle[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{max-width:500px}}.alert-list-container.position-middle-middle.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-middle-middle[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-top:1px;margin-bottom:1px}@media (min-width: 768px){.alert-list-container.position-middle-middle[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-bottom:5px;margin-top:5px}}@media (min-width: 768px){.alert-list-container.position-middle-middle[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}.alert-list-container.position-middle-right[_ngcontent-%COMP%]{position:fixed;z-index:900;min-width:25%;max-width:100%;padding-left:1px;padding-right:1px;top:50%;transform:translateY(-50%);right:0}@media (max-width: 768px){.whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-middle-right[_ngcontent-%COMP%], .whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-middle-right[_ngcontent-%COMP%]{max-width:calc(100% - 218px)}}@media (max-width: 768px){.cpanel[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-middle-right[_ngcontent-%COMP%], .cpanel   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-middle-right[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}}.alert-list-container.position-middle-right.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-middle-right[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.alert-list-container.position-middle-right[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{max-width:500px}}.alert-list-container.position-middle-right.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-middle-right[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-top:1px;margin-bottom:1px}@media (min-width: 768px){.alert-list-container.position-middle-right[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-bottom:5px;margin-top:5px}}@media (min-width: 768px){.alert-list-container.position-middle-right[_ngcontent-%COMP%]{padding-left:0;padding-right:10px}}.alert-list-container.position-bottom-left[_ngcontent-%COMP%]{position:fixed;z-index:900;min-width:25%;max-width:100%;padding-left:1px;padding-right:1px;bottom:0;left:0}@media (max-width: 768px){.whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-bottom-left[_ngcontent-%COMP%], .whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-bottom-left[_ngcontent-%COMP%]{max-width:calc(100% - 218px)}}@media (max-width: 768px){.cpanel[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-bottom-left[_ngcontent-%COMP%], .cpanel   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-bottom-left[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}}.alert-list-container.position-bottom-left.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-bottom-left[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.alert-list-container.position-bottom-left[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{max-width:500px}}.alert-list-container.position-bottom-left.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-bottom-left[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-top:0;margin-bottom:2px}@media (min-width: 768px){.alert-list-container.position-bottom-left[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-bottom:10px}}.alert-list-container.position-bottom-left.show-scroll-bar[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{margin-top:2px}@media (min-width: 768px){.alert-list-container.position-bottom-left.show-scroll-bar[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{margin-top:10px}}@media (min-width: 768px){.alert-list-container.position-bottom-left[_ngcontent-%COMP%]{padding-left:10px;padding-right:0}}.alert-list-container.position-bottom-middle[_ngcontent-%COMP%]{position:fixed;z-index:900;min-width:25%;max-width:100%;padding-left:1px;padding-right:1px;bottom:0;left:50%;transform:translate(-50%)}@media (max-width: 768px){.whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-bottom-middle[_ngcontent-%COMP%], .whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-bottom-middle[_ngcontent-%COMP%]{max-width:calc(100% - 218px)}}@media (max-width: 768px){.cpanel[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-bottom-middle[_ngcontent-%COMP%], .cpanel   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-bottom-middle[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}}.alert-list-container.position-bottom-middle.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-bottom-middle[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.alert-list-container.position-bottom-middle[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{max-width:500px}}.alert-list-container.position-bottom-middle.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-bottom-middle[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-top:0;margin-bottom:2px}@media (min-width: 768px){.alert-list-container.position-bottom-middle[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-bottom:10px}}.alert-list-container.position-bottom-middle.show-scroll-bar[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{margin-top:2px}@media (min-width: 768px){.alert-list-container.position-bottom-middle.show-scroll-bar[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{margin-top:10px}}@media (min-width: 768px){.alert-list-container.position-bottom-middle[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}.alert-list-container.position-bottom-right[_ngcontent-%COMP%]{position:fixed;z-index:900;min-width:25%;max-width:100%;padding-left:1px;padding-right:1px;bottom:0;right:0}@media (max-width: 768px){.whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-bottom-right[_ngcontent-%COMP%], .whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-bottom-right[_ngcontent-%COMP%]{max-width:calc(100% - 218px)}}@media (max-width: 768px){.cpanel[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-bottom-right[_ngcontent-%COMP%], .cpanel   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container.position-bottom-right[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}}.alert-list-container.position-bottom-right[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.alert-list-container.position-bottom-right[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{max-width:500px}}.alert-list-container.position-bottom-right.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-bottom-right[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-top:0;margin-bottom:2px}@media (min-width: 768px){.alert-list-container.position-bottom-right[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{margin-bottom:10px}}.alert-list-container.position-bottom-right.show-scroll-bar[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{margin-top:2px}@media (min-width: 768px){.alert-list-container.position-bottom-right.show-scroll-bar[_ngcontent-%COMP%]   .alert-list[_ngcontent-%COMP%]{margin-top:10px}}@media (min-width: 768px){.alert-list-container.position-bottom-right[_ngcontent-%COMP%]{padding-left:0;padding-right:10px}}@media (max-width: 768px){.whostmgr.nav-collapsed[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.nav-collapsed   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .webmail[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .webmail   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline){position:fixed;z-index:900;min-width:25%;padding-left:1px;padding-right:1px;bottom:auto;right:auto;left:0;top:0;transform:none;max-width:100%;min-width:100%;width:100%}.whostmgr.nav-collapsed[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert-list[_ngcontent-%COMP%], .whostmgr.nav-collapsed   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert-list[_ngcontent-%COMP%], .whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert-list[_ngcontent-%COMP%], .whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert-list[_ngcontent-%COMP%], .cpanel[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert-list[_ngcontent-%COMP%], .cpanel   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert-list[_ngcontent-%COMP%], .webmail[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert-list[_ngcontent-%COMP%], .webmail   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert-list[_ngcontent-%COMP%]{width:100%}.whostmgr.nav-collapsed[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline).show-scroll-bar, .whostmgr.nav-collapsed   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline).show-scroll-bar, .whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline).show-scroll-bar, .whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline).show-scroll-bar, .cpanel[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline).show-scroll-bar, .cpanel   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline).show-scroll-bar, .webmail[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline).show-scroll-bar, .webmail   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline).show-scroll-bar{overflow-y:scroll}.whostmgr.nav-collapsed[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert[_ngcontent-%COMP%], .whostmgr.nav-collapsed   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert[_ngcontent-%COMP%], .whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert[_ngcontent-%COMP%], .whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert[_ngcontent-%COMP%], .cpanel[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert[_ngcontent-%COMP%], .cpanel   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert[_ngcontent-%COMP%], .webmail[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert[_ngcontent-%COMP%], .webmail   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert[_ngcontent-%COMP%]{margin-bottom:5px}}@media (max-width: 768px) and (max-width: 768px){.whostmgr.whostmgr.nav-collapsed[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.whostmgr.nav-collapsed   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr   .whostmgr.nav-collapsed[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr   .whostmgr.nav-collapsed   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.nav-collapsed   .whostmgr[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.nav-collapsed   .whostmgr   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr   .whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr   .whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr   .whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr   .whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.cpanel[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.cpanel   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr   .cpanel[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr   .cpanel   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel   .whostmgr[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel   .whostmgr   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.webmail[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.webmail   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr   .webmail[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr   .webmail   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .webmail   .whostmgr[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .webmail   .whostmgr   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline){max-width:calc(100% - 218px)}}@media (max-width: 768px) and (max-width: 768px){.cpanel.whostmgr.nav-collapsed[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel.whostmgr.nav-collapsed   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel   .whostmgr.nav-collapsed[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel   .whostmgr.nav-collapsed   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.nav-collapsed   .cpanel[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.nav-collapsed   .cpanel   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel.whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel.whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel   .whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel   .whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr   .cpanel[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr   .cpanel   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel.cpanel[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel.cpanel   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel   .cpanel[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel   .cpanel   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel   .cpanel[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel   .cpanel   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel.webmail[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel.webmail   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel   .webmail[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel   .webmail   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .webmail   .cpanel[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .webmail   .cpanel   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline){max-width:calc(100% - 50px)}}@media (max-width: 768px) and (min-width: 768px){.whostmgr.nav-collapsed[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert-list[_ngcontent-%COMP%], .whostmgr.nav-collapsed   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert-list[_ngcontent-%COMP%], .whostmgr[_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert-list[_ngcontent-%COMP%], .whostmgr   [_nghost-%COMP%]:not(.nav-collapsed)   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert-list[_ngcontent-%COMP%], .cpanel[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert-list[_ngcontent-%COMP%], .cpanel   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert-list[_ngcontent-%COMP%], .webmail[_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert-list[_ngcontent-%COMP%], .webmail   [_nghost-%COMP%]   .alert-list-container[_ngcontent-%COMP%]:not(.position-inline)   .alert-list[_ngcontent-%COMP%]{max-width:500px}}"]}),u})(),bc=(()=>{class u{}return u.\u0275fac=function(o){return new(o||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({imports:[[_.ez,Ba]]}),u})(),wc=(()=>{class u{constructor(o){this.locale=o,this.autofocus=!1,this.debounce=250,this.disabled=!1,this.label="Search",this.placeholder="Search",this.valueChange=new r.vpe,this._searchSubject=new V.xQ,this._unsubscribe=new V.xQ,delete this.label,delete this.placeholder}set value(o){this._value=o,this._searchSubject.next(o)}get value(){return this._value}ngOnInit(){if(!this.id)throw new Error("id must be defined for `cp-search`");this.clearIconLabel=this.locale.maketext("Clear Input"),this.label||(this.label=this.locale.maketext("Search")),this.placeholder||(this.placeholder=this.locale.maketext("Search")),this._searchSubject.pipe((0,re.R)(this._unsubscribe),(0,Oe.b)(this.debounce),function x(u,l){return o=>o.lift(new H(u,l))}()).subscribe(o=>{this.valueChange.emit(o)})}ngAfterViewInit(){this.autofocus&&this.searchInput.nativeElement.focus()}ngOnDestroy(){this._unsubscribe.next(),this._unsubscribe.complete()}clearValue(){this.value=""}}return u.\u0275fac=function(o){return new(o||u)(r.Y36(Ye.g))},u.\u0275cmp=r.Xpm({type:u,selectors:[["cp-search"]],viewQuery:function(o,c){if(1&o&&r.Gf(qt,5),2&o){let M;r.iGM(M=r.CRH())&&(c.searchInput=M.first)}},inputs:{autofocus:"autofocus",debounce:"debounce",disabled:"disabled",id:"id",label:"label",placeholder:"placeholder",list:"list",value:"value"},outputs:{valueChange:"valueChange"},decls:6,vars:11,consts:[["role","search",1,"input-group"],["data-test","input","type","search",1,"form-control",3,"ngModel","disabled","id","placeholder","title","ngModelChange","keyup.esc"],["searchInput",""],["data-test","addon",1,"input-group-addon",3,"id","click"],["aria-hidden","true","data-test","icon",3,"ngClass","id"],["class","sr-only",4,"ngIf"],[1,"sr-only"]],template:function(o,c){1&o&&(r.TgZ(0,"div",0)(1,"input",1,2),r.NdJ("ngModelChange",function(U){return c.value=U})("keyup.esc",function(){return c.clearValue()}),r.qZA(),r.TgZ(3,"span",3),r.NdJ("click",function(){return c.clearValue()}),r._UZ(4,"span",4),r.YNc(5,jn,2,1,"span",5),r.qZA()()),2&o&&(r.xp6(1),r.MGl("id","",c.id,"-search-input"),r.Q6J("ngModel",c.value)("disabled",c.disabled)("placeholder",c.placeholder)("title",c.label),r.uIk("aria-label",c.label)("list",c.list),r.xp6(2),r.MGl("id","",c.id,"-search-input-addon"),r.xp6(1),r.MGl("id","",c.id,"-search-input-icon"),r.Q6J("ngClass",(null==c.value?null:c.value.length)>0?"fas fa-times":"fas fa-search"),r.xp6(1),r.Q6J("ngIf",(null==c.value?null:c.value.length)>0))},directives:[ve.Fj,ve.JJ,ve.On,_.mk,_.O5],styles:[""],changeDetection:0}),u})(),Zo=(()=>{class u{}return u.\u0275fac=function(o){return new(o||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({imports:[[_.ez,ve.u5,at.m]]}),u})(),ho=(()=>{class u{constructor(o){this.locale=o,this.showUpgradeLink=!1,this.displayLimit=!1,this.usedValue=0,this.showWarningDetails=!1,this.showDetailsClick=new r.vpe,this.showDetails=!1}ngOnInit(){if(!this.id)throw new Error("'id' must be defined for `cp-stats`");if(this.showUpgradeLink){if(!this.upgradeLink)throw new Error("'upgradeLink' must be defined");this.upgradeLinkTarget||(this.upgradeLinkTarget="_blank")}this.displayLimit?(this.limitTitle||(this.limitTitle=this.locale.maketext("Max")),!this.limitValue&&0!==this.limitValue&&(this.limitValue="\u221e")):(this.availableTitle||(this.availableTitle=this.locale.maketext("Available")),!this.availableValue&&0!==this.availableValue&&(this.availableValue="\u221e")),this.usedTitle||(this.usedTitle=this.locale.maketext("Used")),this.displayDetailsCheck()}showWarningDetailsClick(){this.showDetailsClick.emit()}get showWarningCss(){return this.showDetails?"stats-warning":""}ngOnChanges(){this.usedValue&&this.displayDetailsCheck()}displayDetailsCheck(){!this.showWarningDetails||this.limitValue!==this.usedValue&&0!==this.availableValue?this.showDetails=!1:(this.showDetails=!0,this.viewDetailsText=this.locale.maketext("Details"),this.detailsTooltip=this.locale.maketext("View Warning Details"))}}return u.\u0275fac=function(o){return new(o||u)(r.Y36(Ye.g))},u.\u0275cmp=r.Xpm({type:u,selectors:[["cp-stats"]],inputs:{showUpgradeLink:"showUpgradeLink",upgradeLink:"upgradeLink",upgradeLinkTarget:"upgradeLinkTarget",id:"id",displayLimit:"displayLimit",limitValue:"limitValue",limitTitle:"limitTitle",availableValue:"availableValue",availableTitle:"availableTitle",usedTitle:"usedTitle",usedValue:"usedValue",showWarningDetails:"showWarningDetails"},outputs:{showDetailsClick:"showDetailsClick"},features:[r.TTD],decls:11,vars:8,consts:[[1,"stats-widget",3,"id","ngClass"],[1,"stats-widget-body"],[4,"ngIf","ngIfElse"],["showAvailable",""],[1,"stats-item"],[1,"stats-huge",3,"id"],[1,"stats-title"],["class","stats-widget-footer",4,"ngIf"],[1,"stats-widget-footer"],["class","btn btn-sm btn-link",3,"id","title","click",4,"ngIf"],["class","btn btn-sm btn-link",3,"id","href","target","title",4,"ngIf"],[1,"btn","btn-sm","btn-link",3,"id","title","click"],["aria-hidden","true",1,"fas","fa-exclamation-triangle"],[1,"btn","btn-sm","btn-link",3,"id","href","target","title"],["aria-hidden","true",1,"far","fa-arrow-alt-circle-right"]],template:function(o,c){if(1&o&&(r.TgZ(0,"div",0)(1,"div",1),r.YNc(2,Rn,6,3,"div",2),r.YNc(3,Us,5,3,"ng-template",null,3,r.W1O),r.TgZ(5,"div",4)(6,"span",5),r._uU(7),r.qZA(),r.TgZ(8,"span",6),r._uU(9),r.qZA()()(),r.YNc(10,Ho,3,2,"div",7),r.qZA()),2&o){const M=r.MAs(4);r.MGl("id","",c.id,"-stats"),r.Q6J("ngClass",c.showWarningCss),r.xp6(2),r.Q6J("ngIf",c.displayLimit)("ngIfElse",M),r.xp6(4),r.MGl("id","",c.id,"-used"),r.xp6(1),r.Oqu(c.usedValue),r.xp6(2),r.Oqu(c.usedTitle),r.xp6(1),r.Q6J("ngIf",c.showUpgradeLink||c.showDetails)}},directives:[_.mk,_.O5],styles:['.stats-widget[_ngcontent-%COMP%]{background:#f5f5f5;border:1px solid #dddddd;border-radius:4px}.stats-widget[_ngcontent-%COMP%]   .stats-huge[_ngcontent-%COMP%]{font-size:24px;line-height:1.4;text-align:center}.stats-widget[_ngcontent-%COMP%]   .stats-title[_ngcontent-%COMP%]{text-align:center;padding-left:4px}.stats-widget   html[dir="rtl"][_nghost-%COMP%]   .stats-title[_ngcontent-%COMP%], html[dir="rtl"]   [_nghost-%COMP%]   .stats-title[_ngcontent-%COMP%]{padding-right:4px}.stats-widget[_ngcontent-%COMP%]   .stats-warning[_ngcontent-%COMP%]{background-color:#fcf8e1;border:1px solid #f6c342}.stats-widget[_ngcontent-%COMP%]   .stats-widget-body[_ngcontent-%COMP%]{display:flex;justify-content:space-around;flex-wrap:wrap}.stats-widget[_ngcontent-%COMP%]   .stats-widget-body[_ngcontent-%COMP%]   .stats-item[_ngcontent-%COMP%]{margin:10px 0}.stats-widget[_ngcontent-%COMP%]   .stats-widget-footer[_ngcontent-%COMP%]{border-top:1px solid #dddddd;display:flex;width:100%}.stats-widget[_ngcontent-%COMP%]   .stats-widget-footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{flex-basis:100%}.stats-widget   html[dir="ltr"][_nghost-%COMP%]   .stats-widget-footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:not(:first-child), html[dir="ltr"]   [_nghost-%COMP%]   .stats-widget-footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:not(:first-child){border-left:1px solid #dddddd}.stats-widget   html[dir="rtl"][_nghost-%COMP%]   .stats-widget-footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:not(:first-child), html[dir="rtl"]   [_nghost-%COMP%]   .stats-widget-footer[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:not(:first-child){border-right:1px solid #dddddd}html[data-style="dark"][_nghost-%COMP%]   .stats-widget[_ngcontent-%COMP%], html[data-style="dark"]   [_nghost-%COMP%]   .stats-widget[_ngcontent-%COMP%]{background-color:#222;margin-top:20px;box-shadow:none;border:1px solid #1d1d1d;border-radius:3px}html[data-style="dark"][_nghost-%COMP%]   .stats-widget[_ngcontent-%COMP%]   .stats-widget-footer[_ngcontent-%COMP%], html[data-style="dark"]   [_nghost-%COMP%]   .stats-widget[_ngcontent-%COMP%]   .stats-widget-footer[_ngcontent-%COMP%]{border-top:1px solid #1d1d1d}']}),u})(),El=(()=>{class u{}return u.\u0275fac=function(o){return new(o||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({imports:[[_.ez,at.m]]}),u})(),fo=(()=>{class u{hasErrors(){return this.control.invalid}hasChanged(){return this.control.dirty||this.control.touched}hasValidators(){return!!this.control?.validator||!!this.control?.asyncValidator}getFieldErrors(){return Object.keys(this.control.errors).map(o=>({key:o,message:this.control.errors[o].message}))}getFieldStateClasses(){return this.hasValidators()&&this.hasChanged()?this.hasErrors()?"has-error":"has-success":""}infoBlockStatus(){return this.cpFormLabelElement.showInfoBlock}setInfoBlockStatus(o){this.cpFormLabelElement.showInfoBlock=o}ngOnInit(){this.id=`formField_${this.idPrefix}`,this.labelID=`${this.id}_formLabel`,this.validationContainerID=`${this.id}_validationContainer`}}return u.\u0275fac=function(o){return new(o||u)},u.\u0275cmp=r.Xpm({type:u,selectors:[["cp-form-field"]],viewQuery:function(o,c){if(1&o&&r.Gf(Cl,5),2&o){let M;r.iGM(M=r.CRH())&&(c.cpFormLabelElement=M.first)}},inputs:{labelFor:"labelFor",labelText:"labelText",control:"control",showAllHelp:"showAllHelp",idPrefix:"idPrefix",showInfoToggle:"showInfoToggle"},ngContentSelectors:_l,decls:11,vars:9,consts:[[1,"form-group",3,"ngClass"],[1,"row"],[1,"col-xs-12"],[3,"id","for","labelText","showInfoBlock","showInfoToggle"],[3,"id","control"]],template:function(o,c){1&o&&(r.F$t(Hs),r.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"cp-form-label",3),r.Hsn(4),r.qZA()()(),r.TgZ(5,"div",1)(6,"div",2),r.Hsn(7,1),r.qZA()(),r.TgZ(8,"div",1)(9,"div",2),r._UZ(10,"cp-validation-container",4),r.qZA()()()),2&o&&(r.Q6J("ngClass",c.getFieldStateClasses()),r.uIk("id",c.id),r.xp6(3),r.Q6J("id",c.labelID)("for",c.labelFor)("labelText",c.labelText)("showInfoBlock",c.showAllHelp)("showInfoToggle",c.showInfoToggle),r.xp6(7),r.Q6J("id",c.validationContainerID)("control",c.control))},directives:[Cl,Wo,_.mk],styles:[""]}),u})(),Ec=(()=>{class u{}return u.\u0275fac=function(o){return new(o||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({imports:[[_.ez,bl,co]]}),u})();var ni=(()=>{return(u=ni||(ni={})).password="password",u.text="text",ni;var u})();let Ml=(()=>{class u{constructor(){this._locationService=new Ks.a,this._appPath=new ks.b5(this._locationService),this._scriptDir=this._appPath.isUnprotected?"unprotected":"backend",this._url=`${this._appPath.securityToken}/${this._scriptDir}/passwordstrength.cgi`}getPasswordStrength(o){const c=new FormData;let M;return c.append("password",o),vs({url:this._url,method:"POST",body:c}).pipe((0,G.U)(U=>(M=U.response.strength,M)),(0,Se.K)(()=>(0,A.of)(-1)))}}return u.\u0275fac=function(o){return new(o||u)},u.\u0275prov=r.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),Mc=(()=>{class u{constructor(o,c,M,U,X){this.locale=o,this._passwordGeneratorService=c,this._passwordValidatorService=M,this.validationStrategyService=U,this.ngControl=X,this.isDisabled=!1,this.requiresStrengthValidation=!1,this.validateEmptyField=!0,this.isPasswordConfigVisible=!1,this.passwordInputType=ni.password,this.displayError=!1,this.strengthClasses=Array(5).fill(""),this.hasBlurredOnce=!1,this.canDisplayStrengthText=!1,this._onChange=oe=>{},this._onTouch=()=>{},this.ngControl.valueAccessor=this}ngOnDestroy(){this.formSubmission.unsubscribe()}ngOnChanges({validateEmptyField:o}){this.passwordControl&&o&&(this.updatePassword(""),this.resetPasswordMessages(),o.currentValue?(this.passwordControl.markAsPristine(),this.hasBlurredOnce=!1):this.updateBlur())}ngOnInit(){if(!this.id)throw new Error("`id` must be defined for `cp-password`");if(!this.passwordInputName)throw new Error("`passwordInputName` must be defined for `cp-password`");if(this.requiresStrengthValidation&&!this.requiredStrength)throw new Error("`requiredStrength` must be defined for `cp-password`");this.placeholder||(this.placeholder=this.locale.maketext("Enter a password.")),this.passwordTitle||(this.passwordTitle=this.placeholder),this.passwordControl=new ve.NI({value:null,disabled:this.isDisabled}),this.passwordConfigurationForm=new ve.cw({length:new ve.NI(u.passwordDefaultConfig.length),hasUppercase:new ve.NI({value:u.passwordDefaultConfig.hasUppercase,disabled:this.isDisabled}),hasLowercase:new ve.NI({value:u.passwordDefaultConfig.hasLowercase,disabled:this.isDisabled}),hasNumbers:new ve.NI({value:u.passwordDefaultConfig.hasNumbers,disabled:this.isDisabled}),hasSymbols:new ve.NI({value:u.passwordDefaultConfig.hasSymbols,disabled:this.isDisabled})}),this.isPasswordVisible=this.passwordVisibility(this.passwordInputType),this.passwordConfigToggleBtnTitle=this.getPasswordConfigToggleBtnTitle()}ngAfterViewInit(){this.control=this.ngControl.control,this.control.setAsyncValidators(this.getPasswordStrength()),this.control.updateValueAndValidity(),this.formSubmission.subscribe(()=>{!this.hasBlurredOnce&&this.validateEmptyField&&this.updateBlur()}),this.validationStrategyService.changeControlUpdateStrategy(this.control,"change")}generatePassword(){const c=this._passwordGeneratorService.generatePassword({length:this.passwordConfigurationForm.controls.length.value,hasUppercase:this.passwordConfigurationForm.controls.hasUppercase.value,hasLowercase:this.passwordConfigurationForm.controls.hasLowercase.value,hasNumbers:this.passwordConfigurationForm.controls.hasNumbers.value,hasSymbols:this.passwordConfigurationForm.controls.hasSymbols.value});this.passwordInputType=ni.text,this.updatePassword(c),this.updateTouched()}isInputDisabled(o){const c=this.passwordConfigurationForm,M=Object.keys(c.controls);let U;for(const X of M)if(U=X,"length"!==U&&U!==o&&c.controls[U].value)return c.controls[o].enable(),!1;return c.controls[o].disable(),!0}togglePasswordConfigVisibility(){this.isPasswordConfigVisible=!this.isPasswordConfigVisible,this.passwordConfigToggleBtnTitle=this.getPasswordConfigToggleBtnTitle()}getPasswordConfigToggleBtnTitle(){return this.locale.maketext(this.isPasswordConfigVisible?"Hide password configuration.":"Show password configuration.")}togglePasswordVisibility(){this.passwordInputType=this.passwordInputType===ni.password?ni.text:ni.password,this.isPasswordVisible=this.passwordVisibility(this.passwordInputType)}updatePassword(o){!this.validateEmptyField&&!o&&this.resetPasswordMessages(),this.writeValue(o),this.passwordControl.patchValue(o)}updateBlur(){this.control.updateValueAndValidity(),this.hasBlurredOnce=!0,this.updateTouched()}updateTouched(){this.passwordControl.markAsDirty(),this._onTouch()}registerOnChange(o){this._onChange=o}registerOnTouched(o){this._onTouch=o}writeValue(o){this._onChange(o)}validate(o){return this.getPasswordStrength()(o)}getPasswordStrength(){return o=>this._passwordValidatorService.getPasswordStrength(o.value).pipe((0,Ne.q)(1),(0,G.U)(c=>{if(this.strength=c,!this.requiresStrengthValidation)return null;if(!this.validateEmptyField&&!this.control.value)return this.resetPasswordMessages(),null;if(this.strengthText=this.getStrengthText(this.strength,this.requiredStrength),this.displayError=this.showError(this.strength,this.requiredStrength),this.hasBlurredOnce&&(this.canDisplayStrengthText=!0),this.strengthClasses=this.passwordControl.dirty?this.getStrengthClasses(this.strength):Array(5).fill(""),-1===this.strength)return this.requiresStrengthValidation=!1,console.error("DEV: The PasswordValidatorService must be used in the cPanel/WHM/Webmail product because of the location of the validation script."),null;const M=this.strength<this.requiredStrength?{passwordFaulty:!0}:null;return this.passwordControl.setErrors(M),M}))}passwordVisibility(o){const c=o===ni.text;return this.passwordVisibilityBtnTitle=this.locale.maketext(c?"Hide password.":"Show password."),c}getStrengthText(o,c){return c?this.locale.maketext(c&&o>=c?"This password has a strength of [_1], which meets or exceeds the system requirement of [_2].":"This password has a strength of [_1], but your system requires a strength of [_2].",o,c):this.locale.maketext("This password has a strength of [_1].",this.strength)}showError(o,c){return this.passwordControl.dirty&&this.hasBlurredOnce&&o<c}getStrengthClasses(o){const c=Array(5).fill("");for(let M=0;M<c.length;M++)c[M]=o<=20&&0===M?"strength-0":o>20&&o<=40&&M<=1?"strength-1":o>40&&o<=60&&M<=2?"strength-2":o>60&&o<=80&&M<=3?"strength-3":o>80&&M<=4?"strength-4":"";return c}resetPasswordMessages(){this.displayError=!1,this.canDisplayStrengthText=!1,this.strengthClasses=Array(5).fill("")}}return u.passwordDefaultConfig={length:12,hasUppercase:!0,hasLowercase:!0,hasNumbers:!0,hasSymbols:!0},u.\u0275fac=function(o){return new(o||u)(r.Y36(Ye.g),r.Y36(dc),r.Y36(Ml),r.Y36(zo),r.Y36(ve.a5,2))},u.\u0275cmp=r.Xpm({type:u,selectors:[["cp-password"]],inputs:{id:"id",isDisabled:"isDisabled",passwordInputName:"passwordInputName",passwordTitle:"passwordTitle",placeholder:"placeholder",requiredStrength:"requiredStrength",requiresStrengthValidation:"requiresStrengthValidation",formSubmission:"formSubmission",validateEmptyField:"validateEmptyField"},features:[r.TTD],decls:14,vars:30,consts:[[1,"input-group"],["autocomplete","off",1,"form-control",3,"formControl","title","type","placeholder","name","value","id","focus","blur","input"],["passwordInput",""],[1,"input-group-btn"],["type","button",1,"btn","btn-default",3,"id","disabled","title","click"],[1,"fas","fa-lg","fa-fw",3,"ngClass"],[1,"fas","fa-fw",3,"ngClass"],["class","strength",4,"ngIf"],["class","currentStrengthText",3,"innerHtml",4,"ngIf"],["class","validation-container",4,"ngIf"],["class","panel panel-default",4,"ngIf"],[1,"strength"],["class","point",3,"ngClass",4,"ngFor","ngForOf"],[1,"point",3,"ngClass"],[1,"currentStrengthText",3,"innerHtml"],[1,"validation-container"],["id","password-validation-container",1,"validation","validation-error","ng-hide"],[1,"fas","fa-exclamation-circle"],[1,"validation-message",3,"innerHtml"],[1,"panel","panel-default"],[1,"panel-body"],[3,"formGroup"],["id","passwordConfigLengthContainer",1,"row"],[1,"col-xs-12","col-sm-3"],["for","lengthCharsInput",1,"charLengthLabel"],["formControlName","length","type","number","id","lengthCharsInput","name","charSet",1,"form-control",3,"title"],["id","passwordConfigCharsContainer",1,"row"],[1,"col-xs-12","col-sm-6"],[1,"checkbox"],[1,"charConfigLabel"],["type","checkbox","formControlName","hasUppercase","id","uppercaseCharsInput","name","charSet",3,"disabled"],["type","checkbox","formControlName","hasLowercase","id","lowercaseCharsInput","name","charSet"],["type","checkbox","formControlName","hasNumbers","id","numberCharsInput","name","charSet"],["type","checkbox","formControlName","hasSymbols","id","symbolCharsInput","name","charSet"]],template:function(o,c){if(1&o){const M=r.EpF();r.TgZ(0,"div",0)(1,"input",1,2),r.NdJ("focus",function(){return c.updateTouched()})("blur",function(){return c.updateBlur()})("input",function(){r.CHM(M);const X=r.MAs(2);return c.updatePassword(X.value)}),r.qZA(),r.TgZ(3,"div",3)(4,"button",4),r.NdJ("click",function(){return c.togglePasswordVisibility()}),r._UZ(5,"i",5),r.qZA(),r.TgZ(6,"button",4),r.NdJ("click",function(){return c.generatePassword()}),r._uU(7),r.qZA(),r.TgZ(8,"button",4),r.NdJ("click",function(){return c.togglePasswordConfigVisibility()}),r._UZ(9,"i",6),r.qZA()()(),r.YNc(10,Rd,2,1,"ul",7),r.YNc(11,Ld,1,1,"div",8),r.YNc(12,oo,4,1,"ul",9),r.YNc(13,Vd,33,9,"div",10)}2&o&&(r.xp6(1),r.MGl("id","",c.id,"-password-input"),r.Q6J("formControl",c.passwordControl)("title",c.passwordTitle)("type",c.passwordInputType)("placeholder",c.placeholder)("name",c.passwordInputName)("value",c.passwordControl.value),r.uIk("aria-label",c.placeholder),r.xp6(3),r.MGl("id","",c.id,"-toggle-password-visibility-btn"),r.Q6J("disabled",c.isDisabled)("title",c.passwordVisibilityBtnTitle),r.xp6(1),r.Q6J("ngClass",r.WLB(24,hr,c.isPasswordVisible,!c.isPasswordVisible)),r.xp6(1),r.MGl("id","",c.id,"-generate-password-btn"),r.Q6J("disabled",c.isDisabled)("title",c.locale.maketext("Generate password.")),r.xp6(1),r.hij(" ",c.locale.maketext("Generate")," "),r.xp6(1),r.MGl("id","",c.id,"-toggle-config-visibilit-btn"),r.Q6J("disabled",c.isDisabled)("title",c.passwordConfigToggleBtnTitle),r.xp6(1),r.Q6J("ngClass",r.WLB(27,La,!c.isPasswordConfigVisible,c.isPasswordConfigVisible)),r.xp6(1),r.Q6J("ngIf",c.requiresStrengthValidation),r.xp6(1),r.Q6J("ngIf",c.canDisplayStrengthText&&!c.displayError),r.xp6(1),r.Q6J("ngIf",c.displayError),r.xp6(1),r.Q6J("ngIf",c.isPasswordConfigVisible))},directives:[ve.Fj,ve.JJ,ve.oH,_.mk,_.O5,_.sg,ve._Y,ve.JL,ve.sg,ve.wV,ve.u,ve.Wl],styles:['#charConfigContainer[_ngcontent-%COMP%]{border:1px solid #eaeaea;border-top:none;position:relative;overflow-y:hidden}#lengthCharsInput[_ngcontent-%COMP%]{font-weight:400}#passwordConfigCharsContainer[_ngcontent-%COMP%]{margin-top:10px}.currentStrengthText[_ngcontent-%COMP%]{padding:0 0 5px 1px}.charConfigLabel[_ngcontent-%COMP%]{display:block}.charConfigLabel[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-left:5px;font-weight:400}.strength[_ngcontent-%COMP%]{display:block;list-style:none;margin:0;padding:5px;font-size:0}.strength[_ngcontent-%COMP%]   .point[_ngcontent-%COMP%]:last-child{margin-right:0!important}.strength[_ngcontent-%COMP%]   .point[_ngcontent-%COMP%]{background:#ddd;border-radius:2px;display:inline-block;height:4px;margin-right:2%;width:18.4%}.strength[_ngcontent-%COMP%]   .strength-0[_ngcontent-%COMP%]{background-color:red}.strength[_ngcontent-%COMP%]   .strength-1[_ngcontent-%COMP%]{background-color:#f90}.strength[_ngcontent-%COMP%]   .strength-2[_ngcontent-%COMP%]{background-color:#ff0}.strength[_ngcontent-%COMP%]   .strength-3[_ngcontent-%COMP%]{background-color:#9f0}.strength[_ngcontent-%COMP%]   .strength-4[_ngcontent-%COMP%]{background-color:#0f0}.validation-container[_ngcontent-%COMP%]{background-color:#f8c9c4;border:1px solid #a94442;padding:5px;border-radius:2px;list-style:none;margin-bottom:0;margin-top:5px}.validation-error[_ngcontent-%COMP%]{position:relative;line-height:20px}.validation-error[_ngcontent-%COMP%] > .fas[_ngcontent-%COMP%]{color:#a94442;display:inline-block;position:absolute;top:4px}.validation-message[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;margin-left:20px}html[dir="rtl"][_nghost-%COMP%]   .validation-message[_ngcontent-%COMP%], html[dir="rtl"]   [_nghost-%COMP%]   .validation-message[_ngcontent-%COMP%]{margin-right:20px;margin-left:0}']}),u})(),Tc=(()=>{class u{}return u.\u0275fac=function(o){return new(o||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({providers:[dc],imports:[[at.m,_.ez,ve.u5,vl,ve.UX]]}),u})(),Ts=(()=>{class u{constructor(o,c=[]){this.selectorName="",this.requiredInputs=["id"],this.requiredInputs=this.requiredInputs.concat(c),this.selectorName=o.nativeElement.tagName.toLowerCase()}ngOnInit(){this.requiredInputs.forEach(o=>{if(!this[o])throw new Error(`"${o}" must be defined for "${this.selectorName}"`)}),this._initiate()}_initiate(){}}return u.\u0275fac=function(o){r.$Z()},u.\u0275dir=r.lG2({type:u,inputs:{id:"id"}}),u})();var Ri=(()=>{return(u=Ri||(Ri={}))[u.all=-1]="all",Ri;var u})();const Tl="pageSizeOption";let zd=(()=>{class u{constructor(o){this.locale=o,this.id="",this.cssClasses="",this.description="",this.ariaPressed=!1,this.selected=!1,this._baseCSSClasses="btn btn-default btn-sm no-validation-border",this._activeClass="active"}ngOnChanges(){this.value===Ri.all?(this.label=this.locale.maketext("All"),this.description=this.locale.maketext("Show all entries"),this.id=`${Tl}_all`):(this.label=this.value.toString(),this.description=this.locale.maketext("Show [quant,_1,entry per page,entries per page]",this.value),this.id=`${Tl}_${this.value.toString()}`),this.selected?(this.cssClasses=`${this._baseCSSClasses} ${this._activeClass}`,this.ariaPressed=!0):(this.cssClasses=this._baseCSSClasses,this.ariaPressed=!1)}ngOnInit(){this.ngOnChanges()}}return u.\u0275fac=function(o){return new(o||u)(r.Y36(Ye.g))},u.\u0275dir=r.lG2({type:u,selectors:[["","cpPageSizeOption",""]],hostVars:6,hostBindings:function(o,c){2&o&&(r.Ikx("id",c.id)("innerText",c.label),r.uIk("aria-label",c.description)("aria-pressed",c.ariaPressed),r.Tol(c.cssClasses))},inputs:{value:"value",selected:"selected"},features:[r.TTD]}),u})(),ja=(()=>{class u extends Ts{constructor(o,c){super(o),this.locale=c,this.selectedPageSize=u.defaultPageSize,this.pageSizeOptions=u.defaultPageSizeOptions,this.showOptionAll=!1,this.disabled=!1,this.optionSelected=new r.vpe,this.displayedPageSizeOptions=[]}isOptionSelected(o){return o===this.selectedPageSize}onOptionClicked(o){this._dispatchChange(o)}ngOnChanges(){this._buildOptions()}_initiate(){this._buildOptions()}_buildOptions(){const o=this.pageSizeOptions.slice(0).sort((M,U)=>M-U);this.showOptionAll&&o.push(Ri.all),-1!==o.indexOf(this.selectedPageSize)?this.displayedPageSizeOptions=o:this._dispatchChange(o[0])}_dispatchChange(o){this.optionSelected.emit(o)}}return u.defaultPageSizeOptions=[20,50,100,500],u.defaultPageSize=20,u.\u0275fac=function(o){return new(o||u)(r.Y36(r.SBq),r.Y36(Ye.g))},u.\u0275cmp=r.Xpm({type:u,selectors:[["cp-page-size-selector"]],inputs:{selectedPageSize:"selectedPageSize",pageSizeOptions:"pageSizeOptions",showOptionAll:"showOptionAll",disabled:"disabled"},outputs:{optionSelected:"optionSelected"},features:[r.qOj,r.TTD],decls:5,vars:2,consts:[[1,"text-small","text-uppercase"],["role","group",1,"btn-group","page-size-buttons"],["cpPageSizeOption","","type","button",3,"disabled","selected","value","click",4,"ngFor","ngForOf"],["cpPageSizeOption","","type","button",3,"disabled","selected","value","click"]],template:function(o,c){1&o&&(r.TgZ(0,"div")(1,"div",0),r._uU(2),r.qZA(),r.TgZ(3,"div",1),r.YNc(4,ao,1,3,"button",2),r.qZA()()),2&o&&(r.xp6(2),r.hij(" ",c.locale.maketext("Entries Per Page")," "),r.xp6(2),r.Q6J("ngForOf",c.displayedPageSizeOptions))},directives:[_.sg,zd],styles:[".page-size-buttons[_ngcontent-%COMP%]{margin-top:3px;display:flex}"]}),u})(),Sc=(()=>{class u{}return u.\u0275fac=function(o){return new(o||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({imports:[[_.ez,at.m]]}),u})(),Wd=(()=>{class u extends Ts{constructor(o,c){super(o),this.locale=c,this.maxPagesVisible=u.defaultMaxPagesVisible,this.selectedPage=u.firstPageIndex,this.pageSize=ja.defaultPageSize,this.disabled=!1,this.pageChanged=new r.vpe}onPageChanged(o){this._dispatchChange(o)}onNumPagesChanged(o){this._dispatchChange(this.selectedPage)}_initiate(){this._dispatchChange(this.selectedPage)}_dispatchChange(o){const c=this.pageSize*(o-1),M=Math.min(c+this.pageSize,this.totalItems);this.pageChanged.emit({page:o,firstItem:c,lastItem:M}),this.itemsDetails=this.locale.maketext("[_1] - [_2] of [_3]",c+1,M,this.totalItems)}}return u.defaultMaxPagesVisible=5,u.firstPageIndex=1,u.\u0275fac=function(o){return new(o||u)(r.Y36(r.SBq),r.Y36(Ye.g))},u.\u0275cmp=r.Xpm({type:u,selectors:[["cp-pagination"]],inputs:{maxPagesVisible:"maxPagesVisible",totalItems:"totalItems",selectedPage:"selectedPage",pageSize:"pageSize",disabled:"disabled"},outputs:{pageChanged:"pageChanged"},features:[r.qOj],decls:12,vars:13,consts:[[3,"id"],[3,"id","totalItems","maxSize","disabled","itemsPerPage","ngModel","boundaryLinks","customFirstTemplate","customLastTemplate","customPreviousTemplate","customNextTemplate","ngModelChange","pageChanged","numPages"],[1,"pagination-item-details","text-small","text-right","flip"],["nextTemplate",""],["prevTemplate",""],["lastTemplate",""],["firstTemplate",""]],template:function(o,c){if(1&o&&(r.TgZ(0,"div",0)(1,"pagination",1),r.NdJ("ngModelChange",function(U){return c.selectedPage=U})("pageChanged",function(U){return c.onPageChanged(U.page)})("numPages",function(U){return c.onNumPagesChanged(U)}),r.qZA(),r.TgZ(2,"p",2),r._uU(3),r.qZA()(),r.YNc(4,Bd,1,0,"ng-template",null,3,r.W1O),r.YNc(6,uc,1,0,"ng-template",null,4,r.W1O),r.YNc(8,ei,1,0,"ng-template",null,5,r.W1O),r.YNc(10,Si,1,0,"ng-template",null,6,r.W1O)),2&o){const M=r.MAs(5),U=r.MAs(7),X=r.MAs(9),oe=r.MAs(11);r.Q6J("id",c.id),r.xp6(1),r.MGl("id","",c.id,"_ngx_paginator"),r.Q6J("totalItems",c.totalItems)("maxSize",c.maxPagesVisible)("disabled",c.disabled)("itemsPerPage",c.pageSize)("ngModel",c.selectedPage)("boundaryLinks",!0)("customFirstTemplate",oe)("customLastTemplate",X)("customPreviousTemplate",U)("customNextTemplate",M),r.xp6(2),r.hij(" ",c.itemsDetails," ")}},directives:[Ls,ve.JJ,ve.On],styles:[".pagination-item-details[_ngcontent-%COMP%]{margin-top:-20px}"]}),u})(),Pc=(()=>{class u{}return u.\u0275fac=function(o){return new(o||u)},u.\u0275mod=r.oAB({type:u}),u.\u0275inj=r.cJS({imports:[[_.ez,ve.u5,ss.forRoot(),at.m]]}),u})()},6737:(J,F,p)=>{"use strict";p.d(F,{ir:()=>kt,w9:()=>Y,A0:()=>we});var r=p(5062),_=p(4006),V=p(353),j=p(1177);class I{constructor(P){this.durationSelector=P}call(P,m){return m.subscribe(new R(P,this.durationSelector))}}class R extends j.Ds{constructor(P,m){super(P),this.durationSelector=m,this.hasValue=!1}_next(P){if(this.value=P,this.hasValue=!0,!this.throttled){let m;try{const{durationSelector:ue}=this;m=ue(P)}catch(ue){return this.destination.error(ue)}const B=(0,j.ft)(m,new j.IY(this));!B||B.closed?this.clearThrottle():this.add(this.throttled=B)}}clearThrottle(){const{value:P,hasValue:m,throttled:B}=this;B&&(this.remove(B),this.throttled=void 0,B.unsubscribe()),m&&(this.value=void 0,this.hasValue=!1,this.destination.next(P))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var x=p(2916),H=p(6688);function L(E){return!(0,H.k)(E)&&E-parseFloat(E)+1>=0}var G=p(2866);function re(E){const{index:P,period:m,subscriber:B}=E;if(B.next(P),!B.closed){if(-1===m)return B.complete();E.index=P+1,this.schedule(E,m)}}var Se=p(7625),Ne=p(1059),ve=p(2868),at=p(13),Ye=p(2198),Be=p(4850);let st=1;const be=Promise.resolve(),Je={};function Gt(E){return E in Je&&(delete Je[E],!0)}const _t={setImmediate(E){const P=st++;return Je[P]=!0,be.then(()=>Gt(P)&&E()),P},clearImmediate(E){Gt(E)}};var le=p(6686),He=p(2268);const Ze=new class dt extends He.v{flush(P){this.active=!0,this.scheduled=void 0;const{actions:m}=this;let B,ue=-1,ce=m.length;P=P||m.shift();do{if(B=P.execute(P.state,P.delay))break}while(++ue<ce&&(P=m.shift()));if(this.active=!1,B){for(;++ue<ce&&(P=m.shift());)P.unsubscribe();throw B}}}(class Te extends le.o{constructor(P,m){super(P,m),this.scheduler=P,this.work=m}requestAsyncId(P,m,B=0){return null!==B&&B>0?super.requestAsyncId(P,m,B):(P.actions.push(this),P.scheduled||(P.scheduled=_t.setImmediate(P.flush.bind(P,null))))}recycleAsyncId(P,m,B=0){if(null!==B&&B>0||null===B&&this.delay>0)return super.recycleAsyncId(P,m,B);0===P.actions.length&&(_t.clearImmediate(m),P.scheduled=void 0)}});var yn=p(352),Vt=p(5529),gn=p(3753),Mn=p(6787),un=p(6895);const Fn=["content"],bn=["scroll"],Yn=["padding"],Ht=function(E){return{searchTerm:E}};function Yt(E,P){if(1&E&&(r.TgZ(0,"div",6),r.GkF(1,7),r.qZA()),2&E){const m=r.oxw();r.xp6(1),r.Q6J("ngTemplateOutlet",m.headerTemplate)("ngTemplateOutletContext",r.VKq(2,Ht,m.filterValue))}}function An(E,P){if(1&E&&(r.TgZ(0,"div",8),r.GkF(1,7),r.qZA()),2&E){const m=r.oxw();r.xp6(1),r.Q6J("ngTemplateOutlet",m.footerTemplate)("ngTemplateOutletContext",r.VKq(2,Ht,m.filterValue))}}const cn=["*"],Ln=["searchInput"];function wn(E,P){if(1&E){const m=r.EpF();r.TgZ(0,"span",15),r.NdJ("click",function(){r.CHM(m);const ue=r.oxw().$implicit;return r.oxw(2).unselect(ue)}),r._uU(1,"\xd7"),r.qZA(),r._UZ(2,"span",16)}if(2&E){const m=r.oxw().$implicit,B=r.oxw(2);r.xp6(2),r.Q6J("ngItemLabel",m.label)("escape",B.escapeHTML)}}function ur(E,P){}const En=function(E,P,m){return{item:E,clear:P,label:m}};function Vn(E,P){if(1&E&&(r.TgZ(0,"div",12),r.YNc(1,wn,3,2,"ng-template",null,13,r.W1O),r.YNc(3,ur,0,0,"ng-template",14),r.qZA()),2&E){const m=P.$implicit,B=r.MAs(2),ue=r.oxw(2);r.ekj("ng-value-disabled",m.disabled),r.xp6(3),r.Q6J("ngTemplateOutlet",ue.labelTemplate||B)("ngTemplateOutletContext",r.kEZ(4,En,m.value,ue.clearItem,m.label))}}function lr(E,P){if(1&E&&(r.ynx(0),r.YNc(1,Vn,4,8,"div",11),r.BQk()),2&E){const m=r.oxw();r.xp6(1),r.Q6J("ngForOf",m.selectedItems)("ngForTrackBy",m.trackByOption)}}function or(E,P){}const rr=function(E,P){return{items:E,clear:P}};function dr(E,P){if(1&E&&r.YNc(0,or,0,0,"ng-template",14),2&E){const m=r.oxw();r.Q6J("ngTemplateOutlet",m.multiLabelTemplate)("ngTemplateOutletContext",r.WLB(2,rr,m.selectedValues,m.clearItem))}}function zn(E,P){1&E&&r._UZ(0,"div",19)}function Sn(E,P){}function zt(E,P){if(1&E&&(r.ynx(0),r.YNc(1,zn,1,0,"ng-template",null,17,r.W1O),r.YNc(3,Sn,0,0,"ng-template",18),r.BQk()),2&E){const m=r.MAs(2),B=r.oxw();r.xp6(3),r.Q6J("ngTemplateOutlet",B.loadingSpinnerTemplate||m)}}function $n(E,P){if(1&E&&(r.TgZ(0,"span",20)(1,"span",21),r._uU(2,"\xd7"),r.qZA()()),2&E){const m=r.oxw();r.s9C("title",m.clearAllText)}}function jt(E,P){if(1&E&&r._UZ(0,"span",27),2&E){const m=r.oxw().$implicit,B=r.oxw(2);r.Q6J("ngItemLabel",m.label)("escape",B.escapeHTML)}}function ze(E,P){}const me=function(E,P,m,B){return{item:E,item$:P,index:m,searchTerm:B}};function he(E,P){if(1&E){const m=r.EpF();r.TgZ(0,"div",25),r.NdJ("click",function(){const ce=r.CHM(m).$implicit;return r.oxw(2).toggleItem(ce)})("mouseover",function(){const ce=r.CHM(m).$implicit;return r.oxw(2).onItemHover(ce)}),r.YNc(1,jt,1,2,"ng-template",null,26,r.W1O),r.YNc(3,ze,0,0,"ng-template",14),r.qZA()}if(2&E){const m=P.$implicit,B=r.MAs(2),ue=r.oxw(2);r.ekj("ng-option-disabled",m.disabled)("ng-option-selected",m.selected)("ng-optgroup",m.children)("ng-option",!m.children)("ng-option-child",!!m.parent)("ng-option-marked",m===ue.itemsList.markedItem),r.uIk("role",m.children?"group":"option")("aria-selected",m.selected)("id",null==m?null:m.htmlId),r.xp6(3),r.Q6J("ngTemplateOutlet",m.children?ue.optgroupTemplate||B:ue.optionTemplate||B)("ngTemplateOutletContext",r.l5B(17,me,m.value,m,m.index,ue.searchTerm))}}function Qe(E,P){if(1&E&&(r.TgZ(0,"span")(1,"span",30),r._uU(2),r.qZA(),r._uU(3),r.qZA()),2&E){const m=r.oxw(3);r.xp6(2),r.Oqu(m.addTagText),r.xp6(1),r.hij('"',m.searchTerm,'"')}}function je(E,P){}function qe(E,P){if(1&E){const m=r.EpF();r.TgZ(0,"div",28),r.NdJ("mouseover",function(){return r.CHM(m),r.oxw(2).itemsList.unmarkItem()})("click",function(){return r.CHM(m),r.oxw(2).selectTag()}),r.YNc(1,Qe,4,2,"ng-template",null,29,r.W1O),r.YNc(3,je,0,0,"ng-template",14),r.qZA()}if(2&E){const m=r.MAs(2),B=r.oxw(2);r.ekj("ng-option-marked",!B.itemsList.markedItem),r.xp6(3),r.Q6J("ngTemplateOutlet",B.tagTemplate||m)("ngTemplateOutletContext",r.VKq(4,Ht,B.searchTerm))}}function ot(E,P){if(1&E&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&E){const m=r.oxw(3);r.xp6(1),r.Oqu(m.notFoundText)}}function dn(E,P){}function Ft(E,P){if(1&E&&(r.ynx(0),r.YNc(1,ot,2,1,"ng-template",null,31,r.W1O),r.YNc(3,dn,0,0,"ng-template",14),r.BQk()),2&E){const m=r.MAs(2),B=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",B.notFoundTemplate||m)("ngTemplateOutletContext",r.VKq(2,Ht,B.searchTerm))}}function At(E,P){if(1&E&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&E){const m=r.oxw(3);r.xp6(1),r.Oqu(m.typeToSearchText)}}function Xn(E,P){}function vn(E,P){if(1&E&&(r.ynx(0),r.YNc(1,At,2,1,"ng-template",null,33,r.W1O),r.YNc(3,Xn,0,0,"ng-template",18),r.BQk()),2&E){const m=r.MAs(2),B=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",B.typeToSearchTemplate||m)}}function Dn(E,P){if(1&E&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&E){const m=r.oxw(3);r.xp6(1),r.Oqu(m.loadingText)}}function Rt(E,P){}function $t(E,P){if(1&E&&(r.ynx(0),r.YNc(1,Dn,2,1,"ng-template",null,34,r.W1O),r.YNc(3,Rt,0,0,"ng-template",14),r.BQk()),2&E){const m=r.MAs(2),B=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",B.loadingTextTemplate||m)("ngTemplateOutletContext",r.VKq(2,Ht,B.searchTerm))}}function sn(E,P){if(1&E){const m=r.EpF();r.TgZ(0,"ng-dropdown-panel",22),r.NdJ("update",function(ue){return r.CHM(m),r.oxw().viewPortItems=ue})("scroll",function(ue){return r.CHM(m),r.oxw().scroll.emit(ue)})("scrollToEnd",function(ue){return r.CHM(m),r.oxw().scrollToEnd.emit(ue)})("outsideClick",function(){return r.CHM(m),r.oxw().close()}),r.ynx(1),r.YNc(2,he,4,22,"div",23),r.YNc(3,qe,4,6,"div",24),r.BQk(),r.YNc(4,Ft,4,4,"ng-container",3),r.YNc(5,vn,4,1,"ng-container",3),r.YNc(6,$t,4,4,"ng-container",3),r.qZA()}if(2&E){const m=r.oxw();r.ekj("ng-select-multiple",m.multiple),r.Q6J("virtualScroll",m.virtualScroll)("bufferAmount",m.bufferAmount)("appendTo",m.appendTo)("position",m.dropdownPosition)("headerTemplate",m.headerTemplate)("footerTemplate",m.footerTemplate)("filterValue",m.searchTerm)("items",m.itemsList.filteredItems)("markedItem",m.itemsList.markedItem)("ngClass",m.appendTo?m.classes:null)("id",m.dropdownId),r.xp6(2),r.Q6J("ngForOf",m.viewPortItems)("ngForTrackBy",m.trackByOption),r.xp6(1),r.Q6J("ngIf",m.showAddTag),r.xp6(1),r.Q6J("ngIf",m.showNoItemsFound()),r.xp6(1),r.Q6J("ngIf",m.showTypeToSearch()),r.xp6(1),r.Q6J("ngIf",m.loading&&0===m.itemsList.filteredItems.length)}}const fe=/[&<>"']/g,Ee=RegExp(fe.source),Ae={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Re(E){return null!=E}function tt(E){return"object"==typeof E&&Re(E)}function ct(E){return E instanceof Function}let St=(()=>{class E{constructor(m){this.element=m,this.escape=!0}ngOnChanges(m){this.element.nativeElement.innerHTML=this.escape?function _e(E){return E&&Ee.test(E)?E.replace(fe,P=>Ae[P]):E}(this.ngItemLabel):this.ngItemLabel}}return E.\u0275fac=function(m){return new(m||E)(r.Y36(r.SBq))},E.\u0275dir=r.lG2({type:E,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[r.TTD]}),E})(),kt=(()=>{class E{constructor(m){this.template=m}}return E.\u0275fac=function(m){return new(m||E)(r.Y36(r.Rgc))},E.\u0275dir=r.lG2({type:E,selectors:[["","ng-option-tmp",""]]}),E})(),Dt=(()=>{class E{constructor(m){this.template=m}}return E.\u0275fac=function(m){return new(m||E)(r.Y36(r.Rgc))},E.\u0275dir=r.lG2({type:E,selectors:[["","ng-optgroup-tmp",""]]}),E})(),Wt=(()=>{class E{constructor(m){this.template=m}}return E.\u0275fac=function(m){return new(m||E)(r.Y36(r.Rgc))},E.\u0275dir=r.lG2({type:E,selectors:[["","ng-label-tmp",""]]}),E})(),De=(()=>{class E{constructor(m){this.template=m}}return E.\u0275fac=function(m){return new(m||E)(r.Y36(r.Rgc))},E.\u0275dir=r.lG2({type:E,selectors:[["","ng-multi-label-tmp",""]]}),E})(),se=(()=>{class E{constructor(m){this.template=m}}return E.\u0275fac=function(m){return new(m||E)(r.Y36(r.Rgc))},E.\u0275dir=r.lG2({type:E,selectors:[["","ng-header-tmp",""]]}),E})(),K=(()=>{class E{constructor(m){this.template=m}}return E.\u0275fac=function(m){return new(m||E)(r.Y36(r.Rgc))},E.\u0275dir=r.lG2({type:E,selectors:[["","ng-footer-tmp",""]]}),E})(),Pe=(()=>{class E{constructor(m){this.template=m}}return E.\u0275fac=function(m){return new(m||E)(r.Y36(r.Rgc))},E.\u0275dir=r.lG2({type:E,selectors:[["","ng-notfound-tmp",""]]}),E})(),Me=(()=>{class E{constructor(m){this.template=m}}return E.\u0275fac=function(m){return new(m||E)(r.Y36(r.Rgc))},E.\u0275dir=r.lG2({type:E,selectors:[["","ng-typetosearch-tmp",""]]}),E})(),Ue=(()=>{class E{constructor(m){this.template=m}}return E.\u0275fac=function(m){return new(m||E)(r.Y36(r.Rgc))},E.\u0275dir=r.lG2({type:E,selectors:[["","ng-loadingtext-tmp",""]]}),E})(),ut=(()=>{class E{constructor(m){this.template=m}}return E.\u0275fac=function(m){return new(m||E)(r.Y36(r.Rgc))},E.\u0275dir=r.lG2({type:E,selectors:[["","ng-tag-tmp",""]]}),E})(),It=(()=>{class E{constructor(m){this.template=m}}return E.\u0275fac=function(m){return new(m||E)(r.Y36(r.Rgc))},E.\u0275dir=r.lG2({type:E,selectors:[["","ng-loadingspinner-tmp",""]]}),E})();function Ct(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const an={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function Pt(E){return E.replace(/[^\u0000-\u007E]/g,m=>an[m]||m)}class Jt{constructor(P,m){this._ngSelect=P,this._selectionModel=m,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let P=this.selectedItems.length-1;for(;P>=0;P--){const m=this.selectedItems[P];if(!m.disabled)return m}return null}setItems(P){this._items=P.map((m,B)=>this.mapItem(m,B)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(P){if(P.selected||this.maxItemsSelected)return;const m=this._ngSelect.multiple;m||this.clearSelected(),this._selectionModel.select(P,m,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(P)}unselect(P){!P.selected||(this._selectionModel.unselect(P,this._ngSelect.multiple),this._ngSelect.hideSelected&&Re(P.index)&&this._ngSelect.multiple&&this._showSelected(P))}findItem(P){let m;return m=this._ngSelect.compareWith?B=>this._ngSelect.compareWith(B.value,P):this._ngSelect.bindValue?B=>!B.children&&this.resolveNested(B.value,this._ngSelect.bindValue)===P:B=>B.value===P||!B.children&&B.label&&B.label===this.resolveNested(P,this._ngSelect.bindLabel),this._items.find(B=>m(B))}addItem(P){const m=this.mapItem(P,this._items.length);return this._items.push(m),this._filteredItems.push(m),m}clearSelected(P=!1){this._selectionModel.clear(P),this._items.forEach(m=>{m.selected=P&&m.selected&&m.disabled,m.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(P){return P=Pt(P).toLocaleLowerCase(),this.filteredItems.find(m=>Pt(m.label).toLocaleLowerCase().substr(0,P.length)===P)}filter(P){if(!P)return void this.resetFilteredItems();this._filteredItems=[],P=this._ngSelect.searchFn?P:Pt(P).toLocaleLowerCase();const m=this._ngSelect.searchFn||this._defaultSearchFn,B=this._ngSelect.hideSelected;for(const ue of Array.from(this._groups.keys())){const ce=[];for(const ae of this._groups.get(ue))B&&(ae.parent&&ae.parent.selected||ae.selected)||m(P,this._ngSelect.searchFn?ae.value:ae)&&ce.push(ae);if(ce.length>0){const[ae]=ce.slice(-1);if(ae.parent){const xe=this._items.find(nt=>nt===ae.parent);this._filteredItems.push(xe)}this._filteredItems.push(...ce)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(P=>!P.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(P){this._markedIndex=this._filteredItems.indexOf(P)}markSelectedOrDefault(P){if(0===this._filteredItems.length)return;const m=this._getLastMarkedIndex();this._markedIndex=m>-1?m:P?this.filteredItems.findIndex(B=>!B.disabled):-1}resolveNested(P,m){if(!tt(P))return P;if(-1===m.indexOf("."))return P[m];{const B=m.split(".");let ue=P;for(let ce=0,ae=B.length;ce<ae;++ce){if(null==ue)return null;ue=ue[B[ce]]}return ue}}mapItem(P,m){const B=Re(P.$ngOptionLabel)?P.$ngOptionLabel:this.resolveNested(P,this._ngSelect.bindLabel),ue=Re(P.$ngOptionValue)?P.$ngOptionValue:P;return{index:m,label:Re(B)?B.toString():"",value:ue,disabled:P.disabled,htmlId:`${this._ngSelect.dropdownId}-${m}`}}mapSelectedItems(){const P=this._ngSelect.multiple;for(const m of this.selectedItems){const B=this._ngSelect.bindValue?this.resolveNested(m.value,this._ngSelect.bindValue):m.value,ue=Re(B)?this.findItem(B):null;this._selectionModel.unselect(m,P),this._selectionModel.select(ue||m,P,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(m=>-1===this.selectedItems.indexOf(m)))}_showSelected(P){if(this._filteredItems.push(P),P.parent){const m=P.parent;this._filteredItems.find(ue=>ue===m)||this._filteredItems.push(m)}else if(P.children)for(const m of P.children)m.selected=!1,this._filteredItems.push(m);this._filteredItems=[...this._filteredItems.sort((m,B)=>m.index-B.index)]}_hideSelected(P){this._filteredItems=this._filteredItems.filter(m=>m!==P),P.parent?P.parent.children.every(B=>B.selected)&&(this._filteredItems=this._filteredItems.filter(B=>B!==P.parent)):P.children&&(this._filteredItems=this.filteredItems.filter(m=>m.parent!==P))}_defaultSearchFn(P,m){return Pt(m.label).toLocaleLowerCase().indexOf(P)>-1}_getNextItemIndex(P){return P>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(P){0===this._filteredItems.length||this._filteredItems.every(m=>m.disabled)||(this._markedIndex=this._getNextItemIndex(P),this.markedItem.disabled&&this._stepToItem(P))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const P=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&P<0?-1:Math.max(this.markedIndex,P)}_groupBy(P,m){const B=new Map;if(0===P.length)return B;if(Array.isArray(P[0].value[m])){for(const ae of P){const xe=(ae.value[m]||[]).map((nt,Et)=>this.mapItem(nt,Et));B.set(ae,xe)}return B}const ue=ct(this._ngSelect.groupBy),ce=ae=>{const xe=ue?m(ae.value):ae.value[m];return Re(xe)?xe:void 0};for(const ae of P){const xe=ce(ae),nt=B.get(xe);nt?nt.push(ae):B.set(xe,[ae])}return B}_flatten(P){const m=ct(this._ngSelect.groupBy),B=[];for(const ue of Array.from(P.keys())){let ce=B.length;if(void 0===ue){const vt=P.get(void 0)||[];B.push(...vt.map(pt=>(pt.index=ce++,pt)));continue}const ae=tt(ue),xe={label:ae?"":String(ue),children:void 0,parent:null,index:ce++,disabled:!this._ngSelect.selectableGroup,htmlId:Ct()},nt=m?this._ngSelect.bindLabel:this._ngSelect.groupBy,Et=this._ngSelect.groupValue||(()=>ae?ue.value:{[nt]:ue}),Nt=P.get(ue).map(vt=>(vt.parent=xe,vt.children=void 0,vt.index=ce++,vt));xe.children=Nt,xe.value=Et(ue,Nt.map(vt=>vt.value)),B.push(xe),B.push(...Nt)}return B}}var Tt=(()=>{return(E=Tt||(Tt={}))[E.Tab=9]="Tab",E[E.Enter=13]="Enter",E[E.Esc=27]="Esc",E[E.Space=32]="Space",E[E.ArrowUp=38]="ArrowUp",E[E.ArrowDown=40]="ArrowDown",E[E.Backspace=8]="Backspace",Tt;var E})();let Ke=(()=>{class E{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(m,B,ue){const ce=this._dimensions,ae=ce.itemHeight*B,nt=Math.max(0,m)/ae*B;let Et=Math.min(B,Math.ceil(nt)+(ce.itemsPerViewport+1));const vt=Math.max(0,Et-ce.itemsPerViewport);let pt=Math.min(vt,Math.floor(nt)),Qt=ce.itemHeight*Math.ceil(pt)-ce.itemHeight*Math.min(pt,ue);return Qt=isNaN(Qt)?0:Qt,pt=isNaN(pt)?-1:pt,Et=isNaN(Et)?-1:Et,pt-=ue,pt=Math.max(0,pt),Et+=ue,Et=Math.min(B,Et),{topPadding:Qt,scrollHeight:ae,start:pt,end:Et}}setDimensions(m,B){const ue=Math.max(1,Math.floor(B/m));this._dimensions={itemHeight:m,panelHeight:B,itemsPerViewport:ue}}getScrollTo(m,B,ue){const{panelHeight:ce}=this.dimensions,ae=m+B,nt=ue+ce;return ce>=ae&&ue===m?null:ae>nt?ue+ae-nt:m<=ue?m:null}}return E.\u0275fac=function(m){return new(m||E)},E.\u0275prov=r.Yz7({token:E,factory:E.\u0275fac}),E})();const it=["top","right","bottom","left"],ht=typeof requestAnimationFrame<"u"?yn.Z:Ze;let yt=(()=>{class E{constructor(m,B,ue,ce,ae){this._renderer=m,this._zone=B,this._panelService=ue,this._document=ae,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new r.vpe,this.scroll=new r.vpe,this.scrollToEnd=new r.vpe,this.outsideClick=new r.vpe,this._destroy$=new Vt.xQ,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=ce.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(m){m!==this._itemsLength&&(this._itemsLength=m,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:m,panelHeight:B}=this._panelService.dimensions,ue=this.markedItem.index*m;return B>ue?0:ue}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(m){if(m.items){const B=m.items;this._onItemsChange(B.currentValue,B.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(m,B=!1){if(!m)return;const ue=this.items.indexOf(m);if(ue<0||ue>=this.itemsLength)return;let ce;if(this.virtualScroll){const ae=this._panelService.dimensions.itemHeight;ce=this._panelService.getScrollTo(ue*ae,ae,this._lastScrollPosition)}else{const ae=this._dropdown.querySelector(`#${m.htmlId}`);ce=this._panelService.getScrollTo(ae.offsetTop,ae.clientHeight,B?ae.offsetTop:this._lastScrollPosition)}Re(ce)&&(this._scrollablePanel.scrollTop=ce)}scrollToTag(){const m=this._scrollablePanel;m.scrollTop=m.scrollHeight-m.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),it.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(m){it.forEach(ue=>{const ce=`ng-select-${ue}`;this._renderer.removeClass(this._dropdown,ce),this._renderer.removeClass(this._select,ce)});const B=`ng-select-${m}`;this._renderer.addClass(this._dropdown,B),this._renderer.addClass(this._select,B)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,gn.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,Se.R)(this._destroy$),function Oe(E,P=V.P){return function A(E){return function(m){return m.lift(new I(E))}}(()=>function ne(E=0,P,m){let B=-1;return L(P)?B=Number(P)<1?1:Number(P):(0,G.K)(P)&&(m=P),(0,G.K)(m)||(m=V.P),new x.y(ue=>{const ce=L(E)?E:+E-m.now();return m.schedule(re,ce,{index:0,period:B,subscriber:ue})})}(E,P))}(0,ht)).subscribe(m=>{const B=m.path||m.composedPath&&m.composedPath();this._onContentScrolled(B&&0!==B.length?B[0].scrollTop:m.target.scrollTop)})})}_handleOutsideClick(){!this._document||this._zone.runOutsideAngular(()=>{(0,Mn.T)((0,gn.R)(this._document,"touchstart",{capture:!0}),(0,gn.R)(this._document,"mousedown",{capture:!0})).pipe((0,Se.R)(this._destroy$)).subscribe(m=>this._checkToClose(m))})}_checkToClose(m){if(this._select.contains(m.target)||this._dropdown.contains(m.target))return;const B=m.path||m.composedPath&&m.composedPath();m.target&&m.target.shadowRoot&&B&&B[0]&&this._select.contains(B[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(m,B){this.items=m||[],this._scrollToEndFired=!1,this.itemsLength=m.length,this.virtualScroll?this._updateItemsRange(B):(this._setVirtualHeight(),this._updateItems(B))}_updateItems(m){this.update.emit(this.items),!1!==m&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,m)})})}_updateItemsRange(m){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{m?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(m){this.virtualScroll&&this._renderItemsRange(m),this._lastScrollPosition=m,this._fireScrollToEnd(m)}_updateVirtualHeight(m){this._updateScrollHeight&&(this._virtualPadding.style.height=`${m}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){!this._virtualPadding||(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(m=null){if(m&&this._lastScrollPosition===m)return;const B=this._panelService.calculateItems(m=m||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(B.scrollHeight),this._contentPanel.style.transform=`translateY(${B.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(B.start,B.end)),this.scroll.emit({start:B.start,end:B.end})}),Re(m)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=m,this._lastScrollPosition=m)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[m]=this.items;return this.update.emit([m]),Promise.resolve().then(()=>{const ue=this._dropdown.querySelector(`#${m.htmlId}`).clientHeight;return this._virtualPadding.style.height=ue*this.itemsLength+"px",this._panelService.setDimensions(ue,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(m){this._scrollToEndFired||0===m||m+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(m){if("auto"!==this.position)return this.position;const B=this._select.getBoundingClientRect(),ue=document.documentElement.scrollTop||document.body.scrollTop;return B.top+window.pageYOffset+B.height+m.getBoundingClientRect().height>ue+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const m=this._select.getBoundingClientRect(),B=this._parent.getBoundingClientRect();this._dropdown.style.left=m.left-B.left+"px",this._dropdown.style.width=m.width+"px",this._dropdown.style.minWidth=m.width+"px"}_updateYPosition(){const m=this._select.getBoundingClientRect(),B=this._parent.getBoundingClientRect(),ue=m.height;"top"===this._currentPosition?(this._dropdown.style.bottom=B.bottom-m.bottom+ue+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=m.top-B.top+ue+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,gn.R)(this._dropdown,"mousedown").pipe((0,Se.R)(this._destroy$)).subscribe(m=>{"INPUT"!==m.target.tagName&&m.preventDefault()})})}}return E.\u0275fac=function(m){return new(m||E)(r.Y36(r.Qsj),r.Y36(r.R0b),r.Y36(Ke),r.Y36(r.SBq),r.Y36(un.K0,8))},E.\u0275cmp=r.Xpm({type:E,selectors:[["ng-dropdown-panel"]],viewQuery:function(m,B){if(1&m&&(r.Gf(Fn,7,r.SBq),r.Gf(bn,7,r.SBq),r.Gf(Yn,7,r.SBq)),2&m){let ue;r.iGM(ue=r.CRH())&&(B.contentElementRef=ue.first),r.iGM(ue=r.CRH())&&(B.scrollElementRef=ue.first),r.iGM(ue=r.CRH())&&(B.paddingElementRef=ue.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[r.TTD],ngContentSelectors:cn,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],[1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(m,B){1&m&&(r.F$t(),r.YNc(0,Yt,2,4,"div",0),r.TgZ(1,"div",1,2),r._UZ(3,"div",null,3),r.TgZ(5,"div",null,4),r.Hsn(7),r.qZA()(),r.YNc(8,An,2,4,"div",5)),2&m&&(r.Q6J("ngIf",B.headerTemplate),r.xp6(3),r.ekj("total-padding",B.virtualScroll),r.xp6(2),r.ekj("scrollable-content",B.virtualScroll&&B.items.length),r.xp6(3),r.Q6J("ngIf",B.footerTemplate))},directives:[un.O5,un.tP],encapsulation:2,changeDetection:0}),E})(),bt=(()=>{class E{constructor(m){this.elementRef=m,this.stateChange$=new Vt.xQ,this._disabled=!1}get disabled(){return this._disabled}set disabled(m){this._disabled=this._isDisabled(m)}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(m){m.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(m){return null!=m&&"false"!=`${m}`}}return E.\u0275fac=function(m){return new(m||E)(r.Y36(r.SBq))},E.\u0275cmp=r.Xpm({type:E,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[r.TTD],ngContentSelectors:cn,decls:1,vars:0,template:function(m,B){1&m&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),E})(),hn=(()=>{class E{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}}return E.\u0275fac=function(m){return new(m||E)},E.\u0275prov=r.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})(),k=(()=>{class E{warn(m){console.warn(m)}}return E.\u0275fac=function(m){return new(m||E)},E.\u0275prov=r.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})();const q=new r.OlP("ng-select-selection-model");let Y=(()=>{class E{constructor(m,B,ue,ce,ae,xe,nt){this.classes=m,this.autoFocus=B,this.config=ue,this._cd=xe,this._console=nt,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=Et=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new r.vpe,this.focusEvent=new r.vpe,this.changeEvent=new r.vpe,this.openEvent=new r.vpe,this.closeEvent=new r.vpe,this.searchEvent=new r.vpe,this.clearEvent=new r.vpe,this.addEvent=new r.vpe,this.removeEvent=new r.vpe,this.scroll=new r.vpe,this.scrollToEnd=new r.vpe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=Ct(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new Vt.xQ,this._keyPress$=new Vt.xQ,this._onChange=Et=>{},this._onTouched=()=>{},this.clearItem=Et=>{const Nt=this.selectedItems.find(vt=>vt.value===Et);this.unselect(Nt)},this.trackByOption=(Et,Nt)=>this.trackByFn?this.trackByFn(Nt.value):Nt,this._mergeGlobalConfig(ue),this.itemsList=new Jt(this,ce()),this.element=ae.nativeElement}get items(){return this._items}set items(m){null===m&&(m=[]),this._itemsAreUsed=!0,this._items=m}get compareWith(){return this._compareWith}set compareWith(m){if(null!=m&&!ct(m))throw Error("`compareWith` must be a function.");this._compareWith=m}get clearSearchOnAdd(){return Re(this._clearSearchOnAdd)?this._clearSearchOnAdd:Re(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(m){this._clearSearchOnAdd=m}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(m=>m.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(m){m.multiple&&this.itemsList.clearSelected(),m.items&&this._setItems(m.items.currentValue||[]),m.isOpen&&(this._manualOpen=Re(m.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),Re(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(m){if(Tt[m.which]){if(!1===this.keyDownFn(m))return;this.handleKeyCode(m)}else m.key&&1===m.key.length&&this._keyPress$.next(m.key.toLocaleLowerCase())}handleKeyCode(m){switch(m.which){case Tt.ArrowDown:this._handleArrowDown(m);break;case Tt.ArrowUp:this._handleArrowUp(m);break;case Tt.Space:this._handleSpace(m);break;case Tt.Enter:this._handleEnter(m);break;case Tt.Tab:this._handleTab(m);break;case Tt.Esc:this.close(),m.preventDefault();break;case Tt.Backspace:this._handleBackspace()}}handleMousedown(m){const B=m.target;"INPUT"!==B.tagName&&m.preventDefault(),B.classList.contains("ng-clear-wrapper")?this.handleClearClick():B.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():B.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){!this.clearable||(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(m){this.itemsList.clearSelected(),this._handleWriteValue(m),this._cd.markForCheck()}registerOnChange(m){this._onChange=m}registerOnTouched(m){this._onTouched=m}setDisabledState(m){this._disabled=m,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(m){!m||m.disabled||this.disabled||(this.multiple&&m.selected?this.unselect(m):this.select(m),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(m){m.selected||(this.itemsList.select(m),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(m.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(m){!m||(this.itemsList.unselect(m),this.focus(),this._updateNgModel(),this.removeEvent.emit(m))}selectTag(){let m;m=ct(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const B=ue=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(ue,null):this.itemsList.addItem(ue);!function ft(E){return E instanceof Promise}(m)?m&&this.select(B(m)):m.then(ue=>this.select(B(ue))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}get showAddTag(){if(!this._validTerm)return!1;const m=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(B=>B.label.toLowerCase()===m)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(B=>B.label.toLowerCase()===m))&&!this.loading}showNoItemsFound(){const m=0===this.itemsList.filteredItems.length;return(m&&!this._isTypeahead&&!this.loading||m&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(m){this._isComposing=!1,!this.searchWhileComposing&&this.filter(m)}filter(m){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=m,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(m),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:m,items:this.itemsList.filteredItems.map(B=>B.value)}),this.open())}onInputFocus(m){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(m),this.focused=!0)}onInputBlur(m){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(m),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(m){m.disabled||this.itemsList.markItem(m)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const m=this.selectedItems&&this.selectedItems[0];this.searchTerm=m&&m.label||null}_setItems(m){const B=m[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=Re(B)?!tt(B):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(m),m.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&Re(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const m=ue=>{this.items=ue.map(ce=>({$ngOptionValue:ce.value,$ngOptionLabel:ce.elementRef.nativeElement.innerHTML,disabled:ce.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},B=()=>{const ue=(0,Mn.T)(this.ngOptions.changes,this._destroy$);(0,Mn.T)(...this.ngOptions.map(ce=>ce.stateChange$)).pipe((0,Se.R)(ue)).subscribe(ce=>{const ae=this.itemsList.findItem(ce.value);ae.disabled=ce.disabled,ae.label=ce.label||ae.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,Ne.O)(this.ngOptions),(0,Se.R)(this._destroy$)).subscribe(ue=>{this.bindLabel=this._defaultLabel,m(ue),B()})}_isValidWriteValue(m){if(!Re(m)||this.multiple&&""===m||Array.isArray(m)&&0===m.length)return!1;const B=ue=>!(!Re(this.compareWith)&&tt(ue)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(ue)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(m)?m.every(ue=>B(ue)):(this._console.warn("Multiple select ngModel should be array."),!1):B(m)}_handleWriteValue(m){if(!this._isValidWriteValue(m))return;const B=ue=>{let ce=this.itemsList.findItem(ue);if(ce)this.itemsList.select(ce);else{const ae=tt(ue),xe=!ae&&!this.bindValue;ae||xe?this.itemsList.select(this.itemsList.mapItem(ue,null)):this.bindValue&&(ce={[this.bindLabel]:null,[this.bindValue]:ue},this.itemsList.select(this.itemsList.mapItem(ce,null)))}};this.multiple?m.forEach(ue=>B(ue)):B(m)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,Se.R)(this._destroy$),(0,ve.b)(m=>this._pressedKeys.push(m)),(0,at.b)(200),(0,Ye.h)(()=>this._pressedKeys.length>0),(0,Be.U)(()=>this._pressedKeys.join(""))).subscribe(m=>{const B=this.itemsList.findByLabel(m);B&&(this.isOpen?(this.itemsList.markItem(B),this._scrollToMarked(),this._cd.markForCheck()):this.select(B)),this._pressedKeys=[]})}_setInputAttributes(){const m=this.searchInput.nativeElement,B={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const ue of Object.keys(B))m.setAttribute(ue,B[ue])}_updateNgModel(){const m=[];for(const ue of this.selectedItems)if(this.bindValue){let ce=null;ce=ue.children?ue.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(ue.value,this.bindValue),m.push(ce)}else m.push(ue.value);const B=this.selectedItems.map(ue=>ue.value);this.multiple?(this._onChange(m),this.changeEvent.emit(B)):(this._onChange(Re(m[0])?m[0]:null),this.changeEvent.emit(B[0])),this._cd.markForCheck()}_clearSearch(){!this.searchTerm||(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(m){this.searchTerm=m,this._isTypeahead&&this.typeahead.next(m)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.multiple&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(m){!1===this.isOpen&&!this.addTag||(this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),m.preventDefault()):this.showAddTag?(this.selectTag(),m.preventDefault()):this.close():this.close())}_handleEnter(m){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}m.preventDefault()}_handleSpace(m){this.isOpen||this._manualOpen||(this.open(),m.preventDefault())}_handleArrowDown(m){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),m.preventDefault()}_handleArrowUp(m){!this.isOpen||(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),m.preventDefault())}_nextItemIsTag(m){const B=this.itemsList.markedIndex+m;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(B<0||B===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const m=this.searchTerm&&this.searchTerm.trim();return m&&m.length>=this.minTermLength}_mergeGlobalConfig(m){this.placeholder=this.placeholder||m.placeholder,this.notFoundText=this.notFoundText||m.notFoundText,this.typeToSearchText=this.typeToSearchText||m.typeToSearchText,this.addTagText=this.addTagText||m.addTagText,this.loadingText=this.loadingText||m.loadingText,this.clearAllText=this.clearAllText||m.clearAllText,this.virtualScroll=Re(this.virtualScroll)?this.virtualScroll:!!Re(m.disableVirtualScroll)&&!m.disableVirtualScroll,this.openOnEnter=Re(this.openOnEnter)?this.openOnEnter:m.openOnEnter,this.appendTo=this.appendTo||m.appendTo,this.bindValue=this.bindValue||m.bindValue,this.bindLabel=this.bindLabel||m.bindLabel,this.appearance=this.appearance||m.appearance}}return E.\u0275fac=function(m){return new(m||E)(r.$8M("class"),r.$8M("autofocus"),r.Y36(hn),r.Y36(q),r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(k))},E.\u0275cmp=r.Xpm({type:E,selectors:[["ng-select"]],contentQueries:function(m,B,ue){if(1&m&&(r.Suo(ue,kt,5,r.Rgc),r.Suo(ue,Dt,5,r.Rgc),r.Suo(ue,Wt,5,r.Rgc),r.Suo(ue,De,5,r.Rgc),r.Suo(ue,se,5,r.Rgc),r.Suo(ue,K,5,r.Rgc),r.Suo(ue,Pe,5,r.Rgc),r.Suo(ue,Me,5,r.Rgc),r.Suo(ue,Ue,5,r.Rgc),r.Suo(ue,ut,5,r.Rgc),r.Suo(ue,It,5,r.Rgc),r.Suo(ue,bt,5)),2&m){let ce;r.iGM(ce=r.CRH())&&(B.optionTemplate=ce.first),r.iGM(ce=r.CRH())&&(B.optgroupTemplate=ce.first),r.iGM(ce=r.CRH())&&(B.labelTemplate=ce.first),r.iGM(ce=r.CRH())&&(B.multiLabelTemplate=ce.first),r.iGM(ce=r.CRH())&&(B.headerTemplate=ce.first),r.iGM(ce=r.CRH())&&(B.footerTemplate=ce.first),r.iGM(ce=r.CRH())&&(B.notFoundTemplate=ce.first),r.iGM(ce=r.CRH())&&(B.typeToSearchTemplate=ce.first),r.iGM(ce=r.CRH())&&(B.loadingTextTemplate=ce.first),r.iGM(ce=r.CRH())&&(B.tagTemplate=ce.first),r.iGM(ce=r.CRH())&&(B.loadingSpinnerTemplate=ce.first),r.iGM(ce=r.CRH())&&(B.ngOptions=ce)}},viewQuery:function(m,B){if(1&m&&(r.Gf(yt,5),r.Gf(Ln,7)),2&m){let ue;r.iGM(ue=r.CRH())&&(B.dropdownPanel=ue.first),r.iGM(ue=r.CRH())&&(B.searchInput=ue.first)}},hostVars:20,hostBindings:function(m,B){1&m&&r.NdJ("keydown",function(ce){return B.handleKeyDown(ce)}),2&m&&r.ekj("ng-select-typeahead",B.typeahead)("ng-select-multiple",B.multiple)("ng-select-taggable",B.addTag)("ng-select-searchable",B.searchable)("ng-select-clearable",B.clearable)("ng-select-opened",B.isOpen)("ng-select",B.useDefaultClass)("ng-select-disabled",B.disabled)("ng-select-filtered",B.filtered)("ng-select-single",B.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[r._Bn([{provide:_.JU,useExisting:(0,r.Gpc)(()=>E),multi:!0},Ke]),r.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],[1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(m,B){if(1&m){const ue=r.EpF();r.TgZ(0,"div",0),r.NdJ("mousedown",function(ae){return B.handleMousedown(ae)}),r.TgZ(1,"div",1)(2,"div",2),r._uU(3),r.qZA(),r.YNc(4,lr,2,2,"ng-container",3),r.YNc(5,dr,1,5,null,3),r.TgZ(6,"div",4)(7,"input",5,6),r.NdJ("input",function(){r.CHM(ue);const ae=r.MAs(8);return B.filter(ae.value)})("compositionstart",function(){return B.onCompositionStart()})("compositionend",function(){r.CHM(ue);const ae=r.MAs(8);return B.onCompositionEnd(ae.value)})("focus",function(ae){return B.onInputFocus(ae)})("blur",function(ae){return B.onInputBlur(ae)})("change",function(ae){return ae.stopPropagation()}),r.qZA()()(),r.YNc(9,zt,4,1,"ng-container",3),r.YNc(10,$n,3,1,"span",7),r.TgZ(11,"span",8),r._UZ(12,"span",9),r.qZA()(),r.YNc(13,sn,7,19,"ng-dropdown-panel",10)}2&m&&(r.ekj("ng-appearance-outline","outline"===B.appearance)("ng-has-value",B.hasValue),r.xp6(3),r.Oqu(B.placeholder),r.xp6(1),r.Q6J("ngIf",(!B.multiLabelTemplate||!B.multiple)&&B.selectedItems.length>0),r.xp6(1),r.Q6J("ngIf",B.multiple&&B.multiLabelTemplate&&B.selectedValues.length>0),r.xp6(1),r.uIk("aria-expanded",B.isOpen)("aria-owns",B.isOpen?B.dropdownId:null),r.xp6(1),r.Q6J("readOnly",!B.searchable||B.itemsList.maxItemsSelected)("disabled",B.disabled)("value",B.searchTerm?B.searchTerm:""),r.uIk("id",B.labelForId)("tabindex",B.tabIndex)("aria-activedescendant",B.isOpen?null==B.itemsList||null==B.itemsList.markedItem?null:B.itemsList.markedItem.htmlId:null)("aria-controls",B.isOpen?B.dropdownId:null),r.xp6(2),r.Q6J("ngIf",B.loading),r.xp6(1),r.Q6J("ngIf",B.showClear()),r.xp6(3),r.Q6J("ngIf",B.isOpen))},directives:[yt,un.O5,un.sg,St,un.tP,un.mk],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0}),E})();function te(){return new ye}class ye{constructor(){this._selected=[]}get value(){return this._selected}select(P,m,B){if(P.selected=!0,(!P.children||!m&&B)&&this._selected.push(P),m)if(P.parent){const ue=P.parent.children.length,ce=P.parent.children.filter(ae=>ae.selected).length;P.parent.selected=ue===ce}else P.children&&(this._setChildrenSelectedState(P.children,!0),this._removeChildren(P),this._selected=B&&this._activeChildren(P)?[...this._selected.filter(ue=>ue.parent!==P),P]:[...this._selected,...P.children.filter(ue=>!ue.disabled)])}unselect(P,m){if(this._selected=this._selected.filter(B=>B!==P),P.selected=!1,m)if(P.parent&&P.parent.selected){const B=P.parent.children;this._removeParent(P.parent),this._removeChildren(P.parent),this._selected.push(...B.filter(ue=>ue!==P&&!ue.disabled)),P.parent.selected=!1}else P.children&&(this._setChildrenSelectedState(P.children,!1),this._removeChildren(P))}clear(P){this._selected=P?this._selected.filter(m=>m.disabled):[]}_setChildrenSelectedState(P,m){for(const B of P)B.disabled||(B.selected=m)}_removeChildren(P){this._selected=[...this._selected.filter(m=>m.parent!==P),...P.children.filter(m=>m.parent===P&&m.disabled&&m.selected)]}_removeParent(P){this._selected=this._selected.filter(m=>m!==P)}_activeChildren(P){return P.children.every(m=>!m.disabled||m.selected)}}let we=(()=>{class E{}return E.\u0275fac=function(m){return new(m||E)},E.\u0275mod=r.oAB({type:E}),E.\u0275inj=r.cJS({providers:[{provide:q,useValue:te}],imports:[[un.ez]]}),E})()},3044:(J,F,p)=>{"use strict";p.d(F,{TO:()=>ht,Hz:()=>yt,mr:()=>hn,Mq:()=>bt});var r=p(5062),_=p(2198);class V{constructor(q,Y){this.open=q,this.close=Y||q}isManual(){return"manual"===this.open||"manual"===this.close}}const j={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};const L=typeof window<"u"&&window||{};let Je;function Gt(){if(typeof L.document>"u")return"bs4";const k=L.document.createElement("span");k.innerText="testing bs version",k.classList.add("d-none"),k.classList.add("pl-1"),L.document.head.appendChild(k);const q=k.getBoundingClientRect(),Y=L.getComputedStyle(k).paddingLeft;return!q||q&&0!==q.top?(L.document.head.removeChild(k),"bs3"):Y&&parseFloat(Y)?(L.document.head.removeChild(k),"bs4"):(L.document.head.removeChild(k),"bs5")}function Fe(){return typeof L>"u"||(typeof L.__theme>"u"?(Je||(Je=Gt()),"bs3"===Je):"bs3"===L.__theme)}function le(){return!Fe()&&(Je||(Je=Gt()),"bs4"===Je)}function He(){return{isBs3:Fe(),isBs4:le(),isBs5:!Fe()&&!le()&&(Je||(Je=Gt()),"bs5"===Je)}}typeof console>"u"||console;var un=p(6895),Fn=p(5529),bn=p(6787),Yn=p(3753),Ht=p(1086),Yt=p(352),An=(()=>{return(k=An||(An={})).top="top",k.bottom="bottom",k.left="left",k.right="right",k.auto="auto",k.end="right",k.start="left",k["top left"]="top left",k["top right"]="top right",k["right top"]="right top",k["right bottom"]="right bottom",k["bottom right"]="bottom right",k["bottom left"]="bottom left",k["left bottom"]="left bottom",k["left top"]="left top",k["top start"]="top left",k["top end"]="top right",k["end top"]="right top",k["end bottom"]="right bottom",k["bottom end"]="bottom right",k["bottom start"]="bottom left",k["start bottom"]="start bottom",k["start top"]="left top",An;var k})(),cn=(()=>{return(k=cn||(cn={})).top="top",k.bottom="bottom",k.left="start",k.right="end",k.auto="auto",k.end="end",k.start="start",k["top left"]="top start",k["top right"]="top end",k["right top"]="end top",k["right bottom"]="end bottom",k["bottom right"]="bottom end",k["bottom left"]="bottom start",k["left bottom"]="start bottom",k["left top"]="start top",k["top start"]="top start",k["top end"]="top end",k["end top"]="end top",k["end bottom"]="end bottom",k["bottom end"]="bottom end",k["bottom start"]="bottom start",k["start bottom"]="start bottom",k["start top"]="start top",cn;var k})();function Ln(k,q){if(1!==k.nodeType)return[];const te=k.ownerDocument.defaultView?.getComputedStyle(k,null);return q?te&&te[q]:te}function wn(k){if(!k)return document.documentElement;let te,Y=k?.offsetParent;for(;null===Y&&k.nextElementSibling&&te!==k.nextElementSibling;)te=k.nextElementSibling,Y=te.offsetParent;const ye=Y&&Y.nodeName;return ye&&"BODY"!==ye&&"HTML"!==ye?Y&&-1!==["TH","TD","TABLE"].indexOf(Y.nodeName)&&"static"===Ln(Y,"position")?wn(Y):Y:te?te.ownerDocument.documentElement:document.documentElement}function En(k){return null!==k.parentNode?En(k.parentNode):k}function Vn(k,q){if(!(k&&k.nodeType&&q&&q.nodeType))return document.documentElement;const Y=k.compareDocumentPosition(q)&Node.DOCUMENT_POSITION_FOLLOWING,te=Y?k:q,ye=Y?q:k,we=document.createRange();we.setStart(te,0),we.setEnd(ye,0);const E=we.commonAncestorContainer;if(k!==E&&q!==E||te.contains(ye))return function ur(k){const{nodeName:q}=k;return"BODY"!==q&&("HTML"===q||wn(k.firstElementChild)===k)}(E)?E:wn(E);const P=En(k);return P.host?Vn(P.host,q):Vn(k,En(q).host)}function lr(k){if(!k||!k.parentElement)return document.documentElement;let q=k.parentElement;for(;q?.parentElement&&"none"===Ln(q,"transform");)q=q.parentElement;return q||document.documentElement}function or(k,q){const Y="x"===q?"Left":"Top",te="Left"===Y?"Right":"Bottom";return parseFloat(k[`border${Y}Width`])+parseFloat(k[`border${te}Width`])}function rr(k,q,Y,te){return Math.max(q[`offset${k}`],q[`scroll${k}`],Y[`client${k}`],Y[`offset${k}`],Y[`scroll${k}`],0)}function dr(k){const q=k.body,Y=k.documentElement;return{height:rr("Height",q,Y),width:rr("Width",q,Y)}}function zn(k){return{...k,right:(k.left||0)+k.width,bottom:(k.top||0)+k.height}}function zt(k){return"number"==typeof k||"[object Number]"===Object.prototype.toString.call(k)}function $n(k){const q=k.getBoundingClientRect();if(!(q&&zt(q.top)&&zt(q.left)&&zt(q.bottom)&&zt(q.right)))return q;const Y={left:q.left,top:q.top,width:q.right-q.left,height:q.bottom-q.top},te="HTML"===k.nodeName?dr(k.ownerDocument):void 0,ye=te?.width||k.clientWidth||zt(q.right)&&zt(Y.left)&&q.right-Y.left||0,we=te?.height||k.clientHeight||zt(q.bottom)&&zt(Y.top)&&q.bottom-Y.top||0;let E=k.offsetWidth-ye,P=k.offsetHeight-we;if(E||P){const m=Ln(k);E-=or(m,"x"),P-=or(m,"y"),Y.width-=E,Y.height-=P}return zn(Y)}function jt(k){return"HTML"===k.nodeName?k:k.parentNode||k.host}function ze(k){if(!k)return document.body;switch(k.nodeName){case"HTML":case"BODY":return k.ownerDocument.body;case"#document":return k.body}const{overflow:q,overflowX:Y,overflowY:te}=Ln(k);return/(auto|scroll|overlay)/.test(String(q)+String(te)+String(Y))?k:ze(jt(k))}function me(k,q,Y=!1){const te="HTML"===q.nodeName,ye=$n(k),we=$n(q),P=(ze(k),Ln(q)),m=parseFloat(P.borderTopWidth),B=parseFloat(P.borderLeftWidth);Y&&te&&(we.top=Math.max(we.top??0,0),we.left=Math.max(we.left??0,0));const ue=zn({top:(ye.top??0)-(we.top??0)-m,left:(ye.left??0)-(we.left??0)-B,width:ye.width,height:ye.height});if(ue.marginTop=0,ue.marginLeft=0,te){const ce=parseFloat(P.marginTop),ae=parseFloat(P.marginLeft);zt(ue.top)&&(ue.top-=m-ce),zt(ue.bottom)&&(ue.bottom-=m-ce),zt(ue.left)&&(ue.left-=B-ae),zt(ue.right)&&(ue.right-=B-ae),ue.marginTop=ce,ue.marginLeft=ae}return ue}function he(k,q="top"){const Y="top"===q?"scrollTop":"scrollLeft",te=k.nodeName;if("BODY"===te||"HTML"===te){const ye=k.ownerDocument.documentElement;return(k.ownerDocument.scrollingElement||ye)[Y]}return k[Y]}function je(k){const q=k.nodeName;return"BODY"!==q&&"HTML"!==q&&("fixed"===Ln(k,"position")||je(jt(k)))}function qe(k,q,Y=0,te,ye=!1){let we={top:0,left:0};const E=ye?lr(k):Vn(k,q);if("viewport"===te)we=function Qe(k,q=!1){const Y=k.ownerDocument.documentElement,te=me(k,Y),ye=Math.max(Y.clientWidth,window.innerWidth||0),we=Math.max(Y.clientHeight,window.innerHeight||0),E=q?0:he(Y),P=q?0:he(Y,"left");return zn({top:E-Number(te?.top)+Number(te?.marginTop),left:P-Number(te?.left)+Number(te?.marginLeft),width:ye,height:we})}(E,ye);else{let P;"scrollParent"===te?(P=ze(jt(q)),"BODY"===P.nodeName&&(P=k.ownerDocument.documentElement)):P="window"===te?k.ownerDocument.documentElement:te;const m=me(P,E,ye);if(m&&"HTML"===P.nodeName&&!je(E)){const{height:B,width:ue}=dr(k.ownerDocument);zt(we.top)&&zt(m.top)&&zt(m.marginTop)&&(we.top+=m.top-m.marginTop),zt(we.top)&&(we.bottom=Number(B)+Number(m.top)),zt(we.left)&&zt(m.left)&&zt(m.marginLeft)&&(we.left+=m.left-m.marginLeft),zt(we.top)&&(we.right=Number(ue)+Number(m.left))}else m&&(we=m)}return zt(we.left)&&(we.left+=Y),zt(we.top)&&(we.top+=Y),zt(we.right)&&(we.right-=Y),zt(we.bottom)&&(we.bottom-=Y),we}function ot({width:k,height:q}){return k*q}function dn(k,q,Y,te,ye=["top","bottom","right","left"],we="viewport",E=0){if(-1===k.indexOf("auto"))return k;const P=qe(Y,te,E,we),m={top:{width:P?.width??0,height:(q?.top??0)-(P?.top??0)},right:{width:(P?.right??0)-(q?.right??0),height:P?.height??0},bottom:{width:P?.width??0,height:(P?.bottom??0)-(q?.bottom??0)},left:{width:(q.left??0)-(P?.left??0),height:P?.height??0}},B=Object.keys(m).map(xe=>({position:xe,...m[xe],area:ot(m[xe])})).sort((xe,nt)=>nt.area-xe.area);let ue=B.filter(({width:xe,height:nt})=>xe>=Y.clientWidth&&nt>=Y.clientHeight);ue=ue.filter(({position:xe})=>ye.some(nt=>nt===xe));const ce=ue.length>0?ue[0].position:B[0].position,ae=k.split(" ")[1];return Y.className=Y.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${He().isBs5?cn[ce]:ce}`),ce+(ae?`-${ae}`:"")}const vn=(k,q=0)=>k?parseFloat(k):q;function Dn(k){const Y=k.ownerDocument.defaultView?.getComputedStyle(k),te=vn(Y?.marginTop)+vn(Y?.marginBottom),ye=vn(Y?.marginLeft)+vn(Y?.marginRight);return{width:Number(k.offsetWidth)+ye,height:Number(k.offsetHeight)+te}}function Rt(k,q,Y){return me(q,Y?lr(k):Vn(k,q),Y)}function $t(k,q,Y){const te=Y.split(" ")[0],ye=Dn(k),we={width:ye.width,height:ye.height},E=-1!==["right","left"].indexOf(te),P=E?"top":"left",m=E?"left":"top",B=E?"height":"width",ue=E?"width":"height";return we[P]=(q[P]??0)+q[B]/2-ye[B]/2,we[m]=te===m?(q[m]??0)-ye[ue]:q[function At(k){const q={left:"right",right:"left",bottom:"top",top:"bottom"};return k.replace(/left|right|bottom|top/g,Y=>q[Y])}(m)]??0,we}function sn(k,q){return!!k.modifiers[q]?.enabled}const fe={top:["top","top start","top end"],bottom:["bottom","bottom start","bottom end"],start:["start","start top","start bottom"],end:["end","end top","end bottom"]};function Ee(k,q){return!!He().isBs5&&fe[q].includes(k)}function Re(k,q,Y){!k||!q||Object.keys(q).forEach(te=>{let ye="";-1!==["width","height","top","right","bottom","left"].indexOf(te)&&function Sn(k){return""!==k&&!isNaN(parseFloat(k))&&isFinite(Number(k))}(q[te])&&(ye="px"),Y?Y.setStyle(k,te,`${String(q[te])}${ye}`):k.style[te]=String(q[te])+ye})}function tt(k){let q=k.offsets.target;const Y=k.instance.target.querySelector(".arrow");if(!Y)return k;const te=-1!==["left","right"].indexOf(k.placement.split(" ")[0]),ye=te?"height":"width",we=te?"Top":"Left",E=we.toLowerCase(),P=te?"left":"top",m=te?"bottom":"right",B=Dn(Y)[ye],ue=k.placement.split(" ")[1];(k.offsets.host[m]??0)-B<(q[E]??0)&&(q[E]-=(q[E]??0)-((k.offsets.host[m]??0)-B)),Number(k.offsets.host[E])+Number(B)>(q[m]??0)&&(q[E]+=Number(k.offsets.host[E])+Number(B)-Number(q[m])),q=zn(q);const ce=Ln(k.instance.target),ae=parseFloat(ce[`margin${we}`])||0,xe=parseFloat(ce[`border${we}Width`])||0;let nt;if(ue){const Nt=parseFloat(ce.borderRadius)||0,vt=Number(ae+xe+Nt);nt=E===ue?Number(k.offsets.host[E])+vt:Number(k.offsets.host[E])+Number(k.offsets.host[ye]-vt)}else nt=Number(k.offsets.host[E])+Number(k.offsets.host[ye]/2-B/2);let Et=nt-(q[E]??0)-ae-xe;return Et=Math.max(Math.min(q[ye]-(B+5),Et),0),k.offsets.arrow={[E]:Math.round(Et),[P]:""},k.instance.arrow=Y,k}function ft(k){if(k.offsets.target=zn(k.offsets.target),!sn(k.options,"flip"))return k.offsets.target={...k.offsets.target,...$t(k.instance.target,k.offsets.host,k.placement)},k;const q=qe(k.instance.target,k.instance.host,0,"viewport",!1);let Y=k.placement.split(" ")[0],te=k.placement.split(" ")[1]||"";const P=dn("auto",k.offsets.host,k.instance.target,k.instance.host,k.options.allowedPositions),m=[Y,P];return m.forEach((B,ue)=>{if(Y!==B||m.length===ue+1)return;Y=k.placement.split(" ")[0];const ce="left"===Y&&Math.floor(k.offsets.target.right??0)>Math.floor(k.offsets.host.left??0)||"right"===Y&&Math.floor(k.offsets.target.left??0)<Math.floor(k.offsets.host.right??0)||"top"===Y&&Math.floor(k.offsets.target.bottom??0)>Math.floor(k.offsets.host.top??0)||"bottom"===Y&&Math.floor(k.offsets.target.top??0)<Math.floor(k.offsets.host.bottom??0),ae=Math.floor(k.offsets.target.left??0)<Math.floor(q.left??0),xe=Math.floor(k.offsets.target.right??0)>Math.floor(q.right??0),nt=Math.floor(k.offsets.target.top??0)<Math.floor(q.top??0),Et=Math.floor(k.offsets.target.bottom??0)>Math.floor(q.bottom??0),Nt="left"===Y&&ae||"right"===Y&&xe||"top"===Y&&nt||"bottom"===Y&&Et,vt=-1!==["top","bottom"].indexOf(Y),pt=vt&&"left"===te&&ae||vt&&"right"===te&&xe||!vt&&"left"===te&&nt||!vt&&"right"===te&&Et;(ce||Nt||pt)&&((ce||Nt)&&(Y=m[ue+1]),pt&&(te=function Xn(k){return"right"===k?"left":"left"===k?"right":k}(te)),k.placement=Y+(te?` ${te}`:""),k.offsets.target={...k.offsets.target,...$t(k.instance.target,k.offsets.host,k.placement)})}),k}function St(k){if(!sn(k.options,"preventOverflow"))return k;const q="transform",Y=k.instance.target.style,{top:te,left:ye,[q]:we}=Y;Y.top="",Y.left="",Y[q]="";const E=qe(k.instance.target,k.instance.host,0,k.options.modifiers.preventOverflow?.boundariesElement||"scrollParent",!1);Y.top=te,Y.left=ye,Y[q]=we;const m={primary(B){let ue=k.offsets.target[B];return(k.offsets.target[B]??0)<(E[B]??0)&&(ue=Math.max(k.offsets.target[B]??0,E[B]??0)),{[B]:ue}},secondary(B){const ue="right"===B,ce=ue?"left":"top";let xe=k.offsets.target[ce];return(k.offsets.target[B]??0)>(E[B]??0)&&(xe=Math.min(k.offsets.target[ce]??0,(E[B]??0)-k.offsets.target[ue?"width":"height"])),{[ce]:xe}}};return["left","right","top","bottom"].forEach(B=>{const ue=-1!==["left","top","start"].indexOf(B)?m.primary:m.secondary;k.offsets.target={...k.offsets.target,...ue(B)}}),k}function kt(k){const q=k.placement,Y=q.split(" ")[0],te=q.split(" ")[1];if(te){const{host:ye,target:we}=k.offsets,E=-1!==["bottom","top"].indexOf(Y),P=E?"left":"top",m=E?"width":"height",B={start:{[P]:ye[P]},end:{[P]:(ye[P]??0)+ye[m]-we[m]}};k.offsets.target={...we,[P]:P===te?B.start[P]:B.end[P]}}return k}const Wt=new class Dt{position(q,Y){return this.offset(q,Y)}offset(q,Y){return Rt(Y,q)}positionElements(q,Y,te,ye,we){const E=[ft,kt,St,tt],m=function ct(k,q,Y,te){if(!k||!q)return;const ye=Rt(k,q);!Y.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!Y.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(Y="auto");const we=!!Y.match(/auto/g);let E=Y.match(/auto\s(left|right|top|bottom|start|end)/)?Y.split(" ")[1]||"auto":Y;const P=E.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);return P&&(E=P[1]+(P[2]?` ${P[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(E)&&(E="auto"),E=dn(E,ye,k,q,te?te.allowedPositions:void 0),{options:te||{modifiers:{}},instance:{target:k,host:q,arrow:void 0},offsets:{target:$t(k,ye,E),host:ye,arrow:void 0},positionFixed:!1,placement:E,placementAuto:we}}(Y,q,An[te],we);if(m)return E.reduce((B,ue)=>ue(B),m)}};function De(k,q,Y,te,ye,we){const E=Wt.positionElements(k,q,Y,te,ye);if(!E)return;const P=function Ft(k){return{width:k.offsets.target.width,height:k.offsets.target.height,left:Math.floor(k.offsets.target.left??0),top:Math.round(k.offsets.target.top??0),bottom:Math.round(k.offsets.target.bottom??0),right:Math.floor(k.offsets.target.right??0)}}(E);Re(q,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${P.left}px, ${P.top}px, 0px)`},we),E.instance.arrow&&Re(E.instance.arrow,E.offsets.arrow,we),function _e(k,q){const Y=k.instance.target;let te=Y.className;const ye=He().isBs5?cn[k.placement]:k.placement;k.placementAuto&&(te=te.replace(/bs-popover-auto/g,`bs-popover-${ye}`),te=te.replace(/ms-2|me-2|mb-2|mt-2/g,""),te=te.replace(/bs-tooltip-auto/g,`bs-tooltip-${ye}`),te=te.replace(/\sauto/g,` ${ye}`),-1!==te.indexOf("popover")&&(te=te+" "+function Ae(k){return He().isBs5?Ee(k,"end")?"ms-2":Ee(k,"start")?"me-2":Ee(k,"top")?"mb-2":Ee(k,"bottom")?"mt-2":"":""}(ye)),-1!==te.indexOf("popover")&&-1===te.indexOf("popover-auto")&&(te+=" popover-auto"),-1!==te.indexOf("tooltip")&&-1===te.indexOf("tooltip-auto")&&(te+=" tooltip-auto")),te=te.replace(/left|right|top|bottom|end|start/g,`${ye.split(" ")[0]}`),q?q.setAttribute(Y,"class",te):Y.className=te}(E,we)}let se=(()=>{class k{constructor(Y,te,ye){this.update$$=new Fn.xQ,this.positionElements=new Map,this.isDisabled=!1,(0,un.NF)(ye)&&Y.runOutsideAngular(()=>{this.triggerEvent$=(0,bn.T)((0,Yn.R)(window,"scroll",{passive:!0}),(0,Yn.R)(window,"resize",{passive:!0}),(0,Ht.of)(0,Yt.Z),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(we=>{De(K(we.target),K(we.element),we.attachment,we.appendToBody,this.options,te.createRenderer(null,null))})})})}position(Y){this.addPositionElement(Y)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(Y){this.positionElements.set(K(Y.element),Y)}calcPosition(){this.update$$.next(null)}deletePositionElement(Y){this.positionElements.delete(K(Y))}setOptions(Y){this.options=Y}}return k.\u0275fac=function(Y){return new(Y||k)(r.LFG(r.R0b),r.LFG(r.FYo),r.LFG(r.Lbi))},k.\u0275prov=r.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();function K(k){return"string"==typeof k?document.querySelector(k):k instanceof r.SBq?k.nativeElement:k??null}class Me{constructor(q,Y,te){this.nodes=q,this.viewRef=Y,this.componentRef=te}}class Ue{constructor(q,Y,te,ye,we,E,P,m){this._viewContainerRef=q,this._renderer=Y,this._elementRef=te,this._injector=ye,this._componentFactoryResolver=we,this._ngZone=E,this._applicationRef=P,this._posService=m,this.onBeforeShow=new r.vpe,this.onShown=new r.vpe,this.onBeforeHide=new r.vpe,this.onHidden=new r.vpe,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(q){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(q),this}to(q){return this.container=q||this.container,this}position(q){return q?(this.attachment=q.attachment||this.attachment,this._elementRef=q.target||this._elementRef,this):this}provide(q){return this._providers.push(q),this}show(q={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(q.content,q.context,q.initialState);const Y=r.zs3.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(Y,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,q),this.container instanceof r.SBq&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&typeof document<"u"){const te=document.querySelector(this.container)||document.querySelector(this.containerDefaultSelector);if(!te)return;te.appendChild(this._componentRef.location.nativeElement)}!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(q.id?{id:q.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(q){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const Y=this._componentRef.location.nativeElement;return Y.parentNode?.removeChild(Y),this._contentRef?.componentRef?.destroy(),this._viewContainerRef&&this._contentRef?.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef?.viewRef?.destroy(),this._contentRef=void 0,this._componentRef=void 0,this._removeGlobalListener(),this.onHidden.emit(q?{id:q}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(q){this.triggers=q.triggers||this.triggers,this._listenOpts.outsideClick=q.outsideClick,this._listenOpts.outsideEsc=q.outsideEsc,q.target=q.target||this._elementRef?.nativeElement;const Y=this._listenOpts.hide=()=>q.hide?q.hide():void this.hide(),te=this._listenOpts.show=we=>{q.show?q.show(we):this.show(we),we()};return this._renderer&&(this._unregisterListenersFn=function R(k,q){const Y=function A(k,q=j){const Y=(k||"").trim();if(0===Y.length)return[];const te=Y.split(/\s+/).map(we=>we.split(":")).map(we=>{const E=q[we[0]]||we;return new V(E[0],E[1])}),ye=te.filter(we=>we.isManual());if(ye.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===ye.length&&te.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return te}(q.triggers),te=q.target;if(1===Y.length&&Y[0].isManual())return Function.prototype;const ye=[],we=[],E=()=>{we.forEach(P=>ye.push(P())),we.length=0};return Y.forEach(P=>{const m=P.open===P.close,B=m?q.toggle:q.show;if(!m&&P.close&&q.hide){const ue=k.listen(te,P.close,q.hide);we.push(()=>ue)}B&&ye.push(k.listen(te,P.open,()=>B(E)))}),()=>{ye.forEach(P=>P())}}(this._renderer,{target:q.target,triggers:q.triggers,show:te,hide:Y,toggle:we=>{this.isShown?Y():te(we)}})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline(q,Y){return q&&Y&&(this._inlineViewRef=q.createEmbeddedView(Y)),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const q=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&(this._globalListener=function x(k,q){return q.outsideClick?k.listen("document","click",Y=>{q.target&&q.target.contains(Y.target)||q.targets&&q.targets.some(te=>te.contains(Y.target))||q.hide&&q.hide()}):Function.prototype}(this._renderer,{targets:[q,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}this._listenOpts.outsideEsc&&this._renderer&&this._elementRef&&(this._globalListener=function H(k,q){return q.outsideEsc?k.listen("document","keyup.esc",Y=>{q.target&&q.target.contains(Y.target)||q.targets&&q.targets.some(te=>te.contains(Y.target))||q.hide&&q.hide()}):Function.prototype}(this._renderer,{targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){this._zoneSubscription||!this.attachment||(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef?.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{!this._componentRef||this._posService.calcPosition()}))}_unsubscribePositioning(){!this._zoneSubscription||(this._zoneSubscription.unsubscribe(),this._zoneSubscription=void 0)}_getContentRef(q,Y,te){if(!q)return new Me([]);if(q instanceof r.Rgc){if(this._viewContainerRef){const E=this._viewContainerRef.createEmbeddedView(q,Y);return E.markForCheck(),new Me([E.rootNodes],E)}const we=q.createEmbeddedView({});return this._applicationRef.attachView(we),new Me([we.rootNodes],we)}if("function"==typeof q){const we=this._componentFactoryResolver.resolveComponentFactory(q),E=r.zs3.create({providers:this._providers,parent:this._injector}),P=we.create(E);return Object.assign(P.instance,te),this._applicationRef.attachView(P.hostView),new Me([[P.location.nativeElement]],P.hostView,P)}const ye=this._renderer?[this._renderer.createText(`${q}`)]:[];return new Me([ye])}}let ut=(()=>{class k{constructor(Y,te,ye,we,E){this._componentFactoryResolver=Y,this._ngZone=te,this._injector=ye,this._posService=we,this._applicationRef=E}createLoader(Y,te,ye){return new Ue(te,ye,Y,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService)}}return k.\u0275fac=function(Y){return new(Y||k)(r.LFG(r._Vd),r.LFG(r.R0b),r.LFG(r.zs3),r.LFG(se),r.LFG(r.z2F))},k.\u0275prov=r.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();var It=p(7340);const Ct=function(k){return{dropdown:k}},an=["*"];let Pt=(()=>{class k{constructor(){this.autoClose=!0,this.insideClick=!1,this.isAnimated=!1,this.stopOnClickPropagation=!1}}return k.\u0275fac=function(Y){return new(Y||k)},k.\u0275prov=r.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})(),Jt=(()=>{class k{constructor(){this.direction="down",this.autoClose=!0,this.insideClick=!1,this.isAnimated=!1,this.stopOnClickPropagation=!1,this.isOpenChange=new r.vpe,this.isDisabledChange=new r.vpe,this.toggleClick=new r.vpe,this.counts=0,this.dropdownMenu=new Promise(Y=>{this.resolveDropdownMenu=Y})}}return k.\u0275fac=function(Y){return new(Y||k)},k.\u0275prov=r.Yz7({token:k,factory:k.\u0275fac,providedIn:"platform"}),k})();const Ke=[(0,It.oB)({height:0,overflow:"hidden"}),(0,It.jt)("220ms cubic-bezier(0, 0, 0.2, 1)",(0,It.oB)({height:"*",overflow:"hidden"}))];let it=(()=>{class k{constructor(Y,te,ye,we,E){this._state=Y,this.cd=te,this._renderer=ye,this._element=we,this.isOpen=!1,this._factoryDropDownAnimation=E.build(Ke),this._subscription=Y.isOpenChange.subscribe(P=>{this.isOpen=P;const m=this._element.nativeElement.querySelector(".dropdown-menu");this._renderer.addClass(this._element.nativeElement.querySelector("div"),"open"),m&&!Fe()&&(this._renderer.addClass(m,"show"),(m.classList.contains("dropdown-menu-right")||m.classList.contains("dropdown-menu-end"))&&(this._renderer.setStyle(m,"left","auto"),this._renderer.setStyle(m,"right","0")),"up"===this.direction&&(this._renderer.setStyle(m,"top","auto"),this._renderer.setStyle(m,"transform","translateY(-101%)"))),m&&this._state.isAnimated&&this._factoryDropDownAnimation.create(m).play(),this.cd.markForCheck(),this.cd.detectChanges()})}get direction(){return this._state.direction}_contains(Y){return this._element.nativeElement.contains(Y)}ngOnDestroy(){this._subscription.unsubscribe()}}return k.\u0275fac=function(Y){return new(Y||k)(r.Y36(Jt),r.Y36(r.sBO),r.Y36(r.Qsj),r.Y36(r.SBq),r.Y36(It._j))},k.\u0275cmp=r.Xpm({type:k,selectors:[["bs-dropdown-container"]],hostAttrs:[2,"display","block","position","absolute","z-index","1040"],ngContentSelectors:an,decls:2,vars:9,consts:[[3,"ngClass"]],template:function(Y,te){1&Y&&(r.F$t(),r.TgZ(0,"div",0),r.Hsn(1),r.qZA()),2&Y&&(r.ekj("dropup","up"===te.direction)("show",te.isOpen)("open",te.isOpen),r.Q6J("ngClass",r.VKq(7,Ct,"down"===te.direction)))},directives:[un.mk],encapsulation:2,changeDetection:0}),k})(),ht=(()=>{class k{constructor(Y,te,ye,we,E,P,m){this._elementRef=Y,this._renderer=te,this._viewContainerRef=ye,this._cis=we,this._state=E,this._config=P,this.dropup=!1,this._isInlineOpen=!1,this._isDisabled=!1,this._subscriptions=[],this._isInited=!1,this._state.autoClose=this._config.autoClose,this._state.insideClick=this._config.insideClick,this._state.isAnimated=this._config.isAnimated,this._state.stopOnClickPropagation=this._config.stopOnClickPropagation,this._factoryDropDownAnimation=m.build(Ke),this._dropdown=this._cis.createLoader(this._elementRef,this._viewContainerRef,this._renderer).provide({provide:Jt,useValue:this._state}),this.onShown=this._dropdown.onShown,this.onHidden=this._dropdown.onHidden,this.isOpenChange=this._state.isOpenChange}set autoClose(Y){this._state.autoClose=Y}get autoClose(){return this._state.autoClose}set isAnimated(Y){this._state.isAnimated=Y}get isAnimated(){return this._state.isAnimated}set insideClick(Y){this._state.insideClick=Y}get insideClick(){return this._state.insideClick}set isDisabled(Y){this._isDisabled=Y,this._state.isDisabledChange.emit(Y),Y&&this.hide()}get isDisabled(){return this._isDisabled}get isOpen(){return this._showInline?this._isInlineOpen:this._dropdown.isShown}set isOpen(Y){Y?this.show():this.hide()}get isBs4(){return!Fe()}get _showInline(){return!this.container}ngOnInit(){this._isInited||(this._isInited=!0,this._dropdown.listen({outsideClick:!1,triggers:this.triggers,show:()=>this.show()}),this._subscriptions.push(this._state.toggleClick.subscribe(Y=>this.toggle(Y))),this._subscriptions.push(this._state.isDisabledChange.pipe((0,_.h)(Y=>Y)).subscribe(()=>this.hide())))}show(){if(!this.isOpen&&!this.isDisabled){if(this._showInline)return this._inlinedMenu||this._state.dropdownMenu.then(Y=>{this._dropdown.attachInline(Y.viewContainer,Y.templateRef),this._inlinedMenu=this._dropdown._inlineViewRef,this.addBs4Polyfills(),this._inlinedMenu&&this._renderer.addClass(this._inlinedMenu.rootNodes[0].parentNode,"open"),this.playAnimation()}).catch(),this.addBs4Polyfills(),this._isInlineOpen=!0,this.onShown.emit(!0),this._state.isOpenChange.emit(!0),void this.playAnimation();this._state.dropdownMenu.then(Y=>{const te=this.dropup||typeof this.dropup<"u"&&this.dropup;this._state.direction=te?"up":"down";const ye=this.placement||(te?"top start":"bottom start");this._dropdown.attach(it).to(this.container).position({attachment:ye}).show({content:Y.templateRef,placement:ye}),this._state.isOpenChange.emit(!0)}).catch()}}hide(){!this.isOpen||(this._showInline?(this.removeShowClass(),this.removeDropupStyles(),this._isInlineOpen=!1,this.onHidden.emit(!0)):this._dropdown.hide(),this._state.isOpenChange.emit(!1))}toggle(Y){return this.isOpen||!Y?this.hide():this.show()}_contains(Y){return this._elementRef.nativeElement.contains(Y.target)||this._dropdown.instance&&this._dropdown.instance._contains(Y.target)}navigationClick(Y){const te=this._elementRef.nativeElement.querySelector(".dropdown-menu");if(!te)return;const ye=this._elementRef.nativeElement.ownerDocument.activeElement,we=te.querySelectorAll(".dropdown-item");switch(Y.keyCode){case 38:this._state.counts>0&&we[--this._state.counts].focus();break;case 40:this._state.counts+1<we.length&&(ye.classList!==we[this._state.counts].classList?we[this._state.counts].focus():we[++this._state.counts].focus())}Y.preventDefault()}ngOnDestroy(){for(const Y of this._subscriptions)Y.unsubscribe();this._dropdown.dispose()}addBs4Polyfills(){Fe()||(this.addShowClass(),this.checkRightAlignment(),this.addDropupStyles())}playAnimation(){this._state.isAnimated&&this._inlinedMenu&&setTimeout(()=>{this._inlinedMenu&&this._factoryDropDownAnimation.create(this._inlinedMenu.rootNodes[0]).play()})}addShowClass(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&this._renderer.addClass(this._inlinedMenu.rootNodes[0],"show")}removeShowClass(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&this._renderer.removeClass(this._inlinedMenu.rootNodes[0],"show")}checkRightAlignment(){if(this._inlinedMenu&&this._inlinedMenu.rootNodes[0]){const Y=this._inlinedMenu.rootNodes[0].classList.contains("dropdown-menu-right")||this._inlinedMenu.rootNodes[0].classList.contains("dropdown-menu-end");this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"left",Y?"auto":"0"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"right",Y?"0":"auto")}}addDropupStyles(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&(this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"top",this.dropup?"auto":"100%"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"transform",this.dropup?"translateY(-101%)":"translateY(0)"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"bottom","auto"))}removeDropupStyles(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&(this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"top"),this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"transform"),this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"bottom"))}}return k.\u0275fac=function(Y){return new(Y||k)(r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(r.s_b),r.Y36(ut),r.Y36(Jt),r.Y36(Pt),r.Y36(It._j))},k.\u0275dir=r.lG2({type:k,selectors:[["","bsDropdown",""],["","dropdown",""]],hostVars:6,hostBindings:function(Y,te){1&Y&&r.NdJ("keydown.arrowDown",function(we){return te.navigationClick(we)})("keydown.arrowUp",function(we){return te.navigationClick(we)}),2&Y&&r.ekj("dropup",te.dropup)("open",te.isOpen)("show",te.isOpen&&te.isBs4)},inputs:{placement:"placement",triggers:"triggers",container:"container",dropup:"dropup",autoClose:"autoClose",isAnimated:"isAnimated",insideClick:"insideClick",isDisabled:"isDisabled",isOpen:"isOpen"},outputs:{isOpenChange:"isOpenChange",onShown:"onShown",onHidden:"onHidden"},exportAs:["bs-dropdown"],features:[r._Bn([Jt])]}),k})(),yt=(()=>{class k{constructor(Y,te,ye){Y.resolveDropdownMenu({templateRef:ye,viewContainer:te})}}return k.\u0275fac=function(Y){return new(Y||k)(r.Y36(Jt),r.Y36(r.s_b),r.Y36(r.Rgc))},k.\u0275dir=r.lG2({type:k,selectors:[["","bsDropdownMenu",""],["","dropdownMenu",""]],exportAs:["bs-dropdown-menu"]}),k})(),bt=(()=>{class k{constructor(Y,te,ye,we,E){this._changeDetectorRef=Y,this._dropdown=te,this._element=ye,this._renderer=we,this._state=E,this.isOpen=!1,this._subscriptions=[],this._subscriptions.push(this._state.isOpenChange.subscribe(P=>{this.isOpen=P,P?(this._documentClickListener=this._renderer.listen("document","click",m=>{this._state.autoClose&&2!==m.button&&!this._element.nativeElement.contains(m.target)&&(!this._state.insideClick||!this._dropdown._contains(m))&&(this._state.toggleClick.emit(!1),this._changeDetectorRef.detectChanges())}),this._escKeyUpListener=this._renderer.listen(this._element.nativeElement,"keyup.esc",()=>{this._state.autoClose&&(this._state.toggleClick.emit(!1),this._changeDetectorRef.detectChanges())})):(this._documentClickListener&&this._documentClickListener(),this._escKeyUpListener&&this._escKeyUpListener())})),this._subscriptions.push(this._state.isDisabledChange.subscribe(P=>this.isDisabled=P||void 0))}onClick(Y){this._state.stopOnClickPropagation&&Y.stopPropagation(),!this.isDisabled&&this._state.toggleClick.emit(!0)}ngOnDestroy(){this._documentClickListener&&this._documentClickListener(),this._escKeyUpListener&&this._escKeyUpListener();for(const Y of this._subscriptions)Y.unsubscribe()}}return k.\u0275fac=function(Y){return new(Y||k)(r.Y36(r.sBO),r.Y36(ht),r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(Jt))},k.\u0275dir=r.lG2({type:k,selectors:[["","bsDropdownToggle",""],["","dropdownToggle",""]],hostVars:3,hostBindings:function(Y,te){1&Y&&r.NdJ("click",function(we){return te.onClick(we)}),2&Y&&r.uIk("aria-haspopup",!0)("disabled",te.isDisabled)("aria-expanded",te.isOpen)},exportAs:["bs-dropdown-toggle"]}),k})(),hn=(()=>{class k{static forRoot(){return{ngModule:k,providers:[ut,se,Jt]}}}return k.\u0275fac=function(Y){return new(Y||k)},k.\u0275mod=r.oAB({type:k}),k.\u0275inj=r.cJS({imports:[[un.ez]]}),k})()}}]);
Back to Directory File Manager