Viewing File: /usr/local/cpanel/base/frontend/jupiter/manage-calendar-access/vendor.js
(self.webpackChunkmanage_calendar_access=self.webpackChunkmanage_calendar_access||[]).push([[502],{7343:(Ne,Q,I)=>{"use strict";I.d(Q,{o:()=>o});var o=function(N){return N[N.GET=0]="GET",N[N.HEAD=1]="HEAD",N[N.POST=2]="POST",N[N.PUT=3]="PUT",N[N.DELETE=4]="DELETE",N[N.CONNECT=5]="CONNECT",N[N.OPTIONS=6]="OPTIONS",N[N.TRACE=7]="TRACE",N[N.PATCH=8]="PATCH",N}(o||{})},3280:(Ne,Q,I)=>{"use strict";I.d(Q,{V:()=>st});var o=I(193),N=I.n(o),Y=I(2584),ae=function(ke){return ke[ke.Ascending=0]="Ascending",ke[ke.Descending=1]="Descending",ke}(ae||{}),J=function(ke){return ke[ke.Lexicographic=0]="Lexicographic",ke[ke.Ipv4=1]="Ipv4",ke[ke.Numeric=2]="Numeric",ke[ke.NumericZeroAsMax=3]="NumericZeroAsMax",ke}(J||{});class ie{constructor(U,fe=ae.Ascending,_e=J.Lexicographic){if(!U)throw new Error("You must provide a non-empty column name for a Sort rule.");this.column=U,this.direction=fe,this.type=_e}}var q=function(ke){return ke[ke.Contains=0]="Contains",ke[ke.Begins=1]="Begins",ke[ke.Ends=2]="Ends",ke[ke.Matches=3]="Matches",ke[ke.Equal=4]="Equal",ke[ke.NotEqual=5]="NotEqual",ke[ke.LessThan=6]="LessThan",ke[ke.LessThanUnlimited=7]="LessThanUnlimited",ke[ke.GreaterThan=8]="GreaterThan",ke[ke.GreaterThanUnlimited=9]="GreaterThanUnlimited",ke[ke.Defined=10]="Defined",ke[ke.Undefined=11]="Undefined",ke}(q||{});class ue{constructor(U,fe,_e){if(!U)throw new Error("You must define a non-empty column name.");this.column=U,this.operator=fe,this.value=_e}}var ge=I(6802);const Z=Number.POSITIVE_INFINITY;class Ee{constructor(U=1,fe=20){if(U<=0)throw new Error("The page must be 1 or greater. This is the logical page, not a programming index.");if(fe<=0)throw new Error("The pageSize must be set to 'ALL' or a number > 0");this.page=U,this.pageSize=fe}all(){return this.pageSize===Z}}class Ue{constructor(U=[]){this.headers=U}push(U){this.headers.push(U)}forEach(U,fe){this.headers.forEach(U,fe)}toArray(){const U=[];return this.headers.forEach(fe=>U.push({name:fe.name,value:fe.value})),U}toObject(){return this.headers.reduce((U,fe)=>(U[fe.name]=fe.value,U),{})}}class Re{constructor(U){this._header=U}get name(){return this._header.name}get value(){return this._header.value}}Error,Error;class St extends Error{constructor(U){super(U),this.name="WhmApiTokenInvalidError",Object.setPrototypeOf(this,St.prototype)}}class ht extends Error{constructor(U){super(U),this.name="WhmApiTokenMismatchError",Object.setPrototypeOf(this,ht.prototype)}}class Et extends Re{constructor(U,fe){if(!U)throw new St("You must pass a valid token to the constructor.");if(!fe&&!/^.+:/.test(U))throw new St("You must pass a WHM username associated with the WHM API token.");if(!fe&&!/:.+$/.test(U))throw new St("You must pass a valid WHM API token.");super({name:"Authorization",value:`whm ${fe?fe+":":""}${U}`})}}class qe{get usePager(){return this._usePager}constructor(U){this.namespace="",this.method="",this.arguments=[],this.sorts=[],this.filters=[],this.columns=[],this.pager=new Ee,this.headers=new Ue,this._usePager=!1,this.defaultConfig={analytics:!1,json:!1},this.config=this.defaultConfig,U&&(this.method=U.method,U.namespace&&(this.namespace=U.namespace),U.arguments&&U.arguments.forEach(fe=>{this.addArgument(fe)}),U.sorts&&U.sorts.forEach(fe=>{this.addSort(fe)}),U.filters&&U.filters.forEach(fe=>{this.addFilter(fe)}),U.columns&&U.columns.forEach(fe=>this.addColumn(fe)),U.pager&&this.paginate(U.pager),this.config=U.config?U.config:this.defaultConfig,U.headers&&U.headers.forEach(fe=>{this.addHeader(fe)}))}addArgument(U){return this.arguments.push(U instanceof ge.e?U:new ge.e(U.name,U.value)),this}addSort(U){return this.sorts.push(U instanceof ie?U:new ie(U.column,U.direction,U.type)),this}addFilter(U){return this.filters.push(U instanceof ue?U:new ue(U.column,U.operator,U.value)),this}addColumn(U){return this.columns.push(U),this}addHeader(U){return this.headers.push(U instanceof Re?U:new Re(U)),this}paginate(U){return this.pager=U instanceof Ee?U:new Ee(U.page,U.pageSize||20),this._usePager=!0,this}}var Ve=I(7343);const Wt=new class yt{constructor(){this.map={},this.map.DEFAULT={verb:"DEFAULT",dataInBody:!0},[Ve.o.GET,Ve.o.DELETE,Ve.o.HEAD].forEach(U=>{const fe=Ve.o[U].toString();this.map[fe]={verb:fe,dataInBody:!1}}),[Ve.o.POST,Ve.o.PUT,Ve.o.PATCH].forEach(U=>{const fe=Ve.o[U].toString();this.map[fe]={verb:fe,dataInBody:!0}})}getRule(U){const fe="string"==typeof U?U:Ve.o[U].toString();let _e=this.map[fe];return _e||(_e=this.map.DEFAULT),_e}};var dt=I(6884);class st extends qe{addHeader(U){if(U instanceof Et)throw new ht("A WhmApiTokenHeader cannot be used on a CpanelApiRequest");return super.addHeader(U),this}_build(U,fe){let _e="";return U.forEach((be,Se,Te)=>{_e+=fe.encode(be.name,be.value,Se===Te.length-1)}),fe.separatorStart+_e+fe.separatorEnd}_generateArguments(U){this.arguments.forEach(fe=>U.push(fe))}_generateSorts(U){this.sorts.forEach((fe,_e)=>{0===_e&&U.push({name:"api.sort",value:Y.x(!0)}),U.push({name:"api.sort_column_"+_e,value:fe.column}),U.push({name:"api.sort_reverse_"+_e,value:Y.x(fe.direction!==ae.Ascending)}),U.push({name:"api.sort_method_"+_e,value:N()(J[fe.type])})})}_lookupFilterOperator(U){switch(U){case q.GreaterThanUnlimited:return"gt_handle_unlimited";case q.GreaterThan:return"gt";case q.LessThanUnlimited:return"lt_handle_unlimited";case q.LessThan:return"lt";case q.NotEqual:return"ne";case q.Equal:return"eq";case q.Defined:return"defined";case q.Undefined:return"undefined";case q.Matches:return"matches";case q.Ends:return"ends";case q.Begins:return"begins";case q.Contains:return"contains";default:throw new Error(`Unrecognized FilterOperator ${q[U]} for UAPI`)}}_generateFilters(U){this.filters.forEach((fe,_e)=>{U.push({name:"api.filter_column_"+_e,value:fe.column}),U.push({name:"api.filter_type_"+_e,value:this._lookupFilterOperator(fe.operator)}),U.push({name:"api.filter_term_"+_e,value:fe.value})})}_traslatePageToStart(U){return(U.page-1)*U.pageSize+1}_generatePagination(U){if(!this.usePager)return;const fe=this.pager.all();U.push({name:"api.paginate",value:Y.x(!0)}),U.push({name:"api.paginate_start",value:fe?-1:this._traslatePageToStart(this.pager)}),fe||U.push({name:"api.paginate_size",value:this.pager.pageSize})}_generateConfiguration(U){this.config&&this.config.analytics&&U.push({name:"api.analytics",value:Y.x(this.config.analytics)})}constructor(U){super(U)}generate(U){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");U||(U={verb:Ve.o.POST,encoder:this.config.json?new dt.uM:new dt.CY}),U.encoder||(U.encoder=this.config.json?new dt.uM:new dt.CY);const fe=Wt.getRule(U.verb),_e={headers:new Ue([{name:"Content-Type",value:U.encoder.contentType}]),url:["","execute",this.namespace,this.method].map(encodeURIComponent).join("/"),body:""},be=[];this._generateArguments(be),this._generateSorts(be),this._generateFilters(be),this._generatePagination(be),this._generateConfiguration(be);const Se=this._build(be,U.encoder);return fe.dataInBody?_e.body=Se:_e.url+=U.verb===Ve.o.GET?`?${Se}`:Se,this.headers.forEach(Te=>{_e.headers.push({name:Te.name,value:Te.value})}),_e}}},6802:(Ne,Q,I)=>{"use strict";I.d(Q,{e:()=>N,l:()=>Y});var o=I(2584);class N{constructor(J,ie){if(!J)throw new Error("You must provide a name when creating a name/value argument");this.name=J,this.value=ie}}class Y extends N{constructor(J,ie){super(J,(0,o.x)(ie))}}},6884:(Ne,Q,I)=>{"use strict";I.d(Q,{uM:()=>St,CY:()=>lt});var o=I(9261),N=I.n(o),Y=I(5972),ae=I.n(Y),J=I(3705),ie=I.n(J),q=I(9336),ue=I.n(q),ge=I(8124),X=I.n(ge),Z=I(9812),Ee=I.n(Z),Ue=I(9970),Re=I.n(Ue);function Ke(ht){if(N()(ht)||ae()(ht)||ie()(ht)||ue()(ht)||X()(ht))return!0;if(!Re()(ht)&&!Ee()(ht))return!1;for(const Et in ht)if(!Ke(ht[Et]))return!1;return!0}class lt{constructor(){this.contentType="application/x-www-form-urlencoded",this.separatorStart="",this.separatorEnd="",this.recordSeparator="&"}encode(Et,qe,Ve){if(!Et)throw new Error("Name must have a non-empty value");return`${Et}=${encodeURIComponent(qe.toString())}`+(Ve?"":this.recordSeparator)}}class St{constructor(){this.contentType="application/json",this.separatorStart="{",this.separatorEnd="}",this.recordSeparator=","}encode(Et,qe,Ve){if(!Et)throw new Error("Name must have a non-empty value");if(!Ke(qe))throw new Error("The passed in value can not be serialized to JSON");return JSON.stringify(Et)+":"+JSON.stringify(qe)+(Ve?"":this.recordSeparator)}}},2584:(Ne,Q,I)=>{"use strict";function o(ae){return ae?"1":"0"}I.d(Q,{x:()=>o})},6381:(Ne,Q,I)=>{"use strict";Q.h=void 0;const N=I(2623);Object.defineProperty(Q,"h",{enumerable:!0,get:function(){return N.Locale}})},7268:(Ne,Q)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Q.CLDR=void 0,Q.CLDR=class I{constructor(N){this.rawData=N,this.validateCLDR(this.rawData)}validateCLDR(N){if(!N)throw new Error("CLDR data cannot be null");if(!N.locale)throw new Error("CLDR data is missing locale information");if(!Object.prototype.hasOwnProperty.call(N,"functions")||Object.prototype.hasOwnProperty.call(N,"get_plural_form")||"function"!=typeof N.functions.get_plural_form)throw new Error("CLDR data is missing function get_plural_form");if(!Object.prototype.hasOwnProperty.call(N,"datetime_info"))throw new Error("CLDR data is missing datetime_info");if(!Object.prototype.hasOwnProperty.call(N,"misc_info"))throw new Error("CLDR data is missing misc_info");if(!Object.prototype.hasOwnProperty.call(N.misc_info,"cldr_formats"))throw new Error("CLDR data is missing cldr_formats");if(!Object.prototype.hasOwnProperty.call(N.misc_info,"orientation")||!Object.prototype.hasOwnProperty.call(N.misc_info.orientation,"characters"))throw new Error("CLDR data is missing orientation information");if(!Object.prototype.hasOwnProperty.call(N.misc_info,"delimiters"))throw new Error("CLDR data is missing delimiter information");return!0}getLocale(){return this.rawData.locale}getPluralForm(N,...Y){return(0,this.rawData.functions.get_plural_form)(N,...Y)}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}}},2623:(Ne,Q,I)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Q.Locale=void 0;const o=I(7367),N=I(5736),Y=I(8994),ae=I(3365),J=I(7268);Q.Locale=class ie{constructor(ue,ge={}){this.lexicon=ge,this._cldr=new J.CLDR(ue)}maketext(ue,...ge){return(0,o.maketext)({cldr:this._cldr,lexicon:this.lexicon,template:ue,args:ge})}localDatetime(ue,ge){return this._datetimeWrapper(N.local_datetime,ue,ge)}datetime(ue,ge){return this._datetimeWrapper(N.datetime,ue,ge)}_datetimeWrapper(ue,ge,X){return ue({cldr:this._cldr,args:[ge,X]})}getCurrentLocale(){return this._cldr.getLocale()}get isRtl(){return this._cldr.isRtl()}get isLtr(){return this._cldr.isLtr()}get cldr(){return this._cldr}numf(ue,ge){return this._formatNumber(Y.numf,ue,ge)}format_bytes(ue,ge){return this._formatNumber(Y.format_bytes,ue,ge)}_formatNumber(ue,...ge){return this._callCLDRFunc(ue,ge)}list_and(...ue){return this._callCLDRFunc(ae.list_and,ue)}list_and_quoted(...ue){return this._callCLDRFunc(ae.list_and_quoted,ue)}list_or(...ue){return this._callCLDRFunc(ae.list_or,ue)}list_or_quoted(...ue){return this._callCLDRFunc(ae.list_or_quoted,ue)}_callCLDRFunc(ue,ge){return ue({cldr:this._cldr,args:ge})}}},6049:(Ne,Q,I)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Q.asis=void 0;const o=I(2500);Q.asis=function N({args:[Y,...ae]}){if(!Y||ae.length>0||"string"!=typeof Y)throw new Error("asis function accepts one non translatable string.");return(Y=Y.replace(/chr\((\d+)\)/g,function(J,ie){return o.functions.chr(Number(ie))})).replace(/amp\(\)/g,function(){return o.functions.amp()})}},6073:(Ne,Q)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Q.boolean=void 0,Q.boolean=function I({args:[o,N,Y,ae]}){if(null==N||0===N.length||null==Y||0===Y.length)throw new Error("boolean function needs a valid whenTrue, whenFalse arguments.");return String(typeof o<"u"&&o?N:ae&&null==o?ae:Y)}},5496:(Ne,Q)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Q.comment=void 0,Q.comment=function I({args:[o]}){return""}},5736:(Ne,Q,I)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Q.local_datetime=Q.datetime=Q.dateToLocalDayNum=void 0;const o=I(7268),N=function(X){const Z=X.getUTCDay()-1;return Z<0?6:Z},Y=[7,1,2,3,4,5,6];function ae(X,Z){return(Y[X.getUTCDay()]+7-Z)%7+1}Q.dateToLocalDayNum=ae;const J=function(X,Z,Ee){let Ue="",Re=0;return Z=Z||0,Ee=String(void 0===Ee?" ":Ee),Re=Z-String(X).length,Re>0&&(Ue=[...Array(Re)].map(String.prototype.valueOf,Ee).join("")),Ue+X};function ie({cldr:X,args:[Z=new Date,Ee],tzString:Ue="UTC"}){if("number"==typeof Z&&/^-?\d+$/.test(Z.toString())&&(Z=new Date(1e3*Z)),!(Z instanceof Date))throw new Error("The datetime function only accepts Date instances or integer values (unix timestamps) for the `date` parameter.");if(!(X instanceof o.CLDR))throw new Error("The datetime function requires a valid CLDR instance for the `cldr` parameter.");const Re=X.getDateTimeInfo();return"string"==typeof Ee&&/^(?:date|time|datetime|special)_format_/.test(Ee)&&(Ee=Re[Ee]),Ee||(Ee=Re.date_format_long),Ee.replace(/('[^']+')|(([a-zA-Z])\3*)/g,function(Ke,Xe,lt){return Xe?function q(X){return X.substr(1,X.length-2)}(Xe):function ue(X,Z,Ee,Ue){switch(Ee){case"yy":return Math.abs(X.getUTCFullYear()).toString().slice(-2);case"y":case"yyy":case"yyyy":return String(Math.abs(X.getUTCFullYear()));case"MMMMM":return Z.month_format_narrow[X.getUTCMonth()];case"LLLLL":return Z.month_stand_alone_narrow[X.getUTCMonth()];case"MMMM":return Z.month_format_wide[X.getUTCMonth()];case"LLLL":return Z.month_stand_alone_wide[X.getUTCMonth()];case"MMM":return Z.month_format_abbreviated[X.getUTCMonth()];case"LLL":return Z.month_stand_alone_abbreviated[X.getUTCMonth()];case"MM":case"LL":return J((X.getUTCMonth()+1).toString(),2,"0");case"M":case"L":return String(X.getUTCMonth()+1);case"EEEE":return Z.day_format_wide[N(X)];case"EEE":case"EE":case"E":return Z.day_format_abbreviated[N(X)];case"EEEEE":return Z.day_format_narrow[N(X)];case"cccc":return Z.day_stand_alone_wide[N(X)];case"ccc":return Z.day_stand_alone_abbreviated[N(X)];case"cc":case"c":return String(ae(X,Number(Z.first_day_of_week)));case"ccccc":return Z.day_stand_alone_narrow[N(X)];case"dd":return J(X.getUTCDate().toString(),2,"0");case"d":return String(X.getUTCDate());case"h":case"hh":{let Re=X.getUTCHours();Re>12&&(Re-=12),0===Re&&(Re=12);const Ke="hh"===Ee?J(Re.toString(),2,"0"):Re;return String(Ke)}case"H":return String(X.getUTCHours());case"HH":return J(X.getUTCHours().toString(),2,"0");case"m":return String(X.getUTCMinutes());case"mm":return J(X.getUTCMinutes().toString(),2,"0");case"s":return String(X.getUTCSeconds());case"ss":return J(X.getUTCSeconds().toString(),2,"0");case"a":return X.getUTCHours()<12?Z.am_pm_abbreviated[0]:Z.am_pm_abbreviated[1];case"z":case"zzzz":case"v":case"vvvv":return Ue;case"G":case"GG":case"GGG":return Z.era_abbreviated[X.getUTCFullYear()<0?0:1];case"GGGGG":return Z.era_narrow[X.getUTCFullYear()<0?0:1];case"GGGG":return Z.era_wide[X.getUTCFullYear()<0?0:1]}return Ee}(Z,Re,lt,Ue)})}Q.datetime=ie,Q.local_datetime=function ge({cldr:X,args:[Z=new Date,Ee]}){if("number"==typeof Z&&/^-?\d+$/.test(Z.toString())&&(Z=new Date(1e3*Z)),!(Z instanceof Date))throw new Error("The datetime function only accepts Date instances or integer values (unix timestamps) for the `date` parameter.");if(!(X instanceof o.CLDR))throw new Error("The datetime function requires a valid CLDR instance for the `cldr` parameter.");const Ue=Z.getTimezoneOffset();(Z=new Date(Z)).setMinutes(Z.getMinutes()-Ue);const Re=Ue>0?"-":"+",Ke=Math.floor(Math.abs(Ue)/60),Xe=Math.abs(Ue%60);return ie({cldr:X,args:[Z,Ee],tzString:"GMT"+Re+J(Ke.toString(),2,"0")+J(Xe.toString(),2,"0")})}},6397:(Ne,Q,I)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Q.functions=void 0;const o=I(6049),N=I(2500),Y=I(5496),ae=I(6073),J=I(8994),ie=I(5736),q=I(3365);Q.functions={asis:o.asis,output:N.output,comment:Y.comment,boolean:ae.boolean,numf:J.numf,numerate:J.numerate,quant:J.quant,format_bytes:J.format_bytes,datetime:ie.datetime,local_datetime:ie.local_datetime,list_and:q.list_and,list_or:q.list_or,list_or_quoted:q.list_or_quoted,list_and_quoted:q.list_and_quoted}},3365:(Ne,Q)=>{"use strict";function o(q,ue,...ge){let X=ge.slice();switch(1===X.length&&Array.isArray(X[0])&&(X=X[0].slice()),(typeof X>"u"||0===X.length)&&(X=[""]),X=X.map(Z=>function I(q,ue){const ge=q.getDelimiters();return ge&&Object.prototype.hasOwnProperty.call(ge,"quotation_start")&&Object.prototype.hasOwnProperty.call(ge,"quotation_end")?ge.quotation_start+ue+ge.quotation_end:ue}(q,Z)),ue){case"list_and":return J({cldr:q,args:X});case"list_or":return ie({cldr:q,args:X});default:throw new Error("Did you mean list_and_quoted or list_or_quoted?")}}function ae(q,ue,...ge){let X=ge.slice();1===X.length&&Array.isArray(X[0])&&(X=X[0].slice());const Z=X.length;let Ee,Ue,Re,Ke;try{Ee=q.getFormats()[ue]}catch{throw new Error("CLDR Data is missing information related to formatting list.")}const Xe=function(lt,St){switch(St){case"0":return Re;case"1":return X[Ke++]}};switch(Z){case 0:return"";case 1:return String(X[0]);default:if(Re=2===Z?Ee[2]:Ee.start,Re=Re.replace(/\{([01])\}/g,function(lt,St){return X[St]}),2===Z)return Re;for(Ke=2;Ke<Z;)Ue=Ee[Ke===Z-1?"end":"middle"],Re=Ue.replace(/\{([01])\}/g,Xe);return Re}}function J({cldr:q,args:[...ue]}){return ae(q,"list",...ue)}function ie({cldr:q,args:[...ue]}){return ae(q,"list_or",...ue)}Object.defineProperty(Q,"__esModule",{value:!0}),Q.list_or=Q.list_and=Q.list_or_quoted=Q.list_and_quoted=void 0,Q.list_and_quoted=function N({cldr:q,args:[...ue]}){return o(q,"list_and",...ue)},Q.list_or_quoted=function Y({cldr:q,args:[...ue]}){return o(q,"list_or",...ue)},Q.list_and=J,Q.list_or=ie},2500:(Ne,Q,I)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Q.functions=Q.output=void 0;const o=I(9546),N=I(2353);Q.output=function Y({args:[ae,...J]}){if(J&&"string"==typeof J[0]&&(J[0]=J[0].replace(/chr\((\d+)\)/g,function(ie,q){return Q.functions.chr(Number(q))}),J[0]=J[0].replace(/amp\(\)/g,function(){return Q.functions.amp()})),"function"==typeof Q.functions[ae])return Q.functions[ae](...J);throw new Error(`Locale output function '${ae}' is not implemented.`)},Q.functions={amp:()=>(0,o.htmlEscape)("&"),apos:()=>(0,o.htmlEscape)("'"),quot:()=>(0,o.htmlEscape)('"'),underline:ae=>`<u>${ae}</u>`,strong:ae=>`<strong>${ae}</strong>`,em:ae=>`<em>${ae}</em>`,abbr:(ae,J)=>`<abbr title="${J}">${ae}</abbr>`,acronym:(ae,J)=>`<abbr title="${J}" class="initialism">${ae}</abbr>`,class:(ae,...J)=>`<span class="${J.join(" ")}">${ae}</span>`,chr(ae){if("string"==typeof ae&&(ae=Number(ae)),"number"!=typeof ae||isNaN(ae))throw new Error("chr needs a number as argument");return(0,o.htmlEscape)(String.fromCharCode(ae))},url(ae,...J){let ie,q;if("object"==typeof J[J.length-1])if(ie=J[J.length-1],2===J.length){if(ie.html)throw new Error("Cannot provide both text and configuration with html attribute");q=J[0]}else ie&&ie.html?(q=ie.html,delete ie.html):q=ae;else J.length%2==0?(ie=(0,N.listToObject)(...J),ie&&"html"in ie&&""!==ie.html?(q=ie.html,delete ie.html):q=ae):(q=J.shift(),ie=(0,N.listToObject)(...J));"_type"in ie&&"offsite"===ie._type&&(ie.class="offsite",ie.target="_blank",delete ie._type);let ue=`<a href="${ae}"`;if("object"==typeof ie)for(const ge in ie)Object.prototype.hasOwnProperty.call(ie,ge)&&(ue+=` ${ge}="${ie[ge]}"`);return ue+=`>${q}</a>`,ue}}},8994:(Ne,Q,I)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Q.format_bytes=Q.numf=Q.quant=Q.numerate=void 0;const o=I(7268);function Y({cldr:q,args:[ue,...ge]}){if(!(q instanceof o.CLDR))throw new Error("`quant` function requires a valid CLDR instance for the `cldr` parameter.");let X,Z=3;ue instanceof Array?(Z=ue[1],X=ue[0]):X=ue;const Ee=q.getPluralForm(X,...ge),Ue=Ee[0]?Ee[0]:ge[ge.length-1];if(Ee&&Ee.length>=2&&Ee[1])return Ue;const Ke=J({cldr:q,args:[X,Z]});return-1!==Ue.indexOf("%s")?Ue.replace(/%s/g,Ke):q.isRtl()?Ue+" "+Ke:Ke+" "+Ue}function J({cldr:q,args:[ue,ge=6]}){if(!(q instanceof o.CLDR))throw new Error("`numf` function requires a valid CLDR instance for the `cldr` parameter.");if(/e/.test(ue.toString()))return String(ue);const{decimalFormat:X,decimalGroup:Z,decimalDecimal:Ee}=function ae(q){const ue={},ge=q.getFormats();return Object.prototype.hasOwnProperty.call(ge,"decimal")&&(ue.decimalFormat=ge.decimal),Object.prototype.hasOwnProperty.call(ge,"_decimal_format_group")&&(ue.decimalGroup=ge._decimal_format_group),Object.prototype.hasOwnProperty.call(ge,"_decimal_format_decimal")&&(ue.decimalDecimal=ge._decimal_format_decimal),ue}(q);if(!X||!Z||!Ee)throw new Error("CLDR Data is missing information related to formatting decimals.");const Ue=ue<0;ue=Math.abs(ue);let Ke,Xe,Re=Math.floor(ue);/(?!')\.(?!')/.test(ue.toString())&&(Ke=String(ue).replace(/^[^.]+/,"0"),Ke=Number(Ke).toFixed(ge),/^1/.test(Ke)?(Re++,ue=Re,Ke=void 0):Ke=Ke.replace(/^.*\./,"").replace(/0+$/,"")),Xe=/(?!');(?!')/.test(X)?X.split(/(?!');(?!')/)[Ue?1:0]:(Ue?"-":"")+X;const ht=Xe.match(/[0#].*[0#]/)[0].split(/(?!')\.(?!')/)[0].split("").reverse().join("").split(/(?!'),(?!')/);let Et;1===ht.length?Et="":(ht.pop(),Et=Z);const qe=String(Re).split("").reverse(),Ve=[];let yt;const Wt=function(st){switch(st){case"#":return qe.shift()||"";case"0":return qe.shift()||"0"}};for(;qe.length;){ht.length&&(yt=ht.shift());const st=yt.replace(/(?!')[0#]|[0#](?!')/g,Wt).replace(/'([.,0#;\xa4%E])'$/,"").replace(/'([.,0#;\xa4%E])'/,"$1");Ve.push(st)}const dt=Ve.join(Et).split("").reverse().join("")+(Ke?Ee+Ke:"");return Xe.replace(/[0#].*[0#]/,dt)}Q.numerate=function N({cldr:q,args:[ue,...ge]}){if(!(q instanceof o.CLDR))throw new Error("`numerate` function requires a valid CLDR instance for the `cldr` parameter.");const X=q.getPluralForm(ue,...ge);return X?X[0]:ge[ge.length-1]},Q.quant=Y,Q.numf=J,Q.format_bytes=function ie({cldr:q,args:[ue,ge=2]}){if(!(q instanceof o.CLDR))throw new Error("`format_bytes` function requires a valid CLDR instance for the `cldr` parameter.");const X=["KB","MB","GB","TB","PB","EB","ZB","YB"],Ee=ue&&Math.min(Math.floor(Math.log(ue)/Math.log(1024)),X.length);return Ee?J({cldr:q,args:[ue/Math.pow(1024,Ee),ge]})+"\xa0"+X[Ee-1]:Y({cldr:q,args:[ue,"%s\xa0byte","%s\xa0bytes"]})}},7367:(Ne,Q,I)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Q.maketext=Q.functions=Q.config=void 0;const o=I(6397);function J(ie,q){const ue=[];let ge=!1,X=!1;return ie.forEach(Z=>{if("_"===Z.charAt(0))if("_*"===Z){if(X)throw"You cannot combine wildcard substitution (_*) with a numeric substitution (e.g. _1) in the same bracket.";ue.push(...q),ge=!0}else{const Ee=Z.match(Q.config.underscoreDigitRe);if(Ee){if(ge)throw"You cannot combine wildcard substitution (_*) with a numeric substitution (e.g. _1) in the same bracket.";const[Ue,Re]=Ee,Ke=Number(Re)-1;if(!(Ke in q))throw`The "${Ue}" substitution argument was not passed to the maketext function.`;ue.push(q[Ke]),X=!0}}else ue.push(Z)}),ue}Q.config={bracketRe:/([^~\[\]]+|~.|\[|\]|~)/g,underscoreDigitRe:/^_(\d+)$/,fauxComma:"\x07",fauxCommaRe:new RegExp("\x07","g"),tildeChars:new Set(["[","]","~"])},Q.functions={...o.functions},Q.maketext=function Y({cldr:ie,lexicon:q,template:ue,args:ge}){if("string"!=typeof ue)throw"You must pass a string template to the maketext function.";if(-1===(ue=q&&q[ue]||ue).indexOf("["))return ue;const X=ue.match(Q.config.bracketRe)||[],Z=[];let Ee=!1,Ue="";if(X.forEach(Re=>{if("["===Re){if(Ee)throw Error(`Invalid maketext string: ${ue} \nThe string contains nested brackets.`);Ee=!0}else if("]"===Re){if(!Ee)throw Error(`Invalid maketext string: ${ue} \nThe string contains an unmatched closing bracket character (]).`);if(!Ue)throw Error(`Invalid maketext string: ${ue} \nThe string contains empty brackets. Use the escape character (~) if the bracket characters were meant to be printed literally.`);let Ke;Ee=!1;try{Ke=function ae(ie,q,ue){let ge=q.split(",");if(ge=ge.map(Ee=>Ee.replace(Q.config.fauxCommaRe,",")),1===ge.length){if(!Q.config.underscoreDigitRe.test(ge[0]))throw"A bracket must contain more than one argument, unless it is a pure substition.\n Example: Number of accounts: [_1]";const[Ee]=J(ge,ue);return String(Ee)}const X=ge.shift();if(!X||"function"!=typeof Q.functions[X])throw`Invalid function "${X}" in maketext string.`;const Z=J(ge,ue);return Q.functions[X]({cldr:ie,args:Z})}(ie,Ue,ge)}catch(Xe){throw Error(`Invalid maketext string: ${ue} \n${Xe}`)}Ue="",Z.push(Ke)}else if("~"===Re.charAt(0)){const Ke=Re.charAt(1)||"~";Ee?Ue+=","===Ke?Q.config.fauxComma:Ke:Q.config.tildeChars.has(Ke)?Z.push(Ke):Z.push(Re)}else Ee?Ue+=Re:Z.push(Re)}),Ee)throw Error(`Invalid maketext string: ${ue} \nThe string contains an unmatched opening bracket character ([).`);return Z.join("")}},9546:(Ne,Q)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Q.htmlEscape=Q.entityMap=void 0,Q.entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},Q.htmlEscape=function I(o){return String(o).replace(/[&<>"'\/]/g,N=>Q.entityMap[N])}},2353:(Ne,Q)=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Q.listToObject=void 0,Q.listToObject=function N(...Y){let ae={};return function I(Y){if(Y.length%2>0)throw new Error("An associative list must have an even number of parts: {name1}, {value1}, {name2}, {value2} ...");for(let J=0,ie=Y.length;J<ie;J+=2){const q=Y[J];if("string"!=typeof q||""===q)throw new Error("An associative list must provide non-empty string names in the 1st, 3rd, ... positions.")}return!0}(Y)&&(ae=function o(Y){const ae=Y.length,J={};let q,ue,ie=0;for(;ie<ae;)q=Y[ie],ue=Y[++ie],J[q]=ue,ie++;return J}(Y)),ae}},8516:(Ne,Q,I)=>{var o=I(1464);Ne.exports=o.Symbol},2757:Ne=>{Ne.exports=function Q(I,o){for(var N=-1,Y=null==I?0:I.length,ae=Array(Y);++N<Y;)ae[N]=o(I[N],N,I);return ae}},7325:Ne=>{Ne.exports=function Q(I,o,N,Y){var ae=-1,J=null==I?0:I.length;for(Y&&J&&(N=I[++ae]);++ae<J;)N=o(N,I[ae],ae,I);return N}},2192:Ne=>{var Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;Ne.exports=function I(o){return o.match(Q)||[]}},1057:(Ne,Q,I)=>{var o=I(8516),N=I(8488),Y=I(3327),ie=o?o.toStringTag:void 0;Ne.exports=function q(ue){return null==ue?void 0===ue?"[object Undefined]":"[object Null]":ie&&ie in Object(ue)?N(ue):Y(ue)}},965:Ne=>{Ne.exports=function Q(I){return function(o){return I?.[o]}}},7005:(Ne,Q,I)=>{var o=I(8516),N=I(2757),Y=I(9812),ae=I(5153),J=1/0,ie=o?o.prototype:void 0,q=ie?ie.toString:void 0;Ne.exports=function ue(ge){if("string"==typeof ge)return ge;if(Y(ge))return N(ge,ue)+"";if(ae(ge))return q?q.call(ge):"";var X=ge+"";return"0"==X&&1/ge==-J?"-0":X}},7666:(Ne,Q,I)=>{var o=I(7325),N=I(5403),Y=I(5788),J=RegExp("['\u2019]","g");Ne.exports=function ie(q){return function(ue){return o(Y(N(ue).replace(J,"")),q,"")}}},8318:(Ne,Q,I)=>{var Y=I(965)({\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"});Ne.exports=Y},8657:Ne=>{var Q="object"==typeof global&&global&&global.Object===Object&&global;Ne.exports=Q},6902:(Ne,Q,I)=>{var N=I(2852)(Object.getPrototypeOf,Object);Ne.exports=N},8488:(Ne,Q,I)=>{var o=I(8516),N=Object.prototype,Y=N.hasOwnProperty,ae=N.toString,J=o?o.toStringTag:void 0;Ne.exports=function ie(q){var ue=Y.call(q,J),ge=q[J];try{q[J]=void 0;var X=!0}catch{}var Z=ae.call(q);return X&&(ue?q[J]=ge:delete q[J]),Z}},5823:Ne=>{var Q=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;Ne.exports=function I(o){return Q.test(o)}},3327:Ne=>{var I=Object.prototype.toString;Ne.exports=function o(N){return I.call(N)}},2852:Ne=>{Ne.exports=function Q(I,o){return function(N){return I(o(N))}}},1464:(Ne,Q,I)=>{var o=I(8657),N="object"==typeof self&&self&&self.Object===Object&&self,Y=o||N||Function("return this")();Ne.exports=Y},7172:Ne=>{var Q="\\ud800-\\udfff",ae="\\u2700-\\u27bf",J="a-z\\xdf-\\xf6\\xf8-\\xff",X="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\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",Re="["+Ee+"]",Xe="\\d+",lt="["+ae+"]",St="["+J+"]",ht="[^"+Q+Ee+Xe+ae+J+X+"]",yt="(?:\\ud83c[\\udde6-\\uddff]){2}",Wt="[\\ud800-\\udbff][\\udc00-\\udfff]",dt="["+X+"]",ke="(?:"+St+"|"+ht+")",U="(?:"+dt+"|"+ht+")",fe="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",_e="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",be="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Se="[\\ufe0e\\ufe0f]?",Pn=Se+be+"(?:\\u200d(?:"+["[^"+Q+"]",yt,Wt].join("|")+")"+Se+be+")*",Ot="(?:"+[lt,yt,Wt].join("|")+")"+Pn,Tn=RegExp([dt+"?"+St+"+"+fe+"(?="+[Re,dt,"$"].join("|")+")",U+"+"+_e+"(?="+[Re,dt+ke,"$"].join("|")+")",dt+"?"+ke+"+"+fe,dt+"+"+_e,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xe,Ot].join("|"),"g");Ne.exports=function Fn(tn){return tn.match(Tn)||[]}},5403:(Ne,Q,I)=>{var o=I(8318),N=I(4717),Y=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ge=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");Ne.exports=function X(Z){return(Z=N(Z))&&Z.replace(Y,o).replace(ge,"")}},9812:Ne=>{Ne.exports=Array.isArray},3705:(Ne,Q,I)=>{var o=I(1057),N=I(7433);Ne.exports=function ae(J){return!0===J||!1===J||N(J)&&"[object Boolean]"==o(J)}},5972:Ne=>{Ne.exports=function Q(I){return null===I}},9336:(Ne,Q,I)=>{var o=I(1057),N=I(7433);Ne.exports=function ae(J){return"number"==typeof J||N(J)&&"[object Number]"==o(J)}},7433:Ne=>{Ne.exports=function Q(I){return null!=I&&"object"==typeof I}},9970:(Ne,Q,I)=>{var o=I(1057),N=I(6902),Y=I(7433),q=Function.prototype.toString,ue=Object.prototype.hasOwnProperty,ge=q.call(Object);Ne.exports=function X(Z){if(!Y(Z)||"[object Object]"!=o(Z))return!1;var Ee=N(Z);if(null===Ee)return!0;var Ue=ue.call(Ee,"constructor")&&Ee.constructor;return"function"==typeof Ue&&Ue instanceof Ue&&q.call(Ue)==ge}},8124:(Ne,Q,I)=>{var o=I(1057),N=I(9812),Y=I(7433);Ne.exports=function J(ie){return"string"==typeof ie||!N(ie)&&Y(ie)&&"[object String]"==o(ie)}},5153:(Ne,Q,I)=>{var o=I(1057),N=I(7433);Ne.exports=function ae(J){return"symbol"==typeof J||N(J)&&"[object Symbol]"==o(J)}},9261:Ne=>{Ne.exports=function Q(I){return void 0===I}},193:(Ne,Q,I)=>{var N=I(7666)(function(Y,ae,J){return Y+(J?"_":"")+ae.toLowerCase()});Ne.exports=N},4717:(Ne,Q,I)=>{var o=I(7005);Ne.exports=function N(Y){return null==Y?"":o(Y)}},5788:(Ne,Q,I)=>{var o=I(2192),N=I(5823),Y=I(4717),ae=I(7172);Ne.exports=function J(ie,q,ue){return ie=Y(ie),void 0===(q=ue?void 0:q)?N(ie)?ae(ie):o(ie):ie.match(q)||[]}},4412:(Ne,Q,I)=>{"use strict";I.d(Q,{t:()=>N});var o=I(1413);class N extends o.B{constructor(ae){super(),this._value=ae}get value(){return this.getValue()}_subscribe(ae){const J=super._subscribe(ae);return!J.closed&&ae.next(this._value),J}getValue(){const{hasError:ae,thrownError:J,_value:ie}=this;if(ae)throw J;return this._throwIfClosed(),ie}next(ae){super.next(this._value=ae)}}},4226:(Ne,Q,I)=>{"use strict";I.d(Q,{c:()=>X});var o=I(7707),N=I(8359),Y=I(3494),ae=I(3669);var q=I(1026),ue=I(8071),ge=I(9786);let X=(()=>{class Re{constructor(Xe){Xe&&(this._subscribe=Xe)}lift(Xe){const lt=new Re;return lt.source=this,lt.operator=Xe,lt}subscribe(Xe,lt,St){const ht=function Ue(Re){return Re&&Re instanceof o.vU||function Ee(Re){return Re&&(0,ue.T)(Re.next)&&(0,ue.T)(Re.error)&&(0,ue.T)(Re.complete)}(Re)&&(0,N.Uv)(Re)}(Xe)?Xe:new o.Ms(Xe,lt,St);return(0,ge.Y)(()=>{const{operator:Et,source:qe}=this;ht.add(Et?Et.call(ht,qe):qe?this._subscribe(ht):this._trySubscribe(ht))}),ht}_trySubscribe(Xe){try{return this._subscribe(Xe)}catch(lt){Xe.error(lt)}}forEach(Xe,lt){return new(lt=Z(lt))((St,ht)=>{const Et=new o.Ms({next:qe=>{try{Xe(qe)}catch(Ve){ht(Ve),Et.unsubscribe()}},error:ht,complete:St});this.subscribe(Et)})}_subscribe(Xe){var lt;return null===(lt=this.source)||void 0===lt?void 0:lt.subscribe(Xe)}[Y.s](){return this}pipe(...Xe){return function ie(Re){return 0===Re.length?ae.D:1===Re.length?Re[0]:function(Xe){return Re.reduce((lt,St)=>St(lt),Xe)}}(Xe)(this)}toPromise(Xe){return new(Xe=Z(Xe))((lt,St)=>{let ht;this.subscribe(Et=>ht=Et,Et=>St(Et),()=>lt(ht))})}}return Re.create=Ke=>new Re(Ke),Re})();function Z(Re){var Ke;return null!==(Ke=Re??q.$.Promise)&&void 0!==Ke?Ke:Promise}},1413:(Ne,Q,I)=>{"use strict";I.d(Q,{B:()=>q});var o=I(4226),N=I(8359);const ae=(0,I(1853).L)(ge=>function(){ge(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var J=I(7908),ie=I(9786);let q=(()=>{class ge extends o.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Z){const Ee=new ue(this,this);return Ee.operator=Z,Ee}_throwIfClosed(){if(this.closed)throw new ae}next(Z){(0,ie.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Ee of this.currentObservers)Ee.next(Z)}})}error(Z){(0,ie.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Z;const{observers:Ee}=this;for(;Ee.length;)Ee.shift().error(Z)}})}complete(){(0,ie.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Z}=this;for(;Z.length;)Z.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Z;return(null===(Z=this.observers)||void 0===Z?void 0:Z.length)>0}_trySubscribe(Z){return this._throwIfClosed(),super._trySubscribe(Z)}_subscribe(Z){return this._throwIfClosed(),this._checkFinalizedStatuses(Z),this._innerSubscribe(Z)}_innerSubscribe(Z){const{hasError:Ee,isStopped:Ue,observers:Re}=this;return Ee||Ue?N.Kn:(this.currentObservers=null,Re.push(Z),new N.yU(()=>{this.currentObservers=null,(0,J.o)(Re,Z)}))}_checkFinalizedStatuses(Z){const{hasError:Ee,thrownError:Ue,isStopped:Re}=this;Ee?Z.error(Ue):Re&&Z.complete()}asObservable(){const Z=new o.c;return Z.source=this,Z}}return ge.create=(X,Z)=>new ue(X,Z),ge})();class ue extends q{constructor(X,Z){super(),this.destination=X,this.source=Z}next(X){var Z,Ee;null===(Ee=null===(Z=this.destination)||void 0===Z?void 0:Z.next)||void 0===Ee||Ee.call(Z,X)}error(X){var Z,Ee;null===(Ee=null===(Z=this.destination)||void 0===Z?void 0:Z.error)||void 0===Ee||Ee.call(Z,X)}complete(){var X,Z;null===(Z=null===(X=this.destination)||void 0===X?void 0:X.complete)||void 0===Z||Z.call(X)}_subscribe(X){var Z,Ee;return null!==(Ee=null===(Z=this.source)||void 0===Z?void 0:Z.subscribe(X))&&void 0!==Ee?Ee:N.Kn}}},7707:(Ne,Q,I)=>{"use strict";I.d(Q,{Ms:()=>Xe,vU:()=>Ee});var o=I(8071),N=I(8359),Y=I(1026),ae=I(5334),J=I(5343);const ie=ge("C",void 0,void 0);function ge(qe,Ve,yt){return{kind:qe,value:Ve,error:yt}}var X=I(9270),Z=I(9786);class Ee extends N.yU{constructor(Ve){super(),this.isStopped=!1,Ve?(this.destination=Ve,(0,N.Uv)(Ve)&&Ve.add(this)):this.destination=Et}static create(Ve,yt,Wt){return new Xe(Ve,yt,Wt)}next(Ve){this.isStopped?ht(function ue(qe){return ge("N",qe,void 0)}(Ve),this):this._next(Ve)}error(Ve){this.isStopped?ht(function q(qe){return ge("E",void 0,qe)}(Ve),this):(this.isStopped=!0,this._error(Ve))}complete(){this.isStopped?ht(ie,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ve){this.destination.next(Ve)}_error(Ve){try{this.destination.error(Ve)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ue=Function.prototype.bind;function Re(qe,Ve){return Ue.call(qe,Ve)}class Ke{constructor(Ve){this.partialObserver=Ve}next(Ve){const{partialObserver:yt}=this;if(yt.next)try{yt.next(Ve)}catch(Wt){lt(Wt)}}error(Ve){const{partialObserver:yt}=this;if(yt.error)try{yt.error(Ve)}catch(Wt){lt(Wt)}else lt(Ve)}complete(){const{partialObserver:Ve}=this;if(Ve.complete)try{Ve.complete()}catch(yt){lt(yt)}}}class Xe extends Ee{constructor(Ve,yt,Wt){let dt;if(super(),(0,o.T)(Ve)||!Ve)dt={next:Ve??void 0,error:yt??void 0,complete:Wt??void 0};else{let st;this&&Y.$.useDeprecatedNextContext?(st=Object.create(Ve),st.unsubscribe=()=>this.unsubscribe(),dt={next:Ve.next&&Re(Ve.next,st),error:Ve.error&&Re(Ve.error,st),complete:Ve.complete&&Re(Ve.complete,st)}):dt=Ve}this.destination=new Ke(dt)}}function lt(qe){Y.$.useDeprecatedSynchronousErrorHandling?(0,Z.l)(qe):(0,ae.m)(qe)}function ht(qe,Ve){const{onStoppedNotification:yt}=Y.$;yt&&X.f.setTimeout(()=>yt(qe,Ve))}const Et={closed:!0,next:J.l,error:function St(qe){throw qe},complete:J.l}},8359:(Ne,Q,I)=>{"use strict";I.d(Q,{Kn:()=>ie,yU:()=>J,Uv:()=>q});var o=I(8071);const Y=(0,I(1853).L)(ge=>function(Z){ge(this),this.message=Z?`${Z.length} errors occurred during unsubscription:\n${Z.map((Ee,Ue)=>`${Ue+1}) ${Ee.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Z});var ae=I(7908);class J{constructor(X){this.initialTeardown=X,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let X;if(!this.closed){this.closed=!0;const{_parentage:Z}=this;if(Z)if(this._parentage=null,Array.isArray(Z))for(const Re of Z)Re.remove(this);else Z.remove(this);const{initialTeardown:Ee}=this;if((0,o.T)(Ee))try{Ee()}catch(Re){X=Re instanceof Y?Re.errors:[Re]}const{_finalizers:Ue}=this;if(Ue){this._finalizers=null;for(const Re of Ue)try{ue(Re)}catch(Ke){X=X??[],Ke instanceof Y?X=[...X,...Ke.errors]:X.push(Ke)}}if(X)throw new Y(X)}}add(X){var Z;if(X&&X!==this)if(this.closed)ue(X);else{if(X instanceof J){if(X.closed||X._hasParent(this))return;X._addParent(this)}(this._finalizers=null!==(Z=this._finalizers)&&void 0!==Z?Z:[]).push(X)}}_hasParent(X){const{_parentage:Z}=this;return Z===X||Array.isArray(Z)&&Z.includes(X)}_addParent(X){const{_parentage:Z}=this;this._parentage=Array.isArray(Z)?(Z.push(X),Z):Z?[Z,X]:X}_removeParent(X){const{_parentage:Z}=this;Z===X?this._parentage=null:Array.isArray(Z)&&(0,ae.o)(Z,X)}remove(X){const{_finalizers:Z}=this;Z&&(0,ae.o)(Z,X),X instanceof J&&X._removeParent(this)}}J.EMPTY=(()=>{const ge=new J;return ge.closed=!0,ge})();const ie=J.EMPTY;function q(ge){return ge instanceof J||ge&&"closed"in ge&&(0,o.T)(ge.remove)&&(0,o.T)(ge.add)&&(0,o.T)(ge.unsubscribe)}function ue(ge){(0,o.T)(ge)?ge():ge.unsubscribe()}},1026:(Ne,Q,I)=>{"use strict";I.d(Q,{$:()=>o});const o={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},6648:(Ne,Q,I)=>{"use strict";I.d(Q,{H:()=>Wt});var o=I(8750),N=I(5225),Y=I(9974),ae=I(4360);function J(dt,st=0){return(0,Y.N)((ke,U)=>{ke.subscribe((0,ae._)(U,fe=>(0,N.N)(U,dt,()=>U.next(fe),st),()=>(0,N.N)(U,dt,()=>U.complete(),st),fe=>(0,N.N)(U,dt,()=>U.error(fe),st)))})}function ie(dt,st=0){return(0,Y.N)((ke,U)=>{U.add(dt.schedule(()=>ke.subscribe(U),st))})}var ge=I(4226),Z=I(4761),Ee=I(8071);function Re(dt,st){if(!dt)throw new Error("Iterable cannot be null");return new ge.c(ke=>{(0,N.N)(ke,st,()=>{const U=dt[Symbol.asyncIterator]();(0,N.N)(ke,st,()=>{U.next().then(fe=>{fe.done?ke.complete():ke.next(fe.value)})},0,!0)})})}var Ke=I(5055),Xe=I(9858),lt=I(7441),St=I(5397),ht=I(7953),Et=I(591),qe=I(5196);function Wt(dt,st){return st?function yt(dt,st){if(null!=dt){if((0,Ke.l)(dt))return function q(dt,st){return(0,o.Tg)(dt).pipe(ie(st),J(st))}(dt,st);if((0,lt.X)(dt))return function X(dt,st){return new ge.c(ke=>{let U=0;return st.schedule(function(){U===dt.length?ke.complete():(ke.next(dt[U++]),ke.closed||this.schedule())})})}(dt,st);if((0,Xe.y)(dt))return function ue(dt,st){return(0,o.Tg)(dt).pipe(ie(st),J(st))}(dt,st);if((0,ht.T)(dt))return Re(dt,st);if((0,St.x)(dt))return function Ue(dt,st){return new ge.c(ke=>{let U;return(0,N.N)(ke,st,()=>{U=dt[Z.l](),(0,N.N)(ke,st,()=>{let fe,_e;try{({value:fe,done:_e}=U.next())}catch(be){return void ke.error(be)}_e?ke.complete():ke.next(fe)},0,!0)}),()=>(0,Ee.T)(U?.return)&&U.return()})}(dt,st);if((0,qe.U)(dt))return function Ve(dt,st){return Re((0,qe.C)(dt),st)}(dt,st)}throw(0,Et.L)(dt)}(dt,st):(0,o.Tg)(dt)}},3726:(Ne,Q,I)=>{"use strict";I.d(Q,{R:()=>X});var o=I(8750),N=I(4226),Y=I(1397),ae=I(7441),J=I(8071),ie=I(6450);const q=["addListener","removeListener"],ue=["addEventListener","removeEventListener"],ge=["on","off"];function X(Ke,Xe,lt,St){if((0,J.T)(lt)&&(St=lt,lt=void 0),St)return X(Ke,Xe,lt).pipe((0,ie.I)(St));const[ht,Et]=function Re(Ke){return(0,J.T)(Ke.addEventListener)&&(0,J.T)(Ke.removeEventListener)}(Ke)?ue.map(qe=>Ve=>Ke[qe](Xe,Ve,lt)):function Ee(Ke){return(0,J.T)(Ke.addListener)&&(0,J.T)(Ke.removeListener)}(Ke)?q.map(Z(Ke,Xe)):function Ue(Ke){return(0,J.T)(Ke.on)&&(0,J.T)(Ke.off)}(Ke)?ge.map(Z(Ke,Xe)):[];if(!ht&&(0,ae.X)(Ke))return(0,Y.Z)(qe=>X(qe,Xe,lt))((0,o.Tg)(Ke));if(!ht)throw new TypeError("Invalid event target");return new N.c(qe=>{const Ve=(...yt)=>qe.next(1<yt.length?yt:yt[0]);return ht(Ve),()=>Et(Ve)})}function Z(Ke,Xe){return lt=>St=>Ke[lt](Xe,St)}},8750:(Ne,Q,I)=>{"use strict";I.d(Q,{Tg:()=>Ue});var o=I(5215),N=I(7441),Y=I(9858),ae=I(4226),J=I(5055),ie=I(7953),q=I(591),ue=I(5397),ge=I(5196),X=I(8071),Z=I(5334),Ee=I(3494);function Ue(qe){if(qe instanceof ae.c)return qe;if(null!=qe){if((0,J.l)(qe))return function Re(qe){return new ae.c(Ve=>{const yt=qe[Ee.s]();if((0,X.T)(yt.subscribe))return yt.subscribe(Ve);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(qe);if((0,N.X)(qe))return function Ke(qe){return new ae.c(Ve=>{for(let yt=0;yt<qe.length&&!Ve.closed;yt++)Ve.next(qe[yt]);Ve.complete()})}(qe);if((0,Y.y)(qe))return function Xe(qe){return new ae.c(Ve=>{qe.then(yt=>{Ve.closed||(Ve.next(yt),Ve.complete())},yt=>Ve.error(yt)).then(null,Z.m)})}(qe);if((0,ie.T)(qe))return St(qe);if((0,ue.x)(qe))return function lt(qe){return new ae.c(Ve=>{for(const yt of qe)if(Ve.next(yt),Ve.closed)return;Ve.complete()})}(qe);if((0,ge.U)(qe))return function ht(qe){return St((0,ge.C)(qe))}(qe)}throw(0,q.L)(qe)}function St(qe){return new ae.c(Ve=>{(function Et(qe,Ve){var yt,Wt,dt,st;return(0,o.sH)(this,void 0,void 0,function*(){try{for(yt=(0,o.xN)(qe);!(Wt=yield yt.next()).done;)if(Ve.next(Wt.value),Ve.closed)return}catch(ke){dt={error:ke}}finally{try{Wt&&!Wt.done&&(st=yt.return)&&(yield st.call(yt))}finally{if(dt)throw dt.error}}Ve.complete()})})(qe,Ve).catch(yt=>Ve.error(yt))})}},5298:(Ne,Q,I)=>{"use strict";I.d(Q,{h:()=>ge});var o=I(6365),N=I(8750);const ae=new(I(4226).c)(X=>X.complete());var q=I(9326),ue=I(6648);function ge(...X){const Z=(0,q.lI)(X),Ee=(0,q.R0)(X,1/0),Ue=X;return Ue.length?1===Ue.length?(0,N.Tg)(Ue[0]):(0,o.U)(Ee)((0,ue.H)(Ue,Z)):ae}},7673:(Ne,Q,I)=>{"use strict";I.d(Q,{of:()=>Y});var o=I(9326),N=I(6648);function Y(...ae){const J=(0,o.lI)(ae);return(0,N.H)(ae,J)}},1584:(Ne,Q,I)=>{"use strict";I.d(Q,{O:()=>J});var o=I(4226),N=I(3236),Y=I(9470);function J(ie=0,q,ue=N.b){let ge=-1;return null!=q&&((0,Y.m)(q)?ue=q:ge=q),new o.c(X=>{let Z=function ae(ie){return ie instanceof Date&&!isNaN(ie)}(ie)?+ie-ue.now():ie;Z<0&&(Z=0);let Ee=0;return ue.schedule(function(){X.closed||(X.next(Ee++),0<=ge?this.schedule(void 0,ge):X.complete())},Z)})}},4360:(Ne,Q,I)=>{"use strict";I.d(Q,{_:()=>N});var o=I(7707);function N(ae,J,ie,q,ue){return new Y(ae,J,ie,q,ue)}class Y extends o.vU{constructor(J,ie,q,ue,ge,X){super(J),this.onFinalize=ge,this.shouldUnsubscribe=X,this._next=ie?function(Z){try{ie(Z)}catch(Ee){J.error(Ee)}}:super._next,this._error=ue?function(Z){try{ue(Z)}catch(Ee){J.error(Ee)}finally{this.unsubscribe()}}:super._error,this._complete=q?function(){try{q()}catch(Z){J.error(Z)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var J;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ie}=this;super.unsubscribe(),!ie&&(null===(J=this.onFinalize)||void 0===J||J.call(this))}}}},5964:(Ne,Q,I)=>{"use strict";I.d(Q,{p:()=>Y});var o=I(9974),N=I(4360);function Y(ae,J){return(0,o.N)((ie,q)=>{let ue=0;ie.subscribe((0,N._)(q,ge=>ae.call(J,ge,ue++)&&q.next(ge)))})}},6354:(Ne,Q,I)=>{"use strict";I.d(Q,{T:()=>Y});var o=I(9974),N=I(4360);function Y(ae,J){return(0,o.N)((ie,q)=>{let ue=0;ie.subscribe((0,N._)(q,ge=>{q.next(ae.call(J,ge,ue++))}))})}},6365:(Ne,Q,I)=>{"use strict";I.d(Q,{U:()=>Y});var o=I(1397),N=I(3669);function Y(ae=1/0){return(0,o.Z)(N.D,ae)}},1397:(Ne,Q,I)=>{"use strict";I.d(Q,{Z:()=>ue});var o=I(6354),N=I(8750),Y=I(9974),ae=I(5225),J=I(4360),q=I(8071);function ue(ge,X,Z=1/0){return(0,q.T)(X)?ue((Ee,Ue)=>(0,o.T)((Re,Ke)=>X(Ee,Re,Ue,Ke))((0,N.Tg)(ge(Ee,Ue))),Z):("number"==typeof X&&(Z=X),(0,Y.N)((Ee,Ue)=>function ie(ge,X,Z,Ee,Ue,Re,Ke,Xe){const lt=[];let St=0,ht=0,Et=!1;const qe=()=>{Et&&!lt.length&&!St&&X.complete()},Ve=Wt=>St<Ee?yt(Wt):lt.push(Wt),yt=Wt=>{Re&&X.next(Wt),St++;let dt=!1;(0,N.Tg)(Z(Wt,ht++)).subscribe((0,J._)(X,st=>{Ue?.(st),Re?Ve(st):X.next(st)},()=>{dt=!0},void 0,()=>{if(dt)try{for(St--;lt.length&&St<Ee;){const st=lt.shift();Ke?(0,ae.N)(X,Ke,()=>yt(st)):yt(st)}qe()}catch(st){X.error(st)}}))};return ge.subscribe((0,J._)(X,Ve,()=>{Et=!0,qe()})),()=>{Xe?.()}}(Ee,Ue,ge,Z)))}},6977:(Ne,Q,I)=>{"use strict";I.d(Q,{Q:()=>J});var o=I(9974),N=I(4360),Y=I(8750),ae=I(5343);function J(ie){return(0,o.N)((q,ue)=>{(0,Y.Tg)(ie).subscribe((0,N._)(ue,()=>ue.complete(),ae.l)),!ue.closed&&q.subscribe(ue)})}},6780:(Ne,Q,I)=>{"use strict";I.d(Q,{R:()=>J});var o=I(8359);class N extends o.yU{constructor(q,ue){super()}schedule(q,ue=0){return this}}const Y={setInterval(ie,q,...ue){const{delegate:ge}=Y;return ge?.setInterval?ge.setInterval(ie,q,...ue):setInterval(ie,q,...ue)},clearInterval(ie){const{delegate:q}=Y;return(q?.clearInterval||clearInterval)(ie)},delegate:void 0};var ae=I(7908);class J extends N{constructor(q,ue){super(q,ue),this.scheduler=q,this.work=ue,this.pending=!1}schedule(q,ue=0){var ge;if(this.closed)return this;this.state=q;const X=this.id,Z=this.scheduler;return null!=X&&(this.id=this.recycleAsyncId(Z,X,ue)),this.pending=!0,this.delay=ue,this.id=null!==(ge=this.id)&&void 0!==ge?ge:this.requestAsyncId(Z,this.id,ue),this}requestAsyncId(q,ue,ge=0){return Y.setInterval(q.flush.bind(q,this),ge)}recycleAsyncId(q,ue,ge=0){if(null!=ge&&this.delay===ge&&!1===this.pending)return ue;null!=ue&&Y.clearInterval(ue)}execute(q,ue){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ge=this._execute(q,ue);if(ge)return ge;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(q,ue){let X,ge=!1;try{this.work(q)}catch(Z){ge=!0,X=Z||new Error("Scheduled action threw falsy error")}if(ge)return this.unsubscribe(),X}unsubscribe(){if(!this.closed){const{id:q,scheduler:ue}=this,{actions:ge}=ue;this.work=this.state=this.scheduler=null,this.pending=!1,(0,ae.o)(ge,this),null!=q&&(this.id=this.recycleAsyncId(ue,q,null)),this.delay=null,super.unsubscribe()}}}},3604:(Ne,Q,I)=>{"use strict";I.d(Q,{q:()=>Y});const o={now:()=>(o.delegate||Date).now(),delegate:void 0};class N{constructor(J,ie=N.now){this.schedulerActionCtor=J,this.now=ie}schedule(J,ie=0,q){return new this.schedulerActionCtor(this,J).schedule(q,ie)}}N.now=o.now;class Y extends N{constructor(J,ie=N.now){super(J,ie),this.actions=[],this._active=!1}flush(J){const{actions:ie}=this;if(this._active)return void ie.push(J);let q;this._active=!0;do{if(q=J.execute(J.state,J.delay))break}while(J=ie.shift());if(this._active=!1,q){for(;J=ie.shift();)J.unsubscribe();throw q}}}},536:(Ne,Q,I)=>{"use strict";I.d(Q,{X:()=>q});var o=I(6780),N=I(8359);const Y={schedule(ge){let X=requestAnimationFrame,Z=cancelAnimationFrame;const{delegate:Ee}=Y;Ee&&(X=Ee.requestAnimationFrame,Z=Ee.cancelAnimationFrame);const Ue=X(Re=>{Z=void 0,ge(Re)});return new N.yU(()=>Z?.(Ue))},requestAnimationFrame(...ge){const{delegate:X}=Y;return(X?.requestAnimationFrame||requestAnimationFrame)(...ge)},cancelAnimationFrame(...ge){const{delegate:X}=Y;return(X?.cancelAnimationFrame||cancelAnimationFrame)(...ge)},delegate:void 0};var J=I(3604);const q=new class ie extends J.q{flush(X){this._active=!0;const Z=this._scheduled;this._scheduled=void 0;const{actions:Ee}=this;let Ue;X=X||Ee.shift();do{if(Ue=X.execute(X.state,X.delay))break}while((X=Ee[0])&&X.id===Z&&Ee.shift());if(this._active=!1,Ue){for(;(X=Ee[0])&&X.id===Z&&Ee.shift();)X.unsubscribe();throw Ue}}}(class ae extends o.R{constructor(X,Z){super(X,Z),this.scheduler=X,this.work=Z}requestAsyncId(X,Z,Ee=0){return null!==Ee&&Ee>0?super.requestAsyncId(X,Z,Ee):(X.actions.push(this),X._scheduled||(X._scheduled=Y.requestAnimationFrame(()=>X.flush(void 0))))}recycleAsyncId(X,Z,Ee=0){var Ue;if(null!=Ee?Ee>0:this.delay>0)return super.recycleAsyncId(X,Z,Ee);const{actions:Re}=X;null!=Z&&(null===(Ue=Re[Re.length-1])||void 0===Ue?void 0:Ue.id)!==Z&&(Y.cancelAnimationFrame(Z),X._scheduled=void 0)}})},3236:(Ne,Q,I)=>{"use strict";I.d(Q,{E:()=>Y,b:()=>ae});var o=I(6780);const Y=new(I(3604).q)(o.R),ae=Y},9270:(Ne,Q,I)=>{"use strict";I.d(Q,{f:()=>o});const o={setTimeout(N,Y,...ae){const{delegate:J}=o;return J?.setTimeout?J.setTimeout(N,Y,...ae):setTimeout(N,Y,...ae)},clearTimeout(N){const{delegate:Y}=o;return(Y?.clearTimeout||clearTimeout)(N)},delegate:void 0}},4761:(Ne,Q,I)=>{"use strict";I.d(Q,{l:()=>N});const N=function o(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Ne,Q,I)=>{"use strict";I.d(Q,{s:()=>o});const o="function"==typeof Symbol&&Symbol.observable||"@@observable"},9326:(Ne,Q,I)=>{"use strict";I.d(Q,{R0:()=>ie,lI:()=>J,ms:()=>ae});var o=I(8071),N=I(9470);function Y(q){return q[q.length-1]}function ae(q){return(0,o.T)(Y(q))?q.pop():void 0}function J(q){return(0,N.m)(Y(q))?q.pop():void 0}function ie(q,ue){return"number"==typeof Y(q)?q.pop():ue}},7908:(Ne,Q,I)=>{"use strict";function o(N,Y){if(N){const ae=N.indexOf(Y);0<=ae&&N.splice(ae,1)}}I.d(Q,{o:()=>o})},1853:(Ne,Q,I)=>{"use strict";function o(N){const ae=N(J=>{Error.call(J),J.stack=(new Error).stack});return ae.prototype=Object.create(Error.prototype),ae.prototype.constructor=ae,ae}I.d(Q,{L:()=>o})},9786:(Ne,Q,I)=>{"use strict";I.d(Q,{Y:()=>Y,l:()=>ae});var o=I(1026);let N=null;function Y(J){if(o.$.useDeprecatedSynchronousErrorHandling){const ie=!N;if(ie&&(N={errorThrown:!1,error:null}),J(),ie){const{errorThrown:q,error:ue}=N;if(N=null,q)throw ue}}else J()}function ae(J){o.$.useDeprecatedSynchronousErrorHandling&&N&&(N.errorThrown=!0,N.error=J)}},5225:(Ne,Q,I)=>{"use strict";function o(N,Y,ae,J=0,ie=!1){const q=Y.schedule(function(){ae(),ie?N.add(this.schedule(null,J)):this.unsubscribe()},J);if(N.add(q),!ie)return q}I.d(Q,{N:()=>o})},3669:(Ne,Q,I)=>{"use strict";function o(N){return N}I.d(Q,{D:()=>o})},7441:(Ne,Q,I)=>{"use strict";I.d(Q,{X:()=>o});const o=N=>N&&"number"==typeof N.length&&"function"!=typeof N},7953:(Ne,Q,I)=>{"use strict";I.d(Q,{T:()=>N});var o=I(8071);function N(Y){return Symbol.asyncIterator&&(0,o.T)(Y?.[Symbol.asyncIterator])}},8071:(Ne,Q,I)=>{"use strict";function o(N){return"function"==typeof N}I.d(Q,{T:()=>o})},5055:(Ne,Q,I)=>{"use strict";I.d(Q,{l:()=>Y});var o=I(3494),N=I(8071);function Y(ae){return(0,N.T)(ae[o.s])}},5397:(Ne,Q,I)=>{"use strict";I.d(Q,{x:()=>Y});var o=I(4761),N=I(8071);function Y(ae){return(0,N.T)(ae?.[o.l])}},9858:(Ne,Q,I)=>{"use strict";I.d(Q,{y:()=>N});var o=I(8071);function N(Y){return(0,o.T)(Y?.then)}},5196:(Ne,Q,I)=>{"use strict";I.d(Q,{C:()=>Y,U:()=>ae});var o=I(5215),N=I(8071);function Y(J){return(0,o.AQ)(this,arguments,function*(){const q=J.getReader();try{for(;;){const{value:ue,done:ge}=yield(0,o.N3)(q.read());if(ge)return yield(0,o.N3)(void 0);yield yield(0,o.N3)(ue)}}finally{q.releaseLock()}})}function ae(J){return(0,N.T)(J?.getReader)}},9470:(Ne,Q,I)=>{"use strict";I.d(Q,{m:()=>N});var o=I(8071);function N(Y){return Y&&(0,o.T)(Y.schedule)}},9974:(Ne,Q,I)=>{"use strict";I.d(Q,{N:()=>Y});var o=I(8071);function Y(ae){return J=>{if(function N(ae){return(0,o.T)(ae?.lift)}(J))return J.lift(function(ie){try{return ae(ie,this)}catch(q){this.error(q)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Ne,Q,I)=>{"use strict";I.d(Q,{I:()=>ae});var o=I(6354);const{isArray:N}=Array;function ae(J){return(0,o.T)(ie=>function Y(J,ie){return N(ie)?J(...ie):J(ie)}(J,ie))}},5343:(Ne,Q,I)=>{"use strict";function o(){}I.d(Q,{l:()=>o})},5334:(Ne,Q,I)=>{"use strict";I.d(Q,{m:()=>Y});var o=I(1026),N=I(9270);function Y(ae){N.f.setTimeout(()=>{const{onUnhandledError:J}=o.$;if(!J)throw ae;J(ae)})}},591:(Ne,Q,I)=>{"use strict";function o(N){return new TypeError(`You provided ${null!==N&&"object"==typeof N?"an invalid object":`'${N}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}I.d(Q,{L:()=>o})},6935:()=>{"use strict";const Ne=globalThis;function Q(ce){return(Ne.__Zone_symbol_prefix||"__zone_symbol__")+ce}const N=Object.getOwnPropertyDescriptor,Y=Object.defineProperty,ae=Object.getPrototypeOf,J=Object.create,ie=Array.prototype.slice,q="addEventListener",ue="removeEventListener",ge=Q(q),X=Q(ue),Z="true",Ee="false",Ue=Q("");function Re(ce,me){return Zone.current.wrap(ce,me)}function Ke(ce,me,je,ve,Fe){return Zone.current.scheduleMacroTask(ce,me,je,ve,Fe)}const Xe=Q,lt=typeof window<"u",St=lt?window:void 0,ht=lt&&St||globalThis,Et="removeAttribute";function qe(ce,me){for(let je=ce.length-1;je>=0;je--)"function"==typeof ce[je]&&(ce[je]=Re(ce[je],me+"_"+je));return ce}function yt(ce){return!ce||!1!==ce.writable&&!("function"==typeof ce.get&&typeof ce.set>"u")}const Wt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,dt=!("nw"in ht)&&typeof ht.process<"u"&&"[object process]"===ht.process.toString(),st=!dt&&!Wt&&!(!lt||!St.HTMLElement),ke=typeof ht.process<"u"&&"[object process]"===ht.process.toString()&&!Wt&&!(!lt||!St.HTMLElement),U={},fe=Xe("enable_beforeunload"),_e=function(ce){if(!(ce=ce||ht.event))return;let me=U[ce.type];me||(me=U[ce.type]=Xe("ON_PROPERTY"+ce.type));const je=this||ce.target||ht,ve=je[me];let Fe;return st&&je===St&&"error"===ce.type?(Fe=ve&&ve.call(this,ce.message,ce.filename,ce.lineno,ce.colno,ce.error),!0===Fe&&ce.preventDefault()):(Fe=ve&&ve.apply(this,arguments),"beforeunload"===ce.type&&ht[fe]&&"string"==typeof Fe?ce.returnValue=Fe:null!=Fe&&!Fe&&ce.preventDefault()),Fe};function be(ce,me,je){let ve=N(ce,me);if(!ve&&je&&N(je,me)&&(ve={enumerable:!0,configurable:!0}),!ve||!ve.configurable)return;const Fe=Xe("on"+me+"patched");if(ce.hasOwnProperty(Fe)&&ce[Fe])return;delete ve.writable,delete ve.value;const ot=ve.get,mt=ve.set,Dt=me.slice(2);let Tt=U[Dt];Tt||(Tt=U[Dt]=Xe("ON_PROPERTY"+Dt)),ve.set=function(Ce){let he=this;!he&&ce===ht&&(he=ht),he&&("function"==typeof he[Tt]&&he.removeEventListener(Dt,_e),mt&&mt.call(he,null),he[Tt]=Ce,"function"==typeof Ce&&he.addEventListener(Dt,_e,!1))},ve.get=function(){let Ce=this;if(!Ce&&ce===ht&&(Ce=ht),!Ce)return null;const he=Ce[Tt];if(he)return he;if(ot){let G=ot.call(this);if(G)return ve.set.call(this,G),"function"==typeof Ce[Et]&&Ce.removeAttribute(me),G}return null},Y(ce,me,ve),ce[Fe]=!0}function Se(ce,me,je){if(me)for(let ve=0;ve<me.length;ve++)be(ce,"on"+me[ve],je);else{const ve=[];for(const Fe in ce)"on"==Fe.slice(0,2)&&ve.push(Fe);for(let Fe=0;Fe<ve.length;Fe++)be(ce,ve[Fe],je)}}const Te=Xe("originalInstance");function Ye(ce){const me=ht[ce];if(!me)return;ht[Xe(ce)]=me,ht[ce]=function(){const Fe=qe(arguments,ce);switch(Fe.length){case 0:this[Te]=new me;break;case 1:this[Te]=new me(Fe[0]);break;case 2:this[Te]=new me(Fe[0],Fe[1]);break;case 3:this[Te]=new me(Fe[0],Fe[1],Fe[2]);break;case 4:this[Te]=new me(Fe[0],Fe[1],Fe[2],Fe[3]);break;default:throw new Error("Arg list too long.")}},Ot(ht[ce],me);const je=new me(function(){});let ve;for(ve in je)"XMLHttpRequest"===ce&&"responseBlob"===ve||function(Fe){"function"==typeof je[Fe]?ht[ce].prototype[Fe]=function(){return this[Te][Fe].apply(this[Te],arguments)}:Y(ht[ce].prototype,Fe,{set:function(ot){"function"==typeof ot?(this[Te][Fe]=Re(ot,ce+"."+Fe),Ot(this[Te][Fe],ot)):this[Te][Fe]=ot},get:function(){return this[Te][Fe]}})}(ve);for(ve in me)"prototype"!==ve&&me.hasOwnProperty(ve)&&(ht[ce][ve]=me[ve])}function $t(ce,me,je){let ve=ce;for(;ve&&!ve.hasOwnProperty(me);)ve=ae(ve);!ve&&ce[me]&&(ve=ce);const Fe=Xe(me);let ot=null;if(ve&&(!(ot=ve[Fe])||!ve.hasOwnProperty(Fe))&&(ot=ve[Fe]=ve[me],yt(ve&&N(ve,me)))){const Dt=je(ot,Fe,me);ve[me]=function(){return Dt(this,arguments)},Ot(ve[me],ot)}return ot}function Pn(ce,me,je){let ve=null;function Fe(ot){const mt=ot.data;return mt.args[mt.cbIdx]=function(){ot.invoke.apply(this,arguments)},ve.apply(mt.target,mt.args),ot}ve=$t(ce,me,ot=>function(mt,Dt){const Tt=je(mt,Dt);return Tt.cbIdx>=0&&"function"==typeof Dt[Tt.cbIdx]?Ke(Tt.name,Dt[Tt.cbIdx],Tt,Fe):ot.apply(mt,Dt)})}function Ot(ce,me){ce[Xe("OriginalDelegate")]=me}let Tn=!1,Fn=!1;function pn(){if(Tn)return Fn;Tn=!0;try{const ce=St.navigator.userAgent;(-1!==ce.indexOf("MSIE ")||-1!==ce.indexOf("Trident/")||-1!==ce.indexOf("Edge/"))&&(Fn=!0)}catch{}return Fn}function zn(ce){return"function"==typeof ce}function ir(ce){return"number"==typeof ce}let fr=!1;if(typeof window<"u")try{const ce=Object.defineProperty({},"passive",{get:function(){fr=!0}});window.addEventListener("test",ce,ce),window.removeEventListener("test",ce,ce)}catch{fr=!1}const Xr={useG:!0},Bn={},cr={},Nr=new RegExp("^"+Ue+"(\\w+)(true|false)$"),Er=Xe("propagationStopped");function or(ce,me){const je=(me?me(ce):ce)+Ee,ve=(me?me(ce):ce)+Z,Fe=Ue+je,ot=Ue+ve;Bn[ce]={},Bn[ce][Ee]=Fe,Bn[ce][Z]=ot}function Rr(ce,me,je,ve){const Fe=ve&&ve.add||q,ot=ve&&ve.rm||ue,mt=ve&&ve.listeners||"eventListeners",Dt=ve&&ve.rmAll||"removeAllListeners",Tt=Xe(Fe),Ce="."+Fe+":",he="prependListener",G="."+he+":",le=function(ct,rt,Ht){if(ct.isRemoved)return;const rn=ct.callback;let xn;"object"==typeof rn&&rn.handleEvent&&(ct.callback=It=>rn.handleEvent(It),ct.originalDelegate=rn);try{ct.invoke(ct,rt,[Ht])}catch(It){xn=It}const yn=ct.options;return yn&&"object"==typeof yn&&yn.once&&rt[ot].call(rt,Ht.type,ct.originalDelegate?ct.originalDelegate:ct.callback,yn),xn};function xe(ct,rt,Ht){if(!(rt=rt||ce.event))return;const rn=ct||rt.target||ce,xn=rn[Bn[rt.type][Ht?Z:Ee]];if(xn){const yn=[];if(1===xn.length){const It=le(xn[0],rn,rt);It&&yn.push(It)}else{const It=xn.slice();for(let bn=0;bn<It.length&&(!rt||!0!==rt[Er]);bn++){const Bt=le(It[bn],rn,rt);Bt&&yn.push(Bt)}}if(1===yn.length)throw yn[0];for(let It=0;It<yn.length;It++){const bn=yn[It];me.nativeScheduleMicroTask(()=>{throw bn})}}}const it=function(ct){return xe(this,ct,!1)},_t=function(ct){return xe(this,ct,!0)};function Ft(ct,rt){if(!ct)return!1;let Ht=!0;rt&&void 0!==rt.useG&&(Ht=rt.useG);const rn=rt&&rt.vh;let xn=!0;rt&&void 0!==rt.chkDup&&(xn=rt.chkDup);let yn=!1;rt&&void 0!==rt.rt&&(yn=rt.rt);let It=ct;for(;It&&!It.hasOwnProperty(Fe);)It=ae(It);if(!It&&ct[Fe]&&(It=ct),!It||It[Tt])return!1;const bn=rt&&rt.eventNameToString,Bt={},Lt=It[Tt]=It[Fe],Nt=It[Xe(ot)]=It[ot],P=It[Xe(mt)]=It[mt],$=It[Xe(Dt)]=It[Dt];let H;rt&&rt.prepend&&(H=It[Xe(rt.prepend)]=It[rt.prepend]);const Je=Ht?function(Me){if(!Bt.isExisting)return Lt.call(Bt.target,Bt.eventName,Bt.capture?_t:it,Bt.options)}:function(Me){return Lt.call(Bt.target,Bt.eventName,Me.invoke,Bt.options)},wt=Ht?function(Me){if(!Me.isRemoved){const Qe=Bn[Me.eventName];let Rt;Qe&&(Rt=Qe[Me.capture?Z:Ee]);const Gt=Rt&&Me.target[Rt];if(Gt)for(let R=0;R<Gt.length;R++)if(Gt[R]===Me){Gt.splice(R,1),Me.isRemoved=!0,Me.removeAbortListener&&(Me.removeAbortListener(),Me.removeAbortListener=null),0===Gt.length&&(Me.allRemoved=!0,Me.target[Rt]=null);break}}if(Me.allRemoved)return Nt.call(Me.target,Me.eventName,Me.capture?_t:it,Me.options)}:function(Me){return Nt.call(Me.target,Me.eventName,Me.invoke,Me.options)},Zt=rt&&rt.diff?rt.diff:function(Me,Qe){const Rt=typeof Qe;return"function"===Rt&&Me.callback===Qe||"object"===Rt&&Me.originalDelegate===Qe},on=Zone[Xe("UNPATCHED_EVENTS")],sn=ce[Xe("PASSIVE_EVENTS")],He=function(Me,Qe,Rt,Gt,R=!1,w=!1){return function(){const E=this||ce;let g=arguments[0];rt&&rt.transferEventName&&(g=rt.transferEventName(g));let O=arguments[1];if(!O)return Me.apply(this,arguments);if(dt&&"uncaughtException"===g)return Me.apply(this,arguments);let L=!1;if("function"!=typeof O){if(!O.handleEvent)return Me.apply(this,arguments);L=!0}if(rn&&!rn(Me,O,E,arguments))return;const oe=fr&&!!sn&&-1!==sn.indexOf(g),De=function tt(Me){if("object"==typeof Me&&null!==Me){const Qe={...Me};return Me.signal&&(Qe.signal=Me.signal),Qe}return Me}(function K(Me,Qe){return!fr&&"object"==typeof Me&&Me?!!Me.capture:fr&&Qe?"boolean"==typeof Me?{capture:Me,passive:!0}:Me?"object"==typeof Me&&!1!==Me.passive?{...Me,passive:!0}:Me:{passive:!0}:Me}(arguments[2],oe)),Ge=De?.signal;if(Ge?.aborted)return;if(on)for(let wr=0;wr<on.length;wr++)if(g===on[wr])return oe?Me.call(E,g,O,De):Me.apply(this,arguments);const Pt=!!De&&("boolean"==typeof De||De.capture),bt=!(!De||"object"!=typeof De)&&De.once,an=Zone.current;let En=Bn[g];En||(or(g,bn),En=Bn[g]);const Xt=En[Pt?Z:Ee];let Sn,An=E[Xt],Dn=!1;if(An){if(Dn=!0,xn)for(let wr=0;wr<An.length;wr++)if(Zt(An[wr],O))return}else An=E[Xt]=[];const Jn=E.constructor.name,kr=cr[Jn];kr&&(Sn=kr[g]),Sn||(Sn=Jn+Qe+(bn?bn(g):g)),Bt.options=De,bt&&(Bt.options.once=!1),Bt.target=E,Bt.capture=Pt,Bt.eventName=g,Bt.isExisting=Dn;const Mn=Ht?Xr:void 0;Mn&&(Mn.taskData=Bt),Ge&&(Bt.options.signal=void 0);const Wn=an.scheduleEventTask(Sn,O,Mn,Rt,Gt);if(Ge){Bt.options.signal=Ge;const wr=()=>Wn.zone.cancelTask(Wn);Me.call(Ge,"abort",wr,{once:!0}),Wn.removeAbortListener=()=>Ge.removeEventListener("abort",wr)}return Bt.target=null,Mn&&(Mn.taskData=null),bt&&(Bt.options.once=!0),!fr&&"boolean"==typeof Wn.options||(Wn.options=De),Wn.target=E,Wn.capture=Pt,Wn.eventName=g,L&&(Wn.originalDelegate=O),w?An.unshift(Wn):An.push(Wn),R?E:void 0}};return It[Fe]=He(Lt,Ce,Je,wt,yn),H&&(It[he]=He(H,G,function(Me){return H.call(Bt.target,Bt.eventName,Me.invoke,Bt.options)},wt,yn,!0)),It[ot]=function(){const Me=this||ce;let Qe=arguments[0];rt&&rt.transferEventName&&(Qe=rt.transferEventName(Qe));const Rt=arguments[2],Gt=!!Rt&&("boolean"==typeof Rt||Rt.capture),R=arguments[1];if(!R)return Nt.apply(this,arguments);if(rn&&!rn(Nt,R,Me,arguments))return;const w=Bn[Qe];let E;w&&(E=w[Gt?Z:Ee]);const g=E&&Me[E];if(g)for(let O=0;O<g.length;O++){const L=g[O];if(Zt(L,R))return g.splice(O,1),L.isRemoved=!0,0!==g.length||(L.allRemoved=!0,Me[E]=null,Gt||"string"!=typeof Qe)||(Me[Ue+"ON_PROPERTY"+Qe]=null),L.zone.cancelTask(L),yn?Me:void 0}return Nt.apply(this,arguments)},It[mt]=function(){const Me=this||ce;let Qe=arguments[0];rt&&rt.transferEventName&&(Qe=rt.transferEventName(Qe));const Rt=[],Gt=kn(Me,bn?bn(Qe):Qe);for(let R=0;R<Gt.length;R++){const w=Gt[R];Rt.push(w.originalDelegate?w.originalDelegate:w.callback)}return Rt},It[Dt]=function(){const Me=this||ce;let Qe=arguments[0];if(Qe){rt&&rt.transferEventName&&(Qe=rt.transferEventName(Qe));const Rt=Bn[Qe];if(Rt){const w=Me[Rt[Ee]],E=Me[Rt[Z]];if(w){const g=w.slice();for(let O=0;O<g.length;O++){const L=g[O];this[ot].call(this,Qe,L.originalDelegate?L.originalDelegate:L.callback,L.options)}}if(E){const g=E.slice();for(let O=0;O<g.length;O++){const L=g[O];this[ot].call(this,Qe,L.originalDelegate?L.originalDelegate:L.callback,L.options)}}}}else{const Rt=Object.keys(Me);for(let Gt=0;Gt<Rt.length;Gt++){const w=Nr.exec(Rt[Gt]);let E=w&&w[1];E&&"removeListener"!==E&&this[Dt].call(this,E)}this[Dt].call(this,"removeListener")}if(yn)return this},Ot(It[Fe],Lt),Ot(It[ot],Nt),$&&Ot(It[Dt],$),P&&Ot(It[mt],P),!0}let ft=[];for(let ct=0;ct<je.length;ct++)ft[ct]=Ft(je[ct],ve);return ft}function kn(ce,me){if(!me){const ot=[];for(let mt in ce){const Dt=Nr.exec(mt);let Tt=Dt&&Dt[1];if(Tt&&(!me||Tt===me)){const Ce=ce[mt];if(Ce)for(let he=0;he<Ce.length;he++)ot.push(Ce[he])}}return ot}let je=Bn[me];je||(or(me),je=Bn[me]);const ve=ce[je[Ee]],Fe=ce[je[Z]];return ve?Fe?ve.concat(Fe):ve.slice():Fe?Fe.slice():[]}function Vr(ce,me){const je=ce.Event;je&&je.prototype&&me.patchMethod(je.prototype,"stopImmediatePropagation",ve=>function(Fe,ot){Fe[Er]=!0,ve&&ve.apply(Fe,ot)})}const pr=Xe("zoneTask");function nr(ce,me,je,ve){let Fe=null,ot=null;je+=ve;const mt={};function Dt(Ce){const he=Ce.data;he.args[0]=function(){return Ce.invoke.apply(this,arguments)};const G=Fe.apply(ce,he.args);return ir(G)?he.handleId=G:(he.handle=G,he.isRefreshable=zn(G.refresh)),Ce}function Tt(Ce){const{handle:he,handleId:G}=Ce.data;return ot.call(ce,he??G)}Fe=$t(ce,me+=ve,Ce=>function(he,G){if(zn(G[0])){const le={isRefreshable:!1,isPeriodic:"Interval"===ve,delay:"Timeout"===ve||"Interval"===ve?G[1]||0:void 0,args:G},xe=G[0];G[0]=function(){try{return xe.apply(this,arguments)}finally{const{handle:Ht,handleId:rn,isPeriodic:xn,isRefreshable:yn}=le;!xn&&!yn&&(rn?delete mt[rn]:Ht&&(Ht[pr]=null))}};const it=Ke(me,G[0],le,Dt,Tt);if(!it)return it;const{handleId:_t,handle:Ft,isRefreshable:ft,isPeriodic:ct}=it.data;if(_t)mt[_t]=it;else if(Ft&&(Ft[pr]=it,ft&&!ct)){const rt=Ft.refresh;Ft.refresh=function(){const{zone:Ht,state:rn}=it;return"notScheduled"===rn?(it._state="scheduled",Ht._updateTaskCount(it,1)):"running"===rn&&(it._state="scheduling"),rt.call(this)}}return Ft??_t??it}return Ce.apply(ce,G)}),ot=$t(ce,je,Ce=>function(he,G){const le=G[0];let xe;ir(le)?(xe=mt[le],delete mt[le]):(xe=le?.[pr],xe?le[pr]=null:xe=le),xe?.type?xe.cancelFn&&xe.zone.cancelTask(xe):Ce.apply(ce,G)})}function tr(ce,me,je){if(!je||0===je.length)return me;const ve=je.filter(ot=>ot.target===ce);if(!ve||0===ve.length)return me;const Fe=ve[0].ignoreProperties;return me.filter(ot=>-1===Fe.indexOf(ot))}function Vt(ce,me,je,ve){ce&&Se(ce,tr(ce,me,je),ve)}function Ze(ce){return Object.getOwnPropertyNames(ce).filter(me=>me.startsWith("on")&&me.length>2).map(me=>me.substring(2))}function ur(ce,me,je,ve,Fe){const ot=Zone.__symbol__(ve);if(me[ot])return;const mt=me[ot]=me[ve];me[ve]=function(Dt,Tt,Ce){return Tt&&Tt.prototype&&Fe.forEach(function(he){const G=`${je}.${ve}::`+he,le=Tt.prototype;try{if(le.hasOwnProperty(he)){const xe=ce.ObjectGetOwnPropertyDescriptor(le,he);xe&&xe.value?(xe.value=ce.wrapWithCurrentZone(xe.value,G),ce._redefineProperty(Tt.prototype,he,xe)):le[he]&&(le[he]=ce.wrapWithCurrentZone(le[he],G))}else le[he]&&(le[he]=ce.wrapWithCurrentZone(le[he],G))}catch{}}),mt.call(me,Dt,Tt,Ce)},ce.attachOriginToPatched(me[ve],mt)}const oi=function o(){const ce=globalThis,me=!0===ce[Q("forceDuplicateZoneCheck")];if(ce.Zone&&(me||"function"!=typeof ce.Zone.__symbol__))throw new Error("Zone already loaded.");return ce.Zone??=function I(){const ce=Ne.performance;function me(K){ce&&ce.mark&&ce.mark(K)}function je(K,ye){ce&&ce.measure&&ce.measure(K,ye)}me("Zone");let ve=(()=>{class K{static#e=this.__symbol__=Q;static assertZonePatched(){if(Ne.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 W=K.current;for(;W.parent;)W=W.parent;return W}static get current(){return Nt.zone}static get currentTask(){return P}static __load_patch(W,ee,Ie=!1){if(Bt.hasOwnProperty(W)){const $e=!0===Ne[Q("forceDuplicateZoneCheck")];if(!Ie&&$e)throw Error("Already loaded patch: "+W)}else if(!Ne["__Zone_disable_"+W]){const $e="Zone:"+W;me($e),Bt[W]=ee(Ne,K,Lt),je($e,$e)}}get parent(){return this._parent}get name(){return this._name}constructor(W,ee){this._parent=W,this._name=ee?ee.name||"unnamed":"<root>",this._properties=ee&&ee.properties||{},this._zoneDelegate=new ot(this,this._parent&&this._parent._zoneDelegate,ee)}get(W){const ee=this.getZoneWith(W);if(ee)return ee._properties[W]}getZoneWith(W){let ee=this;for(;ee;){if(ee._properties.hasOwnProperty(W))return ee;ee=ee._parent}return null}fork(W){if(!W)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,W)}wrap(W,ee){if("function"!=typeof W)throw new Error("Expecting function got: "+W);const Ie=this._zoneDelegate.intercept(this,W,ee),$e=this;return function(){return $e.runGuarded(Ie,this,arguments,ee)}}run(W,ee,Ie,$e){Nt={parent:Nt,zone:this};try{return this._zoneDelegate.invoke(this,W,ee,Ie,$e)}finally{Nt=Nt.parent}}runGuarded(W,ee=null,Ie,$e){Nt={parent:Nt,zone:this};try{try{return this._zoneDelegate.invoke(this,W,ee,Ie,$e)}catch(Je){if(this._zoneDelegate.handleError(this,Je))throw Je}}finally{Nt=Nt.parent}}runTask(W,ee,Ie){if(W.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(W.zone||Ft).name+"; Execution: "+this.name+")");const $e=W,{type:Je,data:{isPeriodic:wt=!1,isRefreshable:Kt=!1}={}}=W;if(W.state===ft&&(Je===bn||Je===It))return;const Zt=W.state!=Ht;Zt&&$e._transitionTo(Ht,rt);const on=P;P=$e,Nt={parent:Nt,zone:this};try{Je==It&&W.data&&!wt&&!Kt&&(W.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,$e,ee,Ie)}catch(sn){if(this._zoneDelegate.handleError(this,sn))throw sn}}finally{const sn=W.state;if(sn!==ft&&sn!==xn)if(Je==bn||wt||Kt&&sn===ct)Zt&&$e._transitionTo(rt,Ht,ct);else{const tt=$e._zoneDelegates;this._updateTaskCount($e,-1),Zt&&$e._transitionTo(ft,Ht,ft),Kt&&($e._zoneDelegates=tt)}Nt=Nt.parent,P=on}}scheduleTask(W){if(W.zone&&W.zone!==this){let Ie=this;for(;Ie;){if(Ie===W.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${W.zone.name}`);Ie=Ie.parent}}W._transitionTo(ct,ft);const ee=[];W._zoneDelegates=ee,W._zone=this;try{W=this._zoneDelegate.scheduleTask(this,W)}catch(Ie){throw W._transitionTo(xn,ct,ft),this._zoneDelegate.handleError(this,Ie),Ie}return W._zoneDelegates===ee&&this._updateTaskCount(W,1),W.state==ct&&W._transitionTo(rt,ct),W}scheduleMicroTask(W,ee,Ie,$e){return this.scheduleTask(new mt(yn,W,ee,Ie,$e,void 0))}scheduleMacroTask(W,ee,Ie,$e,Je){return this.scheduleTask(new mt(It,W,ee,Ie,$e,Je))}scheduleEventTask(W,ee,Ie,$e,Je){return this.scheduleTask(new mt(bn,W,ee,Ie,$e,Je))}cancelTask(W){if(W.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(W.zone||Ft).name+"; Execution: "+this.name+")");if(W.state===rt||W.state===Ht){W._transitionTo(rn,rt,Ht);try{this._zoneDelegate.cancelTask(this,W)}catch(ee){throw W._transitionTo(xn,rn),this._zoneDelegate.handleError(this,ee),ee}return this._updateTaskCount(W,-1),W._transitionTo(ft,rn),W.runCount=-1,W}}_updateTaskCount(W,ee){const Ie=W._zoneDelegates;-1==ee&&(W._zoneDelegates=null);for(let $e=0;$e<Ie.length;$e++)Ie[$e]._updateTaskCount(W.type,ee)}}return K})();const Fe={name:"",onHasTask:(K,ye,W,ee)=>K.hasTask(W,ee),onScheduleTask:(K,ye,W,ee)=>K.scheduleTask(W,ee),onInvokeTask:(K,ye,W,ee,Ie,$e)=>K.invokeTask(W,ee,Ie,$e),onCancelTask:(K,ye,W,ee)=>K.cancelTask(W,ee)};class ot{get zone(){return this._zone}constructor(ye,W,ee){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=ye,this._parentDelegate=W,this._forkZS=ee&&(ee&&ee.onFork?ee:W._forkZS),this._forkDlgt=ee&&(ee.onFork?W:W._forkDlgt),this._forkCurrZone=ee&&(ee.onFork?this._zone:W._forkCurrZone),this._interceptZS=ee&&(ee.onIntercept?ee:W._interceptZS),this._interceptDlgt=ee&&(ee.onIntercept?W:W._interceptDlgt),this._interceptCurrZone=ee&&(ee.onIntercept?this._zone:W._interceptCurrZone),this._invokeZS=ee&&(ee.onInvoke?ee:W._invokeZS),this._invokeDlgt=ee&&(ee.onInvoke?W:W._invokeDlgt),this._invokeCurrZone=ee&&(ee.onInvoke?this._zone:W._invokeCurrZone),this._handleErrorZS=ee&&(ee.onHandleError?ee:W._handleErrorZS),this._handleErrorDlgt=ee&&(ee.onHandleError?W:W._handleErrorDlgt),this._handleErrorCurrZone=ee&&(ee.onHandleError?this._zone:W._handleErrorCurrZone),this._scheduleTaskZS=ee&&(ee.onScheduleTask?ee:W._scheduleTaskZS),this._scheduleTaskDlgt=ee&&(ee.onScheduleTask?W:W._scheduleTaskDlgt),this._scheduleTaskCurrZone=ee&&(ee.onScheduleTask?this._zone:W._scheduleTaskCurrZone),this._invokeTaskZS=ee&&(ee.onInvokeTask?ee:W._invokeTaskZS),this._invokeTaskDlgt=ee&&(ee.onInvokeTask?W:W._invokeTaskDlgt),this._invokeTaskCurrZone=ee&&(ee.onInvokeTask?this._zone:W._invokeTaskCurrZone),this._cancelTaskZS=ee&&(ee.onCancelTask?ee:W._cancelTaskZS),this._cancelTaskDlgt=ee&&(ee.onCancelTask?W:W._cancelTaskDlgt),this._cancelTaskCurrZone=ee&&(ee.onCancelTask?this._zone:W._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const Ie=ee&&ee.onHasTask;(Ie||W&&W._hasTaskZS)&&(this._hasTaskZS=Ie?ee:Fe,this._hasTaskDlgt=W,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,ee.onScheduleTask||(this._scheduleTaskZS=Fe,this._scheduleTaskDlgt=W,this._scheduleTaskCurrZone=this._zone),ee.onInvokeTask||(this._invokeTaskZS=Fe,this._invokeTaskDlgt=W,this._invokeTaskCurrZone=this._zone),ee.onCancelTask||(this._cancelTaskZS=Fe,this._cancelTaskDlgt=W,this._cancelTaskCurrZone=this._zone))}fork(ye,W){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,ye,W):new ve(ye,W)}intercept(ye,W,ee){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,ye,W,ee):W}invoke(ye,W,ee,Ie,$e){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,ye,W,ee,Ie,$e):W.apply(ee,Ie)}handleError(ye,W){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,ye,W)}scheduleTask(ye,W){let ee=W;if(this._scheduleTaskZS)this._hasTaskZS&&ee._zoneDelegates.push(this._hasTaskDlgtOwner),ee=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,ye,W),ee||(ee=W);else if(W.scheduleFn)W.scheduleFn(W);else{if(W.type!=yn)throw new Error("Task is missing scheduleFn.");it(W)}return ee}invokeTask(ye,W,ee,Ie){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,ye,W,ee,Ie):W.callback.apply(ee,Ie)}cancelTask(ye,W){let ee;if(this._cancelTaskZS)ee=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,ye,W);else{if(!W.cancelFn)throw Error("Task is not cancelable");ee=W.cancelFn(W)}return ee}hasTask(ye,W){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,ye,W)}catch(ee){this.handleError(ye,ee)}}_updateTaskCount(ye,W){const ee=this._taskCounts,Ie=ee[ye],$e=ee[ye]=Ie+W;if($e<0)throw new Error("More tasks executed then were scheduled.");0!=Ie&&0!=$e||this.hasTask(this._zone,{microTask:ee.microTask>0,macroTask:ee.macroTask>0,eventTask:ee.eventTask>0,change:ye})}}class mt{constructor(ye,W,ee,Ie,$e,Je){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=ye,this.source=W,this.data=Ie,this.scheduleFn=$e,this.cancelFn=Je,!ee)throw new Error("callback is not defined");this.callback=ee;const wt=this;this.invoke=ye===bn&&Ie&&Ie.useG?mt.invokeTask:function(){return mt.invokeTask.call(Ne,wt,this,arguments)}}static invokeTask(ye,W,ee){ye||(ye=this),$++;try{return ye.runCount++,ye.zone.runTask(ye,W,ee)}finally{1==$&&_t(),$--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(ft,ct)}_transitionTo(ye,W,ee){if(this._state!==W&&this._state!==ee)throw new Error(`${this.type} '${this.source}': can not transition to '${ye}', expecting state '${W}'${ee?" or '"+ee+"'":""}, was '${this._state}'.`);this._state=ye,ye==ft&&(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 Dt=Q("setTimeout"),Tt=Q("Promise"),Ce=Q("then");let le,he=[],G=!1;function xe(K){if(le||Ne[Tt]&&(le=Ne[Tt].resolve(0)),le){let ye=le[Ce];ye||(ye=le.then),ye.call(le,K)}else Ne[Dt](K,0)}function it(K){0===$&&0===he.length&&xe(_t),K&&he.push(K)}function _t(){if(!G){for(G=!0;he.length;){const K=he;he=[];for(let ye=0;ye<K.length;ye++){const W=K[ye];try{W.zone.runTask(W,null,null)}catch(ee){Lt.onUnhandledError(ee)}}}Lt.microtaskDrainDone(),G=!1}}const Ft={name:"NO ZONE"},ft="notScheduled",ct="scheduling",rt="scheduled",Ht="running",rn="canceling",xn="unknown",yn="microTask",It="macroTask",bn="eventTask",Bt={},Lt={symbol:Q,currentZoneFrame:()=>Nt,onUnhandledError:H,microtaskDrainDone:H,scheduleMicroTask:it,showUncaughtError:()=>!ve[Q("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:H,patchMethod:()=>H,bindArguments:()=>[],patchThen:()=>H,patchMacroTask:()=>H,patchEventPrototype:()=>H,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>H,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>H,wrapWithCurrentZone:()=>H,filterProperties:()=>[],attachOriginToPatched:()=>H,_redefineProperty:()=>H,patchCallbacks:()=>H,nativeScheduleMicroTask:xe};let Nt={parent:null,zone:new ve(null,null)},P=null,$=0;function H(){}return je("Zone","Zone"),ve}(),ce.Zone}();(function Ln(ce){(function Cr(ce){ce.__load_patch("ZoneAwarePromise",(me,je,ve)=>{const Fe=Object.getOwnPropertyDescriptor,ot=Object.defineProperty,Dt=ve.symbol,Tt=[],Ce=!1!==me[Dt("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],he=Dt("Promise"),G=Dt("then"),le="__creationTrace__";ve.onUnhandledError=tt=>{if(ve.showUncaughtError()){const He=tt&&tt.rejection;He?console.error("Unhandled Promise rejection:",He instanceof Error?He.message:He,"; Zone:",tt.zone.name,"; Task:",tt.task&&tt.task.source,"; Value:",He,He instanceof Error?He.stack:void 0):console.error(tt)}},ve.microtaskDrainDone=()=>{for(;Tt.length;){const tt=Tt.shift();try{tt.zone.runGuarded(()=>{throw tt.throwOriginal?tt.rejection:tt})}catch(He){it(He)}}};const xe=Dt("unhandledPromiseRejectionHandler");function it(tt){ve.onUnhandledError(tt);try{const He=je[xe];"function"==typeof He&&He.call(this,tt)}catch{}}function _t(tt){return tt&&tt.then}function Ft(tt){return tt}function ft(tt){return wt.reject(tt)}const ct=Dt("state"),rt=Dt("value"),Ht=Dt("finally"),rn=Dt("parentPromiseValue"),xn=Dt("parentPromiseState"),yn="Promise.then",It=null,bn=!0,Bt=!1,Lt=0;function Nt(tt,He){return Me=>{try{K(tt,He,Me)}catch(Qe){K(tt,!1,Qe)}}}const P=function(){let tt=!1;return function(Me){return function(){tt||(tt=!0,Me.apply(null,arguments))}}},$="Promise resolved with itself",H=Dt("currentTaskTrace");function K(tt,He,Me){const Qe=P();if(tt===Me)throw new TypeError($);if(tt[ct]===It){let Rt=null;try{("object"==typeof Me||"function"==typeof Me)&&(Rt=Me&&Me.then)}catch(Gt){return Qe(()=>{K(tt,!1,Gt)})(),tt}if(He!==Bt&&Me instanceof wt&&Me.hasOwnProperty(ct)&&Me.hasOwnProperty(rt)&&Me[ct]!==It)W(Me),K(tt,Me[ct],Me[rt]);else if(He!==Bt&&"function"==typeof Rt)try{Rt.call(Me,Qe(Nt(tt,He)),Qe(Nt(tt,!1)))}catch(Gt){Qe(()=>{K(tt,!1,Gt)})()}else{tt[ct]=He;const Gt=tt[rt];if(tt[rt]=Me,tt[Ht]===Ht&&He===bn&&(tt[ct]=tt[xn],tt[rt]=tt[rn]),He===Bt&&Me instanceof Error){const R=je.currentTask&&je.currentTask.data&&je.currentTask.data[le];R&&ot(Me,H,{configurable:!0,enumerable:!1,writable:!0,value:R})}for(let R=0;R<Gt.length;)ee(tt,Gt[R++],Gt[R++],Gt[R++],Gt[R++]);if(0==Gt.length&&He==Bt){tt[ct]=Lt;let R=Me;try{throw new Error("Uncaught (in promise): "+function mt(tt){return tt&&tt.toString===Object.prototype.toString?(tt.constructor&&tt.constructor.name||"")+": "+JSON.stringify(tt):tt?tt.toString():Object.prototype.toString.call(tt)}(Me)+(Me&&Me.stack?"\n"+Me.stack:""))}catch(w){R=w}Ce&&(R.throwOriginal=!0),R.rejection=Me,R.promise=tt,R.zone=je.current,R.task=je.currentTask,Tt.push(R),ve.scheduleMicroTask()}}}return tt}const ye=Dt("rejectionHandledHandler");function W(tt){if(tt[ct]===Lt){try{const He=je[ye];He&&"function"==typeof He&&He.call(this,{rejection:tt[rt],promise:tt})}catch{}tt[ct]=Bt;for(let He=0;He<Tt.length;He++)tt===Tt[He].promise&&Tt.splice(He,1)}}function ee(tt,He,Me,Qe,Rt){W(tt);const Gt=tt[ct],R=Gt?"function"==typeof Qe?Qe:Ft:"function"==typeof Rt?Rt:ft;He.scheduleMicroTask(yn,()=>{try{const w=tt[rt],E=!!Me&&Ht===Me[Ht];E&&(Me[rn]=w,Me[xn]=Gt);const g=He.run(R,void 0,E&&R!==ft&&R!==Ft?[]:[w]);K(Me,!0,g)}catch(w){K(Me,!1,w)}},Me)}const $e=function(){},Je=me.AggregateError;class wt{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(He){return He instanceof wt?He:K(new this(null),bn,He)}static reject(He){return K(new this(null),Bt,He)}static withResolvers(){const He={};return He.promise=new wt((Me,Qe)=>{He.resolve=Me,He.reject=Qe}),He}static any(He){if(!He||"function"!=typeof He[Symbol.iterator])return Promise.reject(new Je([],"All promises were rejected"));const Me=[];let Qe=0;try{for(let R of He)Qe++,Me.push(wt.resolve(R))}catch{return Promise.reject(new Je([],"All promises were rejected"))}if(0===Qe)return Promise.reject(new Je([],"All promises were rejected"));let Rt=!1;const Gt=[];return new wt((R,w)=>{for(let E=0;E<Me.length;E++)Me[E].then(g=>{Rt||(Rt=!0,R(g))},g=>{Gt.push(g),Qe--,0===Qe&&(Rt=!0,w(new Je(Gt,"All promises were rejected")))})})}static race(He){let Me,Qe,Rt=new this((w,E)=>{Me=w,Qe=E});function Gt(w){Me(w)}function R(w){Qe(w)}for(let w of He)_t(w)||(w=this.resolve(w)),w.then(Gt,R);return Rt}static all(He){return wt.allWithCallback(He)}static allSettled(He){return(this&&this.prototype instanceof wt?this:wt).allWithCallback(He,{thenCallback:Qe=>({status:"fulfilled",value:Qe}),errorCallback:Qe=>({status:"rejected",reason:Qe})})}static allWithCallback(He,Me){let Qe,Rt,Gt=new this((g,O)=>{Qe=g,Rt=O}),R=2,w=0;const E=[];for(let g of He){_t(g)||(g=this.resolve(g));const O=w;try{g.then(L=>{E[O]=Me?Me.thenCallback(L):L,R--,0===R&&Qe(E)},L=>{Me?(E[O]=Me.errorCallback(L),R--,0===R&&Qe(E)):Rt(L)})}catch(L){Rt(L)}R++,w++}return R-=2,0===R&&Qe(E),Gt}constructor(He){const Me=this;if(!(Me instanceof wt))throw new Error("Must be an instanceof Promise.");Me[ct]=It,Me[rt]=[];try{const Qe=P();He&&He(Qe(Nt(Me,bn)),Qe(Nt(Me,Bt)))}catch(Qe){K(Me,!1,Qe)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return wt}then(He,Me){let Qe=this.constructor?.[Symbol.species];(!Qe||"function"!=typeof Qe)&&(Qe=this.constructor||wt);const Rt=new Qe($e),Gt=je.current;return this[ct]==It?this[rt].push(Gt,Rt,He,Me):ee(this,Gt,Rt,He,Me),Rt}catch(He){return this.then(null,He)}finally(He){let Me=this.constructor?.[Symbol.species];(!Me||"function"!=typeof Me)&&(Me=wt);const Qe=new Me($e);Qe[Ht]=Ht;const Rt=je.current;return this[ct]==It?this[rt].push(Rt,Qe,He,He):ee(this,Rt,Qe,He,He),Qe}}wt.resolve=wt.resolve,wt.reject=wt.reject,wt.race=wt.race,wt.all=wt.all;const Kt=me[he]=me.Promise;me.Promise=wt;const Zt=Dt("thenPatched");function on(tt){const He=tt.prototype,Me=Fe(He,"then");if(Me&&(!1===Me.writable||!Me.configurable))return;const Qe=He.then;He[G]=Qe,tt.prototype.then=function(Rt,Gt){return new wt((w,E)=>{Qe.call(this,w,E)}).then(Rt,Gt)},tt[Zt]=!0}return ve.patchThen=on,Kt&&(on(Kt),$t(me,"fetch",tt=>function sn(tt){return function(He,Me){let Qe=tt.apply(He,Me);if(Qe instanceof wt)return Qe;let Rt=Qe.constructor;return Rt[Zt]||on(Rt),Qe}}(tt))),Promise[je.__symbol__("uncaughtPromiseErrors")]=Tt,wt})})(ce),function Fr(ce){ce.__load_patch("toString",me=>{const je=Function.prototype.toString,ve=Xe("OriginalDelegate"),Fe=Xe("Promise"),ot=Xe("Error"),mt=function(){if("function"==typeof this){const he=this[ve];if(he)return"function"==typeof he?je.call(he):Object.prototype.toString.call(he);if(this===Promise){const G=me[Fe];if(G)return je.call(G)}if(this===Error){const G=me[ot];if(G)return je.call(G)}}return je.call(this)};mt[ve]=je,Function.prototype.toString=mt;const Dt=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":Dt.call(this)}})}(ce),function xr(ce){ce.__load_patch("util",(me,je,ve)=>{const Fe=Ze(me);ve.patchOnProperties=Se,ve.patchMethod=$t,ve.bindArguments=qe,ve.patchMacroTask=Pn;const ot=je.__symbol__("BLACK_LISTED_EVENTS"),mt=je.__symbol__("UNPATCHED_EVENTS");me[mt]&&(me[ot]=me[mt]),me[ot]&&(je[ot]=je[mt]=me[ot]),ve.patchEventPrototype=Vr,ve.patchEventTarget=Rr,ve.isIEOrEdge=pn,ve.ObjectDefineProperty=Y,ve.ObjectGetOwnPropertyDescriptor=N,ve.ObjectCreate=J,ve.ArraySlice=ie,ve.patchClass=Ye,ve.wrapWithCurrentZone=Re,ve.filterProperties=tr,ve.attachOriginToPatched=Ot,ve._redefineProperty=Object.defineProperty,ve.patchCallbacks=ur,ve.getGlobalObjects=()=>({globalSources:cr,zoneSymbolEventNames:Bn,eventNames:Fe,isBrowser:st,isMix:ke,isNode:dt,TRUE_STR:Z,FALSE_STR:Ee,ZONE_SYMBOL_PREFIX:Ue,ADD_EVENT_LISTENER_STR:q,REMOVE_EVENT_LISTENER_STR:ue})})}(ce)})(oi),function Pr(ce){ce.__load_patch("legacy",me=>{const je=me[ce.__symbol__("legacyPatch")];je&&je()}),ce.__load_patch("timers",me=>{const ve="clear";nr(me,"set",ve,"Timeout"),nr(me,"set",ve,"Interval"),nr(me,"set",ve,"Immediate")}),ce.__load_patch("requestAnimationFrame",me=>{nr(me,"request","cancel","AnimationFrame"),nr(me,"mozRequest","mozCancel","AnimationFrame"),nr(me,"webkitRequest","webkitCancel","AnimationFrame")}),ce.__load_patch("blocking",(me,je)=>{const ve=["alert","prompt","confirm"];for(let Fe=0;Fe<ve.length;Fe++)$t(me,ve[Fe],(mt,Dt,Tt)=>function(Ce,he){return je.current.run(mt,me,he,Tt)})}),ce.__load_patch("EventTarget",(me,je,ve)=>{(function Or(ce,me){me.patchEventPrototype(ce,me)})(me,ve),function Zn(ce,me){if(Zone[me.symbol("patchEventTarget")])return;const{eventNames:je,zoneSymbolEventNames:ve,TRUE_STR:Fe,FALSE_STR:ot,ZONE_SYMBOL_PREFIX:mt}=me.getGlobalObjects();for(let Tt=0;Tt<je.length;Tt++){const Ce=je[Tt],le=mt+(Ce+ot),xe=mt+(Ce+Fe);ve[Ce]={},ve[Ce][ot]=le,ve[Ce][Fe]=xe}const Dt=ce.EventTarget;Dt&&Dt.prototype&&me.patchEventTarget(ce,me,[Dt&&Dt.prototype])}(me,ve);const Fe=me.XMLHttpRequestEventTarget;Fe&&Fe.prototype&&ve.patchEventTarget(me,ve,[Fe.prototype])}),ce.__load_patch("MutationObserver",(me,je,ve)=>{Ye("MutationObserver"),Ye("WebKitMutationObserver")}),ce.__load_patch("IntersectionObserver",(me,je,ve)=>{Ye("IntersectionObserver")}),ce.__load_patch("FileReader",(me,je,ve)=>{Ye("FileReader")}),ce.__load_patch("on_property",(me,je,ve)=>{!function ui(ce,me){if(dt&&!ke||Zone[ce.symbol("patchEvents")])return;const je=me.__Zone_ignore_on_properties;let ve=[];if(st){const Fe=window;ve=ve.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const ot=function tn(){try{const ce=St.navigator.userAgent;if(-1!==ce.indexOf("MSIE ")||-1!==ce.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:Fe,ignoreProperties:["error"]}]:[];Vt(Fe,Ze(Fe),je&&je.concat(ot),ae(Fe))}ve=ve.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let Fe=0;Fe<ve.length;Fe++){const ot=me[ve[Fe]];ot&&ot.prototype&&Vt(ot.prototype,Ze(ot.prototype),je)}}(ve,me)}),ce.__load_patch("customElements",(me,je,ve)=>{!function vr(ce,me){const{isBrowser:je,isMix:ve}=me.getGlobalObjects();(je||ve)&&ce.customElements&&"customElements"in ce&&me.patchCallbacks(me,ce.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(me,ve)}),ce.__load_patch("XHR",(me,je)=>{!function Ce(he){const G=he.XMLHttpRequest;if(!G)return;const le=G.prototype;let it=le[ge],_t=le[X];if(!it){const Lt=he.XMLHttpRequestEventTarget;if(Lt){const Nt=Lt.prototype;it=Nt[ge],_t=Nt[X]}}const Ft="readystatechange",ft="scheduled";function ct(Lt){const Nt=Lt.data,P=Nt.target;P[mt]=!1,P[Tt]=!1;const $=P[ot];it||(it=P[ge],_t=P[X]),$&&_t.call(P,Ft,$);const H=P[ot]=()=>{if(P.readyState===P.DONE)if(!Nt.aborted&&P[mt]&&Lt.state===ft){const ye=P[je.__symbol__("loadfalse")];if(0!==P.status&&ye&&ye.length>0){const W=Lt.invoke;Lt.invoke=function(){const ee=P[je.__symbol__("loadfalse")];for(let Ie=0;Ie<ee.length;Ie++)ee[Ie]===Lt&&ee.splice(Ie,1);!Nt.aborted&&Lt.state===ft&&W.call(Lt)},ye.push(Lt)}else Lt.invoke()}else!Nt.aborted&&!1===P[mt]&&(P[Tt]=!0)};return it.call(P,Ft,H),P[ve]||(P[ve]=Lt),bn.apply(P,Nt.args),P[mt]=!0,Lt}function rt(){}function Ht(Lt){const Nt=Lt.data;return Nt.aborted=!0,Bt.apply(Nt.target,Nt.args)}const rn=$t(le,"open",()=>function(Lt,Nt){return Lt[Fe]=0==Nt[2],Lt[Dt]=Nt[1],rn.apply(Lt,Nt)}),yn=Xe("fetchTaskAborting"),It=Xe("fetchTaskScheduling"),bn=$t(le,"send",()=>function(Lt,Nt){if(!0===je.current[It]||Lt[Fe])return bn.apply(Lt,Nt);{const P={target:Lt,url:Lt[Dt],isPeriodic:!1,args:Nt,aborted:!1},$=Ke("XMLHttpRequest.send",rt,P,ct,Ht);Lt&&!0===Lt[Tt]&&!P.aborted&&$.state===ft&&$.invoke()}}),Bt=$t(le,"abort",()=>function(Lt,Nt){const P=function xe(Lt){return Lt[ve]}(Lt);if(P&&"string"==typeof P.type){if(null==P.cancelFn||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(!0===je.current[yn])return Bt.apply(Lt,Nt)})}(me);const ve=Xe("xhrTask"),Fe=Xe("xhrSync"),ot=Xe("xhrListener"),mt=Xe("xhrScheduled"),Dt=Xe("xhrURL"),Tt=Xe("xhrErrorBeforeScheduled")}),ce.__load_patch("geolocation",me=>{me.navigator&&me.navigator.geolocation&&function Ve(ce,me){const je=ce.constructor.name;for(let ve=0;ve<me.length;ve++){const Fe=me[ve],ot=ce[Fe];if(ot){if(!yt(N(ce,Fe)))continue;ce[Fe]=(Dt=>{const Tt=function(){return Dt.apply(this,qe(arguments,je+"."+Fe))};return Ot(Tt,Dt),Tt})(ot)}}}(me.navigator.geolocation,["getCurrentPosition","watchPosition"])}),ce.__load_patch("PromiseRejectionEvent",(me,je)=>{function ve(Fe){return function(ot){kn(me,Fe).forEach(Dt=>{const Tt=me.PromiseRejectionEvent;if(Tt){const Ce=new Tt(Fe,{promise:ot.promise,reason:ot.rejection});Dt.invoke(Ce)}})}}me.PromiseRejectionEvent&&(je[Xe("unhandledPromiseRejectionHandler")]=ve("unhandledrejection"),je[Xe("rejectionHandledHandler")]=ve("rejectionhandled"))}),ce.__load_patch("queueMicrotask",(me,je,ve)=>{!function gn(ce,me){me.patchMethod(ce,"queueMicrotask",je=>function(ve,Fe){Zone.current.scheduleMicroTask("queueMicrotask",Fe[0])})}(me,ve)})}(oi)},5215:(Ne,Q,I)=>{"use strict";function J(U,fe,_e,be){var Ye,Se=arguments.length,Te=Se<3?fe:null===be?be=Object.getOwnPropertyDescriptor(fe,_e):be;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Te=Reflect.decorate(U,fe,_e,be);else for(var $t=U.length-1;$t>=0;$t--)(Ye=U[$t])&&(Te=(Se<3?Ye(Te):Se>3?Ye(fe,_e,Te):Ye(fe,_e))||Te);return Se>3&&Te&&Object.defineProperty(fe,_e,Te),Te}function q(U,fe){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(U,fe)}function ue(U,fe,_e,be){return new(_e||(_e=Promise))(function(Te,Ye){function $t(Tn){try{Ot(be.next(Tn))}catch(Fn){Ye(Fn)}}function Pn(Tn){try{Ot(be.throw(Tn))}catch(Fn){Ye(Fn)}}function Ot(Tn){Tn.done?Te(Tn.value):function Se(Te){return Te instanceof _e?Te:new _e(function(Ye){Ye(Te)})}(Tn.value).then($t,Pn)}Ot((be=be.apply(U,fe||[])).next())})}function lt(U){return this instanceof lt?(this.v=U,this):new lt(U)}function St(U,fe,_e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Se,be=_e.apply(U,fe||[]),Te=[];return Se={},Ye("next"),Ye("throw"),Ye("return"),Se[Symbol.asyncIterator]=function(){return this},Se;function Ye(tn){be[tn]&&(Se[tn]=function(pn){return new Promise(function(zn,ir){Te.push([tn,pn,zn,ir])>1||$t(tn,pn)})})}function $t(tn,pn){try{!function Pn(tn){tn.value instanceof lt?Promise.resolve(tn.value.v).then(Ot,Tn):Fn(Te[0][2],tn)}(be[tn](pn))}catch(zn){Fn(Te[0][3],zn)}}function Ot(tn){$t("next",tn)}function Tn(tn){$t("throw",tn)}function Fn(tn,pn){tn(pn),Te.shift(),Te.length&&$t(Te[0][0],Te[0][1])}}function Et(U){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _e,fe=U[Symbol.asyncIterator];return fe?fe.call(U):(U=function Ee(U){var fe="function"==typeof Symbol&&Symbol.iterator,_e=fe&&U[fe],be=0;if(_e)return _e.call(U);if(U&&"number"==typeof U.length)return{next:function(){return U&&be>=U.length&&(U=void 0),{value:U&&U[be++],done:!U}}};throw new TypeError(fe?"Object is not iterable.":"Symbol.iterator is not defined.")}(U),_e={},be("next"),be("throw"),be("return"),_e[Symbol.asyncIterator]=function(){return this},_e);function be(Te){_e[Te]=U[Te]&&function(Ye){return new Promise(function($t,Pn){!function Se(Te,Ye,$t,Pn){Promise.resolve(Pn).then(function(Ot){Te({value:Ot,done:$t})},Ye)}($t,Pn,(Ye=U[Te](Ye)).done,Ye.value)})}}}I.d(Q,{AQ:()=>St,Cg:()=>J,N3:()=>lt,Sn:()=>q,sH:()=>ue,xN:()=>Et})},177:(Ne,Q,I)=>{"use strict";I.d(Q,{AJ:()=>Oo,B3:()=>bt,Jj:()=>kr,MD:()=>ws,N0:()=>ls,QT:()=>Y,Sq:()=>Me,T3:()=>an,UE:()=>Uo,VF:()=>J,Vy:()=>$o,YU:()=>on,ZD:()=>ae,_b:()=>wt,bT:()=>Gt,qQ:()=>q});var o=I(3953);let N=null;function Y(){return N}function ae(f){N??=f}class J{}const q=new o.nKC("");function wt(f,A){A=encodeURIComponent(A);for(const C of f.split(";")){const x=C.indexOf("="),[re,Pe]=-1==x?[C,""]:[C.slice(0,x),C.slice(x+1)];if(re.trim()===A)return decodeURIComponent(Pe)}return null}const Kt=/\s+/,Zt=[];let on=(()=>{class f{constructor(C,x){this._ngEl=C,this._renderer=x,this.initialClasses=Zt,this.stateMap=new Map}set klass(C){this.initialClasses=null!=C?C.trim().split(Kt):Zt}set ngClass(C){this.rawClass="string"==typeof C?C.trim().split(Kt):C}ngDoCheck(){for(const x of this.initialClasses)this._updateState(x,!0);const C=this.rawClass;if(Array.isArray(C)||C instanceof Set)for(const x of C)this._updateState(x,!0);else if(null!=C)for(const x of Object.keys(C))this._updateState(x,!!C[x]);this._applyStateDiff()}_updateState(C,x){const re=this.stateMap.get(C);void 0!==re?(re.enabled!==x&&(re.changed=!0,re.enabled=x),re.touched=!0):this.stateMap.set(C,{enabled:x,changed:!0,touched:!0})}_applyStateDiff(){for(const C of this.stateMap){const x=C[0],re=C[1];re.changed?(this._toggleClass(x,re.enabled),re.changed=!1):re.touched||(re.enabled&&this._toggleClass(x,!1),this.stateMap.delete(x)),re.touched=!1}}_toggleClass(C,x){(C=C.trim()).length>0&&C.split(Kt).forEach(re=>{x?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}static#e=this.\u0275fac=function(x){return new(x||f)(o.rXU(o.aKT),o.rXU(o.sFG))};static#t=this.\u0275dir=o.FsC({type:f,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}return f})();class He{constructor(A,C,x,re){this.$implicit=A,this.ngForOf=C,this.index=x,this.count=re}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 Me=(()=>{class f{set ngForOf(C){this._ngForOf=C,this._ngForOfDirty=!0}set ngForTrackBy(C){this._trackByFn=C}get ngForTrackBy(){return this._trackByFn}constructor(C,x,re){this._viewContainer=C,this._template=x,this._differs=re,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(C){C&&(this._template=C)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const C=this._ngForOf;!this._differ&&C&&(this._differ=this._differs.find(C).create(this.ngForTrackBy))}if(this._differ){const C=this._differ.diff(this._ngForOf);C&&this._applyChanges(C)}}_applyChanges(C){const x=this._viewContainer;C.forEachOperation((re,Pe,nt)=>{if(null==re.previousIndex)x.createEmbeddedView(this._template,new He(re.item,this._ngForOf,-1,-1),null===nt?void 0:nt);else if(null==nt)x.remove(null===Pe?void 0:Pe);else if(null!==Pe){const Mt=x.get(Pe);x.move(Mt,nt),Qe(Mt,re)}});for(let re=0,Pe=x.length;re<Pe;re++){const Mt=x.get(re).context;Mt.index=re,Mt.count=Pe,Mt.ngForOf=this._ngForOf}C.forEachIdentityChange(re=>{Qe(x.get(re.currentIndex),re)})}static ngTemplateContextGuard(C,x){return!0}static#e=this.\u0275fac=function(x){return new(x||f)(o.rXU(o.c1b),o.rXU(o.C4Q),o.rXU(o._q3))};static#t=this.\u0275dir=o.FsC({type:f,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return f})();function Qe(f,A){f.context.$implicit=A.item}let Gt=(()=>{class f{constructor(C,x){this._viewContainer=C,this._context=new R,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=x}set ngIf(C){this._context.$implicit=this._context.ngIf=C,this._updateView()}set ngIfThen(C){w("ngIfThen",C),this._thenTemplateRef=C,this._thenViewRef=null,this._updateView()}set ngIfElse(C){w("ngIfElse",C),this._elseTemplateRef=C,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(C,x){return!0}static#e=this.\u0275fac=function(x){return new(x||f)(o.rXU(o.c1b),o.rXU(o.C4Q))};static#t=this.\u0275dir=o.FsC({type:f,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return f})();class R{constructor(){this.$implicit=null,this.ngIf=null}}function w(f,A){if(A&&!A.createEmbeddedView)throw new Error(`${f} must be a TemplateRef, but received '${(0,o.Tbb)(A)}'.`)}let bt=(()=>{class f{constructor(C,x,re){this._ngEl=C,this._differs=x,this._renderer=re,this._ngStyle=null,this._differ=null}set ngStyle(C){this._ngStyle=C,!this._differ&&C&&(this._differ=this._differs.find(C).create())}ngDoCheck(){if(this._differ){const C=this._differ.diff(this._ngStyle);C&&this._applyChanges(C)}}_setStyle(C,x){const[re,Pe]=C.split("."),nt=-1===re.indexOf("-")?void 0:o.czy.DashCase;null!=x?this._renderer.setStyle(this._ngEl.nativeElement,re,Pe?`${x}${Pe}`:x,nt):this._renderer.removeStyle(this._ngEl.nativeElement,re,nt)}_applyChanges(C){C.forEachRemovedItem(x=>this._setStyle(x.key,null)),C.forEachAddedItem(x=>this._setStyle(x.key,x.currentValue)),C.forEachChangedItem(x=>this._setStyle(x.key,x.currentValue))}static#e=this.\u0275fac=function(x){return new(x||f)(o.rXU(o.aKT),o.rXU(o.MKu),o.rXU(o.sFG))};static#t=this.\u0275dir=o.FsC({type:f,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return f})(),an=(()=>{class f{constructor(C){this._viewContainerRef=C,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(C){if(this._shouldRecreateView(C)){const x=this._viewContainerRef;if(this._viewRef&&x.remove(x.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const re=this._createContextForwardProxy();this._viewRef=x.createEmbeddedView(this.ngTemplateOutlet,re,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(C){return!!C.ngTemplateOutlet||!!C.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(C,x,re)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,x,re),get:(C,x,re)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,x,re)}})}static#e=this.\u0275fac=function(x){return new(x||f)(o.rXU(o.c1b))};static#t=this.\u0275dir=o.FsC({type:f,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[o.OA$]})}return f})();class An{createSubscription(A,C){return(0,o.O8t)(()=>A.subscribe({next:C,error:x=>{throw x}}))}dispose(A){(0,o.O8t)(()=>A.unsubscribe())}}class Dn{createSubscription(A,C){return A.then(C,x=>{throw x})}dispose(A){}}const Sn=new Dn,Jn=new An;let kr=(()=>{class f{constructor(C){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=C}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(C){if(!this._obj){if(C)try{this.markForCheckOnValueUpdate=!1,this._subscribe(C)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return C!==this._obj?(this._dispose(),this.transform(C)):this._latestValue}_subscribe(C){this._obj=C,this._strategy=this._selectStrategy(C),this._subscription=this._strategy.createSubscription(C,x=>this._updateLatestValue(C,x))}_selectStrategy(C){if((0,o.jNT)(C))return Sn;if((0,o.zjR)(C))return Jn;throw function Xt(f,A){return new o.wOt(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(C,x){C===this._obj&&(this._latestValue=x,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(x){return new(x||f)(o.rXU(o.gRc,16))};static#t=this.\u0275pipe=o.EJ8({name:"async",type:f,pure:!1,standalone:!0})}return f})(),ws=(()=>{class f{static#e=this.\u0275fac=function(x){return new(x||f)};static#t=this.\u0275mod=o.$C({type:f});static#n=this.\u0275inj=o.G2t({})}return f})();const Oo="browser",as="server";function Uo(f){return f===Oo}function $o(f){return f===as}class ls{}},140:(Ne,Q,I)=>{"use strict";function o(R,w,E,g,O,L,oe){try{var De=R[L](oe),Ge=De.value}catch(Pt){return void E(Pt)}De.done?w(Ge):Promise.resolve(Ge).then(g,O)}function N(R){return function(){var w=this,E=arguments;return new Promise(function(g,O){var L=R.apply(w,E);function oe(Ge){o(L,g,O,oe,De,"next",Ge)}function De(Ge){o(L,g,O,oe,De,"throw",Ge)}oe(void 0)})}}I.d(Q,{Qq:()=>Bn,q1:()=>P,Lr:()=>Et});var Y=I(3953),ae=I(7673),J=I(4226),ie=I(6648),q=I(1397),ue=I(8071),X=I(5964),Z=I(6354),Ee=I(9974);function Ue(R){return(0,Ee.N)((w,E)=>{try{w.subscribe(E)}finally{E.add(R)}})}var Re=I(8750),Ke=I(4360),lt=I(177);class St{}class ht{}class Et{constructor(w){this.normalizedNames=new Map,this.lazyUpdate=null,w?"string"==typeof w?this.lazyInit=()=>{this.headers=new Map,w.split("\n").forEach(E=>{const g=E.indexOf(":");if(g>0){const O=E.slice(0,g),L=O.toLowerCase(),oe=E.slice(g+1).trim();this.maybeSetNormalizedName(O,L),this.headers.has(L)?this.headers.get(L).push(oe):this.headers.set(L,[oe])}})}:typeof Headers<"u"&&w instanceof Headers?(this.headers=new Map,w.forEach((E,g)=>{this.setHeaderEntries(g,E)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(w).forEach(([E,g])=>{this.setHeaderEntries(E,g)})}:this.headers=new Map}has(w){return this.init(),this.headers.has(w.toLowerCase())}get(w){this.init();const E=this.headers.get(w.toLowerCase());return E&&E.length>0?E[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(w){return this.init(),this.headers.get(w.toLowerCase())||null}append(w,E){return this.clone({name:w,value:E,op:"a"})}set(w,E){return this.clone({name:w,value:E,op:"s"})}delete(w,E){return this.clone({name:w,value:E,op:"d"})}maybeSetNormalizedName(w,E){this.normalizedNames.has(E)||this.normalizedNames.set(E,w)}init(){this.lazyInit&&(this.lazyInit instanceof Et?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(w=>this.applyUpdate(w)),this.lazyUpdate=null))}copyFrom(w){w.init(),Array.from(w.headers.keys()).forEach(E=>{this.headers.set(E,w.headers.get(E)),this.normalizedNames.set(E,w.normalizedNames.get(E))})}clone(w){const E=new Et;return E.lazyInit=this.lazyInit&&this.lazyInit instanceof Et?this.lazyInit:this,E.lazyUpdate=(this.lazyUpdate||[]).concat([w]),E}applyUpdate(w){const E=w.name.toLowerCase();switch(w.op){case"a":case"s":let g=w.value;if("string"==typeof g&&(g=[g]),0===g.length)return;this.maybeSetNormalizedName(w.name,E);const O=("a"===w.op?this.headers.get(E):void 0)||[];O.push(...g),this.headers.set(E,O);break;case"d":const L=w.value;if(L){let oe=this.headers.get(E);if(!oe)return;oe=oe.filter(De=>-1===L.indexOf(De)),0===oe.length?(this.headers.delete(E),this.normalizedNames.delete(E)):this.headers.set(E,oe)}else this.headers.delete(E),this.normalizedNames.delete(E)}}setHeaderEntries(w,E){const g=(Array.isArray(E)?E:[E]).map(L=>L.toString()),O=w.toLowerCase();this.headers.set(O,g),this.maybeSetNormalizedName(w,O)}forEach(w){this.init(),Array.from(this.normalizedNames.keys()).forEach(E=>w(this.normalizedNames.get(E),this.headers.get(E)))}}class Ve{encodeKey(w){return st(w)}encodeValue(w){return st(w)}decodeKey(w){return decodeURIComponent(w)}decodeValue(w){return decodeURIComponent(w)}}const Wt=/%(\d[a-f0-9])/gi,dt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function st(R){return encodeURIComponent(R).replace(Wt,(w,E)=>dt[E]??w)}function ke(R){return`${R}`}class U{constructor(w={}){if(this.updates=null,this.cloneFrom=null,this.encoder=w.encoder||new Ve,w.fromString){if(w.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function yt(R,w){const E=new Map;return R.length>0&&R.replace(/^\?/,"").split("&").forEach(O=>{const L=O.indexOf("="),[oe,De]=-1==L?[w.decodeKey(O),""]:[w.decodeKey(O.slice(0,L)),w.decodeValue(O.slice(L+1))],Ge=E.get(oe)||[];Ge.push(De),E.set(oe,Ge)}),E}(w.fromString,this.encoder)}else w.fromObject?(this.map=new Map,Object.keys(w.fromObject).forEach(E=>{const g=w.fromObject[E],O=Array.isArray(g)?g.map(ke):[ke(g)];this.map.set(E,O)})):this.map=null}has(w){return this.init(),this.map.has(w)}get(w){this.init();const E=this.map.get(w);return E?E[0]:null}getAll(w){return this.init(),this.map.get(w)||null}keys(){return this.init(),Array.from(this.map.keys())}append(w,E){return this.clone({param:w,value:E,op:"a"})}appendAll(w){const E=[];return Object.keys(w).forEach(g=>{const O=w[g];Array.isArray(O)?O.forEach(L=>{E.push({param:g,value:L,op:"a"})}):E.push({param:g,value:O,op:"a"})}),this.clone(E)}set(w,E){return this.clone({param:w,value:E,op:"s"})}delete(w,E){return this.clone({param:w,value:E,op:"d"})}toString(){return this.init(),this.keys().map(w=>{const E=this.encoder.encodeKey(w);return this.map.get(w).map(g=>E+"="+this.encoder.encodeValue(g)).join("&")}).filter(w=>""!==w).join("&")}clone(w){const E=new U({encoder:this.encoder});return E.cloneFrom=this.cloneFrom||this,E.updates=(this.updates||[]).concat(w),E}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(w=>this.map.set(w,this.cloneFrom.map.get(w))),this.updates.forEach(w=>{switch(w.op){case"a":case"s":const E=("a"===w.op?this.map.get(w.param):void 0)||[];E.push(ke(w.value)),this.map.set(w.param,E);break;case"d":if(void 0===w.value){this.map.delete(w.param);break}{let g=this.map.get(w.param)||[];const O=g.indexOf(ke(w.value));-1!==O&&g.splice(O,1),g.length>0?this.map.set(w.param,g):this.map.delete(w.param)}}}),this.cloneFrom=this.updates=null)}}class _e{constructor(){this.map=new Map}set(w,E){return this.map.set(w,E),this}get(w){return this.map.has(w)||this.map.set(w,w.defaultValue()),this.map.get(w)}delete(w){return this.map.delete(w),this}has(w){return this.map.has(w)}keys(){return this.map.keys()}}function Se(R){return typeof ArrayBuffer<"u"&&R instanceof ArrayBuffer}function Te(R){return typeof Blob<"u"&&R instanceof Blob}function Ye(R){return typeof FormData<"u"&&R instanceof FormData}class Pn{constructor(w,E,g,O){let L;if(this.url=E,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=w.toUpperCase(),function be(R){switch(R){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||O?(this.body=void 0!==g?g:null,L=O):L=g,L&&(this.reportProgress=!!L.reportProgress,this.withCredentials=!!L.withCredentials,L.responseType&&(this.responseType=L.responseType),L.headers&&(this.headers=L.headers),L.context&&(this.context=L.context),L.params&&(this.params=L.params),this.transferCache=L.transferCache),this.headers??=new Et,this.context??=new _e,this.params){const oe=this.params.toString();if(0===oe.length)this.urlWithParams=E;else{const De=E.indexOf("?");this.urlWithParams=E+(-1===De?"?":De<E.length-1?"&":"")+oe}}else this.params=new U,this.urlWithParams=E}serializeBody(){return null===this.body?null:"string"==typeof this.body||Se(this.body)||Te(this.body)||Ye(this.body)||function $t(R){return typeof URLSearchParams<"u"&&R instanceof URLSearchParams}(this.body)?this.body:this.body instanceof U?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||Ye(this.body)?null:Te(this.body)?this.body.type||null:Se(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof U?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(w={}){const E=w.method||this.method,g=w.url||this.url,O=w.responseType||this.responseType,L=w.transferCache??this.transferCache,oe=void 0!==w.body?w.body:this.body,De=w.withCredentials??this.withCredentials,Ge=w.reportProgress??this.reportProgress;let Pt=w.headers||this.headers,bt=w.params||this.params;const an=w.context??this.context;return void 0!==w.setHeaders&&(Pt=Object.keys(w.setHeaders).reduce((En,Xt)=>En.set(Xt,w.setHeaders[Xt]),Pt)),w.setParams&&(bt=Object.keys(w.setParams).reduce((En,Xt)=>En.set(Xt,w.setParams[Xt]),bt)),new Pn(E,g,oe,{params:bt,headers:Pt,context:an,reportProgress:Ge,responseType:O,withCredentials:De,transferCache:L})}}var Ot=function(R){return R[R.Sent=0]="Sent",R[R.UploadProgress=1]="UploadProgress",R[R.ResponseHeader=2]="ResponseHeader",R[R.DownloadProgress=3]="DownloadProgress",R[R.Response=4]="Response",R[R.User=5]="User",R}(Ot||{});class Tn{constructor(w,E=200,g="OK"){this.headers=w.headers||new Et,this.status=void 0!==w.status?w.status:E,this.statusText=w.statusText||g,this.url=w.url||null,this.ok=this.status>=200&&this.status<300}}class Fn extends Tn{constructor(w={}){super(w),this.type=Ot.ResponseHeader}clone(w={}){return new Fn({headers:w.headers||this.headers,status:void 0!==w.status?w.status:this.status,statusText:w.statusText||this.statusText,url:w.url||this.url||void 0})}}class tn extends Tn{constructor(w={}){super(w),this.type=Ot.Response,this.body=void 0!==w.body?w.body:null}clone(w={}){return new tn({body:void 0!==w.body?w.body:this.body,headers:w.headers||this.headers,status:void 0!==w.status?w.status:this.status,statusText:w.statusText||this.statusText,url:w.url||this.url||void 0})}}class pn extends Tn{constructor(w){super(w,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${w.url||"(unknown url)"}`:`Http failure response for ${w.url||"(unknown url)"}: ${w.status} ${w.statusText}`,this.error=w.error||null}}function Xr(R,w){return{body:w,headers:R.headers,context:R.context,observe:R.observe,params:R.params,reportProgress:R.reportProgress,responseType:R.responseType,withCredentials:R.withCredentials,transferCache:R.transferCache}}let Bn=(()=>{class R{constructor(E){this.handler=E}request(E,g,O={}){let L;if(E instanceof Pn)L=E;else{let Ge,Pt;Ge=O.headers instanceof Et?O.headers:new Et(O.headers),O.params&&(Pt=O.params instanceof U?O.params:new U({fromObject:O.params})),L=new Pn(E,g,void 0!==O.body?O.body:null,{headers:Ge,context:O.context,params:Pt,reportProgress:O.reportProgress,responseType:O.responseType||"json",withCredentials:O.withCredentials,transferCache:O.transferCache})}const oe=(0,ae.of)(L).pipe(function ge(R,w){return(0,ue.T)(w)?(0,q.Z)(R,w,1):(0,q.Z)(R,1)}(Ge=>this.handler.handle(Ge)));if(E instanceof Pn||"events"===O.observe)return oe;const De=oe.pipe((0,X.p)(Ge=>Ge instanceof tn));switch(O.observe||"body"){case"body":switch(L.responseType){case"arraybuffer":return De.pipe((0,Z.T)(Ge=>{if(null!==Ge.body&&!(Ge.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Ge.body}));case"blob":return De.pipe((0,Z.T)(Ge=>{if(null!==Ge.body&&!(Ge.body instanceof Blob))throw new Error("Response is not a Blob.");return Ge.body}));case"text":return De.pipe((0,Z.T)(Ge=>{if(null!==Ge.body&&"string"!=typeof Ge.body)throw new Error("Response is not a string.");return Ge.body}));default:return De.pipe((0,Z.T)(Ge=>Ge.body))}case"response":return De;default:throw new Error(`Unreachable: unhandled observe type ${O.observe}}`)}}delete(E,g={}){return this.request("DELETE",E,g)}get(E,g={}){return this.request("GET",E,g)}head(E,g={}){return this.request("HEAD",E,g)}jsonp(E,g){return this.request("JSONP",E,{params:(new U).append(g,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(E,g={}){return this.request("OPTIONS",E,g)}patch(E,g,O={}){return this.request("PATCH",E,Xr(O,g))}post(E,g,O={}){return this.request("POST",E,Xr(O,g))}put(E,g,O={}){return this.request("PUT",E,Xr(O,g))}static#e=this.\u0275fac=function(g){return new(g||R)(Y.KVO(St))};static#t=this.\u0275prov=Y.jDH({token:R,factory:R.\u0275fac})}return R})();const cr=/^\)\]\}',?\n/;function Er(R){if(R.url)return R.url;const w="X-Request-URL".toLocaleLowerCase();return R.headers.get(w)}let or=(()=>{class R{constructor(){this.fetchImpl=(0,Y.WQX)(Rr,{optional:!0})?.fetch??((...E)=>globalThis.fetch(...E)),this.ngZone=(0,Y.WQX)(Y.SKi)}handle(E){return new J.c(g=>{const O=new AbortController;return this.doRequest(E,O.signal,g).then(kn,L=>g.error(new pn({error:L}))),()=>O.abort()})}doRequest(E,g,O){var L=this;return N(function*(){const oe=L.createRequestInit(E);let De;try{const An=L.ngZone.runOutsideAngular(()=>L.fetchImpl(E.urlWithParams,{signal:g,...oe}));(function Vr(R){R.then(kn,kn)})(An),O.next({type:Ot.Sent}),De=yield An}catch(An){return void O.error(new pn({error:An,status:An.status??0,statusText:An.statusText,url:E.urlWithParams,headers:An.headers}))}const Ge=new Et(De.headers),Pt=De.statusText,bt=Er(De)??E.urlWithParams;let an=De.status,En=null;if(E.reportProgress&&O.next(new Fn({headers:Ge,status:an,statusText:Pt,url:bt})),De.body){const An=De.headers.get("content-length"),Dn=[],Sn=De.body.getReader();let kr,Mn,Jn=0;const Wn=typeof Zone<"u"&&Zone.current;yield L.ngZone.runOutsideAngular(N(function*(){for(;;){const{done:bi,value:Wi}=yield Sn.read();if(bi)break;if(Dn.push(Wi),Jn+=Wi.length,E.reportProgress){Mn="text"===E.responseType?(Mn??"")+(kr??=new TextDecoder).decode(Wi,{stream:!0}):void 0;const b=()=>O.next({type:Ot.DownloadProgress,total:An?+An:void 0,loaded:Jn,partialText:Mn});Wn?Wn.run(b):b()}}}));const wr=L.concatChunks(Dn,Jn);try{const bi=De.headers.get("Content-Type")??"";En=L.parseBody(E,wr,bi)}catch(bi){return void O.error(new pn({error:bi,headers:new Et(De.headers),status:De.status,statusText:De.statusText,url:Er(De)??E.urlWithParams}))}}0===an&&(an=En?200:0),an>=200&&an<300?(O.next(new tn({body:En,headers:Ge,status:an,statusText:Pt,url:bt})),O.complete()):O.error(new pn({error:En,headers:Ge,status:an,statusText:Pt,url:bt}))})()}parseBody(E,g,O){switch(E.responseType){case"json":const L=(new TextDecoder).decode(g).replace(cr,"");return""===L?null:JSON.parse(L);case"text":return(new TextDecoder).decode(g);case"blob":return new Blob([g],{type:O});case"arraybuffer":return g.buffer}}createRequestInit(E){const g={},O=E.withCredentials?"include":void 0;if(E.headers.forEach((L,oe)=>g[L]=oe.join(",")),E.headers.has("Accept")||(g.Accept="application/json, text/plain, */*"),!E.headers.has("Content-Type")){const L=E.detectContentTypeHeader();null!==L&&(g["Content-Type"]=L)}return{body:E.serializeBody(),method:E.method,headers:g,credentials:O}}concatChunks(E,g){const O=new Uint8Array(g);let L=0;for(const oe of E)O.set(oe,L),L+=oe.length;return O}static#e=this.\u0275fac=function(g){return new(g||R)};static#t=this.\u0275prov=Y.jDH({token:R,factory:R.\u0275fac})}return R})();class Rr{}function kn(){}function gn(R,w){return w(R)}function pr(R,w){return(E,g)=>w.intercept(E,{handle:O=>R(O,g)})}const vr=new Y.nKC(""),Zn=new Y.nKC(""),Or=new Y.nKC(""),tr=new Y.nKC("",{providedIn:"root",factory:()=>!0});function Vt(){let R=null;return(w,E)=>{null===R&&(R=((0,Y.WQX)(vr,{optional:!0})??[]).reduceRight(pr,gn));const g=(0,Y.WQX)(Y.TgB);if((0,Y.WQX)(tr)){const L=g.add();return R(w,E).pipe(Ue(()=>g.remove(L)))}return R(w,E)}}let Pr=(()=>{class R extends St{constructor(E,g){super(),this.backend=E,this.injector=g,this.chain=null,this.pendingTasks=(0,Y.WQX)(Y.TgB),this.contributeToStability=(0,Y.WQX)(tr)}handle(E){if(null===this.chain){const g=Array.from(new Set([...this.injector.get(Zn),...this.injector.get(Or,[])]));this.chain=g.reduceRight((O,L)=>function nr(R,w,E){return(g,O)=>(0,Y.N4e)(E,()=>w(g,L=>R(L,O)))}(O,L,this.injector),gn)}if(this.contributeToStability){const g=this.pendingTasks.add();return this.chain(E,O=>this.backend.handle(O)).pipe(Ue(()=>this.pendingTasks.remove(g)))}return this.chain(E,g=>this.backend.handle(g))}static#e=this.\u0275fac=function(g){return new(g||R)(Y.KVO(ht),Y.KVO(Y.uvJ))};static#t=this.\u0275prov=Y.jDH({token:R,factory:R.\u0275fac})}return R})();const ot=/^\)\]\}',?\n/;let Dt=(()=>{class R{constructor(E){this.xhrFactory=E}handle(E){if("JSONP"===E.method)throw new Y.wOt(-2800,!1);const g=this.xhrFactory;return(g.\u0275loadImpl?(0,ie.H)(g.\u0275loadImpl()):(0,ae.of)(null)).pipe(function Xe(R,w){return(0,Ee.N)((E,g)=>{let O=null,L=0,oe=!1;const De=()=>oe&&!O&&g.complete();E.subscribe((0,Ke._)(g,Ge=>{O?.unsubscribe();let Pt=0;const bt=L++;(0,Re.Tg)(R(Ge,bt)).subscribe(O=(0,Ke._)(g,an=>g.next(w?w(Ge,an,bt,Pt++):an),()=>{O=null,De()}))},()=>{oe=!0,De()}))})}(()=>new J.c(L=>{const oe=g.build();if(oe.open(E.method,E.urlWithParams),E.withCredentials&&(oe.withCredentials=!0),E.headers.forEach((Dn,Sn)=>oe.setRequestHeader(Dn,Sn.join(","))),E.headers.has("Accept")||oe.setRequestHeader("Accept","application/json, text/plain, */*"),!E.headers.has("Content-Type")){const Dn=E.detectContentTypeHeader();null!==Dn&&oe.setRequestHeader("Content-Type",Dn)}if(E.responseType){const Dn=E.responseType.toLowerCase();oe.responseType="json"!==Dn?Dn:"text"}const De=E.serializeBody();let Ge=null;const Pt=()=>{if(null!==Ge)return Ge;const Dn=oe.statusText||"OK",Sn=new Et(oe.getAllResponseHeaders()),Jn=function mt(R){return"responseURL"in R&&R.responseURL?R.responseURL:/^X-Request-URL:/m.test(R.getAllResponseHeaders())?R.getResponseHeader("X-Request-URL"):null}(oe)||E.url;return Ge=new Fn({headers:Sn,status:oe.status,statusText:Dn,url:Jn}),Ge},bt=()=>{let{headers:Dn,status:Sn,statusText:Jn,url:kr}=Pt(),Mn=null;204!==Sn&&(Mn=typeof oe.response>"u"?oe.responseText:oe.response),0===Sn&&(Sn=Mn?200:0);let Wn=Sn>=200&&Sn<300;if("json"===E.responseType&&"string"==typeof Mn){const wr=Mn;Mn=Mn.replace(ot,"");try{Mn=""!==Mn?JSON.parse(Mn):null}catch(bi){Mn=wr,Wn&&(Wn=!1,Mn={error:bi,text:Mn})}}Wn?(L.next(new tn({body:Mn,headers:Dn,status:Sn,statusText:Jn,url:kr||void 0})),L.complete()):L.error(new pn({error:Mn,headers:Dn,status:Sn,statusText:Jn,url:kr||void 0}))},an=Dn=>{const{url:Sn}=Pt(),Jn=new pn({error:Dn,status:oe.status||0,statusText:oe.statusText||"Unknown Error",url:Sn||void 0});L.error(Jn)};let En=!1;const Xt=Dn=>{En||(L.next(Pt()),En=!0);let Sn={type:Ot.DownloadProgress,loaded:Dn.loaded};Dn.lengthComputable&&(Sn.total=Dn.total),"text"===E.responseType&&oe.responseText&&(Sn.partialText=oe.responseText),L.next(Sn)},An=Dn=>{let Sn={type:Ot.UploadProgress,loaded:Dn.loaded};Dn.lengthComputable&&(Sn.total=Dn.total),L.next(Sn)};return oe.addEventListener("load",bt),oe.addEventListener("error",an),oe.addEventListener("timeout",an),oe.addEventListener("abort",an),E.reportProgress&&(oe.addEventListener("progress",Xt),null!==De&&oe.upload&&oe.upload.addEventListener("progress",An)),oe.send(De),L.next({type:Ot.Sent}),()=>{oe.removeEventListener("error",an),oe.removeEventListener("abort",an),oe.removeEventListener("load",bt),oe.removeEventListener("timeout",an),E.reportProgress&&(oe.removeEventListener("progress",Xt),null!==De&&oe.upload&&oe.upload.removeEventListener("progress",An)),oe.readyState!==oe.DONE&&oe.abort()}})))}static#e=this.\u0275fac=function(g){return new(g||R)(Y.KVO(lt.N0))};static#t=this.\u0275prov=Y.jDH({token:R,factory:R.\u0275fac})}return R})();const Tt=new Y.nKC(""),he=new Y.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),le=new Y.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class xe{}let it=(()=>{class R{constructor(E,g,O){this.doc=E,this.platform=g,this.cookieName=O,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const E=this.doc.cookie||"";return E!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,lt._b)(E,this.cookieName),this.lastCookieString=E),this.lastToken}static#e=this.\u0275fac=function(g){return new(g||R)(Y.KVO(lt.qQ),Y.KVO(Y.Agw),Y.KVO(he))};static#t=this.\u0275prov=Y.jDH({token:R,factory:R.\u0275fac})}return R})();function _t(R,w){const E=R.url.toLowerCase();if(!(0,Y.WQX)(Tt)||"GET"===R.method||"HEAD"===R.method||E.startsWith("http://")||E.startsWith("https://"))return w(R);const g=(0,Y.WQX)(xe).getToken(),O=(0,Y.WQX)(le);return null!=g&&!R.headers.has(O)&&(R=R.clone({headers:R.headers.set(O,g)})),w(R)}var ft=function(R){return R[R.Interceptors=0]="Interceptors",R[R.LegacyInterceptors=1]="LegacyInterceptors",R[R.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",R[R.NoXsrfProtection=3]="NoXsrfProtection",R[R.JsonpSupport=4]="JsonpSupport",R[R.RequestsMadeViaParent=5]="RequestsMadeViaParent",R[R.Fetch=6]="Fetch",R}(ft||{});function rt(...R){const w=[Bn,Dt,Pr,{provide:St,useExisting:Pr},{provide:ht,useFactory:()=>(0,Y.WQX)(or,{optional:!0})??(0,Y.WQX)(Dt)},{provide:Zn,useValue:_t,multi:!0},{provide:Tt,useValue:!0},{provide:xe,useClass:it}];for(const E of R)w.push(...E.\u0275providers);return(0,Y.EmA)(w)}const rn=new Y.nKC("");function xn(){return function ct(R,w){return{\u0275kind:R,\u0275providers:w}}(ft.LegacyInterceptors,[{provide:rn,useFactory:Vt},{provide:Zn,useExisting:rn,multi:!0}])}let P=(()=>{class R{static#e=this.\u0275fac=function(g){return new(g||R)};static#t=this.\u0275mod=Y.$C({type:R});static#n=this.\u0275inj=Y.G2t({providers:[rt(xn())]})}return R})()},3953:(Ne,Q,I)=>{"use strict";function o(e,t){return Object.is(e,t)}I.d(Q,{bc$:()=>ED,sZ2:()=>Du,Hbi:()=>$x,o8S:()=>Ho,BIS:()=>DD,gRc:()=>r0,OM3:()=>pc,Ocv:()=>yx,aKT:()=>Hl,uvJ:()=>Ii,zcH:()=>is,bkB:()=>ko,nKC:()=>ln,zZn:()=>pi,_q3:()=>fg,MKu:()=>pg,xe9:()=>sg,Vns:()=>ra,SKi:()=>Ir,Agw:()=>Tu,PLl:()=>s_,sFG:()=>gS,_9s:()=>Gf,czy:()=>Vu,C4Q:()=>oc,NYb:()=>ix,giA:()=>jb,RxE:()=>Ab,c1b:()=>td,gXe:()=>Qo,L39:()=>CA,EWP:()=>EA,w6W:()=>aI,oH4:()=>Jb,SmG:()=>Ix,Rfq:()=>ro,WQX:()=>at,naY:()=>Sx,EmA:()=>Le,Udg:()=>wA,fpN:()=>Ux,N4e:()=>Oi,vPA:()=>gv,O8t:()=>DA,H3F:()=>Nb,zAP:()=>O0,H8p:()=>Bi,KH2:()=>dl,TgB:()=>Ks,wOt:()=>Ct,WHO:()=>Vb,e01:()=>Bb,H5H:()=>Np,Zy3:()=>Ji,mq5:()=>$C,JZv:()=>gr,jNT:()=>tg,zjR:()=>Hb,TL$:()=>wD,Tbb:()=>Dr,Vt3:()=>rp,GFd:()=>Av,OA$:()=>lh,Jv_:()=>Zw,aNF:()=>Jw,R7$:()=>ry,BMQ:()=>vp,HbH:()=>EC,ZvI:()=>PC,AVh:()=>Mp,BUC:()=>xC,vxM:()=>FC,wni:()=>Tw,VBU:()=>Zd,FsC:()=>eh,jDH:()=>_,G2t:()=>se,$C:()=>Zc,EJ8:()=>th,rXU:()=>ja,nrm:()=>xp,eu8:()=>Ap,bVm:()=>_d,qex:()=>md,k0s:()=>gd,j41:()=>pd,RV6:()=>jC,xGo:()=>Dm,KVO:()=>Cn,kS0:()=>yu,bIt:()=>kp,lsd:()=>Iw,XpG:()=>pw,nI1:()=>pb,bMT:()=>gb,SdG:()=>mw,NAR:()=>gw,Y8G:()=>Ep,FS9:()=>Vp,lJ4:()=>rb,eq3:()=>ib,l_i:()=>ob,sMw:()=>sb,ziG:()=>ab,s1E:()=>lb,mGM:()=>Sw,sdS:()=>Ow,Dyx:()=>LC,Z7z:()=>kC,Njj:()=>Qg,tSv:()=>L_,eBV:()=>Yg,npT:()=>P_,wjB:()=>eb,xc7:()=>Tp,DNE:()=>ap,C5r:()=>mb,EFF:()=>Bw,JRh:()=>Hp,SpI:()=>bd,Lme:()=>Up,DH7:()=>Kw,mxI:()=>Gp,R50:()=>$p,GBs:()=>Mw});let N=null,Y=!1,ae=1;const J=Symbol("SIGNAL");function ie(e){const t=N;return N=e,t}const X={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Z(e){if(Y)throw new Error("");if(null===N)return;N.consumerOnSignalRead(e);const t=N.nextProducerIndex++;Wt(N),t<N.producerNode.length&&N.producerNode[t]!==e&&yt(N)&&Ve(N.producerNode[t],N.producerIndexOfThis[t]),N.producerNode[t]!==e&&(N.producerNode[t]=e,N.producerIndexOfThis[t]=yt(N)?qe(e,N,t):0),N.producerLastReadVersion[t]=e.version}function Ue(e){if((!yt(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==ae)){if(!e.producerMustRecompute(e)&&!ht(e))return e.dirty=!1,void(e.lastCleanEpoch=ae);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=ae}}function Re(e){if(void 0===e.liveConsumerNode)return;const t=Y;Y=!0;try{for(const n of e.liveConsumerNode)n.dirty||Xe(n)}finally{Y=t}}function Ke(){return!1!==N?.consumerAllowSignalWrites}function Xe(e){e.dirty=!0,Re(e),e.consumerMarkedDirty?.(e)}function lt(e){return e&&(e.nextProducerIndex=0),ie(e)}function St(e,t){if(ie(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(yt(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Ve(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ht(e){Wt(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(Ue(n),r!==n.version))return!0}return!1}function Et(e){if(Wt(e),yt(e))for(let t=0;t<e.producerNode.length;t++)Ve(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function qe(e,t,n){if(dt(e),0===e.liveConsumerNode.length&&st(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=qe(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Ve(e,t){if(dt(e),1===e.liveConsumerNode.length&&st(e))for(let r=0;r<e.producerNode.length;r++)Ve(e.producerNode[r],e.producerIndexOfThis[r]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[t],i=e.liveConsumerNode[t];Wt(i),i.producerIndexOfThis[r]=t}}function yt(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Wt(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function dt(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function st(e){return void 0!==e.producerNode}const U=Symbol("UNSET"),fe=Symbol("COMPUTING"),_e=Symbol("ERRORED"),be={...X,value:U,dirty:!0,error:null,equal:o,producerMustRecompute:e=>e.value===U||e.value===fe,producerRecomputeValue(e){if(e.value===fe)throw new Error("Detected cycle in computations.");const t=e.value;e.value=fe;const n=lt(e);let r;try{r=e.computation()}catch(i){r=_e,e.error=i}finally{St(e,n)}t!==U&&t!==_e&&r!==_e&&e.equal(t,r)?e.value=t:(e.value=r,e.version++)}};let Te=function Se(){throw new Error};function Ye(){Te()}let Pn=null;function tn(e,t){Ke()||Ye(),e.equal(e.value,t)||(e.value=t,function fr(e){e.version++,function Ee(){ae++}(),Re(e),Pn?.()}(e))}const ir={...X,equal:o,value:void 0};var Er=I(4412),or=I(1413),Rr=I(8359),kn=I(6354);typeof navigator<"u"&&navigator,typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||navigator),typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&navigator;const bs="https://g.co/ng/security#xss";class Ct extends Error{constructor(t,n){super(Ji(t,n)),this.code=t}}function Ji(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function Ei(e){return{toString:e}.toString()}const mo="__parameters__";function Di(e,t,n){return Ei(()=>{const r=function Kr(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...s){if(this instanceof i)return r.apply(this,s),this;const a=new i(...s);return d.annotation=a,d;function d(h,v,S){const B=h.hasOwnProperty(mo)?h[mo]:Object.defineProperty(h,mo,{value:[]})[mo];for(;B.length<=S;)B.push(null);return(B[S]=B[S]||[]).push(a),h}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}const gr=globalThis;function Vn(e){for(let t in e)if(e[t]===Vn)return t;throw Error("Could not find renamed property on target object.")}function Ds(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Dr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Dr).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 Xi(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const us=Vn({__forward_ref__:Vn});function ro(e){return e.__forward_ref__=ro,e.toString=function(){return Dr(this())},e}function qt(e){return jr(e)?e():e}function jr(e){return"function"==typeof e&&e.hasOwnProperty(us)&&e.__forward_ref__===ro}function _(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function se(e){return{providers:e.providers||[],imports:e.imports||[]}}function kt(e){return Lr(e,io)||Lr(e,qo)}function Lr(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ti(e){return e&&(e.hasOwnProperty(Ko)||e.hasOwnProperty(Cl))?e[Ko]:null}const io=Vn({\u0275prov:Vn}),Ko=Vn({\u0275inj:Vn}),qo=Vn({ngInjectableDef:Vn}),Cl=Vn({ngInjectorDef:Vn});class ln{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=_({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function wl(e){return e&&!!e.\u0275providers}const ds=Vn({\u0275cmp:Vn}),ya=Vn({\u0275dir:Vn}),va=Vn({\u0275pipe:Vn}),Hc=Vn({\u0275mod:Vn}),oo=Vn({\u0275fac:Vn}),Ns=Vn({__NG_ELEMENT_ID__:Vn}),bl=Vn({__NG_ENV_ID__:Vn});function cn(e){return"string"==typeof e?e:null==e?"":String(e)}function Ca(e,t){throw new Ct(-201,!1)}var Nn=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Nn||{});let El;function zc(){return El}function yi(e){const t=El;return El=e,t}function Rs(e,t,n){const r=kt(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Nn.Optional?null:void 0!==t?t:void Ca()}const ks={},Dl="__NG_DI_FLAG__",f="ngTempTokenPath",C=/\n/gm,re="__source";let Pe;function Mt(e){const t=Pe;return Pe=e,t}function sr(e,t=Nn.Default){if(void 0===Pe)throw new Ct(-203,!1);return null===Pe?Rs(e,void 0,t):Pe.get(e,t&Nn.Optional?null:void 0,t)}function Cn(e,t=Nn.Default){return(zc()||sr)(qt(e),t)}function at(e,t=Nn.Default){return Cn(e,ar(t))}function ar(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Kn(e){const t=[];for(let n=0;n<e.length;n++){const r=qt(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Ct(900,!1);let i,s=Nn.Default;for(let a=0;a<r.length;a++){const d=r[a],h=Qn(d);"number"==typeof h?-1===h?i=d.token:s|=h:i=d}t.push(Cn(i,s))}else t.push(Cn(r))}return t}function qn(e,t){return e[Dl]=t,e.prototype[Dl]=t,e}function Qn(e){return e[Dl]}const Yr=qn(Di("Optional"),8),lo=qn(Di("SkipSelf"),4);function Yo(e,t){return e.hasOwnProperty(oo)?e[oo]:null}function Vs(e,t){e.forEach(n=>Array.isArray(n)?Vs(n,t):t(n))}function Gd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Tl(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Si(e,t,n){let r=hs(e,t);return r>=0?e[1|r]=n:(r=~r,function zd(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function wa(e,t){const n=hs(e,t);if(n>=0)return e[1|n]}function hs(e,t){return function Wd(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const s=r+(i-r>>1),a=e[s<<n];if(t===a)return s<<n;a>t?i=s:r=s+1}return~(i<<n)}(e,t,1)}const yo={},$n=[],vo=new ln(""),Xd=new ln("",-1),Sl=new ln("");class ba{get(t,n=ks){if(n===ks){const r=new Error(`NullInjectorError: No provider for ${Dr(t)}!`);throw r.name="NullInjectorError",r}return n}}var Il=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Il||{}),Qo=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Qo||{}),co=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(co||{});function Xc(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const s=t.length;if(i+s===r||e.charCodeAt(i+s)<=32)return i}n=i+1}}function di(e,t,n){let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const s=n[r++],a=n[r++],d=n[r++];e.setAttribute(t,a,d,s)}else{const s=i,a=n[++r];Ol(s)?e.setProperty(t,s,a):e.setAttribute(t,s,a),r++}}return r}function Kc(e){return 3===e||4===e||6===e}function Ol(e){return 64===e.charCodeAt(0)}function Bs(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?n=i:0===n||qc(e,n,i,null,-1===n||2===n?t[++r]:null)}}return e}function qc(e,t,n,r,i){let s=0,a=e.length;if(-1===t)a=-1;else for(;s<e.length;){const d=e[s++];if("number"==typeof d){if(d===t){a=-1;break}if(d>t){a=s-1;break}}}for(;s<e.length;){const d=e[s];if("number"==typeof d)break;if(d===n){if(null===r)return void(null!==i&&(e[s+1]=i));if(r===e[s+1])return void(e[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==a&&(e.splice(a,0,t),s=a+1),e.splice(s++,0,n),null!==r&&e.splice(s++,0,r),null!==i&&e.splice(s++,0,i)}const Yc="ng-template";function bg(e,t,n,r){let i=0;if(r){for(;i<t.length&&"string"==typeof t[i];i+=2)if("class"===t[i]&&-1!==Xc(t[i+1].toLowerCase(),n,0))return!0}else if(Qc(e))return!1;if(i=t.indexOf(1,i),i>-1){let s;for(;++i<t.length&&"string"==typeof(s=t[i]);)if(s.toLowerCase()===n)return!0}return!1}function Qc(e){return 4===e.type&&e.value!==Yc}function Eg(e,t,n){return t===(4!==e.type||n?e.value:Yc)}function Dg(e,t,n){let r=4;const i=e.attrs,s=null!==i?function qd(e){for(let t=0;t<e.length;t++)if(Kc(e[t]))return t;return e.length}(i):0;let a=!1;for(let d=0;d<t.length;d++){const h=t[d];if("number"!=typeof h){if(!a)if(4&r){if(r=2|1&r,""!==h&&!Eg(e,h,n)||""===h&&1===t.length){if(uo(r))return!1;a=!0}}else if(8&r){if(null===i||!bg(e,i,h,n)){if(uo(r))return!1;a=!0}}else{const v=t[++d],S=Tg(h,i,Qc(e),n);if(-1===S){if(uo(r))return!1;a=!0;continue}if(""!==v){let B;if(B=S>s?"":i[S+1].toLowerCase(),2&r&&v!==B){if(uo(r))return!1;a=!0}}}}else{if(!a&&!uo(r)&&!uo(h))return!1;if(a&&uo(h))continue;a=!1,r=h|1&r}}return uo(r)||a}function uo(e){return!(1&e)}function Tg(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let s=!1;for(;i<t.length;){const a=t[i];if(a===e)return i;if(3===a||6===a)s=!0;else{if(1===a||2===a){let d=t[++i];for(;"string"==typeof d;)d=t[++i];continue}if(4===a)break;if(0===a){i+=4;continue}}i+=s?1:2}return-1}return function Sg(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function Kd(e,t,n=!1){for(let r=0;r<t.length;r++)if(Dg(e,t[r],n))return!0;return!1}function Ig(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let i=0;i<e.length;i++)if(e[i]!==r[i])continue e;return!0}}return!1}function Yd(e,t){return e?":not("+t.trim()+")":t}function Og(e){let t=e[0],n=1,r=2,i="",s=!1;for(;n<e.length;){let a=e[n];if("string"==typeof a)if(2&r){const d=e[++n];i+="["+a+(d.length>0?'="'+d+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""!==i&&!uo(a)&&(t+=Yd(s,i),i=""),r=a,s=s||!uo(r);n++}return""!==i&&(t+=Yd(s,i)),t}function Zd(e){return Ei(()=>{const t=M(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Il.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Qo.Emulated,styles:e.styles||$n,_:null,schemas:e.schemas||null,tView:null,id:""};V(n);const r=e.dependencies;return n.directiveDefs=ne(r,!1),n.pipeDefs=ne(r,!0),n.id=function Oe(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const i of n)t=Math.imul(31,t)+i.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function xg(e){return In(e)||m(e)}function Ag(e){return null!==e}function Zc(e){return Ei(()=>({type:e.type,bootstrap:e.bootstrap||$n,declarations:e.declarations||$n,imports:e.imports||$n,exports:e.exports||$n,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Jd(e,t){if(null==e)return yo;const n={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r];let s,a,d=co.None;Array.isArray(i)?(d=i[0],s=i[1],a=i[2]??s):(s=i,a=i),t?(n[s]=d!==co.None?[r,d]:r,t[s]=a):n[s]=r}return n}function eh(e){return Ei(()=>{const t=M(e);return V(t),t})}function th(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function In(e){return e[ds]||null}function m(e){return e[ya]||null}function u(e){return e[va]||null}function M(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||yo,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||$n,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Jd(e.inputs,t),outputs:Jd(e.outputs),debugInfo:null}}function V(e){e.features?.forEach(t=>t(e))}function ne(e,t){if(!e)return null;const n=t?u:xg;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(Ag)}function Le(e){return{\u0275providers:e}}function At(...e){return{\u0275providers:xt(0,e),\u0275fromNgModule:!0}}function xt(e,...t){const n=[],r=new Set;let i;const s=a=>{n.push(a)};return Vs(t,a=>{const d=a;_n(d,s,[],r)&&(i||=[],i.push(d))}),void 0!==i&&Rn(i,s),n}function Rn(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:i}=e[n];un(i,s=>{t(s,r)})}}function _n(e,t,n,r){if(!(e=qt(e)))return!1;let i=null,s=Ti(e);const a=!s&&In(e);if(s||a){if(a&&!a.standalone)return!1;i=e}else{const h=e.ngModule;if(s=Ti(h),!s)return!1;i=h}const d=r.has(i);if(a){if(d)return!1;if(r.add(i),a.dependencies){const h="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const v of h)_n(v,t,n,r)}}else{if(!s)return!1;{if(null!=s.imports&&!d){let v;r.add(i);try{Vs(s.imports,S=>{_n(S,t,n,r)&&(v||=[],v.push(S))})}finally{}void 0!==v&&Rn(v,t)}if(!d){const v=Yo(i)||(()=>new i);t({provide:i,useFactory:v,deps:$n},i),t({provide:Sl,useValue:i,multi:!0},i),t({provide:vo,useValue:()=>Cn(i),multi:!0},i)}const h=s.providers;if(null!=h&&!d){const v=e;un(h,S=>{t(S,v)})}}}return i!==e&&void 0!==e.providers}function un(e,t){for(let n of e)wl(n)&&(n=n.\u0275providers),Array.isArray(n)?un(n,t):t(n)}const mr=Vn({provide:String,useValue:Vn});function Ar(e){return null!==e&&"object"==typeof e&&mr in e}function br(e){return"function"==typeof e}const Bi=new ln(""),Qr={},vi={};let Co;function wo(){return void 0===Co&&(Co=new ba),Co}class Ii{}class ji extends Ii{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Hi(t,a=>this.processProvider(a)),this.records.set(Xd,zt(void 0,this)),i.has("environment")&&this.records.set(Ii,zt(void 0,this));const s=this.records.get(Bi);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Sl,$n,Nn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=ie(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ie(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Mt(this),r=yi(void 0);try{return t()}finally{Mt(n),yi(r)}}get(t,n=ks,r=Nn.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(bl))return t[bl](this);r=ar(r);const s=Mt(this),a=yi(void 0);try{if(!(r&Nn.SkipSelf)){let h=this.records.get(t);if(void 0===h){const v=function Zr(e){return"function"==typeof e||"object"==typeof e&&e instanceof ln}(t)&&kt(t);h=v&&this.injectableDefInScope(v)?zt(js(t),Qr):null,this.records.set(t,h)}if(null!=h)return this.hydrate(t,h)}return(r&Nn.Self?wo():this.parent).get(t,n=r&Nn.Optional&&n===ks?null:n)}catch(d){if("NullInjectorError"===d.name){if((d[f]=d[f]||[]).unshift(Dr(t)),s)throw d;return function qr(e,t,n,r){const i=e[f];throw t[re]&&i.unshift(t[re]),e.message=function Ki(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=Dr(t);if(Array.isArray(t))i=t.map(Dr).join(" -> ");else if("object"==typeof t){let s=[];for(let a in t)if(t.hasOwnProperty(a)){let d=t[a];s.push(a+":"+("string"==typeof d?JSON.stringify(d):Dr(d)))}i=`{${s.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(C,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[f]=null,e}(d,t,"R3InjectorError",this.source)}throw d}finally{yi(a),Mt(s)}}resolveInjectorInitializers(){const t=ie(null),n=Mt(this),r=yi(void 0);try{const s=this.get(vo,$n,Nn.Self);for(const a of s)a()}finally{Mt(n),yi(r),ie(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Dr(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ct(205,!1)}processProvider(t){let n=br(t=qt(t))?t:qt(t&&t.provide);const r=function eu(e){return Ar(e)?zt(void 0,e.useValue):zt(jt(e),Qr)}(t);if(!br(t)&&!0===t.multi){let i=this.records.get(n);i||(i=zt(void 0,Qr,!0),i.factory=()=>Kn(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){const r=ie(null);try{return n.value===Qr&&(n.value=vi,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Gn(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{ie(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=qt(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function js(e){const t=kt(e),n=null!==t?t.factory:Yo(e);if(null!==n)return n;if(e instanceof ln)throw new Ct(204,!1);if(e instanceof Function)return function Jc(e){if(e.length>0)throw new Ct(204,!1);const n=function _i(e){return e&&(e[io]||e[qo])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Ct(204,!1)}function jt(e,t,n){let r;if(br(e)){const i=qt(e);return Yo(i)||js(i)}if(Ar(e))r=()=>qt(e.useValue);else if(function li(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Kn(e.deps||[]));else if(function Hr(e){return!(!e||!e.useExisting)}(e))r=()=>Cn(qt(e.useExisting));else{const i=qt(e&&(e.useClass||e.provide));if(!function nn(e){return!!e.deps}(e))return Yo(i)||js(i);r=()=>new i(...Kn(e.deps))}return r}function zt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Hi(e,t){for(const n of e)Array.isArray(n)?Hi(n,t):n&&wl(n)?Hi(n.\u0275providers,t):t(n)}function Oi(e,t){e instanceof ji&&e.assertNotDestroyed();const r=Mt(e),i=yi(void 0);try{return t()}finally{Mt(r),yi(i)}}const Mr=0,pt=1,Qt=2,Jr=3,Eo=4,hi=5,xi=6,Da=7,_r=8,ei=9,xo=10,hn=11,Pl=12,Ng=13,Ta=14,Sr=15,Hs=16,Ma=17,es=18,Sa=19,Rg=20,ps=21,nu=22,ho=23,Ut=25,ih=1,Ao=7,Ia=9,Ur=10;var iu=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(iu||{});function ti(e){return Array.isArray(e)&&"object"==typeof e[ih]}function Ci(e){return Array.isArray(e)&&!0===e[ih]}function oh(e){return!!(4&e.flags)}function Us(e){return e.componentOffset>-1}function ou(e){return!(1&~e.flags)}function Do(e){return!!e.template}function Al(e){return!!(512&e[Qt])}class q0{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Bg(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function lh(){return jg}function jg(e){return e.type.prototype.ngOnChanges&&(e.setInput=Q0),Y0}function Y0(){const e=Ug(this),t=e?.current;if(t){const n=e.previous;if(n===yo)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Q0(e,t,n,r,i){const s=this.declaredInputs[r],a=Ug(e)||function Z0(e,t){return e[Hg]=t}(e,{previous:yo,current:null}),d=a.current||(a.current={}),h=a.previous,v=h[s];d[s]=new q0(v&&v.currentValue,n,h===yo),Bg(e,t,i,n)}lh.ngInherit=!0;const Hg="__ngSimpleChanges__";function Ug(e){return e[Hg]||null}const No=function(e,t,n){};function Yn(e){for(;Array.isArray(e);)e=e[Mr];return e}function Nl(e,t){return Yn(t[e])}function Ai(e,t){return Yn(t[e.index])}function Rl(e,t){return e.data[t]}function $s(e,t){return e[t]}function qi(e,t){const n=t[e];return ti(n)?n:n[Mr]}function dh(e){return!(128&~e[Qt])}function fo(e,t){return null==t?null:e[t]}function zg(e){e[Ma]=0}function Wg(e){1024&e[Qt]||(e[Qt]|=1024,dh(e)&&au(e))}function su(e){return!!(9216&e[Qt]||e[ho]?.dirty)}function hh(e){e[xo].changeDetectionScheduler?.notify(8),64&e[Qt]&&(e[Qt]|=1024),su(e)&&au(e)}function au(e){e[xo].changeDetectionScheduler?.notify(0);let t=ts(e);for(;null!==t&&!(8192&t[Qt])&&(t[Qt]|=8192,dh(t));)t=ts(t)}function lu(e,t){if(!(256&~e[Qt]))throw new Ct(911,!1);null===e[ps]&&(e[ps]=[]),e[ps].push(t)}function ts(e){const t=e[Jr];return Ci(t)?t[Jr]:t}const fn={lFrame:am(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Kg=!1;function qg(){return fn.bindingsEnabled}function Gs(){return null!==fn.skipHydrationRootTNode}function Be(){return fn.lFrame.lView}function On(){return fn.lFrame.tView}function Yg(e){return fn.lFrame.contextLView=e,e[_r]}function Qg(e){return fn.lFrame.contextLView=null,e}function rr(){let e=Zg();for(;null!==e&&64===e.type;)e=e.parent;return e}function Zg(){return fn.lFrame.currentTNode}function To(e,t){const n=fn.lFrame;n.currentTNode=e,n.isParent=t}function gh(){return fn.lFrame.isParent}function mh(){fn.lFrame.isParent=!1}function tm(){return Kg}function nm(e){Kg=e}function Ni(){const e=fn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Mo(){return fn.lFrame.bindingIndex++}function rs(e){const t=fn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function hE(e,t){const n=fn.lFrame;n.bindingIndex=n.bindingRootIndex=e,_h(t)}function _h(e){fn.lFrame.currentDirectiveIndex=e}function vh(){return fn.lFrame.currentQueryIndex}function uu(e){fn.lFrame.currentQueryIndex=e}function pE(e){const t=e[pt];return 2===t.type?t.declTNode:1===t.type?e[hi]:null}function om(e,t,n){if(n&Nn.SkipSelf){let i=t,s=e;for(;!(i=i.parent,null!==i||n&Nn.Host||(i=pE(s),null===i||(s=s[Ta],10&i.type))););if(null===i)return!1;t=i,e=s}const r=fn.lFrame=sm();return r.currentTNode=t,r.lView=e,!0}function Ch(e){const t=sm(),n=e[pt];fn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function sm(){const e=fn.lFrame,t=null===e?null:e.child;return null===t?am(e):t}function am(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 lm(){const e=fn.lFrame;return fn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const cm=lm;function wh(){const e=lm();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 fi(){return fn.lFrame.selectedIndex}function zs(e){fn.lFrame.selectedIndex=e}function yr(){const e=fn.lFrame;return Rl(e.tView,e.selectedIndex)}let dm=!0;function kl(){return dm}function Ro(e){dm=e}function du(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const s=e.data[n].type.prototype,{ngAfterContentInit:a,ngAfterContentChecked:d,ngAfterViewInit:h,ngAfterViewChecked:v,ngOnDestroy:S}=s;a&&(e.contentHooks??=[]).push(-n,a),d&&((e.contentHooks??=[]).push(n,d),(e.contentCheckHooks??=[]).push(n,d)),h&&(e.viewHooks??=[]).push(-n,h),v&&((e.viewHooks??=[]).push(n,v),(e.viewCheckHooks??=[]).push(n,v)),null!=S&&(e.destroyHooks??=[]).push(n,S)}}function hu(e,t,n){hm(e,t,3,n)}function fu(e,t,n,r){(3&e[Qt])===n&&hm(e,t,n,r)}function bh(e,t){let n=e[Qt];(3&n)===t&&(n&=16383,n+=1,e[Qt]=n)}function hm(e,t,n,r){const s=r??-1,a=t.length-1;let d=0;for(let h=void 0!==r?65535&e[Ma]:0;h<a;h++)if("number"==typeof t[h+1]){if(d=t[h],null!=r&&d>=r)break}else t[h]<0&&(e[Ma]+=65536),(d<s||-1==s)&&(wE(e,n,t,h),e[Ma]=(4294901760&e[Ma])+h+2),h++}function fm(e,t){No(4,e,t);const n=ie(null);try{t.call(e)}finally{ie(n),No(5,e,t)}}function wE(e,t,n,r){const i=n[r]<0,s=n[r+1],d=e[i?-n[r]:n[r]];i?e[Qt]>>14<e[Ma]>>16&&(3&e[Qt])===t&&(e[Qt]+=16384,fm(d,s)):fm(d,s)}const Oa=-1;class Ll{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}const Dh={};class Ws{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ar(r);const i=this.injector.get(t,Dh,r);return i!==Dh||n===Dh?i:this.parentInjector.get(t,n,r)}}function Th(e){return e!==Oa}function Vl(e){return 32767&e}function Bl(e,t){let n=function ME(e){return e>>16}(e),r=t;for(;n>0;)r=r[Ta],n--;return r}let Mh=!0;function pu(e){const t=Mh;return Mh=e,t}const gm=255,mm=5;let IE=0;const Fo={};function gu(e,t){const n=_m(e,t);if(-1!==n)return n;const r=t[pt];r.firstCreatePass&&(e.injectorIndex=t.length,Sh(r.data,e),Sh(t,null),Sh(r.blueprint,null));const i=mu(e,t),s=e.injectorIndex;if(Th(i)){const a=Vl(i),d=Bl(i,t),h=d[pt].data;for(let v=0;v<8;v++)t[s+v]=d[a+v]|h[a+v]}return t[s+8]=i,s}function Sh(e,t){e.push(0,0,0,0,0,0,0,0,t)}function _m(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function mu(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){if(r=Tm(i),null===r)return Oa;if(n++,i=i[Ta],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Oa}function Ih(e,t,n){!function OE(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ns)&&(r=n[Ns]),null==r&&(r=n[Ns]=IE++);const i=r&gm;t.data[e+(i>>mm)]|=1<<i}(e,t,n)}function ym(e,t,n){if(n&Nn.Optional||void 0!==e)return e;Ca()}function vm(e,t,n,r){if(n&Nn.Optional&&void 0===r&&(r=null),!(n&(Nn.Self|Nn.Host))){const i=e[ei],s=yi(void 0);try{return i?i.get(t,r,n&Nn.Optional):Rs(t,r,n&Nn.Optional)}finally{yi(s)}}return ym(r,0,n)}function Cm(e,t,n,r=Nn.Default,i){if(null!==e){if(2048&t[Qt]&&!(r&Nn.Self)){const a=function RE(e,t,n,r,i){let s=e,a=t;for(;null!==s&&null!==a&&2048&a[Qt]&&!(512&a[Qt]);){const d=wm(s,a,n,r|Nn.Self,Fo);if(d!==Fo)return d;let h=s.parent;if(!h){const v=a[Rg];if(v){const S=v.get(n,Fo,r);if(S!==Fo)return S}h=Tm(a),a=a[Ta]}s=h}return i}(e,t,n,r,Fo);if(a!==Fo)return a}const s=wm(e,t,n,r,Fo);if(s!==Fo)return s}return vm(t,n,r,i)}function wm(e,t,n,r,i){const s=function AE(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ns)?e[Ns]:void 0;return"number"==typeof t?t>=0?t&gm:NE:t}(n);if("function"==typeof s){if(!om(t,e,r))return r&Nn.Host?ym(i,0,r):vm(t,n,r,i);try{let a;if(a=s(r),null!=a||r&Nn.Optional)return a;Ca()}finally{cm()}}else if("number"==typeof s){let a=null,d=_m(e,t),h=Oa,v=r&Nn.Host?t[Sr][hi]:null;for((-1===d||r&Nn.SkipSelf)&&(h=-1===d?mu(e,t):t[d+8],h!==Oa&&Em(r,!1)?(a=t[pt],d=Vl(h),t=Bl(h,t)):d=-1);-1!==d;){const S=t[pt];if(bm(s,d,S.data)){const B=xE(d,t,n,a,r,v);if(B!==Fo)return B}h=t[d+8],h!==Oa&&Em(r,t[pt].data[d+8]===v)&&bm(s,d,t)?(a=S,d=Vl(h),t=Bl(h,t)):d=-1}}return i}function xE(e,t,n,r,i,s){const a=t[pt],d=a.data[e+8],S=_u(d,a,n,null==r?Us(d)&&Mh:r!=a&&!!(3&d.type),i&Nn.Host&&s===d);return null!==S?Xs(t,a,S,d):Fo}function _u(e,t,n,r,i){const s=e.providerIndexes,a=t.data,d=1048575&s,h=e.directiveStart,S=s>>20,te=i?d+S:e.directiveEnd;for(let de=r?d:d+S;de<te;de++){const we=a[de];if(de<h&&n===we||de>=h&&we.type===n)return de}if(i){const de=a[h];if(de&&Do(de)&&de.type===n)return h}return null}function Xs(e,t,n,r){let i=e[n];const s=t.data;if(function bE(e){return e instanceof Ll}(i)){const a=i;a.resolving&&function $c(e,t){throw t&&t.join(" > "),new Ct(-200,e)}(function Xn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():cn(e)}(s[n]));const d=pu(a.canSeeViewProviders);a.resolving=!0;const v=a.injectImpl?yi(a.injectImpl):null;om(e,r,Nn.Default);try{i=e[n]=a.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function CE(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){const a=jg(t);(n.preOrderHooks??=[]).push(e,a),(n.preOrderCheckHooks??=[]).push(e,a)}i&&(n.preOrderHooks??=[]).push(0-e,i),s&&((n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s))}(n,s[n],t)}finally{null!==v&&yi(v),pu(d),a.resolving=!1,cm()}}return i}function bm(e,t,n){return!!(n[t+(e>>mm)]&1<<e)}function Em(e,t){return!(e&Nn.Self||e&Nn.Host&&t)}class ni{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Cm(this._tNode,this._lView,t,ar(r),n)}}function NE(){return new ni(rr(),Be())}function Dm(e){return Ei(()=>{const t=e.prototype.constructor,n=t[oo]||Oh(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const s=i[oo]||Oh(i);if(s&&s!==n)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function Oh(e){return jr(e)?()=>{const t=Oh(qt(e));return t&&t()}:Yo(e)}function Tm(e){const t=e[pt],n=t.type;return 2===n?t.declTNode:1===n?e[hi]:null}function yu(e){return function PE(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let i=0;for(;i<r;){const s=n[i];if(Kc(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(s===t)return n[i+1];i+=2}}}return null}(rr(),e)}function Pm(e,t=null,n=null,r){const i=xm(e,t,n,r);return i.resolveInjectorInitializers(),i}function xm(e,t=null,n=null,r,i=new Set){const s=[n||$n,At(e)];return r=r||("object"==typeof e?void 0:Dr(e)),new ji(s,t||wo(),r||null,i)}class pi{static#e=this.THROW_IF_NOT_FOUND=ks;static#t=this.NULL=new ba;static create(t,n){if(Array.isArray(t))return Pm({name:""},n,t,"");{const r=t.name??"";return Pm({name:r},t.parent,t.providers,r)}}static#n=this.\u0275prov=_({token:pi,providedIn:"any",factory:()=>Cn(Xd)});static#r=this.__NG_ELEMENT_ID__=-1}new ln("").__NG_ELEMENT_ID__=e=>{const t=rr();if(null===t)throw new Ct(204,!1);if(2&t.type)return t.value;if(e&Nn.Optional)return null;throw new Ct(204,!1)};function xh(e){return e.ngOriginalError}const Nm=!0;let jl=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=GE;static#t=this.__NG_ENV_ID__=n=>n}return e})();class $E extends jl{constructor(t){super(),this._lView=t}onDestroy(t){return lu(this._lView,t),()=>function fh(e,t){if(null===e[ps])return;const n=e[ps].indexOf(t);-1!==n&&e[ps].splice(n,1)}(this._lView,t)}}function GE(){return new $E(Be())}let Ks=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Er.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275prov=_({token:e,providedIn:"root",factory:()=>new e})}return e})();const ko=class zE extends or.B{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,function bo(){return void 0!==zc()||null!=function nt(){return Pe}()}()&&(this.destroyRef=at(jl,{optional:!0})??void 0,this.pendingTasks=at(Ks,{optional:!0})??void 0)}emit(t){const n=ie(null);try{super.next(t)}finally{ie(n)}}subscribe(t,n,r){let i=t,s=n||(()=>null),a=r;if(t&&"object"==typeof t){const h=t;i=h.next?.bind(h),s=h.error?.bind(h),a=h.complete?.bind(h)}this.__isAsync&&(s=this.wrapInTimeout(s),i&&(i=this.wrapInTimeout(i)),a&&(a=this.wrapInTimeout(a)));const d=super.subscribe({next:i,error:s,complete:a});return t instanceof Rr.yU&&t.add(d),d}wrapInTimeout(t){return n=>{const r=this.pendingTasks?.add();setTimeout(()=>{t(n),void 0!==r&&this.pendingTasks?.remove(r)})}}};function Cu(...e){}function Rm(e){let t,n;function r(){e=Cu;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Fm(e){return queueMicrotask(()=>e()),()=>{e=Cu}}const Ah="isAngularZone",wu=Ah+"_ID";let WE=0;class Ir{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ko(!1),this.onMicrotaskEmpty=new ko(!1),this.onStable=new ko(!1),this.onError=new ko(!1);const{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:s=Nm}=t;if(typeof Zone>"u")throw new Ct(908,!1);Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!i&&r,a.shouldCoalesceRunChangeDetection=i,a.callbackScheduled=!1,a.scheduleInRootZone=s,function qE(e){const t=()=>{!function KE(e){function t(){Rm(()=>{e.callbackScheduled=!1,Rh(e),e.isCheckStableRunning=!0,Nh(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Rh(e))}(e)},n=WE++;e._inner=e._inner.fork({name:"angular",properties:{[Ah]:!0,[wu]:n,[wu+n]:!0},onInvokeTask:(r,i,s,a,d,h)=>{if(function YE(e){return Vm(e,"__ignore_ng_zone__")}(h))return r.invokeTask(s,a,d,h);try{return km(e),r.invokeTask(s,a,d,h)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),Lm(e)}},onInvoke:(r,i,s,a,d,h,v)=>{try{return km(e),r.invoke(s,a,d,h,v)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function QE(e){return Vm(e,"__scheduler_tick__")}(h)&&t(),Lm(e)}},onHasTask:(r,i,s,a)=>{r.hasTask(s,a),i===s&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,Rh(e),Nh(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(r,i,s,a)=>(r.handleError(s,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(Ah)}static assertInAngularZone(){if(!Ir.isInAngularZone())throw new Ct(909,!1)}static assertNotInAngularZone(){if(Ir.isInAngularZone())throw new Ct(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const s=this._inner,a=s.scheduleEventTask("NgZoneEvent: "+i,t,XE,Cu,Cu);try{return s.runTask(a,n,r)}finally{s.cancelTask(a)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const XE={};function Nh(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 Rh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function km(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Lm(e){e._nesting--,Nh(e)}class Fh{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ko,this.onMicrotaskEmpty=new ko,this.onStable=new ko,this.onError=new ko}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}function Vm(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class is{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&xh(t);for(;n&&xh(n);)n=xh(n);return n||null}}const JE=new ln("",{providedIn:"root",factory:()=>{const e=at(Ir),t=at(is);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function eD(){return Aa(rr(),Be())}function Aa(e,t){return new Hl(Ai(e,t))}let Hl=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=eD}return e})();function jm(e){return e instanceof Hl?e.nativeElement:e}function tD(){return this._results[Symbol.iterator]()}class kh{static#e=Symbol.iterator;get changes(){return this._changes??=new ko}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=kh.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=tD)}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){this.dirty=!1;const r=function Mi(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function vg(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],s=t[r];if(n&&(i=n(i),s=n(s)),s!==i)return!1}return!0}(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function $l(e){return!(128&~e.flags)}const Vh=new Map;let rD=0;function Bh(e){Vh.delete(e[Sa])}const bu="__ngContext__";function wi(e,t){ti(t)?(e[bu]=t[Sa],function oD(e){Vh.set(e[Sa],e)}(t)):e[bu]=t}function Ym(e){return Zm(e[Pl])}function Qm(e){return Zm(e[Eo])}function Zm(e){for(;null!==e&&!Ci(e);)e=e[Eo];return e}let Hh;function wD(e){Hh=e}function gs(){if(void 0!==Hh)return Hh;if(typeof document<"u")return document;throw new Ct(210,!1)}const Du=new ln("",{providedIn:"root",factory:()=>bD}),bD="ng",s_=new ln(""),Tu=new ln("",{providedIn:"platform",factory:()=>"unknown"}),ED=new ln(""),DD=new ln("",{providedIn:"root",factory:()=>gs().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let a_=()=>null;function Kh(e,t,n=!1){return a_(e,t,n)}const g_=new ln("",{providedIn:"root",factory:()=>!1});let Nu,Ru;function ka(e){return function Jh(){if(void 0===Nu&&(Nu=null,gr.trustedTypes))try{Nu=gr.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Nu}()?.createHTML(e)||e}function y_(e){return function ef(){if(void 0===Ru&&(Ru=null,gr.trustedTypes))try{Ru=gr.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ru}()?.createHTML(e)||e}class w_{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${bs})`}}function ms(e){return e instanceof w_?e.changingThisBreaksApplicationSecurity:e}class GD{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(ka(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}}class zD{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=ka(t),n}}const XD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function os(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ql(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const E_=os("area,br,col,hr,img,wbr"),D_=os("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),T_=os("rp,rt"),nf=Ql(E_,Ql(D_,os("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")),Ql(T_,os("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")),Ql(T_,D_)),rf=os("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),M_=Ql(rf,os("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),os("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")),KD=os("script,style,template");class qD{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,i=[];for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)i.push(n),n=ZD(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let s=QD(n);if(s){n=s;break}n=i.pop()}return this.buf.join("")}startElement(t){const n=S_(t).toLowerCase();if(!nf.hasOwnProperty(n))return this.sanitizedSomething=!0,!KD.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let i=0;i<r.length;i++){const s=r.item(i),a=s.name,d=a.toLowerCase();if(!M_.hasOwnProperty(d)){this.sanitizedSomething=!0;continue}let h=s.value;rf[d]&&(e=h,h=(e=String(e)).match(XD)?e:"unsafe:"+e),this.buf.push(" ",a,'="',O_(h),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=S_(t).toLowerCase();nf.hasOwnProperty(n)&&!E_.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(O_(t))}}function QD(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw I_(t);return t}function ZD(e){const t=e.firstChild;if(t&&function YD(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw I_(t);return t}function S_(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function I_(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const JD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eT=/([^\#-~ |!])/g;function O_(e){return e.replace(/&/g,"&").replace(JD,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(eT,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Fu;function sf(e){return"content"in e&&function nT(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var La=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(La||{});function P_(e){const t=function Zl(){const e=Be();return e&&e[xo].sanitizer}();return t?y_(t.sanitize(La.HTML,e)||""):function Yl(e,t){const n=function $D(e){return e instanceof w_&&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 ${bs})`)}return n===t}(e,"HTML")?y_(ms(e)):function tT(e,t){let n=null;try{Fu=Fu||function b_(e){const t=new zD(e);return function WD(){try{return!!(new window.DOMParser).parseFromString(ka(""),"text/html")}catch{return!1}}()?new GD(t):t}(e);let r=t?String(t):"";n=Fu.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=Fu.getInertBodyElement(r)}while(r!==s);return ka((new qD).sanitizeChildren(sf(n)||n))}finally{if(n){const r=sf(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}(gs(),cn(e))}const cT=/^>|^->|<!--|-->|--!>|<!-$/g,uT=/(<|>)/g,dT="\u200b$1\u200b";function L_(e){return e.ownerDocument.defaultView}var Vu=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Vu||{});let cf;function uf(e,t){return cf(e,t)}function Ba(e,t,n,r,i){if(null!=r){let s,a=!1;Ci(r)?s=r:ti(r)&&(a=!0,r=r[Mr]);const d=Yn(r);0===e&&null!==n?null==i?W_(t,n,d):Ys(t,n,d,i||null,!0):1===e&&null!==n?Ys(t,n,d,i||null,!0):2===e?function ec(e,t,n){e.removeChild(null,t,n)}(t,d,a):3===e&&t.destroyNode(d),null!=s&&function PT(e,t,n,r,i){const s=n[Ao];s!==Yn(n)&&Ba(t,e,r,s,i);for(let d=Ur;d<n.length;d++){const h=n[d];Uu(h[pt],h,e,t,r,s)}}(t,e,s,n,i)}}function hf(e,t){return e.createComment(function N_(e){return e.replace(cT,t=>t.replace(uT,dT))}(t))}function Bu(e,t,n){return e.createElement(t,n)}function $_(e,t){t[xo].changeDetectionScheduler?.notify(9),Uu(e,t,t[hn],2,null,null)}function G_(e,t){const n=e[Ia],r=t[Jr];(ti(r)||t[Sr]!==r[Jr][Sr])&&(e[Qt]|=iu.HasTransplantedViews),null===n?e[Ia]=[t]:n.push(t)}function ff(e,t){const n=e[Ia],r=n.indexOf(t);n.splice(r,1)}function Jl(e,t){if(e.length<=Ur)return;const n=Ur+t,r=e[n];if(r){const i=r[Hs];null!==i&&i!==e&&ff(i,r),t>0&&(e[n-1][Eo]=r[Eo]);const s=Tl(e,Ur+t);!function bT(e,t){$_(e,t),t[Mr]=null,t[hi]=null}(r[pt],r);const a=s[es];null!==a&&a.detachView(s[pt]),r[Jr]=null,r[Eo]=null,r[Qt]&=-129}return r}function ju(e,t){if(!(256&t[Qt])){const n=t[hn];n.destroyNode&&Uu(e,t,n,3,null,null),function DT(e){let t=e[Pl];if(!t)return pf(e[pt],e);for(;t;){let n=null;if(ti(t))n=t[Pl];else{const r=t[Ur];r&&(n=r)}if(!n){for(;t&&!t[Eo]&&t!==e;)ti(t)&&pf(t[pt],t),t=t[Jr];null===t&&(t=e),ti(t)&&pf(t[pt],t),n=t&&t[Eo]}t=n}}(t)}}function pf(e,t){if(256&t[Qt])return;const n=ie(null);try{t[Qt]&=-129,t[Qt]|=256,t[ho]&&Et(t[ho]),function ST(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const i=t[n[r]];if(!(i instanceof Ll)){const s=n[r+1];if(Array.isArray(s))for(let a=0;a<s.length;a+=2){const d=i[s[a]],h=s[a+1];No(4,d,h);try{h.call(d)}finally{No(5,d,h)}}else{No(4,i,s);try{s.call(i)}finally{No(5,i,s)}}}}}(e,t),function MT(e,t){const n=e.cleanup,r=t[Da];if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else n[s].call(r[n[s+1]]);null!==r&&(t[Da]=null);const i=t[ps];if(null!==i){t[ps]=null;for(let s=0;s<i.length;s++)(0,i[s])()}}(e,t),1===t[pt].type&&t[hn].destroy();const r=t[Hs];if(null!==r&&Ci(t[Jr])){r!==t[Jr]&&ff(r,t);const i=t[es];null!==i&&i.detachView(e)}Bh(t)}finally{ie(n)}}function gf(e,t,n){return function z_(e,t,n){let r=t;for(;null!==r&&168&r.type;)r=(t=r).parent;if(null===r)return n[Mr];{const{componentOffset:i}=r;if(i>-1){const{encapsulation:s}=e.data[r.directiveStart+i];if(s===Qo.None||s===Qo.Emulated)return null}return Ai(r,n)}}(e,t.parent,n)}function Ys(e,t,n,r,i){e.insertBefore(t,n,r,i)}function W_(e,t,n){e.appendChild(t,n)}function X_(e,t,n,r,i){null!==r?Ys(e,t,n,r,i):W_(e,t,n)}function mf(e,t){return e.parentNode(t)}function K_(e,t,n){return Y_(e,t,n)}let _f,Y_=function q_(e,t,n){return 40&e.type?Ai(e,n):null};function Hu(e,t,n,r){const i=gf(e,r,t),s=t[hn],d=K_(r.parent||t[hi],r,t);if(null!=i)if(Array.isArray(n))for(let h=0;h<n.length;h++)X_(s,i,n[h],d,!1);else X_(s,i,n,d,!1);void 0!==_f&&_f(s,r,t,n,i)}function Qs(e,t){if(null!==t){const n=t.type;if(3&n)return Ai(t,e);if(4&n)return yf(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Qs(e,r);{const i=e[t.index];return Ci(i)?yf(-1,i):Yn(i)}}if(128&n)return Qs(e,t.next);if(32&n)return uf(t,e)()||Yn(e[t.index]);{const r=Z_(e,t);return null!==r?Array.isArray(r)?r[0]:Qs(ts(e[Sr]),r):Qs(e,t.next)}}return null}function Z_(e,t){return null!==t?e[Sr][hi].projection[t.projection]:null}function yf(e,t){const n=Ur+e+1;if(n<t.length){const r=t[n],i=r[pt].firstChild;if(null!==i)return Qs(r,i)}return t[Ao]}function vf(e,t,n,r,i,s,a){for(;null!=n;){if(128===n.type){n=n.next;continue}const d=r[n.index],h=n.type;if(a&&0===t&&(d&&wi(Yn(d),r),n.flags|=2),32&~n.flags)if(8&h)vf(e,t,n.child,r,i,s,!1),Ba(t,e,i,d,s);else if(32&h){const v=uf(n,r);let S;for(;S=v();)Ba(t,e,i,S,s);Ba(t,e,i,d,s)}else 16&h?ey(e,t,r,n,i,s):Ba(t,e,i,d,s);n=a?n.projectionNext:n.next}}function Uu(e,t,n,r,i,s){vf(n,r,e.firstChild,t,i,s,!1)}function ey(e,t,n,r,i,s){const a=n[Sr],h=a[hi].projection[r.projection];if(Array.isArray(h))for(let v=0;v<h.length;v++)Ba(t,e,i,h[v],s);else{let v=h;const S=a[Jr];$l(r)&&(v.flags|=128),vf(e,t,v,S,i,s,!0)}}function ty(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function ny(e,t,n){const{mergedAttrs:r,classes:i,styles:s}=n;null!==r&&di(e,t,r),null!==i&&ty(e,t,i),null!==s&&function AT(e,t,n){e.setAttribute(t,"style",n)}(e,t,s)}const wn={};function ry(e=1){iy(On(),Be(),fi()+e,!1)}function iy(e,t,n,r){if(!r)if(3&~t[Qt]){const s=e.preOrderHooks;null!==s&&fu(t,s,0,n)}else{const s=e.preOrderCheckHooks;null!==s&&hu(t,s,n)}zs(n)}function ja(e,t=Nn.Default){const n=Be();return null===n?Cn(e,t):Cm(rr(),n,qt(e),t)}function oy(e,t,n,r,i,s){const a=ie(null);try{let d=null;i&co.SignalBased&&(d=t[r][J]),null!==d&&void 0!==d.transformFn&&(s=d.transformFn(s)),i&co.HasDecoratorInputTransform&&(s=e.inputTransforms[r].call(t,s)),null!==e.setInput?e.setInput(t,d,s,n,r):Bg(t,d,r,s)}finally{ie(a)}}function $u(e,t,n,r,i,s,a,d,h,v,S){const B=t.blueprint.slice();return B[Mr]=i,B[Qt]=204|r,(null!==v||e&&2048&e[Qt])&&(B[Qt]|=2048),zg(B),B[Jr]=B[Ta]=e,B[_r]=n,B[xo]=a||e&&e[xo],B[hn]=d||e&&e[hn],B[ei]=h||e&&e[ei]||null,B[hi]=s,B[Sa]=function iD(){return rD++}(),B[xi]=S,B[Rg]=v,B[Sr]=2==t.type?e[Sr]:B,B}function Zs(e,t,n,r,i){let s=e.data[t];if(null===s)s=function Cf(e,t,n,r,i){const s=Zg(),a=gh(),h=e.data[t]=function HT(e,t,n,r,i,s){let a=t?t.injectorIndex:-1,d=0;return Gs()&&(d|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:d,providerIndexes:0,value:i,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev: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,a?s:s&&s.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=h),null!==s&&(a?null==s.child&&null!==h.parent&&(s.child=h):null===s.next&&(s.next=h,h.prev=s)),h}(e,t,n,r,i),function dE(){return fn.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=n,s.value=r,s.attrs=i;const a=function Fl(){const e=fn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();s.injectorIndex=null===a?-1:a.injectorIndex}return To(s,!0),s}function tc(e,t,n,r){if(0===n)return-1;const i=t.length;for(let s=0;s<n;s++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function sy(e,t,n,r,i){const s=fi(),a=2&r;try{zs(-1),a&&t.length>Ut&&iy(e,t,Ut,!1),No(a?2:0,i),n(r,i)}finally{zs(s),No(a?3:1,i)}}function wf(e,t,n){if(oh(t)){const r=ie(null);try{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)}}finally{ie(r)}}}function bf(e,t,n){qg()&&(function KT(e,t,n,r){const i=n.directiveStart,s=n.directiveEnd;Us(n)&&function tM(e,t,n){const r=Ai(t,e),i=ay(n);let a=16;n.signals?a=4096:n.onPush&&(a=64);const d=Gu(e,$u(e,i,null,a,r,t,null,e[xo].rendererFactory.createRenderer(r,n),null,null,null));e[t.index]=d}(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||gu(n,t),wi(r,t);const a=n.initialInputs;for(let d=i;d<s;d++){const h=e.data[d],v=Xs(t,e,d,n);wi(v,t),null!==a&&nM(0,d-i,v,h,0,a),Do(h)&&(qi(n.index,t)[_r]=Xs(t,e,d,n))}}(e,t,n,Ai(n,t)),!(64&~n.flags)&&hy(e,t,n))}function Ef(e,t,n=Ai){const r=t.localNames;if(null!==r){let i=t.index+1;for(let s=0;s<r.length;s+=2){const a=r[s+1],d=-1===a?n(t,e):e[a];e[i++]=d}}}function ay(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Df(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Df(e,t,n,r,i,s,a,d,h,v,S){const B=Ut+r,te=B+i,de=function FT(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:wn);return n}(B,te),we="function"==typeof v?v():v;return de[pt]={type:e,blueprint:de,template:n,queries:null,viewQuery:d,declTNode:t,data:de.slice().fill(null,B),bindingStartIndex:B,expandoStartIndex:te,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 s?s():s,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:h,consts:we,incompleteFirstPass:!1,ssrId:S}}let ly=()=>null;function cy(e,t,n,r,i){for(let s in t){if(!t.hasOwnProperty(s))continue;const a=t[s];if(void 0===a)continue;r??={};let d,h=co.None;Array.isArray(a)?(d=a[0],h=a[1]):d=a;let v=s;if(null!==i){if(!i.hasOwnProperty(s))continue;v=i[s]}0===e?uy(r,n,v,d,h):uy(r,n,v,d)}return r}function uy(e,t,n,r,i){let s;e.hasOwnProperty(n)?(s=e[n]).push(t,r):s=e[n]=[t,r],void 0!==i&&s.push(i)}function $i(e,t,n,r,i,s,a,d){const h=Ai(t,n);let S,v=t.inputs;!d&&null!=v&&(S=v[r])?(Of(e,n,S,r,i),Us(t)&&function GT(e,t){const n=qi(t,e);16&n[Qt]||(n[Qt]|=64)}(n,t.index)):3&t.type&&(r=function $T(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=a?a(i,t.value||"",r):i,s.setProperty(h,r,i))}function Tf(e,t,n,r){if(qg()){const i=null===r?null:{"":-1},s=function YT(e,t){const n=e.directiveRegistry;let r=null,i=null;if(n)for(let s=0;s<n.length;s++){const a=n[s];if(Kd(t,a.selectors,!1))if(r||(r=[]),Do(a))if(null!==a.findHostDirectiveDefs){const d=[];i=i||new Map,a.findHostDirectiveDefs(a,d,i),r.unshift(...d,a),Mf(e,t,d.length)}else r.unshift(a),Mf(e,t,0);else i=i||new Map,a.findHostDirectiveDefs?.(a,r,i),r.push(a)}return null===r?null:[r,i]}(e,n);let a,d;null===s?a=d=null:[a,d]=s,null!==a&&dy(e,t,n,a,i,d),i&&function QT(e,t,n){if(t){const r=e.localNames=[];for(let i=0;i<t.length;i+=2){const s=n[t[i+1]];if(null==s)throw new Ct(-301,!1);r.push(t[i],s)}}}(n,r,i)}n.mergedAttrs=Bs(n.mergedAttrs,n.attrs)}function dy(e,t,n,r,i,s){for(let v=0;v<r.length;v++)Ih(gu(n,t),e,r[v].type);!function JT(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let v=0;v<r.length;v++){const S=r[v];S.providersResolver&&S.providersResolver(S)}let a=!1,d=!1,h=tc(e,t,r.length,null);for(let v=0;v<r.length;v++){const S=r[v];n.mergedAttrs=Bs(n.mergedAttrs,S.hostAttrs),eM(e,n,t,h,S),ZT(h,S,i),null!==S.contentQueries&&(n.flags|=4),(null!==S.hostBindings||null!==S.hostAttrs||0!==S.hostVars)&&(n.flags|=64);const B=S.type.prototype;!a&&(B.ngOnChanges||B.ngOnInit||B.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),a=!0),!d&&(B.ngOnChanges||B.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),d=!0),h++}!function UT(e,t,n){const i=t.directiveEnd,s=e.data,a=t.attrs,d=[];let h=null,v=null;for(let S=t.directiveStart;S<i;S++){const B=s[S],te=n?n.get(B):null,we=te?te.outputs:null;h=cy(0,B.inputs,S,h,te?te.inputs:null),v=cy(1,B.outputs,S,v,we);const ze=null===h||null===a||Qc(t)?null:rM(h,S,a);d.push(ze)}null!==h&&(h.hasOwnProperty("class")&&(t.flags|=8),h.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=d,t.inputs=h,t.outputs=v}(e,n,s)}function hy(e,t,n){const r=n.directiveStart,i=n.directiveEnd,s=n.index,a=function fE(){return fn.lFrame.currentDirectiveIndex}();try{zs(s);for(let d=r;d<i;d++){const h=e.data[d],v=t[d];_h(d),(null!==h.hostBindings||0!==h.hostVars||null!==h.hostAttrs)&&qT(h,v)}}finally{zs(-1),_h(a)}}function qT(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Mf(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function ZT(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Do(t)&&(n[""]=e)}}function eM(e,t,n,r,i){e.data[r]=i;const s=i.factory||(i.factory=Yo(i.type)),a=new Ll(s,Do(i),ja);e.blueprint[r]=a,n[r]=a,function WT(e,t,n,r,i){const s=i.hostBindings;if(s){let a=e.hostBindingOpCodes;null===a&&(a=e.hostBindingOpCodes=[]);const d=~t.index;(function XT(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=d&&a.push(d),a.push(n,r,s)}}(e,t,r,tc(e,n,i.hostVars,wn),i)}function Lo(e,t,n,r,i,s){const a=Ai(e,t);!function Sf(e,t,n,r,i,s,a){if(null==s)e.removeAttribute(t,i,n);else{const d=null==a?cn(s):a(s,r||"",i);e.setAttribute(t,i,d,n)}}(t[hn],a,s,e.value,n,r,i)}function nM(e,t,n,r,i,s){const a=s[t];if(null!==a)for(let d=0;d<a.length;)oy(r,n,a[d++],a[d++],a[d++],a[d++])}function rM(e,t,n){let r=null,i=0;for(;i<n.length;){const s=n[i];if(0!==s)if(5!==s){if("number"==typeof s)break;if(e.hasOwnProperty(s)){null===r&&(r=[]);const a=e[s];for(let d=0;d<a.length;d+=3)if(a[d]===t){r.push(s,a[d+1],a[d+2],n[i+1]);break}}i+=2}else i+=2;else i+=4}return r}function fy(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function py(e,t){const n=e.contentQueries;if(null!==n){const r=ie(null);try{for(let i=0;i<n.length;i+=2){const a=n[i+1];if(-1!==a){const d=e.data[a];uu(n[i]),d.contentQueries(2,t[a],a)}}}finally{ie(r)}}}function Gu(e,t){return e[Pl]?e[Ng][Eo]=t:e[Pl]=t,e[Ng]=t,t}function If(e,t,n){uu(0);const r=ie(null);try{t(e,n)}finally{ie(r)}}function gy(e){return e[Da]??=[]}function my(e){return e.cleanup??=[]}function zu(e,t){const n=e[ei],r=n?n.get(is,null):null;r&&r.handleError(t)}function Of(e,t,n,r,i){for(let s=0;s<n.length;){const a=n[s++],d=n[s++],h=n[s++];oy(e.data[a],t[a],r,d,h,i)}}function ss(e,t,n){const r=Nl(t,e);!function U_(e,t,n){e.setValue(t,n)}(e[hn],r,n)}function iM(e,t){const n=qi(t,e),r=n[pt];!function oM(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const i=n[Mr];null!==i&&null===n[xi]&&(n[xi]=Kh(i,n[ei])),Pf(r,n,n[_r])}function Pf(e,t,n){Ch(t);try{const r=e.viewQuery;null!==r&&If(1,r,n);const i=e.template;null!==i&&sy(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[es]?.finishViewCreation(e),e.staticContentQueries&&py(e,t),e.staticViewQueries&&If(2,e.viewQuery,n);const s=e.components;null!==s&&function sM(e,t){for(let n=0;n<t.length;n++)iM(e,t[n])}(t,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[Qt]&=-5,wh()}}function Ha(e,t,n,r){const i=ie(null);try{const s=t.tView,h=$u(e,s,n,4096&e[Qt]?4096:16,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);h[Hs]=e[t.index];const S=e[es];return null!==S&&(h[es]=S.createEmbeddedView(s)),Pf(s,h,n),h}finally{ie(i)}}function yy(e,t){const n=Ur+t;if(n<e.length)return e[n]}function Js(e,t){return!t||null===t.firstChild||$l(e)}function Ua(e,t,n,r=!0){const i=t[pt];if(function TT(e,t,n,r){const i=Ur+r,s=n.length;r>0&&(n[i-1][Eo]=t),r<s-Ur?(t[Eo]=n[i],Gd(n,Ur+r,t)):(n.push(t),t[Eo]=null),t[Jr]=n;const a=t[Hs];null!==a&&n!==a&&G_(a,t);const d=t[es];null!==d&&d.insertView(e),hh(t),t[Qt]|=128}(i,t,e,n),r){const a=yf(n,e),d=t[hn],h=mf(d,e[Ao]);null!==h&&function ET(e,t,n,r,i,s){r[Mr]=i,r[hi]=t,Uu(e,r,n,1,i,s)}(i,e[hi],d,t,h,a)}const s=t[xi];null!==s&&null!==s.firstChild&&(s.firstChild=null)}function xf(e,t){const n=Jl(e,t);return void 0!==n&&ju(n[pt],n),n}function nc(e,t,n,r,i=!1){for(;null!==n;){if(128===n.type){n=i?n.projectionNext:n.next;continue}const s=t[n.index];null!==s&&r.push(Yn(s)),Ci(s)&&vy(s,r);const a=n.type;if(8&a)nc(e,t,n.child,r);else if(32&a){const d=uf(n,t);let h;for(;h=d();)r.push(h)}else if(16&a){const d=Z_(t,n);if(Array.isArray(d))r.push(...d);else{const h=ts(t[Sr]);nc(h[pt],h,d,r,!0)}}n=i?n.projectionNext:n.next}return r}function vy(e,t){for(let n=Ur;n<e.length;n++){const r=e[n],i=r[pt].firstChild;null!==i&&nc(r[pt],r,i,t)}e[Ao]!==e[Mr]&&t.push(e[Ao])}let Cy=[];const uM={...X,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{au(e.lView)},consumerOnSignalRead(){this.lView[ho]=this}},hM={...X,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=ts(e.lView);for(;t&&!wy(t[pt]);)t=ts(t);t&&Wg(t)},consumerOnSignalRead(){this.lView[ho]=this}};function wy(e){return 2!==e.type}const fM=100;function Wu(e,t=!0,n=0){const r=e[xo],i=r.rendererFactory;i.begin?.();try{!function pM(e,t){const n=tm();try{nm(!0),Af(e,t);let r=0;for(;su(e);){if(r===fM)throw new Ct(103,!1);r++,Af(e,1)}}finally{nm(n)}}(e,n)}catch(a){throw t&&zu(e,a),a}finally{i.end?.(),r.inlineEffectRunner?.flush()}}function gM(e,t,n,r){const i=t[Qt];if(!(256&~i))return;t[xo].inlineEffectRunner?.flush(),Ch(t);let d=!0,h=null,v=null;wy(e)?(v=function aM(e){return e[ho]??function lM(e){const t=Cy.pop()??Object.create(uM);return t.lView=e,t}(e)}(t),h=lt(v)):null===function q(){return N}()?(d=!1,v=function dM(e){const t=e[ho]??Object.create(hM);return t.lView=e,t}(t),h=lt(v)):t[ho]&&(Et(t[ho]),t[ho]=null);try{zg(t),function rm(e){return fn.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&sy(e,t,n,2,r);const S=!(3&~i);if(S){const de=e.preOrderCheckHooks;null!==de&&hu(t,de,null)}else{const de=e.preOrderHooks;null!==de&&fu(t,de,0,null),bh(t,0)}if(function mM(e){for(let t=Ym(e);null!==t;t=Qm(t)){if(!(t[Qt]&iu.HasTransplantedViews))continue;const n=t[Ia];for(let r=0;r<n.length;r++)Wg(n[r])}}(t),Ey(t,0),null!==e.contentQueries&&py(e,t),S){const de=e.contentCheckHooks;null!==de&&hu(t,de)}else{const de=e.contentHooks;null!==de&&fu(t,de,1),bh(t,1)}!function RT(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const i=n[r];if(i<0)zs(~i);else{const s=i,a=n[++r],d=n[++r];hE(a,s),d(2,t[s])}}}finally{zs(-1)}}(e,t);const B=e.components;null!==B&&Ty(t,B,0);const te=e.viewQuery;if(null!==te&&If(2,te,r),S){const de=e.viewCheckHooks;null!==de&&hu(t,de)}else{const de=e.viewHooks;null!==de&&fu(t,de,2),bh(t,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[nu]){for(const de of t[nu])de();t[nu]=null}t[Qt]&=-73}catch(S){throw au(t),S}finally{null!==v&&(St(v,h),d&&function cM(e){e.lView[ho]!==e&&(e.lView=null,Cy.push(e))}(v)),wh()}}function Ey(e,t){for(let n=Ym(e);null!==n;n=Qm(n))for(let r=Ur;r<n.length;r++)Dy(n[r],t)}function _M(e,t,n){Dy(qi(t,e),n)}function Dy(e,t){dh(e)&&Af(e,t)}function Af(e,t){const r=e[pt],i=e[Qt],s=e[ho];let a=!!(0===t&&16&i);if(a||=!!(64&i&&0===t),a||=!!(1024&i),a||=!(!s?.dirty||!ht(s)),a||=!1,s&&(s.dirty=!1),e[Qt]&=-9217,a)gM(r,e,r.template,e[_r]);else if(8192&i){Ey(e,1);const d=r.components;null!==d&&Ty(e,d,1)}}function Ty(e,t,n){for(let r=0;r<t.length;r++)_M(e,t[r],n)}function rc(e,t){const n=tm()?64:1088;for(e[xo].changeDetectionScheduler?.notify(t);e;){e[Qt]|=n;const r=ts(e);if(Al(e)&&!r)return e;e=r}return null}class ic{get rootNodes(){const t=this._lView,n=t[pt];return nc(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[_r]}set context(t){this._lView[_r]=t}get destroyed(){return!(256&~this._lView[Qt])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[Jr];if(Ci(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(Jl(t,r),Tl(n,r))}this._attachedToViewContainer=!1}ju(this._lView[pt],this._lView)}onDestroy(t){lu(this._lView,t)}markForCheck(){rc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Qt]&=-129}reattach(){hh(this._lView),this._lView[Qt]|=128}detectChanges(){this._lView[Qt]|=1024,Wu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ct(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=Al(this._lView),n=this._lView[Hs];null!==n&&!t&&ff(n,this._lView),$_(this._lView[pt],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Ct(902,!1);this._appRef=t;const n=Al(this._lView),r=this._lView[Hs];null!==r&&!n&&G_(r,this._lView),hh(this._lView)}}let oc=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=CM}return e})();const yM=oc,vM=class extends yM{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const i=Ha(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new ic(i)}};function CM(){return Xu(rr(),Be())}function Xu(e,t){return 4&e.type?new vM(t,e,Aa(e,t)):null}let Wy=()=>null;function ta(e,t){return Wy(e,t)}class Ga{}const fc=new ln("",{providedIn:"root",factory:()=>!1}),Xy=new ln(""),$f=new ln("");class hS{}class Ky{}class pS{resolveComponentFactory(t){throw function fS(e){const t=Error(`No component factory found for ${Dr(e)}.`);return t.ngComponent=e,t}(t)}}class pc{static#e=this.NULL=new pS}class Gf{}let gS=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function mS(){const e=Be(),n=qi(rr().index,e);return(ti(n)?n:e)[hn]}()}return e})(),_S=(()=>{class e{static#e=this.\u0275prov=_({token:e,providedIn:"root",factory:()=>null})}return e})();function ed(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,s=0;if(null!==t)for(let a=0;a<t.length;a++){const d=t[a];"number"==typeof d?s=d:1==s?i=Xi(i,d):2==s&&(r=Xi(r,d+": "+t[++a]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}class Zy extends pc{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=In(t);return new _c(n,this.ngModule)}}function Jy(e,t){const n=[];for(const r in e){if(!e.hasOwnProperty(r))continue;const i=e[r];if(void 0===i)continue;const s=Array.isArray(i),a=s?i[0]:i;n.push(t?{propName:a,templateName:r,isSignal:!!((s?i[1]:co.None)&co.SignalBased)}:{propName:a,templateName:r})}return n}class _c extends Ky{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=Jy(t.inputs,!0);if(null!==n)for(const i of r)n.hasOwnProperty(i.propName)&&(i.transform=n[i.propName]);return r}get outputs(){return Jy(this.componentDef.outputs,!1)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Qd(e){return e.map(Og).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){const s=ie(null);try{let a=(i=i||this.ngModule)instanceof Ii?i:i?.injector;a&&null!==this.componentDef.getStandaloneInjector&&(a=this.componentDef.getStandaloneInjector(a)||a);const d=a?new Ws(t,a):t,h=d.get(Gf,null);if(null===h)throw new Ct(407,!1);const B={rendererFactory:h,sanitizer:d.get(_S,null),inlineEffectRunner:null,changeDetectionScheduler:d.get(Ga,null)},te=h.createRenderer(null,this.componentDef),de=this.componentDef.selectors[0][0]||"div",we=r?function kT(e,t,n,r){const s=r.get(g_,!1)||n===Qo.ShadowDom,a=e.selectRootElement(t,s);return function LT(e){ly(e)}(a),a}(te,r,this.componentDef.encapsulation,d):Bu(te,de,function CS(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(de));let ze=512;this.componentDef.signals?ze|=4096:this.componentDef.onPush||(ze|=16);let gt=null;null!==we&&(gt=Kh(we,d,!0));const vt=Df(0,null,null,1,0,null,null,null,null,null,null),We=$u(null,vt,null,ze,null,null,B,te,d,null,gt);Ch(We);let vn,Hn,lr=null;try{const Wr=this.componentDef;let zi,pl=null;Wr.findHostDirectiveDefs?(zi=[],pl=new Map,Wr.findHostDirectiveDefs(Wr,zi,pl),zi.push(Wr)):zi=[Wr];const B0=function bS(e,t){const n=e[pt],r=Ut;return e[r]=t,Zs(n,r,2,"#host",null)}(We,we);lr=function ES(e,t,n,r,i,s,a){const d=i[pt];!function DS(e,t,n,r){for(const i of e)t.mergedAttrs=Bs(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(ed(t,t.mergedAttrs,!0),null!==n&&ny(r,n,t))}(r,e,t,a);let h=null;null!==t&&(h=Kh(t,i[ei]));const v=s.rendererFactory.createRenderer(t,n);let S=16;n.signals?S=4096:n.onPush&&(S=64);const B=$u(i,ay(n),null,S,i[e.index],e,s,v,null,null,h);return d.firstCreatePass&&Mf(d,e,r.length-1),Gu(i,B),i[e.index]=B}(B0,we,Wr,zi,We,B,te),Hn=Rl(vt,Ut),we&&function MS(e,t,n,r){if(r)di(e,n,["ng-version","18.2.5"]);else{const{attrs:i,classes:s}=function Pg(e){const t=[],n=[];let r=1,i=2;for(;r<e.length;){let s=e[r];if("string"==typeof s)2===i?""!==s&&t.push(s,e[++r]):8===i&&n.push(s);else{if(!uo(i))break;i=s}r++}return{attrs:t,classes:n}}(t.selectors[0]);i&&di(e,n,i),s&&s.length>0&&ty(e,n,s.join(" "))}}(te,Wr,we,r),void 0!==n&&function SS(e,t,n){const r=e.projection=[];for(let i=0;i<t.length;i++){const s=n[i];r.push(null!=s?Array.from(s):null)}}(Hn,this.ngContentSelectors,n),vn=function TS(e,t,n,r,i,s){const a=rr(),d=i[pt],h=Ai(a,i);dy(d,i,a,n,null,r);for(let S=0;S<n.length;S++)wi(Xs(i,d,a.directiveStart+S,a),i);hy(d,i,a),h&&wi(h,i);const v=Xs(i,d,a.directiveStart+a.componentOffset,a);if(e[_r]=i[_r]=v,null!==s)for(const S of s)S(v,t);return wf(d,a,i),v}(lr,Wr,zi,pl,We,[IS]),Pf(vt,We,null)}catch(Wr){throw null!==lr&&Bh(lr),Bh(We),Wr}finally{wh()}return new wS(this.componentType,vn,Aa(Hn,We),We,Hn)}finally{ie(s)}}}class wS extends hS{constructor(t,n,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new ic(i,void 0,!1),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let i;if(null!==r&&(i=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const s=this._rootLView;Of(s[pt],s,i,t,n),this.previousInputValues.set(t,n),rc(qi(this._tNode.index,s),1)}}get injector(){return new ni(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function IS(){const e=rr();du(Be()[pt],e)}let td=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=OS}return e})();function OS(){return nv(rr(),Be())}const PS=td,ev=class extends PS{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Aa(this._hostTNode,this._hostLView)}get injector(){return new ni(this._hostTNode,this._hostLView)}get parentInjector(){const t=mu(this._hostTNode,this._hostLView);if(Th(t)){const n=Bl(t,this._hostLView),r=Vl(t);return new ni(n[pt].data[r+8],n)}return new ni(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=tv(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Ur}createEmbeddedView(t,n,r){let i,s;"number"==typeof r?i=r:null!=r&&(i=r.index,s=r.injector);const a=ta(this._lContainer,t.ssrId),d=t.createEmbeddedViewImpl(n||{},s,a);return this.insertImpl(d,i,Js(this._hostTNode,a)),d}createComponent(t,n,r,i,s){const a=t&&!function Jo(e){return"function"==typeof e}(t);let d;if(a)d=n;else{const we=n||{};d=we.index,r=we.injector,i=we.projectableNodes,s=we.environmentInjector||we.ngModuleRef}const h=a?t:new _c(In(t)),v=r||this.parentInjector;if(!s&&null==h.ngModule){const ze=(a?v:this.parentInjector).get(Ii,null);ze&&(s=ze)}const S=In(h.componentType??{}),B=ta(this._lContainer,S?.id??null),de=h.create(v,i,B?.firstChild??null,s);return this.insertImpl(de.hostView,d,Js(this._hostTNode,B)),de}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const i=t._lView;if(function nE(e){return Ci(e[Jr])}(i)){const d=this.indexOf(t);if(-1!==d)this.detach(d);else{const h=i[Jr],v=new ev(h,h[hi],h[Jr]);v.detach(v.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;return Ua(a,i,s,r),t.attachToViewContainerRef(),Gd(Xf(a),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=tv(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Jl(this._lContainer,n);r&&(Tl(Xf(this._lContainer),n),ju(r[pt],r))}detach(t){const n=this._adjustIndex(t,-1),r=Jl(this._lContainer,n);return r&&null!=Tl(Xf(this._lContainer),n)?new ic(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function tv(e){return e[8]}function Xf(e){return e[8]||(e[8]=[])}function nv(e,t){let n;const r=t[e.index];return Ci(r)?n=r:(n=fy(r,t,null,e),t[e.index]=n,Gu(t,n)),rv(n,t,e,r),new ev(n,e,t)}let rv=function ov(e,t,n,r){if(e[Ao])return;let i;i=8&n.type?Yn(r):function xS(e,t){const n=e[hn],r=n.createComment(""),i=Ai(t,e);return Ys(n,mf(n,i),r,function IT(e,t){return e.nextSibling(t)}(n,i),!1),r}(t,n),e[Ao]=i},Kf=()=>!1;class qf{constructor(t){this.queryList=t,this.matches=null}clone(){return new qf(this.queryList)}setDirty(){this.queryList.setDirty()}}class Yf{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[];for(let s=0;s<r;s++){const a=n.getByIndex(s);i.push(this.queries[a.indexInDeclarationView].clone())}return new Yf(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==tp(t,n).matches&&this.queries[n].setDirty()}}class sv{constructor(t,n,r=null){this.flags=n,this.read=r,this.predicate="string"==typeof t?function BS(e){return e.split(",").map(t=>t.trim())}(t):t}}class Qf{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].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 r=0;r<this.length;r++){const i=null!==n?n.length:0,s=this.getByIndex(r).embeddedTView(t,i);s&&(s.indexInDeclarationView=r,null!==n?n.push(s):n=[s])}return null!==n?new Qf(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Zf{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 Zf(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1&~this.metadata.flags){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const s=r[i];this.matchTNodeWithReadOption(t,n,FS(n,s)),this.matchTNodeWithReadOption(t,n,_u(n,t,s,!1,!1))}else r===oc?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,_u(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===Hl||i===td||i===oc&&4&n.type)this.addMatch(n.index,-2);else{const s=_u(n,t,i,!1,!1);null!==s&&this.addMatch(n.index,s)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function FS(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function LS(e,t,n,r){return-1===n?function kS(e,t){return 11&e.type?Aa(e,t):4&e.type?Xu(e,t):null}(t,e):-2===n?function VS(e,t,n){return n===Hl?Aa(t,e):n===oc?Xu(t,e):n===td?nv(t,e):void 0}(e,t,r):Xs(e,e[pt],n,t)}function av(e,t,n,r){const i=t[es].queries[r];if(null===i.matches){const s=e.data,a=n.matches,d=[];for(let h=0;null!==a&&h<a.length;h+=2){const v=a[h];d.push(v<0?null:LS(t,s[v],a[h+1],n.metadata.read))}i.matches=d}return i.matches}function Jf(e,t,n,r){const i=e.queries.getByIndex(n),s=i.matches;if(null!==s){const a=av(e,t,i,n);for(let d=0;d<s.length;d+=2){const h=s[d];if(h>0)r.push(a[d/2]);else{const v=s[d+1],S=t[-h];for(let B=Ur;B<S.length;B++){const te=S[B];te[Hs]===te[Jr]&&Jf(te[pt],te,v,r)}if(null!==S[Ia]){const B=S[Ia];for(let te=0;te<B.length;te++){const de=B[te];Jf(de[pt],de,v,r)}}}}}return r}function lv(e,t,n){const r=new kh(!(4&~n));return function jT(e,t,n,r){const i=gy(t);i.push(n),e.firstCreatePass&&my(e).push(r,i.length-1)}(e,t,r,r.destroy),(t[es]??=new Yf).queries.push(new qf(r))-1}function dv(e,t,n){null===e.queries&&(e.queries=new Qf),e.queries.track(new Zf(t,n))}function tp(e,t){return e.queries.getByIndex(t)}function hv(e,t){const n=e[pt],r=tp(n,t);return r.crossesNgTemplate?Jf(n,e,t,[]):av(n,e,r,t)}const fv=new Set;function Ri(e){fv.has(e)||(fv.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function gv(e,t){Ri("NgSignals");const n=function Ot(e){const t=Object.create(ir);t.value=e;const n=()=>(Z(t),t.value);return n[J]=t,n}(e),r=n[J];return t?.equal&&(r.equal=t.equal),n.set=i=>tn(r,i),n.update=i=>function pn(e,t){Ke()||Ye(),tn(e,t(e.value))}(r,i),n.asReadonly=mv.bind(n),n}function mv(){const e=this[J];if(void 0===e.readonlyFn){const t=()=>this();t[J]=e,e.readonlyFn=t}return e.readonlyFn}function _v(e){return function pv(e){return"function"==typeof e&&void 0!==e[J]}(e)&&"function"==typeof e.set}function rp(e){let t=function Iv(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let i;if(Do(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Ct(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);const a=e;a.inputs=rd(e.inputs),a.inputTransforms=rd(e.inputTransforms),a.declaredInputs=rd(e.declaredInputs),a.outputs=rd(e.outputs);const d=i.hostBindings;d&&eI(e,d);const h=i.viewQuery,v=i.contentQueries;if(h&&ZS(e,h),v&&JS(e,v),YS(e,i),Ds(e.outputs,i.outputs),Do(i)&&i.data.animation){const S=e.data;S.animation=(S.animation||[]).concat(i.data.animation)}}const s=i.features;if(s)for(let a=0;a<s.length;a++){const d=s[a];d&&d.ngInherit&&d(e),d===rp&&(n=!1)}}t=Object.getPrototypeOf(t)}!function QS(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Bs(i.hostAttrs,n=Bs(n,i.hostAttrs))}}(r)}function YS(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const r=t.inputs[n];if(void 0!==r&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const i=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(i))continue;e.inputTransforms??={},e.inputTransforms[i]=t.inputTransforms[i]}}}function rd(e){return e===yo?{}:e===$n?[]:e}function ZS(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function JS(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,s)=>{t(r,i,s),n(r,i,s)}:t}function eI(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}function Av(e){const t=e.inputConfig,n={};for(const r in t)if(t.hasOwnProperty(r)){const i=t[r];Array.isArray(i)&&i[3]&&(n[r]=i[3])}e.inputTransforms=n}class ra{}class sI{}function aI(e,t){return new ip(e,t??null,[])}class ip extends ra{constructor(t,n,r,i=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Zy(this);const s=function p(e,t){const n=e[Hc]||null;if(!n&&!0===t)throw new Error(`Type ${Dr(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function Yi(e){return e instanceof Function?e():e}(s.bootstrap),this._r3Injector=xm(t,n,[{provide:ra,useValue:this},{provide:pc,useValue:this.componentFactoryResolver},...r],Dr(t),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class op extends sI{constructor(t){super(),this.moduleType=t}create(t){return new ip(this.moduleType,t,[])}}class Nv extends ra{constructor(t){super(),this.componentFactoryResolver=new Zy(this),this.instance=null;const n=new ji([...t.providers,{provide:ra,useValue:this},{provide:pc,useValue:this.componentFactoryResolver}],t.parent||wo(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function id(e){return!!sp(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function sp(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Vo(e,t,n){return e[t]=n}function vc(e,t){return e[t]}function $r(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function ia(e,t,n,r){const i=$r(e,t,n);return $r(e,t+1,r)||i}function po(e,t,n,r,i,s){const a=ia(e,t,n,r);return ia(e,t+2,i,s)||a}function Cc(e,t,n,r,i,s,a,d,h,v){const S=n+Ut,B=t.firstCreatePass?function fI(e,t,n,r,i,s,a,d,h){const v=t.consts,S=Zs(t,e,4,a||null,d||null);Tf(t,n,S,fo(v,h)),du(t,S);const B=S.tView=Df(2,S,r,i,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,v,null);return null!==t.queries&&(t.queries.template(t,S),B.queries=t.queries.embeddedTView(S)),S}(S,t,e,r,i,s,a,d,h):t.data[S];To(B,!1);const te=Fv(t,e,B,n);kl()&&Hu(t,e,te,B),wi(te,e);const de=fy(te,e,te,B);return e[S]=de,Gu(e,de),function iv(e,t,n){return Kf(e,t,n)}(de,B,e),ou(B)&&bf(t,e,B),null!=h&&Ef(e,B,v),B}function ap(e,t,n,r,i,s,a,d){const h=Be(),v=On();return Cc(h,v,e,t,n,r,i,fo(v.consts,s),a,d),ap}let Fv=function kv(e,t,n,r){return Ro(!0),t[hn].createComment("")};var Ka=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Ka||{});let Uv=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static#e=this.\u0275prov=_({token:e,providedIn:"root",factory:()=>new e})}return e})();class Ec{constructor(){this.ngZone=at(Ir),this.scheduler=at(Ga),this.errorHandler=at(is,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static#e=this.PHASES=[Ka.EarlyRead,Ka.Write,Ka.MixedReadWrite,Ka.Read];execute(){this.executing=!0;for(const t of Ec.PHASES)for(const n of this.sequences)if(!n.erroredOrDestroyed&&n.hooks[t])try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(const t of this.sequences)t.afterRun(),t.once&&this.sequences.delete(t);for(const t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static#t=this.\u0275prov=_({token:Ec,providedIn:"root",factory:()=>new Ec})}function vp(e,t,n,r){const i=Be();return $r(i,Mo(),t)&&(On(),Lo(yr(),i,e,t,n,r)),vp}function tl(e,t,n,r){return $r(e,Mo(),n)?t+cn(n)+r:wn}function nl(e,t,n,r,i,s){const d=ia(e,function ns(){return fn.lFrame.bindingIndex}(),n,i);return rs(2),d?t+cn(n)+r+cn(i)+s:wn}function dd(e,t){return e<<17|t<<2}function vs(e){return e>>17&32767}function Cp(e){return 2|e}function sa(e){return(131068&e)>>2}function wp(e,t){return-131069&e|t<<2}function bp(e){return 1|e}function mC(e,t,n,r){const i=e[n+1],s=null===t;let a=r?vs(i):sa(i),d=!1;for(;0!==a&&(!1===d||s);){const v=e[a+1];tO(e[a],t)&&(d=!0,e[a+1]=r?bp(v):Cp(v)),a=r?vs(v):sa(v)}d&&(e[n+1]=r?Cp(i):bp(i))}function tO(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&hs(e,t)>=0}const ri={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function _C(e){return e.substring(ri.key,ri.keyEnd)}function yC(e,t){const n=ri.textEnd;return n===t?-1:(t=ri.keyEnd=function oO(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,ri.key=t,n),cl(e,t,n))}function cl(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Ep(e,t,n){const r=Be();return $r(r,Mo(),t)&&$i(On(),yr(),r,e,t,r[hn],n,!1),Ep}function Dp(e,t,n,r,i){const a=i?"class":"style";Of(e,n,t.inputs[a],a,r)}function Tp(e,t,n){return So(e,t,n,!1),Tp}function Mp(e,t){return So(e,t,null,!0),Mp}function EC(e){Io(pO,jo,e,!0)}function jo(e,t){for(let n=function rO(e){return function CC(e){ri.key=0,ri.keyEnd=0,ri.value=0,ri.valueEnd=0,ri.textEnd=e.length}(e),yC(e,cl(e,0,ri.textEnd))}(t);n>=0;n=yC(t,n))Si(e,_C(t),!0)}function So(e,t,n,r){const i=Be(),s=On(),a=rs(2);s.firstUpdatePass&&TC(s,e,a,r),t!==wn&&$r(i,a,t)&&SC(s,s.data[fi()],i,i[hn],e,i[a+1]=function mO(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Dr(ms(e)))),e}(t,n),r,a)}function Io(e,t,n,r){const i=On(),s=rs(2);i.firstUpdatePass&&TC(i,null,s,r);const a=Be();if(n!==wn&&$r(a,s,n)){const d=i.data[fi()];if(OC(d,r)&&!DC(i,s)){let h=r?d.classesWithoutHost:d.stylesWithoutHost;null!==h&&(n=Xi(h,n||"")),Dp(i,d,a,n,r)}else!function gO(e,t,n,r,i,s,a,d){i===wn&&(i=$n);let h=0,v=0,S=0<i.length?i[0]:null,B=0<s.length?s[0]:null;for(;null!==S||null!==B;){const te=h<i.length?i[h+1]:void 0,de=v<s.length?s[v+1]:void 0;let ze,we=null;S===B?(h+=2,v+=2,te!==de&&(we=B,ze=de)):null===B||null!==S&&S<B?(h+=2,we=S):(v+=2,we=B,ze=de),null!==we&&SC(e,t,n,r,we,ze,a,d),S=h<i.length?i[h]:null,B=v<s.length?s[v]:null}}(i,d,a,a[hn],a[s+1],a[s+1]=function fO(e,t,n){if(null==n||""===n)return $n;const r=[],i=ms(n);if(Array.isArray(i))for(let s=0;s<i.length;s++)e(r,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&e(r,s,i[s]);else"string"==typeof i&&t(r,i);return r}(e,t,n),r,s)}}function DC(e,t){return t>=e.expandoStartIndex}function TC(e,t,n,r){const i=e.data;if(null===i[n+1]){const s=i[fi()],a=DC(e,n);OC(s,r)&&null===t&&!a&&(t=!1),t=function cO(e,t,n,r){const i=function yh(e){const t=fn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let s=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Tc(n=Sp(null,e,t,n,r),t.attrs,r),s=null);else{const a=t.directiveStylingLast;if(-1===a||e[a]!==i)if(n=Sp(i,e,t,n,r),null===s){let h=function uO(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==sa(r))return e[vs(r)]}(e,t,r);void 0!==h&&Array.isArray(h)&&(h=Sp(null,e,t,h[1],r),h=Tc(h,t.attrs,r),function dO(e,t,n,r){e[vs(n?t.classBindings:t.styleBindings)]=r}(e,t,r,h))}else s=function hO(e,t,n){let r;const i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++)r=Tc(r,e[s].hostAttrs,n);return Tc(r,t.attrs,n)}(e,t,r)}return void 0!==s&&(r?t.residualClasses=s:t.residualStyles=s),n}(i,s,t,r),function JI(e,t,n,r,i,s){let a=s?t.classBindings:t.styleBindings,d=vs(a),h=sa(a);e[r]=n;let S,v=!1;if(Array.isArray(n)?(S=n[1],(null===S||hs(n,S)>0)&&(v=!0)):S=n,i)if(0!==h){const te=vs(e[d+1]);e[r+1]=dd(te,d),0!==te&&(e[te+1]=wp(e[te+1],r)),e[d+1]=function QI(e,t){return 131071&e|t<<17}(e[d+1],r)}else e[r+1]=dd(d,0),0!==d&&(e[d+1]=wp(e[d+1],r)),d=r;else e[r+1]=dd(h,0),0===d?d=r:e[h+1]=wp(e[h+1],r),h=r;v&&(e[r+1]=Cp(e[r+1])),mC(e,S,r,!0),mC(e,S,r,!1),function eO(e,t,n,r,i){const s=i?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&hs(s,t)>=0&&(n[r+1]=bp(n[r+1]))}(t,S,e,r,s),a=dd(d,h),s?t.classBindings=a:t.styleBindings=a}(i,s,t,n,a,r)}}function Sp(e,t,n,r,i){let s=null;const a=n.directiveEnd;let d=n.directiveStylingLast;for(-1===d?d=n.directiveStart:d++;d<a&&(s=t[d],r=Tc(r,s.hostAttrs,i),s!==e);)d++;return null!==e&&(n.directiveStylingLast=d),r}function Tc(e,t,n){const r=n?1:2;let i=-1;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?i=a:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Si(e,a,!!n||t[++s]))}return void 0===e?null:e}function pO(e,t,n){const r=String(t);""!==r&&!r.includes(" ")&&Si(e,r,n)}function SC(e,t,n,r,i,s,a,d){if(!(3&t.type))return;const h=e.data,v=h[d+1],S=function ZI(e){return!(1&~e)}(v)?IC(h,t,n,i,sa(v),a):void 0;hd(S)||(hd(s)||function YI(e){return!(2&~e)}(v)&&(s=IC(h,null,n,i,d,a)),function xT(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let s=-1===r.indexOf("-")?void 0:Vu.DashCase;null==i?e.removeStyle(n,r,s):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=Vu.Important),e.setStyle(n,r,i,s))}}(r,a,Nl(fi(),n),i,s))}function IC(e,t,n,r,i,s){const a=null===t;let d;for(;i>0;){const h=e[i],v=Array.isArray(h),S=v?h[1]:h,B=null===S;let te=n[i+1];te===wn&&(te=B?$n:void 0);let de=B?wa(te,r):S===r?te:void 0;if(v&&!hd(de)&&(de=wa(h,r)),hd(de)&&(d=de,a))return d;const we=e[i+1];i=a?vs(we):sa(we)}if(null!==t){let h=s?t.residualClasses:t.residualStyles;null!=h&&(d=wa(h,r))}return d}function hd(e){return void 0!==e}function OC(e,t){return!!(e.flags&(t?8:16))}function PC(e,t,n){Io(Si,jo,tl(Be(),e,t,n),!0)}function xC(){return Be()[Sr][_r]}class TO{destroy(t){}updateValue(t,n){}swap(t,n){const r=Math.min(t,n),i=Math.max(t,n),s=this.detach(i);if(i-r>1){const a=this.detach(r);this.attach(r,s),this.attach(i,a)}else this.attach(r,s)}move(t,n){this.attach(n,this.detach(t))}}function Ip(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function Op(e,t,n,r){return!(void 0===t||!t.has(r)||(e.attach(n,t.get(r)),t.delete(r),0))}function AC(e,t,n,r,i){if(Op(e,t,r,n(r,i)))e.updateValue(r,i);else{const s=e.create(r,i);e.attach(r,s)}}function NC(e,t,n,r){const i=new Set;for(let s=t;s<=n;s++)i.add(r(s,e.at(s)));return i}class RC{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),void 0!==this._vMap){const i=this._vMap;for(;i.has(r);)r=i.get(r),t(r,n)}}}function FC(e,t){Ri("NgControlFlow");const n=Be(),r=Mo(),i=n[r]!==wn?n[r]:-1,s=-1!==i?fd(n,Ut+i):void 0;if($r(n,r,e)){const d=ie(null);try{if(void 0!==s&&xf(s,0),-1!==e){const h=Ut+e,v=fd(n,h),S=Pp(n[pt],h),B=ta(v,S.tView.ssrId);Ua(v,Ha(n,S,t,{dehydratedView:B}),0,Js(S,B))}}finally{ie(d)}}else if(void 0!==s){const d=yy(s,0);void 0!==d&&(d[_r]=t)}}class SO{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-Ur}}class PO{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}}function kC(e,t,n,r,i,s,a,d,h,v,S,B,te){Ri("NgControlFlow");const de=Be(),we=On(),ze=void 0!==h,gt=Be(),vt=d?a.bind(gt[Sr][_r]):a,We=new PO(ze,vt);gt[Ut+e]=We,Cc(de,we,e+1,t,n,r,i,fo(we.consts,s)),ze&&Cc(de,we,e+2,h,v,S,B,fo(we.consts,te))}class xO extends TO{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Ur}at(t){return this.getLView(t)[_r].$implicit}attach(t,n){const r=n[xi];this.needsIndexUpdate||=t!==this.length,Ua(this.lContainer,n,t,Js(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function AO(e,t){return Jl(e,t)}(this.lContainer,t)}create(t,n){const r=ta(this.lContainer,this.templateTNode.tView.ssrId),i=Ha(this.hostLView,this.templateTNode,new SO(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),i}destroy(t){ju(t[pt],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[_r].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[_r].$index=t}getLView(t){return function NO(e,t){return yy(e,t)}(this.lContainer,t)}}function LC(e){const t=ie(null),n=fi();try{const r=Be(),i=r[pt],s=r[n],a=n+1,d=fd(r,a);if(void 0===s.liveCollection){const v=Pp(i,a);s.liveCollection=new xO(d,r,v)}else s.liveCollection.reset();const h=s.liveCollection;if(function MO(e,t,n){let r,i,s=0,a=e.length-1;if(Array.isArray(t)){let h=t.length-1;for(;s<=a&&s<=h;){const v=e.at(s),S=t[s],B=Ip(s,v,s,S,n);if(0!==B){B<0&&e.updateValue(s,S),s++;continue}const te=e.at(a),de=t[h],we=Ip(a,te,h,de,n);if(0!==we){we<0&&e.updateValue(a,de),a--,h--;continue}const ze=n(s,v),gt=n(a,te),vt=n(s,S);if(Object.is(vt,gt)){const We=n(h,de);Object.is(We,ze)?(e.swap(s,a),e.updateValue(a,de),h--,a--):e.move(a,s),e.updateValue(s,S),s++}else if(r??=new RC,i??=NC(e,s,a,n),Op(e,r,s,vt))e.updateValue(s,S),s++,a++;else if(i.has(vt))r.set(ze,e.detach(s)),a--;else{const We=e.create(s,t[s]);e.attach(s,We),s++,a++}}for(;s<=h;)AC(e,r,n,s,t[s]),s++}else if(null!=t){const h=t[Symbol.iterator]();let v=h.next();for(;!v.done&&s<=a;){const S=e.at(s),B=v.value,te=Ip(s,S,s,B,n);if(0!==te)te<0&&e.updateValue(s,B),s++,v=h.next();else{r??=new RC,i??=NC(e,s,a,n);const de=n(s,B);if(Op(e,r,s,de))e.updateValue(s,B),s++,a++,v=h.next();else if(i.has(de)){const we=n(s,S);r.set(we,e.detach(s)),a--}else e.attach(s,e.create(s,B)),s++,a++,v=h.next()}}for(;!v.done;)AC(e,r,n,e.length,v.value),v=h.next()}for(;s<=a;)e.destroy(e.detach(a--));r?.forEach(h=>{e.destroy(h)})}(h,e,s.trackByFn),h.updateIndexes(),s.hasEmptyBlock){const v=Mo(),S=0===h.length;if($r(r,v,S)){const B=n+2,te=fd(r,B);if(S){const de=Pp(i,B),we=ta(te,de.tView.ssrId);Ua(te,Ha(r,de,void 0,{dehydratedView:we}),0,Js(de,we))}else xf(te,0)}}}finally{ie(t)}}function fd(e,t){return e[t]}function Pp(e,t){return Rl(e,t)}function pd(e,t,n,r){const i=Be(),s=On(),a=Ut+e,d=i[hn],h=s.firstCreatePass?function RO(e,t,n,r,i,s){const a=t.consts,h=Zs(t,e,2,r,fo(a,i));return Tf(t,n,h,fo(a,s)),null!==h.attrs&&ed(h,h.attrs,!1),null!==h.mergedAttrs&&ed(h,h.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,h),h}(a,s,i,t,n,r):s.data[a],v=VC(s,i,h,d,t,e);i[a]=v;const S=ou(h);return To(h,!0),ny(d,v,h),!function Wa(e){return!(32&~e.flags)}(h)&&kl()&&Hu(s,i,v,h),0===function rE(){return fn.lFrame.elementDepthCount}()&&wi(v,i),function iE(){fn.lFrame.elementDepthCount++}(),S&&(bf(s,i,h),wf(s,h,i)),null!==r&&Ef(i,h),pd}function gd(){let e=rr();gh()?mh():(e=e.parent,To(e,!1));const t=e;(function sE(e){return fn.skipHydrationRootTNode===e})(t)&&function uE(){fn.skipHydrationRootTNode=null}(),function oE(){fn.lFrame.elementDepthCount--}();const n=On();return n.firstCreatePass&&(du(n,e),oh(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function DE(e){return!!(8&e.flags)}(t)&&Dp(n,t,Be(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function TE(e){return!!(16&e.flags)}(t)&&Dp(n,t,Be(),t.stylesWithoutHost,!1),gd}function xp(e,t,n,r){return pd(e,t,n,r),gd(),xp}let VC=(e,t,n,r,i,s)=>(Ro(!0),Bu(r,i,function um(){return fn.lFrame.currentNamespace}()));function md(e,t,n){const r=Be(),i=On(),s=e+Ut,a=i.firstCreatePass?function LO(e,t,n,r,i){const s=t.consts,a=fo(s,r),d=Zs(t,e,8,"ng-container",a);return null!==a&&ed(d,a,!0),Tf(t,n,d,fo(s,i)),null!==t.queries&&t.queries.elementStart(t,d),d}(s,i,r,t,n):i.data[s];To(a,!0);const d=BC(i,r,a,e);return r[s]=d,kl()&&Hu(i,r,d,a),wi(d,r),ou(a)&&(bf(i,r,a),wf(i,a,r)),null!=n&&Ef(r,a),md}function _d(){let e=rr();const t=On();return gh()?mh():(e=e.parent,To(e,!1)),t.firstCreatePass&&(du(t,e),oh(e)&&t.queries.elementEnd(e)),_d}function Ap(e,t,n){return md(e,t,n),_d(),Ap}let BC=(e,t,n,r)=>(Ro(!0),hf(t[hn],""));function jC(){return Be()}const aa=void 0;var HO=["en",[["a","p"],["AM","PM"],aa],[["AM","PM"],aa,aa],[["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"]],aa,[["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"]],aa,[["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}",aa,"{1} 'at' {0}",aa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function jO(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let ul={};function Np(e){const t=function UO(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=GC(t);if(n)return n;const r=t.split("-")[0];if(n=GC(r),n)return n;if("en"===r)return HO;throw new Ct(701,!1)}function $C(e){return Np(e)[dl.PluralCase]}function GC(e){return e in ul||(ul[e]=gr.ng&&gr.ng.common&&gr.ng.common.locales&&gr.ng.common.locales[e]),ul[e]}var dl=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(dl||{});const yd="en-US";let zC=yd,cw=(e,t,n)=>{};function kp(e,t,n,r){const i=Be(),s=On(),a=rr();return Lp(s,i,i[hn],a,e,t,r),kp}function Lp(e,t,n,r,i,s,a){const d=ou(r),v=e.firstCreatePass&&my(e),S=t[_r],B=gy(t);let te=!0;if(3&r.type||a){const ze=Ai(r,t),gt=a?a(ze):ze,vt=B.length,We=a?Hn=>a(Yn(Hn[r.index])):r.index;let vn=null;if(!a&&d&&(vn=function x1(e,t,n,r){const i=e.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const a=i[s];if(a===n&&i[s+1]===r){const d=t[Da],h=i[s+2];return d.length>h?d[h]:null}"string"==typeof a&&(s+=2)}return null}(e,t,i,r.index)),null!==vn)(vn.__ngLastListenerFn__||vn).__ngNextListenerFn__=s,vn.__ngLastListenerFn__=s,te=!1;else{s=fw(r,t,S,s),cw(ze,i,s);const Hn=n.listen(gt,i,s);B.push(s,Hn),v&&v.push(i,We,vt,vt+1)}}else s=fw(r,t,S,s);const de=r.outputs;let we;if(te&&null!==de&&(we=de[i])){const ze=we.length;if(ze)for(let gt=0;gt<ze;gt+=2){const lr=t[we[gt]][we[gt+1]].subscribe(s),Wr=B.length;B.push(s,lr),v&&v.push(i,r.index,Wr,-(Wr+1))}}}function hw(e,t,n,r){const i=ie(null);try{return No(6,t,n),!1!==n(r)}catch(s){return zu(e,s),!1}finally{No(7,t,n),ie(i)}}function fw(e,t,n,r){return function i(s){if(s===Function)return r;rc(e.componentOffset>-1?qi(e.index,t):t,5);let d=hw(t,n,r,s),h=i.__ngNextListenerFn__;for(;h;)d=hw(t,n,h,s)&&d,h=h.__ngNextListenerFn__;return d}}function pw(e=1){return function gE(e){return(fn.lFrame.contextLView=function Xg(e,t){for(;e>0;)t=t[Ta],e--;return t}(e,fn.lFrame.contextLView))[_r]}(e)}function A1(e,t){let n=null;const r=function Mg(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let i=0;i<t.length;i++){const s=t[i];if("*"!==s){if(null===r?Kd(e,s,!0):Ig(r,s))return i}else n=i}return n}function gw(e){const t=Be()[Sr][hi];if(!t.projection){const r=t.projection=function Ml(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(e?e.length:1,null),i=r.slice();let s=t.child;for(;null!==s;){if(128!==s.type){const a=e?A1(s,e):0;null!==a&&(i[a]?i[a].projectionNext=s:r[a]=s,i[a]=s)}s=s.next}}}function mw(e,t=0,n,r,i,s){const a=Be(),d=On(),h=r?e+1:null;null!==h&&Cc(a,d,h,r,i,s,null,n);const v=Zs(d,Ut+e,16,null,n||null);null===v.projection&&(v.projection=t),mh();const B=!a[xi]||Gs();null===a[Sr][hi].projection[v.projection]&&null!==h?function N1(e,t,n){const r=Ut+n,i=t.data[r],s=e[r],a=ta(s,i.tView.ssrId);Ua(s,Ha(e,i,void 0,{dehydratedView:a}),0,Js(i,a))}(a,d,h):B&&32&~v.flags&&function OT(e,t,n){ey(t[hn],0,t,n,gf(e,n,t),K_(n.parent||t[hi],n,t))}(d,a,v)}function Vp(e,t,n){return Bp(e,"",t,"",n),Vp}function Bp(e,t,n,r,i){const s=Be(),a=tl(s,t,n,r);return a!==wn&&$i(On(),yr(),s,e,a,s[hn],i,!1),Bp}function Tw(e,t,n,r){!function uv(e,t,n,r){const i=On();if(i.firstCreatePass){const s=rr();dv(i,new sv(t,n,r),s.index),function jS(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(i,e),!(2&~n)&&(i.staticContentQueries=!0)}return lv(i,Be(),n)}(e,t,n,r)}function Mw(e,t,n){!function cv(e,t,n){const r=On();return r.firstCreatePass&&(dv(r,new sv(e,t,n),-1),!(2&~t)&&(r.staticViewQueries=!0)),lv(r,Be(),t)}(e,t,n)}function Sw(e){const t=Be(),n=On(),r=vh();uu(r+1);const i=tp(n,r);if(e.dirty&&function tE(e){return!(4&~e[Qt])}(t)===!(2&~i.metadata.flags)){if(null===i.matches)e.reset([]);else{const s=hv(t,r);e.reset(s,jm),e.notifyOnChanges()}return!0}return!1}function Iw(){return function ep(e,t){return e[es].queries[t].queryList}(Be(),vh())}function Ow(e){return $s(function Jg(){return fn.lFrame.contextLView}(),Ut+e)}function Bw(e,t=""){const n=Be(),r=On(),i=e+Ut,s=r.firstCreatePass?Zs(r,i,1,t,null):r.data[i],a=jw(r,n,s,t,e);n[i]=a,kl()&&Hu(r,n,a,s),To(s,!1)}let jw=(e,t,n,r,i)=>(Ro(!0),function df(e,t){return e.createText(t)}(t[hn],r));function Hp(e){return bd("",e,""),Hp}function bd(e,t,n){const r=Be(),i=tl(r,e,t,n);return i!==wn&&ss(r,fi(),i),bd}function Up(e,t,n,r,i){const s=Be(),a=nl(s,e,t,n,r,i);return a!==wn&&ss(s,fi(),a),Up}function $p(e,t,n){_v(t)&&(t=t());const r=Be();return $r(r,Mo(),t)&&$i(On(),yr(),r,e,t,r[hn],n,!1),$p}function Kw(e,t){const n=_v(e);return n&&e.set(t),n}function Gp(e,t){const n=Be(),r=On(),i=rr();return Lp(r,n,n[hn],i,e,t),Gp}function zp(e,t,n,r,i){if(e=qt(e),Array.isArray(e))for(let s=0;s<e.length;s++)zp(e[s],t,n,r,i);else{const s=On(),a=Be(),d=rr();let h=br(e)?e:qt(e.provide);const v=jt(e),S=1048575&d.providerIndexes,B=d.directiveStart,te=d.providerIndexes>>20;if(br(e)||!e.multi){const de=new Ll(v,i,ja),we=Xp(h,t,i?S:S+te,B);-1===we?(Ih(gu(d,a),s,h),Wp(s,e,t.length),t.push(h),d.directiveStart++,d.directiveEnd++,i&&(d.providerIndexes+=1048576),n.push(de),a.push(de)):(n[we]=de,a[we]=de)}else{const de=Xp(h,t,S+te,B),we=Xp(h,t,S,S+te),gt=we>=0&&n[we];if(i&&!gt||!i&&!(de>=0&&n[de])){Ih(gu(d,a),s,h);const vt=function J1(e,t,n,r,i){const s=new Ll(e,n,ja);return s.multi=[],s.index=t,s.componentProviders=0,Qw(s,i,r&&!n),s}(i?Z1:Q1,n.length,i,r,v);!i&>&&(n[we].providerFactory=vt),Wp(s,e,t.length,0),t.push(h),d.directiveStart++,d.directiveEnd++,i&&(d.providerIndexes+=1048576),n.push(vt),a.push(vt)}else Wp(s,e,de>-1?de:we,Qw(n[i?we:de],v,!i&&r));!i&&r&>&&n[we].componentProviders++}}}function Wp(e,t,n,r){const i=br(t),s=function fs(e){return!!e.useClass}(t);if(i||s){const h=(s?qt(t.useClass):t).prototype.ngOnDestroy;if(h){const v=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const S=v.indexOf(n);-1===S?v.push(n,[r,h]):v[S+1].push(r,h)}else v.push(n,h)}}}function Qw(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Xp(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function Q1(e,t,n,r){return Kp(this.multi,[])}function Z1(e,t,n,r){const i=this.multi;let s;if(this.providerFactory){const a=this.providerFactory.componentProviders,d=Xs(n,n[pt],this.providerFactory.index,r);s=d.slice(0,a),Kp(i,s);for(let h=a;h<d.length;h++)s.push(d[h])}else s=[],Kp(i,s);return s}function Kp(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Zw(e,t=[]){return n=>{n.providersResolver=(r,i)=>function Y1(e,t,n){const r=On();if(r.firstCreatePass){const i=Do(e);zp(n,r.data,r.blueprint,i,!0),zp(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}let eP=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=xt(0,n.type),i=r.length>0?function Rv(e,t,n=null){return new Nv({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=_({token:e,providedIn:"environment",factory:()=>new e(Cn(Ii))})}return e})();function Jw(e){Ri("NgStandalone"),e.getStandaloneInjector=t=>t.get(eP).getOrCreateStandaloneInjector(e)}function eb(e,t,n){const r=e.\u0275cmp;r.directiveDefs=ne(t,!1),r.pipeDefs=ne(n,!0)}function rb(e,t,n){const r=Ni()+e,i=Be();return i[r]===wn?Vo(i,r,n?t.call(n):t()):vc(i,r)}function ib(e,t,n,r){return cb(Be(),Ni(),e,t,n,r)}function ob(e,t,n,r,i){return function ub(e,t,n,r,i,s,a){const d=t+n;return ia(e,d,i,s)?Vo(e,d+2,a?r.call(a,i,s):r(i,s)):xc(e,d+2)}(Be(),Ni(),e,t,n,r,i)}function sb(e,t,n,r,i,s){return function db(e,t,n,r,i,s,a,d){const h=t+n;return function od(e,t,n,r,i){const s=ia(e,t,n,r);return $r(e,t+2,i)||s}(e,h,i,s,a)?Vo(e,h+3,d?r.call(d,i,s,a):r(i,s,a)):xc(e,h+3)}(Be(),Ni(),e,t,n,r,i,s)}function ab(e,t,n,r,i,s,a){return function hb(e,t,n,r,i,s,a,d,h){const v=t+n;return po(e,v,i,s,a,d)?Vo(e,v+4,h?r.call(h,i,s,a,d):r(i,s,a,d)):xc(e,v+4)}(Be(),Ni(),e,t,n,r,i,s,a)}function lb(e,t,n,r,i,s,a,d){const h=Ni()+e,v=Be(),S=po(v,h,n,r,i,s);return $r(v,h+4,a)||S?Vo(v,h+5,d?t.call(d,n,r,i,s,a):t(n,r,i,s,a)):vc(v,h+5)}function xc(e,t){const n=e[t];return n===wn?void 0:n}function cb(e,t,n,r,i,s){const a=t+n;return $r(e,a,i)?Vo(e,a+1,s?r.call(s,i):r(i)):xc(e,a+1)}function pb(e,t){const n=On();let r;const i=e+Ut;n.firstCreatePass?(r=function aP(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];const s=r.factory||(r.factory=Yo(r.type)),d=yi(ja);try{const h=pu(!1),v=s();return pu(h),function jp(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Be(),i,v),v}finally{yi(d)}}function gb(e,t,n){const r=e+Ut,i=Be(),s=$s(i,r);return function Ac(e,t){return e[pt].data[t].pure}(i,r)?cb(i,Ni(),t,s.transform,n,s):s.transform(n)}function mb(e,t){return Xu(e,t)}class Ab{constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}let Nb=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const Vb=new ln(""),Bb=new ln("");let eg,ix=(()=>{class e{constructor(n,r,i){this._ngZone=n,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,eg||(function ox(e){eg=e}(i),i.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ir.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},r)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:i})}whenStable(n,r,i){if(i&&!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,r,i),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,i){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(Cn(Ir),Cn(jb),Cn(Bb))};static#t=this.\u0275prov=_({token:e,factory:e.\u0275fac})}return e})(),jb=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}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,r=!0){return eg?.findTestabilityInTree(this,n,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function tg(e){return!!e&&"function"==typeof e.then}function Hb(e){return!!e&&"function"==typeof e.subscribe}const sx=new ln("");let Ub=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=at(sx,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const i of this.appInits){const s=i();if(tg(s))n.push(s);else if(Hb(s)){const a=new Promise((d,h)=>{s.subscribe({complete:d,error:h})});n.push(a)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ng=new ln("");function Gb(e,t){return Array.isArray(t)?t.reduce(Gb,e):{...e,...t}}let Ho=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=at(JE),this.afterRenderManager=at(Uv),this.zonelessEnabled=at(fc),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new or.B,this.afterTick=new or.B,this.componentTypes=[],this.components=[],this.isStable=at(Ks).hasPendingTasks.pipe((0,kn.T)(n=>!n)),this._injector=at(Ii)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){const i=n instanceof Ky;if(!this._injector.get(Ub).done)throw!i&&function l(e){const t=In(e)||m(e)||u(e);return null!==t&&t.standalone}(n),new Ct(405,!1);let a;a=i?n:this._injector.get(pc).resolveComponentFactory(n),this.componentTypes.push(a.componentType);const d=function ax(e){return e.isBoundToModule}(a)?void 0:this._injector.get(ra),v=a.create(pi.NULL,[],r||a.selector,d),S=v.location.nativeElement,B=v.injector.get(Vb,null);return B?.registerApplication(S),v.onDestroy(()=>{this.detachView(v.hostView),Sd(this.components,v),B?.unregisterApplication(S)}),this._loadComponent(v),v}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new Ct(101,!1);const n=ie(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,ie(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Gf,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;0!==this.dirtyFlags&&r++<10;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,7&this.dirtyFlags){const r=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(r);for(let{_lView:i,notifyErrorHandler:s}of this._views)ux(i,s,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),7&this.dirtyFlags)return}else n?.begin?.(),n?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:n})=>su(n))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Sd(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(ng,[]);[...this._bootstrapListeners,...r].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Sd(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Ct(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Sd(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function ux(e,t,n,r){(n||su(e))&&Wu(e,t,n&&!r?0:1)}let px=(()=>{class e{constructor(){this.zone=at(Ir),this.changeDetectionScheduler=at(Ga),this.applicationRef=at(Ho)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function rg({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Ir({...ig(),scheduleInRootZone:n}),[{provide:Ir,useFactory:e},{provide:vo,multi:!0,useFactory:()=>{const r=at(px,{optional:!0});return()=>r.initialize()}},{provide:vo,multi:!0,useFactory:()=>{const r=at(mx);return()=>{r.initialize()}}},!0===t?{provide:Xy,useValue:!0}:[],{provide:$f,useValue:n??Nm}]}function ig(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let mx=(()=>{class e{constructor(){this.subscription=new Rr.yU,this.initialized=!1,this.zone=at(Ir),this.pendingTasks=at(Ks)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ir.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ir.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Fc=(()=>{class e{constructor(){this.appRef=at(Ho),this.taskService=at(Ks),this.ngZone=at(Ir),this.zonelessEnabled=at(fc),this.disableScheduling=at(Xy,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Rr.yU,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(wu):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(at($f,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Fh||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&5===n)return;switch(n){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 7:this.appRef.deferredDirtyFlags|=8;break;default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?Fm:Rm;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(wu+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Fm(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const sg=new ln("",{providedIn:"root",factory:()=>at(sg,Nn.Optional|Nn.SkipSelf)||function _x(){return typeof $localize<"u"&&$localize.locale||yd}()}),yx=new ln("",{providedIn:"root",factory:()=>"USD"}),ag=new ln("");function Od(e){return!!e.platformInjector}let Qb=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=r?.scheduleInRootZone,a=r?.ignoreChangesOutsideZone,d=[rg({ngZoneFactory:()=>function ZE(e="zone.js",t){return"noop"===e?new Fh:"zone.js"===e?new Ir(t):e}(r?.ngZone,{...ig({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}),scheduleInRootZone:i}),ignoreChangesOutsideZone:a}),{provide:Ga,useExisting:Fc}],h=function lI(e,t,n){return new ip(e,t,n,!1)}(n.moduleType,this.injector,d);return function Yb(e){const t=Od(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Ir);return n.run(()=>{Od(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=t.get(is,null);let i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:s=>{r.handleError(s)}})}),Od(e)){const s=()=>t.destroy(),a=e.platformInjector.get(ag);a.add(s),t.onDestroy(()=>{i.unsubscribe(),a.delete(s)})}else e.moduleRef.onDestroy(()=>{Sd(e.allPlatformModules,e.moduleRef),i.unsubscribe()});return function cx(e,t,n){try{const r=n();return tg(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(r,n,()=>{const s=t.get(Ub);return s.runInitializers(),s.donePromise.then(()=>{if(function WO(e){"string"==typeof e&&(zC=e.toLowerCase().replace(/_/g,"-"))}(t.get(sg,yd)||yd),Od(e)){const d=t.get(Ho);return void 0!==e.rootComponent&&d.bootstrap(e.rootComponent),d}return function Ex(e,t){const n=e.injector.get(Ho);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Ct(-403,!1);e.instance.ngDoBootstrap(n)}t.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({moduleRef:h,allPlatformModules:this._modules})}bootstrapModule(n,r=[]){const i=Gb({},r);return function fx(e,t,n){const r=new op(n);return Promise.resolve(r)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,i))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ct(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(ag,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(Cn(pi))};static#t=this.\u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Cs=null;const Zb=new ln("");function Jb(e,t,n=[]){const r=`Platform: ${t}`,i=new ln(r);return(s=[])=>{let a=lg();if(!a||a.injector.get(Zb,!1)){const d=[...n,...s,{provide:i,useValue:!0}];e?e(d):function Dx(e){if(Cs&&!Cs.get(Zb,!1))throw new Ct(400,!1);(function $b(){!function $t(e){Te=e}(()=>{throw new Ct(600,!1)})})(),Cs=e;const t=e.get(Qb);(function t0(e){e.get(s_,null)?.forEach(n=>n())})(e)}(function e0(e=[],t){return pi.create({name:t,providers:[{provide:Bi,useValue:"platform"},{provide:ag,useValue:new Set([()=>Cs=null])},...e]})}(d,r))}return function Tx(){const t=lg();if(!t)throw new Ct(401,!1);return t}()}}function lg(){return Cs?.get(Qb)??null}function Sx(){return!1}function Ix(){}let r0=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=Ox}return e})();function Ox(e){return function Px(e,t,n){if(Us(e)&&!n){const r=qi(e.index,t);return new ic(r,r)}return 175&e.type?new ic(t[Sr],t):null}(rr(),Be(),!(16&~e))}class l0{constructor(){}supports(t){return id(t)}create(t){return new Fx(t)}}const Rx=(e,t)=>t;class Fx{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||Rx}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,s=null;for(;n||r;){const a=!r||n&&n.currentIndex<u0(r,i,s)?n:r,d=u0(a,i,s),h=a.currentIndex;if(a===r)i--,r=r._nextRemoved;else if(n=n._next,null==a.previousIndex)i++;else{s||(s=[]);const v=d-i,S=h-i;if(v!=S){for(let te=0;te<v;te++){const de=te<s.length?s[te]:s[te]=0,we=de+te;S<=we&&we<v&&(s[te]=de+1)}s[a.previousIndex]=S-v}}d!==h&&t(a,d,h)}}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=[]),!id(t))throw new Ct(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,s,a,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let d=0;d<this.length;d++)s=t[d],a=this._trackByFn(d,s),null!==n&&Object.is(n.trackById,a)?(r&&(n=this._verifyReinsertion(n,s,a,d)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,a,d),r=!0),n=n._next}else i=0,function dI(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,d=>{a=this._trackByFn(i,d),null!==n&&Object.is(n.trackById,a)?(r&&(n=this._verifyReinsertion(n,d,a,i)),Object.is(n.item,d)||this._addIdentityChange(n,d)):(n=this._mismatch(n,d,a,i),r=!0),n=n._next,i++}),this.length=i;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,r,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,i)):t=this._addAfter(new kx(n,r),s,i),t}_verifyReinsertion(t,n,r,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),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,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const i=null===n?this._itHead:n._next;return t._next=i,t._prev=n,null===i?this._itTail=t:i._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new c0),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._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 c0),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 kx{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 Lx{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 r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class c0{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new Lx,this.map.set(n,r)),r.add(t)}get(t,n){const i=this.map.get(t);return i?i.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 u0(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}class d0{constructor(){}supports(t){return t instanceof Map||sp(t)}create(){return new Vx}}class Vx{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||sp(t)))throw new Ct(900,!1)}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,(r,i)=>{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._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 i=this._records.get(t);this._maybeAddToChanges(i,n);const s=i._prev,a=i._next;return s&&(s._next=a),a&&(a._prev=s),i._next=null,i._prev=null,i}const r=new Bx(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_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(r=>n(t[r],r))}}class Bx{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 h0(){return new fg([new l0])}let fg=(()=>{class e{static#e=this.\u0275prov=_({token:e,providedIn:"root",factory:h0});constructor(n){this.factories=n}static create(n,r){if(null!=r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||h0()),deps:[[e,new lo,new Yr]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new Ct(901,!1)}}return e})();function f0(){return new pg([new d0])}let pg=(()=>{class e{static#e=this.\u0275prov=_({token:e,providedIn:"root",factory:f0});constructor(n){this.factories=n}static create(n,r){if(r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||f0()),deps:[[e,new lo,new Yr]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new Ct(901,!1)}}return e})();const Ux=Jb(null,"core",[]);let $x=(()=>{class e{constructor(n){}static#e=this.\u0275fac=function(r){return new(r||e)(Cn(Ho))};static#t=this.\u0275mod=Zc({type:e});static#n=this.\u0275inj=se({})}return e})();const O0=new ln("");function CA(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function wA(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function EA(e,t){Ri("NgSignals");const n=function ke(e){const t=Object.create(be);t.computation=e;const n=()=>{if(Ue(t),Z(t),t.value===_e)throw t.error;return t.value};return n[J]=t,n}(e);return t?.equal&&(n[J].equal=t.equal),n}function DA(e){const t=ie(null);try{return e()}finally{ie(t)}}},5042:(Ne,Q,I)=>{"use strict";I.d(Q,{Zm:()=>yt,YN:()=>ga,kq:()=>qe,BC:()=>Fr,vS:()=>mn});var o=I(3953),N=I(177),Y=I(6648),ae=I(4226);const{isArray:J}=Array,{getPrototypeOf:ie,prototype:q,keys:ue}=Object;var Z=I(8750),Ee=I(9326),Ue=I(4360),Re=I(6450);function Ke(D,T){return D.reduce((_,F,se)=>(_[F]=T[se],_),{})}var lt=I(1413),St=I(6354);let ht=(()=>{class D{constructor(_,F){this._renderer=_,this._elementRef=F,this.onChange=se=>{},this.onTouched=()=>{}}setProperty(_,F){this._renderer.setProperty(this._elementRef.nativeElement,_,F)}registerOnTouched(_){this.onTouched=_}registerOnChange(_){this.onChange=_}setDisabledState(_){this.setProperty("disabled",_)}static#e=this.\u0275fac=function(F){return new(F||D)(o.rXU(o.sFG),o.rXU(o.aKT))};static#t=this.\u0275dir=o.FsC({type:D})}return D})(),Et=(()=>{class D extends ht{static#e=this.\u0275fac=(()=>{let _;return function(se){return(_||(_=o.xGo(D)))(se||D)}})();static#t=this.\u0275dir=o.FsC({type:D,features:[o.Vt3]})}return D})();const qe=new o.nKC(""),Ve={provide:qe,useExisting:(0,o.Rfq)(()=>yt),multi:!0};let yt=(()=>{class D extends Et{writeValue(_){this.setProperty("checked",_)}static#e=this.\u0275fac=(()=>{let _;return function(se){return(_||(_=o.xGo(D)))(se||D)}})();static#t=this.\u0275dir=o.FsC({type:D,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(F,se){1&F&&o.bIt("change",function(dn){return se.onChange(dn.target.checked)})("blur",function(){return se.onTouched()})},features:[o.Jv_([Ve]),o.Vt3]})}return D})();const Wt={provide:qe,useExisting:(0,o.Rfq)(()=>ke),multi:!0},st=new o.nKC("");let ke=(()=>{class D extends ht{constructor(_,F,se){super(_,F),this._compositionMode=se,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function dt(){const D=(0,N.QT)()?(0,N.QT)().getUserAgent():"";return/android (\d+)/.test(D.toLowerCase())}())}writeValue(_){this.setProperty("value",_??"")}_handleInput(_){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(_)}_compositionStart(){this._composing=!0}_compositionEnd(_){this._composing=!1,this._compositionMode&&this.onChange(_)}static#e=this.\u0275fac=function(F){return new(F||D)(o.rXU(o.sFG),o.rXU(o.aKT),o.rXU(st,8))};static#t=this.\u0275dir=o.FsC({type:D,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(F,se){1&F&&o.bIt("input",function(dn){return se._handleInput(dn.target.value)})("blur",function(){return se.onTouched()})("compositionstart",function(){return se._compositionStart()})("compositionend",function(dn){return se._compositionEnd(dn.target.value)})},features:[o.Jv_([Wt]),o.Vt3]})}return D})();const _e=new o.nKC(""),be=new o.nKC("");function ir(D){return null!=D}function fr(D){return(0,o.jNT)(D)?(0,Y.H)(D):D}function Xr(D){let T={};return D.forEach(_=>{T=null!=_?{...T,..._}:T}),0===Object.keys(T).length?null:T}function Bn(D,T){return T.map(_=>_(D))}function Nr(D){return D.map(T=>function cr(D){return!D.validate}(T)?T:_=>T.validate(_))}function or(D){return null!=D?function Er(D){if(!D)return null;const T=D.filter(ir);return 0==T.length?null:function(_){return Xr(Bn(_,T))}}(Nr(D)):null}function Rr(D){if(!D)return null;const T=D.filter(ir);return 0==T.length?null:function(_){return function Xe(...D){const T=(0,Ee.ms)(D),{args:_,keys:F}=function ge(D){if(1===D.length){const T=D[0];if(J(T))return{args:T,keys:null};if(function X(D){return D&&"object"==typeof D&&ie(D)===q}(T)){const _=ue(T);return{args:_.map(F=>T[F]),keys:_}}}return{args:D,keys:null}}(D),se=new ae.c(kt=>{const{length:dn}=_;if(!dn)return void kt.complete();const Lr=new Array(dn);let _i=dn,Ti=dn;for(let io=0;io<dn;io++){let Ko=!1;(0,Z.Tg)(_[io]).subscribe((0,Ue._)(kt,qo=>{Ko||(Ko=!0,Ti--),Lr[io]=qo},()=>_i--,void 0,()=>{(!_i||!Ko)&&(Ti||kt.next(F?Ke(F,Lr):Lr),kt.complete())}))}});return T?se.pipe((0,Re.I)(T)):se}(Bn(_,T).map(fr)).pipe((0,St.T)(Xr))}}function kn(D){return null!=D?Rr(Nr(D)):null}function Vr(D,T){return null===D?[T]:Array.isArray(D)?[...D,T]:[D,T]}function nr(D){return D?Array.isArray(D)?D:[D]:[]}function vr(D,T){return Array.isArray(D)?D.includes(T):D===T}function Zn(D,T){const _=nr(T);return nr(D).forEach(se=>{vr(_,se)||_.push(se)}),_}function Or(D,T){return nr(T).filter(_=>!vr(D,_))}class tr{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(T){this._rawValidators=T||[],this._composedValidatorFn=or(this._rawValidators)}_setAsyncValidators(T){this._rawAsyncValidators=T||[],this._composedAsyncValidatorFn=kn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(T){this._onDestroyCallbacks.push(T)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(T=>T()),this._onDestroyCallbacks=[]}reset(T=void 0){this.control&&this.control.reset(T)}hasError(T,_){return!!this.control&&this.control.hasError(T,_)}getError(T,_){return this.control?this.control.getError(T,_):null}}class Vt extends tr{get formDirective(){return null}get path(){return null}}class Ze extends tr{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ui{constructor(T){this._cd=T}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let Fr=(()=>{class D extends ui{constructor(_){super(_)}static#e=this.\u0275fac=function(F){return new(F||D)(o.rXU(Ze,2))};static#t=this.\u0275dir=o.FsC({type:D,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(F,se){2&F&&o.AVh("ng-untouched",se.isUntouched)("ng-touched",se.isTouched)("ng-pristine",se.isPristine)("ng-dirty",se.isDirty)("ng-valid",se.isValid)("ng-invalid",se.isInvalid)("ng-pending",se.isPending)},features:[o.Vt3]})}return D})();const _t="VALID",Ft="INVALID",ft="PENDING",ct="DISABLED";class rt{}class Ht extends rt{constructor(T,_){super(),this.value=T,this.source=_}}class rn extends rt{constructor(T,_){super(),this.pristine=T,this.source=_}}class xn extends rt{constructor(T,_){super(),this.touched=T,this.source=_}}class yn extends rt{constructor(T,_){super(),this.status=T,this.source=_}}function $(D){return null!=D&&!Array.isArray(D)&&"object"==typeof D}class ye{constructor(T,_){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=(0,o.EWP)(()=>this.statusReactive()),this.statusReactive=(0,o.vPA)(void 0),this._pristine=(0,o.EWP)(()=>this.pristineReactive()),this.pristineReactive=(0,o.vPA)(!0),this._touched=(0,o.EWP)(()=>this.touchedReactive()),this.touchedReactive=(0,o.vPA)(!1),this._events=new lt.B,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(T),this._assignAsyncValidators(_)}get validator(){return this._composedValidatorFn}set validator(T){this._rawValidators=this._composedValidatorFn=T}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(T){this._rawAsyncValidators=this._composedAsyncValidatorFn=T}get parent(){return this._parent}get status(){return(0,o.O8t)(this.statusReactive)}set status(T){(0,o.O8t)(()=>this.statusReactive.set(T))}get valid(){return this.status===_t}get invalid(){return this.status===Ft}get pending(){return this.status==ft}get disabled(){return this.status===ct}get enabled(){return this.status!==ct}get pristine(){return(0,o.O8t)(this.pristineReactive)}set pristine(T){(0,o.O8t)(()=>this.pristineReactive.set(T))}get dirty(){return!this.pristine}get touched(){return(0,o.O8t)(this.touchedReactive)}set touched(T){(0,o.O8t)(()=>this.touchedReactive.set(T))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(T){this._assignValidators(T)}setAsyncValidators(T){this._assignAsyncValidators(T)}addValidators(T){this.setValidators(Zn(T,this._rawValidators))}addAsyncValidators(T){this.setAsyncValidators(Zn(T,this._rawAsyncValidators))}removeValidators(T){this.setValidators(Or(T,this._rawValidators))}removeAsyncValidators(T){this.setAsyncValidators(Or(T,this._rawAsyncValidators))}hasValidator(T){return vr(this._rawValidators,T)}hasAsyncValidator(T){return vr(this._rawAsyncValidators,T)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(T={}){const _=!1===this.touched;this.touched=!0;const F=T.sourceControl??this;this._parent&&!T.onlySelf&&this._parent.markAsTouched({...T,sourceControl:F}),_&&!1!==T.emitEvent&&this._events.next(new xn(!0,F))}markAllAsTouched(T={}){this.markAsTouched({onlySelf:!0,emitEvent:T.emitEvent,sourceControl:this}),this._forEachChild(_=>_.markAllAsTouched(T))}markAsUntouched(T={}){const _=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const F=T.sourceControl??this;this._forEachChild(se=>{se.markAsUntouched({onlySelf:!0,emitEvent:T.emitEvent,sourceControl:F})}),this._parent&&!T.onlySelf&&this._parent._updateTouched(T,F),_&&!1!==T.emitEvent&&this._events.next(new xn(!1,F))}markAsDirty(T={}){const _=!0===this.pristine;this.pristine=!1;const F=T.sourceControl??this;this._parent&&!T.onlySelf&&this._parent.markAsDirty({...T,sourceControl:F}),_&&!1!==T.emitEvent&&this._events.next(new rn(!1,F))}markAsPristine(T={}){const _=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const F=T.sourceControl??this;this._forEachChild(se=>{se.markAsPristine({onlySelf:!0,emitEvent:T.emitEvent})}),this._parent&&!T.onlySelf&&this._parent._updatePristine(T,F),_&&!1!==T.emitEvent&&this._events.next(new rn(!0,F))}markAsPending(T={}){this.status=ft;const _=T.sourceControl??this;!1!==T.emitEvent&&(this._events.next(new yn(this.status,_)),this.statusChanges.emit(this.status)),this._parent&&!T.onlySelf&&this._parent.markAsPending({...T,sourceControl:_})}disable(T={}){const _=this._parentMarkedDirty(T.onlySelf);this.status=ct,this.errors=null,this._forEachChild(se=>{se.disable({...T,onlySelf:!0})}),this._updateValue();const F=T.sourceControl??this;!1!==T.emitEvent&&(this._events.next(new Ht(this.value,F)),this._events.next(new yn(this.status,F)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...T,skipPristineCheck:_},this),this._onDisabledChange.forEach(se=>se(!0))}enable(T={}){const _=this._parentMarkedDirty(T.onlySelf);this.status=_t,this._forEachChild(F=>{F.enable({...T,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:T.emitEvent}),this._updateAncestors({...T,skipPristineCheck:_},this),this._onDisabledChange.forEach(F=>F(!1))}_updateAncestors(T,_){this._parent&&!T.onlySelf&&(this._parent.updateValueAndValidity(T),T.skipPristineCheck||this._parent._updatePristine({},_),this._parent._updateTouched({},_))}setParent(T){this._parent=T}getRawValue(){return this.value}updateValueAndValidity(T={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const F=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===_t||this.status===ft)&&this._runAsyncValidator(F,T.emitEvent)}const _=T.sourceControl??this;!1!==T.emitEvent&&(this._events.next(new Ht(this.value,_)),this._events.next(new yn(this.status,_)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!T.onlySelf&&this._parent.updateValueAndValidity({...T,sourceControl:_})}_updateTreeValidity(T={emitEvent:!0}){this._forEachChild(_=>_._updateTreeValidity(T)),this.updateValueAndValidity({onlySelf:!0,emitEvent:T.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ct:_t}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(T,_){if(this.asyncValidator){this.status=ft,this._hasOwnPendingAsyncValidator={emitEvent:!1!==_};const F=fr(this.asyncValidator(this));this._asyncValidationSubscription=F.subscribe(se=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(se,{emitEvent:_,shouldHaveEmitted:T})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const T=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,T}return!1}setErrors(T,_={}){this.errors=T,this._updateControlsErrors(!1!==_.emitEvent,this,_.shouldHaveEmitted)}get(T){let _=T;return null==_||(Array.isArray(_)||(_=_.split(".")),0===_.length)?null:_.reduce((F,se)=>F&&F._find(se),this)}getError(T,_){const F=_?this.get(_):this;return F&&F.errors?F.errors[T]:null}hasError(T,_){return!!this.getError(T,_)}get root(){let T=this;for(;T._parent;)T=T._parent;return T}_updateControlsErrors(T,_,F){this.status=this._calculateStatus(),T&&this.statusChanges.emit(this.status),(T||F)&&this._events.next(new yn(this.status,_)),this._parent&&this._parent._updateControlsErrors(T,_,F)}_initObservables(){this.valueChanges=new o.bkB,this.statusChanges=new o.bkB}_calculateStatus(){return this._allControlsDisabled()?ct:this.errors?Ft:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ft)?ft:this._anyControlsHaveStatus(Ft)?Ft:_t}_anyControlsHaveStatus(T){return this._anyControls(_=>_.status===T)}_anyControlsDirty(){return this._anyControls(T=>T.dirty)}_anyControlsTouched(){return this._anyControls(T=>T.touched)}_updatePristine(T,_){const F=!this._anyControlsDirty(),se=this.pristine!==F;this.pristine=F,this._parent&&!T.onlySelf&&this._parent._updatePristine(T,_),se&&this._events.next(new rn(this.pristine,_))}_updateTouched(T={},_){this.touched=this._anyControlsTouched(),this._events.next(new xn(this.touched,_)),this._parent&&!T.onlySelf&&this._parent._updateTouched(T,_)}_registerOnCollectionChange(T){this._onCollectionChange=T}_setUpdateStrategy(T){$(T)&&null!=T.updateOn&&(this._updateOn=T.updateOn)}_parentMarkedDirty(T){return!T&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(T){return null}_assignValidators(T){this._rawValidators=Array.isArray(T)?T.slice():T,this._composedValidatorFn=function Lt(D){return Array.isArray(D)?or(D):D||null}(this._rawValidators)}_assignAsyncValidators(T){this._rawAsyncValidators=Array.isArray(T)?T.slice():T,this._composedAsyncValidatorFn=function P(D){return Array.isArray(D)?kn(D):D||null}(this._rawAsyncValidators)}}const Kt=new o.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>Zt}),Zt="always";function sn(D,T,_=Zt){(function Qe(D,T){const _=function gn(D){return D._rawValidators}(D);null!==T.validator?D.setValidators(Vr(_,T.validator)):"function"==typeof _&&D.setValidators([_]);const F=function pr(D){return D._rawAsyncValidators}(D);null!==T.asyncValidator?D.setAsyncValidators(Vr(F,T.asyncValidator)):"function"==typeof F&&D.setAsyncValidators([F]);const se=()=>D.updateValueAndValidity();He(T._rawValidators,se),He(T._rawAsyncValidators,se)})(D,T),T.valueAccessor.writeValue(D.value),(D.disabled||"always"===_)&&T.valueAccessor.setDisabledState?.(D.disabled),function Gt(D,T){T.valueAccessor.registerOnChange(_=>{D._pendingValue=_,D._pendingChange=!0,D._pendingDirty=!0,"change"===D.updateOn&&w(D,T)})}(D,T),function E(D,T){const _=(F,se)=>{T.valueAccessor.writeValue(F),se&&T.viewToModelUpdate(F)};D.registerOnChange(_),T._registerOnDestroy(()=>{D._unregisterOnChange(_)})}(D,T),function R(D,T){T.valueAccessor.registerOnTouched(()=>{D._pendingTouched=!0,"blur"===D.updateOn&&D._pendingChange&&w(D,T),"submit"!==D.updateOn&&D.markAsTouched()})}(D,T),function Me(D,T){if(T.valueAccessor.setDisabledState){const _=F=>{T.valueAccessor.setDisabledState(F)};D.registerOnDisabledChange(_),T._registerOnDestroy(()=>{D._unregisterOnDisabledChange(_)})}}(D,T)}function He(D,T){D.forEach(_=>{_.registerOnValidatorChange&&_.registerOnValidatorChange(T)})}function w(D,T){D._pendingDirty&&D.markAsDirty(),D.setValue(D._pendingValue,{emitModelToViewChange:!1}),T.viewToModelUpdate(D._pendingValue),D._pendingChange=!1}function Mn(D,T){const _=D.indexOf(T);_>-1&&D.splice(_,1)}function Wn(D){return"object"==typeof D&&null!==D&&2===Object.keys(D).length&&"value"in D&&"disabled"in D}Promise.resolve();const wr=class extends ye{constructor(T=null,_,F){super(function Bt(D){return($(D)?D.validators:D)||null}(_),function Nt(D,T){return($(T)?T.asyncValidators:D)||null}(F,_)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(T),this._setUpdateStrategy(_),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$(_)&&(_.nonNullable||_.initialValueIsDefault)&&(this.defaultValue=Wn(T)?T.value:T)}setValue(T,_={}){this.value=this._pendingValue=T,this._onChange.length&&!1!==_.emitModelToViewChange&&this._onChange.forEach(F=>F(this.value,!1!==_.emitViewToModelChange)),this.updateValueAndValidity(_)}patchValue(T,_={}){this.setValue(T,_)}reset(T=this.defaultValue,_={}){this._applyFormState(T),this.markAsPristine(_),this.markAsUntouched(_),this.setValue(this.value,_),this._pendingChange=!1}_updateValue(){}_anyControls(T){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(T){this._onChange.push(T)}_unregisterOnChange(T){Mn(this._onChange,T)}registerOnDisabledChange(T){this._onDisabledChange.push(T)}_unregisterOnDisabledChange(T){Mn(this._onDisabledChange,T)}_forEachChild(T){}_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(T){Wn(T)?(this.value=this._pendingValue=T.value,T.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=T}},et={provide:Ze,useExisting:(0,o.Rfq)(()=>mn)},ut=Promise.resolve();let mn=(()=>{class D extends Ze{constructor(_,F,se,kt,dn,Lr){super(),this._changeDetectorRef=dn,this.callSetDisabledState=Lr,this.control=new wr,this._registered=!1,this.name="",this.update=new o.bkB,this._parent=_,this._setValidators(F),this._setAsyncValidators(se),this.valueAccessor=function Xt(D,T){if(!T)return null;let _,F,se;return Array.isArray(T),T.forEach(kt=>{kt.constructor===ke?_=kt:function an(D){return Object.getPrototypeOf(D.constructor)===Et}(kt)?F=kt:se=kt}),se||F||_||null}(0,kt)}ngOnChanges(_){if(this._checkForErrors(),!this._registered||"name"in _){if(this._registered&&(this._checkName(),this.formDirective)){const F=_.name.previousValue;this.formDirective.removeControl({name:F,path:this._getPath(F)})}this._setUpControl()}"isDisabled"in _&&this._updateDisabled(_),function bt(D,T){if(!D.hasOwnProperty("model"))return!1;const _=D.model;return!!_.isFirstChange()||!Object.is(T,_.currentValue)}(_,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(_){this.viewModel=_,this.update.emit(_)}_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(){sn(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(_){ut.then(()=>{this.control.setValue(_,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(_){const F=_.isDisabled.currentValue,se=0!==F&&(0,o.L39)(F);ut.then(()=>{se&&!this.control.disabled?this.control.disable():!se&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(_){return this._parent?function on(D,T){return[...T.path,D]}(_,this._parent):[_]}static#e=this.\u0275fac=function(F){return new(F||D)(o.rXU(Vt,9),o.rXU(_e,10),o.rXU(be,10),o.rXU(qe,10),o.rXU(o.gRc,8),o.rXU(Kt,8))};static#t=this.\u0275dir=o.FsC({type:D,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[o.Jv_([et]),o.Vt3,o.OA$]})}return D})(),_l=(()=>{class D{static#e=this.\u0275fac=function(F){return new(F||D)};static#t=this.\u0275mod=o.$C({type:D});static#n=this.\u0275inj=o.G2t({})}return D})(),ga=(()=>{class D{static withConfig(_){return{ngModule:D,providers:[{provide:Kt,useValue:_.callSetDisabledState??Zt}]}}static#e=this.\u0275fac=function(F){return new(F||D)};static#t=this.\u0275mod=o.$C({type:D});static#n=this.\u0275inj=o.G2t({imports:[_l]})}return D})()},345:(Ne,Q,I)=>{"use strict";I.d(Q,{B7:()=>dt,Bb:()=>Rr,sG:()=>cr});var o=I(177),N=I(3953);class Y extends o.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ae extends Y{static makeCurrent(){(0,o.ZD)(new ae)}onAndCancel(he,G,le){return he.addEventListener(G,le),()=>{he.removeEventListener(G,le)}}dispatchEvent(he,G){he.dispatchEvent(G)}remove(he){he.remove()}createElement(he,G){return(G=G||this.getDefaultDocument()).createElement(he)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(he){return he.nodeType===Node.ELEMENT_NODE}isShadowRoot(he){return he instanceof DocumentFragment}getGlobalEventTarget(he,G){return"window"===G?window:"document"===G?he:"body"===G?he.body:null}getBaseHref(he){const G=function ie(){return J=J||document.querySelector("base"),J?J.getAttribute("href"):null}();return null==G?null:function q(Ce){return new URL(Ce,document.baseURI).pathname}(G)}resetBaseElement(){J=null}getUserAgent(){return window.navigator.userAgent}getCookie(he){return(0,o._b)(document.cookie,he)}}let J=null,ge=(()=>{class Ce{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(le){return new(le||Ce)};static#t=this.\u0275prov=N.jDH({token:Ce,factory:Ce.\u0275fac})}return Ce})();const X=new N.nKC("");let Z=(()=>{class Ce{constructor(G,le){this._zone=le,this._eventNameToPlugin=new Map,G.forEach(xe=>{xe.manager=this}),this._plugins=G.slice().reverse()}addEventListener(G,le,xe){return this._findPluginFor(le).addEventListener(G,le,xe)}getZone(){return this._zone}_findPluginFor(G){let le=this._eventNameToPlugin.get(G);if(le)return le;if(le=this._plugins.find(it=>it.supports(G)),!le)throw new N.wOt(5101,!1);return this._eventNameToPlugin.set(G,le),le}static#e=this.\u0275fac=function(le){return new(le||Ce)(N.KVO(X),N.KVO(N.SKi))};static#t=this.\u0275prov=N.jDH({token:Ce,factory:Ce.\u0275fac})}return Ce})();class Ee{constructor(he){this._doc=he}}const Ue="ng-app-id";let Re=(()=>{class Ce{constructor(G,le,xe,it={}){this.doc=G,this.appId=le,this.nonce=xe,this.platformId=it,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,o.Vy)(it),this.resetHostNodes()}addStyles(G){for(const le of G)1===this.changeUsageCount(le,1)&&this.onStyleAdded(le)}removeStyles(G){for(const le of G)this.changeUsageCount(le,-1)<=0&&this.onStyleRemoved(le)}ngOnDestroy(){const G=this.styleNodesInDOM;G&&(G.forEach(le=>le.remove()),G.clear());for(const le of this.getAllStyles())this.onStyleRemoved(le);this.resetHostNodes()}addHost(G){this.hostNodes.add(G);for(const le of this.getAllStyles())this.addStyleToHost(G,le)}removeHost(G){this.hostNodes.delete(G)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(G){for(const le of this.hostNodes)this.addStyleToHost(le,G)}onStyleRemoved(G){const le=this.styleRef;le.get(G)?.elements?.forEach(xe=>xe.remove()),le.delete(G)}collectServerRenderedStyles(){const G=this.doc.head?.querySelectorAll(`style[${Ue}="${this.appId}"]`);if(G?.length){const le=new Map;return G.forEach(xe=>{null!=xe.textContent&&le.set(xe.textContent,xe)}),le}return null}changeUsageCount(G,le){const xe=this.styleRef;if(xe.has(G)){const it=xe.get(G);return it.usage+=le,it.usage}return xe.set(G,{usage:le,elements:[]}),le}getStyleElement(G,le){const xe=this.styleNodesInDOM,it=xe?.get(le);if(it?.parentNode===G)return xe.delete(le),it.removeAttribute(Ue),it;{const _t=this.doc.createElement("style");return this.nonce&&_t.setAttribute("nonce",this.nonce),_t.textContent=le,this.platformIsServer&&_t.setAttribute(Ue,this.appId),G.appendChild(_t),_t}}addStyleToHost(G,le){const xe=this.getStyleElement(G,le),it=this.styleRef,_t=it.get(le)?.elements;_t?_t.push(xe):it.set(le,{elements:[xe],usage:1})}resetHostNodes(){const G=this.hostNodes;G.clear(),G.add(this.doc.head)}static#e=this.\u0275fac=function(le){return new(le||Ce)(N.KVO(o.qQ),N.KVO(N.sZ2),N.KVO(N.BIS,8),N.KVO(N.Agw))};static#t=this.\u0275prov=N.jDH({token:Ce,factory:Ce.\u0275fac})}return Ce})();const Ke={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Xe=/%COMP%/g,qe=new N.nKC("",{providedIn:"root",factory:()=>!0});function Wt(Ce,he){return he.map(G=>G.replace(Xe,Ce))}let dt=(()=>{class Ce{constructor(G,le,xe,it,_t,Ft,ft,ct=null){this.eventManager=G,this.sharedStylesHost=le,this.appId=xe,this.removeStylesOnCompDestroy=it,this.doc=_t,this.platformId=Ft,this.ngZone=ft,this.nonce=ct,this.rendererByCompId=new Map,this.platformIsServer=(0,o.Vy)(Ft),this.defaultRenderer=new st(G,_t,ft,this.platformIsServer)}createRenderer(G,le){if(!G||!le)return this.defaultRenderer;this.platformIsServer&&le.encapsulation===N.gXe.ShadowDom&&(le={...le,encapsulation:N.gXe.Emulated});const xe=this.getOrCreateRenderer(G,le);return xe instanceof Se?xe.applyToHost(G):xe instanceof be&&xe.applyStyles(),xe}getOrCreateRenderer(G,le){const xe=this.rendererByCompId;let it=xe.get(le.id);if(!it){const _t=this.doc,Ft=this.ngZone,ft=this.eventManager,ct=this.sharedStylesHost,rt=this.removeStylesOnCompDestroy,Ht=this.platformIsServer;switch(le.encapsulation){case N.gXe.Emulated:it=new Se(ft,ct,le,this.appId,rt,_t,Ft,Ht);break;case N.gXe.ShadowDom:return new _e(ft,ct,G,le,_t,Ft,this.nonce,Ht);default:it=new be(ft,ct,le,rt,_t,Ft,Ht)}xe.set(le.id,it)}return it}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(le){return new(le||Ce)(N.KVO(Z),N.KVO(Re),N.KVO(N.sZ2),N.KVO(qe),N.KVO(o.qQ),N.KVO(N.Agw),N.KVO(N.SKi),N.KVO(N.BIS))};static#t=this.\u0275prov=N.jDH({token:Ce,factory:Ce.\u0275fac})}return Ce})();class st{constructor(he,G,le,xe){this.eventManager=he,this.doc=G,this.ngZone=le,this.platformIsServer=xe,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(he,G){return G?this.doc.createElementNS(Ke[G]||G,he):this.doc.createElement(he)}createComment(he){return this.doc.createComment(he)}createText(he){return this.doc.createTextNode(he)}appendChild(he,G){(fe(he)?he.content:he).appendChild(G)}insertBefore(he,G,le){he&&(fe(he)?he.content:he).insertBefore(G,le)}removeChild(he,G){G.remove()}selectRootElement(he,G){let le="string"==typeof he?this.doc.querySelector(he):he;if(!le)throw new N.wOt(-5104,!1);return G||(le.textContent=""),le}parentNode(he){return he.parentNode}nextSibling(he){return he.nextSibling}setAttribute(he,G,le,xe){if(xe){G=xe+":"+G;const it=Ke[xe];it?he.setAttributeNS(it,G,le):he.setAttribute(G,le)}else he.setAttribute(G,le)}removeAttribute(he,G,le){if(le){const xe=Ke[le];xe?he.removeAttributeNS(xe,G):he.removeAttribute(`${le}:${G}`)}else he.removeAttribute(G)}addClass(he,G){he.classList.add(G)}removeClass(he,G){he.classList.remove(G)}setStyle(he,G,le,xe){xe&(N.czy.DashCase|N.czy.Important)?he.style.setProperty(G,le,xe&N.czy.Important?"important":""):he.style[G]=le}removeStyle(he,G,le){le&N.czy.DashCase?he.style.removeProperty(G):he.style[G]=""}setProperty(he,G,le){null!=he&&(he[G]=le)}setValue(he,G){he.nodeValue=G}listen(he,G,le){if("string"==typeof he&&!(he=(0,o.QT)().getGlobalEventTarget(this.doc,he)))throw new Error(`Unsupported event target ${he} for event ${G}`);return this.eventManager.addEventListener(he,G,this.decoratePreventDefault(le))}decoratePreventDefault(he){return G=>{if("__ngUnwrap__"===G)return he;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>he(G)):he(G))&&G.preventDefault()}}}function fe(Ce){return"TEMPLATE"===Ce.tagName&&void 0!==Ce.content}class _e extends st{constructor(he,G,le,xe,it,_t,Ft,ft){super(he,it,_t,ft),this.sharedStylesHost=G,this.hostEl=le,this.shadowRoot=le.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ct=Wt(xe.id,xe.styles);for(const rt of ct){const Ht=document.createElement("style");Ft&&Ht.setAttribute("nonce",Ft),Ht.textContent=rt,this.shadowRoot.appendChild(Ht)}}nodeOrShadowRoot(he){return he===this.hostEl?this.shadowRoot:he}appendChild(he,G){return super.appendChild(this.nodeOrShadowRoot(he),G)}insertBefore(he,G,le){return super.insertBefore(this.nodeOrShadowRoot(he),G,le)}removeChild(he,G){return super.removeChild(null,G)}parentNode(he){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(he)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class be extends st{constructor(he,G,le,xe,it,_t,Ft,ft){super(he,it,_t,Ft),this.sharedStylesHost=G,this.removeStylesOnCompDestroy=xe,this.styles=ft?Wt(ft,le.styles):le.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Se extends be{constructor(he,G,le,xe,it,_t,Ft,ft){const ct=xe+"-"+le.id;super(he,G,le,it,_t,Ft,ft,ct),this.contentAttr=function Ve(Ce){return"_ngcontent-%COMP%".replace(Xe,Ce)}(ct),this.hostAttr=function yt(Ce){return"_nghost-%COMP%".replace(Xe,Ce)}(ct)}applyToHost(he){this.applyStyles(),this.setAttribute(he,this.hostAttr,"")}createElement(he,G){const le=super.createElement(he,G);return super.setAttribute(le,this.contentAttr,""),le}}let Te=(()=>{class Ce extends Ee{constructor(G){super(G)}supports(G){return!0}addEventListener(G,le,xe){return G.addEventListener(le,xe,!1),()=>this.removeEventListener(G,le,xe)}removeEventListener(G,le,xe){return G.removeEventListener(le,xe)}static#e=this.\u0275fac=function(le){return new(le||Ce)(N.KVO(o.qQ))};static#t=this.\u0275prov=N.jDH({token:Ce,factory:Ce.\u0275fac})}return Ce})(),Ye=(()=>{class Ce extends Ee{constructor(G){super(G),this.delegate=(0,N.WQX)(N.zAP,{optional:!0})}supports(G){return!!this.delegate&&this.delegate.supports(G)}addEventListener(G,le,xe){return this.delegate.addEventListener(G,le,xe)}removeEventListener(G,le,xe){return this.delegate.removeEventListener(G,le,xe)}static#e=this.\u0275fac=function(le){return new(le||Ce)(N.KVO(o.qQ))};static#t=this.\u0275prov=N.jDH({token:Ce,factory:Ce.\u0275fac})}return Ce})();const $t=["alt","control","meta","shift"],Pn={"\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"},Ot={alt:Ce=>Ce.altKey,control:Ce=>Ce.ctrlKey,meta:Ce=>Ce.metaKey,shift:Ce=>Ce.shiftKey};let Tn=(()=>{class Ce extends Ee{constructor(G){super(G)}supports(G){return null!=Ce.parseEventName(G)}addEventListener(G,le,xe){const it=Ce.parseEventName(le),_t=Ce.eventCallback(it.fullKey,xe,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,o.QT)().onAndCancel(G,it.domEventName,_t))}static parseEventName(G){const le=G.toLowerCase().split("."),xe=le.shift();if(0===le.length||"keydown"!==xe&&"keyup"!==xe)return null;const it=Ce._normalizeKey(le.pop());let _t="",Ft=le.indexOf("code");if(Ft>-1&&(le.splice(Ft,1),_t="code."),$t.forEach(ct=>{const rt=le.indexOf(ct);rt>-1&&(le.splice(rt,1),_t+=ct+".")}),_t+=it,0!=le.length||0===it.length)return null;const ft={};return ft.domEventName=xe,ft.fullKey=_t,ft}static matchEventFullKeyCode(G,le){let xe=Pn[G.key]||G.key,it="";return le.indexOf("code.")>-1&&(xe=G.code,it="code."),!(null==xe||!xe)&&(xe=xe.toLowerCase()," "===xe?xe="space":"."===xe&&(xe="dot"),$t.forEach(_t=>{_t!==xe&&(0,Ot[_t])(G)&&(it+=_t+".")}),it+=xe,it===le)}static eventCallback(G,le,xe){return it=>{Ce.matchEventFullKeyCode(it,G)&&xe.runGuarded(()=>le(it))}}static _normalizeKey(G){return"esc"===G?"escape":G}static#e=this.\u0275fac=function(le){return new(le||Ce)(N.KVO(o.qQ))};static#t=this.\u0275prov=N.jDH({token:Ce,factory:Ce.\u0275fac})}return Ce})();const cr=(0,N.oH4)(N.fpN,"browser",[{provide:N.Agw,useValue:o.AJ},{provide:N.PLl,useValue:function ir(){ae.makeCurrent()},multi:!0},{provide:o.qQ,useFactory:function Xr(){return(0,N.TL$)(document),document},deps:[]}]),Nr=new N.nKC(""),Er=[{provide:N.e01,useClass:class ue{addToWindow(he){N.JZv.getAngularTestability=(le,xe=!0)=>{const it=he.findTestabilityInTree(le,xe);if(null==it)throw new N.wOt(5103,!1);return it},N.JZv.getAllAngularTestabilities=()=>he.getAllTestabilities(),N.JZv.getAllAngularRootElements=()=>he.getAllRootElements(),N.JZv.frameworkStabilizers||(N.JZv.frameworkStabilizers=[]),N.JZv.frameworkStabilizers.push(le=>{const xe=N.JZv.getAllAngularTestabilities();let it=xe.length;const _t=function(){it--,0==it&&le()};xe.forEach(Ft=>{Ft.whenStable(_t)})})}findTestabilityInTree(he,G,le){return null==G?null:he.getTestability(G)??(le?(0,o.QT)().isShadowRoot(G)?this.findTestabilityInTree(he,G.host,!0):this.findTestabilityInTree(he,G.parentElement,!0):null)}},deps:[]},{provide:N.WHO,useClass:N.NYb,deps:[N.SKi,N.giA,N.e01]},{provide:N.NYb,useClass:N.NYb,deps:[N.SKi,N.giA,N.e01]}],or=[{provide:N.H8p,useValue:"root"},{provide:N.zcH,useFactory:function fr(){return new N.zcH},deps:[]},{provide:X,useClass:Te,multi:!0,deps:[o.qQ,N.SKi,N.Agw]},{provide:X,useClass:Tn,multi:!0,deps:[o.qQ]},{provide:X,useClass:Ye,multi:!0},dt,Re,Z,{provide:N._9s,useExisting:dt},{provide:o.N0,useClass:ge,deps:[]},[]];let Rr=(()=>{class Ce{constructor(G){}static withServerTransition(G){return{ngModule:Ce,providers:[{provide:N.sZ2,useValue:G.appId}]}}static#e=this.\u0275fac=function(le){return new(le||Ce)(N.KVO(Nr,12))};static#t=this.\u0275mod=N.$C({type:Ce});static#n=this.\u0275inj=N.G2t({providers:[...or,...Er],imports:[o.MD,N.Hbi]})}return Ce})()},6822:(Ne,Q,I)=>{"use strict";I.d(Q,{dF:()=>ke});var o=I(3953),N=I(140),Y=I(6354),ae=I(7343),J=I(6884);const X={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 Z{constructor(be){this.unprotectedPaths=["/resetpass","/invitation"],this.protocol=be.protocol;let Se=be.port;Se||(function ie(_e){return/^https:$/i.test(_e)}(this.protocol)?Se="443":function q(_e){return/^http:$/i.test(_e)}(this.protocol)&&(Se="80")),this.domain=be.hostname,this.port=parseInt(Se,10),this.path=be.pathname;const Te=this.path.match(/((?:\/cpsess\d+)?)(?:\/([^\/]+))?/)||[];if(this.applicationName=/^whm\./.test(this.domain)?X[2087]:/^cpanel\./.test(this.domain)?X[2083]:/^webmail\./.test(this.domain)?X[2095]:X[Se.toString()]||X[Te[2]]||"whostmgr",this.securityToken=Te[1]||"",this.applicationPath=this.securityToken?this.path.replace(this.securityToken,""):this.path,this.theme="",!this.isUnprotected&&(this.isCpanel||this.isWebmail)){const $t=this.path.split("/");this.theme=$t[3]}this.themePath="";let Ye=this.securityToken+"/";this.isUnprotected?Ye="/":this.isCpanel?Ye+="frontend/"+this.theme+"/":this.isWebmail?Ye+="webmail/"+this.theme+"/":this.isOther&&(Ye="/"),this.themePath=Ye,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 ue(_e){return _e&&_e.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(be){return this.themePath+be}buildFullPath(be){return this.protocol+"//"+this.domain+":"+this.port+this.buildPath(be)}buildTokenPath(be){return this.protocol+"//"+this.domain+":"+this.port+this.securityToken+be}}class Ee{get pathname(){return window.location.pathname}get port(){return window.location.port}get hostname(){return window.location.hostname}get protocol(){return window.location.protocol}}var Ue=I(9261),Re=I.n(Ue),Ke=I(5972),Xe=I.n(Ke),lt=function(_e){return _e[_e.Error=0]="Error",_e[_e.Warning=1]="Warning",_e[_e.Information=2]="Information",_e[_e.Unknown=3]="Unknown",_e}(lt||{});const St={isPaged:!1,isFiltered:!1,record:0,page:0,pageSize:0,totalRecords:0,totalPages:0,recordsBeforeFilter:0,batch:!1,properties:{}};class Et{constructor(be,Se){if(this.status=0,this.messages=[],this.meta=function ht(_e){return JSON.parse(JSON.stringify(_e))}(St),this.options={keepUnprocessedResponse:!1},Re()(be)||Xe()(be))throw new Error("The response was unexpectedly undefined or null");Se&&(this.options=Se),this.options.keepUnprocessedResponse&&(this.raw=JSON.parse(JSON.stringify(be)))}get success(){return this.status>0}get failed(){return 0===this.status}_getMessages(be){return this.messages.filter(Se=>Se.type===be)}get errors(){return this._getMessages(lt.Error)}get warnings(){return this._getMessages(lt.Warning)}get infoMessages(){return this._getMessages(lt.Information)}_hasMessages(be){return this.messages.filter(Se=>Se.type===be).length>0}get hasErrors(){return this._hasMessages(lt.Error)}get hasWarnings(){return this._hasMessages(lt.Warning)}get hasInfoMessages(){return this._hasMessages(lt.Information)}get isPaged(){return this.meta.isPaged}get isFiltered(){return this.meta.isFiltered}}class qe{constructor(be){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={},be.paginate&&(this.isPaged=!0,this.record=parseInt(be.paginate.start_result,10)||0,this.page=parseInt(be.paginate.current_page,10)||0,this.pageSize=parseInt(be.paginate.results_per_page,10)||0,this.totalPages=parseInt(be.paginate.total_pages,10)||0,this.totalRecords=parseInt(be.paginate.total_results,10)||0),be.filter&&(this.isFiltered=!0,this.recordsBeforeFilter=parseInt(be.filter.records_before_filter,10)||0);const Se=new Set(["paginate","filter"]);Object.keys(be).filter(Te=>!Se.has(Te)).forEach(Te=>{this.properties[Te]=be[Te]})}}class Ve extends Et{_parseStatus(be){if(this.status=0,typeof be.status>"u")throw new Error("The response should have a numeric status property indicating the API succeeded (>0) or failed (=0)");this.status=parseInt(be.status,10)}_parseMessages(be){if("errors"in be){const Se=be.errors;Se&&Se.length&&Se.forEach(Te=>{this.messages.push({type:lt.Error,message:Te})})}if("messages"in be){const Se=be.messages;Se&&Se.forEach(Te=>{this.messages.push({type:lt.Information,message:Te})})}}constructor(be,Se){if(super(be,Se),this._parseStatus(be),this._parseMessages(be),!be||!Object.prototype.hasOwnProperty.call(be,"data"))throw new Error("Expected response to contain a data property, but it is missing");this.data=be.data,be.metadata&&(this.meta=new qe(be.metadata))}}let ke=(()=>{class _e{constructor(Se){this.http=Se}delete(Se){const Te=Se.generate(),Ye=this.packageUrl(Te);return this.http.delete(Ye,{headers:this.packageHeaders(Te)}).pipe((0,Y.T)(this.packageResponseHandler(Ye)))}get(Se){const Te=Se.generate({verb:ae.o.GET,encoder:new J.CY}),Ye=this.packageUrl(Te);return this.http.get(Ye,{headers:this.packageHeaders(Te)}).pipe((0,Y.T)(this.packageResponseHandler(Ye)))}options(Se){const Te=Se.generate(),Ye=this.packageUrl(Te);return this.http.options(Ye,{headers:this.packageHeaders(Te)}).pipe((0,Y.T)(this.packageResponseHandler(Ye)))}patch(Se){const Te=Se.generate(),Ye=this.packageUrl(Te);return this.http.patch(Ye,Te.body,{headers:this.packageHeaders(Te)}).pipe((0,Y.T)(this.packageResponseHandler(Ye)))}put(Se){const Te=Se.generate(),Ye=this.packageUrl(Te);return this.http.put(Ye,Te.body,{headers:this.packageHeaders(Te)}).pipe((0,Y.T)(this.packageResponseHandler(Ye)))}post(Se){const Te=Se.generate(),Ye=this.packageUrl(Te);return this.http.post(Ye,Te.body,{headers:this.packageHeaders(Te)}).pipe((0,Y.T)(this.packageResponseHandler(Ye)))}packageHeaders(Se){const Te={};return Se.headers.forEach(Ye=>{Te[Ye.name]=Ye.value}),new N.Lr(Te)}packageUrl(Se){return new Z(new Ee).buildTokenPath(Se.url)}packageResponseHandler(Se){return Te=>{const Ye=new Ve(Te);return Ye.meta.properties.url=Se,Ye}}static#e=this.\u0275fac=function(Te){return new(Te||_e)(o.KVO(N.Qq))};static#t=this.\u0275prov=o.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})()},8658:(Ne,Q,I)=>{"use strict";I.d(Q,{B:()=>J});var o=I(3953),N=I(6381);const Y=new o.nKC("window"),ae=ie=>new N.h(ie.CLDR,ie.LEXICON);let J=(()=>{class ie{static#e=this.\u0275fac=function(ge){return new(ge||ie)};static#t=this.\u0275mod=o.$C({type:ie});static#n=this.\u0275inj=o.G2t({providers:[{provide:Y,useValue:window},{provide:N.h,useFactory:ae,deps:[Y]}]})}return ie})()},6805:(Ne,Q,I)=>{"use strict";I.d(Q,{yI:()=>Ol,Ab:()=>qc,sb:()=>Yc,Zi:()=>so,uE:()=>Ki,GV:()=>hs,jM:()=>wg,NB:()=>Cg,ys:()=>Si});var o=I(3953),N=I(177),Y=I(1413),ae=I(5964),J=I(8658),ie=I(6381),q=function(m){return m[m.State=0]="State",m[m.Transition=1]="Transition",m[m.Sequence=2]="Sequence",m[m.Group=3]="Group",m[m.Animate=4]="Animate",m[m.Keyframes=5]="Keyframes",m[m.Style=6]="Style",m[m.Trigger=7]="Trigger",m[m.Reference=8]="Reference",m[m.AnimateChild=9]="AnimateChild",m[m.AnimateRef=10]="AnimateRef",m[m.Query=11]="Query",m[m.Stagger=12]="Stagger",m}(q||{});const ue="*";function ge(m,u){return{type:q.Trigger,name:m,definitions:u,options:{}}}function X(m,u=null){return{type:q.Animate,styles:u,timings:m}}function Ue(m){return{type:q.Style,styles:m,offset:null}}function Re(m,u,l){return{type:q.State,name:m,styles:u,options:l}}function Xe(m,u,l=null){return{type:q.Transition,expr:m,animation:u,options:l}}class _e{constructor(u=0,l=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=u+l}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(u=>u()),this._onDoneFns=[])}onStart(u){this._originalOnStartFns.push(u),this._onStartFns.push(u)}onDone(u){this._originalOnDoneFns.push(u),this._onDoneFns.push(u)}onDestroy(u){this._onDestroyFns.push(u)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(u=>u()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(u=>u()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(u){this._position=this.totalTime?u*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(u){const l="start"==u?this._onStartFns:this._onDoneFns;l.forEach(p=>p()),l.length=0}}class be{constructor(u){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=u;let l=0,p=0,M=0;const V=this.players.length;0==V?queueMicrotask(()=>this._onFinish()):this.players.forEach(ne=>{ne.onDone(()=>{++l==V&&this._onFinish()}),ne.onDestroy(()=>{++p==V&&this._onDestroy()}),ne.onStart(()=>{++M==V&&this._onStart()})}),this.totalTime=this.players.reduce((ne,pe)=>Math.max(ne,pe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(u=>u()),this._onDoneFns=[])}init(){this.players.forEach(u=>u.init())}onStart(u){this._onStartFns.push(u)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(u=>u()),this._onStartFns=[])}onDone(u){this._onDoneFns.push(u)}onDestroy(u){this._onDestroyFns.push(u)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(u=>u.play())}pause(){this.players.forEach(u=>u.pause())}restart(){this.players.forEach(u=>u.restart())}finish(){this._onFinish(),this.players.forEach(u=>u.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(u=>u.destroy()),this._onDestroyFns.forEach(u=>u()),this._onDestroyFns=[])}reset(){this.players.forEach(u=>u.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(u){const l=u*this.totalTime;this.players.forEach(p=>{const M=p.totalTime?Math.min(1,l/p.totalTime):1;p.setPosition(M)})}getPosition(){const u=this.players.reduce((l,p)=>null===l||p.totalTime>l.totalTime?p:l,null);return null!=u?u.getPosition():0}beforeDestroy(){this.players.forEach(u=>{u.beforeDestroy&&u.beforeDestroy()})}triggerCallback(u){const l="start"==u?this._onStartFns:this._onDoneFns;l.forEach(p=>p()),l.length=0}}var Te=I(345);function $t(m){return new o.wOt(3e3,!1)}function me(m){switch(m.length){case 0:return new _e;case 1:return m[0];default:return new be(m)}}function je(m,u,l=new Map,p=new Map){const M=[],V=[];let ne=-1,pe=null;if(u.forEach(Oe=>{const Le=Oe.get("offset"),At=Le==ne,xt=At&&pe||new Map;Oe.forEach((Rn,_n)=>{let Jt=_n,un=Rn;if("offset"!==_n)switch(Jt=m.normalizePropertyName(Jt,M),un){case"!":un=l.get(_n);break;case ue:un=p.get(_n);break;default:un=m.normalizeStyleValue(_n,Jt,un,M)}xt.set(Jt,un)}),At||V.push(xt),pe=xt,ne=Le}),M.length)throw function Or(){return new o.wOt(3502,!1)}();return V}function ve(m,u,l,p){switch(u){case"start":m.onStart(()=>p(l&&Fe(l,"start",m)));break;case"done":m.onDone(()=>p(l&&Fe(l,"done",m)));break;case"destroy":m.onDestroy(()=>p(l&&Fe(l,"destroy",m)))}}function Fe(m,u,l){const V=ot(m.element,m.triggerName,m.fromState,m.toState,u||m.phaseName,l.totalTime??m.totalTime,!!l.disabled),ne=m._data;return null!=ne&&(V._data=ne),V}function ot(m,u,l,p,M="",V=0,ne){return{element:m,triggerName:u,fromState:l,toState:p,phaseName:M,totalTime:V,disabled:!!ne}}function mt(m,u,l){let p=m.get(u);return p||m.set(u,p=l),p}function Dt(m){const u=m.indexOf(":");return[m.substring(1,u),m.slice(u+1)]}const Tt=typeof document>"u"?null:document.documentElement;function Ce(m){const u=m.parentNode||m.host||null;return u===Tt?null:u}let G=null,le=!1;function Ft(m,u){for(;u;){if(u===m)return!0;u=Ce(u)}return!1}function ft(m,u,l){if(l)return Array.from(m.querySelectorAll(u));const p=m.querySelector(u);return p?[p]:[]}let rt=(()=>{class m{validateStyleProperty(l){return function xe(m){G||(G=function _t(){return typeof document<"u"?document.body:null}()||{},le=!!G.style&&"WebkitAppearance"in G.style);let u=!0;return G.style&&!function he(m){return"ebkit"==m.substring(1,6)}(m)&&(u=m in G.style,!u&&le&&(u="Webkit"+m.charAt(0).toUpperCase()+m.slice(1)in G.style)),u}(l)}containsElement(l,p){return Ft(l,p)}getParentElement(l){return Ce(l)}query(l,p,M){return ft(l,p,M)}computeStyle(l,p,M){return M||""}animate(l,p,M,V,ne,pe=[],Oe){return new _e(M,V)}static#e=this.\u0275fac=function(p){return new(p||m)};static#t=this.\u0275prov=o.jDH({token:m,factory:m.\u0275fac})}return m})();class Ht{static#e=this.NOOP=new rt}class rn{}const yn=1e3,Bt="ng-enter",Lt="ng-leave",Nt="ng-trigger",P=".ng-trigger",$="ng-animating",H=".ng-animating";function K(m){if("number"==typeof m)return m;const u=m.match(/^(-?[\.\d]+)(m?s)/);return!u||u.length<2?0:ye(parseFloat(u[1]),u[2])}function ye(m,u){return"s"===u?m*yn:m}function W(m,u,l){return m.hasOwnProperty("duration")?m:function ee(m,u,l){let M,V=0,ne="";if("string"==typeof m){const pe=m.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===pe)return u.push($t()),{duration:0,delay:0,easing:""};M=ye(parseFloat(pe[1]),pe[2]);const Oe=pe[3];null!=Oe&&(V=ye(parseFloat(Oe),pe[4]));const Le=pe[5];Le&&(ne=Le)}else M=m;if(!l){let pe=!1,Oe=u.length;M<0&&(u.push(function Pn(){return new o.wOt(3100,!1)}()),pe=!0),V<0&&(u.push(function Ot(){return new o.wOt(3101,!1)}()),pe=!0),pe&&u.splice(Oe,0,$t())}return{duration:M,delay:V,easing:ne}}(m,u,l)}function Je(m,u,l){u.forEach((p,M)=>{const V=Me(M);l&&!l.has(M)&&l.set(M,m.style[V]),m.style[V]=p})}function wt(m,u){u.forEach((l,p)=>{const M=Me(p);m.style[M]=""})}function Kt(m){return Array.isArray(m)?1==m.length?m[0]:function Ee(m,u=null){return{type:q.Sequence,steps:m,options:u}}(m):m}const on=new RegExp("{{\\s*(.+?)\\s*}}","g");function sn(m){let u=[];if("string"==typeof m){let l;for(;l=on.exec(m);)u.push(l[1]);on.lastIndex=0}return u}function tt(m,u,l){const p=`${m}`,M=p.replace(on,(V,ne)=>{let pe=u[ne];return null==pe&&(l.push(function Fn(){return new o.wOt(3003,!1)}()),pe=""),pe.toString()});return M==p?m:M}const He=/-+([a-z0-9])/g;function Me(m){return m.replace(He,(...u)=>u[1].toUpperCase())}function R(m,u,l){switch(u.type){case q.Trigger:return m.visitTrigger(u,l);case q.State:return m.visitState(u,l);case q.Transition:return m.visitTransition(u,l);case q.Sequence:return m.visitSequence(u,l);case q.Group:return m.visitGroup(u,l);case q.Animate:return m.visitAnimate(u,l);case q.Keyframes:return m.visitKeyframes(u,l);case q.Style:return m.visitStyle(u,l);case q.Reference:return m.visitReference(u,l);case q.AnimateChild:return m.visitAnimateChild(u,l);case q.AnimateRef:return m.visitAnimateRef(u,l);case q.Query:return m.visitQuery(u,l);case q.Stagger:return m.visitStagger(u,l);default:throw function tn(){return new o.wOt(3004,!1)}()}}function w(m,u){return window.getComputedStyle(m)[u]}const E=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class g extends rn{normalizePropertyName(u,l){return Me(u)}normalizeStyleValue(u,l,p,M){let V="";const ne=p.toString().trim();if(E.has(l)&&0!==p&&"0"!==p)if("number"==typeof p)V="px";else{const pe=p.match(/^[+-]?[\d\.]+([a-z]*)$/);pe&&0==pe[1].length&&M.push(function pn(){return new o.wOt(3005,!1)}())}return ne+V}}const bt="*";const An=new Set(["true","1"]),Dn=new Set(["false","0"]);function Sn(m,u){const l=An.has(m)||Dn.has(m),p=An.has(u)||Dn.has(u);return(M,V)=>{let ne=m==bt||m==M,pe=u==bt||u==V;return!ne&&l&&"boolean"==typeof M&&(ne=M?An.has(m):Dn.has(m)),!pe&&p&&"boolean"==typeof V&&(pe=V?An.has(u):Dn.has(u)),ne&&pe}}const kr=new RegExp("s*:selfs*,?","g");function Mn(m,u,l,p){return new wr(m).build(u,l,p)}class wr{constructor(u){this._driver=u}build(u,l,p){const M=new b(l);return this._resetContextStyleTimingState(M),R(this,Kt(u),M)}_resetContextStyleTimingState(u){u.currentQuerySelector="",u.collectedStyles=new Map,u.collectedStyles.set("",new Map),u.currentTime=0}visitTrigger(u,l){let p=l.queryCount=0,M=l.depCount=0;const V=[],ne=[];return"@"==u.name.charAt(0)&&l.errors.push(function zn(){return new o.wOt(3006,!1)}()),u.definitions.forEach(pe=>{if(this._resetContextStyleTimingState(l),pe.type==q.State){const Oe=pe,Le=Oe.name;Le.toString().split(/\s*,\s*/).forEach(At=>{Oe.name=At,V.push(this.visitState(Oe,l))}),Oe.name=Le}else if(pe.type==q.Transition){const Oe=this.visitTransition(pe,l);p+=Oe.queryCount,M+=Oe.depCount,ne.push(Oe)}else l.errors.push(function ir(){return new o.wOt(3007,!1)}())}),{type:q.Trigger,name:u.name,states:V,transitions:ne,queryCount:p,depCount:M,options:null}}visitState(u,l){const p=this.visitStyle(u.styles,l),M=u.options&&u.options.params||null;if(p.containsDynamicStyles){const V=new Set,ne=M||{};p.styles.forEach(pe=>{pe instanceof Map&&pe.forEach(Oe=>{sn(Oe).forEach(Le=>{ne.hasOwnProperty(Le)||V.add(Le)})})}),V.size&&l.errors.push(function fr(){return new o.wOt(3008,!1)}(0,V.values()))}return{type:q.State,name:u.name,style:p,options:M?{params:M}:null}}visitTransition(u,l){l.queryCount=0,l.depCount=0;const p=R(this,Kt(u.animation),l),M=function an(m,u){const l=[];return"string"==typeof m?m.split(/\s*,\s*/).forEach(p=>function En(m,u,l){if(":"==m[0]){const Oe=function Xt(m,u){switch(m){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,p)=>parseFloat(p)>parseFloat(l);case":decrement":return(l,p)=>parseFloat(p)<parseFloat(l);default:return u.push(function pr(){return new o.wOt(3016,!1)}()),"* => *"}}(m,l);if("function"==typeof Oe)return void u.push(Oe);m=Oe}const p=m.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==p||p.length<4)return l.push(function gn(){return new o.wOt(3015,!1)}()),u;const M=p[1],V=p[2],ne=p[3];u.push(Sn(M,ne)),"<"==V[0]&&(M!=bt||ne!=bt)&&u.push(Sn(ne,M))}(p,l,u)):l.push(m),l}(u.expr,l.errors);return{type:q.Transition,matchers:M,animation:p,queryCount:l.queryCount,depCount:l.depCount,options:y(u.options)}}visitSequence(u,l){return{type:q.Sequence,steps:u.steps.map(p=>R(this,p,l)),options:y(u.options)}}visitGroup(u,l){const p=l.currentTime;let M=0;const V=u.steps.map(ne=>{l.currentTime=p;const pe=R(this,ne,l);return M=Math.max(M,l.currentTime),pe});return l.currentTime=M,{type:q.Group,steps:V,options:y(u.options)}}visitAnimate(u,l){const p=function c(m,u){if(m.hasOwnProperty("duration"))return m;if("number"==typeof m)return k(W(m,u).duration,0,"");const l=m;if(l.split(/\s+/).some(V=>"{"==V.charAt(0)&&"{"==V.charAt(1))){const V=k(0,0,"");return V.dynamic=!0,V.strValue=l,V}const M=W(l,u);return k(M.duration,M.delay,M.easing)}(u.timings,l.errors);l.currentAnimateTimings=p;let M,V=u.styles?u.styles:Ue({});if(V.type==q.Keyframes)M=this.visitKeyframes(V,l);else{let ne=u.styles,pe=!1;if(!ne){pe=!0;const Le={};p.easing&&(Le.easing=p.easing),ne=Ue(Le)}l.currentTime+=p.duration+p.delay;const Oe=this.visitStyle(ne,l);Oe.isEmptyStep=pe,M=Oe}return l.currentAnimateTimings=null,{type:q.Animate,timings:p,style:M,options:null}}visitStyle(u,l){const p=this._makeStyleAst(u,l);return this._validateStyleAst(p,l),p}_makeStyleAst(u,l){const p=[],M=Array.isArray(u.styles)?u.styles:[u.styles];for(let pe of M)"string"==typeof pe?pe===ue?p.push(pe):l.errors.push(new o.wOt(3002,!1)):p.push(new Map(Object.entries(pe)));let V=!1,ne=null;return p.forEach(pe=>{if(pe instanceof Map&&(pe.has("easing")&&(ne=pe.get("easing"),pe.delete("easing")),!V))for(let Oe of pe.values())if(Oe.toString().indexOf("{{")>=0){V=!0;break}}),{type:q.Style,styles:p,easing:ne,offset:u.offset,containsDynamicStyles:V,options:null}}_validateStyleAst(u,l){const p=l.currentAnimateTimings;let M=l.currentTime,V=l.currentTime;p&&V>0&&(V-=p.duration+p.delay),u.styles.forEach(ne=>{"string"!=typeof ne&&ne.forEach((pe,Oe)=>{const Le=l.collectedStyles.get(l.currentQuerySelector),At=Le.get(Oe);let xt=!0;At&&(V!=M&&V>=At.startTime&&M<=At.endTime&&(l.errors.push(function cr(){return new o.wOt(3010,!1)}()),xt=!1),V=At.startTime),xt&&Le.set(Oe,{startTime:V,endTime:M}),l.options&&function Zt(m,u,l){const p=u.params||{},M=sn(m);M.length&&M.forEach(V=>{p.hasOwnProperty(V)||l.push(function Tn(){return new o.wOt(3001,!1)}())})}(pe,l.options,l.errors)})})}visitKeyframes(u,l){const p={type:q.Keyframes,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push(function Nr(){return new o.wOt(3011,!1)}()),p;let V=0;const ne=[];let pe=!1,Oe=!1,Le=0;const At=u.steps.map(Ar=>{const Hr=this._makeStyleAst(Ar,l);let li=null!=Hr.offset?Hr.offset:function z(m){if("string"==typeof m)return null;let u=null;if(Array.isArray(m))m.forEach(l=>{if(l instanceof Map&&l.has("offset")){const p=l;u=parseFloat(p.get("offset")),p.delete("offset")}});else if(m instanceof Map&&m.has("offset")){const l=m;u=parseFloat(l.get("offset")),l.delete("offset")}return u}(Hr.styles),br=0;return null!=li&&(V++,br=Hr.offset=li),Oe=Oe||br<0||br>1,pe=pe||br<Le,Le=br,ne.push(br),Hr});Oe&&l.errors.push(function Er(){return new o.wOt(3012,!1)}()),pe&&l.errors.push(function or(){return new o.wOt(3200,!1)}());const xt=u.steps.length;let Rn=0;V>0&&V<xt?l.errors.push(function Rr(){return new o.wOt(3202,!1)}()):0==V&&(Rn=1/(xt-1));const _n=xt-1,Jt=l.currentTime,un=l.currentAnimateTimings,mr=un.duration;return At.forEach((Ar,Hr)=>{const li=Rn>0?Hr==_n?1:Rn*Hr:ne[Hr],br=li*mr;l.currentTime=Jt+un.delay+br,un.duration=br,this._validateStyleAst(Ar,l),Ar.offset=li,p.styles.push(Ar)}),p}visitReference(u,l){return{type:q.Reference,animation:R(this,Kt(u.animation),l),options:y(u.options)}}visitAnimateChild(u,l){return l.depCount++,{type:q.AnimateChild,options:y(u.options)}}visitAnimateRef(u,l){return{type:q.AnimateRef,animation:this.visitReference(u.animation,l),options:y(u.options)}}visitQuery(u,l){const p=l.currentQuerySelector,M=u.options||{};l.queryCount++,l.currentQuery=u;const[V,ne]=function bi(m){const u=!!m.split(/\s*,\s*/).find(l=>":self"==l);return u&&(m=m.replace(kr,"")),m=m.replace(/@\*/g,P).replace(/@\w+/g,l=>P+"-"+l.slice(1)).replace(/:animating/g,H),[m,u]}(u.selector);l.currentQuerySelector=p.length?p+" "+V:V,mt(l.collectedStyles,l.currentQuerySelector,new Map);const pe=R(this,Kt(u.animation),l);return l.currentQuery=null,l.currentQuerySelector=p,{type:q.Query,selector:V,limit:M.limit||0,optional:!!M.optional,includeSelf:ne,animation:pe,originalSelector:u.selector,options:y(u.options)}}visitStagger(u,l){l.currentQuery||l.errors.push(function kn(){return new o.wOt(3013,!1)}());const p="full"===u.timings?{duration:0,delay:0,easing:"full"}:W(u.timings,l.errors,!0);return{type:q.Stagger,animation:R(this,Kt(u.animation),l),timings:p,options:null}}}class b{constructor(u){this.errors=u,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function y(m){return m?(m={...m}).params&&(m.params=function Wi(m){return m?{...m}:null}(m.params)):m={},m}function k(m,u,l){return{duration:m,delay:u,easing:l}}function j(m,u,l,p,M,V,ne=null,pe=!1){return{type:1,element:m,keyframes:u,preStyleProps:l,postStyleProps:p,duration:M,delay:V,totalTime:M+V,easing:ne,subTimeline:pe}}class Ae{constructor(){this._map=new Map}get(u){return this._map.get(u)||[]}append(u,l){let p=this._map.get(u);p||this._map.set(u,p=[]),p.push(...l)}has(u){return this._map.has(u)}clear(){this._map.clear()}}const mn=new RegExp(":enter","g"),si=new RegExp(":leave","g");function en(m,u,l,p,M,V=new Map,ne=new Map,pe,Oe,Le=[]){return(new Br).buildKeyframes(m,u,l,p,M,V,ne,pe,Oe,Le)}class Br{buildKeyframes(u,l,p,M,V,ne,pe,Oe,Le,At=[]){Le=Le||new Ae;const xt=new go(u,l,Le,M,V,At,[]);xt.options=Oe;const Rn=Oe.delay?K(Oe.delay):0;xt.currentTimeline.delayNextStep(Rn),xt.currentTimeline.setStyles([ne],null,xt.errors,Oe),R(this,p,xt);const _n=xt.timelines.filter(Jt=>Jt.containsAnimation());if(_n.length&&pe.size){let Jt;for(let un=_n.length-1;un>=0;un--){const mr=_n[un];if(mr.element===l){Jt=mr;break}}Jt&&!Jt.allowOnlyTimelineStyles()&&Jt.setStyles([pe],null,xt.errors,Oe)}return _n.length?_n.map(Jt=>Jt.buildKeyframes()):[j(l,[],[],[],0,Rn,"",!1)]}visitTrigger(u,l){}visitState(u,l){}visitTransition(u,l){}visitAnimateChild(u,l){const p=l.subInstructions.get(l.element);if(p){const M=l.createSubContext(u.options),V=l.currentTimeline.currentTime,ne=this._visitSubInstructions(p,M,M.options);V!=ne&&l.transformIntoNewTimeline(ne)}l.previousNode=u}visitAnimateRef(u,l){const p=l.createSubContext(u.options);p.transformIntoNewTimeline(),this._applyAnimationRefDelays([u.options,u.animation.options],l,p),this.visitReference(u.animation,p),l.transformIntoNewTimeline(p.currentTimeline.currentTime),l.previousNode=u}_applyAnimationRefDelays(u,l,p){for(const M of u){const V=M?.delay;if(V){const ne="number"==typeof V?V:K(tt(V,M?.params??{},l.errors));p.delayNextStep(ne)}}}_visitSubInstructions(u,l,p){let V=l.currentTimeline.currentTime;const ne=null!=p.duration?K(p.duration):null,pe=null!=p.delay?K(p.delay):null;return 0!==ne&&u.forEach(Oe=>{const Le=l.appendInstructionToTimeline(Oe,ne,pe);V=Math.max(V,Le.duration+Le.delay)}),V}visitReference(u,l){l.updateOptions(u.options,!0),R(this,u.animation,l),l.previousNode=u}visitSequence(u,l){const p=l.subContextCount;let M=l;const V=u.options;if(V&&(V.params||V.delay)&&(M=l.createSubContext(V),M.transformIntoNewTimeline(),null!=V.delay)){M.previousNode.type==q.Style&&(M.currentTimeline.snapshotCurrentStyles(),M.previousNode=ai);const ne=K(V.delay);M.delayNextStep(ne)}u.steps.length&&(u.steps.forEach(ne=>R(this,ne,M)),M.currentTimeline.applyStylesToKeyframe(),M.subContextCount>p&&M.transformIntoNewTimeline()),l.previousNode=u}visitGroup(u,l){const p=[];let M=l.currentTimeline.currentTime;const V=u.options&&u.options.delay?K(u.options.delay):0;u.steps.forEach(ne=>{const pe=l.createSubContext(u.options);V&&pe.delayNextStep(V),R(this,ne,pe),M=Math.max(M,pe.currentTimeline.currentTime),p.push(pe.currentTimeline)}),p.forEach(ne=>l.currentTimeline.mergeTimelineCollectedStyles(ne)),l.transformIntoNewTimeline(M),l.previousNode=u}_visitTiming(u,l){if(u.dynamic){const p=u.strValue;return W(l.params?tt(p,l.params,l.errors):p,l.errors)}return{duration:u.duration,delay:u.delay,easing:u.easing}}visitAnimate(u,l){const p=l.currentAnimateTimings=this._visitTiming(u.timings,l),M=l.currentTimeline;p.delay&&(l.incrementTime(p.delay),M.snapshotCurrentStyles());const V=u.style;V.type==q.Keyframes?this.visitKeyframes(V,l):(l.incrementTime(p.duration),this.visitStyle(V,l),M.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=u}visitStyle(u,l){const p=l.currentTimeline,M=l.currentAnimateTimings;!M&&p.hasCurrentStyleProperties()&&p.forwardFrame();const V=M&&M.easing||u.easing;u.isEmptyStep?p.applyEmptyStep(V):p.setStyles(u.styles,V,l.errors,l.options),l.previousNode=u}visitKeyframes(u,l){const p=l.currentAnimateTimings,M=l.currentTimeline.duration,V=p.duration,pe=l.createSubContext().currentTimeline;pe.easing=p.easing,u.styles.forEach(Oe=>{pe.forwardTime((Oe.offset||0)*V),pe.setStyles(Oe.styles,Oe.easing,l.errors,l.options),pe.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(pe),l.transformIntoNewTimeline(M+V),l.previousNode=u}visitQuery(u,l){const p=l.currentTimeline.currentTime,M=u.options||{},V=M.delay?K(M.delay):0;V&&(l.previousNode.type===q.Style||0==p&&l.currentTimeline.hasCurrentStyleProperties())&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=ai);let ne=p;const pe=l.invokeQuery(u.selector,u.originalSelector,u.limit,u.includeSelf,!!M.optional,l.errors);l.currentQueryTotal=pe.length;let Oe=null;pe.forEach((Le,At)=>{l.currentQueryIndex=At;const xt=l.createSubContext(u.options,Le);V&&xt.delayNextStep(V),Le===l.element&&(Oe=xt.currentTimeline),R(this,u.animation,xt),xt.currentTimeline.applyStylesToKeyframe(),ne=Math.max(ne,xt.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(ne),Oe&&(l.currentTimeline.mergeTimelineCollectedStyles(Oe),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=u}visitStagger(u,l){const p=l.parentContext,M=l.currentTimeline,V=u.timings,ne=Math.abs(V.duration),pe=ne*(l.currentQueryTotal-1);let Oe=ne*l.currentQueryIndex;switch(V.duration<0?"reverse":V.easing){case"reverse":Oe=pe-Oe;break;case"full":Oe=p.currentStaggerTime}const At=l.currentTimeline;Oe&&At.delayNextStep(Oe);const xt=At.currentTime;R(this,u.animation,l),l.previousNode=u,p.currentStaggerTime=M.currentTime-xt+(M.startTime-p.currentTimeline.startTime)}}const ai={};class go{constructor(u,l,p,M,V,ne,pe,Oe){this._driver=u,this.element=l,this.subInstructions=p,this._enterClassName=M,this._leaveClassName=V,this.errors=ne,this.timelines=pe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ai,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Oe||new ki(this._driver,l,0),pe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(u,l){if(!u)return;const p=u;let M=this.options;null!=p.duration&&(M.duration=K(p.duration)),null!=p.delay&&(M.delay=K(p.delay));const V=p.params;if(V){let ne=M.params;ne||(ne=this.options.params={}),Object.keys(V).forEach(pe=>{(!l||!ne.hasOwnProperty(pe))&&(ne[pe]=tt(V[pe],ne,this.errors))})}}_copyOptions(){const u={};if(this.options){const l=this.options.params;if(l){const p=u.params={};Object.keys(l).forEach(M=>{p[M]=l[M]})}}return u}createSubContext(u=null,l,p){const M=l||this.element,V=new go(this._driver,M,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(M,p||0));return V.previousNode=this.previousNode,V.currentAnimateTimings=this.currentAnimateTimings,V.options=this._copyOptions(),V.updateOptions(u),V.currentQueryIndex=this.currentQueryIndex,V.currentQueryTotal=this.currentQueryTotal,V.parentContext=this,this.subContextCount++,V}transformIntoNewTimeline(u){return this.previousNode=ai,this.currentTimeline=this.currentTimeline.fork(this.element,u),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(u,l,p){const M={duration:l??u.duration,delay:this.currentTimeline.currentTime+(p??0)+u.delay,easing:""},V=new ws(this._driver,u.element,u.keyframes,u.preStyleProps,u.postStyleProps,M,u.stretchStartingKeyframe);return this.timelines.push(V),M}incrementTime(u){this.currentTimeline.forwardTime(this.currentTimeline.duration+u)}delayNextStep(u){u>0&&this.currentTimeline.delayNextStep(u)}invokeQuery(u,l,p,M,V,ne){let pe=[];if(M&&pe.push(this.element),u.length>0){u=(u=u.replace(mn,"."+this._enterClassName)).replace(si,"."+this._leaveClassName);let Le=this._driver.query(this.element,u,1!=p);0!==p&&(Le=p<0?Le.slice(Le.length+p,Le.length):Le.slice(0,p)),pe.push(...Le)}return!V&&0==pe.length&&ne.push(function Vr(){return new o.wOt(3014,!1)}()),pe}}class ki{constructor(u,l,p,M){this._driver=u,this.element=l,this.startTime=p,this._elementTimelineStylesLookup=M,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(l),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(l,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(u){const l=1===this._keyframes.size&&this._pendingStyles.size;this.duration||l?(this.forwardTime(this.currentTime+u),l&&this.snapshotCurrentStyles()):this.startTime+=u}fork(u,l){return this.applyStylesToKeyframe(),new ki(this._driver,u,l||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(u){this.applyStylesToKeyframe(),this.duration=u,this._loadKeyframe()}_updateStyle(u,l){this._localTimelineStyles.set(u,l),this._globalTimelineStyles.set(u,l),this._styleSummary.set(u,{time:this.currentTime,value:l})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(u){u&&this._previousKeyframe.set("easing",u);for(let[l,p]of this._globalTimelineStyles)this._backFill.set(l,p||ue),this._currentKeyframe.set(l,ue);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(u,l,p,M){l&&this._previousKeyframe.set("easing",l);const V=M&&M.params||{},ne=function as(m,u){const l=new Map;let p;return m.forEach(M=>{if("*"===M){p??=u.keys();for(let V of p)l.set(V,ue)}else for(let[V,ne]of M)l.set(V,ne)}),l}(u,this._globalTimelineStyles);for(let[pe,Oe]of ne){const Le=tt(Oe,V,p);this._pendingStyles.set(pe,Le),this._localTimelineStyles.has(pe)||this._backFill.set(pe,this._globalTimelineStyles.get(pe)??ue),this._updateStyle(pe,Le)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((u,l)=>{this._currentKeyframe.set(l,u)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((u,l)=>{this._currentKeyframe.has(l)||this._currentKeyframe.set(l,u)}))}snapshotCurrentStyles(){for(let[u,l]of this._localTimelineStyles)this._pendingStyles.set(u,l),this._updateStyle(u,l)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const u=[];for(let l in this._currentKeyframe)u.push(l);return u}mergeTimelineCollectedStyles(u){u._styleSummary.forEach((l,p)=>{const M=this._styleSummary.get(p);(!M||l.time>M.time)&&this._updateStyle(p,l.value)})}buildKeyframes(){this.applyStylesToKeyframe();const u=new Set,l=new Set,p=1===this._keyframes.size&&0===this.duration;let M=[];this._keyframes.forEach((pe,Oe)=>{const Le=new Map([...this._backFill,...pe]);Le.forEach((At,xt)=>{"!"===At?u.add(xt):At===ue&&l.add(xt)}),p||Le.set("offset",Oe/this.duration),M.push(Le)});const V=[...u.values()],ne=[...l.values()];if(p){const pe=M[0],Oe=new Map(pe);pe.set("offset",0),Oe.set("offset",1),M=[pe,Oe]}return j(this.element,M,V,ne,this.duration,this.startTime,this.easing,!1)}}class ws extends ki{constructor(u,l,p,M,V,ne,pe=!1){super(u,l,ne.delay),this.keyframes=p,this.preStyleProps=M,this.postStyleProps=V,this._stretchStartingKeyframe=pe,this.timings={duration:ne.duration,delay:ne.delay,easing:ne.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let u=this.keyframes,{delay:l,duration:p,easing:M}=this.timings;if(this._stretchStartingKeyframe&&l){const V=[],ne=p+l,pe=l/ne,Oe=new Map(u[0]);Oe.set("offset",0),V.push(Oe);const Le=new Map(u[0]);Le.set("offset",Oo(pe)),V.push(Le);const At=u.length-1;for(let xt=1;xt<=At;xt++){let Rn=new Map(u[xt]);const _n=Rn.get("offset");Rn.set("offset",Oo((l+_n*p)/ne)),V.push(Rn)}p=ne,l=0,M="",u=V}return j(this.element,u,this.preStyleProps,this.postStyleProps,p,l,M,!0)}}function Oo(m,u=3){const l=Math.pow(10,u-1);return Math.round(m*l)/l}function Uo(m,u,l,p,M,V,ne,pe,Oe,Le,At,xt,Rn){return{type:0,element:m,triggerName:u,isRemovalTransition:M,fromState:l,fromStyles:V,toState:p,toStyles:ne,timelines:pe,queriedElements:Oe,preStyleProps:Le,postStyleProps:At,totalTime:xt,errors:Rn}}const $o={};class ca{constructor(u,l,p){this._triggerName=u,this.ast=l,this._stateStyles=p}match(u,l,p,M){return function gl(m,u,l,p,M){return m.some(V=>V(u,l,p,M))}(this.ast.matchers,u,l,p,M)}buildStyles(u,l,p){let M=this._stateStyles.get("*");return void 0!==u&&(M=this._stateStyles.get(u?.toString())||M),M?M.buildStyles(l,p):new Map}build(u,l,p,M,V,ne,pe,Oe,Le,At){const xt=[],Rn=this.ast.options&&this.ast.options.params||$o,Jt=this.buildStyles(p,pe&&pe.params||$o,xt),un=Oe&&Oe.params||$o,mr=this.buildStyles(M,un,xt),Ar=new Set,Hr=new Map,li=new Map,br="void"===M,fs={params:Go(un,Rn),delay:this.ast.options?.delay},Bi=At?[]:en(u,l,this.ast.animation,V,ne,Jt,mr,fs,Le,xt);let Qr=0;return Bi.forEach(vi=>{Qr=Math.max(vi.duration+vi.delay,Qr)}),xt.length?Uo(l,this._triggerName,p,M,br,Jt,mr,[],[],Hr,li,Qr,xt):(Bi.forEach(vi=>{const Co=vi.element,wo=mt(Hr,Co,new Set);vi.preStyleProps.forEach(ji=>wo.add(ji));const Ii=mt(li,Co,new Set);vi.postStyleProps.forEach(ji=>Ii.add(ji)),Co!==l&&Ar.add(Co)}),Uo(l,this._triggerName,p,M,br,Jt,mr,Bi,[...Ar.values()],Hr,li,Qr))}}function Go(m,u){const l={...u};return Object.entries(m).forEach(([p,M])=>{null!=M&&(l[p]=M)}),l}class ml{constructor(u,l,p){this.styles=u,this.defaultParams=l,this.normalizer=p}buildStyles(u,l){const p=new Map,M=Go(u,this.defaultParams);return this.styles.styles.forEach(V=>{"string"!=typeof V&&V.forEach((ne,pe)=>{ne&&(ne=tt(ne,M,l));const Oe=this.normalizer.normalizePropertyName(pe,l);ne=this.normalizer.normalizeStyleValue(pe,Oe,ne,l),p.set(pe,ne)})}),p}}class Po{constructor(u,l,p){this.name=u,this.ast=l,this._normalizer=p,this.transitionFactories=[],this.states=new Map,l.states.forEach(M=>{this.states.set(M.name,new ml(M.style,M.options&&M.options.params||{},p))}),Ct(this.states,"true","1"),Ct(this.states,"false","0"),l.transitions.forEach(M=>{this.transitionFactories.push(new ca(u,M,this.states))}),this.fallbackTransition=function bs(m,u){return new ca(m,{type:q.Transition,animation:{type:q.Sequence,steps:[],options:null},matchers:[(ne,pe)=>!0],options:null,queryCount:0,depCount:0},u)}(u,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(u,l,p,M){return this.transitionFactories.find(ne=>ne.match(u,l,p,M))||null}matchStyles(u,l,p){return this.fallbackTransition.buildStyles(u,l,p)}}function Ct(m,u,l){m.has(u)?m.has(l)||m.set(l,m.get(u)):m.has(l)&&m.set(u,m.get(l))}const Ji=new Ae;class eo{constructor(u,l,p){this.bodyNode=u,this._driver=l,this._normalizer=p,this._animations=new Map,this._playersById=new Map,this.players=[]}register(u,l){const p=[],V=Mn(this._driver,l,p,[]);if(p.length)throw function tr(){return new o.wOt(3503,!1)}();this._animations.set(u,V)}_buildPlayer(u,l,p){const M=u.element,V=je(this._normalizer,u.keyframes,l,p);return this._driver.animate(M,V,u.duration,u.delay,u.easing,[],!0)}create(u,l,p={}){const M=[],V=this._animations.get(u);let ne;const pe=new Map;if(V?(ne=en(this._driver,l,V,Bt,Lt,new Map,new Map,p,Ji,M),ne.forEach(At=>{const xt=mt(pe,At.element,new Map);At.postStyleProps.forEach(Rn=>xt.set(Rn,null))})):(M.push(function Vt(){return new o.wOt(3300,!1)}()),ne=[]),M.length)throw function Ze(){return new o.wOt(3504,!1)}();pe.forEach((At,xt)=>{At.forEach((Rn,_n)=>{At.set(_n,this._driver.computeStyle(xt,_n,ue))})});const Le=me(ne.map(At=>{const xt=pe.get(At.element);return this._buildPlayer(At,new Map,xt)}));return this._playersById.set(u,Le),Le.onDestroy(()=>this.destroy(u)),this.players.push(Le),Le}destroy(u){const l=this._getPlayer(u);l.destroy(),this._playersById.delete(u);const p=this.players.indexOf(l);p>=0&&this.players.splice(p,1)}_getPlayer(u){const l=this._playersById.get(u);if(!l)throw function ui(){return new o.wOt(3301,!1)}();return l}listen(u,l,p,M){const V=ot(l,"","","");return ve(this._getPlayer(u),p,V,M),()=>{}}command(u,l,p,M){if("register"==p)return void this.register(u,M[0]);if("create"==p)return void this.create(u,l,M[0]||{});const V=this._getPlayer(u);switch(p){case"play":V.play();break;case"pause":V.pause();break;case"reset":V.reset();break;case"restart":V.restart();break;case"finish":V.finish();break;case"init":V.init();break;case"setPosition":V.setPosition(parseFloat(M[0]));break;case"destroy":this.destroy(u)}}}const zo="ng-animate-queued",to="ng-animate-disabled",mo=[],Li={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Es={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Kr="__ng_removed";class Di{get params(){return this.options.params}constructor(u,l=""){this.namespaceId=l;const p=u&&u.hasOwnProperty("value");if(this.value=function Dr(m){return m??null}(p?u.value:u),p){const{value:V,...ne}=u;this.options=ne}else this.options={};this.options.params||(this.options.params={})}absorbOptions(u){const l=u.params;if(l){const p=this.options.params;Object.keys(l).forEach(M=>{null==p[M]&&(p[M]=l[M])})}}}const gi="void",gr=new Di(gi);class da{constructor(u,l,p){this.id=u,this.hostElement=l,this._engine=p,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+u,jr(l,this._hostClassName)}listen(u,l,p,M){if(!this._triggers.has(l))throw function Pr(){return new o.wOt(3302,!1)}();if(null==p||0==p.length)throw function Cr(){return new o.wOt(3303,!1)}();if(!function Ts(m){return"start"==m||"done"==m}(p))throw function Fr(){return new o.wOt(3400,!1)}();const V=mt(this._elementListeners,u,[]),ne={name:l,phase:p,callback:M};V.push(ne);const pe=mt(this._engine.statesByElement,u,new Map);return pe.has(l)||(jr(u,Nt),jr(u,Nt+"-"+l),pe.set(l,gr)),()=>{this._engine.afterFlush(()=>{const Oe=V.indexOf(ne);Oe>=0&&V.splice(Oe,1),this._triggers.has(l)||pe.delete(l)})}}register(u,l){return!this._triggers.has(u)&&(this._triggers.set(u,l),!0)}_getTrigger(u){const l=this._triggers.get(u);if(!l)throw function ur(){return new o.wOt(3401,!1)}();return l}trigger(u,l,p,M=!0){const V=this._getTrigger(l),ne=new Vn(this.id,l,u);let pe=this._engine.statesByElement.get(u);pe||(jr(u,Nt),jr(u,Nt+"-"+l),this._engine.statesByElement.set(u,pe=new Map));let Oe=pe.get(l);const Le=new Di(p,this.id);if(!(p&&p.hasOwnProperty("value"))&&Oe&&Le.absorbOptions(Oe.options),pe.set(l,Le),Oe||(Oe=gr),Le.value!==gi&&Oe.value===Le.value){if(!function Vi(m,u){const l=Object.keys(m),p=Object.keys(u);if(l.length!=p.length)return!1;for(let M=0;M<l.length;M++){const V=l[M];if(!u.hasOwnProperty(V)||m[V]!==u[V])return!1}return!0}(Oe.params,Le.params)){const un=[],mr=V.matchStyles(Oe.value,Oe.params,un),Ar=V.matchStyles(Le.value,Le.params,un);un.length?this._engine.reportError(un):this._engine.afterFlush(()=>{wt(u,mr),Je(u,Ar)})}return}const Rn=mt(this._engine.playersByElement,u,[]);Rn.forEach(un=>{un.namespaceId==this.id&&un.triggerName==l&&un.queued&&un.destroy()});let _n=V.matchTransition(Oe.value,Le.value,u,Le.params),Jt=!1;if(!_n){if(!M)return;_n=V.fallbackTransition,Jt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:u,triggerName:l,transition:_n,fromState:Oe,toState:Le,player:ne,isFallbackTransition:Jt}),Jt||(jr(u,zo),ne.onStart(()=>{Tr(u,zo)})),ne.onDone(()=>{let un=this.players.indexOf(ne);un>=0&&this.players.splice(un,1);const mr=this._engine.playersByElement.get(u);if(mr){let Ar=mr.indexOf(ne);Ar>=0&&mr.splice(Ar,1)}}),this.players.push(ne),Rn.push(ne),ne}deregister(u){this._triggers.delete(u),this._engine.statesByElement.forEach(l=>l.delete(u)),this._elementListeners.forEach((l,p)=>{this._elementListeners.set(p,l.filter(M=>M.name!=u))})}clearElementCache(u){this._engine.statesByElement.delete(u),this._elementListeners.delete(u);const l=this._engine.playersByElement.get(u);l&&(l.forEach(p=>p.destroy()),this._engine.playersByElement.delete(u))}_signalRemovalForInnerTriggers(u,l){const p=this._engine.driver.query(u,P,!0);p.forEach(M=>{if(M[Kr])return;const V=this._engine.fetchNamespacesByElement(M);V.size?V.forEach(ne=>ne.triggerLeaveAnimation(M,l,!1,!0)):this.clearElementCache(M)}),this._engine.afterFlushAnimationsDone(()=>p.forEach(M=>this.clearElementCache(M)))}triggerLeaveAnimation(u,l,p,M){const V=this._engine.statesByElement.get(u),ne=new Map;if(V){const pe=[];if(V.forEach((Oe,Le)=>{if(ne.set(Le,Oe.value),this._triggers.has(Le)){const At=this.trigger(u,Le,gi,M);At&&pe.push(At)}}),pe.length)return this._engine.markElementAsRemoved(this.id,u,!0,l,ne),p&&me(pe).onDone(()=>this._engine.processLeaveNode(u)),!0}return!1}prepareLeaveAnimationListeners(u){const l=this._elementListeners.get(u),p=this._engine.statesByElement.get(u);if(l&&p){const M=new Set;l.forEach(V=>{const ne=V.name;if(M.has(ne))return;M.add(ne);const Oe=this._triggers.get(ne).fallbackTransition,Le=p.get(ne)||gr,At=new Di(gi),xt=new Vn(this.id,ne,u);this._engine.totalQueuedPlayers++,this._queue.push({element:u,triggerName:ne,transition:Oe,fromState:Le,toState:At,player:xt,isFallbackTransition:!0})})}}removeNode(u,l){const p=this._engine;if(u.childElementCount&&this._signalRemovalForInnerTriggers(u,l),this.triggerLeaveAnimation(u,l,!0))return;let M=!1;if(p.totalAnimations){const V=p.players.length?p.playersByQueriedElement.get(u):[];if(V&&V.length)M=!0;else{let ne=u;for(;ne=ne.parentNode;)if(p.statesByElement.get(ne)){M=!0;break}}}if(this.prepareLeaveAnimationListeners(u),M)p.markElementAsRemoved(this.id,u,!1,l);else{const V=u[Kr];(!V||V===Li)&&(p.afterFlush(()=>this.clearElementCache(u)),p.destroyInnerAnimations(u),p._onRemovalComplete(u,l))}}insertNode(u,l){jr(u,this._hostClassName)}drainQueuedTransitions(u){const l=[];return this._queue.forEach(p=>{const M=p.player;if(M.destroyed)return;const V=p.element,ne=this._elementListeners.get(V);ne&&ne.forEach(pe=>{if(pe.name==p.triggerName){const Oe=ot(V,p.triggerName,p.fromState.value,p.toState.value);Oe._data=u,ve(p.player,pe.phase,Oe,pe.callback)}}),M.markedForDestroy?this._engine.afterFlush(()=>{M.destroy()}):l.push(p)}),this._queue=[],l.sort((p,M)=>{const V=p.transition.ast.depCount,ne=M.transition.ast.depCount;return 0==V||0==ne?V-ne:this._engine.driver.containsElement(p.element,M.element)?1:-1})}destroy(u){this.players.forEach(l=>l.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,u)}}class ha{_onRemovalComplete(u,l){this.onRemovalComplete(u,l)}constructor(u,l,p){this.bodyNode=u,this.driver=l,this._normalizer=p,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,V)=>{}}get queuedPlayers(){const u=[];return this._namespaceList.forEach(l=>{l.players.forEach(p=>{p.queued&&u.push(p)})}),u}createNamespace(u,l){const p=new da(u,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(p,l):(this.newHostElements.set(l,p),this.collectEnterElement(l)),this._namespaceLookup[u]=p}_balanceNamespaceList(u,l){const p=this._namespaceList,M=this.namespacesByHostElement;if(p.length-1>=0){let ne=!1,pe=this.driver.getParentElement(l);for(;pe;){const Oe=M.get(pe);if(Oe){const Le=p.indexOf(Oe);p.splice(Le+1,0,u),ne=!0;break}pe=this.driver.getParentElement(pe)}ne||p.unshift(u)}else p.push(u);return M.set(l,u),u}register(u,l){let p=this._namespaceLookup[u];return p||(p=this.createNamespace(u,l)),p}registerTrigger(u,l,p){let M=this._namespaceLookup[u];M&&M.register(l,p)&&this.totalAnimations++}destroy(u,l){u&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const p=this._fetchNamespace(u);this.namespacesByHostElement.delete(p.hostElement);const M=this._namespaceList.indexOf(p);M>=0&&this._namespaceList.splice(M,1),p.destroy(l),delete this._namespaceLookup[u]}))}_fetchNamespace(u){return this._namespaceLookup[u]}fetchNamespacesByElement(u){const l=new Set,p=this.statesByElement.get(u);if(p)for(let M of p.values())if(M.namespaceId){const V=this._fetchNamespace(M.namespaceId);V&&l.add(V)}return l}trigger(u,l,p,M){if(Xi(l)){const V=this._fetchNamespace(u);if(V)return V.trigger(l,p,M),!0}return!1}insertNode(u,l,p,M){if(!Xi(l))return;const V=l[Kr];if(V&&V.setForRemoval){V.setForRemoval=!1,V.setForMove=!0;const ne=this.collectedLeaveElements.indexOf(l);ne>=0&&this.collectedLeaveElements.splice(ne,1)}if(u){const ne=this._fetchNamespace(u);ne&&ne.insertNode(l,p)}M&&this.collectEnterElement(l)}collectEnterElement(u){this.collectedEnterElements.push(u)}markElementAsDisabled(u,l){l?this.disabledNodes.has(u)||(this.disabledNodes.add(u),jr(u,to)):this.disabledNodes.has(u)&&(this.disabledNodes.delete(u),Tr(u,to))}removeNode(u,l,p){if(Xi(l)){const M=u?this._fetchNamespace(u):null;M?M.removeNode(l,p):this.markElementAsRemoved(u,l,!1,p);const V=this.namespacesByHostElement.get(l);V&&V.id!==u&&V.removeNode(l,p)}else this._onRemovalComplete(l,p)}markElementAsRemoved(u,l,p,M,V){this.collectedLeaveElements.push(l),l[Kr]={namespaceId:u,setForRemoval:M,hasAnimation:p,removedBeforeQueried:!1,previousTriggersValues:V}}listen(u,l,p,M,V){return Xi(l)?this._fetchNamespace(u).listen(l,p,M,V):()=>{}}_buildInstruction(u,l,p,M,V){return u.transition.build(this.driver,u.element,u.fromState.value,u.toState.value,p,M,u.fromState.options,u.toState.options,l,V)}destroyInnerAnimations(u){let l=this.driver.query(u,P,!0);l.forEach(p=>this.destroyActiveAnimationsForElement(p)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(u,H,!0),l.forEach(p=>this.finishActiveQueriedAnimationOnElement(p)))}destroyActiveAnimationsForElement(u){const l=this.playersByElement.get(u);l&&l.forEach(p=>{p.queued?p.markedForDestroy=!0:p.destroy()})}finishActiveQueriedAnimationOnElement(u){const l=this.playersByQueriedElement.get(u);l&&l.forEach(p=>p.finish())}whenRenderingDone(){return new Promise(u=>{if(this.players.length)return me(this.players).onDone(()=>u());u()})}processLeaveNode(u){const l=u[Kr];if(l&&l.setForRemoval){if(u[Kr]=Li,l.namespaceId){this.destroyInnerAnimations(u);const p=this._fetchNamespace(l.namespaceId);p&&p.clearElementCache(u)}this._onRemovalComplete(u,l.setForRemoval)}u.classList?.contains(to)&&this.markElementAsDisabled(u,!1),this.driver.query(u,".ng-animate-disabled",!0).forEach(p=>{this.markElementAsDisabled(p,!1)})}flush(u=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((p,M)=>this._balanceNamespaceList(p,M)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let p=0;p<this.collectedEnterElements.length;p++)jr(this.collectedEnterElements[p],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const p=[];try{l=this._flushAnimations(p,u)}finally{for(let M=0;M<p.length;M++)p[M]()}}else for(let p=0;p<this.collectedLeaveElements.length;p++)this.processLeaveNode(this.collectedLeaveElements[p]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(p=>p()),this._flushFns=[],this._whenQuietFns.length){const p=this._whenQuietFns;this._whenQuietFns=[],l.length?me(l).onDone(()=>{p.forEach(M=>M())}):p.forEach(M=>M())}}reportError(u){throw function xr(){return new o.wOt(3402,!1)}()}_flushAnimations(u,l){const p=new Ae,M=[],V=new Map,ne=[],pe=new Map,Oe=new Map,Le=new Map,At=new Set;this.disabledNodes.forEach(jt=>{At.add(jt);const zt=this.driver.query(jt,".ng-animate-queued",!0);for(let nn=0;nn<zt.length;nn++)At.add(zt[nn])});const xt=this.bodyNode,Rn=Array.from(this.statesByElement.keys()),_n=qt(Rn,this.collectedEnterElements),Jt=new Map;let un=0;_n.forEach((jt,zt)=>{const nn=Bt+un++;Jt.set(zt,nn),jt.forEach(Gn=>jr(Gn,nn))});const mr=[],Ar=new Set,Hr=new Set;for(let jt=0;jt<this.collectedLeaveElements.length;jt++){const zt=this.collectedLeaveElements[jt],nn=zt[Kr];nn&&nn.setForRemoval&&(mr.push(zt),Ar.add(zt),nn.hasAnimation?this.driver.query(zt,".ng-star-inserted",!0).forEach(Gn=>Ar.add(Gn)):Hr.add(zt))}const li=new Map,br=qt(Rn,Array.from(Ar));br.forEach((jt,zt)=>{const nn=Lt+un++;li.set(zt,nn),jt.forEach(Gn=>jr(Gn,nn))}),u.push(()=>{_n.forEach((jt,zt)=>{const nn=Jt.get(zt);jt.forEach(Gn=>Tr(Gn,nn))}),br.forEach((jt,zt)=>{const nn=li.get(zt);jt.forEach(Gn=>Tr(Gn,nn))}),mr.forEach(jt=>{this.processLeaveNode(jt)})});const fs=[],Bi=[];for(let jt=this._namespaceList.length-1;jt>=0;jt--)this._namespaceList[jt].drainQueuedTransitions(l).forEach(nn=>{const Gn=nn.player,Zr=nn.element;if(fs.push(Gn),this.collectedEnterElements.length){const ci=Zr[Kr];if(ci&&ci.setForMove){if(ci.previousTriggersValues&&ci.previousTriggersValues.has(nn.triggerName)){const hr=ci.previousTriggersValues.get(nn.triggerName),Pi=this.statesByElement.get(nn.element);if(Pi&&Pi.has(nn.triggerName)){const Ea=Pi.get(nn.triggerName);Ea.value=hr,Pi.set(nn.triggerName,Ea)}}return void Gn.destroy()}}const Hi=!xt||!this.driver.containsElement(xt,Zr),Oi=li.get(Zr),bo=Jt.get(Zr),dr=this._buildInstruction(nn,p,bo,Oi,Hi);if(dr.errors&&dr.errors.length)return void Bi.push(dr);if(Hi)return Gn.onStart(()=>wt(Zr,dr.fromStyles)),Gn.onDestroy(()=>Je(Zr,dr.toStyles)),void M.push(Gn);if(nn.isFallbackTransition)return Gn.onStart(()=>wt(Zr,dr.fromStyles)),Gn.onDestroy(()=>Je(Zr,dr.toStyles)),void M.push(Gn);const Zo=[];dr.timelines.forEach(ci=>{ci.stretchStartingKeyframe=!0,this.disabledNodes.has(ci.element)||Zo.push(ci)}),dr.timelines=Zo,p.append(Zr,dr.timelines),ne.push({instruction:dr,player:Gn,element:Zr}),dr.queriedElements.forEach(ci=>mt(pe,ci,[]).push(Gn)),dr.preStyleProps.forEach((ci,hr)=>{if(ci.size){let Pi=Oe.get(hr);Pi||Oe.set(hr,Pi=new Set),ci.forEach((Ea,Jo)=>Pi.add(Jo))}}),dr.postStyleProps.forEach((ci,hr)=>{let Pi=Le.get(hr);Pi||Le.set(hr,Pi=new Set),ci.forEach((Ea,Jo)=>Pi.add(Jo))})});if(Bi.length){const jt=[];Bi.forEach(zt=>{jt.push(function oi(){return new o.wOt(3505,!1)}())}),fs.forEach(zt=>zt.destroy()),this.reportError(jt)}const Qr=new Map,vi=new Map;ne.forEach(jt=>{const zt=jt.element;p.has(zt)&&(vi.set(zt,zt),this._beforeAnimationBuild(jt.player.namespaceId,jt.instruction,Qr))}),M.forEach(jt=>{const zt=jt.element;this._getPreviousPlayers(zt,!1,jt.namespaceId,jt.triggerName,null).forEach(Gn=>{mt(Qr,zt,[]).push(Gn),Gn.destroy()})});const Co=mr.filter(jt=>fa(jt,Oe,Le)),wo=new Map;ro(wo,this.driver,Hr,Le,ue).forEach(jt=>{fa(jt,Oe,Le)&&Co.push(jt)});const ji=new Map;_n.forEach((jt,zt)=>{ro(ji,this.driver,new Set(jt),Oe,"!")}),Co.forEach(jt=>{const zt=wo.get(jt),nn=ji.get(jt);wo.set(jt,new Map([...zt?.entries()??[],...nn?.entries()??[]]))});const js=[],Jc=[],eu={};ne.forEach(jt=>{const{element:zt,player:nn,instruction:Gn}=jt;if(p.has(zt)){if(At.has(zt))return nn.onDestroy(()=>Je(zt,Gn.toStyles)),nn.disabled=!0,nn.overrideTotalTime(Gn.totalTime),void M.push(nn);let Zr=eu;if(vi.size>1){let Oi=zt;const bo=[];for(;Oi=Oi.parentNode;){const dr=vi.get(Oi);if(dr){Zr=dr;break}bo.push(Oi)}bo.forEach(dr=>vi.set(dr,Zr))}const Hi=this._buildAnimation(nn.namespaceId,Gn,Qr,V,ji,wo);if(nn.setRealPlayer(Hi),Zr===eu)js.push(nn);else{const Oi=this.playersByElement.get(Zr);Oi&&Oi.length&&(nn.parentPlayer=me(Oi)),M.push(nn)}}else wt(zt,Gn.fromStyles),nn.onDestroy(()=>Je(zt,Gn.toStyles)),Jc.push(nn),At.has(zt)&&M.push(nn)}),Jc.forEach(jt=>{const zt=V.get(jt.element);if(zt&&zt.length){const nn=me(zt);jt.setRealPlayer(nn)}}),M.forEach(jt=>{jt.parentPlayer?jt.syncPlayerEvents(jt.parentPlayer):jt.destroy()});for(let jt=0;jt<mr.length;jt++){const zt=mr[jt],nn=zt[Kr];if(Tr(zt,Lt),nn&&nn.hasAnimation)continue;let Gn=[];if(pe.size){let Hi=pe.get(zt);Hi&&Hi.length&&Gn.push(...Hi);let Oi=this.driver.query(zt,H,!0);for(let bo=0;bo<Oi.length;bo++){let dr=pe.get(Oi[bo]);dr&&dr.length&&Gn.push(...dr)}}const Zr=Gn.filter(Hi=>!Hi.destroyed);Zr.length?Ms(this,zt,Zr):this.processLeaveNode(zt)}return mr.length=0,js.forEach(jt=>{this.players.push(jt),jt.onDone(()=>{jt.destroy();const zt=this.players.indexOf(jt);this.players.splice(zt,1)}),jt.play()}),js}afterFlush(u){this._flushFns.push(u)}afterFlushAnimationsDone(u){this._whenQuietFns.push(u)}_getPreviousPlayers(u,l,p,M,V){let ne=[];if(l){const pe=this.playersByQueriedElement.get(u);pe&&(ne=pe)}else{const pe=this.playersByElement.get(u);if(pe){const Oe=!V||V==gi;pe.forEach(Le=>{Le.queued||!Oe&&Le.triggerName!=M||ne.push(Le)})}}return(p||M)&&(ne=ne.filter(pe=>!(p&&p!=pe.namespaceId||M&&M!=pe.triggerName))),ne}_beforeAnimationBuild(u,l,p){const V=l.element,ne=l.isRemovalTransition?void 0:u,pe=l.isRemovalTransition?void 0:l.triggerName;for(const Oe of l.timelines){const Le=Oe.element,At=Le!==V,xt=mt(p,Le,[]);this._getPreviousPlayers(Le,At,ne,pe,l.toState).forEach(_n=>{const Jt=_n.getRealPlayer();Jt.beforeDestroy&&Jt.beforeDestroy(),_n.destroy(),xt.push(_n)})}wt(V,l.fromStyles)}_buildAnimation(u,l,p,M,V,ne){const pe=l.triggerName,Oe=l.element,Le=[],At=new Set,xt=new Set,Rn=l.timelines.map(Jt=>{const un=Jt.element;At.add(un);const mr=un[Kr];if(mr&&mr.removedBeforeQueried)return new _e(Jt.duration,Jt.delay);const Ar=un!==Oe,Hr=function Ss(m){const u=[];return Is(m,u),u}((p.get(un)||mo).map(Qr=>Qr.getRealPlayer())).filter(Qr=>!!Qr.element&&Qr.element===un),li=V.get(un),br=ne.get(un),fs=je(this._normalizer,Jt.keyframes,li,br),Bi=this._buildPlayer(Jt,fs,Hr);if(Jt.subTimeline&&M&&xt.add(un),Ar){const Qr=new Vn(u,pe,un);Qr.setRealPlayer(Bi),Le.push(Qr)}return Bi});Le.forEach(Jt=>{mt(this.playersByQueriedElement,Jt.element,[]).push(Jt),Jt.onDone(()=>function Ds(m,u,l){let p=m.get(u);if(p){if(p.length){const M=p.indexOf(l);p.splice(M,1)}0==p.length&&m.delete(u)}return p}(this.playersByQueriedElement,Jt.element,Jt))}),At.forEach(Jt=>jr(Jt,$));const _n=me(Rn);return _n.onDestroy(()=>{At.forEach(Jt=>Tr(Jt,$)),Je(Oe,l.toStyles)}),xt.forEach(Jt=>{mt(M,Jt,[]).push(_n)}),_n}_buildPlayer(u,l,p){return l.length>0?this.driver.animate(u.element,l,u.duration,u.delay,u.easing,p):new _e(u.duration,u.delay)}}class Vn{constructor(u,l,p){this.namespaceId=u,this.triggerName=l,this.element=p,this._player=new _e,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(u){this._containsRealPlayer||(this._player=u,this._queuedCallbacks.forEach((l,p)=>{l.forEach(M=>ve(u,p,void 0,M))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(u.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(u){this.totalTime=u}syncPlayerEvents(u){const l=this._player;l.triggerCallback&&u.onStart(()=>l.triggerCallback("start")),u.onDone(()=>this.finish()),u.onDestroy(()=>this.destroy())}_queueEvent(u,l){mt(this._queuedCallbacks,u,[]).push(l)}onDone(u){this.queued&&this._queueEvent("done",u),this._player.onDone(u)}onStart(u){this.queued&&this._queueEvent("start",u),this._player.onStart(u)}onDestroy(u){this.queued&&this._queueEvent("destroy",u),this._player.onDestroy(u)}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(u){this.queued||this._player.setPosition(u)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(u){const l=this._player;l.triggerCallback&&l.triggerCallback(u)}}function Xi(m){return m&&1===m.nodeType}function us(m,u){const l=m.style.display;return m.style.display=u??"none",l}function ro(m,u,l,p,M){const V=[];l.forEach(Oe=>V.push(us(Oe)));const ne=[];p.forEach((Oe,Le)=>{const At=new Map;Oe.forEach(xt=>{const Rn=u.computeStyle(Le,xt,M);At.set(xt,Rn),(!Rn||0==Rn.length)&&(Le[Kr]=Es,ne.push(Le))}),m.set(Le,At)});let pe=0;return l.forEach(Oe=>us(Oe,V[pe++])),ne}function qt(m,u){const l=new Map;if(m.forEach(pe=>l.set(pe,[])),0==u.length)return l;const M=new Set(u),V=new Map;function ne(pe){if(!pe)return 1;let Oe=V.get(pe);if(Oe)return Oe;const Le=pe.parentNode;return Oe=l.has(Le)?Le:M.has(Le)?1:ne(Le),V.set(pe,Oe),Oe}return u.forEach(pe=>{const Oe=ne(pe);1!==Oe&&l.get(Oe).push(pe)}),l}function jr(m,u){m.classList?.add(u)}function Tr(m,u){m.classList?.remove(u)}function Ms(m,u,l){me(l).onDone(()=>m.processLeaveNode(u))}function Is(m,u){for(let l=0;l<m.length;l++){const p=m[l];p instanceof be?Is(p.players,u):u.push(p)}}function fa(m,u,l){const p=l.get(m);if(!p)return!1;let M=u.get(m);return M?p.forEach(V=>M.add(V)):u.set(m,p),l.delete(m),!0}class Un{constructor(u,l,p){this._driver=l,this._normalizer=p,this._triggerCache={},this.onRemovalComplete=(M,V)=>{},this._transitionEngine=new ha(u.body,l,p),this._timelineEngine=new eo(u.body,l,p),this._transitionEngine.onRemovalComplete=(M,V)=>this.onRemovalComplete(M,V)}registerTrigger(u,l,p,M,V){const ne=u+"-"+M;let pe=this._triggerCache[ne];if(!pe){const Oe=[],At=Mn(this._driver,V,Oe,[]);if(Oe.length)throw function Zn(){return new o.wOt(3404,!1)}();pe=function ls(m,u,l){return new Po(m,u,l)}(M,At,this._normalizer),this._triggerCache[ne]=pe}this._transitionEngine.registerTrigger(l,M,pe)}register(u,l){this._transitionEngine.register(u,l)}destroy(u,l){this._transitionEngine.destroy(u,l)}onInsert(u,l,p,M){this._transitionEngine.insertNode(u,l,p,M)}onRemove(u,l,p){this._transitionEngine.removeNode(u,l,p)}disableAnimations(u,l){this._transitionEngine.markElementAsDisabled(u,l)}process(u,l,p,M){if("@"==p.charAt(0)){const[V,ne]=Dt(p);this._timelineEngine.command(V,l,ne,M)}else this._transitionEngine.trigger(u,l,p,M)}listen(u,l,p,M,V){if("@"==p.charAt(0)){const[ne,pe]=Dt(p);return this._timelineEngine.listen(ne,l,pe,V)}return this._transitionEngine.listen(u,l,p,M,V)}flush(u=-1){this._transitionEngine.flush(u)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(u){this._transitionEngine.afterFlushAnimationsDone(u)}}class Xo{static#e=this.initialStylesByElement=new WeakMap;constructor(u,l,p){this._element=u,this._startStyles=l,this._endStyles=p,this._state=0;let M=Xo.initialStylesByElement.get(u);M||Xo.initialStylesByElement.set(u,M=new Map),this._initialStyles=M}start(){this._state<1&&(this._startStyles&&Je(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Je(this._element,this._initialStyles),this._endStyles&&(Je(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Xo.initialStylesByElement.delete(this._element),this._startStyles&&(wt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wt(this._element,this._endStyles),this._endStyles=null),Je(this._element,this._initialStyles),this._state=3)}}function Os(m){let u=null;return m.forEach((l,p)=>{(function Bc(m){return"display"===m||"position"===m})(p)&&(u=u||new Map,u.set(p,l))}),u}class pa{constructor(u,l,p,M){this.element=u,this.keyframes=l,this.options=p,this._specialStyles=M,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=p.duration,this._delay=p.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(u=>u()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const u=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,u,this.options),this._finalKeyframe=u.length?u[u.length-1]:new Map;const l=()=>this._onFinish();this.domPlayer.addEventListener("finish",l),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",l)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(u){const l=[];return u.forEach(p=>{l.push(Object.fromEntries(p))}),l}_triggerWebAnimation(u,l,p){return u.animate(this._convertKeyframesToObject(l),p)}onStart(u){this._originalOnStartFns.push(u),this._onStartFns.push(u)}onDone(u){this._originalOnDoneFns.push(u),this._onDoneFns.push(u)}onDestroy(u){this._onDestroyFns.push(u)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(u=>u()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(u=>u()),this._onDestroyFns=[])}setPosition(u){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=u*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const u=new Map;this.hasStarted()&&this._finalKeyframe.forEach((p,M)=>{"offset"!==M&&u.set(M,this._finished?p:w(this.element,M))}),this.currentSnapshot=u}triggerCallback(u){const l="start"===u?this._onStartFns:this._onDoneFns;l.forEach(p=>p()),l.length=0}}class yl{validateStyleProperty(u){return!0}validateAnimatableStyleProperty(u){return!0}containsElement(u,l){return Ft(u,l)}getParentElement(u){return Ce(u)}query(u,l,p){return ft(u,l,p)}computeStyle(u,l,p){return w(u,l)}animate(u,l,p,M,V,ne=[]){const Oe={duration:p,delay:M,fill:0==M?"both":"forwards"};V&&(Oe.easing=V);const Le=new Map,At=ne.filter(_n=>_n instanceof pa);(function Rt(m,u){return 0===m||0===u})(p,M)&&At.forEach(_n=>{_n.currentSnapshot.forEach((Jt,un)=>Le.set(un,Jt))});let xt=function Ie(m){return m.length?m[0]instanceof Map?m:m.map(u=>new Map(Object.entries(u))):[]}(l).map(_n=>new Map(_n));xt=function Gt(m,u,l){if(l.size&&u.length){let p=u[0],M=[];if(l.forEach((V,ne)=>{p.has(ne)||M.push(ne),p.set(ne,V)}),M.length)for(let V=1;V<u.length;V++){let ne=u[V];M.forEach(pe=>ne.set(pe,w(m,pe)))}}return u}(u,xt,Le);const Rn=function _l(m,u){let l=null,p=null;return Array.isArray(u)&&u.length?(l=Os(u[0]),u.length>1&&(p=Os(u[u.length-1]))):u instanceof Map&&(l=Os(u)),l||p?new Xo(m,l,p):null}(u,xt);return new pa(u,xt,Oe,Rn)}}const ga="@.disabled";class vl{constructor(u,l,p,M){this.namespaceId=u,this.delegate=l,this.engine=p,this._onDestroy=M,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(u){this.delegate.destroyNode?.(u)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(u,l){return this.delegate.createElement(u,l)}createComment(u){return this.delegate.createComment(u)}createText(u){return this.delegate.createText(u)}appendChild(u,l){this.delegate.appendChild(u,l),this.engine.onInsert(this.namespaceId,l,u,!1)}insertBefore(u,l,p,M=!0){this.delegate.insertBefore(u,l,p),this.engine.onInsert(this.namespaceId,l,u,M)}removeChild(u,l,p){this.parentNode(l)&&this.engine.onRemove(this.namespaceId,l,this.delegate)}selectRootElement(u,l){return this.delegate.selectRootElement(u,l)}parentNode(u){return this.delegate.parentNode(u)}nextSibling(u){return this.delegate.nextSibling(u)}setAttribute(u,l,p,M){this.delegate.setAttribute(u,l,p,M)}removeAttribute(u,l,p){this.delegate.removeAttribute(u,l,p)}addClass(u,l){this.delegate.addClass(u,l)}removeClass(u,l){this.delegate.removeClass(u,l)}setStyle(u,l,p,M){this.delegate.setStyle(u,l,p,M)}removeStyle(u,l,p){this.delegate.removeStyle(u,l,p)}setProperty(u,l,p){"@"==l.charAt(0)&&l==ga?this.disableAnimations(u,!!p):this.delegate.setProperty(u,l,p)}setValue(u,l){this.delegate.setValue(u,l)}listen(u,l,p){return this.delegate.listen(u,l,p)}disableAnimations(u,l){this.engine.disableAnimations(u,l)}}class D extends vl{constructor(u,l,p,M,V){super(l,p,M,V),this.factory=u,this.namespaceId=l}setProperty(u,l,p){"@"==l.charAt(0)?"."==l.charAt(1)&&l==ga?this.disableAnimations(u,p=void 0===p||!!p):this.engine.process(this.namespaceId,u,l.slice(1),p):this.delegate.setProperty(u,l,p)}listen(u,l,p){if("@"==l.charAt(0)){const M=function T(m){switch(m){case"body":return document.body;case"document":return document;case"window":return window;default:return m}}(u);let V=l.slice(1),ne="";return"@"!=V.charAt(0)&&([V,ne]=function _(m){const u=m.indexOf(".");return[m.substring(0,u),m.slice(u+1)]}(V)),this.engine.listen(this.namespaceId,M,V,ne,pe=>{this.factory.scheduleListenerCallback(pe._data||-1,p,pe)})}return this.delegate.listen(u,l,p)}}class F{constructor(u,l,p){this.delegate=u,this.engine=l,this._zone=p,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,l.onRemovalComplete=(M,V)=>{V?.removeChild(null,M)}}createRenderer(u,l){const M=this.delegate.createRenderer(u,l);if(!u||!l?.data?.animation){const Le=this._rendererCache;let At=Le.get(M);return At||(At=new vl("",M,this.engine,()=>Le.delete(M)),Le.set(M,At)),At}const V=l.id,ne=l.id+"-"+this._currentId;this._currentId++,this.engine.register(ne,u);const pe=Le=>{Array.isArray(Le)?Le.forEach(pe):this.engine.registerTrigger(V,ne,u,Le.name,Le)};return l.data.animation.forEach(pe),new D(this,ne,M,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(u,l,p){if(u>=0&&u<this._microtaskId)return void this._zone.run(()=>l(p));const M=this._animationCallbacksBuffer;0==M.length&&queueMicrotask(()=>{this._zone.run(()=>{M.forEach(V=>{const[ne,pe]=V;ne(pe)}),this._animationCallbacksBuffer=[]})}),M.push([l,p])}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()}}const Lr=[{provide:rn,useFactory:function kt(){return new g}},{provide:Un,useClass:(()=>{class m extends Un{constructor(l,p,M){super(l,p,M)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(p){return new(p||m)(o.KVO(N.qQ),o.KVO(Ht),o.KVO(rn))};static#t=this.\u0275prov=o.jDH({token:m,factory:m.\u0275fac})}return m})()},{provide:o._9s,useFactory:function dn(m,u,l){return new F(m,u,l)},deps:[Te.B7,Un,o.SKi]}],_i=[{provide:Ht,useFactory:()=>new yl},{provide:o.bc$,useValue:"BrowserAnimations"},...Lr],Ti=[{provide:Ht,useClass:rt},{provide:o.bc$,useValue:"NoopAnimations"},...Lr];let io=(()=>{class m{static withConfig(l){return{ngModule:m,providers:l.disableAnimations?Ti:_i}}static#e=this.\u0275fac=function(p){return new(p||m)};static#t=this.\u0275mod=o.$C({type:m});static#n=this.\u0275inj=o.G2t({providers:_i,imports:[Te.Bb]})}return m})();function _o(m,u){if(1&m&&o.EFF(0),2&m){const l=o.XpG();o.SpI(" ",l.locale.maketext("Loading \u2026"),"\n")}}function ma(m,u){1&m&&o.eu8(0)}const jc=["header"],_a=[[["","callout-heading",""]],"*"],Vd=["[callout-heading]","*"];function Bd(m,u){if(1&m){const l=o.RV6();o.j41(0,"button",4),o.bIt("click",function(){o.eBV(l);const M=o.XpG();return o.Njj(M.closeClicked())}),o.nrm(1,"i",5),o.k0s()}if(2&m){const l=o.XpG();o.BMQ("id",l.buttonID)}}function cn(m,u){if(1&m){const l=o.RV6();o.j41(0,"button",9),o.bIt("click",function(){o.eBV(l);const M=o.XpG(2);return o.Njj(M.fireClose())}),o.j41(1,"span"),o.EFF(2,"\xd7"),o.k0s()()}if(2&m){const l=o.XpG(2);o.Y8G("id",l.closeButtonID)("title",l.closeLabel),o.BMQ("aria-label",l.closeLabel),o.R7$(),o.BMQ("aria-hidden",!0)}}function Xn(m,u){if(1&m){const l=o.RV6();o.j41(0,"button",10),o.bIt("click",function(){o.eBV(l);const M=o.XpG(2);return o.Njj(M.fireToggleMore())}),o.EFF(1),o.k0s()}if(2&m){const l=o.XpG(2);o.Y8G("id",l.moreButtonID),o.R7$(),o.SpI(" ",l.moreLabel," ")}}function Hd(m,u){if(1&m&&(o.j41(0,"strong",11),o.EFF(1),o.k0s()),2&m){const l=o.XpG(2);o.R7$(),o.JRh(l.label)}}function Uc(m,u){if(1&m&&(o.j41(0,"span",12),o.EFF(1),o.k0s()),2&m){const l=o.XpG(2);o.Y8G("id",l.textMessageID),o.R7$(),o.SpI(" ",l.message," ")}}function $c(m,u){if(1&m&&(o.j41(0,"li")(1,"span",12),o.EFF(2),o.k0s()()),2&m){const l=u.$implicit,p=u.index,M=o.XpG(3);o.R7$(),o.FS9("id",M.textListID+"_"+p),o.R7$(),o.SpI(" ",l," ")}}function Ud(m,u){if(1&m&&(o.j41(0,"ul",13),o.DNE(1,$c,3,2,"li",14),o.k0s()),2&m){const l=o.XpG(2);o.R7$(),o.Y8G("ngForOf",l.alert.list)}}function Gc(m,u){if(1&m&&(o.j41(0,"div",1),o.DNE(1,cn,3,4,"button",2)(2,Xn,2,2,"button",3),o.nrm(3,"span"),o.j41(4,"div",4),o.DNE(5,Hd,2,1,"strong",5),o.j41(6,"span",6),o.DNE(7,Uc,2,2,"span",7),o.k0s(),o.DNE(8,Ud,2,1,"ul",8),o.k0s()()),2&m){const l=o.XpG();o.ZvI("alert alert-",l.type," ng-hide"),o.Y8G("@openClose",l.animationClass),o.R7$(),o.Y8G("ngIf",l.showCloseButton),o.R7$(),o.Y8G("ngIf",l.showMoreButton),o.R7$(),o.HbH(l.icon),o.BMQ("aria-hidden",!0),o.R7$(2),o.Y8G("ngIf",l.hasLabel),o.R7$(2),o.Y8G("ngIf",l.message),o.R7$(),o.Y8G("ngIf",l.alert&&l.alert.list&&l.alert.list.length)}}function Ca(m,u){if(1&m){const l=o.RV6();o.j41(0,"div",6)(1,"cp-alert",7),o.bIt("close",function(){const M=o.eBV(l).$implicit,V=o.XpG();return o.Njj(V.alertClosed(M))}),o.k0s()()}if(2&m){const l=u.$implicit;o.R7$(),o.Y8G("alert",l)}}function Nn(m,u){if(1&m&&o.nrm(0,"div",8),2&m){const l=o.XpG();o.Y8G("ngClass",l.positionClasses)}}class qn{static#e=this.defaultShowMore=!1;static#t=this.defaultAutoClosePeriod=0;static#n=this.defaultOptions={autoClosePeriod:qn.defaultAutoClosePeriod,list:[]};constructor(u,l,p=qn.defaultOptions){this._message=u,this._type=l;const M=p.id?p.id:Math.random().toString(36).substr(2,9);this._id=M,this._closable=null==p.isCloseable||p.isCloseable,this._autoClosePeriod=p.autoClosePeriod,this._list=p.list,this._showMore=p.showMore||qn.defaultShowMore,this._ts=null==p.createdOn?Date.now():p.createdOn}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(u){const{message:l,type:p,...M}=u;return new qn(l,p,M)}}var Qn=function(m){return m[m.error=0]="error",m[m.success=1]="success",m[m.warning=2]="warning",m[m.information=3]="information",m}(Qn||{}),qr=function(m){return m.add="add",m.remove="remove",m.clear="clear",m}(qr||{});let Ki=(()=>{class m{static#e=this.defaultGroup="__DEFAULT__";static#t=this.defaultSuccessOptions={autoClosePeriod:1e4};constructor(){this._alertEventsSource=new Y.B,this._alerts={},this.alertEvents=this._alertEventsSource.asObservable()}add(l,p=m.defaultGroup){this._alerts[p]||(this._alerts[p]=[]);const M=l instanceof qn?l:qn.makeAlert(l);if(this.list(p).push(M),this._alertEventsSource.next({type:qr.add,group:p,alert:M}),(0,o.naY)())switch(M.type){case Qn.error:console.error(M.message,M);break;case Qn.warning:console.warn(M.message,M);break;default:console.log(M.message,M)}return M}success(l,p=m.defaultGroup){return this.add(new qn(l,Qn.success,m.defaultSuccessOptions),p)}error(l,p=m.defaultGroup){return this.add({message:l,type:Qn.error},p)}info(l,p=m.defaultGroup){return this.add({message:l,type:Qn.information},p)}warn(l,p=m.defaultGroup){return this.add({message:l,type:Qn.warning},p)}removeById(l,p=m.defaultGroup){const M=this.list(p),V=M.findIndex(ne=>ne.id===l,0);if(-1!==V){const ne=M[V];M.splice(V,1),this._alertEventsSource.next({type:qr.remove,group:p,alert:ne})}}clear(l=m.defaultGroup){this._alerts[l]=[],this._alertEventsSource.next({type:qr.clear,group:l})}list(l=m.defaultGroup){return null==this._alerts[l]&&(this._alerts[l]=[]),this._alerts[l]}static#n=this.\u0275fac=function(p){return new(p||m)};static#r=this.\u0275prov=o.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})(),so=(()=>{class m{static#e=this.\u0275fac=function(p){return new(p||m)};static#t=this.\u0275mod=o.$C({type:m});static#n=this.\u0275inj=o.G2t({providers:[Ki],imports:[N.MD]})}return m})();var Yr=function(m){return m.inline="inline",m.topLeft="top-left",m.topMiddle="top-middle",m.topRight="top-right",m.bottomLeft="bottom-left",m.bottomMiddle="bottom-middle",m.bottomRight="bottom-right",m.middleLeft="middle-left",m.middleMiddle="middle-middle",m.middleRight="middle-right",m}(Yr||{});const lo=Yr.topRight,Ls=Yr.topLeft;let Cg=(()=>{class m{constructor(l){this.locale=l,this.containerId="",this.spinnerId="",this.messageId=""}ngOnInit(){if(!this.id)throw new Error("id must be defined for `cp-loading-spinner`");this.containerId=this.id+"_loadingSpinnerContainer",this.spinnerId=this.id+"_loadingSpinner",this.messageId=this.id+"_loadingMessage"}static#e=this.\u0275fac=function(p){return new(p||m)(o.rXU(ie.h))};static#t=this.\u0275cmp=o.VBU({type:m,selectors:[["cp-loading-spinner"]],inputs:{loadingTemplate:"loadingTemplate",id:"id"},decls:6,vars:4,consts:[["defaultLoadingTemplate",""],["aria-busy","true","aria-live","polite",1,"loading-spinner-container"],[1,"fas","fa-spinner","fa-spin","spinner"],[1,"loading-spinner-message"],[4,"ngTemplateOutlet"]],template:function(p,M){if(1&p&&(o.DNE(0,_o,1,1,"ng-template",null,0,o.C5r),o.j41(2,"div",1),o.nrm(3,"i",2),o.j41(4,"div",3),o.DNE(5,ma,1,0,"ng-container",4),o.k0s()()),2&p){const V=o.sdS(1);o.R7$(2),o.BMQ("id",M.containerId),o.R7$(),o.BMQ("id",M.spinnerId),o.R7$(),o.BMQ("id",M.messageId),o.R7$(),o.Y8G("ngTemplateOutlet",M.loadingTemplate?M.loadingTemplate:V)}},dependencies:[N.T3],styles:['.loading-spinner-container[_ngcontent-%COMP%]{background-color:#d7edf9;border:1px solid #179bd7;border-radius:2px;margin-bottom:20px;box-shadow:inset 41px 0 #179bd7}html[dir="ltr"][_nghost-%COMP%] .loading-spinner-container[_ngcontent-%COMP%], html[dir="ltr"] [_nghost-%COMP%] .loading-spinner-container[_ngcontent-%COMP%]{box-shadow:inset 40px 0 #179bd7}html[dir="rtl"][_nghost-%COMP%] .loading-spinner-container[_ngcontent-%COMP%], html[dir="rtl"] [_nghost-%COMP%] .loading-spinner-container[_ngcontent-%COMP%]{box-shadow:inset -40px 0 #179bd7}.spinner[_ngcontent-%COMP%]{color:#d7edf9;font-size:20px;display:inline-block;padding:10px}.loading-spinner-message[_ngcontent-%COMP%]{color:#333;display:inline-block;overflow-wrap:break-word;word-wrap:break-word}.loading-spinner-message[_ngcontent-%COMP%] a{text-decoration:underline;color:#255783}html[dir="ltr"][_nghost-%COMP%] .loading-spinner-message[_ngcontent-%COMP%], html[dir="ltr"] [_nghost-%COMP%] .loading-spinner-message[_ngcontent-%COMP%]{margin:0 0 0 10px}html[dir="rtl"][_nghost-%COMP%] .loading-spinner-message[_ngcontent-%COMP%], html[dir="rtl"] [_nghost-%COMP%] .loading-spinner-message[_ngcontent-%COMP%]{margin:0 10px 0 0}']})}return m})(),Si=(()=>{class m{static#e=this.\u0275fac=function(p){return new(p||m)};static#t=this.\u0275mod=o.$C({type:m});static#n=this.\u0275inj=o.G2t({imports:[N.MD,J.B]})}return m})();var wa=function(m){return m.warnings="warnings",m.danger="danger",m.info="info",m.default="info",m}(wa||{});let hs=(()=>{class m{constructor(){this.calloutType=wa.default,this.closeable=!1,this.close=new o.bkB}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")}static#e=this.\u0275fac=function(p){return new(p||m)};static#t=this.\u0275cmp=o.VBU({type:m,selectors:[["cp-callout"]],viewQuery:function(p,M){if(1&p&&o.GBs(jc,5),2&p){let V;o.mGM(V=o.lsd())&&(M.header=V.first)}},inputs:{id:"id",calloutType:"calloutType",closeable:"closeable"},outputs:{close:"close"},ngContentSelectors:Vd,decls:7,vars:7,consts:[["header",""],["role","alert"],["type","button","class","close","aria-label","Close",3,"click",4,"ngIf"],[1,"callout-heading"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true",1,"fas","fa-sm","fa-times"]],template:function(p,M){1&p&&(o.NAR(_a),o.j41(0,"div",1),o.DNE(1,Bd,2,1,"button",2),o.j41(2,"div",3,0),o.SdG(4),o.k0s(),o.j41(5,"div"),o.SdG(6,1),o.k0s()()),2&p&&(o.ZvI("callout callout-",M.calloutType,""),o.BMQ("aria-label",M.calloutType),o.R7$(),o.Y8G("ngIf",M.closeable),o.R7$(),o.BMQ("id",M.headingID),o.R7$(3),o.BMQ("id",M.contentID))},dependencies:[N.bT],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}']})}return m})(),wg=(()=>{class m{static#e=this.\u0275fac=function(p){return new(p||m)};static#t=this.\u0275mod=o.$C({type:m});static#n=this.\u0275inj=o.G2t({imports:[N.MD]})}return m})();var di=function(m){return m.new="new",m.closed="closed",m.open="open",m}(di||{});let Kc=(()=>{class m{constructor(l){this.locale=l,this.close=new o.bkB,this.toggleMore=new o.bkB,this.animationClass=di.new}get icon(){switch(this.alert.type){case Qn.error:return"type-icon fas fa-times-circle";case Qn.warning:return"type-icon fas fa-exclamation-triangle";case Qn.information:return"type-icon fas fa-info-circle";case Qn.success:return"type-icon fas fa-check-circle"}}get type(){switch(this.alert.type){case Qn.error:return"danger";case Qn.warning:return"warning";case Qn.information:return"info";case Qn.success:return"success"}}get hasLabel(){const l=this.label;return null!==l&&""!==l}get showCloseButton(){return this.alert.isClosable}get showMoreButton(){return this.alert.showMore&&this.toggleMore.observers.length>0}get message(){return this.alert.message}get willAutoClose(){return this.autoClosePeriod>0}get autoClosePeriod(){return this.alert.autoClosePeriod}get isClosed(){return this._closed}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 Qn.success:this.label=this.locale.maketext("Success:");break;case Qn.error:this.label=this.locale.maketext("Error:");break;case Qn.information:this.label=this.locale.maketext("Information:");break;case Qn.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=di.open},.25)}ngAfterViewInit(){this.willAutoClose&&this.startTimer()}fireToggleMore(){this._showMore=!this._showMore,this.toggleMore.emit({alert:this.alert,showMore:this._showMore,component:this})}fireClose(){this._timeout&&this.clearTimer(),this.animationClass=di.closed,setTimeout(()=>{this.close.emit({alert:this.alert,component:this}),this._closed=!0},250)}fireTimeout(){this.fireClose(),this.clearTimer()}startTimer(){this._timeout=setTimeout(()=>this.fireTimeout(),this.autoClosePeriod)}clearTimer(){this._timeout&&(clearTimeout(this._timeout),this._timeout=null)}_buildID(...l){return l.join("_")}static#e=this.\u0275fac=function(p){return new(p||m)(o.rXU(ie.h))};static#t=this.\u0275cmp=o.VBU({type:m,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,"click","id","title"],["type","button",1,"btn","btn-more","btn-link","pull-right","flip",3,"click","id"],[1,"alert-title"],[3,"id"],[1,"alert-list"],[4,"ngFor","ngForOf"]],template:function(p,M){1&p&&o.DNE(0,Gc,9,13,"div",0),2&p&&o.Y8G("ngIf",!M.isClosed)},dependencies:[N.Sq,N.bT],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:[ge("openClose",[Re(di.new,Ue({opacity:0})),Re(di.open,Ue({opacity:1})),Re(di.closed,Ue({opacity:0,transform:"translateX(25%)"})),Xe(`${di.open} => ${di.closed}`,[X("0.25s")]),Xe(`${di.new} => ${di.open}`,[X("0.25s")]),Xe(`${di.closed} => ${di.open}`,[X("0.25s")])])]}})}return m})(),Ol=(()=>{class m{static#e=this.\u0275fac=function(p){return new(p||m)};static#t=this.\u0275mod=o.$C({type:m});static#n=this.\u0275inj=o.G2t({imports:[N.MD,io,J.B]})}return m})(),Bs=(()=>{class m{constructor(l){this.locale=l}get position(){return this.locale.isLtr?lo:Ls}static#e=this.\u0275fac=function(p){return new(p||m)(o.KVO(ie.h))};static#t=this.\u0275prov=o.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})(),qc=(()=>{class m{static#e=this.positionPrefix="position-";constructor(l,p){this._alertService=l,this._positionService=p,this.alerts=this.alerts?this.alerts:[]}get hasAlerts(){return this.alerts.length>0}get positionClasses(){return this.inline?m.positionPrefix+Yr.inline.toString():m.positionPrefix+this.position.toString()}get position(){return this._position.toString()}set position(l){this._position=((m,u=Yr.topRight)=>{if(m){const l=(m=>{const u=Object.keys(Yr),p=Object.values(Yr).indexOf(m);return-1!==p?u[p]:(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)})(m);if(l)return Yr[l]}return u})(l)}alertClosed(l){this._alertService.removeById(l.id,this.group)}ngOnInit(){this.group||(this.group=Ki.defaultGroup),this._position||(this._position=this._positionService.position),this._alertService.list(this.group).forEach(p=>this._addAlert(p)),this._groupEvents=this._alertService.alertEvents.pipe((0,ae.p)(p=>p.group===this.group)),this._eventSubscription=this._groupEvents.subscribe({next:this._onAlertEvent.bind(this),error:console.error})}ngOnDestroy(){this._eventSubscription.unsubscribe()}_findAlertIndexById(l){return this.alerts.findIndex(p=>p.id===l)}_addAlert(l){return this.alerts.push(l),this.alerts}_removeAlert(l){const p=this._findAlertIndexById(l.id);return p>-1&&(this.alerts.splice(p,1),!0)}_clearAlerts(){this.alerts.splice(0,this.alerts.length)}_onAlertEvent(l){switch(l.type){case qr.add:this._addAlert(l.alert);break;case qr.clear:this._clearAlerts();break;case qr.remove:this._removeAlert(l.alert)}}static#t=this.\u0275fac=function(p){return new(p||m)(o.rXU(Ki),o.rXU(Bs))};static#n=this.\u0275cmp=o.VBU({type:m,selectors:[["cp-alert-list"]],inputs:{alerts:"alerts",group:"group",inline:"inline",position:"position"},decls:7,vars:3,consts:[["container",""],["list",""],[1,"alert-list-container",3,"ngClass"],[1,"alert-list"],["class","alert-container",4,"ngFor","ngForOf"],["class","alert-list-backdrop",3,"ngClass",4,"ngIf"],[1,"alert-container"],[3,"close","alert"],[1,"alert-list-backdrop",3,"ngClass"]],template:function(p,M){1&p&&(o.j41(0,"div")(1,"div",2,0)(3,"div",3,1),o.DNE(5,Ca,2,1,"div",4),o.k0s()(),o.DNE(6,Nn,1,1,"div",5),o.k0s()),2&p&&(o.R7$(),o.Y8G("ngClass",M.positionClasses),o.R7$(4),o.Y8G("ngForOf",M.alerts),o.R7$(),o.Y8G("ngIf",M.hasAlerts))},dependencies:[N.YU,N.Sq,N.bT,Kc],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[_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[_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[_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[_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;inset: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[_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[_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[_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[_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;inset:0 auto auto 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}}"]})}return m})(),Yc=(()=>{class m{static#e=this.\u0275fac=function(p){return new(p||m)};static#t=this.\u0275mod=o.$C({type:m});static#n=this.\u0275inj=o.G2t({imports:[N.MD,Ol]})}return m})()},6344:(Ne,Q,I)=>{"use strict";I.d(Q,{xt:()=>sn,vr:()=>Gt,MQ:()=>R});var o=I(3953),N=I(5042),Y=I(6977),ae=I(3236),J=I(9974),ie=I(8750),q=I(4360),ge=I(1584);var Z=I(6365),Ue=I(9326),Re=I(6648);function Ke(...w){return function Ee(){return(0,Z.U)(1)}()((0,Re.H)(w,(0,Ue.lI)(w)))}var lt=I(8071),St=I(3669),qe=I(5964),Ve=I(6354),yt=I(536),Wt=I(6780);let st,dt=1;const ke={};function U(w){return w in ke&&(delete ke[w],!0)}const fe={setImmediate(w){const E=dt++;return ke[E]=!0,st||(st=Promise.resolve()),st.then(()=>U(E)&&w()),E},clearImmediate(w){U(w)}},{setImmediate:be,clearImmediate:Se}=fe,Te={setImmediate(...w){const{delegate:E}=Te;return(E?.setImmediate||be)(...w)},clearImmediate(w){const{delegate:E}=Te;return(E?.clearImmediate||Se)(w)},delegate:void 0};var $t=I(3604);const Ot=new class Pn extends $t.q{flush(E){this._active=!0;const g=this._scheduled;this._scheduled=void 0;const{actions:O}=this;let L;E=E||O.shift();do{if(L=E.execute(E.state,E.delay))break}while((E=O[0])&&E.id===g&&O.shift());if(this._active=!1,L){for(;(E=O[0])&&E.id===g&&O.shift();)E.unsubscribe();throw L}}}(class Ye extends Wt.R{constructor(E,g){super(E,g),this.scheduler=E,this.work=g}requestAsyncId(E,g,O=0){return null!==O&&O>0?super.requestAsyncId(E,g,O):(E.actions.push(this),E._scheduled||(E._scheduled=Te.setImmediate(E.flush.bind(E,void 0))))}recycleAsyncId(E,g,O=0){var L;if(null!=O?O>0:this.delay>0)return super.recycleAsyncId(E,g,O);const{actions:oe}=E;null!=g&&(null===(L=oe[oe.length-1])||void 0===L?void 0:L.id)!==g&&(Te.clearImmediate(g),E._scheduled=void 0)}});var Fn=I(1413),tn=I(3726),pn=I(5298),zn=I(177);const ir=["content"],fr=["scroll"],Xr=["padding"],Bn=["*"],cr=w=>({searchTerm:w});function Nr(w,E){if(1&w&&(o.j41(0,"div",3),o.eu8(1,6),o.k0s()),2&w){const g=o.XpG();o.R7$(),o.Y8G("ngTemplateOutlet",g.headerTemplate)("ngTemplateOutletContext",o.eq3(2,cr,g.filterValue))}}function Er(w,E){if(1&w&&(o.j41(0,"div",5),o.eu8(1,6),o.k0s()),2&w){const g=o.XpG();o.R7$(),o.Y8G("ngTemplateOutlet",g.footerTemplate)("ngTemplateOutletContext",o.eq3(2,cr,g.filterValue))}}const or=["searchInput"],Rr=["clearButton"],kn=(w,E,g)=>({item:w,clear:E,label:g}),Vr=(w,E)=>({items:w,clear:E}),gn=(w,E,g,O)=>({item:w,item$:E,index:g,searchTerm:O});function pr(w,E){if(1&w&&(o.j41(0,"div",20),o.EFF(1),o.k0s()),2&w){const g=o.XpG(2);o.R7$(),o.JRh(g.placeholder)}}function nr(w,E){}function vr(w,E){if(1&w&&o.DNE(0,pr,2,1,"ng-template",null,1,o.C5r)(2,nr,0,0,"ng-template",19),2&w){const g=o.sdS(1),O=o.XpG();o.R7$(2),o.Y8G("ngTemplateOutlet",O.placeholderTemplate||g)}}function Zn(w,E){if(1&w){const g=o.RV6();o.j41(0,"span",23),o.bIt("click",function(){o.eBV(g);const L=o.XpG().$implicit,oe=o.XpG(2);return o.Njj(oe.unselect(L))}),o.EFF(1,"\xd7"),o.k0s(),o.nrm(2,"span",24)}if(2&w){const g=o.XpG().$implicit,O=o.XpG(2);o.R7$(2),o.Y8G("ngItemLabel",g.label)("escape",O.escapeHTML)}}function Or(w,E){}function tr(w,E){if(1&w&&(o.j41(0,"div",22),o.DNE(1,Zn,3,2,"ng-template",null,2,o.C5r)(3,Or,0,0,"ng-template",12),o.k0s()),2&w){const g=E.$implicit,O=o.sdS(2),L=o.XpG(2);o.AVh("ng-value-disabled",g.disabled),o.R7$(3),o.Y8G("ngTemplateOutlet",L.labelTemplate||O)("ngTemplateOutletContext",o.sMw(4,kn,g.value,L.clearItem,g.label))}}function Vt(w,E){if(1&w&&o.Z7z(0,tr,4,8,"div",21,o.BUC().trackByOption,!0),2&w){const g=o.XpG();o.Dyx(g.selectedItems)}}function Ze(w,E){}function ui(w,E){if(1&w&&o.DNE(0,Ze,0,0,"ng-template",12),2&w){const g=o.XpG();o.Y8G("ngTemplateOutlet",g.multiLabelTemplate)("ngTemplateOutletContext",o.l_i(2,Vr,g.selectedValues,g.clearItem))}}function Pr(w,E){1&w&&o.nrm(0,"div",25)}function Cr(w,E){}function Fr(w,E){if(1&w&&o.DNE(0,Pr,1,0,"ng-template",null,3,o.C5r)(2,Cr,0,0,"ng-template",19),2&w){const g=o.sdS(1),O=o.XpG();o.R7$(2),o.Y8G("ngTemplateOutlet",O.loadingSpinnerTemplate||g)}}function ur(w,E){if(1&w&&(o.j41(0,"span",15,4)(2,"span",26),o.EFF(3,"\xd7"),o.k0s()()),2&w){const g=o.XpG();o.FS9("title",g.clearAllText)}}function xr(w,E){if(1&w&&o.nrm(0,"span",31),2&w){const g=o.XpG().$implicit,O=o.XpG(2);o.Y8G("ngItemLabel",g.label)("escape",O.escapeHTML)}}function Ln(w,E){}function oi(w,E){if(1&w){const g=o.RV6();o.j41(0,"div",30),o.bIt("click",function(){const L=o.eBV(g).$implicit,oe=o.XpG(2);return o.Njj(oe.toggleItem(L))})("mouseover",function(){const L=o.eBV(g).$implicit,oe=o.XpG(2);return o.Njj(oe.onItemHover(L))}),o.DNE(1,xr,1,2,"ng-template",null,5,o.C5r)(3,Ln,0,0,"ng-template",12),o.k0s()}if(2&w){const g=E.$implicit,O=o.sdS(2),L=o.XpG(2);o.AVh("ng-option-disabled",g.disabled)("ng-option-selected",g.selected)("ng-optgroup",g.children)("ng-option",!g.children)("ng-option-child",!!g.parent)("ng-option-marked",g===L.itemsList.markedItem),o.BMQ("role",g.children?"group":"option")("aria-selected",g.selected)("id",null==g?null:g.htmlId),o.R7$(3),o.Y8G("ngTemplateOutlet",g.children?L.optgroupTemplate||O:L.optionTemplate||O)("ngTemplateOutletContext",o.ziG(17,gn,g.value,g,g.index,L.searchTerm))}}function ce(w,E){if(1&w&&(o.j41(0,"span")(1,"span",33),o.EFF(2),o.k0s(),o.EFF(3),o.k0s()),2&w){const g=o.XpG(3);o.R7$(2),o.JRh(g.addTagText),o.R7$(),o.SpI('"',g.searchTerm,'"')}}function me(w,E){}function je(w,E){if(1&w){const g=o.RV6();o.j41(0,"div",32),o.bIt("mouseover",function(){o.eBV(g);const L=o.XpG(2);return o.Njj(L.itemsList.unmarkItem())})("click",function(){o.eBV(g);const L=o.XpG(2);return o.Njj(L.selectTag())}),o.DNE(1,ce,4,2,"ng-template",null,6,o.C5r)(3,me,0,0,"ng-template",12),o.k0s()}if(2&w){const g=o.sdS(2),O=o.XpG(2);o.AVh("ng-option-marked",!O.itemsList.markedItem),o.R7$(3),o.Y8G("ngTemplateOutlet",O.tagTemplate||g)("ngTemplateOutletContext",o.eq3(4,cr,O.searchTerm))}}function ve(w,E){if(1&w&&(o.j41(0,"div",34),o.EFF(1),o.k0s()),2&w){const g=o.XpG(3);o.R7$(),o.JRh(g.notFoundText)}}function Fe(w,E){}function ot(w,E){if(1&w&&o.DNE(0,ve,2,1,"ng-template",null,7,o.C5r)(2,Fe,0,0,"ng-template",12),2&w){const g=o.sdS(1),O=o.XpG(2);o.R7$(2),o.Y8G("ngTemplateOutlet",O.notFoundTemplate||g)("ngTemplateOutletContext",o.eq3(2,cr,O.searchTerm))}}function mt(w,E){if(1&w&&(o.j41(0,"div",34),o.EFF(1),o.k0s()),2&w){const g=o.XpG(3);o.R7$(),o.JRh(g.typeToSearchText)}}function Dt(w,E){}function Tt(w,E){if(1&w&&o.DNE(0,mt,2,1,"ng-template",null,8,o.C5r)(2,Dt,0,0,"ng-template",19),2&w){const g=o.sdS(1),O=o.XpG(2);o.R7$(2),o.Y8G("ngTemplateOutlet",O.typeToSearchTemplate||g)}}function Ce(w,E){if(1&w&&(o.j41(0,"div",34),o.EFF(1),o.k0s()),2&w){const g=o.XpG(3);o.R7$(),o.JRh(g.loadingText)}}function he(w,E){}function G(w,E){if(1&w&&o.DNE(0,Ce,2,1,"ng-template",null,9,o.C5r)(2,he,0,0,"ng-template",12),2&w){const g=o.sdS(1),O=o.XpG(2);o.R7$(2),o.Y8G("ngTemplateOutlet",O.loadingTextTemplate||g)("ngTemplateOutletContext",o.eq3(2,cr,O.searchTerm))}}function le(w,E){if(1&w){const g=o.RV6();o.j41(0,"ng-dropdown-panel",27),o.bIt("update",function(L){o.eBV(g);const oe=o.XpG();return o.Njj(oe.viewPortItems=L)})("scroll",function(L){o.eBV(g);const oe=o.XpG();return o.Njj(oe.scroll.emit(L))})("scrollToEnd",function(L){o.eBV(g);const oe=o.XpG();return o.Njj(oe.scrollToEnd.emit(L))})("outsideClick",function(){o.eBV(g);const L=o.XpG();return o.Njj(L.close())}),o.qex(1),o.Z7z(2,oi,4,22,"div",28,o.BUC().trackByOption,!0),o.DNE(4,je,4,6,"div",29),o.bVm(),o.DNE(5,ot,3,4)(6,Tt,3,1)(7,G,3,4),o.k0s()}if(2&w){const g=o.XpG();o.AVh("ng-select-multiple",g.multiple),o.Y8G("virtualScroll",g.virtualScroll)("bufferAmount",g.bufferAmount)("appendTo",g.appendTo)("position",g.dropdownPosition)("headerTemplate",g.headerTemplate)("footerTemplate",g.footerTemplate)("filterValue",g.searchTerm)("items",g.itemsList.filteredItems)("markedItem",g.itemsList.markedItem)("ngClass",g.appendTo?g.ngClass?g.ngClass:g.classes:null)("id",g.dropdownId),o.R7$(2),o.Dyx(g.viewPortItems),o.R7$(2),o.vxM(g.showAddTag?4:-1),o.R7$(),o.vxM(g.showNoItemsFound()?5:-1),o.R7$(),o.vxM(g.showTypeToSearch()?6:-1),o.R7$(),o.vxM(g.loading&&0===g.itemsList.filteredItems.length?7:-1)}}const xe=/[&<>"']/g,it=RegExp(xe.source),_t={"&":"&","<":"<",">":">",'"':""","'":"'"};function ft(w){return null!=w}function ct(w){return"object"==typeof w&&ft(w)}function Ht(w){return w instanceof Function}let rn=(()=>{class w{constructor(g){this.element=g,this.escape=!0}ngOnChanges(g){this.element.nativeElement.innerHTML=this.escape?function Ft(w){return w&&it.test(w)?w.replace(xe,E=>_t[E]):w}(this.ngItemLabel):this.ngItemLabel}static#e=this.\u0275fac=function(O){return new(O||w)(o.rXU(o.aKT))};static#t=this.\u0275dir=o.FsC({type:w,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},standalone:!0,features:[o.OA$]})}return w})(),xn=(()=>{class w{constructor(g){this.template=g}static#e=this.\u0275fac=function(O){return new(O||w)(o.rXU(o.C4Q))};static#t=this.\u0275dir=o.FsC({type:w,selectors:[["","ng-option-tmp",""]],standalone:!0})}return w})(),yn=(()=>{class w{constructor(g){this.template=g}static#e=this.\u0275fac=function(O){return new(O||w)(o.rXU(o.C4Q))};static#t=this.\u0275dir=o.FsC({type:w,selectors:[["","ng-optgroup-tmp",""]],standalone:!0})}return w})(),It=(()=>{class w{constructor(g){this.template=g}static#e=this.\u0275fac=function(O){return new(O||w)(o.rXU(o.C4Q))};static#t=this.\u0275dir=o.FsC({type:w,selectors:[["","ng-label-tmp",""]],standalone:!0})}return w})(),bn=(()=>{class w{constructor(g){this.template=g}static#e=this.\u0275fac=function(O){return new(O||w)(o.rXU(o.C4Q))};static#t=this.\u0275dir=o.FsC({type:w,selectors:[["","ng-multi-label-tmp",""]],standalone:!0})}return w})(),Bt=(()=>{class w{constructor(g){this.template=g}static#e=this.\u0275fac=function(O){return new(O||w)(o.rXU(o.C4Q))};static#t=this.\u0275dir=o.FsC({type:w,selectors:[["","ng-header-tmp",""]],standalone:!0})}return w})(),Lt=(()=>{class w{constructor(g){this.template=g}static#e=this.\u0275fac=function(O){return new(O||w)(o.rXU(o.C4Q))};static#t=this.\u0275dir=o.FsC({type:w,selectors:[["","ng-footer-tmp",""]],standalone:!0})}return w})(),Nt=(()=>{class w{constructor(g){this.template=g}static#e=this.\u0275fac=function(O){return new(O||w)(o.rXU(o.C4Q))};static#t=this.\u0275dir=o.FsC({type:w,selectors:[["","ng-notfound-tmp",""]],standalone:!0})}return w})(),P=(()=>{class w{constructor(g){this.template=g}static#e=this.\u0275fac=function(O){return new(O||w)(o.rXU(o.C4Q))};static#t=this.\u0275dir=o.FsC({type:w,selectors:[["","ng-placeholder-tmp",""]],standalone:!0})}return w})(),$=(()=>{class w{constructor(g){this.template=g}static#e=this.\u0275fac=function(O){return new(O||w)(o.rXU(o.C4Q))};static#t=this.\u0275dir=o.FsC({type:w,selectors:[["","ng-typetosearch-tmp",""]],standalone:!0})}return w})(),H=(()=>{class w{constructor(g){this.template=g}static#e=this.\u0275fac=function(O){return new(O||w)(o.rXU(o.C4Q))};static#t=this.\u0275dir=o.FsC({type:w,selectors:[["","ng-loadingtext-tmp",""]],standalone:!0})}return w})(),K=(()=>{class w{constructor(g){this.template=g}static#e=this.\u0275fac=function(O){return new(O||w)(o.rXU(o.C4Q))};static#t=this.\u0275dir=o.FsC({type:w,selectors:[["","ng-tag-tmp",""]],standalone:!0})}return w})(),ye=(()=>{class w{constructor(g){this.template=g}static#e=this.\u0275fac=function(O){return new(O||w)(o.rXU(o.C4Q))};static#t=this.\u0275dir=o.FsC({type:w,selectors:[["","ng-loadingspinner-tmp",""]],standalone:!0})}return w})();function W(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const ee={"\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 Ie(w){return w.replace(/[^\u0000-\u007E]/g,g=>ee[g]||g)}class $e{constructor(E,g){this._ngSelect=E,this._selectionModel=g,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 E=this.selectedItems.length-1;for(;E>=0;E--){const g=this.selectedItems[E];if(!g.disabled)return g}return null}setItems(E){this._items=E.map((g,O)=>this.mapItem(g,O)),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(E){if(E.selected||this.maxItemsSelected)return;const g=this._ngSelect.multiple;g||this.clearSelected(),this._selectionModel.select(E,g,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(E)}unselect(E){E.selected&&(this._selectionModel.unselect(E,this._ngSelect.multiple),this._ngSelect.hideSelected&&ft(E.index)&&this._ngSelect.multiple&&this._showSelected(E))}findItem(E){let g;return g=this._ngSelect.compareWith?O=>this._ngSelect.compareWith(O.value,E):this._ngSelect.bindValue?O=>!O.children&&this.resolveNested(O.value,this._ngSelect.bindValue)===E:O=>O.value===E||!O.children&&O.label&&O.label===this.resolveNested(E,this._ngSelect.bindLabel),this._items.find(O=>g(O))}addItem(E){const g=this.mapItem(E,this._items.length);return this._items.push(g),this._filteredItems.push(g),g}clearSelected(E=!1){this._selectionModel.clear(E),this._items.forEach(g=>{g.selected=E&&g.selected&&g.disabled,g.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(E){return E=Ie(E).toLocaleLowerCase(),this.filteredItems.find(g=>Ie(g.label).toLocaleLowerCase().substr(0,E.length)===E)}filter(E){if(!E)return void this.resetFilteredItems();this._filteredItems=[],E=this._ngSelect.searchFn?E:Ie(E).toLocaleLowerCase();const g=this._ngSelect.searchFn||this._defaultSearchFn,O=this._ngSelect.hideSelected;for(const L of Array.from(this._groups.keys())){const oe=[];for(const De of this._groups.get(L))O&&(De.parent&&De.parent.selected||De.selected)||g(E,this._ngSelect.searchFn?De.value:De)&&oe.push(De);if(oe.length>0){const[De]=oe.slice(-1);if(De.parent){const Ge=this._items.find(Pt=>Pt===De.parent);this._filteredItems.push(Ge)}this._filteredItems.push(...oe)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(E=>!E.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(E){this._markedIndex=this._filteredItems.indexOf(E)}markSelectedOrDefault(E){if(0===this._filteredItems.length)return;const g=this._getLastMarkedIndex();this._markedIndex=g>-1?g:E?this.filteredItems.findIndex(O=>!O.disabled):-1}resolveNested(E,g){if(!ct(E))return E;if(-1===g.indexOf("."))return E[g];{const O=g.split(".");let L=E;for(let oe=0,De=O.length;oe<De;++oe){if(null==L)return null;L=L[O[oe]]}return L}}mapItem(E,g){const O=ft(E.$ngOptionLabel)?E.$ngOptionLabel:this.resolveNested(E,this._ngSelect.bindLabel),L=ft(E.$ngOptionValue)?E.$ngOptionValue:E;return{index:g,label:ft(O)?O.toString():"",value:L,disabled:E.disabled,htmlId:`${this._ngSelect.dropdownId}-${g}`}}mapSelectedItems(){const E=this._ngSelect.multiple;for(const g of this.selectedItems){const O=this._ngSelect.bindValue?this.resolveNested(g.value,this._ngSelect.bindValue):g.value,L=ft(O)?this.findItem(O):null;this._selectionModel.unselect(g,E),this._selectionModel.select(L||g,E,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(g=>-1===this.selectedItems.indexOf(g)))}_showSelected(E){if(this._filteredItems.push(E),E.parent){const g=E.parent;this._filteredItems.find(L=>L===g)||this._filteredItems.push(g)}else if(E.children)for(const g of E.children)g.selected=!1,this._filteredItems.push(g);this._filteredItems=[...this._filteredItems.sort((g,O)=>g.index-O.index)]}_hideSelected(E){this._filteredItems=this._filteredItems.filter(g=>g!==E),E.parent?E.parent.children.every(O=>O.selected)&&(this._filteredItems=this._filteredItems.filter(O=>O!==E.parent)):E.children&&(this._filteredItems=this.filteredItems.filter(g=>g.parent!==E))}_defaultSearchFn(E,g){return Ie(g.label).toLocaleLowerCase().indexOf(E)>-1}_getNextItemIndex(E){return E>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(E){0===this._filteredItems.length||this._filteredItems.every(g=>g.disabled)||(this._markedIndex=this._getNextItemIndex(E),this.markedItem.disabled&&this._stepToItem(E))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const E=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&E<0?-1:Math.max(this.markedIndex,E)}_groupBy(E,g){const O=new Map;if(0===E.length)return O;if(Array.isArray(E[0].value[g])){for(const De of E){const Ge=(De.value[g]||[]).map((Pt,bt)=>this.mapItem(Pt,bt));O.set(De,Ge)}return O}const L=Ht(this._ngSelect.groupBy),oe=De=>{const Ge=L?g(De.value):De.value[g];return ft(Ge)?Ge:void 0};for(const De of E){const Ge=oe(De),Pt=O.get(Ge);Pt?Pt.push(De):O.set(Ge,[De])}return O}_flatten(E){const g=Ht(this._ngSelect.groupBy),O=[];for(const L of Array.from(E.keys())){let oe=O.length;if(void 0===L){const En=E.get(void 0)||[];O.push(...En.map(Xt=>(Xt.index=oe++,Xt)));continue}const De=ct(L),Ge={label:De?"":String(L),children:void 0,parent:null,index:oe++,disabled:!this._ngSelect.selectableGroup,htmlId:W()},Pt=g?this._ngSelect.bindLabel:this._ngSelect.groupBy,bt=this._ngSelect.groupValue||(()=>De?L.value:{[Pt]:L}),an=E.get(L).map(En=>(En.parent=Ge,En.children=void 0,En.index=oe++,En));Ge.children=an,Ge.value=bt(L,an.map(En=>En.value)),O.push(Ge),O.push(...an)}return O}}var Je=function(w){return w[w.Tab=9]="Tab",w[w.Enter=13]="Enter",w[w.Esc=27]="Esc",w[w.Space=32]="Space",w[w.ArrowUp=38]="ArrowUp",w[w.ArrowDown=40]="ArrowDown",w[w.Backspace=8]="Backspace",w}(Je||{});let wt=(()=>{class w{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(g,O,L){const oe=this._dimensions,De=oe.itemHeight*O,Pt=Math.max(0,g)/De*O;let bt=Math.min(O,Math.ceil(Pt)+(oe.itemsPerViewport+1));const En=Math.max(0,bt-oe.itemsPerViewport);let Xt=Math.min(En,Math.floor(Pt)),An=oe.itemHeight*Math.ceil(Xt)-oe.itemHeight*Math.min(Xt,L);return An=isNaN(An)?0:An,Xt=isNaN(Xt)?-1:Xt,bt=isNaN(bt)?-1:bt,Xt-=L,Xt=Math.max(0,Xt),bt+=L,bt=Math.min(O,bt),{topPadding:An,scrollHeight:De,start:Xt,end:bt}}setDimensions(g,O){const L=Math.max(1,Math.floor(O/g));this._dimensions={itemHeight:g,panelHeight:O,itemsPerViewport:L}}getScrollTo(g,O,L){const{panelHeight:oe}=this.dimensions,De=g+O,Pt=L+oe;return oe>=De&&L===g?null:De>Pt?L+De-Pt:g<=L?g:null}static#e=this.\u0275fac=function(O){return new(O||w)};static#t=this.\u0275prov=o.jDH({token:w,factory:w.\u0275fac})}return w})();const Kt=["top","right","bottom","left"],Zt=typeof requestAnimationFrame<"u"?yt.X:Ot;let on=(()=>{class w{constructor(g,O,L,oe,De){this._renderer=g,this._zone=O,this._panelService=L,this._document=De,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new o.bkB,this.scroll=new o.bkB,this.scrollToEnd=new o.bkB,this.outsideClick=new o.bkB,this._destroy$=new Fn.B,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=oe.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(g){g!==this._itemsLength&&(this._itemsLength=g,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:g,panelHeight:O}=this._panelService.dimensions,L=this.markedItem.index*g;return O>L?0:L}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(g){if(g.items){const O=g.items;this._onItemsChange(O.currentValue,O.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(g,O=!1){if(!g)return;const L=this.items.indexOf(g);if(L<0||L>=this.itemsLength)return;let oe;if(this.virtualScroll){const De=this._panelService.dimensions.itemHeight;oe=this._panelService.getScrollTo(L*De,De,this._lastScrollPosition)}else{const De=this._dropdown.querySelector(`#${g.htmlId}`);oe=this._panelService.getScrollTo(De.offsetTop,De.clientHeight,O?De.offsetTop:this._lastScrollPosition)}ft(oe)&&(this._scrollablePanel.scrollTop=oe)}scrollToTag(){const g=this._scrollablePanel;g.scrollTop=g.scrollHeight-g.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),Kt.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(g){Kt.forEach(L=>{const oe=`ng-select-${L}`;this._renderer.removeClass(this._dropdown,oe),this._renderer.removeClass(this._select,oe)});const O=`ng-select-${g}`;this._renderer.addClass(this._dropdown,O),this._renderer.addClass(this._select,O)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,tn.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,Y.Q)(this._destroy$),function X(w,E=ae.E){return function ue(w){return(0,J.N)((E,g)=>{let O=!1,L=null,oe=null,De=!1;const Ge=()=>{if(oe?.unsubscribe(),oe=null,O){O=!1;const bt=L;L=null,g.next(bt)}De&&g.complete()},Pt=()=>{oe=null,De&&g.complete()};E.subscribe((0,q._)(g,bt=>{O=!0,L=bt,oe||(0,ie.Tg)(w(bt)).subscribe(oe=(0,q._)(g,Ge,Pt))},()=>{De=!0,(!O||!oe||oe.closed)&&g.complete()}))})}(()=>(0,ge.O)(w,E))}(0,Zt)).subscribe(g=>{const O=g.path||g.composedPath&&g.composedPath();O&&(0!==O.length||g.target)&&this._onContentScrolled(O&&0!==O.length?O[0].scrollTop:g.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,pn.h)((0,tn.R)(this._document,"touchstart",{capture:!0}),(0,tn.R)(this._document,"click",{capture:!0})).pipe((0,Y.Q)(this._destroy$)).subscribe(g=>this._checkToClose(g))})}_checkToClose(g){if(this._select.contains(g.target)||this._dropdown.contains(g.target))return;const O=g.path||g.composedPath&&g.composedPath();g.target&&g.target.shadowRoot&&O&&O[0]&&this._select.contains(O[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(g,O){this.items=g||[],this._scrollToEndFired=!1,this.itemsLength=g.length,this.virtualScroll?this._updateItemsRange(O):(this._setVirtualHeight(),this._updateItems(O))}_updateItems(g){this.update.emit(this.items),!1!==g&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,g)})})}_updateItemsRange(g){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{g?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(g){this.virtualScroll&&this._renderItemsRange(g),this._lastScrollPosition=g,this._fireScrollToEnd(g)}_updateVirtualHeight(g){this._updateScrollHeight&&(this._virtualPadding.style.height=`${g}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(g=null){if(g&&this._lastScrollPosition===g)return;const O=this._panelService.calculateItems(g=g||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(O.scrollHeight),this._contentPanel.style.transform=`translateY(${O.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(O.start,O.end)),this.scroll.emit({start:O.start,end:O.end})}),ft(g)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=g,this._lastScrollPosition=g)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[g]=this.items;return this.update.emit([g]),Promise.resolve().then(()=>{const L=this._dropdown.querySelector(`#${g.htmlId}`).clientHeight;return this._virtualPadding.style.height=L*this.itemsLength+"px",this._panelService.setDimensions(L,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(g){this._scrollToEndFired||0===g||g+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(g){if("auto"!==this.position)return this.position;const O=this._select.getBoundingClientRect(),L=document.documentElement.scrollTop||document.body.scrollTop;return O.top+window.pageYOffset+O.height+g.getBoundingClientRect().height>L+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 g=this._select.getBoundingClientRect(),O=this._parent.getBoundingClientRect();this._dropdown.style.left=g.left-O.left+"px",this._dropdown.style.width=g.width+"px",this._dropdown.style.minWidth=g.width+"px"}_updateYPosition(){const g=this._select.getBoundingClientRect(),O=this._parent.getBoundingClientRect(),L=g.height;"top"===this._currentPosition?(this._dropdown.style.bottom=O.bottom-g.bottom+L+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=g.top-O.top+L+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,tn.R)(this._dropdown,"mousedown").pipe((0,Y.Q)(this._destroy$)).subscribe(g=>{"INPUT"!==g.target.tagName&&g.preventDefault()})})}static#e=this.\u0275fac=function(O){return new(O||w)(o.rXU(o.sFG),o.rXU(o.SKi),o.rXU(wt),o.rXU(o.aKT),o.rXU(zn.qQ,8))};static#t=this.\u0275cmp=o.VBU({type:w,selectors:[["ng-dropdown-panel"]],viewQuery:function(O,L){if(1&O&&(o.GBs(ir,7,o.aKT),o.GBs(fr,7,o.aKT),o.GBs(Xr,7,o.aKT)),2&O){let oe;o.mGM(oe=o.lsd())&&(L.contentElementRef=oe.first),o.mGM(oe=o.lsd())&&(L.scrollElementRef=oe.first),o.mGM(oe=o.lsd())&&(L.paddingElementRef=oe.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",o.L39],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},standalone:!0,features:[o.GFd,o.OA$,o.aNF],ngContentSelectors:Bn,decls:9,vars:6,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(O,L){1&O&&(o.NAR(),o.DNE(0,Nr,2,4,"div",3),o.j41(1,"div",4,0),o.nrm(3,"div",null,1),o.j41(5,"div",null,2),o.SdG(7),o.k0s()(),o.DNE(8,Er,2,4,"div",5)),2&O&&(o.vxM(L.headerTemplate?0:-1),o.R7$(3),o.AVh("total-padding",L.virtualScroll),o.R7$(2),o.AVh("scrollable-content",L.virtualScroll&&L.items.length),o.R7$(3),o.vxM(L.footerTemplate?8:-1))},dependencies:[zn.T3],encapsulation:2,changeDetection:0})}return w})(),sn=(()=>{class w{constructor(g){this.elementRef=g,this.disabled=!1,this.stateChange$=new Fn.B}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(g){g.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()}static#e=this.\u0275fac=function(O){return new(O||w)(o.rXU(o.aKT))};static#t=this.\u0275cmp=o.VBU({type:w,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",o.L39]},standalone:!0,features:[o.GFd,o.OA$,o.aNF],ngContentSelectors:Bn,decls:1,vars:0,template:function(O,L){1&O&&(o.NAR(),o.SdG(0))},encapsulation:2,changeDetection:0})}return w})();function tt(){return new He}class He{constructor(){this._selected=[]}get value(){return this._selected}select(E,g,O){if(E.selected=!0,(!E.children||!g&&O)&&this._selected.push(E),g)if(E.parent){const L=E.parent.children.length,oe=E.parent.children.filter(De=>De.selected).length;E.parent.selected=L===oe}else E.children&&(this._setChildrenSelectedState(E.children,!0),this._removeChildren(E),this._selected=O&&this._activeChildren(E)?[...this._selected.filter(L=>L.parent!==E),E]:[...this._selected,...E.children.filter(L=>!L.disabled)])}unselect(E,g){if(this._selected=this._selected.filter(O=>O!==E),E.selected=!1,g)if(E.parent&&E.parent.selected){const O=E.parent.children;this._removeParent(E.parent),this._removeChildren(E.parent),this._selected.push(...O.filter(L=>L!==E&&!L.disabled)),E.parent.selected=!1}else E.children&&(this._setChildrenSelectedState(E.children,!1),this._removeChildren(E))}clear(E){this._selected=E?this._selected.filter(g=>g.disabled):[]}_setChildrenSelectedState(E,g){for(const O of E)O.disabled||(O.selected=g)}_removeChildren(E){this._selected=[...this._selected.filter(g=>g.parent!==E),...E.children.filter(g=>g.parent===E&&g.disabled&&g.selected)]}_removeParent(E){this._selected=this._selected.filter(g=>g!==E)}_activeChildren(E){return E.children.every(g=>!g.disabled||g.selected)}}let Me=(()=>{class w{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"}static#e=this.\u0275fac=function(O){return new(O||w)};static#t=this.\u0275prov=o.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})(),Qe=(()=>{class w{warn(g){console.warn(g)}static#e=this.\u0275fac=function(O){return new(O||w)};static#t=this.\u0275prov=o.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})();const Rt=new o.nKC("ng-select-selection-model");let Gt=(()=>{class w{constructor(g,O,L,oe,De,Ge,Pt){this.classes=g,this.autoFocus=O,this.config=L,this._cd=Ge,this._console=Pt,this.markFirst=!0,this.fixedPlaceholder=!0,this.preventToggleOnRightClick=!1,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.ngClass=null,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new o.bkB,this.focusEvent=new o.bkB,this.changeEvent=new o.bkB,this.openEvent=new o.bkB,this.closeEvent=new o.bkB,this.searchEvent=new o.bkB,this.clearEvent=new o.bkB,this.addEvent=new o.bkB,this.removeEvent=new o.bkB,this.scroll=new o.bkB,this.scrollToEnd=new o.bkB,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=W(),this.escapeHTML=!0,this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new Fn.B,this._keyPress$=new Fn.B,this._items=[],this.keyDownFn=bt=>!0,this.clearItem=bt=>{const an=this.selectedItems.find(En=>En.value===bt);this.unselect(an)},this.trackByOption=(bt,an)=>this.trackByFn?this.trackByFn(an.value):an,this._onChange=bt=>{},this._onTouched=()=>{},this._mergeGlobalConfig(L),this.itemsList=new $e(this,oe?oe():tt()),this.element=De.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get items(){return this._items}set items(g){this._itemsAreUsed=!0,this._items=g??[]}get disabled(){return this.readonly||this._disabled}get compareWith(){return this._compareWith}set compareWith(g){if(null!=g&&!Ht(g))throw Error("`compareWith` must be a function.");this._compareWith=g}get clearSearchOnAdd(){return ft(this._clearSearchOnAdd)?this._clearSearchOnAdd:ft(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(g){this._clearSearchOnAdd=g}get deselectOnClick(){return ft(this._deselectOnClick)?this._deselectOnClick:ft(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(g){this._deselectOnClick=g}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(g=>g.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}get showAddTag(){if(!this._validTerm)return!1;const g=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(O=>O.label.toLowerCase()===g)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(O=>O.label.toLowerCase()===g))&&!this.loading}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const g=this.searchTerm&&this.searchTerm.trim();return g&&g.length>=this.minTermLength}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(g){g.multiple&&this.itemsList.clearSelected(),g.items&&this._setItems(g.items.currentValue||[]),g.isOpen&&(this._manualOpen=ft(g.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),ft(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(g){if(Je[g.which]){if(!1===this.keyDownFn(g))return;this.handleKeyCode(g)}else g.key&&1===g.key.length&&this._keyPress$.next(g.key.toLocaleLowerCase())}handleKeyCode(g){this.clearButton&&this.clearButton.nativeElement===g.target?this.handleKeyCodeClear(g):this.handleKeyCodeInput(g)}handleKeyCodeInput(g){switch(g.which){case Je.ArrowDown:this._handleArrowDown(g);break;case Je.ArrowUp:this._handleArrowUp(g);break;case Je.Space:this._handleSpace(g);break;case Je.Enter:this._handleEnter(g);break;case Je.Tab:this._handleTab(g);break;case Je.Esc:this.close(),g.preventDefault();break;case Je.Backspace:this._handleBackspace()}}handleKeyCodeClear(g){g.which===Je.Enter&&(this.handleClearClick(),g.preventDefault())}handleMousedown(g){if(this.preventToggleOnRightClick&&2===g.button)return!1;const O=g.target;"INPUT"!==O.tagName&&g.preventDefault(),O.classList.contains("ng-clear-wrapper")?this.handleClearClick():O.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():O.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(g){this.itemsList.clearSelected(),this._handleWriteValue(g),this._cd.markForCheck()}registerOnChange(g){this._onChange=g}registerOnTouched(g){this._onTouched=g}setDisabledState(g){this._disabled=g,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(g){!g||g.disabled||this.disabled||(this.deselectOnClick&&g.selected?this.unselect(g):this.select(g),this._editableSearchTerm&&this._setSearchTermFromItems())}select(g){g.selected||(this.itemsList.select(g),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(g.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close(),this._onSelectionChanged()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(g){g&&(this.itemsList.unselect(g),this.focus(),this._updateNgModel(),this.removeEvent.emit(g.value),this._onSelectionChanged())}selectTag(){let g;g=Ht(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const O=L=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(L,null):this.itemsList.addItem(L);!function rt(w){return w instanceof Promise}(g)?g&&this.select(O(g)):g.then(L=>this.select(O(L))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}showNoItemsFound(){const g=0===this.itemsList.filteredItems.length;return(g&&!this._isTypeahead&&!this.loading||g&&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(g){this._isComposing=!1,!this.searchWhileComposing&&this.filter(g)}filter(g){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=g,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(g),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:g,items:this.itemsList.filteredItems.map(O=>O.value)}),this.open())}onInputFocus(g){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(g),this.focused=!0)}onInputBlur(g){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(g),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(g){g.disabled||this.itemsList.markItem(g)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const g=this.selectedItems&&this.selectedItems[0];this.searchTerm=g&&g.label||null}_setItems(g){const O=g[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=ft(O)?!ct(O):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(g),g.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&ft(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const g=L=>{this.items=L.map(oe=>({$ngOptionValue:oe.value,$ngOptionLabel:oe.elementRef.nativeElement.innerHTML,disabled:oe.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},O=()=>{const L=(0,pn.h)(this.ngOptions.changes,this._destroy$);(0,pn.h)(...this.ngOptions.map(oe=>oe.stateChange$)).pipe((0,Y.Q)(L)).subscribe(oe=>{const De=this.itemsList.findItem(oe.value);De.disabled=oe.disabled,De.label=oe.label||De.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(function Xe(...w){const E=(0,Ue.lI)(w);return(0,J.N)((g,O)=>{(E?Ke(w,g,E):Ke(w,g)).subscribe(O)})}(this.ngOptions),(0,Y.Q)(this._destroy$)).subscribe(L=>{this.bindLabel=this._defaultLabel,g(L),O()})}_isValidWriteValue(g){if(!ft(g)||this.multiple&&""===g||Array.isArray(g)&&0===g.length)return!1;const O=L=>!(!ft(this.compareWith)&&ct(L)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(L)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(g)?g.every(L=>O(L)):(this._console.warn("Multiple select ngModel should be array."),!1):O(g)}_handleWriteValue(g){if(!this._isValidWriteValue(g))return;const O=L=>{let oe=this.itemsList.findItem(L);if(oe)this.itemsList.select(oe);else{const De=ct(L);De||!De&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(L,null)):this.bindValue&&(oe={[this.bindLabel]:null,[this.bindValue]:L},this.itemsList.select(this.itemsList.mapItem(oe,null)))}};this.multiple?g.forEach(L=>O(L)):O(g)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,Y.Q)(this._destroy$),function ht(w,E,g){const O=(0,lt.T)(w)||E||g?{next:w,error:E,complete:g}:w;return O?(0,J.N)((L,oe)=>{var De;null===(De=O.subscribe)||void 0===De||De.call(O);let Ge=!0;L.subscribe((0,q._)(oe,Pt=>{var bt;null===(bt=O.next)||void 0===bt||bt.call(O,Pt),oe.next(Pt)},()=>{var Pt;Ge=!1,null===(Pt=O.complete)||void 0===Pt||Pt.call(O),oe.complete()},Pt=>{var bt;Ge=!1,null===(bt=O.error)||void 0===bt||bt.call(O,Pt),oe.error(Pt)},()=>{var Pt,bt;Ge&&(null===(Pt=O.unsubscribe)||void 0===Pt||Pt.call(O)),null===(bt=O.finalize)||void 0===bt||bt.call(O)}))}):St.D}(g=>this._pressedKeys.push(g)),function Et(w,E=ae.E){return(0,J.N)((g,O)=>{let L=null,oe=null,De=null;const Ge=()=>{if(L){L.unsubscribe(),L=null;const bt=oe;oe=null,O.next(bt)}};function Pt(){const bt=De+w,an=E.now();if(an<bt)return L=this.schedule(void 0,bt-an),void O.add(L);Ge()}g.subscribe((0,q._)(O,bt=>{oe=bt,De=E.now(),L||(L=E.schedule(Pt,w),O.add(L))},()=>{Ge(),O.complete()},void 0,()=>{oe=L=null}))})}(200),(0,qe.p)(()=>this._pressedKeys.length>0),(0,Ve.T)(()=>this._pressedKeys.join(""))).subscribe(g=>{const O=this.itemsList.findByLabel(g);O&&(this.isOpen?(this.itemsList.markItem(O),this._scrollToMarked(),this._cd.markForCheck()):this.select(O)),this._pressedKeys=[]})}_setInputAttributes(){const g=this.searchInput.nativeElement,O={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const L of Object.keys(O))g.setAttribute(L,O[L])}_updateNgModel(){const g=[];for(const L of this.selectedItems)if(this.bindValue){let oe=null;oe=L.children?L.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(L.value,this.bindValue),g.push(oe)}else g.push(L.value);const O=this.selectedItems.map(L=>L.value);this.multiple?(this._onChange(g),this.changeEvent.emit(O)):(this._onChange(ft(g[0])?g[0]:null),this.changeEvent.emit(O[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(g){this.searchTerm=g,this._isTypeahead&&this.typeahead.next(g)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(g){if(!1===this.isOpen)if(this.showClear()&&!g.shiftKey)this.focusOnClear(),g.preventDefault();else if(!this.addTag)return;this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),g.preventDefault()):this.showAddTag?(this.selectTag(),g.preventDefault()):this.close():this.close()}_handleEnter(g){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}g.preventDefault()}_handleSpace(g){this.isOpen||this._manualOpen||(this.open(),g.preventDefault())}_handleArrowDown(g){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),g.preventDefault()}_handleArrowUp(g){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),g.preventDefault())}_nextItemIsTag(g){const O=this.itemsList.markedIndex+g;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(O<0||O===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(g){this.placeholder=this.placeholder||g.placeholder,this.fixedPlaceholder=this.fixedPlaceholder||g.fixedPlaceholder,this.notFoundText=this.notFoundText||g.notFoundText,this.typeToSearchText=this.typeToSearchText||g.typeToSearchText,this.addTagText=this.addTagText||g.addTagText,this.loadingText=this.loadingText||g.loadingText,this.clearAllText=this.clearAllText||g.clearAllText,this.virtualScroll=ft(this.virtualScroll)?this.virtualScroll:!!ft(g.disableVirtualScroll)&&!g.disableVirtualScroll,this.openOnEnter=ft(this.openOnEnter)?this.openOnEnter:g.openOnEnter,this.appendTo=this.appendTo||g.appendTo,this.bindValue=this.bindValue||g.bindValue,this.bindLabel=this.bindLabel||g.bindLabel,this.appearance=this.appearance||g.appearance}static#e=this.\u0275fac=function(O){return new(O||w)(o.kS0("class"),o.kS0("autofocus"),o.rXU(Me),o.rXU(Rt,8),o.rXU(o.aKT),o.rXU(o.gRc),o.rXU(Qe))};static#t=this.\u0275cmp=o.VBU({type:w,selectors:[["ng-select"]],contentQueries:function(O,L,oe){if(1&O&&(o.wni(oe,xn,5,o.C4Q),o.wni(oe,yn,5,o.C4Q),o.wni(oe,It,5,o.C4Q),o.wni(oe,bn,5,o.C4Q),o.wni(oe,Bt,5,o.C4Q),o.wni(oe,Lt,5,o.C4Q),o.wni(oe,Nt,5,o.C4Q),o.wni(oe,P,5,o.C4Q),o.wni(oe,$,5,o.C4Q),o.wni(oe,H,5,o.C4Q),o.wni(oe,K,5,o.C4Q),o.wni(oe,ye,5,o.C4Q),o.wni(oe,sn,5)),2&O){let De;o.mGM(De=o.lsd())&&(L.optionTemplate=De.first),o.mGM(De=o.lsd())&&(L.optgroupTemplate=De.first),o.mGM(De=o.lsd())&&(L.labelTemplate=De.first),o.mGM(De=o.lsd())&&(L.multiLabelTemplate=De.first),o.mGM(De=o.lsd())&&(L.headerTemplate=De.first),o.mGM(De=o.lsd())&&(L.footerTemplate=De.first),o.mGM(De=o.lsd())&&(L.notFoundTemplate=De.first),o.mGM(De=o.lsd())&&(L.placeholderTemplate=De.first),o.mGM(De=o.lsd())&&(L.typeToSearchTemplate=De.first),o.mGM(De=o.lsd())&&(L.loadingTextTemplate=De.first),o.mGM(De=o.lsd())&&(L.tagTemplate=De.first),o.mGM(De=o.lsd())&&(L.loadingSpinnerTemplate=De.first),o.mGM(De=o.lsd())&&(L.ngOptions=De)}},viewQuery:function(O,L){if(1&O&&(o.GBs(on,5),o.GBs(or,7),o.GBs(Rr,5)),2&O){let oe;o.mGM(oe=o.lsd())&&(L.dropdownPanel=oe.first),o.mGM(oe=o.lsd())&&(L.searchInput=oe.first),o.mGM(oe=o.lsd())&&(L.clearButton=oe.first)}},hostVars:20,hostBindings:function(O,L){1&O&&o.bIt("keydown",function(De){return L.handleKeyDown(De)}),2&O&&o.AVh("ng-select-typeahead",L.typeahead)("ng-select-multiple",L.multiple)("ng-select-taggable",L.addTag)("ng-select-searchable",L.searchable)("ng-select-clearable",L.clearable)("ng-select-opened",L.isOpen)("ng-select",L.useDefaultClass)("ng-select-filtered",L.filtered)("ng-select-single",L.single)("ng-select-disabled",L.disabled)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:[2,"markFirst","markFirst",o.L39],placeholder:"placeholder",fixedPlaceholder:"fixedPlaceholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",preventToggleOnRightClick:"preventToggleOnRightClick",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:[2,"loading","loading",o.L39],closeOnSelect:[2,"closeOnSelect","closeOnSelect",o.L39],hideSelected:[2,"hideSelected","hideSelected",o.L39],selectOnTab:[2,"selectOnTab","selectOnTab",o.L39],openOnEnter:[2,"openOnEnter","openOnEnter",o.L39],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",o.Udg],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",o.Udg],virtualScroll:[2,"virtualScroll","virtualScroll",o.L39],selectableGroup:[2,"selectableGroup","selectableGroup",o.L39],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",o.L39],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",o.L39],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",o.Udg],readonly:[2,"readonly","readonly",o.L39],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",o.L39],minTermLength:[2,"minTermLength","minTermLength",o.Udg],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",o.L39],ngClass:"ngClass",typeahead:"typeahead",multiple:[2,"multiple","multiple",o.L39],addTag:"addTag",searchable:[2,"searchable","searchable",o.L39],clearable:[2,"clearable","clearable",o.L39],isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick",keyDownFn:"keyDownFn"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},standalone:!0,features:[o.Jv_([{provide:N.kq,useExisting:(0,o.Rfq)(()=>w),multi:!0},wt]),o.GFd,o.OA$,o.aNF],decls:13,vars:18,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[1,"ng-spinner-loader"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(O,L){if(1&O){const oe=o.RV6();o.j41(0,"div",10),o.bIt("mousedown",function(Ge){return o.eBV(oe),o.Njj(L.handleMousedown(Ge))}),o.j41(1,"div",11),o.DNE(2,vr,3,1)(3,Vt,2,0)(4,ui,1,5,null,12),o.j41(5,"div",13)(6,"input",14,0),o.bIt("blur",function(Ge){return o.eBV(oe),o.Njj(L.onInputBlur(Ge))})("change",function(Ge){return o.eBV(oe),o.Njj(Ge.stopPropagation())})("compositionend",function(){o.eBV(oe);const Ge=o.sdS(7);return o.Njj(L.onCompositionEnd(Ge.value))})("compositionstart",function(){return o.eBV(oe),o.Njj(L.onCompositionStart())})("focus",function(Ge){return o.eBV(oe),o.Njj(L.onInputFocus(Ge))})("input",function(){o.eBV(oe);const Ge=o.sdS(7);return o.Njj(L.filter(Ge.value))}),o.k0s()()(),o.DNE(8,Fr,3,1)(9,ur,4,1,"span",15),o.j41(10,"span",16),o.nrm(11,"span",17),o.k0s()(),o.DNE(12,le,8,17,"ng-dropdown-panel",18)}2&O&&(o.AVh("ng-appearance-outline","outline"===L.appearance)("ng-has-value",L.hasValue),o.R7$(2),o.vxM(0===L.selectedItems.length&&!L.searchTerm||!0===L.fixedPlaceholder?2:-1),o.R7$(),o.vxM(L.multiLabelTemplate&&L.multiple||!(L.selectedItems.length>0)?-1:3),o.R7$(),o.vxM(L.multiple&&L.multiLabelTemplate&&L.selectedValues.length>0?4:-1),o.R7$(2),o.Y8G("disabled",L.disabled)("readOnly",!L.searchable||L.itemsList.maxItemsSelected)("value",L.searchTerm?L.searchTerm:""),o.BMQ("aria-activedescendant",L.isOpen?null==L.itemsList||null==L.itemsList.markedItem?null:L.itemsList.markedItem.htmlId:null)("aria-controls",L.isOpen?L.dropdownId:null)("aria-expanded",L.isOpen)("id",L.labelForId)("tabindex",L.tabIndex),o.R7$(2),o.vxM(L.loading?8:-1),o.R7$(),o.vxM(L.showClear()?9:-1),o.R7$(3),o.vxM(L.isOpen?12:-1))},dependencies:[zn.T3,rn,on,zn.YU],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;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:unset;user-select:unset;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}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);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;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;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})}return w})(),R=(()=>{class w{static#e=this.\u0275fac=function(O){return new(O||w)};static#t=this.\u0275mod=o.$C({type:w});static#n=this.\u0275inj=o.G2t({providers:[{provide:Rt,useValue:tt}]})}return w})()},3380:(Ne,Q,I)=>{"use strict";I.d(Q,{Kj:()=>wr,QI:()=>rt,V:()=>ct,ed:()=>rn,ge:()=>Wn});var o=I(3953),N=I(177),Y=I(1413),ae=I(3726),J=I(4412),ie=I(6977),q=I(5215);const ue=["*"],ge=["cellTemplate"],X=b=>({cellContext:b});function Z(b,z){if(1&b){const c=o.RV6();o.j41(0,"label",5)(1,"input",6),o.bIt("click",function(k){o.eBV(c);const j=o.XpG();return o.Njj(j.onCheckboxChange(k))}),o.k0s()()}if(2&b){const c=o.XpG();o.R7$(),o.Y8G("checked",c.isSelected)}}function Ee(b,z){1&b&&o.nrm(0,"i",12)}function Ue(b,z){1&b&&o.nrm(0,"i",13)}function Re(b,z){1&b&&o.nrm(0,"i",14)}function Ke(b,z){if(1&b){const c=o.RV6();o.j41(0,"button",8),o.bIt("click",function(){o.eBV(c);const k=o.XpG(2);return o.Njj(k.onTreeAction())}),o.j41(1,"span"),o.DNE(2,Ee,1,0,"i",9)(3,Ue,1,0,"i",10)(4,Re,1,0,"i",11),o.k0s()()}if(2&b){const c=o.XpG(2);o.Y8G("disabled","disabled"===c.treeStatus),o.R7$(2),o.Y8G("ngIf","loading"===c.treeStatus),o.R7$(),o.Y8G("ngIf","collapsed"===c.treeStatus),o.R7$(),o.Y8G("ngIf","expanded"===c.treeStatus||"disabled"===c.treeStatus)}}function Xe(b,z){}function lt(b,z){if(1&b&&o.DNE(0,Xe,0,0,"ng-template",15),2&b){const c=o.XpG(2);o.Y8G("ngTemplateOutlet",c.column.treeToggleTemplate)("ngTemplateOutletContext",o.eq3(2,X,c.cellContext))}}function St(b,z){if(1&b&&(o.qex(0),o.DNE(1,Ke,5,4,"button",7)(2,lt,1,4,null,3),o.bVm()),2&b){const c=o.XpG();o.R7$(),o.Y8G("ngIf",!c.column.treeToggleTemplate),o.R7$(),o.Y8G("ngIf",c.column.treeToggleTemplate)}}function ht(b,z){if(1&b&&o.nrm(0,"span",16),2&b){const c=o.XpG();o.Y8G("title",c.sanitizedValue)("innerHTML",c.value,o.npT)}}function Et(b,z){}function qe(b,z){if(1&b&&o.DNE(0,Et,0,0,"ng-template",15,0,o.C5r),2&b){const c=o.XpG();o.Y8G("ngTemplateOutlet",c.column.cellTemplate)("ngTemplateOutletContext",c.cellContext)}}function Ve(b,z){if(1&b){const c=o.RV6();o.j41(0,"datatable-body-cell",3),o.bIt("activate",function(k){const j=o.eBV(c).index,Ae=o.XpG(2);return o.Njj(Ae.onActivate(k,j))})("treeAction",function(){o.eBV(c);const k=o.XpG(2);return o.Njj(k.onTreeAction())}),o.k0s()}if(2&b){const c=z.$implicit,y=o.XpG(2);o.Y8G("row",y.row)("group",y.group)("expanded",y.expanded)("isSelected",y.isSelected)("rowIndex",y.rowIndex)("column",c)("rowHeight",y.rowHeight)("displayCheck",y.displayCheck)("treeStatus",y.treeStatus)}}function yt(b,z){if(1&b&&(o.j41(0,"div",1),o.DNE(1,Ve,1,9,"datatable-body-cell",2),o.k0s()),2&b){const c=z.$implicit,y=o.XpG();o.ZvI("datatable-row-",c.type," datatable-row-group"),o.Y8G("ngStyle",y._groupStyles[c.type]),o.R7$(),o.Y8G("ngForOf",c.columns)("ngForTrackBy",y.columnTrackingFn)}}function Wt(b,z){if(1&b&&o.nrm(0,"datatable-body-row",1),2&b){const c=o.XpG();o.Y8G("innerWidth",c.innerWidth)("offsetX",c.offsetX)("columns",c._internalColumns)("rowHeight",c.rowHeight)("row",c.summaryRow)("rowIndex",-1)}}function dt(b,z){}function st(b,z){if(1&b&&o.DNE(0,dt,0,0,"ng-template",4),2&b){const c=o.XpG(2);o.Y8G("ngTemplateOutlet",c.groupHeader.template)("ngTemplateOutletContext",c.groupContext)}}function ke(b,z){if(1&b&&(o.j41(0,"div",3),o.DNE(1,st,1,2,null,1),o.k0s()),2&b){const c=o.XpG();o.Y8G("ngStyle",c.getGroupHeaderStyle()),o.R7$(),o.Y8G("ngIf",c.groupHeader&&c.groupHeader.template)}}function U(b,z){1&b&&o.SdG(0,0,["*ngIf","(groupHeader && groupHeader.template && expanded) || !groupHeader || !groupHeader.template"])}function fe(b,z){}function _e(b,z){if(1&b&&o.DNE(0,fe,0,0,"ng-template",4),2&b){const c=o.XpG(2);o.Y8G("ngTemplateOutlet",c.rowDetail.template)("ngTemplateOutletContext",c.rowContext)}}function be(b,z){if(1&b&&(o.j41(0,"div",5),o.DNE(1,_e,1,2,null,1),o.k0s()),2&b){const c=o.XpG();o.xc7("height",c.detailRowHeight,"px"),o.R7$(),o.Y8G("ngIf",c.rowDetail&&c.rowDetail.template)}}function Se(b,z){1&b&&o.nrm(0,"datatable-progress")}function Te(b,z){if(1&b&&o.nrm(0,"datatable-summary-row",10),2&b){const c=o.XpG(2);o.Y8G("rowHeight",c.summaryHeight)("offsetX",c.offsetX)("innerWidth",c.innerWidth)("rows",c.rows)("columns",c.columns)}}function Ye(b,z){if(1&b){const c=o.RV6();o.j41(0,"datatable-body-row",13),o.bIt("treeAction",function(){o.eBV(c);const k=o.XpG().$implicit,j=o.XpG(2);return o.Njj(j.onTreeAction(k))})("activate",function(k){o.eBV(c);const j=o.XpG().index,Ae=o.XpG(2),et=o.sdS(2);return o.Njj(et.onActivate(k,Ae.indexes.first+j))}),o.k0s()}if(2&b){const c=o.XpG().$implicit,y=o.XpG(2),k=o.sdS(2);o.Y8G("isSelected",k.getRowSelected(c))("innerWidth",y.innerWidth)("offsetX",y.offsetX)("columns",y.columns)("rowHeight",y.getRowHeight(c))("row",c)("rowIndex",y.getRowIndex(c))("expanded",y.getRowExpanded(c))("rowClass",y.rowClass)("displayCheck",y.displayCheck)("treeStatus",c&&c.treeStatus)}}function $t(b,z){if(1&b){const c=o.RV6();o.j41(0,"datatable-body-row",15),o.bIt("activate",function(k){const j=o.eBV(c).index;o.XpG(4);const Ae=o.sdS(2);return o.Njj(Ae.onActivate(k,j))}),o.k0s()}if(2&b){const c=z.$implicit,y=o.XpG(2).$implicit,k=o.XpG(2),j=o.sdS(2);o.Y8G("isSelected",j.getRowSelected(c))("innerWidth",k.innerWidth)("offsetX",k.offsetX)("columns",k.columns)("rowHeight",k.getRowHeight(c))("row",c)("group",y.value)("rowIndex",k.getRowIndex(c))("expanded",k.getRowExpanded(c))("rowClass",k.rowClass)}}function Pn(b,z){if(1&b&&o.DNE(0,$t,1,10,"datatable-body-row",14),2&b){const c=o.XpG().$implicit,y=o.XpG(2);o.Y8G("ngForOf",c.value)("ngForTrackBy",y.rowTrackingFn)}}function Ot(b,z){if(1&b){const c=o.RV6();o.j41(0,"datatable-row-wrapper",11),o.bIt("rowContextmenu",function(k){o.eBV(c);const j=o.XpG(2);return o.Njj(j.rowContextmenu.emit(k))}),o.DNE(1,Ye,1,11,"datatable-body-row",12)(2,Pn,1,2,"ng-template",null,1,o.C5r),o.k0s()}if(2&b){const c=z.$implicit,y=z.index,k=o.sdS(3),j=o.XpG(2);o.Y8G("groupedRows",j.groupedRows)("innerWidth",j.innerWidth)("ngStyle",j.getRowsStyles(c))("rowDetail",j.rowDetail)("groupHeader",j.groupHeader)("offsetX",j.offsetX)("detailRowHeight",j.getDetailRowHeight(c&&c[y],y))("row",c)("expanded",j.getRowExpanded(c))("rowIndex",j.getRowIndex(c&&c[y])),o.R7$(),o.Y8G("ngIf",!j.groupedRows)("ngIfElse",k)}}function Tn(b,z){if(1&b&&o.nrm(0,"datatable-summary-row",16),2&b){const c=o.XpG(2);o.Y8G("ngStyle",c.getBottomSummaryRowStyles())("rowHeight",c.summaryHeight)("offsetX",c.offsetX)("innerWidth",c.innerWidth)("rows",c.rows)("columns",c.columns)}}function Fn(b,z){if(1&b){const c=o.RV6();o.j41(0,"datatable-scroller",6),o.bIt("scroll",function(k){o.eBV(c);const j=o.XpG();return o.Njj(j.onBodyScroll(k))}),o.DNE(1,Te,1,5,"datatable-summary-row",7)(2,Ot,4,12,"datatable-row-wrapper",8)(3,Tn,1,6,"datatable-summary-row",9),o.k0s()}if(2&b){const c=o.XpG();o.Y8G("scrollbarV",c.scrollbarV)("scrollbarH",c.scrollbarH)("scrollHeight",c.scrollHeight)("scrollWidth",null==c.columnGroupWidths?null:c.columnGroupWidths.total),o.R7$(),o.Y8G("ngIf",c.summaryRow&&"top"===c.summaryPosition),o.R7$(),o.Y8G("ngForOf",c.temp)("ngForTrackBy",c.rowTrackingFn),o.R7$(),o.Y8G("ngIf",c.summaryRow&&"bottom"===c.summaryPosition)}}function tn(b,z){if(1&b&&o.nrm(0,"div",17),2&b){const c=o.XpG();o.Y8G("innerHTML",c.emptyMessage,o.npT)}}function pn(b,z){}function zn(b,z){if(1&b&&o.DNE(0,pn,0,0,"ng-template",5),2&b){const c=o.XpG();o.Y8G("ngTemplateOutlet",c.targetMarkerTemplate)("ngTemplateOutletContext",c.targetMarkerContext)}}function ir(b,z){if(1&b){const c=o.RV6();o.j41(0,"label",6)(1,"input",7),o.bIt("change",function(){o.eBV(c);const k=o.XpG();return o.Njj(k.select.emit(!k.allRowsSelected))}),o.k0s()()}if(2&b){const c=o.XpG();o.R7$(),o.Y8G("checked",c.allRowsSelected)}}function fr(b,z){if(1&b){const c=o.RV6();o.j41(0,"span",8)(1,"span",9),o.bIt("click",function(){o.eBV(c);const k=o.XpG();return o.Njj(k.onSort())}),o.k0s()()}if(2&b){const c=o.XpG();o.R7$(),o.Y8G("innerHTML",c.name,o.npT)}}function Xr(b,z){}function Bn(b,z){if(1&b&&o.DNE(0,Xr,0,0,"ng-template",5),2&b){const c=o.XpG();o.Y8G("ngTemplateOutlet",c.column.headerTemplate)("ngTemplateOutletContext",c.cellContext)}}function cr(b,z){if(1&b){const c=o.RV6();o.j41(0,"datatable-header-cell",4),o.bIt("resize",function(k){const j=o.eBV(c).$implicit,Ae=o.XpG(2);return o.Njj(Ae.onColumnResized(k,j))})("longPressStart",function(k){o.eBV(c);const j=o.XpG(2);return o.Njj(j.onLongPressStart(k))})("longPressEnd",function(k){o.eBV(c);const j=o.XpG(2);return o.Njj(j.onLongPressEnd(k))})("sort",function(k){o.eBV(c);const j=o.XpG(2);return o.Njj(j.onSort(k))})("select",function(k){o.eBV(c);const j=o.XpG(2);return o.Njj(j.select.emit(k))})("columnContextmenu",function(k){o.eBV(c);const j=o.XpG(2);return o.Njj(j.columnContextmenu.emit(k))}),o.k0s()}if(2&b){const c=z.$implicit,y=o.XpG(2);o.Y8G("resizeEnabled",c.resizeable)("pressModel",c)("pressEnabled",y.reorderable&&c.draggable)("dragX",y.reorderable&&c.draggable&&c.dragging)("dragY",!1)("dragModel",c)("dragEventTarget",y.dragEventTarget)("headerHeight",y.headerHeight)("isTarget",c.isTarget)("targetMarkerTemplate",y.targetMarkerTemplate)("targetMarkerContext",c.targetMarkerContext)("column",c)("sortType",y.sortType)("sorts",y.sorts)("selectionType",y.selectionType)("sortAscendingIcon",y.sortAscendingIcon)("sortDescendingIcon",y.sortDescendingIcon)("sortUnsetIcon",y.sortUnsetIcon)("allRowsSelected",y.allRowsSelected)}}function Nr(b,z){if(1&b&&(o.j41(0,"div",2),o.DNE(1,cr,1,19,"datatable-header-cell",3),o.k0s()),2&b){const c=z.$implicit,y=o.XpG();o.HbH("datatable-row-"+c.type),o.Y8G("ngStyle",y._styleByGroup[c.type]),o.R7$(),o.Y8G("ngForOf",c.columns)("ngForTrackBy",y.columnTrackingFn)}}function Er(b,z){if(1&b){const c=o.RV6();o.j41(0,"li",6)(1,"a",7),o.bIt("click",function(){const k=o.eBV(c).$implicit,j=o.XpG();return o.Njj(j.selectPage(k.number))}),o.EFF(2),o.k0s()()}if(2&b){const c=z.$implicit,y=o.XpG();o.AVh("active",c.number===y.page),o.BMQ("aria-label","page "+c.number),o.R7$(2),o.SpI(" ",c.text," ")}}const or=b=>({"selected-count":b}),Rr=(b,z,c,y,k)=>({rowCount:b,pageSize:z,selectedCount:c,curPage:y,offset:k});function kn(b,z){}function Vr(b,z){if(1&b&&o.DNE(0,kn,0,0,"ng-template",4),2&b){const c=o.XpG();o.Y8G("ngTemplateOutlet",c.footerTemplate.template)("ngTemplateOutletContext",o.s1E(2,Rr,c.rowCount,c.pageSize,c.selectedCount,c.curPage,c.offset))}}function gn(b,z){if(1&b&&(o.j41(0,"span"),o.EFF(1),o.k0s()),2&b){const c=o.XpG(2);o.R7$(),o.Lme(" ",null==c.selectedCount?null:c.selectedCount.toLocaleString()," ",c.selectedMessage," / ")}}function pr(b,z){if(1&b&&(o.j41(0,"div",5),o.DNE(1,gn,2,2,"span",1),o.EFF(2),o.k0s()),2&b){const c=o.XpG();o.R7$(),o.Y8G("ngIf",c.selectedMessage),o.R7$(),o.Lme(" ",null==c.rowCount?null:c.rowCount.toLocaleString()," ",c.totalMessage," ")}}function nr(b,z){if(1&b){const c=o.RV6();o.j41(0,"datatable-pager",6),o.bIt("change",function(k){o.eBV(c);const j=o.XpG();return o.Njj(j.page.emit(k))}),o.k0s()}if(2&b){const c=o.XpG();o.Y8G("pagerLeftArrowIcon",c.pagerLeftArrowIcon)("pagerRightArrowIcon",c.pagerRightArrowIcon)("pagerPreviousIcon",c.pagerPreviousIcon)("pagerNextIcon",c.pagerNextIcon)("page",c.curPage)("size",c.pageSize)("count",c.rowCount)("hidden",!c.isVisible)}}function vr(b,z){if(1&b){const c=o.RV6();o.j41(0,"datatable-header",4),o.nI1(1,"async"),o.bIt("sort",function(k){o.eBV(c);const j=o.XpG();return o.Njj(j.onColumnSort(k))})("resize",function(k){o.eBV(c);const j=o.XpG();return o.Njj(j.onColumnResize(k))})("reorder",function(k){o.eBV(c);const j=o.XpG();return o.Njj(j.onColumnReorder(k))})("select",function(k){o.eBV(c);const j=o.XpG();return o.Njj(j.onHeaderSelect(k))})("columnContextmenu",function(k){o.eBV(c);const j=o.XpG();return o.Njj(j.onColumnContextmenu(k))}),o.k0s()}if(2&b){const c=o.XpG();o.Y8G("sorts",c.sorts)("sortType",c.sortType)("scrollbarH",c.scrollbarH)("innerWidth",c._innerWidth)("offsetX",o.bMT(1,15,c._offsetX))("dealsWithGroup",void 0!==c.groupedRows)("columns",c._internalColumns)("headerHeight",c.headerHeight)("reorderable",c.reorderable)("targetMarkerTemplate",c.targetMarkerTemplate)("sortAscendingIcon",c.cssClasses.sortAscending)("sortDescendingIcon",c.cssClasses.sortDescending)("sortUnsetIcon",c.cssClasses.sortUnset)("allRowsSelected",c.allRowsSelected)("selectionType",c.selectionType)}}function Zn(b,z){if(1&b){const c=o.RV6();o.j41(0,"datatable-footer",5),o.bIt("page",function(k){o.eBV(c);const j=o.XpG();return o.Njj(j.onFooterPage(k))}),o.k0s()}if(2&b){const c=o.XpG();o.Y8G("rowCount",c.rowCount)("pageSize",c.pageSize)("offset",c.offset)("footerHeight",c.footerHeight)("footerTemplate",c.footer)("totalMessage",c.messages.totalMessage)("pagerLeftArrowIcon",c.cssClasses.pagerLeftArrow)("pagerRightArrowIcon",c.cssClasses.pagerRightArrow)("pagerPreviousIcon",c.cssClasses.pagerPrevious)("selectedCount",c.selected.length)("selectedMessage",!!c.selectionType&&c.messages.selectedMessage)("pagerNextIcon",c.cssClasses.pagerNext)}}let Or=(()=>{class b{constructor(c){this.document=c,this.width=this.getWidth()}getWidth(){const c=this.document.createElement("div");c.style.visibility="hidden",c.style.width="100px",c.style.msOverflowStyle="scrollbar",this.document.body.appendChild(c);const y=c.offsetWidth;c.style.overflow="scroll";const k=this.document.createElement("div");k.style.width="100%",c.appendChild(k);const j=k.offsetWidth;return c.parentNode.removeChild(c),y-j}}return b.\u0275fac=function(c){return new(c||b)(o.KVO(N.qQ))},b.\u0275prov=o.jDH({token:b,factory:b.\u0275fac}),b})(),tr=(()=>{class b{getDimensions(c){return c.getBoundingClientRect()}}return b.\u0275fac=function(c){return new(c||b)},b.\u0275prov=o.jDH({token:b,factory:b.\u0275fac}),b})(),Vt=(()=>{class b{constructor(){this.columnInputChanges=new Y.B}get columnInputChanges$(){return this.columnInputChanges.asObservable()}onInputChange(){this.columnInputChanges.next()}}return b.\u0275fac=function(c){return new(c||b)},b.\u0275prov=o.jDH({token:b,factory:b.\u0275fac}),b})(),Ze=(()=>{class b{constructor(c){this.template=c}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(o.C4Q))},b.\u0275dir=o.FsC({type:b,selectors:[["","ngx-datatable-footer-template",""]]}),b})(),ui=(()=>{class b{constructor(c,y){this.element=c,this.zone=y,this.isVisible=!1,this.visible=new o.bkB}ngOnInit(){this.runCheck()}ngOnDestroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const c=()=>{const{offsetHeight:y,offsetWidth:k}=this.element.nativeElement;y&&k?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>c(),50)}))};this.timeout=setTimeout(()=>c())}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(o.aKT),o.rXU(o.SKi))},b.\u0275dir=o.FsC({type:b,selectors:[["","visibilityObserver",""]],hostVars:2,hostBindings:function(c,y){2&c&&o.AVh("visible",y.isVisible)},outputs:{visible:"visible"}}),b})(),Pr=(()=>{class b{constructor(c){this.dragX=!0,this.dragY=!0,this.dragStart=new o.bkB,this.dragging=new o.bkB,this.dragEnd=new o.bkB,this.isDragging=!1,this.element=c.nativeElement}ngOnChanges(c){c.dragEventTarget&&c.dragEventTarget.currentValue&&this.dragModel.dragging&&this.onMousedown(c.dragEventTarget.currentValue)}ngOnDestroy(){this._destroySubscription()}onMouseup(c){this.isDragging&&(this.isDragging=!1,this.element.classList.remove("dragging"),this.subscription&&(this._destroySubscription(),this.dragEnd.emit({event:c,element:this.element,model:this.dragModel})))}onMousedown(c){if(c.target.classList.contains("draggable")&&(this.dragX||this.dragY)){c.preventDefault(),this.isDragging=!0;const k={x:c.clientX,y:c.clientY},j=(0,ae.R)(document,"mouseup");this.subscription=j.subscribe(et=>this.onMouseup(et));const Ae=(0,ae.R)(document,"mousemove").pipe((0,ie.Q)(j)).subscribe(et=>this.move(et,k));this.subscription.add(Ae),this.dragStart.emit({event:c,element:this.element,model:this.dragModel})}}move(c,y){if(!this.isDragging)return;const j=c.clientY-y.y;this.dragX&&(this.element.style.left=c.clientX-y.x+"px"),this.dragY&&(this.element.style.top=`${j}px`),this.element.classList.add("dragging"),this.dragging.emit({event:c,element:this.element,model:this.dragModel})}_destroySubscription(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(o.aKT))},b.\u0275dir=o.FsC({type:b,selectors:[["","draggable",""]],inputs:{dragEventTarget:"dragEventTarget",dragModel:"dragModel",dragX:"dragX",dragY:"dragY"},outputs:{dragStart:"dragStart",dragging:"dragging",dragEnd:"dragEnd"},features:[o.OA$]}),b})(),Cr=(()=>{class b{constructor(c,y){this.renderer=y,this.resizeEnabled=!0,this.resize=new o.bkB,this.resizing=!1,this.element=c.nativeElement}ngAfterViewInit(){const c=this.renderer;this.resizeHandle=c.createElement("span"),c.addClass(this.resizeHandle,this.resizeEnabled?"resize-handle":"resize-handle--not-resizable"),c.appendChild(this.element,this.resizeHandle)}ngOnDestroy(){this._destroySubscription(),this.renderer.destroyNode?this.renderer.destroyNode(this.resizeHandle):this.resizeHandle&&this.renderer.removeChild(this.renderer.parentNode(this.resizeHandle),this.resizeHandle)}onMouseup(){this.resizing=!1,this.subscription&&!this.subscription.closed&&(this._destroySubscription(),this.resize.emit(this.element.clientWidth))}onMousedown(c){const y=c.target.classList.contains("resize-handle"),k=this.element.clientWidth,j=c.screenX;if(y){c.stopPropagation(),this.resizing=!0;const Ae=(0,ae.R)(document,"mouseup");this.subscription=Ae.subscribe(ut=>this.onMouseup());const et=(0,ae.R)(document,"mousemove").pipe((0,ie.Q)(Ae)).subscribe(ut=>this.move(ut,k,j));this.subscription.add(et)}}move(c,y,k){const Ae=y+(c.screenX-k);(!this.minWidth||Ae>=this.minWidth)&&(!this.maxWidth||Ae<=this.maxWidth)&&(this.element.style.width=`${Ae}px`)}_destroySubscription(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(o.aKT),o.rXU(o.sFG))},b.\u0275dir=o.FsC({type:b,selectors:[["","resizeable",""]],hostVars:2,hostBindings:function(c,y){1&c&&o.bIt("mousedown",function(j){return y.onMousedown(j)}),2&c&&o.AVh("resizeable",y.resizeEnabled)},inputs:{resizeEnabled:"resizeEnabled",minWidth:"minWidth",maxWidth:"maxWidth"},outputs:{resize:"resize"}}),b})(),Fr=(()=>{class b{constructor(c,y){this.document=y,this.reorder=new o.bkB,this.targetChanged=new o.bkB,this.differ=c.find({}).create()}ngAfterContentInit(){this.updateSubscriptions(),this.draggables.changes.subscribe(this.updateSubscriptions.bind(this))}ngOnDestroy(){this.draggables.forEach(c=>{c.dragStart.unsubscribe(),c.dragging.unsubscribe(),c.dragEnd.unsubscribe()})}updateSubscriptions(){const c=this.differ.diff(this.createMapDiffs());if(c){const y=({currentValue:j,previousValue:Ae})=>{k({previousValue:Ae}),j&&(j.dragStart.subscribe(this.onDragStart.bind(this)),j.dragging.subscribe(this.onDragging.bind(this)),j.dragEnd.subscribe(this.onDragEnd.bind(this)))},k=({previousValue:j})=>{j&&(j.dragStart.unsubscribe(),j.dragging.unsubscribe(),j.dragEnd.unsubscribe())};c.forEachAddedItem(y),c.forEachRemovedItem(k)}}onDragStart(){this.positions={};let c=0;for(const y of this.draggables.toArray()){const k=y.element,j=parseInt(k.offsetLeft.toString(),0);this.positions[y.dragModel.prop]={left:j,right:j+parseInt(k.offsetWidth.toString(),0),index:c++,element:k}}}onDragging({model:y,event:k}){const j=this.positions[y.prop],Ae=this.isTarget(y,k);Ae?this.lastDraggingIndex!==Ae.i&&(this.targetChanged.emit({prevIndex:this.lastDraggingIndex,newIndex:Ae.i,initialIndex:j.index}),this.lastDraggingIndex=Ae.i):this.lastDraggingIndex!==j.index&&(this.targetChanged.emit({prevIndex:this.lastDraggingIndex,initialIndex:j.index}),this.lastDraggingIndex=j.index)}onDragEnd({element:c,model:y,event:k}){const j=this.positions[y.prop],Ae=this.isTarget(y,k);Ae&&this.reorder.emit({prevIndex:j.index,newIndex:Ae.i,model:y}),this.lastDraggingIndex=void 0,c.style.left="auto"}isTarget(c,y){let k=0;const et=this.document.elementsFromPoint(y.x||y.clientX,y.y||y.clientY);for(const ut in this.positions){const mn=this.positions[ut];if(c.prop!==ut&&et.find(jn=>jn===mn.element))return{pos:mn,i:k};k++}}createMapDiffs(){return this.draggables.toArray().reduce((c,y)=>(c[y.dragModel.$$id]=y,c),{})}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(o.MKu),o.rXU(N.qQ))},b.\u0275dir=o.FsC({type:b,selectors:[["","orderable",""]],contentQueries:function(c,y,k){if(1&c&&o.wni(k,Pr,5),2&c){let j;o.mGM(j=o.lsd())&&(y.draggables=j)}},outputs:{reorder:"reorder",targetChanged:"targetChanged"}}),b})(),ur=(()=>{class b{constructor(){this.pressEnabled=!0,this.duration=500,this.longPressStart=new o.bkB,this.longPressing=new o.bkB,this.longPressEnd=new o.bkB,this.mouseX=0,this.mouseY=0}get press(){return this.pressing}get isLongPress(){return this.isLongPressing}onMouseDown(c){if(1!==c.which||!this.pressEnabled||c.target.classList.contains("resize-handle"))return;this.mouseX=c.clientX,this.mouseY=c.clientY,this.pressing=!0,this.isLongPressing=!1;const k=(0,ae.R)(document,"mouseup");this.subscription=k.subscribe(j=>this.onMouseup()),this.timeout=setTimeout(()=>{this.isLongPressing=!0,this.longPressStart.emit({event:c,model:this.pressModel}),this.subscription.add((0,ae.R)(document,"mousemove").pipe((0,ie.Q)(k)).subscribe(j=>this.onMouseMove(j))),this.loop(c)},this.duration),this.loop(c)}onMouseMove(c){if(this.pressing&&!this.isLongPressing){const y=Math.abs(c.clientX-this.mouseX)>10,k=Math.abs(c.clientY-this.mouseY)>10;(y||k)&&this.endPress()}}loop(c){this.isLongPressing&&(this.timeout=setTimeout(()=>{this.longPressing.emit({event:c,model:this.pressModel}),this.loop(c)},50))}endPress(){clearTimeout(this.timeout),this.isLongPressing=!1,this.pressing=!1,this._destroySubscription(),this.longPressEnd.emit({model:this.pressModel})}onMouseup(){this.endPress()}ngOnDestroy(){this._destroySubscription()}_destroySubscription(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)}}return b.\u0275fac=function(c){return new(c||b)},b.\u0275dir=o.FsC({type:b,selectors:[["","long-press",""]],hostVars:4,hostBindings:function(c,y){1&c&&o.bIt("mousedown",function(j){return y.onMouseDown(j)}),2&c&&o.AVh("press",y.press)("longpress",y.isLongPress)},inputs:{pressEnabled:"pressEnabled",pressModel:"pressModel",duration:"duration"},outputs:{longPressStart:"longPressStart",longPressing:"longPressing",longPressEnd:"longPressEnd"}}),b})(),xr=(()=>{class b{constructor(c,y,k){this.ngZone=c,this.renderer=k,this.scrollbarV=!1,this.scrollbarH=!1,this.scroll=new o.bkB,this.scrollYPos=0,this.scrollXPos=0,this.prevScrollYPos=0,this.prevScrollXPos=0,this._scrollEventListener=null,this.element=y.nativeElement}ngOnInit(){if(this.scrollbarV||this.scrollbarH){const c=this.renderer;this.parentElement=c.parentNode(c.parentNode(this.element)),this._scrollEventListener=this.onScrolled.bind(this),this.parentElement.addEventListener("scroll",this._scrollEventListener)}}ngOnDestroy(){this._scrollEventListener&&(this.parentElement.removeEventListener("scroll",this._scrollEventListener),this._scrollEventListener=null)}setOffset(c){this.parentElement&&(this.parentElement.scrollTop=c)}onScrolled(c){const y=c.currentTarget;requestAnimationFrame(()=>{this.scrollYPos=y.scrollTop,this.scrollXPos=y.scrollLeft,this.updateOffset()})}updateOffset(){let c;this.scrollYPos<this.prevScrollYPos?c="down":this.scrollYPos>this.prevScrollYPos&&(c="up"),this.scroll.emit({direction:c,scrollYPos:this.scrollYPos,scrollXPos:this.scrollXPos}),this.prevScrollYPos=this.scrollYPos,this.prevScrollXPos=this.scrollXPos}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(o.SKi),o.rXU(o.aKT),o.rXU(o.sFG))},b.\u0275cmp=o.VBU({type:b,selectors:[["datatable-scroller"]],hostAttrs:[1,"datatable-scroll"],hostVars:4,hostBindings:function(c,y){2&c&&o.xc7("height",y.scrollHeight,"px")("width",y.scrollWidth,"px")},inputs:{scrollbarV:"scrollbarV",scrollbarH:"scrollbarH",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth"},outputs:{scroll:"scroll"},ngContentSelectors:ue,decls:1,vars:0,template:function(c,y){1&c&&(o.NAR(),o.SdG(0))},encapsulation:2,changeDetection:0}),b})(),Ln=(()=>{class b{constructor(c){this.template=c}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(o.C4Q))},b.\u0275dir=o.FsC({type:b,selectors:[["","ngx-datatable-group-header-template",""]]}),b})(),oi=(()=>{class b{constructor(){this.rowHeight=0,this.toggle=new o.bkB}get template(){return this._templateInput||this._templateQuery}toggleExpandGroup(c){this.toggle.emit({type:"group",value:c})}expandAllGroups(){this.toggle.emit({type:"all",value:!0})}collapseAllGroups(){this.toggle.emit({type:"all",value:!1})}}return b.\u0275fac=function(c){return new(c||b)},b.\u0275dir=o.FsC({type:b,selectors:[["ngx-datatable-group-header"]],contentQueries:function(c,y,k){if(1&c&&o.wni(k,Ln,7,o.C4Q),2&c){let j;o.mGM(j=o.lsd())&&(y._templateQuery=j.first)}},inputs:{rowHeight:"rowHeight",_templateInput:[0,"template","_templateInput"]},outputs:{toggle:"toggle"}}),b})();function ce(){return""}function me(b){return null==b?ce:"number"==typeof b?je:-1!==b.indexOf(".")?Fe:ve}function je(b,z){return null==b?"":b&&null!=z?b[z]??"":b}function ve(b,z){return null==b?"":b&&z?b[z]??"":b}function Fe(b,z){if(null==b)return"";if(!b||!z)return b;let c=b[z];if(void 0!==c)return c;c=b;const y=z.split(".");if(y.length)for(let k=0;k<y.length;k++)if(c=c[y[k]],null==c)return"";return c}function ot(b){return b&&(z=>me(b)(z,b))}function mt(b,z,c){if(z&&c){const y={},k=b.length;let j=null;y[0]=new Dt;const Ae=b.reduce((ut,mn)=>{const jn=c(mn);return-1===ut.indexOf(jn)&&ut.push(jn),ut},[]);for(let ut=0;ut<k;ut++)y[c(b[ut])]=new Dt(b[ut]);for(let ut=0;ut<k;ut++){j=y[c(b[ut])];let mn=0;const jn=z(j.row);jn&&Ae.indexOf(jn)>-1&&(mn=jn),j.parent=y[mn],j.row.level=j.parent.row.level+1,j.parent.children.push(j)}let et=[];return y[0].flatten(function(){et=[...et,this.row]},!0),et}return b}class Dt{constructor(z=null){z||(z={level:-1,treeStatus:"expanded"}),this.row=z,this.parent=null,this.children=[]}flatten(z,c){if("expanded"===this.row.treeStatus)for(let y=0,k=this.children.length;y<k;y++){const j=this.children[y];z.apply(j,Array.prototype.slice.call(arguments,2)),c&&j.flatten.apply(j,arguments)}}}function Tt(b){return(b=(b=(b=b.replace(/[^a-zA-Z0-9 ]/g," ")).replace(/([a-z](?=[A-Z]))/g,"$1 ")).replace(/([^a-zA-Z0-9 ])|^[0-9]+/g,"").trim().toLowerCase()).replace(/([ 0-9]+)([a-zA-Z])/g,function(z,c,y){return c.trim()+y.toUpperCase()})}function Ce(b){return b.replace(/([A-Z])/g,z=>` ${z}`).replace(/^./,z=>z.toUpperCase())}function G(b){if(!b)return;let z=!1;for(const c of b)c.$$id||(c.$$id=("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4)),le(c.prop)&&c.name&&(c.prop=Tt(c.name)),c.$$valueGetter||(c.$$valueGetter=me(c.prop)),!le(c.prop)&&le(c.name)&&(c.name=Ce(String(c.prop))),le(c.prop)&&le(c.name)&&(c.name=""),c.hasOwnProperty("resizeable")||(c.resizeable=!0),c.hasOwnProperty("sortable")||(c.sortable=!0),c.hasOwnProperty("draggable")||(c.draggable=!0),c.hasOwnProperty("canAutoResize")||(c.canAutoResize=!0),c.hasOwnProperty("width")||(c.width=150),c.hasOwnProperty("isTreeColumn")&&c.isTreeColumn&&!z?z=!0:c.isTreeColumn=!1}function le(b){return null==b}var it=function(b){return b.standard="standard",b.flex="flex",b.force="force",b}(it||{}),_t=function(b){return b.single="single",b.multi="multi",b.multiClick="multiClick",b.cell="cell",b.checkbox="checkbox",b}(_t||{}),Ft=function(b){return b.single="single",b.multi="multi",b}(Ft||{}),ft=function(b){return b.header="header",b.body="body",b}(ft||{});let ct=(()=>{class b{constructor(c){this.template=c}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(o.C4Q))},b.\u0275dir=o.FsC({type:b,selectors:[["","ngx-datatable-header-template",""]]}),b})(),rt=(()=>{class b{constructor(c){this.template=c}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(o.C4Q))},b.\u0275dir=o.FsC({type:b,selectors:[["","ngx-datatable-cell-template",""]]}),b})(),Ht=(()=>{class b{constructor(c){this.template=c}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(o.C4Q))},b.\u0275dir=o.FsC({type:b,selectors:[["","ngx-datatable-tree-toggle",""]]}),b})(),rn=(()=>{class b{constructor(c){this.columnChangesService=c,this.isFirstChange=!0}get cellTemplate(){return this._cellTemplateInput||this._cellTemplateQuery}get headerTemplate(){return this._headerTemplateInput||this._headerTemplateQuery}get treeToggleTemplate(){return this._treeToggleTemplateInput||this._treeToggleTemplateQuery}ngOnChanges(){this.isFirstChange?this.isFirstChange=!1:this.columnChangesService.onInputChange()}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(Vt))},b.\u0275dir=o.FsC({type:b,selectors:[["ngx-datatable-column"]],contentQueries:function(c,y,k){if(1&c&&(o.wni(k,rt,7,o.C4Q),o.wni(k,ct,7,o.C4Q),o.wni(k,Ht,7,o.C4Q)),2&c){let j;o.mGM(j=o.lsd())&&(y._cellTemplateQuery=j.first),o.mGM(j=o.lsd())&&(y._headerTemplateQuery=j.first),o.mGM(j=o.lsd())&&(y._treeToggleTemplateQuery=j.first)}},inputs:{name:"name",prop:"prop",frozenLeft:"frozenLeft",frozenRight:"frozenRight",flexGrow:"flexGrow",resizeable:"resizeable",comparator:"comparator",pipe:"pipe",sortable:"sortable",draggable:"draggable",canAutoResize:"canAutoResize",minWidth:"minWidth",width:"width",maxWidth:"maxWidth",checkboxable:"checkboxable",headerCheckboxable:"headerCheckboxable",headerClass:"headerClass",cellClass:"cellClass",isTreeColumn:"isTreeColumn",treeLevelIndent:"treeLevelIndent",summaryFunc:"summaryFunc",summaryTemplate:"summaryTemplate",_cellTemplateInput:[0,"cellTemplate","_cellTemplateInput"],_headerTemplateInput:[0,"headerTemplate","_headerTemplateInput"],_treeToggleTemplateInput:[0,"treeToggleTemplate","_treeToggleTemplateInput"]},features:[o.OA$]}),b})(),xn=(()=>{class b{constructor(c){this.template=c}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(o.C4Q))},b.\u0275dir=o.FsC({type:b,selectors:[["","ngx-datatable-row-detail-template",""]]}),b})(),yn=(()=>{class b{constructor(){this.rowHeight=0,this.toggle=new o.bkB}get template(){return this._templateInput||this._templateQuery}toggleExpandRow(c){this.toggle.emit({type:"row",value:c})}expandAllRows(){this.toggle.emit({type:"all",value:!0})}collapseAllRows(){this.toggle.emit({type:"all",value:!1})}}return b.\u0275fac=function(c){return new(c||b)},b.\u0275dir=o.FsC({type:b,selectors:[["ngx-datatable-row-detail"]],contentQueries:function(c,y,k){if(1&c&&o.wni(k,xn,7,o.C4Q),2&c){let j;o.mGM(j=o.lsd())&&(y._templateQuery=j.first)}},inputs:{rowHeight:"rowHeight",_templateInput:[0,"template","_templateInput"]},outputs:{toggle:"toggle"}}),b})(),It=(()=>{class b{get template(){return this._templateInput||this._templateQuery}}return b.\u0275fac=function(c){return new(c||b)},b.\u0275dir=o.FsC({type:b,selectors:[["ngx-datatable-footer"]],contentQueries:function(c,y,k){if(1&c&&o.wni(k,Ze,5,o.C4Q),2&c){let j;o.mGM(j=o.lsd())&&(y._templateQuery=j.first)}},inputs:{footerHeight:"footerHeight",totalMessage:"totalMessage",selectedMessage:"selectedMessage",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon",_templateInput:[0,"template","_templateInput"]}}),b})();function bn(b){const z={left:[],center:[],right:[]};if(b)for(const c of b)c.frozenLeft?z.left.push(c):c.frozenRight?z.right.push(c):z.center.push(c);return z}function Bt(b,z){return{left:Lt(b.left),center:Lt(b.center),right:Lt(b.right),total:Math.floor(Lt(z))}}function Lt(b,z){let c=0;if(b)for(const y of b)c+=parseFloat(z&&y[z]?y[z]:y.width);return c}function P(b){const z=[],c=bn(b);return z.push({type:"left",columns:c.left}),z.push({type:"center",columns:c.center}),z.push({type:"right",columns:c.right}),z}class ${constructor(){this.treeArray=[]}clearCache(){this.treeArray=[]}initCache(z){const{rows:c,rowHeight:y,detailRowHeight:k,externalVirtual:j,rowCount:Ae,rowIndexes:et,rowExpansions:ut}=z,mn="function"==typeof y,jn="function"==typeof k;if(!mn&&isNaN(y))throw new Error(`Row Height cache initialization failed. Please ensure that 'rowHeight' is a\n valid number or function value: (${y}) when 'scrollbarV' is enabled.`);if(!jn&&isNaN(k))throw new Error(`Row Height cache initialization failed. Please ensure that 'detailRowHeight' is a\n valid number or function value: (${k}) when 'scrollbarV' is enabled.`);const si=j?Ae:c.length;this.treeArray=new Array(si);for(let en=0;en<si;++en)this.treeArray[en]=0;for(let en=0;en<si;++en){const Br=c[en];let ai=y;mn&&(ai=y(Br));const go=ut.has(Br);Br&&go&&(ai+=jn?k(Br,et.get(Br)):k),this.update(en,ai)}}getRowIndex(z){return 0===z?0:this.calcRowIndex(z)}update(z,c){if(!this.treeArray.length)throw new Error(`Update at index ${z} with value ${c} failed:\n Row Height cache not initialized.`);const y=this.treeArray.length;for(z|=0;z<y;)this.treeArray[z]+=c,z|=z+1}query(z){if(!this.treeArray.length)throw new Error(`query at index ${z} failed: Fenwick tree array not initialized.`);let c=0;for(z|=0;z>=0;)c+=this.treeArray[z],z=(z&z+1)-1;return c}queryBetween(z,c){return this.query(c)-this.query(z-1)}calcRowIndex(z){if(!this.treeArray.length)return 0;let c=-1;const y=this.treeArray.length;for(let j=Math.pow(2,y.toString(2).length-1);0!==j;j>>=1){const Ae=c+j;Ae<y&&z>=this.treeArray[Ae]&&(z-=this.treeArray[Ae],c=Ae)}return c+1}}const H={},K=typeof document<"u"?document.createElement("div").style:void 0,ye=function(){const b=typeof window<"u"?window.getComputedStyle(document.documentElement,""):void 0,z=typeof b<"u"?Array.prototype.slice.call(b).join("").match(/-(moz|webkit|ms)-/):null,c=null!==z?z[1]:void 0,y=typeof c<"u"?"WebKit|Moz|MS|O".match(new RegExp("("+c+")","i"))[1]:void 0;return y?{dom:y,lowercase:c,css:`-${c}-`,js:c[0].toUpperCase()+c.substr(1)}:void 0}();function W(b){const z=Tt(b);return H[z]||(void 0!==ye&&void 0!==K[ye.css+b]?H[z]=ye.css+b:void 0!==K[b]&&(H[z]=b)),H[z]}const ee=typeof window<"u"?W("transform"):void 0,Ie=typeof window<"u"?W("backfaceVisibility"):void 0,$e=typeof window<"u"?!!W("transform"):void 0,Je=typeof window<"u"?!!W("perspective"):void 0,wt=typeof window<"u"?window.navigator.userAgent:"Chrome",Kt=/Safari\//.test(wt)&&!/Chrome\//.test(wt);function Zt(b,z,c){typeof ee<"u"&&$e?!Kt&&Je?(b[ee]=`translate3d(${z}px, ${c}px, 0)`,b[Ie]="hidden"):b[Tt(ee)]=`translate(${z}px, ${c}px)`:(b.top=`${c}px`,b.left=`${z}px`)}let on=(()=>{class b{}return b.\u0275fac=function(c){return new(c||b)},b.\u0275cmp=o.VBU({type:b,selectors:[["datatable-progress"]],decls:3,vars:0,consts:[["role","progressbar",1,"progress-linear"],[1,"container"],[1,"bar"]],template:function(c,y){1&c&&(o.j41(0,"div",0)(1,"div",1),o.nrm(2,"div",2),o.k0s()())},encapsulation:2,changeDetection:0}),b})();function sn(b,z,c){const y=c(z,b);return y>-1?b.splice(y,1):b.push(z),b}var He=function(b){return b[b.up=38]="up",b[b.down=40]="down",b[b.return=13]="return",b[b.escape=27]="escape",b[b.left=37]="left",b[b.right=39]="right",b}(He||{});let Me=(()=>{class b{constructor(){this.activate=new o.bkB,this.select=new o.bkB}selectRow(c,y,k){if(!this.selectEnabled)return;const j=this.selectionType===_t.checkbox,et=this.selectionType===_t.multiClick;let ut=[];ut=this.selectionType===_t.multi||j||et?c.shiftKey?function tt(b,z,c,y){const j=c<y;for(let Ae=0;Ae<z.length;Ae++){let jn={start:0,end:0};jn=j?{start:c,end:y}:{start:y,end:c+1},(j&&Ae<=y&&Ae>=c||!j&&Ae>=y&&Ae<=c)&&Ae>=jn.start&&Ae<=jn.end&&b.push(z[Ae])}return b}([],this.rows,y,this.prevIndex,this.getRowSelectedIdx.bind(this)):sn(c.ctrlKey||c.metaKey||et||j?[...this.selected]:[],k,this.getRowSelectedIdx.bind(this)):sn([],k,this.getRowSelectedIdx.bind(this)),"function"==typeof this.selectCheck&&(ut=ut.filter(this.selectCheck.bind(this))),this.selected.splice(0,this.selected.length),this.selected.push(...ut),this.prevIndex=y,this.select.emit({selected:ut})}onActivate(c,y){const{type:k,event:j,row:Ae}=c,et=this.selectionType===_t.checkbox;!et&&("click"===k||"dblclick"===k)||et&&"checkbox"===k?this.selectRow(j,y,Ae):"keydown"===k&&(j.keyCode===He.return?this.selectRow(j,y,Ae):this.onKeyboardFocus(c)),this.activate.emit(c)}onKeyboardFocus(c){const{keyCode:y}=c.event;if(y===He.up||y===He.down||y===He.right||y===He.left){const j=this.selectionType===_t.cell;c.cellElement&&j?j&&this.focusCell(c.cellElement,c.rowElement,y,c.cellIndex):this.focusRow(c.rowElement,y)}}focusRow(c,y){const k=this.getPrevNextRow(c,y);k&&k.focus()}getPrevNextRow(c,y){const k=c.parentElement;if(k){let j;if(y===He.up?j=k.previousElementSibling:y===He.down&&(j=k.nextElementSibling),j&&j.children.length)return j.children[0]}}focusCell(c,y,k,j){let Ae;if(k===He.left)Ae=c.previousElementSibling;else if(k===He.right)Ae=c.nextElementSibling;else if(k===He.up||k===He.down){const et=this.getPrevNextRow(y,k);if(et){const ut=et.getElementsByClassName("datatable-body-cell");ut.length&&(Ae=ut[j])}}Ae&&Ae.focus()}getRowSelected(c){return this.getRowSelectedIdx(c,this.selected)>-1}getRowSelectedIdx(c,y){if(!y||!y.length)return-1;const k=this.rowIdentity(c);return y.findIndex(j=>this.rowIdentity(j)===k)}}return b.\u0275fac=function(c){return new(c||b)},b.\u0275cmp=o.VBU({type:b,selectors:[["datatable-selection"]],inputs:{rows:"rows",selected:"selected",selectEnabled:"selectEnabled",selectionType:"selectionType",rowIdentity:"rowIdentity",selectCheck:"selectCheck"},outputs:{activate:"activate",select:"select"},ngContentSelectors:ue,decls:1,vars:0,template:function(c,y){1&c&&(o.NAR(),o.SdG(0))},encapsulation:2,changeDetection:0}),b})();var Qe=function(b){return b.asc="asc",b.desc="desc",b}(Qe||{});let Rt=(()=>{class b{constructor(c,y){this.cd=y,this.activate=new o.bkB,this.treeAction=new o.bkB,this.isFocused=!1,this.onCheckboxChangeFn=this.onCheckboxChange.bind(this),this.activateFn=this.activate.emit.bind(this.activate),this.cellContext={onCheckboxChangeFn:this.onCheckboxChangeFn,activateFn:this.activateFn,row:this.row,group:this.group,value:this.value,column:this.column,rowHeight:this.rowHeight,isSelected:this.isSelected,rowIndex:this.rowIndex,treeStatus:this.treeStatus,onTreeAction:this.onTreeAction.bind(this)},this._element=c.nativeElement}set group(c){this._group=c,this.cellContext.group=c,this.checkValueUpdates(),this.cd.markForCheck()}get group(){return this._group}set rowHeight(c){this._rowHeight=c,this.cellContext.rowHeight=c,this.checkValueUpdates(),this.cd.markForCheck()}get rowHeight(){return this._rowHeight}set isSelected(c){this._isSelected=c,this.cellContext.isSelected=c,this.cd.markForCheck()}get isSelected(){return this._isSelected}set expanded(c){this._expanded=c,this.cellContext.expanded=c,this.cd.markForCheck()}get expanded(){return this._expanded}set rowIndex(c){this._rowIndex=c,this.cellContext.rowIndex=c,this.checkValueUpdates(),this.cd.markForCheck()}get rowIndex(){return this._rowIndex}set column(c){this._column=c,this.cellContext.column=c,this.checkValueUpdates(),this.cd.markForCheck()}get column(){return this._column}set row(c){this._row=c,this.cellContext.row=c,this.checkValueUpdates(),this.cd.markForCheck()}get row(){return this._row}set sorts(c){this._sorts=c,this.calcSortDir=this.calcSortDir(c)}get sorts(){return this._sorts}set treeStatus(c){this._treeStatus="collapsed"!==c&&"expanded"!==c&&"loading"!==c&&"disabled"!==c?"collapsed":c,this.cellContext.treeStatus=this._treeStatus,this.checkValueUpdates(),this.cd.markForCheck()}get treeStatus(){return this._treeStatus}get columnCssClasses(){let c="datatable-body-cell";if(this.column.cellClass)if("string"==typeof this.column.cellClass)c+=" "+this.column.cellClass;else if("function"==typeof this.column.cellClass){const y=this.column.cellClass({row:this.row,group:this.group,column:this.column,value:this.value,rowHeight:this.rowHeight});if("string"==typeof y)c+=" "+y;else if("object"==typeof y){const k=Object.keys(y);for(const j of k)!0===y[j]&&(c+=` ${j}`)}}return this.sortDir||(c+=" sort-active"),this.isFocused&&(c+=" active"),this.sortDir===Qe.asc&&(c+=" sort-asc"),this.sortDir===Qe.desc&&(c+=" sort-desc"),c}get width(){return this.column.width}get minWidth(){return this.column.minWidth}get maxWidth(){return this.column.maxWidth}get height(){const c=this.rowHeight;return isNaN(c)?c:c+"px"}ngDoCheck(){this.checkValueUpdates()}ngOnDestroy(){this.cellTemplate&&this.cellTemplate.clear()}checkValueUpdates(){let c="";if(this.row&&this.column){const y=this.column.$$valueGetter(this.row,this.column.prop),k=this.column.pipe;k?c=k.transform(y):void 0!==c&&(c=y)}else c="";this.value!==c&&(this.value=c,this.cellContext.value=c,this.sanitizedValue=null!=c?this.stripHtml(c):c,this.cd.markForCheck())}onFocus(){this.isFocused=!0}onBlur(){this.isFocused=!1}onClick(c){this.activate.emit({type:"click",event:c,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element})}onDblClick(c){this.activate.emit({type:"dblclick",event:c,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element})}onKeyDown(c){const y=c.keyCode;(y===He.return||y===He.down||y===He.up||y===He.left||y===He.right)&&c.target===this._element&&(c.preventDefault(),c.stopPropagation(),this.activate.emit({type:"keydown",event:c,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element}))}onCheckboxChange(c){this.activate.emit({type:"checkbox",event:c,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element,treeStatus:"collapsed"})}calcSortDir(c){if(!c)return;const y=c.find(k=>k.prop===this.column.prop);return y?y.dir:void 0}stripHtml(c){return c.replace?c.replace(/<\/?[^>]+(>|$)/g,""):c}onTreeAction(){this.treeAction.emit(this.row)}calcLeftMargin(c,y){return c.isTreeColumn?y.level*(null!=c.treeLevelIndent?c.treeLevelIndent:50):0}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(o.aKT),o.rXU(o.gRc))},b.\u0275cmp=o.VBU({type:b,selectors:[["datatable-body-cell"]],viewQuery:function(c,y){if(1&c&&o.GBs(ge,7,o.c1b),2&c){let k;o.mGM(k=o.lsd())&&(y.cellTemplate=k.first)}},hostVars:10,hostBindings:function(c,y){1&c&&o.bIt("focus",function(){return y.onFocus()})("blur",function(){return y.onBlur()})("click",function(j){return y.onClick(j)})("dblclick",function(j){return y.onDblClick(j)})("keydown",function(j){return y.onKeyDown(j)}),2&c&&(o.HbH(y.columnCssClasses),o.xc7("width",y.width,"px")("min-width",y.minWidth,"px")("max-width",y.maxWidth,"px")("height",y.height))},inputs:{displayCheck:"displayCheck",group:"group",rowHeight:"rowHeight",isSelected:"isSelected",expanded:"expanded",rowIndex:"rowIndex",column:"column",row:"row",sorts:"sorts",treeStatus:"treeStatus"},outputs:{activate:"activate",treeAction:"treeAction"},decls:5,vars:6,consts:[["cellTemplate",""],[1,"datatable-body-cell-label"],["class","datatable-checkbox",4,"ngIf"],[4,"ngIf"],[3,"title","innerHTML",4,"ngIf"],[1,"datatable-checkbox"],["type","checkbox",3,"click","checked"],["class","datatable-tree-button",3,"disabled","click",4,"ngIf"],[1,"datatable-tree-button",3,"click","disabled"],["class","icon datatable-icon-collapse",4,"ngIf"],["class","icon datatable-icon-up",4,"ngIf"],["class","icon datatable-icon-down",4,"ngIf"],[1,"icon","datatable-icon-collapse"],[1,"icon","datatable-icon-up"],[1,"icon","datatable-icon-down"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"title","innerHTML"]],template:function(c,y){1&c&&(o.j41(0,"div",1),o.DNE(1,Z,2,1,"label",2)(2,St,3,2,"ng-container",3)(3,ht,1,2,"span",4)(4,qe,2,2,null,3),o.k0s()),2&c&&(o.xc7("margin-left",y.calcLeftMargin(y.column,y.row),"px"),o.R7$(),o.Y8G("ngIf",y.column.checkboxable&&(!y.displayCheck||y.displayCheck(y.row,y.column,y.value))),o.R7$(),o.Y8G("ngIf",y.column.isTreeColumn),o.R7$(),o.Y8G("ngIf",!y.column.cellTemplate),o.R7$(),o.Y8G("ngIf",y.column.cellTemplate))},dependencies:[N.bT,N.T3],encapsulation:2,changeDetection:0}),b})(),Gt=(()=>{class b{constructor(c,y,k,j){this.differs=c,this.scrollbarHelper=y,this.cd=k,this.treeStatus="collapsed",this.activate=new o.bkB,this.treeAction=new o.bkB,this._groupStyles={left:{},center:{},right:{}},this._element=j.nativeElement,this._rowDiffer=c.find({}).create()}set columns(c){this._columns=c,this.recalculateColumns(c),this.buildStylesByGroup()}get columns(){return this._columns}set innerWidth(c){if(this._columns){const y=bn(this._columns);this._columnGroupWidths=Bt(y,this._columns)}this._innerWidth=c,this.recalculateColumns(),this.buildStylesByGroup()}get innerWidth(){return this._innerWidth}set offsetX(c){this._offsetX=c,this.buildStylesByGroup()}get offsetX(){return this._offsetX}get cssClass(){let c="datatable-body-row";if(this.isSelected&&(c+=" active"),this.rowIndex%2!=0&&(c+=" datatable-row-odd"),this.rowIndex%2==0&&(c+=" datatable-row-even"),this.rowClass){const y=this.rowClass(this.row);if("string"==typeof y)c+=` ${y}`;else if("object"==typeof y){const k=Object.keys(y);for(const j of k)!0===y[j]&&(c+=` ${j}`)}}return c}get columnsTotalWidths(){return this._columnGroupWidths.total}ngDoCheck(){this._rowDiffer.diff(this.row)&&this.cd.markForCheck()}trackByGroups(c,y){return y.type}columnTrackingFn(c,y){return y.$$id}buildStylesByGroup(){this._groupStyles.left=this.calcStylesByGroup("left"),this._groupStyles.center=this.calcStylesByGroup("center"),this._groupStyles.right=this.calcStylesByGroup("right"),this.cd.markForCheck()}calcStylesByGroup(c){const y=this._columnGroupWidths,k=this.offsetX,j={width:`${y[c]}px`};if("left"===c)Zt(j,k,0);else if("right"===c){const Ae=parseInt(this.innerWidth+"",0);Zt(j,-1*(y.total-Ae-k+this.scrollbarHelper.width),0)}return j}onActivate(c,y){c.cellIndex=y,c.rowElement=this._element,this.activate.emit(c)}onKeyDown(c){const y=c.keyCode;(y===He.return||y===He.down||y===He.up||y===He.left||y===He.right)&&c.target===this._element&&(c.preventDefault(),c.stopPropagation(),this.activate.emit({type:"keydown",event:c,row:this.row,rowElement:this._element}))}onMouseenter(c){this.activate.emit({type:"mouseenter",event:c,row:this.row,rowElement:this._element})}recalculateColumns(c=this.columns){this._columns=c;const y=bn(this._columns);this._columnsByPin=P(this._columns),this._columnGroupWidths=Bt(y,this._columns)}onTreeAction(){this.treeAction.emit()}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(o.MKu),o.rXU(Or,4),o.rXU(o.gRc),o.rXU(o.aKT))},b.\u0275cmp=o.VBU({type:b,selectors:[["datatable-body-row"]],hostVars:6,hostBindings:function(c,y){1&c&&o.bIt("keydown",function(j){return y.onKeyDown(j)})("mouseenter",function(j){return y.onMouseenter(j)}),2&c&&(o.HbH(y.cssClass),o.xc7("height",y.rowHeight,"px")("width",y.columnsTotalWidths,"px"))},inputs:{columns:"columns",innerWidth:"innerWidth",expanded:"expanded",rowClass:"rowClass",row:"row",group:"group",isSelected:"isSelected",rowIndex:"rowIndex",displayCheck:"displayCheck",treeStatus:"treeStatus",offsetX:"offsetX",rowHeight:"rowHeight"},outputs:{activate:"activate",treeAction:"treeAction"},decls:1,vars:2,consts:[[3,"class","ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle"],["role","cell","tabindex","-1",3,"row","group","expanded","isSelected","rowIndex","column","rowHeight","displayCheck","treeStatus","activate","treeAction",4,"ngFor","ngForOf","ngForTrackBy"],["role","cell","tabindex","-1",3,"activate","treeAction","row","group","expanded","isSelected","rowIndex","column","rowHeight","displayCheck","treeStatus"]],template:function(c,y){1&c&&o.DNE(0,yt,2,6,"div",0),2&c&&o.Y8G("ngForOf",y._columnsByPin)("ngForTrackBy",y.trackByGroups)},dependencies:[Rt,N.Sq,N.B3],encapsulation:2,changeDetection:0}),b})();function R(b){const z=b.filter(c=>!!c);return!z.length||z.some(c=>"number"!=typeof c)?null:z.reduce((c,y)=>c+y)}function w(b){return null}let E=(()=>{class b{constructor(){this.summaryRow={}}ngOnChanges(){!this.columns||!this.rows||(this.updateInternalColumns(),this.updateValues())}updateInternalColumns(){this._internalColumns=this.columns.map(c=>({...c,cellTemplate:c.summaryTemplate}))}updateValues(){this.summaryRow={},this.columns.filter(c=>!c.summaryTemplate).forEach(c=>{const y=this.rows.map(j=>j[c.prop]),k=this.getSummaryFunction(c);this.summaryRow[c.prop]=c.pipe?c.pipe.transform(k(y)):k(y)})}getSummaryFunction(c){return void 0===c.summaryFunc?R:null===c.summaryFunc?w:c.summaryFunc}}return b.\u0275fac=function(c){return new(c||b)},b.\u0275cmp=o.VBU({type:b,selectors:[["datatable-summary-row"]],hostAttrs:[1,"datatable-summary-row"],inputs:{rows:"rows",columns:"columns",rowHeight:"rowHeight",offsetX:"offsetX",innerWidth:"innerWidth"},features:[o.OA$],decls:1,vars:1,consts:[["tabindex","-1",3,"innerWidth","offsetX","columns","rowHeight","row","rowIndex",4,"ngIf"],["tabindex","-1",3,"innerWidth","offsetX","columns","rowHeight","row","rowIndex"]],template:function(c,y){1&c&&o.DNE(0,Wt,1,6,"datatable-body-row",0),2&c&&o.Y8G("ngIf",y.summaryRow&&y._internalColumns)},dependencies:[Gt,N.bT],encapsulation:2}),b})(),g=(()=>{class b{constructor(c,y){this.cd=c,this.differs=y,this.rowContextmenu=new o.bkB(!1),this._expanded=!1,this.groupContext={group:this.row,expanded:this.expanded,rowIndex:this.rowIndex},this.rowContext={row:this.row,expanded:this.expanded,rowIndex:this.rowIndex},this.rowDiffer=y.find({}).create()}set rowIndex(c){this._rowIndex=c,this.rowContext.rowIndex=c,this.groupContext.rowIndex=c,this.cd.markForCheck()}get rowIndex(){return this._rowIndex}set expanded(c){this._expanded=c,this.groupContext.expanded=c,this.rowContext.expanded=c,this.cd.markForCheck()}get expanded(){return this._expanded}ngDoCheck(){this.rowDiffer.diff(this.row)&&(this.rowContext.row=this.row,this.groupContext.group=this.row,this.cd.markForCheck())}onContextmenu(c){this.rowContextmenu.emit({event:c,row:this.row})}getGroupHeaderStyle(){const c={};return c.transform="translate3d("+this.offsetX+"px, 0px, 0px)",c["backface-visibility"]="hidden",c.width=this.innerWidth,c}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(o.gRc),o.rXU(o.MKu))},b.\u0275cmp=o.VBU({type:b,selectors:[["datatable-row-wrapper"]],hostAttrs:[1,"datatable-row-wrapper"],hostBindings:function(c,y){1&c&&o.bIt("contextmenu",function(j){return y.onContextmenu(j)})},inputs:{innerWidth:"innerWidth",rowDetail:"rowDetail",groupHeader:"groupHeader",offsetX:"offsetX",detailRowHeight:"detailRowHeight",row:"row",groupedRows:"groupedRows",rowIndex:"rowIndex",expanded:"expanded"},outputs:{rowContextmenu:"rowContextmenu"},ngContentSelectors:ue,decls:3,vars:3,consts:[["class","datatable-group-header",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","datatable-row-detail",3,"height",4,"ngIf"],[1,"datatable-group-header",3,"ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"datatable-row-detail"]],template:function(c,y){1&c&&(o.NAR(),o.DNE(0,ke,2,2,"div",0)(1,U,1,0,"ng-content",1)(2,be,2,3,"div",2)),2&c&&(o.Y8G("ngIf",y.groupHeader&&y.groupHeader.template),o.R7$(),o.Y8G("ngIf",y.groupHeader&&y.groupHeader.template&&y.expanded||!y.groupHeader||!y.groupHeader.template),o.R7$(),o.Y8G("ngIf",y.rowDetail&&y.rowDetail.template&&y.expanded))},dependencies:[N.bT,N.B3,N.T3],encapsulation:2,changeDetection:0}),b})(),O=(()=>{class b{constructor(c){this.cd=c,this.selected=[],this.scroll=new o.bkB,this.page=new o.bkB,this.activate=new o.bkB,this.select=new o.bkB,this.detailToggle=new o.bkB,this.rowContextmenu=new o.bkB(!1),this.treeAction=new o.bkB,this.rowHeightsCache=new $,this.temp=[],this.offsetY=0,this.indexes={},this.rowIndexes=new WeakMap,this.rowExpansions=[],this.getDetailRowHeight=(y,k)=>{if(!this.rowDetail)return 0;const j=this.rowDetail.rowHeight;return"function"==typeof j?j(y,k):j},this.rowTrackingFn=(y,k)=>{const j=this.getRowIndex(k);return this.trackByProp?k[this.trackByProp]:j}}set pageSize(c){this._pageSize=c,this.recalcLayout()}get pageSize(){return this._pageSize}set rows(c){this._rows=c,this.recalcLayout()}get rows(){return this._rows}set columns(c){this._columns=c;const y=bn(c);this.columnGroupWidths=Bt(y,c)}get columns(){return this._columns}set offset(c){this._offset=c,(!this.scrollbarV||this.scrollbarV&&!this.virtualization)&&this.recalcLayout()}get offset(){return this._offset}set rowCount(c){this._rowCount=c,this.recalcLayout()}get rowCount(){return this._rowCount}get bodyWidth(){return this.scrollbarH?this.innerWidth+"px":"100%"}set bodyHeight(c){this._bodyHeight=this.scrollbarV?c+"px":"auto",this.recalcLayout()}get bodyHeight(){return this._bodyHeight}get selectEnabled(){return!!this.selectionType}get scrollHeight(){if(this.scrollbarV&&this.virtualization&&this.rowCount)return this.rowHeightsCache.query(this.rowCount-1)}ngOnInit(){this.rowDetail&&(this.listener=this.rowDetail.toggle.subscribe(({type:c,value:y})=>{"row"===c&&this.toggleRowExpansion(y),"all"===c&&this.toggleAllRows(y),this.updateIndexes(),this.updateRows(),this.cd.markForCheck()})),this.groupHeader&&(this.listener=this.groupHeader.toggle.subscribe(({type:c,value:y})=>{"group"===c&&this.toggleRowExpansion(y),"all"===c&&this.toggleAllRows(y),this.updateIndexes(),this.updateRows(),this.cd.markForCheck()}))}ngOnDestroy(){(this.rowDetail||this.groupHeader)&&this.listener.unsubscribe()}updateOffsetY(c){this.scroller&&(this.scrollbarV&&this.virtualization&&c?c=this.rowHeightsCache.query(this.pageSize*c-1):this.scrollbarV&&!this.virtualization&&(c=0),this.scroller.setOffset(c||0))}onBodyScroll(c){const y=c.scrollYPos,k=c.scrollXPos;(this.offsetY!==y||this.offsetX!==k)&&this.scroll.emit({offsetY:y,offsetX:k}),this.offsetY=y,this.offsetX=k,this.updateIndexes(),this.updatePage(c.direction),this.updateRows()}updatePage(c){let y=this.indexes.first/this.pageSize;"up"===c?y=Math.ceil(y):"down"===c&&(y=Math.floor(y)),void 0!==c&&!isNaN(y)&&this.page.emit({offset:y})}updateRows(){const{first:c,last:y}=this.indexes;let k=c,j=0;const Ae=[];if(this.groupedRows){let et=3;for(1===this.groupedRows.length&&(et=this.groupedRows[0].value.length);k<y&&k<this.groupedRows.length;){const ut=this.groupedRows[k];this.rowIndexes.set(ut,k),ut.value&&ut.value.forEach((mn,jn)=>{this.rowIndexes.set(mn,`${k}-${jn}`)}),Ae[j]=ut,j++,k++}}else for(;k<y&&k<this.rowCount;){const et=this.rows[k];et&&(this.rowIndexes.set(et,k),Ae[j]=et),j++,k++}this.temp=Ae}getRowHeight(c){return"function"==typeof this.rowHeight?this.rowHeight(c):this.rowHeight}getGroupHeight(c){let y=0;if(c.value)for(let k=0;k<c.value.length;k++)y+=this.getRowAndDetailHeight(c.value[k]);return y}getRowAndDetailHeight(c){let y=this.getRowHeight(c);return this.getRowExpanded(c)&&(y+=this.getDetailRowHeight(c)),y}getRowsStyles(c){const y={};if(this.groupedRows&&(y.width=this.columnGroupWidths.total),this.scrollbarV&&this.virtualization){let k=0;if(this.groupedRows){const Ae=c[c.length-1];k=Ae?this.getRowIndex(Ae):0}else k=this.getRowIndex(c);Zt(y,0,this.rowHeightsCache.query(k-1))}return y}getBottomSummaryRowStyles(){if(!this.scrollbarV||!this.rows||!this.rows.length)return null;const c={position:"absolute"};return Zt(c,0,this.rowHeightsCache.query(this.rows.length-1)),c}hideIndicator(){setTimeout(()=>this.loadingIndicator=!1,500)}updateIndexes(){let c=0,y=0;if(this.scrollbarV)if(this.virtualization){const k=parseInt(this.bodyHeight,0);c=this.rowHeightsCache.getRowIndex(this.offsetY),y=this.rowHeightsCache.getRowIndex(k+this.offsetY)+1}else c=0,y=this.rowCount;else this.externalPaging||(c=Math.max(this.offset*this.pageSize,0)),y=Math.min(c+this.pageSize,this.rowCount);this.indexes={first:c,last:y}}refreshRowHeightCache(){if(this.scrollbarV&&(!this.scrollbarV||this.virtualization)&&(this.rowHeightsCache.clearCache(),this.rows&&this.rows.length)){const c=new Set;for(const y of this.rows)this.getRowExpanded(y)&&c.add(y);this.rowHeightsCache.initCache({rows:this.rows,rowHeight:this.rowHeight,detailRowHeight:this.getDetailRowHeight,externalVirtual:this.scrollbarV&&this.externalPaging,rowCount:this.rowCount,rowIndexes:this.rowIndexes,rowExpansions:c})}}getAdjustedViewPortIndex(){const c=this.indexes.first;return this.scrollbarV&&this.virtualization&&this.rowHeightsCache.query(c-1)<=this.offsetY?c-1:c}toggleRowExpansion(c){const y=this.getAdjustedViewPortIndex(),k=this.getRowExpandedIdx(c,this.rowExpansions),j=k>-1;if(this.scrollbarV&&this.virtualization){const Ae=this.getDetailRowHeight(c)*(j?-1:1),et=this.getRowIndex(c);this.rowHeightsCache.update(et,Ae)}j?this.rowExpansions.splice(k,1):this.rowExpansions.push(c),this.detailToggle.emit({rows:[c],currentIndex:y})}toggleAllRows(c){this.rowExpansions=[];const y=this.getAdjustedViewPortIndex();if(c)for(const k of this.rows)this.rowExpansions.push(k);this.scrollbarV&&this.recalcLayout(),this.detailToggle.emit({rows:this.rows,currentIndex:y})}recalcLayout(){this.refreshRowHeightCache(),this.updateIndexes(),this.updateRows()}columnTrackingFn(c,y){return y.$$id}stylesByGroup(c){const y=this.columnGroupWidths,k=this.offsetX,j={width:`${y[c]}px`};if("left"===c)Zt(j,k,0);else if("right"===c){const Ae=parseInt(this.innerWidth+"",0);Zt(j,-1*(y.total-Ae-k),0)}return j}getRowExpanded(c){if(0===this.rowExpansions.length&&this.groupExpansionDefault)for(const y of this.groupedRows)this.rowExpansions.push(y);return this.getRowExpandedIdx(c,this.rowExpansions)>-1}getRowExpandedIdx(c,y){if(!y||!y.length)return-1;const k=this.rowIdentity(c);return y.findIndex(j=>this.rowIdentity(j)===k)}getRowIndex(c){return this.rowIndexes.get(c)||0}onTreeAction(c){this.treeAction.emit({row:c})}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(o.gRc))},b.\u0275cmp=o.VBU({type:b,selectors:[["datatable-body"]],viewQuery:function(c,y){if(1&c&&o.GBs(xr,5),2&c){let k;o.mGM(k=o.lsd())&&(y.scroller=k.first)}},hostAttrs:[1,"datatable-body"],hostVars:4,hostBindings:function(c,y){2&c&&o.xc7("width",y.bodyWidth)("height",y.bodyHeight)},inputs:{scrollbarV:"scrollbarV",scrollbarH:"scrollbarH",loadingIndicator:"loadingIndicator",externalPaging:"externalPaging",rowHeight:"rowHeight",offsetX:"offsetX",emptyMessage:"emptyMessage",selectionType:"selectionType",selected:"selected",rowIdentity:"rowIdentity",rowDetail:"rowDetail",groupHeader:"groupHeader",selectCheck:"selectCheck",displayCheck:"displayCheck",trackByProp:"trackByProp",rowClass:"rowClass",groupedRows:"groupedRows",groupExpansionDefault:"groupExpansionDefault",innerWidth:"innerWidth",groupRowsBy:"groupRowsBy",virtualization:"virtualization",summaryRow:"summaryRow",summaryPosition:"summaryPosition",summaryHeight:"summaryHeight",pageSize:"pageSize",rows:"rows",columns:"columns",offset:"offset",rowCount:"rowCount",bodyHeight:"bodyHeight"},outputs:{scroll:"scroll",page:"page",activate:"activate",select:"select",detailToggle:"detailToggle",rowContextmenu:"rowContextmenu",treeAction:"treeAction"},decls:5,vars:9,consts:[["selector",""],["groupedRowsTemplate",""],[4,"ngIf"],[3,"select","activate","selected","rows","selectCheck","selectEnabled","selectionType","rowIdentity"],[3,"scrollbarV","scrollbarH","scrollHeight","scrollWidth","scroll",4,"ngIf"],["class","empty-row",3,"innerHTML",4,"ngIf"],[3,"scroll","scrollbarV","scrollbarH","scrollHeight","scrollWidth"],[3,"rowHeight","offsetX","innerWidth","rows","columns",4,"ngIf"],[3,"groupedRows","innerWidth","ngStyle","rowDetail","groupHeader","offsetX","detailRowHeight","row","expanded","rowIndex","rowContextmenu",4,"ngFor","ngForOf","ngForTrackBy"],["role","row",3,"ngStyle","rowHeight","offsetX","innerWidth","rows","columns",4,"ngIf"],[3,"rowHeight","offsetX","innerWidth","rows","columns"],[3,"rowContextmenu","groupedRows","innerWidth","ngStyle","rowDetail","groupHeader","offsetX","detailRowHeight","row","expanded","rowIndex"],["role","row","tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","rowIndex","expanded","rowClass","displayCheck","treeStatus","treeAction","activate",4,"ngIf","ngIfElse"],["role","row","tabindex","-1",3,"treeAction","activate","isSelected","innerWidth","offsetX","columns","rowHeight","row","rowIndex","expanded","rowClass","displayCheck","treeStatus"],["role","row","tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","group","rowIndex","expanded","rowClass","activate",4,"ngFor","ngForOf","ngForTrackBy"],["role","row","tabindex","-1",3,"activate","isSelected","innerWidth","offsetX","columns","rowHeight","row","group","rowIndex","expanded","rowClass"],["role","row",3,"ngStyle","rowHeight","offsetX","innerWidth","rows","columns"],[1,"empty-row",3,"innerHTML"]],template:function(c,y){if(1&c){const k=o.RV6();o.DNE(0,Se,1,0,"datatable-progress",2),o.j41(1,"datatable-selection",3,0),o.bIt("select",function(Ae){return o.eBV(k),o.Njj(y.select.emit(Ae))})("activate",function(Ae){return o.eBV(k),o.Njj(y.activate.emit(Ae))}),o.DNE(3,Fn,4,8,"datatable-scroller",4)(4,tn,1,1,"div",5),o.k0s()}2&c&&(o.Y8G("ngIf",y.loadingIndicator),o.R7$(),o.Y8G("selected",y.selected)("rows",y.rows)("selectCheck",y.selectCheck)("selectEnabled",y.selectEnabled)("selectionType",y.selectionType)("rowIdentity",y.rowIdentity),o.R7$(2),o.Y8G("ngIf",null==y.rows?null:y.rows.length),o.R7$(),o.Y8G("ngIf",!(null!=y.rows&&y.rows.length||y.loadingIndicator)))},dependencies:[on,Me,xr,E,g,Gt,N.bT,N.Sq,N.B3],encapsulation:2,changeDetection:0}),b})();function oe(b,z){if((null===b||typeof b>"u")&&(b=0),(null===z||typeof z>"u")&&(z=0),b instanceof Date&&z instanceof Date){if(b<z)return-1;if(b>z)return 1}else if(isNaN(parseFloat(b))||!isFinite(b)||isNaN(parseFloat(z))||!isFinite(z)){if(b=String(b),z=String(z),b.toLowerCase()<z.toLowerCase())return-1;if(b.toLowerCase()>z.toLowerCase())return 1}else{if(parseFloat(b)<parseFloat(z))return-1;if(parseFloat(b)>parseFloat(z))return 1}return 0}let Ge=(()=>{class b{constructor(c){this.cd=c,this.sort=new o.bkB,this.select=new o.bkB,this.columnContextmenu=new o.bkB(!1),this.sortFn=this.onSort.bind(this),this.selectFn=this.select.emit.bind(this.select),this.cellContext={column:this.column,sortDir:this.sortDir,sortFn:this.sortFn,allRowsSelected:this.allRowsSelected,selectFn:this.selectFn}}set allRowsSelected(c){this._allRowsSelected=c,this.cellContext.allRowsSelected=c}get allRowsSelected(){return this._allRowsSelected}set column(c){this._column=c,this.cellContext.column=c,this.cd.markForCheck()}get column(){return this._column}set sorts(c){this._sorts=c,this.sortDir=this.calcSortDir(c),this.cellContext.sortDir=this.sortDir,this.sortClass=this.calcSortClass(this.sortDir),this.cd.markForCheck()}get sorts(){return this._sorts}get columnCssClasses(){let c="datatable-header-cell";if(this.column.sortable&&(c+=" sortable"),this.column.resizeable&&(c+=" resizeable"),this.column.headerClass)if("string"==typeof this.column.headerClass)c+=" "+this.column.headerClass;else if("function"==typeof this.column.headerClass){const k=this.column.headerClass({column:this.column});if("string"==typeof k)c+=k;else if("object"==typeof k){const j=Object.keys(k);for(const Ae of j)!0===k[Ae]&&(c+=` ${Ae}`)}}const y=this.sortDir;return y&&(c+=` sort-active sort-${y}`),c}get name(){return void 0===this.column.headerTemplate?this.column.name:void 0}get minWidth(){return this.column.minWidth}get maxWidth(){return this.column.maxWidth}get width(){return this.column.width}get isCheckboxable(){return this.column.checkboxable&&this.column.headerCheckboxable&&this.selectionType===_t.checkbox}onContextmenu(c){this.columnContextmenu.emit({event:c,column:this.column})}ngOnInit(){this.sortClass=this.calcSortClass(this.sortDir)}calcSortDir(c){if(c&&this.column){const y=c.find(k=>k.prop===this.column.prop);if(y)return y.dir}}onSort(){if(!this.column.sortable)return;const c=function L(b,z){return b===Ft.single?z===Qe.asc?Qe.desc:Qe.asc:z?z===Qe.asc?Qe.desc:void 0:Qe.asc}(this.sortType,this.sortDir);this.sort.emit({column:this.column,prevValue:this.sortDir,newValue:c})}calcSortClass(c){if(this.cellContext.column.sortable)return c===Qe.asc?`sort-btn sort-asc ${this.sortAscendingIcon}`:c===Qe.desc?`sort-btn sort-desc ${this.sortDescendingIcon}`:`sort-btn ${this.sortUnsetIcon}`}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(o.gRc))},b.\u0275cmp=o.VBU({type:b,selectors:[["datatable-header-cell"]],hostAttrs:[1,"datatable-header-cell"],hostVars:11,hostBindings:function(c,y){1&c&&o.bIt("contextmenu",function(j){return y.onContextmenu(j)}),2&c&&(o.BMQ("title",y.name),o.HbH(y.columnCssClasses),o.xc7("height",y.headerHeight,"px")("min-width",y.minWidth,"px")("max-width",y.maxWidth,"px")("width",y.width,"px"))},inputs:{sortType:"sortType",sortAscendingIcon:"sortAscendingIcon",sortDescendingIcon:"sortDescendingIcon",sortUnsetIcon:"sortUnsetIcon",isTarget:"isTarget",targetMarkerTemplate:"targetMarkerTemplate",targetMarkerContext:"targetMarkerContext",allRowsSelected:"allRowsSelected",selectionType:"selectionType",column:"column",headerHeight:"headerHeight",sorts:"sorts"},outputs:{sort:"sort",select:"select",columnContextmenu:"columnContextmenu"},decls:6,vars:6,consts:[[1,"datatable-header-cell-template-wrap"],[4,"ngIf"],["class","datatable-checkbox",4,"ngIf"],["class","datatable-header-cell-wrapper",4,"ngIf"],[3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"datatable-checkbox"],["type","checkbox",3,"change","checked"],[1,"datatable-header-cell-wrapper"],[1,"datatable-header-cell-label","draggable",3,"click","innerHTML"]],template:function(c,y){1&c&&(o.j41(0,"div",0),o.DNE(1,zn,1,2,null,1)(2,ir,2,1,"label",2)(3,fr,2,1,"span",3)(4,Bn,1,2,null,1),o.j41(5,"span",4),o.bIt("click",function(){return y.onSort()}),o.k0s()()),2&c&&(o.R7$(),o.Y8G("ngIf",y.isTarget),o.R7$(),o.Y8G("ngIf",y.isCheckboxable),o.R7$(),o.Y8G("ngIf",!y.column.headerTemplate),o.R7$(),o.Y8G("ngIf",y.column.headerTemplate),o.R7$(),o.HbH(y.sortClass))},dependencies:[N.bT,N.T3],encapsulation:2,changeDetection:0}),b})(),Pt=(()=>{class b{constructor(c){this.cd=c,this.sort=new o.bkB,this.reorder=new o.bkB,this.resize=new o.bkB,this.select=new o.bkB,this.columnContextmenu=new o.bkB(!1),this._columnGroupWidths={total:100},this._styleByGroup={left:{},center:{},right:{}},this.destroyed=!1}set innerWidth(c){this._innerWidth=c,setTimeout(()=>{if(this._columns){const y=bn(this._columns);this._columnGroupWidths=Bt(y,this._columns),this.setStylesByGroup()}})}get innerWidth(){return this._innerWidth}set headerHeight(c){this._headerHeight="auto"!==c?`${c}px`:c}get headerHeight(){return this._headerHeight}set columns(c){this._columns=c;const y=bn(c);this._columnsByPin=P(c),setTimeout(()=>{this._columnGroupWidths=Bt(y,c),this.setStylesByGroup()})}get columns(){return this._columns}set offsetX(c){this._offsetX=c,this.setStylesByGroup()}get offsetX(){return this._offsetX}ngOnDestroy(){this.destroyed=!0}onLongPressStart({event:c,model:y}){y.dragging=!0,this.dragEventTarget=c}onLongPressEnd({event:c,model:y}){this.dragEventTarget=c,setTimeout(()=>{const k=this._columns.find(j=>j.$$id===y.$$id);k&&(k.dragging=!1)},5)}get headerWidth(){return this.scrollbarH?this.innerWidth+"px":"100%"}trackByGroups(c,y){return y.type}columnTrackingFn(c,y){return y.$$id}onColumnResized(c,y){c<=y.minWidth?c=y.minWidth:c>=y.maxWidth&&(c=y.maxWidth),this.resize.emit({column:y,prevValue:y.width,newValue:c})}onColumnReordered({prevIndex:c,newIndex:y,model:k}){const j=this.getColumn(y);j.isTarget=!1,j.targetMarkerContext=void 0,this.reorder.emit({column:k,prevValue:c,newValue:y})}onTargetChanged({prevIndex:c,newIndex:y,initialIndex:k}){if(c||0===c){const j=this.getColumn(c);j.isTarget=!1,j.targetMarkerContext=void 0}if(y||0===y){const j=this.getColumn(y);j.isTarget=!0,k!==y&&(j.targetMarkerContext={class:"targetMarker ".concat(k>y?"dragFromRight":"dragFromLeft")})}}getColumn(c){const y=this._columnsByPin[0].columns.length;if(c<y)return this._columnsByPin[0].columns[c];const k=this._columnsByPin[1].columns.length;return c<y+k?this._columnsByPin[1].columns[c-y]:this._columnsByPin[2].columns[c-y-k]}onSort({column:c,prevValue:y,newValue:k}){if(c.dragging)return;const j=this.calcNewSorts(c,y,k);this.sort.emit({sorts:j,column:c,prevValue:y,newValue:k})}calcNewSorts(c,y,k){let j=0;this.sorts||(this.sorts=[]);const Ae=this.sorts.map((et,ut)=>((et={...et}).prop===c.prop&&(j=ut),et));return void 0===k?Ae.splice(j,1):y?Ae[j].dir=k:(this.sortType===Ft.single&&Ae.splice(0,this.sorts.length),Ae.push({dir:k,prop:c.prop})),Ae}setStylesByGroup(){this._styleByGroup.left=this.calcStylesByGroup("left"),this._styleByGroup.center=this.calcStylesByGroup("center"),this._styleByGroup.right=this.calcStylesByGroup("right"),this.destroyed||this.cd.detectChanges()}calcStylesByGroup(c){const y=this._columnGroupWidths,j={width:`${y[c]}px`};return"center"===c?Zt(j,-1*this.offsetX,0):"right"===c&&Zt(j,-1*(y.total-this.innerWidth),0),j}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(o.gRc))},b.\u0275cmp=o.VBU({type:b,selectors:[["datatable-header"]],hostAttrs:[1,"datatable-header"],hostVars:4,hostBindings:function(c,y){2&c&&o.xc7("height",y.headerHeight)("width",y.headerWidth)},inputs:{sortAscendingIcon:"sortAscendingIcon",sortDescendingIcon:"sortDescendingIcon",sortUnsetIcon:"sortUnsetIcon",scrollbarH:"scrollbarH",dealsWithGroup:"dealsWithGroup",targetMarkerTemplate:"targetMarkerTemplate",innerWidth:"innerWidth",sorts:"sorts",sortType:"sortType",allRowsSelected:"allRowsSelected",selectionType:"selectionType",reorderable:"reorderable",headerHeight:"headerHeight",columns:"columns",offsetX:"offsetX"},outputs:{sort:"sort",reorder:"reorder",resize:"resize",select:"select",columnContextmenu:"columnContextmenu"},decls:2,vars:4,consts:[["role","row","orderable","",1,"datatable-header-inner",3,"reorder","targetChanged"],[3,"class","ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle"],["role","columnheader","resizeable","","long-press","","draggable","",3,"resizeEnabled","pressModel","pressEnabled","dragX","dragY","dragModel","dragEventTarget","headerHeight","isTarget","targetMarkerTemplate","targetMarkerContext","column","sortType","sorts","selectionType","sortAscendingIcon","sortDescendingIcon","sortUnsetIcon","allRowsSelected","resize","longPressStart","longPressEnd","sort","select","columnContextmenu",4,"ngFor","ngForOf","ngForTrackBy"],["role","columnheader","resizeable","","long-press","","draggable","",3,"resize","longPressStart","longPressEnd","sort","select","columnContextmenu","resizeEnabled","pressModel","pressEnabled","dragX","dragY","dragModel","dragEventTarget","headerHeight","isTarget","targetMarkerTemplate","targetMarkerContext","column","sortType","sorts","selectionType","sortAscendingIcon","sortDescendingIcon","sortUnsetIcon","allRowsSelected"]],template:function(c,y){1&c&&(o.j41(0,"div",0),o.bIt("reorder",function(j){return y.onColumnReordered(j)})("targetChanged",function(j){return y.onTargetChanged(j)}),o.DNE(1,Nr,2,5,"div",1),o.k0s()),2&c&&(o.xc7("width",y._columnGroupWidths.total,"px"),o.R7$(),o.Y8G("ngForOf",y._columnsByPin)("ngForTrackBy",y.trackByGroups))},dependencies:[Ge,Fr,N.Sq,N.B3,Cr,ur,Pr],encapsulation:2,changeDetection:0}),b})();function bt(b,z,c){c=c||{};let y,k,j,Ae=null,et=0;function ut(){et=!1===c.leading?0:+new Date,Ae=null,j=b.apply(y,k)}return function(){const mn=+new Date;!et&&!1===c.leading&&(et=mn);const jn=z-(mn-et);return y=this,k=arguments,jn<=0?(clearTimeout(Ae),Ae=null,et=mn,j=b.apply(y,k)):!Ae&&!1!==c.trailing&&(Ae=setTimeout(ut,jn)),j}}function an(b,z){return function(y,k,j){return{configurable:!0,enumerable:j.enumerable,get:function(){return Object.defineProperty(this,k,{configurable:!0,enumerable:j.enumerable,value:bt(j.value,b,z)}),this[k]}}}}function Sn(b,z){for(const c of z){const y=b.indexOf(c);b.splice(y,1)}}function Jn(b,z=300){let c=0;for(const y of b)c+=y.width||z;return c}let kr=(()=>{class b{constructor(){this.change=new o.bkB,this._count=0,this._page=1,this._size=0}set size(c){this._size=c,this.pages=this.calcPages()}get size(){return this._size}set count(c){this._count=c,this.pages=this.calcPages()}get count(){return this._count}set page(c){this._page=c,this.pages=this.calcPages()}get page(){return this._page}get totalPages(){const c=this.size<1?1:Math.ceil(this.count/this.size);return Math.max(c||0,1)}canPrevious(){return this.page>1}canNext(){return this.page<this.totalPages}prevPage(){this.selectPage(this.page-1)}nextPage(){this.selectPage(this.page+1)}selectPage(c){c>0&&c<=this.totalPages&&c!==this.page&&(this.page=c,this.change.emit({page:c}))}calcPages(c){const y=[];let k=1,j=this.totalPages;c=c||this.page,5<this.totalPages&&(k=c-Math.floor(2.5),j=c+Math.floor(2.5),k<1?(k=1,j=Math.min(k+5-1,this.totalPages)):j>this.totalPages&&(k=Math.max(this.totalPages-5+1,1),j=this.totalPages));for(let ut=k;ut<=j;ut++)y.push({number:ut,text:ut});return y}}return b.\u0275fac=function(c){return new(c||b)},b.\u0275cmp=o.VBU({type:b,selectors:[["datatable-pager"]],hostAttrs:[1,"datatable-pager"],inputs:{pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon",size:"size",count:"count",page:"page"},outputs:{change:"change"},decls:14,vars:21,consts:[[1,"pager"],["role","button","aria-label","go to first page","href","javascript:void(0)",3,"click"],["role","button","aria-label","go to previous page","href","javascript:void(0)",3,"click"],["role","button","class","pages",3,"active",4,"ngFor","ngForOf"],["role","button","aria-label","go to next page","href","javascript:void(0)",3,"click"],["role","button","aria-label","go to last page","href","javascript:void(0)",3,"click"],["role","button",1,"pages"],["href","javascript:void(0)",3,"click"]],template:function(c,y){1&c&&(o.j41(0,"ul",0)(1,"li")(2,"a",1),o.bIt("click",function(){return y.selectPage(1)}),o.nrm(3,"i"),o.k0s()(),o.j41(4,"li")(5,"a",2),o.bIt("click",function(){return y.prevPage()}),o.nrm(6,"i"),o.k0s()(),o.DNE(7,Er,3,4,"li",3),o.j41(8,"li")(9,"a",4),o.bIt("click",function(){return y.nextPage()}),o.nrm(10,"i"),o.k0s()(),o.j41(11,"li")(12,"a",5),o.bIt("click",function(){return y.selectPage(y.totalPages)}),o.nrm(13,"i"),o.k0s()()()),2&c&&(o.R7$(),o.AVh("disabled",!y.canPrevious()),o.R7$(2),o.HbH(y.pagerPreviousIcon),o.R7$(),o.AVh("disabled",!y.canPrevious()),o.R7$(2),o.HbH(y.pagerLeftArrowIcon),o.R7$(),o.Y8G("ngForOf",y.pages),o.R7$(),o.AVh("disabled",!y.canNext()),o.R7$(2),o.HbH(y.pagerRightArrowIcon),o.R7$(),o.AVh("disabled",!y.canNext()),o.R7$(2),o.HbH(y.pagerNextIcon))},dependencies:[N.Sq],encapsulation:2,changeDetection:0}),b})(),Mn=(()=>{class b{constructor(){this.selectedCount=0,this.page=new o.bkB}get isVisible(){return this.rowCount/this.pageSize>1}get curPage(){return this.offset+1}}return b.\u0275fac=function(c){return new(c||b)},b.\u0275cmp=o.VBU({type:b,selectors:[["datatable-footer"]],hostAttrs:[1,"datatable-footer"],inputs:{footerHeight:"footerHeight",rowCount:"rowCount",pageSize:"pageSize",offset:"offset",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon",totalMessage:"totalMessage",footerTemplate:"footerTemplate",selectedCount:"selectedCount",selectedMessage:"selectedMessage"},outputs:{page:"page"},decls:4,vars:8,consts:[[1,"datatable-footer-inner",3,"ngClass"],[4,"ngIf"],["class","page-count",4,"ngIf"],[3,"pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","pagerNextIcon","page","size","count","hidden","change",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"page-count"],[3,"change","pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","pagerNextIcon","page","size","count","hidden"]],template:function(c,y){1&c&&(o.j41(0,"div",0),o.DNE(1,Vr,1,8,null,1)(2,pr,3,3,"div",2)(3,nr,1,8,"datatable-pager",3),o.k0s()),2&c&&(o.xc7("height",y.footerHeight,"px"),o.Y8G("ngClass",o.eq3(6,or,y.selectedMessage)),o.R7$(),o.Y8G("ngIf",y.footerTemplate),o.R7$(),o.Y8G("ngIf",!y.footerTemplate),o.R7$(),o.Y8G("ngIf",!y.footerTemplate))},dependencies:[kr,N.YU,N.bT,N.T3],encapsulation:2,changeDetection:0}),b})(),Wn=(()=>{class b{constructor(c,y,k,j,Ae,et,ut){this.scrollbarHelper=c,this.dimensionsHelper=y,this.cd=k,this.columnChangesService=et,this.configuration=ut,this.selected=[],this.scrollbarV=!1,this.scrollbarH=!1,this.rowHeight=30,this.columnMode=it.standard,this.headerHeight=30,this.footerHeight=0,this.externalPaging=!1,this.externalSorting=!1,this.loadingIndicator=!1,this.reorderable=!0,this.swapColumns=!0,this.sortType=Ft.single,this.sorts=[],this.cssClasses={sortAscending:"datatable-icon-up",sortDescending:"datatable-icon-down",sortUnset:"datatable-icon-sort-unset",pagerLeftArrow:"datatable-icon-left",pagerRightArrow:"datatable-icon-right",pagerPrevious:"datatable-icon-prev",pagerNext:"datatable-icon-skip"},this.messages={emptyMessage:"No data to display",totalMessage:"total",selectedMessage:"selected"},this.groupExpansionDefault=!1,this.selectAllRowsOnPage=!1,this.virtualization=!0,this.summaryRow=!1,this.summaryHeight=30,this.summaryPosition="top",this.scroll=new o.bkB,this.activate=new o.bkB,this.select=new o.bkB,this.sort=new o.bkB,this.page=new o.bkB,this.reorder=new o.bkB,this.resize=new o.bkB,this.tableContextmenu=new o.bkB(!1),this.treeAction=new o.bkB,this.rowCount=0,this._offsetX=new J.t(0),this._count=0,this._offset=0,this._subscriptions=[],this.rowIdentity=mn=>this._groupRowsBy?mn.key:mn,this.element=j.nativeElement,this.rowDiffer=Ae.find({}).create(),this.configuration&&this.configuration.messages&&(this.messages={...this.configuration.messages})}set rows(c){this._rows=c,c&&(this._internalRows=[...c]),this.externalSorting||this.sortInternalRows(),this._internalRows=mt(this._internalRows,ot(this.treeFromRelation),ot(this.treeToRelation)),this.recalculate(),this._rows&&this._groupRowsBy&&(this.groupedRows=this.groupArrayBy(this._rows,this._groupRowsBy)),this.cd.markForCheck()}get rows(){return this._rows}set groupRowsBy(c){c&&(this._groupRowsBy=c,this._rows&&this._groupRowsBy&&(this.groupedRows=this.groupArrayBy(this._rows,this._groupRowsBy)))}get groupRowsBy(){return this._groupRowsBy}set columns(c){c&&(this._internalColumns=[...c],G(this._internalColumns),this.recalculateColumns()),this._columns=c}get columns(){return this._columns}set limit(c){this._limit=c,this.recalculate()}get limit(){return this._limit}set count(c){this._count=c,this.recalculate()}get count(){return this._count}set offset(c){this._offset=c}get offset(){return Math.max(Math.min(this._offset,Math.ceil(this.rowCount/this.pageSize)-1),0)}get isFixedHeader(){const c=this.headerHeight;return"string"!=typeof c||"auto"!==c}get isFixedRow(){return"auto"!==this.rowHeight}get isVertScroll(){return this.scrollbarV}get isVirtualized(){return this.virtualization}get isHorScroll(){return this.scrollbarH}get isSelectable(){return void 0!==this.selectionType}get isCheckboxSelection(){return this.selectionType===_t.checkbox}get isCellSelection(){return this.selectionType===_t.cell}get isSingleSelection(){return this.selectionType===_t.single}get isMultiSelection(){return this.selectionType===_t.multi}get isMultiClickSelection(){return this.selectionType===_t.multiClick}set columnTemplates(c){this._columnTemplates=c,this.translateColumns(c)}get columnTemplates(){return this._columnTemplates}get allRowsSelected(){let c=this.rows&&this.selected&&this.selected.length===this.rows.length;if(this.bodyComponent&&this.selectAllRowsOnPage){const y=this.bodyComponent.indexes;c=this.selected.length===y.last-y.first}return this.selected&&this.rows&&0!==this.rows.length&&c}ngOnInit(){this.recalculate()}ngAfterViewInit(){this.externalSorting||this.sortInternalRows(),!(typeof requestAnimationFrame>"u")&&requestAnimationFrame(()=>{this.recalculate(),this.externalPaging&&this.scrollbarV&&this.page.emit({count:this.count,pageSize:this.pageSize,limit:this.limit,offset:0})})}ngAfterContentInit(){this.columnTemplates.changes.subscribe(c=>this.translateColumns(c)),this.listenForColumnInputChanges()}translateColumns(c){if(c){const y=c.toArray();y.length&&(this._internalColumns=function xe(b){const z=[];for(const c of b){const y={},k=Object.getOwnPropertyNames(c);for(const j of k)y[j]=c[j];c.headerTemplate&&(y.headerTemplate=c.headerTemplate),c.cellTemplate&&(y.cellTemplate=c.cellTemplate),c.summaryFunc&&(y.summaryFunc=c.summaryFunc),c.summaryTemplate&&(y.summaryTemplate=c.summaryTemplate),z.push(y)}return z}(y),G(this._internalColumns),this.recalculateColumns(),this.sortInternalRows(),this.cd.markForCheck())}}groupArrayBy(c,y){const k=new Map;return c.forEach(et=>{const ut=et[y];k.has(ut)?k.get(ut).push(et):k.set(ut,[et])}),Array.from(k,et=>((et,ut)=>({key:et,value:ut}))(et[0],et[1]))}ngDoCheck(){this.rowDiffer.diff(this.rows)&&(this.externalSorting?this._internalRows=[...this.rows]:this.sortInternalRows(),this._internalRows=mt(this._internalRows,ot(this.treeFromRelation),ot(this.treeToRelation)),this.recalculatePages(),this.cd.markForCheck())}recalculate(){this.recalculateDims(),this.recalculateColumns(),this.cd.markForCheck()}onWindowResize(){this.recalculate()}recalculateColumns(c=this._internalColumns,y=-1,k=this.scrollbarH){if(!c)return;let j=this._innerWidth;return this.scrollbarV&&(j-=this.scrollbarHelper.width),this.columnMode===it.force?function Dn(b,z,c,y,k=300){const j=b.slice(c+1,b.length).filter(en=>!1!==en.canAutoResize);for(const en of j)en.$$oldWidth||(en.$$oldWidth=en.width);let Ae=0,et=!1,ut=Jn(b,k),mn=z-ut;const jn=[];do{Ae=mn/j.length,et=ut>=z;for(const en of j){if(et&&y)en.width=en.$$oldWidth||en.width||k;else{const Br=(en.width||k)+Ae;en.minWidth&&Br<en.minWidth?(en.width=en.minWidth,jn.push(en)):en.maxWidth&&Br>en.maxWidth?(en.width=en.maxWidth,jn.push(en)):en.width=Br}en.width=Math.max(0,en.width)}ut=Jn(b),mn=z-ut,Sn(j,jn)}while(mn>1&&0!==j.length)}(c,j,y,k):this.columnMode===it.flex&&function Xt(b,z){const c=function Nt(b,z){let c=0;for(const y of b)c+=z&&y[z]?y[z]:y.width;return c}(b),y=function En(b){let z=0;for(const c of b)z+=c.flexGrow||0;return z}(b),k=bn(b);c!==z&&function An(b,z,c){for(const j in b)for(const Ae of b[j])Ae.canAutoResize?Ae.width=0:(z-=Ae.width,c-=Ae.flexGrow?Ae.flexGrow:0);const y={};let k=z;do{const j=k/c;k=0;for(const Ae in b)for(const et of b[Ae])if(et.canAutoResize&&!y[et.prop]){const ut=et.width+et.flexGrow*j;void 0!==et.minWidth&&ut<et.minWidth?(k+=ut-et.minWidth,et.width=et.minWidth,y[et.prop]=!0):et.width=ut}}while(0!==k)}(k,z,y)}(c,j),c}recalculateDims(){const c=this.dimensionsHelper.getDimensions(this.element);if(this._innerWidth=Math.floor(c.width),this.scrollbarV){let y=c.height;this.headerHeight&&(y-=this.headerHeight),this.footerHeight&&(y-=this.footerHeight),this.bodyHeight=y}this.recalculatePages()}recalculatePages(){this.pageSize=this.calcPageSize(),this.rowCount=this.calcRowCount()}onBodyPage({offset:c}){this.externalPaging&&!this.virtualization||(this.offset=c,this.page.emit({count:this.count,pageSize:this.pageSize,limit:this.limit,offset:this.offset}))}onBodyScroll(c){this._offsetX.next(c.offsetX),this.scroll.emit(c),this.cd.detectChanges()}onFooterPage(c){this.offset=c.page-1,this.bodyComponent.updateOffsetY(this.offset),this.page.emit({count:this.count,pageSize:this.pageSize,limit:this.limit,offset:this.offset}),this.selectAllRowsOnPage&&(this.selected=[],this.select.emit({selected:this.selected}))}calcPageSize(c=this.rows){if(this.scrollbarV&&this.virtualization){const y=Math.ceil(this.bodyHeight/this.rowHeight);return Math.max(y,0)}return void 0!==this.limit?this.limit:c?c.length:0}calcRowCount(c=this.rows){return this.externalPaging?this.count:c?this.groupedRows?this.groupedRows.length:null!=this.treeFromRelation&&null!=this.treeToRelation?this._internalRows.length:c.length:0}onColumnContextmenu({event:c,column:y}){this.tableContextmenu.emit({event:c,type:ft.header,content:y})}onRowContextmenu({event:c,row:y}){this.tableContextmenu.emit({event:c,type:ft.body,content:y})}onColumnResize({column:c,newValue:y}){if(void 0===c)return;let k;const j=this._internalColumns.map((Ae,et)=>((Ae={...Ae}).$$id===c.$$id&&(k=et,Ae.width=y,Ae.$$oldWidth=y),Ae));this.recalculateColumns(j,k),this._internalColumns=j,this.resize.emit({column:c,newValue:y})}onColumnReorder({column:c,newValue:y,prevValue:k}){const j=this._internalColumns.map(Ae=>({...Ae}));if(this.swapColumns){const Ae=j[y];j[y]=c,j[k]=Ae}else if(y>k){const Ae=j[k];for(let et=k;et<y;et++)j[et]=j[et+1];j[y]=Ae}else{const Ae=j[k];for(let et=k;et>y;et--)j[et]=j[et-1];j[y]=Ae}this._internalColumns=j,this.reorder.emit({column:c,newValue:y,prevValue:k})}onColumnSort(c){this.selectAllRowsOnPage&&(this.selected=[],this.select.emit({selected:this.selected})),this.sorts=c.sorts,!1===this.externalSorting&&this.sortInternalRows(),this._internalRows=mt(this._internalRows,ot(this.treeFromRelation),ot(this.treeToRelation)),this.offset=0,this.bodyComponent.updateOffsetY(this.offset),this.sort.emit(c)}onHeaderSelect(c){if(this.bodyComponent&&this.selectAllRowsOnPage){const y=this.bodyComponent.indexes.first,k=this.bodyComponent.indexes.last,j=this.selected.length===k-y;this.selected=[],j||this.selected.push(...this._internalRows.slice(y,k))}else{const y=this.selected.length===this.rows.length;this.selected=[],y||this.selected.push(...this.rows)}this.select.emit({selected:this.selected})}onBodySelect(c){this.select.emit(c)}onTreeAction(c){const y=c.row,k=this._rows.findIndex(j=>j[this.treeToRelation]===c.row[this.treeToRelation]);this.treeAction.emit({row:y,rowIndex:k})}ngOnDestroy(){this._subscriptions.forEach(c=>c.unsubscribe())}listenForColumnInputChanges(){this._subscriptions.push(this.columnChangesService.columnInputChanges$.subscribe(()=>{this.columnTemplates&&this.columnTemplates.notifyOnChanges()}))}sortInternalRows(){this._internalRows=function De(b,z,c){if(!b)return[];if(!c||!c.length||!z)return[...b];const y=new Map;b.forEach((et,ut)=>y.set(et,ut));const k=[...b],j=z.reduce((et,ut)=>(ut.comparator&&"function"==typeof ut.comparator&&(et[ut.prop]=ut.comparator),et),{}),Ae=c.map(et=>{const ut=et.prop;return{prop:ut,dir:et.dir,valueGetter:me(ut),compareFn:j[ut]||oe}});return k.sort(function(et,ut){for(const mn of Ae){const{prop:jn,valueGetter:si}=mn,en=si(et,jn),Br=si(ut,jn),ai=mn.dir!==Qe.desc?mn.compareFn(en,Br,et,ut,mn.dir):-mn.compareFn(en,Br,et,ut,mn.dir);if(0!==ai)return ai}return y.has(et)&&y.has(ut)?y.get(et)<y.get(ut)?-1:1:0})}(this._internalRows,this._internalColumns,this.sorts)}}return b.\u0275fac=function(c){return new(c||b)(o.rXU(Or,4),o.rXU(tr,4),o.rXU(o.gRc),o.rXU(o.aKT),o.rXU(o.MKu),o.rXU(Vt),o.rXU("configuration",8))},b.\u0275cmp=o.VBU({type:b,selectors:[["ngx-datatable"]],contentQueries:function(c,y,k){if(1&c&&(o.wni(k,yn,5),o.wni(k,oi,5),o.wni(k,It,5),o.wni(k,rn,4)),2&c){let j;o.mGM(j=o.lsd())&&(y.rowDetail=j.first),o.mGM(j=o.lsd())&&(y.groupHeader=j.first),o.mGM(j=o.lsd())&&(y.footer=j.first),o.mGM(j=o.lsd())&&(y.columnTemplates=j)}},viewQuery:function(c,y){if(1&c&&(o.GBs(O,5),o.GBs(Pt,5)),2&c){let k;o.mGM(k=o.lsd())&&(y.bodyComponent=k.first),o.mGM(k=o.lsd())&&(y.headerComponent=k.first)}},hostAttrs:[1,"ngx-datatable"],hostVars:22,hostBindings:function(c,y){1&c&&o.bIt("resize",function(){return y.onWindowResize()},!1,o.tSv),2&c&&o.AVh("fixed-header",y.isFixedHeader)("fixed-row",y.isFixedRow)("scroll-vertical",y.isVertScroll)("virtualized",y.isVirtualized)("scroll-horz",y.isHorScroll)("selectable",y.isSelectable)("checkbox-selection",y.isCheckboxSelection)("cell-selection",y.isCellSelection)("single-selection",y.isSingleSelection)("multi-selection",y.isMultiSelection)("multi-click-selection",y.isMultiClickSelection)},inputs:{targetMarkerTemplate:"targetMarkerTemplate",rows:"rows",groupRowsBy:"groupRowsBy",groupedRows:"groupedRows",columns:"columns",selected:"selected",scrollbarV:"scrollbarV",scrollbarH:"scrollbarH",rowHeight:"rowHeight",columnMode:"columnMode",headerHeight:"headerHeight",footerHeight:"footerHeight",externalPaging:"externalPaging",externalSorting:"externalSorting",limit:"limit",count:"count",offset:"offset",loadingIndicator:"loadingIndicator",selectionType:"selectionType",reorderable:"reorderable",swapColumns:"swapColumns",sortType:"sortType",sorts:"sorts",cssClasses:"cssClasses",messages:"messages",rowClass:"rowClass",selectCheck:"selectCheck",displayCheck:"displayCheck",groupExpansionDefault:"groupExpansionDefault",trackByProp:"trackByProp",selectAllRowsOnPage:"selectAllRowsOnPage",virtualization:"virtualization",treeFromRelation:"treeFromRelation",treeToRelation:"treeToRelation",summaryRow:"summaryRow",summaryHeight:"summaryHeight",summaryPosition:"summaryPosition",rowIdentity:"rowIdentity"},outputs:{scroll:"scroll",activate:"activate",select:"select",sort:"sort",page:"page",reorder:"reorder",resize:"resize",tableContextmenu:"tableContextmenu",treeAction:"treeAction"},decls:5,vars:34,consts:[["role","table","visibilityObserver","",3,"visible"],["role","rowgroup",3,"sorts","sortType","scrollbarH","innerWidth","offsetX","dealsWithGroup","columns","headerHeight","reorderable","targetMarkerTemplate","sortAscendingIcon","sortDescendingIcon","sortUnsetIcon","allRowsSelected","selectionType","sort","resize","reorder","select","columnContextmenu",4,"ngIf"],["role","rowgroup",3,"page","activate","rowContextmenu","select","scroll","treeAction","groupRowsBy","groupedRows","rows","groupExpansionDefault","scrollbarV","scrollbarH","virtualization","loadingIndicator","externalPaging","rowHeight","rowCount","offset","trackByProp","columns","pageSize","offsetX","rowDetail","groupHeader","selected","innerWidth","bodyHeight","selectionType","emptyMessage","rowIdentity","rowClass","selectCheck","displayCheck","summaryRow","summaryHeight","summaryPosition"],[3,"rowCount","pageSize","offset","footerHeight","footerTemplate","totalMessage","pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","selectedCount","selectedMessage","pagerNextIcon","page",4,"ngIf"],["role","rowgroup",3,"sort","resize","reorder","select","columnContextmenu","sorts","sortType","scrollbarH","innerWidth","offsetX","dealsWithGroup","columns","headerHeight","reorderable","targetMarkerTemplate","sortAscendingIcon","sortDescendingIcon","sortUnsetIcon","allRowsSelected","selectionType"],[3,"page","rowCount","pageSize","offset","footerHeight","footerTemplate","totalMessage","pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","selectedCount","selectedMessage","pagerNextIcon"]],template:function(c,y){1&c&&(o.j41(0,"div",0),o.bIt("visible",function(){return y.recalculate()}),o.DNE(1,vr,2,17,"datatable-header",1),o.j41(2,"datatable-body",2),o.nI1(3,"async"),o.bIt("page",function(j){return y.onBodyPage(j)})("activate",function(j){return y.activate.emit(j)})("rowContextmenu",function(j){return y.onRowContextmenu(j)})("select",function(j){return y.onBodySelect(j)})("scroll",function(j){return y.onBodyScroll(j)})("treeAction",function(j){return y.onTreeAction(j)}),o.k0s(),o.DNE(4,Zn,1,12,"datatable-footer",3),o.k0s()),2&c&&(o.R7$(),o.Y8G("ngIf",y.headerHeight),o.R7$(),o.Y8G("groupRowsBy",y.groupRowsBy)("groupedRows",y.groupedRows)("rows",y._internalRows)("groupExpansionDefault",y.groupExpansionDefault)("scrollbarV",y.scrollbarV)("scrollbarH",y.scrollbarH)("virtualization",y.virtualization)("loadingIndicator",y.loadingIndicator)("externalPaging",y.externalPaging)("rowHeight",y.rowHeight)("rowCount",y.rowCount)("offset",y.offset)("trackByProp",y.trackByProp)("columns",y._internalColumns)("pageSize",y.pageSize)("offsetX",o.bMT(3,32,y._offsetX))("rowDetail",y.rowDetail)("groupHeader",y.groupHeader)("selected",y.selected)("innerWidth",y._innerWidth)("bodyHeight",y.bodyHeight)("selectionType",y.selectionType)("emptyMessage",y.messages.emptyMessage)("rowIdentity",y.rowIdentity)("rowClass",y.rowClass)("selectCheck",y.selectCheck)("displayCheck",y.displayCheck)("summaryRow",y.summaryRow)("summaryHeight",y.summaryHeight)("summaryPosition",y.summaryPosition),o.R7$(2),o.Y8G("ngIf",y.footerHeight))},dependencies:[Pt,O,Mn,ui,N.bT,N.Jj],styles:[".ngx-datatable{display:block;overflow:hidden;justify-content:center;position:relative;transform:translate(0)}.ngx-datatable [hidden]{display:none!important}.ngx-datatable *,.ngx-datatable *:before,.ngx-datatable *:after{box-sizing:border-box}.ngx-datatable.scroll-vertical .datatable-body{overflow-y:auto}.ngx-datatable.scroll-vertical.virtualized .datatable-body .datatable-row-wrapper{position:absolute}.ngx-datatable.scroll-horz .datatable-body{overflow-x:auto;-webkit-overflow-scrolling:touch}.ngx-datatable.fixed-header .datatable-header .datatable-header-inner{white-space:nowrap}.ngx-datatable.fixed-header .datatable-header .datatable-header-inner .datatable-header-cell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ngx-datatable.fixed-row .datatable-scroll,.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row{white-space:nowrap}.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-cell,.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-group-cell{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ngx-datatable .datatable-body-row,.ngx-datatable .datatable-row-center,.ngx-datatable .datatable-header-inner{display:flex;flex-direction:row;-o-flex-flow:row;flex-flow:row}.ngx-datatable .datatable-body-cell,.ngx-datatable .datatable-header-cell{overflow-x:hidden;vertical-align:top;display:inline-block;line-height:1.625}.ngx-datatable .datatable-body-cell:focus,.ngx-datatable .datatable-header-cell:focus{outline:none}.ngx-datatable .datatable-row-left,.ngx-datatable .datatable-row-right{z-index:9}.ngx-datatable .datatable-row-left,.ngx-datatable .datatable-row-center,.ngx-datatable .datatable-row-group,.ngx-datatable .datatable-row-right{position:relative}.ngx-datatable .datatable-header{display:block;overflow:hidden}.ngx-datatable .datatable-header .datatable-header-inner{align-items:stretch;-webkit-align-items:stretch}.ngx-datatable .datatable-header .datatable-header-cell{position:relative;display:inline-block}.ngx-datatable .datatable-header .datatable-header-cell.sortable .datatable-header-cell-wrapper{cursor:pointer}.ngx-datatable .datatable-header .datatable-header-cell.longpress .datatable-header-cell-wrapper{cursor:move}.ngx-datatable .datatable-header .datatable-header-cell .sort-btn{line-height:100%;vertical-align:middle;display:inline-block;cursor:pointer}.ngx-datatable .datatable-header .datatable-header-cell .resize-handle,.ngx-datatable .datatable-header .datatable-header-cell .resize-handle--not-resizable{display:inline-block;position:absolute;right:0;top:0;bottom:0;width:5px;padding:0 4px;visibility:hidden}.ngx-datatable .datatable-header .datatable-header-cell .resize-handle{cursor:ew-resize}.ngx-datatable .datatable-header .datatable-header-cell.resizeable:hover .resize-handle,.ngx-datatable .datatable-header .datatable-header-cell:hover .resize-handle--not-resizable{visibility:visible}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker{position:absolute;top:0;bottom:0}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker.dragFromLeft{right:0}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker.dragFromRight{left:0}.ngx-datatable .datatable-header .datatable-header-cell .datatable-header-cell-template-wrap{height:inherit}.ngx-datatable .datatable-body{position:relative;z-index:10;display:block}.ngx-datatable .datatable-body .datatable-scroll{display:inline-block}.ngx-datatable .datatable-body .datatable-row-detail{overflow-y:hidden}.ngx-datatable .datatable-body .datatable-row-wrapper{display:flex;flex-direction:column}.ngx-datatable .datatable-body .datatable-body-row{outline:none}.ngx-datatable .datatable-body .datatable-body-row>div{display:flex}.ngx-datatable .datatable-footer{display:block;width:100%;overflow:auto}.ngx-datatable .datatable-footer .datatable-footer-inner{display:flex;align-items:center;width:100%}.ngx-datatable .datatable-footer .selected-count .page-count{flex:1 1 40%}.ngx-datatable .datatable-footer .selected-count .datatable-pager{flex:1 1 60%}.ngx-datatable .datatable-footer .page-count{flex:1 1 20%}.ngx-datatable .datatable-footer .datatable-pager{flex:1 1 80%;text-align:right}.ngx-datatable .datatable-footer .datatable-pager .pager,.ngx-datatable .datatable-footer .datatable-pager .pager li{padding:0;margin:0;display:inline-block;list-style:none}.ngx-datatable .datatable-footer .datatable-pager .pager li,.ngx-datatable .datatable-footer .datatable-pager .pager li a{outline:none}.ngx-datatable .datatable-footer .datatable-pager .pager li a{cursor:pointer;display:inline-block}.ngx-datatable .datatable-footer .datatable-pager .pager li.disabled a{cursor:not-allowed}\n"],encapsulation:2,changeDetection:0}),(0,q.Cg)([an(5)],b.prototype,"onWindowResize",null),b})(),wr=(()=>{class b{static forRoot(c){return{ngModule:b,providers:[{provide:"configuration",useValue:c}]}}}return b.\u0275fac=function(c){return new(c||b)},b.\u0275mod=o.$C({type:b}),b.\u0275inj=o.G2t({providers:[Or,tr,Vt],imports:[[N.MD]]}),b})();typeof document<"u"&&!document.elementsFromPoint&&(document.elementsFromPoint=function Wi(b,z){const c=[],y=[];let k,j,Ae;for(;(k=document.elementFromPoint(b,z))&&-1===c.indexOf(k)&&null!=k;)c.push(k),y.push({value:k.style.getPropertyValue("pointer-events"),priority:k.style.getPropertyPriority("pointer-events")}),k.style.setProperty("pointer-events","none","important");for(j=y.length;Ae=y[--j];)c[j].style.setProperty("pointer-events",Ae.value?Ae.value:"",Ae.priority);return c})},4621:(Ne,Q,I)=>{"use strict";I.d(Q,{dg:()=>Lt,Ss:()=>Nt});var o=I(3953);class N{constructor($,H){this.open=$,this.close=H||$}isManual(){return"manual"===this.open||"manual"===this.close}}const Y={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function ae(P,$=Y){const H=(P||"").trim();if(0===H.length)return[];const K=H.split(/\s+/).map(W=>W.split(":")).map(W=>{const ee=$[W[0]]||W;return new N(ee[0],ee[1])}),ye=K.filter(W=>W.isManual());if(ye.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===ye.length&&K.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return K}const ge=typeof window<"u"&&window||{};let Ve;function yt(){const P=ge.document.createElement("span");P.innerText="testing bs version",P.classList.add("d-none"),P.classList.add("pl-1"),ge.document.head.appendChild(P);const $=ge.getComputedStyle(P).paddingLeft;return $&&parseFloat($)?(ge.document.head.removeChild(P),"bs4"):(ge.document.head.removeChild(P),"bs5")}function ke(){return{isBs4:(Ve||(Ve=yt()),"bs4"===Ve),isBs5:(Ve||(Ve=yt()),"bs5"===Ve)}}function _e(){const P="Change";return function(H,K){const ye=` __${K}Value`;Object.defineProperty(H,K,{get(){return this[ye]},set(W){const ee=this[ye];this[ye]=W,ee!==W&&this[K+P]&&this[K+P].emit(W)}})}}const Se={},Te=typeof console>"u"||!("warn"in console);function Ye(P){!(0,o.naY)()||Te||P in Se||(Se[P]=!0,console.warn(P))}var $t=I(177),Pn=I(1413),Ot=I(5298),Tn=I(3726),Fn=I(7673),tn=I(536),pn=function(P){return P.top="top",P.bottom="bottom",P.left="left",P.right="right",P.auto="auto",P.end="right",P.start="left",P["top left"]="top left",P["top right"]="top right",P["right top"]="right top",P["right bottom"]="right bottom",P["bottom right"]="bottom right",P["bottom left"]="bottom left",P["left bottom"]="left bottom",P["left top"]="left top",P["top start"]="top left",P["top end"]="top right",P["end top"]="right top",P["end bottom"]="right bottom",P["bottom end"]="bottom right",P["bottom start"]="bottom left",P["start bottom"]="start bottom",P["start top"]="left top",P}(pn||{}),zn=function(P){return P.top="top",P.bottom="bottom",P.left="start",P.right="end",P.auto="auto",P.end="end",P.start="start",P["top left"]="top start",P["top right"]="top end",P["right top"]="end top",P["right bottom"]="end bottom",P["bottom right"]="bottom end",P["bottom left"]="bottom start",P["left bottom"]="start bottom",P["left top"]="start top",P["top start"]="top start",P["top end"]="top end",P["end top"]="end top",P["end bottom"]="end bottom",P["bottom end"]="bottom end",P["bottom start"]="bottom start",P["start bottom"]="start bottom",P["start top"]="start top",P}(zn||{});function ir(P,$){if(1!==P.nodeType)return[];const K=P.ownerDocument.defaultView?.getComputedStyle(P,null);return $?K&&K[$]:K}function fr(P){if(!P)return document.documentElement;let K,H=P?.offsetParent;for(;null===H&&P.nextElementSibling&&K!==P.nextElementSibling;)K=P.nextElementSibling,H=K.offsetParent;const ye=H&&H.nodeName;return ye&&"BODY"!==ye&&"HTML"!==ye?H&&-1!==["TH","TD","TABLE"].indexOf(H.nodeName)&&"static"===ir(H,"position")?fr(H):H:K?K.ownerDocument.documentElement:document.documentElement}function Bn(P){return null!==P.parentNode?Bn(P.parentNode):P}function cr(P,$){if(!(P&&P.nodeType&&$&&$.nodeType))return document.documentElement;const H=P.compareDocumentPosition($)&Node.DOCUMENT_POSITION_FOLLOWING,K=H?P:$,ye=H?$:P,W=document.createRange();W.setStart(K,0),W.setEnd(ye,0);const ee=W.commonAncestorContainer;if(P!==ee&&$!==ee||K.contains(ye))return function Xr(P){const{nodeName:$}=P;return"BODY"!==$&&("HTML"===$||fr(P.firstElementChild)===P)}(ee)?ee:fr(ee);const Ie=Bn(P);return Ie.host?cr(Ie.host,$):cr(P,Bn($).host)}function Nr(P){if(!P||!P.parentElement)return document.documentElement;let $=P.parentElement;for(;$?.parentElement&&"none"===ir($,"transform");)$=$.parentElement;return $||document.documentElement}function Er(P,$){const H="x"===$?"Left":"Top",K="Left"===H?"Right":"Bottom";return parseFloat(P[`border${H}Width`])+parseFloat(P[`border${K}Width`])}function or(P,$,H){return Math.max($[`offset${P}`],$[`scroll${P}`],H[`client${P}`],H[`offset${P}`],H[`scroll${P}`],0)}function Rr(P){const $=P.body,H=P.documentElement;return{height:or("Height",$,H),width:or("Width",$,H)}}function kn(P){return{...P,right:(P.left||0)+P.width,bottom:(P.top||0)+P.height}}function gn(P){return"number"==typeof P||"[object Number]"===Object.prototype.toString.call(P)}function pr(P){const $=P.getBoundingClientRect();if(!($&&gn($.top)&&gn($.left)&&gn($.bottom)&&gn($.right)))return $;const H={left:$.left,top:$.top,width:$.right-$.left,height:$.bottom-$.top},K="HTML"===P.nodeName?Rr(P.ownerDocument):void 0,ye=K?.width||P.clientWidth||gn($.right)&&gn(H.left)&&$.right-H.left||0,W=K?.height||P.clientHeight||gn($.bottom)&&gn(H.top)&&$.bottom-H.top||0;let ee=P.offsetWidth-ye,Ie=P.offsetHeight-W;if(ee||Ie){const $e=ir(P);ee-=Er($e,"x"),Ie-=Er($e,"y"),H.width-=ee,H.height-=Ie}return kn(H)}function nr(P,$,H=!1){const K="HTML"===$.nodeName,ye=pr(P),W=pr($),ee=ir($),Ie=parseFloat(ee.borderTopWidth),$e=parseFloat(ee.borderLeftWidth);H&&K&&(W.top=Math.max(W.top??0,0),W.left=Math.max(W.left??0,0));const Je=kn({top:(ye.top??0)-(W.top??0)-Ie,left:(ye.left??0)-(W.left??0)-$e,width:ye.width,height:ye.height});if(Je.marginTop=0,Je.marginLeft=0,K){const wt=parseFloat(ee.marginTop),Kt=parseFloat(ee.marginLeft);gn(Je.top)&&(Je.top-=Ie-wt),gn(Je.bottom)&&(Je.bottom-=Ie-wt),gn(Je.left)&&(Je.left-=$e-Kt),gn(Je.right)&&(Je.right-=$e-Kt),Je.marginTop=wt,Je.marginLeft=Kt}return Je}function vr(P){return"HTML"===P.nodeName?P:P.parentNode||P.host}function Zn(P){if(!P)return document.body;switch(P.nodeName){case"HTML":case"BODY":return P.ownerDocument.body;case"#document":return P.body}const{overflow:$,overflowX:H,overflowY:K}=ir(P);return/(auto|scroll|overlay)/.test(String($)+String(K)+String(H))?P:Zn(vr(P))}function Or(P,$="top"){const H="top"===$?"scrollTop":"scrollLeft",K=P.nodeName;return"BODY"===K||"HTML"===K?(P.ownerDocument.scrollingElement||P.ownerDocument.documentElement)[H]:P[H]}function Vt(P){const $=P.nodeName;return"BODY"!==$&&"HTML"!==$&&("fixed"===ir(P,"position")||Vt(vr(P)))}function Ze(P,$,H=0,K,ye=!1){let W={top:0,left:0};const ee=ye?Nr(P):cr(P,$);if("viewport"===K)W=function tr(P,$=!1){const H=P.ownerDocument.documentElement,K=nr(P,H),ye=Math.max(H.clientWidth,window.innerWidth||0),W=Math.max(H.clientHeight,window.innerHeight||0),ee=$?0:Or(H),Ie=$?0:Or(H,"left");return kn({top:ee-Number(K?.top)+Number(K?.marginTop),left:Ie-Number(K?.left)+Number(K?.marginLeft),width:ye,height:W})}(ee,ye);else{let Ie;"scrollParent"===K?(Ie=Zn(vr($)),"BODY"===Ie.nodeName&&(Ie=P.ownerDocument.documentElement)):Ie="window"===K?P.ownerDocument.documentElement:K;const $e=nr(Ie,ee,ye);if($e&&"HTML"===Ie.nodeName&&!Vt(ee)){const{height:Je,width:wt}=Rr(P.ownerDocument);gn(W.top)&&gn($e.top)&&gn($e.marginTop)&&(W.top+=$e.top-$e.marginTop),gn(W.top)&&(W.bottom=Number(Je)+Number($e.top)),gn(W.left)&&gn($e.left)&&gn($e.marginLeft)&&(W.left+=$e.left-$e.marginLeft),gn(W.top)&&(W.right=Number(wt)+Number($e.left))}else $e&&(W=$e)}return gn(W.left)&&(W.left+=H),gn(W.top)&&(W.top+=H),gn(W.right)&&(W.right-=H),gn(W.bottom)&&(W.bottom-=H),W}function ui({width:P,height:$}){return P*$}function Pr(P,$,H,K,ye=["top","bottom","right","left"],W="viewport",ee=0){if(-1===P.indexOf("auto"))return P;const Ie=Ze(H,K,ee,W),$e={top:{width:Ie?.width??0,height:($?.top??0)-(Ie?.top??0)},right:{width:(Ie?.right??0)-($?.right??0),height:Ie?.height??0},bottom:{width:Ie?.width??0,height:(Ie?.bottom??0)-($?.bottom??0)},left:{width:($.left??0)-(Ie?.left??0),height:Ie?.height??0}},Je=Object.keys($e).map(on=>({position:on,...$e[on],area:ui($e[on])})).sort((on,sn)=>sn.area-on.area);let wt=Je.filter(({width:on,height:sn})=>on>=H.clientWidth&&sn>=H.clientHeight);wt=wt.filter(({position:on})=>ye.some(sn=>sn===on));const Kt=wt.length>0?wt[0].position:Je[0].position,Zt=P.split(" ")[1];return H.className=H.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${ke().isBs5?zn[Kt]:Kt}`),Kt+(Zt?`-${Zt}`:"")}const xr=(P,$=0)=>P?parseFloat(P):$;function Ln(P){const H=P.ownerDocument.defaultView?.getComputedStyle(P),K=xr(H?.marginTop)+xr(H?.marginBottom),ye=xr(H?.marginLeft)+xr(H?.marginRight);return{width:Number(P.offsetWidth)+ye,height:Number(P.offsetHeight)+K}}function oi(P,$,H){return nr($,H?Nr(P):cr(P,$),H)}function ce(P,$,H){const K=H.split(" ")[0],ye=Ln(P),W={width:ye.width,height:ye.height},ee=-1!==["right","left"].indexOf(K),Ie=ee?"top":"left",$e=ee?"left":"top",Je=ee?"height":"width",wt=ee?"width":"height";return W[Ie]=($[Ie]??0)+$[Je]/2-ye[Je]/2,W[$e]=K===$e?($[$e]??0)-ye[wt]:$[function Fr(P){const $={left:"right",right:"left",bottom:"top",top:"bottom"};return P.replace(/left|right|bottom|top/g,H=>$[H])}($e)]??0,W}function me(P,$){return!!P.modifiers[$]?.enabled}const je={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 ve(P,$){return!!ke().isBs5&&je[$].includes(P)}function mt(P,$,H){!P||!$||Object.keys($).forEach(K=>{let ye="";-1!==["width","height","top","right","bottom","left"].indexOf(K)&&function Vr(P){return""!==P&&!isNaN(parseFloat(P))&&isFinite(Number(P))}($[K])&&(ye="px"),H?H.setStyle(P,K,`${String($[K])}${ye}`):P.style[K]=String($[K])+ye})}function Dt(P){let $=P.offsets.target;const H=P.instance.target.querySelector(".arrow");if(!H)return P;const K=-1!==["left","right"].indexOf(P.placement.split(" ")[0]),ye=K?"height":"width",W=K?"Top":"Left",ee=W.toLowerCase(),Ie=K?"left":"top",$e=K?"bottom":"right",Je=Ln(H)[ye],wt=P.placement.split(" ")[1];(P.offsets.host[$e]??0)-Je<($[ee]??0)&&($[ee]-=($[ee]??0)-((P.offsets.host[$e]??0)-Je)),Number(P.offsets.host[ee])+Number(Je)>($[$e]??0)&&($[ee]+=Number(P.offsets.host[ee])+Number(Je)-Number($[$e])),$=kn($);const Kt=ir(P.instance.target),Zt=parseFloat(Kt[`margin${W}`])||0,on=parseFloat(Kt[`border${W}Width`])||0;let sn;if(wt){const He=parseFloat(Kt.borderRadius)||0,Me=Number(Zt+on+He);sn=ee===wt?Number(P.offsets.host[ee])+Me:Number(P.offsets.host[ee])+Number(P.offsets.host[ye]-Me)}else sn=Number(P.offsets.host[ee])+Number(P.offsets.host[ye]/2-Je/2);let tt=sn-($[ee]??0)-Zt-on;return tt=Math.max(Math.min($[ye]-(Je+5),tt),0),P.offsets.arrow={[ee]:Math.round(tt),[Ie]:""},P.instance.arrow=H,P}function Tt(P){if(P.offsets.target=kn(P.offsets.target),!me(P.options,"flip"))return P.offsets.target={...P.offsets.target,...ce(P.instance.target,P.offsets.host,P.placement)},P;const $=Ze(P.instance.target,P.instance.host,0,"viewport",!1);let H=P.placement.split(" ")[0],K=P.placement.split(" ")[1]||"";const Ie=Pr("auto",P.offsets.host,P.instance.target,P.instance.host,P.options.allowedPositions),$e=[H,Ie];return $e.forEach((Je,wt)=>{if(H!==Je||$e.length===wt+1)return;H=P.placement.split(" ")[0];const Kt="left"===H&&Math.floor(P.offsets.target.right??0)>Math.floor(P.offsets.host.left??0)||"right"===H&&Math.floor(P.offsets.target.left??0)<Math.floor(P.offsets.host.right??0)||"top"===H&&Math.floor(P.offsets.target.bottom??0)>Math.floor(P.offsets.host.top??0)||"bottom"===H&&Math.floor(P.offsets.target.top??0)<Math.floor(P.offsets.host.bottom??0),Zt=Math.floor(P.offsets.target.left??0)<Math.floor($.left??0),on=Math.floor(P.offsets.target.right??0)>Math.floor($.right??0),sn=Math.floor(P.offsets.target.top??0)<Math.floor($.top??0),tt=Math.floor(P.offsets.target.bottom??0)>Math.floor($.bottom??0),He="left"===H&&Zt||"right"===H&&on||"top"===H&&sn||"bottom"===H&&tt,Me=-1!==["top","bottom"].indexOf(H),Qe=Me&&"left"===K&&Zt||Me&&"right"===K&&on||!Me&&"left"===K&&sn||!Me&&"right"===K&&tt;(Kt||He||Qe)&&((Kt||He)&&(H=$e[wt+1]),Qe&&(K=function ur(P){return"right"===P?"left":"left"===P?"right":P}(K)),P.placement=H+(K?` ${K}`:""),P.offsets.target={...P.offsets.target,...ce(P.instance.target,P.offsets.host,P.placement)})}),P}function he(P){if(!me(P.options,"preventOverflow"))return P;const $="transform",H=P.instance.target.style,{top:K,left:ye,[$]:W}=H;H.top="",H.left="",H[$]="";const ee=Ze(P.instance.target,P.instance.host,0,P.options.modifiers.preventOverflow?.boundariesElement||"scrollParent",!1);H.top=K,H.left=ye,H[$]=W;const $e={primary(Je){let wt=P.offsets.target[Je];return(P.offsets.target[Je]??0)<(ee[Je]??0)&&(wt=Math.max(P.offsets.target[Je]??0,ee[Je]??0)),{[Je]:wt}},secondary(Je){const wt="right"===Je,Kt=wt?"left":"top";let on=P.offsets.target[Kt];return(P.offsets.target[Je]??0)>(ee[Je]??0)&&(on=Math.min(P.offsets.target[Kt]??0,(ee[Je]??0)-P.offsets.target[wt?"width":"height"])),{[Kt]:on}}};return["left","right","top","bottom"].forEach(Je=>{const wt=-1!==["left","top","start"].indexOf(Je)?$e.primary:$e.secondary;P.offsets.target={...P.offsets.target,...wt(Je)}}),P}function G(P){const $=P.placement,H=$.split(" ")[0],K=$.split(" ")[1];if(K){const{host:ye,target:W}=P.offsets,ee=-1!==["bottom","top"].indexOf(H),Ie=ee?"left":"top",$e=ee?"width":"height",Je={start:{[Ie]:ye[Ie]},end:{[Ie]:(ye[Ie]??0)+ye[$e]-W[$e]}};P.offsets.target={...W,[Ie]:Ie===K?Je.start[Ie]:Je.end[Ie]}}return P}const xe=new class le{position($,H){return this.offset($,H)}offset($,H){return oi(H,$)}positionElements($,H,K,ye,W){const ee=[Tt,G,he,Dt],$e=function Ce(P,$,H,K){if(!P||!$)return;const ye=oi(P,$);!H.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!H.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(H="auto");const W=!!H.match(/auto/g);let ee=H.match(/auto\s(left|right|top|bottom|start|end)/)?H.split(" ")[1]||"auto":H;const Ie=ee.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);return Ie&&(ee=Ie[1]+(Ie[2]?` ${Ie[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(ee)&&(ee="auto"),ee=Pr(ee,ye,P,$,K?K.allowedPositions:void 0),{options:K||{modifiers:{}},instance:{target:P,host:$,arrow:void 0},offsets:{target:ce(P,ye,ee),host:ye,arrow:void 0},positionFixed:!1,placement:ee,placementAuto:W}}(H,$,pn[K],W);if($e)return ee.reduce((Je,wt)=>wt(Je),$e)}};function it(P,$,H,K,ye,W){const ee=xe.positionElements(P,$,H,K,ye);if(!ee)return;const Ie=function Cr(P){return{width:P.offsets.target.width,height:P.offsets.target.height,left:Math.floor(P.offsets.target.left??0),top:Math.round(P.offsets.target.top??0),bottom:Math.round(P.offsets.target.bottom??0),right:Math.floor(P.offsets.target.right??0)}}(ee);mt($,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${Ie.left}px, ${Ie.top}px, 0px)`},W),ee.instance.arrow&&mt(ee.instance.arrow,ee.offsets.arrow,W),function ot(P,$){const H=P.instance.target;let K=H.className;const ye=ke().isBs5?zn[P.placement]:P.placement;P.placementAuto&&(K=K.replace(/bs-popover-auto/g,`bs-popover-${ye}`),K=K.replace(/ms-2|me-2|mb-2|mt-2/g,""),K=K.replace(/bs-tooltip-auto/g,`bs-tooltip-${ye}`),K=K.replace(/\sauto/g,` ${ye}`),-1!==K.indexOf("popover")&&(K=K+" "+function Fe(P){return ke().isBs5?ve(P,"end")?"ms-2":ve(P,"start")?"me-2":ve(P,"top")?"mb-2":ve(P,"bottom")?"mt-2":"":""}(ye)),-1!==K.indexOf("popover")&&-1===K.indexOf("popover-auto")&&(K+=" popover-auto"),-1!==K.indexOf("tooltip")&&-1===K.indexOf("tooltip-auto")&&(K+=" tooltip-auto")),K=K.replace(/left|right|top|bottom|end|start/g,`${ye.split(" ")[0]}`),$?$.setAttribute(H,"class",K):H.className=K}(ee,W)}let _t=(()=>{class P{constructor(H,K,ye){this.update$$=new Pn.B,this.positionElements=new Map,this.isDisabled=!1,(0,$t.UE)(ye)&&H.runOutsideAngular(()=>{this.triggerEvent$=(0,Ot.h)((0,Tn.R)(window,"scroll",{passive:!0}),(0,Tn.R)(window,"resize",{passive:!0}),(0,Fn.of)(0,tn.X),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(W=>{it(Ft(W.target),Ft(W.element),W.attachment,W.appendToBody,this.options,K.createRenderer(null,null))})})})}position(H){this.addPositionElement(H)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(H){this.positionElements.set(Ft(H.element),H)}calcPosition(){this.update$$.next(null)}deletePositionElement(H){this.positionElements.delete(Ft(H))}setOptions(H){this.options=H}static#e=this.\u0275fac=function(K){return new(K||P)(o.KVO(o.SKi),o.KVO(o._9s),o.KVO(o.Agw))};static#t=this.\u0275prov=o.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();function Ft(P){return"string"==typeof P?document.querySelector(P):P instanceof o.aKT?P.nativeElement:P??null}var ft=I(5215);class rt{constructor($,H,K){this.nodes=$,this.viewRef=H,this.componentRef=K}}class Ht{constructor($,H,K,ye,W,ee,Ie,$e,Je){this._viewContainerRef=$,this._renderer=H,this._elementRef=K,this._injector=ye,this._componentFactoryResolver=W,this._ngZone=ee,this._applicationRef=Ie,this._posService=$e,this._document=Je,this.onBeforeShow=new o.bkB,this.onShown=new o.bkB,this.onBeforeHide=new o.bkB,this.onHidden=new o.bkB,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach($){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory($),this}to($){return this.container=$||this.container,this}position($){return $?(this.attachment=$.attachment||this.attachment,this._elementRef=$.target||this._elementRef,this):this}provide($){return this._providers.push($),this}show($={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef($.content,$.context,$.initialState);const H=o.zZn.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(H,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,$),this.container instanceof o.aKT&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&typeof this._document<"u"){const K=this._document.querySelector(this.container)||this._document.querySelector(this.containerDefaultSelector);if(!K)return;K.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($.id?{id:$.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide($){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const H=this._componentRef.location.nativeElement;return H.parentNode?.removeChild(H),this._contentRef?.componentRef?.destroy(),this._viewContainerRef&&this._contentRef?.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef?.viewRef?.destroy(),this._componentRef?.destroy(),this._contentRef=void 0,this._componentRef=void 0,this._removeGlobalListener(),this.onHidden.emit($?{id:$}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen($){this.triggers=$.triggers||this.triggers,this._listenOpts.outsideClick=$.outsideClick,this._listenOpts.outsideEsc=$.outsideEsc,$.target=$.target||this._elementRef?.nativeElement;const H=this._listenOpts.hide=()=>$.hide?$.hide():void this.hide(),K=this._listenOpts.show=W=>{$.show?$.show(W):this.show(W),W()};return this._renderer&&(this._unregisterListenersFn=function ie(P,$){const H=ae($.triggers),K=$.target;if(1===H.length&&H[0].isManual())return Function.prototype;const ye=[],W=[],ee=()=>{W.forEach(Ie=>ye.push(Ie())),W.length=0};return H.forEach(Ie=>{const $e=Ie.open===Ie.close,Je=$e?$.toggle:$.show;if(!$e&&Ie.close&&$.hide){const wt=Ie.close,Kt=$.hide;W.push(()=>P.listen(K,wt,Kt))}Je&&ye.push(P.listen(K,Ie.open,()=>Je(ee)))}),()=>{ye.forEach(Ie=>Ie())}}(this._renderer,{target:$.target,triggers:$.triggers,show:K,hide:H,toggle:W=>{this.isShown?H():K(W)}})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline($,H){return $&&H&&(this._inlineViewRef=$.createEmbeddedView(H)),this}_registerOutsideClick(){if(!this._componentRef||!this._componentRef.location)return;let $=Function.prototype,H=Function.prototype;if(this._listenOpts.outsideClick){const K=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&($=function q(P,$){return $.outsideClick?P.listen("document","click",H=>{$.target&&$.target.contains(H.target)||$.targets&&$.targets.some(K=>K.contains(H.target))||$.hide&&$.hide()}):Function.prototype}(this._renderer,{targets:[K,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}this._listenOpts.outsideEsc&&this._renderer&&this._elementRef&&(H=function ue(P,$){return $.outsideEsc?P.listen("document","keyup.esc",H=>{$.target&&$.target.contains(H.target)||$.targets&&$.targets.some(K=>K.contains(H.target))||$.hide&&$.hide()}):Function.prototype}(this._renderer,{targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()})),this._globalListener=()=>{$(),H()}}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($,H,K){if(!$)return new rt([]);if($ instanceof o.C4Q){if(this._viewContainerRef){const ee=this._viewContainerRef.createEmbeddedView($,H);return ee.markForCheck(),new rt([ee.rootNodes],ee)}const W=$.createEmbeddedView({});return this._applicationRef.attachView(W),new rt([W.rootNodes],W)}if("function"==typeof $){const W=this._componentFactoryResolver.resolveComponentFactory($),ee=o.zZn.create({providers:this._providers,parent:this._injector}),Ie=W.create(ee);return Object.assign(Ie.instance,K),this._applicationRef.attachView(Ie.hostView),new rt([[Ie.location.nativeElement]],Ie.hostView,Ie)}const ye=this._renderer?[this._renderer.createText(`${$}`)]:[];return new rt([ye])}}let rn=(()=>{class P{constructor(H,K,ye,W,ee,Ie){this._componentFactoryResolver=H,this._ngZone=K,this._injector=ye,this._posService=W,this._applicationRef=ee,this._document=Ie}createLoader(H,K,ye){return new Ht(K,ye,H,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService,this._document)}static#e=this.\u0275fac=function(K){return new(K||P)(o.KVO(o.OM3),o.KVO(o.SKi),o.KVO(o.zZn),o.KVO(_t),o.KVO(o.o8S),o.KVO($t.qQ))};static#t=this.\u0275prov=o.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();var xn=I(1584);const yn=["*"];let It=(()=>{class P{constructor(){this.adaptivePosition=!0,this.placement="top",this.triggers="hover focus",this.delay=0}static#e=this.\u0275fac=function(K){return new(K||P)};static#t=this.\u0275prov=o.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),bn=(()=>{class P{get _bsVersions(){return ke()}constructor(H){Object.assign(this,H)}ngAfterViewInit(){this.classMap={in:!1,fade:!1},this.placement&&(this._bsVersions.isBs5&&(this.placement=zn[this.placement]),this.classMap[this.placement]=!0),this.classMap[`tooltip-${this.placement}`]=!0,this.classMap.in=!0,this.animation&&(this.classMap.fade=!0),this.containerClass&&(this.classMap[this.containerClass]=!0)}static#e=this.\u0275fac=function(K){return new(K||P)(o.rXU(It))};static#t=this.\u0275cmp=o.VBU({type:P,selectors:[["bs-tooltip-container"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(K,ye){2&K&&(o.BMQ("id",ye.id),o.HbH("show tooltip in tooltip-"+ye.placement+" bs-tooltip-"+ye.placement+" "+ye.placement+" "+ye.containerClass))},ngContentSelectors:yn,decls:3,vars:0,consts:[[1,"tooltip-arrow","arrow"],[1,"tooltip-inner"]],template:function(K,ye){1&K&&(o.NAR(),o.nrm(0,"div",0),o.j41(1,"div",1),o.SdG(2),o.k0s())},styles:[".tooltip[_nghost-%COMP%]{display:block;pointer-events:none;position:absolute}.tooltip[_nghost-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{position:absolute}"],changeDetection:0})}return P})(),Bt=0,Lt=(()=>{class P{get isOpen(){return this._tooltip.isShown}set isOpen(H){H?this.show():this.hide()}set htmlContent(H){Ye("tooltipHtml was deprecated, please use `tooltip` instead"),this.tooltip=H}set _placement(H){Ye("tooltipPlacement was deprecated, please use `placement` instead"),this.placement=H}set _isOpen(H){Ye("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen=H}get _isOpen(){return Ye("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen}set _enable(H){Ye("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled=!H}get _enable(){return Ye("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled}set _appendToBody(H){Ye('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container=H?"body":this.container}get _appendToBody(){return Ye('tooltipAppendToBody was deprecated, please use `container="body"` instead'),"body"===this.container}set _popupClass(H){Ye("tooltipClass deprecated")}set _tooltipContext(H){Ye("tooltipContext deprecated")}set _tooltipPopupDelay(H){Ye("tooltipPopupDelay is deprecated, use `delay` instead"),this.delay=H}get _tooltipTrigger(){return Ye("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers}set _tooltipTrigger(H){Ye("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers=(H||"").toString()}constructor(H,K,ye,W,ee,Ie){this._elementRef=W,this._renderer=ee,this._positionService=Ie,this.tooltipId=Bt++,this.adaptivePosition=!0,this.tooltipChange=new o.bkB,this.placement="top",this.triggers="hover focus",this.containerClass="",this.isDisabled=!1,this.delay=0,this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new o.bkB,this._tooltip=K.createLoader(this._elementRef,H,this._renderer).provide({provide:It,useValue:ye}),Object.assign(this,ye),this.onShown=this._tooltip.onShown,this.onHidden=this._tooltip.onHidden}ngOnInit(){this._tooltip.listen({triggers:this.triggers,show:()=>this.show()}),this.tooltipChange.subscribe(H=>{H||this._tooltip.hide()}),this.onShown.subscribe(()=>{this.setAriaDescribedBy()}),this.onHidden.subscribe(()=>{this.setAriaDescribedBy()})}setAriaDescribedBy(){this._ariaDescribedby=this.isOpen?`tooltip-${this.tooltipId}`:void 0,this._ariaDescribedby?this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ariaDescribedby):this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby")}toggle(){if(this.isOpen)return this.hide();this.show()}show(){if(this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition,boundariesElement:this.boundariesElement||"scrollParent"}}}),this.isOpen||this.isDisabled||this._delayTimeoutId||!this.tooltip)return;const H=()=>{this._delayTimeoutId&&(this._delayTimeoutId=void 0),this._tooltip.attach(bn).to(this.container).position({attachment:this.placement}).show({content:this.tooltip,placement:this.placement,containerClass:this.containerClass,id:`tooltip-${this.tooltipId}`})},K=()=>{this._tooltipCancelShowFn&&this._tooltipCancelShowFn()};this.delay?(this._delaySubscription&&this._delaySubscription.unsubscribe(),this._delaySubscription=(0,xn.O)(this.delay).subscribe(()=>{H(),K()}),this.triggers&&ae(this.triggers).forEach(ye=>{ye.close&&(this._tooltipCancelShowFn=this._renderer.listen(this._elementRef.nativeElement,ye.close,()=>{this._delaySubscription?.unsubscribe(),K()}))})):H()}hide(){this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this._tooltip.isShown&&(this._tooltip.instance?.classMap&&(this._tooltip.instance.classMap.in=!1),setTimeout(()=>{this._tooltip.hide()},this.tooltipFadeDuration))}ngOnDestroy(){this._tooltip.dispose(),this.tooltipChange.unsubscribe(),this._delaySubscription&&this._delaySubscription.unsubscribe(),this.onShown.unsubscribe(),this.onHidden.unsubscribe()}static#e=this.\u0275fac=function(K){return new(K||P)(o.rXU(o.c1b),o.rXU(rn),o.rXU(It),o.rXU(o.aKT),o.rXU(o.sFG),o.rXU(_t))};static#t=this.\u0275dir=o.FsC({type:P,selectors:[["","tooltip",""],["","tooltipHtml",""]],inputs:{adaptivePosition:"adaptivePosition",tooltip:"tooltip",placement:"placement",triggers:"triggers",container:"container",containerClass:"containerClass",boundariesElement:"boundariesElement",isOpen:"isOpen",isDisabled:"isDisabled",delay:"delay",htmlContent:[0,"tooltipHtml","htmlContent"],_placement:[0,"tooltipPlacement","_placement"],_isOpen:[0,"tooltipIsOpen","_isOpen"],_enable:[0,"tooltipEnable","_enable"],_appendToBody:[0,"tooltipAppendToBody","_appendToBody"],tooltipAnimation:"tooltipAnimation",_popupClass:[0,"tooltipClass","_popupClass"],_tooltipContext:[0,"tooltipContext","_tooltipContext"],_tooltipPopupDelay:[0,"tooltipPopupDelay","_tooltipPopupDelay"],tooltipFadeDuration:"tooltipFadeDuration",_tooltipTrigger:[0,"tooltipTrigger","_tooltipTrigger"]},outputs:{tooltipChange:"tooltipChange",onShown:"onShown",onHidden:"onHidden",tooltipStateChanged:"tooltipStateChanged"},exportAs:["bs-tooltip"]})}return(0,ft.Cg)([_e(),(0,ft.Sn)("design:type",Object)],P.prototype,"tooltip",void 0),P})(),Nt=(()=>{class P{static forRoot(){return{ngModule:P,providers:[rn,_t]}}static#e=this.\u0275fac=function(K){return new(K||P)};static#t=this.\u0275mod=o.$C({type:P});static#n=this.\u0275inj=o.G2t({imports:[$t.MD]})}return P})()}}]);
Back to Directory
File Manager