Viewing File: /usr/local/cpanel/base/frontend/jupiter/manage-calendar-access/vendor.js
(self.webpackChunkmanage_calendar_access=self.webpackChunkmanage_calendar_access||[]).push([[736],{109:($e,X,M)=>{"use strict";M.d(X,{F:()=>r});var r=(()=>{return(P=r||(r={}))[P.GET=0]="GET",P[P.HEAD=1]="HEAD",P[P.POST=2]="POST",P[P.PUT=3]="PUT",P[P.DELETE=4]="DELETE",P[P.CONNECT=5]="CONNECT",P[P.OPTIONS=6]="OPTIONS",P[P.TRACE=7]="TRACE",P[P.PATCH=8]="PATCH",r;var P})()},2910:($e,X,M)=>{"use strict";M.d(X,{j:()=>nn});var r=M(1978),P=M.n(r),_e=M(8635),pe=(()=>{return(te=pe||(pe={}))[te.Ascending=0]="Ascending",te[te.Descending=1]="Descending",pe;var te})(),re=(()=>{return(te=re||(re={}))[te.Lexicographic=0]="Lexicographic",te[te.Ipv4=1]="Ipv4",te[te.Numeric=2]="Numeric",te[te.NumericZeroAsMax=3]="NumericZeroAsMax",re;var te})();class J{constructor(V,K=pe.Ascending,ie=re.Lexicographic){if(!V)throw new Error("You must provide a non-empty column name for a Sort rule.");this.column=V,this.direction=K,this.type=ie}}var ce=(()=>{return(te=ce||(ce={}))[te.Contains=0]="Contains",te[te.Begins=1]="Begins",te[te.Ends=2]="Ends",te[te.Matches=3]="Matches",te[te.Equal=4]="Equal",te[te.NotEqual=5]="NotEqual",te[te.LessThan=6]="LessThan",te[te.LessThanUnlimited=7]="LessThanUnlimited",te[te.GreaterThan=8]="GreaterThan",te[te.GreaterThanUnlimited=9]="GreaterThanUnlimited",te[te.Defined=10]="Defined",te[te.Undefined=11]="Undefined",ce;var te})();class W{constructor(V,K,ie){if(!V)throw new Error("You must define a non-empty column name.");this.column=V,this.operator=K,this.value=ie}}var Y=M(7709);const z=Number.POSITIVE_INFINITY;class fe{constructor(V=1,K=20){if(V<=0)throw new Error("The page must be 1 or greater. This is the logical page, not a programming index.");if(K<=0)throw new Error("The pageSize must be set to 'ALL' or a number > 0");this.page=V,this.pageSize=K}all(){return this.pageSize===z}}class ge{constructor(V=[]){this.headers=V}push(V){this.headers.push(V)}forEach(V,K){this.headers.forEach(V,K)}toArray(){const V=[];return this.headers.forEach(K=>V.push({name:K.name,value:K.value})),V}toObject(){return this.headers.reduce((V,K)=>(V[K.name]=K.value,V),{})}}class Ve{constructor(V){this._header=V}get name(){return this._header.name}get value(){return this._header.value}}Error,Error;class st extends Error{constructor(V){super(V),this.name="WhmApiTokenInvalidError",Object.setPrototypeOf(this,st.prototype)}}class dt extends Error{constructor(V){super(V),this.name="WhmApiTokenMismatchError",Object.setPrototypeOf(this,dt.prototype)}}class _t extends Ve{constructor(V,K){if(!V)throw new st("You must pass a valid token to the constructor.");if(!K&&!/^.+:/.test(V))throw new st("You must pass a WHM username associated with the WHM API token.");if(!K&&!/:.+$/.test(V))throw new st("You must pass a valid WHM API token.");super({name:"Authorization",value:`whm ${K?K+":":""}${V}`})}}var Tt=M(109);const Et=new class an{constructor(){this.map={},this.map.DEFAULT={verb:"DEFAULT",dataInBody:!0},[Tt.F.GET,Tt.F.DELETE,Tt.F.HEAD].forEach(V=>{const K=Tt.F[V].toString();this.map[K]={verb:K,dataInBody:!1}}),[Tt.F.POST,Tt.F.PUT,Tt.F.PATCH].forEach(V=>{const K=Tt.F[V].toString();this.map[K]={verb:K,dataInBody:!0}})}getRule(V){const K="string"==typeof V?V:Tt.F[V].toString();let ie=this.map[K];return ie||(ie=this.map.DEFAULT),ie}};var _n=M(3022);class nn extends class Pt{constructor(V){this.namespace="",this.method="",this.arguments=[],this.sorts=[],this.filters=[],this.columns=[],this.pager=new fe,this.headers=new ge,this._usePager=!1,this.defaultConfig={analytics:!1,json:!1},this.config=this.defaultConfig,V&&(this.method=V.method,V.namespace&&(this.namespace=V.namespace),V.arguments&&V.arguments.forEach(K=>{this.addArgument(K)}),V.sorts&&V.sorts.forEach(K=>{this.addSort(K)}),V.filters&&V.filters.forEach(K=>{this.addFilter(K)}),V.columns&&V.columns.forEach(K=>this.addColumn(K)),V.pager&&this.paginate(V.pager),this.config=V.config?V.config:this.defaultConfig,V.headers&&V.headers.forEach(K=>{this.addHeader(K)}))}get usePager(){return this._usePager}addArgument(V){return this.arguments.push(V instanceof Y.h?V:new Y.h(V.name,V.value)),this}addSort(V){return this.sorts.push(V instanceof J?V:new J(V.column,V.direction,V.type)),this}addFilter(V){return this.filters.push(V instanceof W?V:new W(V.column,V.operator,V.value)),this}addColumn(V){return this.columns.push(V),this}addHeader(V){return this.headers.push(V instanceof Ve?V:new Ve(V)),this}paginate(V){return this.pager=V instanceof fe?V:new fe(V.page,V.pageSize||20),this._usePager=!0,this}}{addHeader(V){if(V instanceof _t)throw new dt("A WhmApiTokenHeader cannot be used on a CpanelApiRequest");return super.addHeader(V),this}_build(V,K){let ie="";return V.forEach((be,se,tt)=>{ie+=K.encode(be.name,be.value,se===tt.length-1)}),K.separatorStart+ie+K.separatorEnd}_generateArguments(V){this.arguments.forEach(K=>V.push(K))}_generateSorts(V){this.sorts.forEach((K,ie)=>{0===ie&&V.push({name:"api.sort",value:_e.O(!0)}),V.push({name:"api.sort_column_"+ie,value:K.column}),V.push({name:"api.sort_reverse_"+ie,value:_e.O(K.direction!==pe.Ascending)}),V.push({name:"api.sort_method_"+ie,value:P()(re[K.type])})})}_lookupFilterOperator(V){switch(V){case ce.GreaterThanUnlimited:return"gt_handle_unlimited";case ce.GreaterThan:return"gt";case ce.LessThanUnlimited:return"lt_handle_unlimited";case ce.LessThan:return"lt";case ce.NotEqual:return"ne";case ce.Equal:return"eq";case ce.Defined:return"defined";case ce.Undefined:return"undefined";case ce.Matches:return"matches";case ce.Ends:return"ends";case ce.Begins:return"begins";case ce.Contains:return"contains";default:throw new Error(`Unrecognized FilterOperator ${ce[V]} for UAPI`)}}_generateFilters(V){this.filters.forEach((K,ie)=>{V.push({name:"api.filter_column_"+ie,value:K.column}),V.push({name:"api.filter_type_"+ie,value:this._lookupFilterOperator(K.operator)}),V.push({name:"api.filter_term_"+ie,value:K.value})})}_traslatePageToStart(V){return(V.page-1)*V.pageSize+1}_generatePagination(V){if(!this.usePager)return;const K=this.pager.all();V.push({name:"api.paginate",value:_e.O(!0)}),V.push({name:"api.paginate_start",value:K?-1:this._traslatePageToStart(this.pager)}),K||V.push({name:"api.paginate_size",value:this.pager.pageSize})}_generateConfiguration(V){this.config&&this.config.analytics&&V.push({name:"api.analytics",value:_e.O(this.config.analytics)})}constructor(V){super(V)}generate(V){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");V||(V={verb:Tt.F.POST,encoder:this.config.json?new _n.tO:new _n.VN}),V.encoder||(V.encoder=this.config.json?new _n.tO:new _n.VN);const K=Et.getRule(V.verb),ie={headers:new ge([{name:"Content-Type",value:V.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,V.encoder);return K.dataInBody?ie.body=se:ie.url+=V.verb===Tt.F.GET?`?${se}`:se,this.headers.forEach(tt=>{ie.headers.push({name:tt.name,value:tt.value})}),ie}}},7709:($e,X,M)=>{"use strict";M.d(X,{h:()=>P,x:()=>_e});var r=M(8635);class P{constructor(re,J){if(!re)throw new Error("You must provide a name when creating a name/value argument");this.name=re,this.value=J}}class _e extends P{constructor(re,J){super(re,(0,r.O)(J))}}},3022:($e,X,M)=>{"use strict";M.d(X,{tO:()=>st,VN:()=>ut});var r=M(4235),P=M.n(r),_e=M(1305),pe=M.n(_e),re=M(4798),J=M.n(re),ce=M(9138),W=M.n(ce),Y=M(248),j=M.n(Y),z=M(1503),fe=M.n(z),ge=M(7614),Ve=M.n(ge);function Ie(dt){if(P()(dt)||pe()(dt)||J()(dt)||W()(dt)||j()(dt))return!0;if(!Ve()(dt)&&!fe()(dt))return!1;for(const _t in dt)if(!Ie(dt[_t]))return!1;return!0}class ut{constructor(){this.contentType="application/x-www-form-urlencoded",this.separatorStart="",this.separatorEnd="",this.recordSeparator="&"}encode(_t,Pt,Tt){if(!_t)throw new Error("Name must have a non-empty value");return`${_t}=${encodeURIComponent(Pt.toString())}`+(Tt?"":this.recordSeparator)}}class st{constructor(){this.contentType="application/json",this.separatorStart="{",this.separatorEnd="}",this.recordSeparator=","}encode(_t,Pt,Tt){if(!_t)throw new Error("Name must have a non-empty value");if(!Ie(Pt))throw new Error("The passed in value can not be serialized to JSON");return JSON.stringify(_t)+":"+JSON.stringify(Pt)+(Tt?"":this.recordSeparator)}}},8635:($e,X,M)=>{"use strict";function r(pe){return pe?"1":"0"}M.d(X,{O:()=>r})},269:($e,X,M)=>{"use strict";X.g=void 0;const P=M(1680);Object.defineProperty(X,"g",{enumerable:!0,get:function(){return P.Locale}})},5074:($e,X)=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.CLDR=void 0,X.CLDR=class M{constructor(P){this.rawData=P,this.validateCLDR(this.rawData)}validateCLDR(P){if(!P)throw new Error("CLDR data cannot be null");if(!P.locale)throw new Error("CLDR data is missing locale information");if(!Object.prototype.hasOwnProperty.call(P,"functions")||Object.prototype.hasOwnProperty.call(P,"get_plural_form")||"function"!=typeof P.functions.get_plural_form)throw new Error("CLDR data is missing function get_plural_form");if(!Object.prototype.hasOwnProperty.call(P,"datetime_info"))throw new Error("CLDR data is missing datetime_info");if(!Object.prototype.hasOwnProperty.call(P,"misc_info"))throw new Error("CLDR data is missing misc_info");if(!Object.prototype.hasOwnProperty.call(P.misc_info,"cldr_formats"))throw new Error("CLDR data is missing cldr_formats");if(!Object.prototype.hasOwnProperty.call(P.misc_info,"orientation")||!Object.prototype.hasOwnProperty.call(P.misc_info.orientation,"characters"))throw new Error("CLDR data is missing orientation information");if(!Object.prototype.hasOwnProperty.call(P.misc_info,"delimiters"))throw new Error("CLDR data is missing delimiter information");return!0}getLocale(){return this.rawData.locale}getPluralForm(P,..._e){return this.rawData.functions.get_plural_form(P,..._e)}getDateTimeInfo(){return this.rawData.datetime_info}getFormats(){return this.rawData.misc_info.cldr_formats}getDelimiters(){return this.rawData.misc_info.delimiters}isRtl(){return"right-to-left"===this.rawData.misc_info.orientation.characters}isLtr(){return"left-to-right"===this.rawData.misc_info.orientation.characters}}},1680:($e,X,M)=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.Locale=void 0;const r=M(2889),P=M(9483),_e=M(741),pe=M(786),re=M(5074);X.Locale=class J{constructor(W,Y={}){this.lexicon=Y,this._cldr=new re.CLDR(W)}maketext(W,...Y){return r.maketext({cldr:this._cldr,lexicon:this.lexicon,template:W,args:Y})}localDatetime(W,Y){return this._datetimeWrapper(P.local_datetime,W,Y)}datetime(W,Y){return this._datetimeWrapper(P.datetime,W,Y)}_datetimeWrapper(W,Y,j){return W({cldr:this._cldr,args:[Y,j]})}getCurrentLocale(){return this._cldr.getLocale()}get isRtl(){return this._cldr.isRtl()}get isLtr(){return this._cldr.isLtr()}get cldr(){return this._cldr}numf(W,Y){return this._formatNumber(_e.numf,W,Y)}format_bytes(W,Y){return this._formatNumber(_e.format_bytes,W,Y)}_formatNumber(W,...Y){return this._callCLDRFunc(W,Y)}list_and(...W){return this._callCLDRFunc(pe.list_and,W)}list_and_quoted(...W){return this._callCLDRFunc(pe.list_and_quoted,W)}list_or(...W){return this._callCLDRFunc(pe.list_or,W)}list_or_quoted(...W){return this._callCLDRFunc(pe.list_or_quoted,W)}_callCLDRFunc(W,Y){return W({cldr:this._cldr,args:Y})}}},7296:($e,X,M)=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.asis=void 0;const r=M(5247);X.asis=function P({args:[_e,...pe]}){if(!_e||pe.length>0||"string"!=typeof _e)throw new Error("asis function accepts one non translatable string.");return(_e=_e.replace(/chr\((\d+)\)/g,function(re,J){return r.functions.chr(Number(J))})).replace(/amp\(\)/g,function(re){return r.functions.amp()})}},527:($e,X)=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.boolean=void 0,X.boolean=function M({args:[r,P,_e,pe]}){if(null==P||0===P.length||null==_e||0===_e.length)throw new Error("boolean function needs a valid whenTrue, whenFalse arguments.");return String(typeof r<"u"&&r?P:pe&&null==r?pe:_e)}},9076:($e,X)=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.comment=void 0,X.comment=function M({args:[r]}){return""}},9483:($e,X,M)=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.local_datetime=X.datetime=X.dateToLocalDayNum=void 0;const r=M(5074),P=function(j){const z=j.getUTCDay()-1;return z<0?6:z},_e=[7,1,2,3,4,5,6];function pe(j,z){return(_e[j.getUTCDay()]+7-z)%7+1}X.dateToLocalDayNum=pe;const re=function(j,z,fe){let ge="",Ve=0;return z=z||0,fe=String(void 0===fe?" ":fe),Ve=z-String(j).length,Ve>0&&(ge=[...Array(Ve)].map(String.prototype.valueOf,fe).join("")),ge+j};function J({cldr:j,args:[z=new Date,fe],tzString:ge="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(!(j instanceof r.CLDR))throw new Error("The datetime function requires a valid CLDR instance for the `cldr` parameter.");const Ve=j.getDateTimeInfo();return"string"==typeof fe&&/^(?:date|time|datetime|special)_format_/.test(fe)&&(fe=Ve[fe]),fe||(fe=Ve.date_format_long),fe.replace(/('[^']+')|(([a-zA-Z])\3*)/g,function(Ie,Be,ut){return Be?function ce(j){return j.substr(1,j.length-2)}(Be):function W(j,z,fe,ge){switch(fe){case"yy":return Math.abs(j.getUTCFullYear()).toString().slice(-2);case"y":case"yyy":case"yyyy":return String(Math.abs(j.getUTCFullYear()));case"MMMMM":return z.month_format_narrow[j.getUTCMonth()];case"LLLLL":return z.month_stand_alone_narrow[j.getUTCMonth()];case"MMMM":return z.month_format_wide[j.getUTCMonth()];case"LLLL":return z.month_stand_alone_wide[j.getUTCMonth()];case"MMM":return z.month_format_abbreviated[j.getUTCMonth()];case"LLL":return z.month_stand_alone_abbreviated[j.getUTCMonth()];case"MM":case"LL":return re((j.getUTCMonth()+1).toString(),2,"0");case"M":case"L":return String(j.getUTCMonth()+1);case"EEEE":return z.day_format_wide[P(j)];case"EEE":case"EE":case"E":return z.day_format_abbreviated[P(j)];case"EEEEE":return z.day_format_narrow[P(j)];case"cccc":return z.day_stand_alone_wide[P(j)];case"ccc":return z.day_stand_alone_abbreviated[P(j)];case"cc":case"c":return String(pe(j,Number(z.first_day_of_week)));case"ccccc":return z.day_stand_alone_narrow[P(j)];case"dd":return re(j.getUTCDate().toString(),2,"0");case"d":return String(j.getUTCDate());case"h":case"hh":{let Ve=j.getUTCHours();Ve>12&&(Ve-=12),0===Ve&&(Ve=12);const Ie="hh"===fe?re(Ve.toString(),2,"0"):Ve;return String(Ie)}case"H":return String(j.getUTCHours());case"HH":return re(j.getUTCHours().toString(),2,"0");case"m":return String(j.getUTCMinutes());case"mm":return re(j.getUTCMinutes().toString(),2,"0");case"s":return String(j.getUTCSeconds());case"ss":return re(j.getUTCSeconds().toString(),2,"0");case"a":return j.getUTCHours()<12?z.am_pm_abbreviated[0]:z.am_pm_abbreviated[1];case"z":case"zzzz":case"v":case"vvvv":return ge;case"G":case"GG":case"GGG":return z.era_abbreviated[j.getUTCFullYear()<0?0:1];case"GGGGG":return z.era_narrow[j.getUTCFullYear()<0?0:1];case"GGGG":return z.era_wide[j.getUTCFullYear()<0?0:1]}return fe}(z,Ve,ut,ge)})}X.datetime=J,X.local_datetime=function Y({cldr:j,args:[z=new Date,fe]}){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(!(j instanceof r.CLDR))throw new Error("The datetime function requires a valid CLDR instance for the `cldr` parameter.");const ge=z.getTimezoneOffset();(z=new Date(z)).setMinutes(z.getMinutes()-ge);const Ve=ge>0?"-":"+",Ie=Math.floor(Math.abs(ge)/60),Be=Math.abs(ge%60);return J({cldr:j,args:[z,fe],tzString:"GMT"+Ve+re(Ie.toString(),2,"0")+re(Be.toString(),2,"0")})}},40:($e,X,M)=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.functions=void 0;const r=M(7296),P=M(5247),_e=M(9076),pe=M(527),re=M(741),J=M(9483),ce=M(786);X.functions={asis:r.asis,output:P.output,comment:_e.comment,boolean:pe.boolean,numf:re.numf,numerate:re.numerate,quant:re.quant,format_bytes:re.format_bytes,datetime:J.datetime,local_datetime:J.local_datetime,list_and:ce.list_and,list_or:ce.list_or,list_or_quoted:ce.list_or_quoted,list_and_quoted:ce.list_and_quoted}},786:($e,X)=>{"use strict";function r(ce,W,...Y){let j=Y.slice();switch(1===j.length&&Array.isArray(j[0])&&(j=j[0].slice()),(typeof j>"u"||0===j.length)&&(j=[""]),j=j.map(z=>function M(ce,W){const Y=ce.getDelimiters();return Y&&Object.prototype.hasOwnProperty.call(Y,"quotation_start")&&Object.prototype.hasOwnProperty.call(Y,"quotation_end")?Y.quotation_start+W+Y.quotation_end:W}(ce,z)),W){case"list_and":return re({cldr:ce,args:j});case"list_or":return J({cldr:ce,args:j});default:throw new Error("Did you mean list_and_quoted or list_or_quoted?")}}function pe(ce,W,...Y){let j=Y.slice();1===j.length&&Array.isArray(j[0])&&(j=j[0].slice());const z=j.length;let fe,ge,Ve,Ie;try{fe=ce.getFormats()[W]}catch{throw new Error("CLDR Data is missing information related to formatting list.")}const Be=function(ut,st){switch(st){case"0":return Ve;case"1":return j[Ie++]}};switch(z){case 0:return"";case 1:return String(j[0]);default:if(Ve=2===z?fe[2]:fe.start,Ve=Ve.replace(/\{([01])\}/g,function(ut,st){return j[st]}),2===z)return Ve;for(Ie=2;Ie<z;)ge=fe[Ie===z-1?"end":"middle"],Ve=ge.replace(/\{([01])\}/g,Be);return Ve}}function re({cldr:ce,args:[...W]}){return pe(ce,"list",...W)}function J({cldr:ce,args:[...W]}){return pe(ce,"list_or",...W)}Object.defineProperty(X,"__esModule",{value:!0}),X.list_or=X.list_and=X.list_or_quoted=X.list_and_quoted=void 0,X.list_and_quoted=function P({cldr:ce,args:[...W]}){return r(ce,"list_and",...W)},X.list_or_quoted=function _e({cldr:ce,args:[...W]}){return r(ce,"list_or",...W)},X.list_and=re,X.list_or=J},5247:($e,X,M)=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.functions=X.output=void 0;const r=M(7906),P=M(8533);X.output=function _e({args:[pe,...re]}){if(re&&"string"==typeof re[0]&&(re[0]=re[0].replace(/chr\((\d+)\)/g,function(J,ce){return X.functions.chr(Number(ce))}),re[0]=re[0].replace(/amp\(\)/g,function(J){return X.functions.amp()})),"function"==typeof X.functions[pe])return X.functions[pe](...re);throw new Error(`Locale output function '${pe}' is not implemented.`)},X.functions={amp:()=>r.htmlEscape("&"),apos:()=>r.htmlEscape("'"),quot:()=>r.htmlEscape('"'),underline:pe=>`<u>${pe}</u>`,strong:pe=>`<strong>${pe}</strong>`,em:pe=>`<em>${pe}</em>`,abbr:(pe,re)=>`<abbr title="${re}">${pe}</abbr>`,acronym:(pe,re)=>`<abbr title="${re}" class="initialism">${pe}</abbr>`,class:(pe,...re)=>`<span class="${re.join(" ")}">${pe}</span>`,chr(pe){if("string"==typeof pe&&(pe=Number(pe)),"number"!=typeof pe||isNaN(pe))throw new Error("chr needs a number as argument");return r.htmlEscape(String.fromCharCode(pe))},url(pe,...re){let J,ce;if("object"==typeof re[re.length-1])if(J=re[re.length-1],2===re.length){if(J.html)throw new Error("Cannot provide both text and configuration with html attribute");ce=re[0]}else J&&J.html?(ce=J.html,delete J.html):ce=pe;else re.length%2==0?(J=P.listToObject(...re),J&&"html"in J&&""!==J.html?(ce=J.html,delete J.html):ce=pe):(ce=re.shift(),J=P.listToObject(...re));"_type"in J&&"offsite"===J._type&&(J.class="offsite",J.target="_blank",delete J._type);let W=`<a href="${pe}"`;if("object"==typeof J)for(const Y in J)Object.prototype.hasOwnProperty.call(J,Y)&&(W+=` ${Y}="${J[Y]}"`);return W+=`>${ce}</a>`,W}}},741:($e,X,M)=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.format_bytes=X.numf=X.quant=X.numerate=void 0;const r=M(5074);function _e({cldr:ce,args:[W,...Y]}){if(!(ce instanceof r.CLDR))throw new Error("`quant` function requires a valid CLDR instance for the `cldr` parameter.");let j,z=3;W instanceof Array?(z=W[1],j=W[0]):j=W;const fe=ce.getPluralForm(j,...Y),ge=fe[0]?fe[0]:Y[Y.length-1];if(fe&&fe.length>=2&&fe[1])return ge;const Ie=re({cldr:ce,args:[j,z]});return-1!==ge.indexOf("%s")?ge.replace(/%s/g,Ie):ce.isRtl()?ge+" "+Ie:Ie+" "+ge}function re({cldr:ce,args:[W,Y=6]}){if(!(ce instanceof r.CLDR))throw new Error("`numf` function requires a valid CLDR instance for the `cldr` parameter.");if(/e/.test(W.toString()))return String(W);const{decimalFormat:j,decimalGroup:z,decimalDecimal:fe}=function pe(ce){const W={},Y=ce.getFormats();return Object.prototype.hasOwnProperty.call(Y,"decimal")&&(W.decimalFormat=Y.decimal),Object.prototype.hasOwnProperty.call(Y,"_decimal_format_group")&&(W.decimalGroup=Y._decimal_format_group),Object.prototype.hasOwnProperty.call(Y,"_decimal_format_decimal")&&(W.decimalDecimal=Y._decimal_format_decimal),W}(ce);if(!j||!z||!fe)throw new Error("CLDR Data is missing information related to formatting decimals.");const ge=W<0;W=Math.abs(W);let Ie,Be,Ve=Math.floor(W);/(?!')\.(?!')/.test(W.toString())&&(Ie=String(W).replace(/^[^.]+/,"0"),Ie=Number(Ie).toFixed(Y),/^1/.test(Ie)?(Ve++,W=Ve,Ie=void 0):Ie=Ie.replace(/^.*\./,"").replace(/0+$/,"")),Be=/(?!');(?!')/.test(j)?j.split(/(?!');(?!')/)[ge?1:0]:(ge?"-":"")+j;const dt=Be.match(/[0#].*[0#]/)[0].split(/(?!')\.(?!')/)[0].split("").reverse().join("").split(/(?!'),(?!')/);let _t;1===dt.length?_t="":(dt.pop(),_t=z);const Pt=String(Ve).split("").reverse(),Tt=[];let an;const Et=function(nn){switch(nn){case"#":return Pt.shift()||"";case"0":return Pt.shift()||"0"}};for(;Pt.length;){dt.length&&(an=dt.shift());const nn=an.replace(/(?!')[0#]|[0#](?!')/g,Et).replace(/'([.,0#;\xa4%E])'$/,"").replace(/'([.,0#;\xa4%E])'/,"$1");Tt.push(nn)}const _n=Tt.join(_t).split("").reverse().join("")+(Ie?fe+Ie:"");return Be.replace(/[0#].*[0#]/,_n)}X.numerate=function P({cldr:ce,args:[W,...Y]}){if(!(ce instanceof r.CLDR))throw new Error("`numerate` function requires a valid CLDR instance for the `cldr` parameter.");const j=ce.getPluralForm(W,...Y);return j?j[0]:Y[Y.length-1]},X.quant=_e,X.numf=re,X.format_bytes=function J({cldr:ce,args:[W,Y=2]}){if(!(ce instanceof r.CLDR))throw new Error("`format_bytes` function requires a valid CLDR instance for the `cldr` parameter.");const j=["KB","MB","GB","TB","PB","EB","ZB","YB"],fe=W&&Math.min(Math.floor(Math.log(W)/Math.log(1024)),j.length);return fe?re({cldr:ce,args:[W/Math.pow(1024,fe),Y]})+"\xa0"+j[fe-1]:_e({cldr:ce,args:[W,"%s\xa0byte","%s\xa0bytes"]})}},2889:($e,X,M)=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.maketext=X.functions=X.config=void 0;const r=M(40);function re(J,ce){const W=[];let Y=!1,j=!1;return J.forEach((z,fe)=>{if("_"===z.charAt(0))if("_*"===z){if(j)throw"You cannot combine wildcard substitution (_*) with a numeric substitution (e.g. _1) in the same bracket.";W.push(...ce),Y=!0}else{const ge=z.match(X.config.underscoreDigitRe);if(ge){if(Y)throw"You cannot combine wildcard substitution (_*) with a numeric substitution (e.g. _1) in the same bracket.";const[Ve,Ie]=ge,Be=Number(Ie)-1;if(!(Be in ce))throw`The "${Ve}" substitution argument was not passed to the maketext function.`;W.push(ce[Be]),j=!0}}else W.push(z)}),W}X.config={bracketRe:/([^~\[\]]+|~.|\[|\]|~)/g,underscoreDigitRe:/^_(\d+)$/,fauxComma:"\x07",fauxCommaRe:new RegExp("\x07","g"),tildeChars:new Set(["[","]","~"])},X.functions={...r.functions},X.maketext=function _e({cldr:J,lexicon:ce,template:W,args:Y}){if("string"!=typeof W)throw"You must pass a string template to the maketext function.";if(-1===(W=ce&&ce[W]||W).indexOf("["))return W;const j=W.match(X.config.bracketRe)||[],z=[];let fe=!1,ge="";if(j.forEach(Ve=>{if("["===Ve){if(fe)throw Error(`Invalid maketext string: ${W} \nThe string contains nested brackets.`);fe=!0}else if("]"===Ve){if(!fe)throw Error(`Invalid maketext string: ${W} \nThe string contains an unmatched closing bracket character (]).`);if(!ge)throw Error(`Invalid maketext string: ${W} \nThe string contains empty brackets. Use the escape character (~) if the bracket characters were meant to be printed literally.`);let Ie;fe=!1;try{Ie=function pe(J,ce,W){let Y=ce.split(",");if(Y=Y.map(fe=>fe.replace(X.config.fauxCommaRe,",")),1===Y.length){if(!X.config.underscoreDigitRe.test(Y[0]))throw"A bracket must contain more than one argument, unless it is a pure substition.\n Example: Number of accounts: [_1]";const[fe]=re(Y,W);return String(fe)}const j=Y.shift();if(!j||"function"!=typeof X.functions[j])throw`Invalid function "${j}" in maketext string.`;const z=re(Y,W);return X.functions[j]({cldr:J,args:z})}(J,ge,Y)}catch(Be){throw Error(`Invalid maketext string: ${W} \n${Be}`)}ge="",z.push(Ie)}else if("~"===Ve.charAt(0)){const Ie=Ve.charAt(1)||"~";fe?ge+=","===Ie?X.config.fauxComma:Ie:X.config.tildeChars.has(Ie)?z.push(Ie):z.push(Ve)}else fe?ge+=Ve:z.push(Ve)}),fe)throw Error(`Invalid maketext string: ${W} \nThe string contains an unmatched opening bracket character ([).`);return z.join("")}},7906:($e,X)=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.htmlEscape=X.entityMap=void 0,X.entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},X.htmlEscape=function M(r){return String(r).replace(/[&<>"'\/]/g,P=>X.entityMap[P])}},8533:($e,X)=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.listToObject=void 0,X.listToObject=function P(..._e){let pe={};return function M(_e){if(_e.length%2>0)throw new Error("An associative list must have an even number of parts: {name1}, {value1}, {name2}, {value2} ...");for(let re=0,J=_e.length;re<J;re+=2){const ce=_e[re];if("string"!=typeof ce||""===ce)throw new Error("An associative list must provide non-empty string names in the 1st, 3rd, ... positions.")}return!0}(_e)&&(pe=function r(_e){const pe=_e.length,re={};let ce,W,J=0;for(;J<pe;)ce=_e[J],W=_e[++J],re[ce]=W,J++;return re}(_e)),pe}},3647:($e,X,M)=>{"use strict";M.d(X,{vq:()=>Te,UC:()=>mt,tk:()=>ye,nE:()=>Cn,xD:()=>wr});var r=M(3071),P=M(6895),_e=M(5529),pe=M(5279);class re extends _e.xQ{constructor(B){super(),this._value=B}get value(){return this.getValue()}_subscribe(B){const c=super._subscribe(B);return c&&!c.closed&&B.next(this._value),c}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new pe.N;return this._value}next(B){super.next(this._value=B)}}var J=M(3753),ce=M(7625),W=M(655);const Y=["*"];function j(b,B){1&b&&r._UZ(0,"datatable-progress")}function z(b,B){if(1&b&&r._UZ(0,"datatable-summary-row",9),2&b){const c=r.oxw(2);r.Q6J("rowHeight",c.summaryHeight)("offsetX",c.offsetX)("innerWidth",c.innerWidth)("rows",c.rows)("columns",c.columns)}}function fe(b,B){if(1&b){const c=r.EpF();r.TgZ(0,"datatable-body-row",13),r.NdJ("treeAction",function(){r.CHM(c);const O=r.oxw().$implicit;return r.oxw(2).onTreeAction(O)})("activate",function(O){r.CHM(c);const H=r.oxw().index,Le=r.oxw(2);return r.MAs(2).onActivate(O,Le.indexes.first+H)}),r.qZA()}if(2&b){const c=r.oxw().$implicit,p=r.oxw(2),O=r.MAs(2);r.Q6J("isSelected",O.getRowSelected(c))("innerWidth",p.innerWidth)("offsetX",p.offsetX)("columns",p.columns)("rowHeight",p.getRowHeight(c))("row",c)("rowIndex",p.getRowIndex(c))("expanded",p.getRowExpanded(c))("rowClass",p.rowClass)("displayCheck",p.displayCheck)("treeStatus",c&&c.treeStatus)}}function ge(b,B){if(1&b){const c=r.EpF();r.TgZ(0,"datatable-body-row",15),r.NdJ("activate",function(O){const Le=r.CHM(c).index;return r.oxw(4),r.MAs(2).onActivate(O,Le)}),r.qZA()}if(2&b){const c=B.$implicit,p=r.oxw(2).$implicit,O=r.oxw(2),H=r.MAs(2);r.Q6J("isSelected",H.getRowSelected(c))("innerWidth",O.innerWidth)("offsetX",O.offsetX)("columns",O.columns)("rowHeight",O.getRowHeight(c))("row",c)("group",p.value)("rowIndex",O.getRowIndex(c))("expanded",O.getRowExpanded(c))("rowClass",O.rowClass)}}function Ve(b,B){if(1&b&&r.YNc(0,ge,1,10,"datatable-body-row",14),2&b){const c=r.oxw().$implicit,p=r.oxw(2);r.Q6J("ngForOf",c.value)("ngForTrackBy",p.rowTrackingFn)}}function Ie(b,B){if(1&b){const c=r.EpF();r.TgZ(0,"datatable-row-wrapper",10),r.NdJ("rowContextmenu",function(O){return r.CHM(c),r.oxw(2).rowContextmenu.emit(O)}),r.YNc(1,fe,1,11,"datatable-body-row",11),r.YNc(2,Ve,1,2,"ng-template",null,12,r.W1O),r.qZA()}if(2&b){const c=B.$implicit,p=B.index,O=r.MAs(3),H=r.oxw(2);r.Q6J("groupedRows",H.groupedRows)("innerWidth",H.innerWidth)("ngStyle",H.getRowsStyles(c))("rowDetail",H.rowDetail)("groupHeader",H.groupHeader)("offsetX",H.offsetX)("detailRowHeight",H.getDetailRowHeight(c&&c[p],p))("row",c)("expanded",H.getRowExpanded(c))("rowIndex",H.getRowIndex(c&&c[p])),r.xp6(1),r.Q6J("ngIf",!H.groupedRows)("ngIfElse",O)}}function Be(b,B){if(1&b&&r._UZ(0,"datatable-summary-row",16),2&b){const c=r.oxw(2);r.Q6J("ngStyle",c.getBottomSummaryRowStyles())("rowHeight",c.summaryHeight)("offsetX",c.offsetX)("innerWidth",c.innerWidth)("rows",c.rows)("columns",c.columns)}}function ut(b,B){if(1&b){const c=r.EpF();r.TgZ(0,"datatable-scroller",5),r.NdJ("scroll",function(O){return r.CHM(c),r.oxw().onBodyScroll(O)}),r.YNc(1,z,1,5,"datatable-summary-row",6),r.YNc(2,Ie,4,12,"datatable-row-wrapper",7),r.YNc(3,Be,1,6,"datatable-summary-row",8),r.qZA()}if(2&b){const c=r.oxw();r.Q6J("scrollbarV",c.scrollbarV)("scrollbarH",c.scrollbarH)("scrollHeight",c.scrollHeight)("scrollWidth",null==c.columnGroupWidths?null:c.columnGroupWidths.total),r.xp6(1),r.Q6J("ngIf",c.summaryRow&&"top"===c.summaryPosition),r.xp6(1),r.Q6J("ngForOf",c.temp)("ngForTrackBy",c.rowTrackingFn),r.xp6(1),r.Q6J("ngIf",c.summaryRow&&"bottom"===c.summaryPosition)}}function st(b,B){if(1&b&&r._UZ(0,"div",17),2&b){const c=r.oxw();r.Q6J("innerHTML",c.emptyMessage,r.oJD)}}function dt(b,B){if(1&b){const c=r.EpF();r.TgZ(0,"datatable-header-cell",4),r.NdJ("resize",function(O){const Le=r.CHM(c).$implicit;return r.oxw(2).onColumnResized(O,Le)})("longPressStart",function(O){return r.CHM(c),r.oxw(2).onLongPressStart(O)})("longPressEnd",function(O){return r.CHM(c),r.oxw(2).onLongPressEnd(O)})("sort",function(O){return r.CHM(c),r.oxw(2).onSort(O)})("select",function(O){return r.CHM(c),r.oxw(2).select.emit(O)})("columnContextmenu",function(O){return r.CHM(c),r.oxw(2).columnContextmenu.emit(O)}),r.qZA()}if(2&b){const c=B.$implicit,p=r.oxw(2);r.Q6J("resizeEnabled",c.resizeable)("pressModel",c)("pressEnabled",p.reorderable&&c.draggable)("dragX",p.reorderable&&c.draggable&&c.dragging)("dragY",!1)("dragModel",c)("dragEventTarget",p.dragEventTarget)("headerHeight",p.headerHeight)("isTarget",c.isTarget)("targetMarkerTemplate",p.targetMarkerTemplate)("targetMarkerContext",c.targetMarkerContext)("column",c)("sortType",p.sortType)("sorts",p.sorts)("selectionType",p.selectionType)("sortAscendingIcon",p.sortAscendingIcon)("sortDescendingIcon",p.sortDescendingIcon)("sortUnsetIcon",p.sortUnsetIcon)("allRowsSelected",p.allRowsSelected)}}function _t(b,B){if(1&b&&(r.TgZ(0,"div",2),r.YNc(1,dt,1,19,"datatable-header-cell",3),r.qZA()),2&b){const c=B.$implicit,p=r.oxw();r.Tol("datatable-row-"+c.type),r.Q6J("ngStyle",p._styleByGroup[c.type]),r.xp6(1),r.Q6J("ngForOf",c.columns)("ngForTrackBy",p.columnTrackingFn)}}function Pt(b,B){if(1&b){const c=r.EpF();r.TgZ(0,"datatable-header",4),r.NdJ("sort",function(O){return r.CHM(c),r.oxw().onColumnSort(O)})("resize",function(O){return r.CHM(c),r.oxw().onColumnResize(O)})("reorder",function(O){return r.CHM(c),r.oxw().onColumnReorder(O)})("select",function(O){return r.CHM(c),r.oxw().onHeaderSelect(O)})("columnContextmenu",function(O){return r.CHM(c),r.oxw().onColumnContextmenu(O)}),r.ALo(1,"async"),r.qZA()}if(2&b){const c=r.oxw();r.Q6J("sorts",c.sorts)("sortType",c.sortType)("scrollbarH",c.scrollbarH)("innerWidth",c._innerWidth)("offsetX",r.lcZ(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 Tt(b,B){if(1&b){const c=r.EpF();r.TgZ(0,"datatable-footer",5),r.NdJ("page",function(O){return r.CHM(c),r.oxw().onFooterPage(O)}),r.qZA()}if(2&b){const c=r.oxw();r.Q6J("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)}}function an(b,B){}function Et(b,B){if(1&b&&r.YNc(0,an,0,0,"ng-template",5),2&b){const c=r.oxw();r.Q6J("ngTemplateOutlet",c.targetMarkerTemplate)("ngTemplateOutletContext",c.targetMarkerContext)}}function _n(b,B){if(1&b){const c=r.EpF();r.TgZ(0,"label",6)(1,"input",7),r.NdJ("change",function(){r.CHM(c);const O=r.oxw();return O.select.emit(!O.allRowsSelected)}),r.qZA()()}if(2&b){const c=r.oxw();r.xp6(1),r.Q6J("checked",c.allRowsSelected)}}function nn(b,B){if(1&b){const c=r.EpF();r.TgZ(0,"span",8)(1,"span",9),r.NdJ("click",function(){return r.CHM(c),r.oxw().onSort()}),r.qZA()()}if(2&b){const c=r.oxw();r.xp6(1),r.Q6J("innerHTML",c.name,r.oJD)}}function te(b,B){}function V(b,B){if(1&b&&r.YNc(0,te,0,0,"ng-template",5),2&b){const c=r.oxw();r.Q6J("ngTemplateOutlet",c.column.headerTemplate)("ngTemplateOutletContext",c.cellContext)}}function K(b,B){}const ie=function(b,B,c,p,O){return{rowCount:b,pageSize:B,selectedCount:c,curPage:p,offset:O}};function be(b,B){if(1&b&&r.YNc(0,K,0,0,"ng-template",4),2&b){const c=r.oxw();r.Q6J("ngTemplateOutlet",c.footerTemplate.template)("ngTemplateOutletContext",r.qbA(2,ie,c.rowCount,c.pageSize,c.selectedCount,c.curPage,c.offset))}}function se(b,B){if(1&b&&(r.TgZ(0,"span"),r._uU(1),r.qZA()),2&b){const c=r.oxw(2);r.xp6(1),r.AsE(" ",null==c.selectedCount?null:c.selectedCount.toLocaleString()," ",c.selectedMessage," / ")}}function tt(b,B){if(1&b&&(r.TgZ(0,"div",5),r.YNc(1,se,2,2,"span",1),r._uU(2),r.qZA()),2&b){const c=r.oxw();r.xp6(1),r.Q6J("ngIf",c.selectedMessage),r.xp6(1),r.AsE(" ",null==c.rowCount?null:c.rowCount.toLocaleString()," ",c.totalMessage," ")}}function ct(b,B){if(1&b){const c=r.EpF();r.TgZ(0,"datatable-pager",6),r.NdJ("change",function(O){return r.CHM(c),r.oxw().page.emit(O)}),r.qZA()}if(2&b){const c=r.oxw();r.Q6J("pagerLeftArrowIcon",c.pagerLeftArrowIcon)("pagerRightArrowIcon",c.pagerRightArrowIcon)("pagerPreviousIcon",c.pagerPreviousIcon)("pagerNextIcon",c.pagerNextIcon)("page",c.curPage)("size",c.pageSize)("count",c.rowCount)("hidden",!c.isVisible)}}const Rt=function(b){return{"selected-count":b}};function It(b,B){if(1&b){const c=r.EpF();r.TgZ(0,"li",6)(1,"a",7),r.NdJ("click",function(){const H=r.CHM(c).$implicit;return r.oxw().selectPage(H.number)}),r._uU(2),r.qZA()()}if(2&b){const c=B.$implicit,p=r.oxw();r.ekj("active",c.number===p.page),r.uIk("aria-label","page "+c.number),r.xp6(2),r.hij(" ",c.text," ")}}function In(b,B){if(1&b){const c=r.EpF();r.TgZ(0,"datatable-body-cell",3),r.NdJ("activate",function(O){const Le=r.CHM(c).index;return r.oxw(2).onActivate(O,Le)})("treeAction",function(){return r.CHM(c),r.oxw(2).onTreeAction()}),r.qZA()}if(2&b){const c=B.$implicit,p=r.oxw(2);r.Q6J("row",p.row)("group",p.group)("expanded",p.expanded)("isSelected",p.isSelected)("rowIndex",p.rowIndex)("column",c)("rowHeight",p.rowHeight)("displayCheck",p.displayCheck)("treeStatus",p.treeStatus)}}function Yn(b,B){if(1&b&&(r.TgZ(0,"div",1),r.YNc(1,In,1,9,"datatable-body-cell",2),r.qZA()),2&b){const c=B.$implicit,p=r.oxw();r.Gre("datatable-row-",c.type," datatable-row-group"),r.Q6J("ngStyle",p._groupStyles[c.type]),r.xp6(1),r.Q6J("ngForOf",c.columns)("ngForTrackBy",p.columnTrackingFn)}}function Kt(b,B){}function Xn(b,B){if(1&b&&r.YNc(0,Kt,0,0,"ng-template",4),2&b){const c=r.oxw(2);r.Q6J("ngTemplateOutlet",c.groupHeader.template)("ngTemplateOutletContext",c.groupContext)}}function En(b,B){if(1&b&&(r.TgZ(0,"div",3),r.YNc(1,Xn,1,2,null,1),r.qZA()),2&b){const c=r.oxw();r.Q6J("ngStyle",c.getGroupHeaderStyle()),r.xp6(1),r.Q6J("ngIf",c.groupHeader&&c.groupHeader.template)}}function Vn(b,B){1&b&&r.Hsn(0,0,["*ngIf","(groupHeader && groupHeader.template && expanded) || !groupHeader || !groupHeader.template"])}function Rn(b,B){}function yn(b,B){if(1&b&&r.YNc(0,Rn,0,0,"ng-template",4),2&b){const c=r.oxw(2);r.Q6J("ngTemplateOutlet",c.rowDetail.template)("ngTemplateOutletContext",c.rowContext)}}function Ln(b,B){if(1&b&&(r.TgZ(0,"div",5),r.YNc(1,yn,1,2,null,1),r.qZA()),2&b){const c=r.oxw();r.Udp("height",c.detailRowHeight,"px"),r.xp6(1),r.Q6J("ngIf",c.rowDetail&&c.rowDetail.template)}}const Di=["cellTemplate"];function ii(b,B){if(1&b){const c=r.EpF();r.TgZ(0,"label",4)(1,"input",5),r.NdJ("click",function(O){return r.CHM(c),r.oxw().onCheckboxChange(O)}),r.qZA()()}if(2&b){const c=r.oxw();r.xp6(1),r.Q6J("checked",c.isSelected)}}function Tn(b,B){1&b&&r._UZ(0,"i",11)}function Zt(b,B){1&b&&r._UZ(0,"i",12)}function hi(b,B){1&b&&r._UZ(0,"i",13)}function fi(b,B){if(1&b){const c=r.EpF();r.TgZ(0,"button",7),r.NdJ("click",function(){return r.CHM(c),r.oxw(2).onTreeAction()}),r.TgZ(1,"span"),r.YNc(2,Tn,1,0,"i",8),r.YNc(3,Zt,1,0,"i",9),r.YNc(4,hi,1,0,"i",10),r.qZA()()}if(2&b){const c=r.oxw(2);r.Q6J("disabled","disabled"===c.treeStatus),r.xp6(2),r.Q6J("ngIf","loading"===c.treeStatus),r.xp6(1),r.Q6J("ngIf","collapsed"===c.treeStatus),r.xp6(1),r.Q6J("ngIf","expanded"===c.treeStatus||"disabled"===c.treeStatus)}}function Sn(b,B){}const ln=function(b){return{cellContext:b}};function Ni(b,B){if(1&b&&r.YNc(0,Sn,0,0,"ng-template",14),2&b){const c=r.oxw(2);r.Q6J("ngTemplateOutlet",c.column.treeToggleTemplate)("ngTemplateOutletContext",r.VKq(2,ln,c.cellContext))}}function qt(b,B){if(1&b&&(r.ynx(0),r.YNc(1,fi,5,4,"button",6),r.YNc(2,Ni,1,4,null,2),r.BQk()),2&b){const c=r.oxw();r.xp6(1),r.Q6J("ngIf",!c.column.treeToggleTemplate),r.xp6(1),r.Q6J("ngIf",c.column.treeToggleTemplate)}}function ri(b,B){if(1&b&&r._UZ(0,"span",15),2&b){const c=r.oxw();r.Q6J("title",c.sanitizedValue)("innerHTML",c.value,r.oJD)}}function oi(b,B){}function vi(b,B){if(1&b&&r.YNc(0,oi,0,0,"ng-template",14,16,r.W1O),2&b){const c=r.oxw();r.Q6J("ngTemplateOutlet",c.column.cellTemplate)("ngTemplateOutletContext",c.cellContext)}}function li(b,B){if(1&b&&r._UZ(0,"datatable-body-row",1),2&b){const c=r.oxw();r.Q6J("innerWidth",c.innerWidth)("offsetX",c.offsetX)("columns",c._internalColumns)("rowHeight",c.rowHeight)("row",c.summaryRow)("rowIndex",-1)}}let Ue=(()=>{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 p=c.offsetWidth;c.style.overflow="scroll";const O=this.document.createElement("div");O.style.width="100%",c.appendChild(O);const H=O.offsetWidth;return c.parentNode.removeChild(c),p-H}}return b.\u0275fac=function(c){return new(c||b)(r.LFG(P.K0))},b.\u0275prov=r.Yz7({token:b,factory:b.\u0275fac}),b})(),ue=(()=>{class b{getDimensions(c){return c.getBoundingClientRect()}}return b.\u0275fac=function(c){return new(c||b)},b.\u0275prov=r.Yz7({token:b,factory:b.\u0275fac}),b})(),he=(()=>{class b{constructor(){this.columnInputChanges=new _e.xQ}get columnInputChanges$(){return this.columnInputChanges.asObservable()}onInputChange(){this.columnInputChanges.next()}}return b.\u0275fac=function(c){return new(c||b)},b.\u0275prov=r.Yz7({token:b,factory:b.\u0275fac}),b})(),ze=(()=>{class b{constructor(c){this.template=c}}return b.\u0275fac=function(c){return new(c||b)(r.Y36(r.Rgc))},b.\u0275dir=r.lG2({type:b,selectors:[["","ngx-datatable-footer-template",""]]}),b})(),Ae=(()=>{class b{constructor(c,p){this.element=c,this.zone=p,this.isVisible=!1,this.visible=new r.vpe}ngOnInit(){this.runCheck()}ngOnDestroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const c=()=>{const{offsetHeight:p,offsetWidth:O}=this.element.nativeElement;p&&O?(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)(r.Y36(r.SBq),r.Y36(r.R0b))},b.\u0275dir=r.lG2({type:b,selectors:[["","visibilityObserver",""]],hostVars:2,hostBindings:function(c,p){2&c&&r.ekj("visible",p.isVisible)},outputs:{visible:"visible"}}),b})(),ke=(()=>{class b{constructor(c){this.dragX=!0,this.dragY=!0,this.dragStart=new r.vpe,this.dragging=new r.vpe,this.dragEnd=new r.vpe,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 O={x:c.clientX,y:c.clientY},H=(0,J.R)(document,"mouseup");this.subscription=H.subscribe(Xe=>this.onMouseup(Xe));const Le=(0,J.R)(document,"mousemove").pipe((0,ce.R)(H)).subscribe(Xe=>this.move(Xe,O));this.subscription.add(Le),this.dragStart.emit({event:c,element:this.element,model:this.dragModel})}}move(c,p){if(!this.isDragging)return;const H=c.clientY-p.y;this.dragX&&(this.element.style.left=c.clientX-p.x+"px"),this.dragY&&(this.element.style.top=`${H}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)(r.Y36(r.SBq))},b.\u0275dir=r.lG2({type:b,selectors:[["","draggable",""]],inputs:{dragX:"dragX",dragY:"dragY",dragEventTarget:"dragEventTarget",dragModel:"dragModel"},outputs:{dragStart:"dragStart",dragging:"dragging",dragEnd:"dragEnd"},features:[r.TTD]}),b})(),Xt=(()=>{class b{constructor(c,p){this.renderer=p,this.resizeEnabled=!0,this.resize=new r.vpe,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 p=c.target.classList.contains("resize-handle"),O=this.element.clientWidth,H=c.screenX;if(p){c.stopPropagation(),this.resizing=!0;const Le=(0,J.R)(document,"mouseup");this.subscription=Le.subscribe(lt=>this.onMouseup());const Xe=(0,J.R)(document,"mousemove").pipe((0,ce.R)(Le)).subscribe(lt=>this.move(lt,O,H));this.subscription.add(Xe)}}move(c,p,O){const Le=p+(c.screenX-O);(!this.minWidth||Le>=this.minWidth)&&(!this.maxWidth||Le<=this.maxWidth)&&(this.element.style.width=`${Le}px`)}_destroySubscription(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)}}return b.\u0275fac=function(c){return new(c||b)(r.Y36(r.SBq),r.Y36(r.Qsj))},b.\u0275dir=r.lG2({type:b,selectors:[["","resizeable",""]],hostVars:2,hostBindings:function(c,p){1&c&&r.NdJ("mousedown",function(H){return p.onMousedown(H)}),2&c&&r.ekj("resizeable",p.resizeEnabled)},inputs:{resizeEnabled:"resizeEnabled",minWidth:"minWidth",maxWidth:"maxWidth"},outputs:{resize:"resize"}}),b})(),pn=(()=>{class b{constructor(c,p){this.document=p,this.reorder=new r.vpe,this.targetChanged=new r.vpe,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 p=({currentValue:H,previousValue:Le})=>{O({previousValue:Le}),H&&(H.dragStart.subscribe(this.onDragStart.bind(this)),H.dragging.subscribe(this.onDragging.bind(this)),H.dragEnd.subscribe(this.onDragEnd.bind(this)))},O=({previousValue:H})=>{H&&(H.dragStart.unsubscribe(),H.dragging.unsubscribe(),H.dragEnd.unsubscribe())};c.forEachAddedItem(p),c.forEachRemovedItem(O)}}onDragStart(){this.positions={};let c=0;for(const p of this.draggables.toArray()){const O=p.element,H=parseInt(O.offsetLeft.toString(),0);this.positions[p.dragModel.prop]={left:H,right:H+parseInt(O.offsetWidth.toString(),0),index:c++,element:O}}}onDragging({model:p,event:O}){const H=this.positions[p.prop],Le=this.isTarget(p,O);Le?this.lastDraggingIndex!==Le.i&&(this.targetChanged.emit({prevIndex:this.lastDraggingIndex,newIndex:Le.i,initialIndex:H.index}),this.lastDraggingIndex=Le.i):this.lastDraggingIndex!==H.index&&(this.targetChanged.emit({prevIndex:this.lastDraggingIndex,initialIndex:H.index}),this.lastDraggingIndex=H.index)}onDragEnd({element:c,model:p,event:O}){const H=this.positions[p.prop],Le=this.isTarget(p,O);Le&&this.reorder.emit({prevIndex:H.index,newIndex:Le.i,model:p}),this.lastDraggingIndex=void 0,c.style.left="auto"}isTarget(c,p){let O=0;const Xe=this.document.elementsFromPoint(p.x||p.clientX,p.y||p.clientY);for(const lt in this.positions){const on=this.positions[lt];if(c.prop!==lt&&Xe.find(wn=>wn===on.element))return{pos:on,i:O};O++}}createMapDiffs(){return this.draggables.toArray().reduce((c,p)=>(c[p.dragModel.$$id]=p,c),{})}}return b.\u0275fac=function(c){return new(c||b)(r.Y36(r.aQg),r.Y36(P.K0))},b.\u0275dir=r.lG2({type:b,selectors:[["","orderable",""]],contentQueries:function(c,p,O){if(1&c&&r.Suo(O,ke,5),2&c){let H;r.iGM(H=r.CRH())&&(p.draggables=H)}},outputs:{reorder:"reorder",targetChanged:"targetChanged"}}),b})(),ft=(()=>{class b{constructor(){this.pressEnabled=!0,this.duration=500,this.longPressStart=new r.vpe,this.longPressing=new r.vpe,this.longPressEnd=new r.vpe,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 O=(0,J.R)(document,"mouseup");this.subscription=O.subscribe(H=>this.onMouseup()),this.timeout=setTimeout(()=>{this.isLongPressing=!0,this.longPressStart.emit({event:c,model:this.pressModel}),this.subscription.add((0,J.R)(document,"mousemove").pipe((0,ce.R)(O)).subscribe(H=>this.onMouseMove(H))),this.loop(c)},this.duration),this.loop(c)}onMouseMove(c){if(this.pressing&&!this.isLongPressing){const p=Math.abs(c.clientX-this.mouseX)>10,O=Math.abs(c.clientY-this.mouseY)>10;(p||O)&&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=r.lG2({type:b,selectors:[["","long-press",""]],hostVars:4,hostBindings:function(c,p){1&c&&r.NdJ("mousedown",function(H){return p.onMouseDown(H)}),2&c&&r.ekj("press",p.press)("longpress",p.isLongPress)},inputs:{pressEnabled:"pressEnabled",duration:"duration",pressModel:"pressModel"},outputs:{longPressStart:"longPressStart",longPressing:"longPressing",longPressEnd:"longPressEnd"}}),b})(),vn=(()=>{class b{constructor(c,p,O){this.ngZone=c,this.renderer=O,this.scrollbarV=!1,this.scrollbarH=!1,this.scroll=new r.vpe,this.scrollYPos=0,this.scrollXPos=0,this.prevScrollYPos=0,this.prevScrollXPos=0,this._scrollEventListener=null,this.element=p.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 p=c.currentTarget;requestAnimationFrame(()=>{this.scrollYPos=p.scrollTop,this.scrollXPos=p.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)(r.Y36(r.R0b),r.Y36(r.SBq),r.Y36(r.Qsj))},b.\u0275cmp=r.Xpm({type:b,selectors:[["datatable-scroller"]],hostAttrs:[1,"datatable-scroll"],hostVars:4,hostBindings:function(c,p){2&c&&r.Udp("height",p.scrollHeight,"px")("width",p.scrollWidth,"px")},inputs:{scrollbarV:"scrollbarV",scrollbarH:"scrollbarH",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth"},outputs:{scroll:"scroll"},ngContentSelectors:Y,decls:1,vars:0,template:function(c,p){1&c&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),b})(),Mn=(()=>{class b{constructor(c){this.template=c}}return b.\u0275fac=function(c){return new(c||b)(r.Y36(r.Rgc))},b.\u0275dir=r.lG2({type:b,selectors:[["","ngx-datatable-group-header-template",""]]}),b})(),bn=(()=>{class b{constructor(){this.rowHeight=0,this.toggle=new r.vpe}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=r.lG2({type:b,selectors:[["ngx-datatable-group-header"]],contentQueries:function(c,p,O){if(1&c&&r.Suo(O,Mn,7,r.Rgc),2&c){let H;r.iGM(H=r.CRH())&&(p._templateQuery=H.first)}},inputs:{rowHeight:"rowHeight",_templateInput:["template","_templateInput"]},outputs:{toggle:"toggle"}}),b})();function At(){return""}function Qt(b){return null==b?At:"number"==typeof b?Ft:-1!==b.indexOf(".")?Ee:ne}function Ft(b,B){return null==b?"":b&&null!=B?b[B]??"":b}function ne(b,B){return null==b?"":b&&B?b[B]??"":b}function Ee(b,B){if(null==b)return"";if(!b||!B)return b;let c=b[B];if(void 0!==c)return c;c=b;const p=B.split(".");if(p.length)for(let O=0;O<p.length;O++)if(c=c[p[O]],null==c)return"";return c}function Pe(b){return b&&(B=>Qt(b)(B,b))}function De(b,B,c){if(B&&c){const p={},O=b.length;let H=null;p[0]=new Je;const Le=b.reduce((lt,on)=>{const wn=c(on);return-1===lt.indexOf(wn)&<.push(wn),lt},[]);for(let lt=0;lt<O;lt++)p[c(b[lt])]=new Je(b[lt]);for(let lt=0;lt<O;lt++){H=p[c(b[lt])];let on=0;const wn=B(H.row);!!wn&&Le.indexOf(wn)>-1&&(on=wn),H.parent=p[on],H.row.level=H.parent.row.level+1,H.parent.children.push(H)}let Xe=[];return p[0].flatten(function(){Xe=[...Xe,this.row]},!0),Xe}return b}class Je{constructor(B=null){B||(B={level:-1,treeStatus:"expanded"}),this.row=B,this.parent=null,this.children=[]}flatten(B,c){if("expanded"===this.row.treeStatus)for(let p=0,O=this.children.length;p<O;p++){const H=this.children[p];B.apply(H,Array.prototype.slice.call(arguments,2)),c&&H.flatten.apply(H,arguments)}}}function qe(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(B,c,p){return c.trim()+p.toUpperCase()})}function pt(b){return b.replace(/([A-Z])/g,B=>` ${B}`).replace(/^./,B=>B.toUpperCase())}function wt(b){if(!b)return;let B=!1;for(const c of b)c.$$id||(c.$$id=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)),at(c.prop)&&c.name&&(c.prop=qe(c.name)),c.$$valueGetter||(c.$$valueGetter=Qt(c.prop)),!at(c.prop)&&at(c.name)&&(c.name=pt(String(c.prop))),at(c.prop)&&at(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&&!B?B=!0:c.isTreeColumn=!1}function at(b){return null==b}var Vt=(()=>{return(b=Vt||(Vt={})).standard="standard",b.flex="flex",b.force="force",Vt;var b})(),ae=(()=>{return(b=ae||(ae={})).single="single",b.multi="multi",b.multiClick="multiClick",b.cell="cell",b.checkbox="checkbox",ae;var b})(),Z=(()=>{return(b=Z||(Z={})).single="single",b.multi="multi",Z;var b})(),G=(()=>{return(b=G||(G={})).header="header",b.body="body",G;var b})();let ye=(()=>{class b{constructor(c){this.template=c}}return b.\u0275fac=function(c){return new(c||b)(r.Y36(r.Rgc))},b.\u0275dir=r.lG2({type:b,selectors:[["","ngx-datatable-header-template",""]]}),b})(),Te=(()=>{class b{constructor(c){this.template=c}}return b.\u0275fac=function(c){return new(c||b)(r.Y36(r.Rgc))},b.\u0275dir=r.lG2({type:b,selectors:[["","ngx-datatable-cell-template",""]]}),b})(),We=(()=>{class b{constructor(c){this.template=c}}return b.\u0275fac=function(c){return new(c||b)(r.Y36(r.Rgc))},b.\u0275dir=r.lG2({type:b,selectors:[["","ngx-datatable-tree-toggle",""]]}),b})(),mt=(()=>{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)(r.Y36(he))},b.\u0275dir=r.lG2({type:b,selectors:[["ngx-datatable-column"]],contentQueries:function(c,p,O){if(1&c&&(r.Suo(O,Te,7,r.Rgc),r.Suo(O,ye,7,r.Rgc),r.Suo(O,We,7,r.Rgc)),2&c){let H;r.iGM(H=r.CRH())&&(p._cellTemplateQuery=H.first),r.iGM(H=r.CRH())&&(p._headerTemplateQuery=H.first),r.iGM(H=r.CRH())&&(p._treeToggleTemplateQuery=H.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:["cellTemplate","_cellTemplateInput"],_headerTemplateInput:["headerTemplate","_headerTemplateInput"],_treeToggleTemplateInput:["treeToggleTemplate","_treeToggleTemplateInput"]},features:[r.TTD]}),b})(),Ot=(()=>{class b{constructor(c){this.template=c}}return b.\u0275fac=function(c){return new(c||b)(r.Y36(r.Rgc))},b.\u0275dir=r.lG2({type:b,selectors:[["","ngx-datatable-row-detail-template",""]]}),b})(),Nt=(()=>{class b{constructor(){this.rowHeight=0,this.toggle=new r.vpe}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=r.lG2({type:b,selectors:[["ngx-datatable-row-detail"]],contentQueries:function(c,p,O){if(1&c&&r.Suo(O,Ot,7,r.Rgc),2&c){let H;r.iGM(H=r.CRH())&&(p._templateQuery=H.first)}},inputs:{rowHeight:"rowHeight",_templateInput:["template","_templateInput"]},outputs:{toggle:"toggle"}}),b})(),rn=(()=>{class b{get template(){return this._templateInput||this._templateQuery}}return b.\u0275fac=function(c){return new(c||b)},b.\u0275dir=r.lG2({type:b,selectors:[["ngx-datatable-footer"]],contentQueries:function(c,p,O){if(1&c&&r.Suo(O,ze,5,r.Rgc),2&c){let H;r.iGM(H=r.CRH())&&(p._templateQuery=H.first)}},inputs:{footerHeight:"footerHeight",totalMessage:"totalMessage",selectedMessage:"selectedMessage",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon",_templateInput:["template","_templateInput"]}}),b})();function Bt(b){const B={left:[],center:[],right:[]};if(b)for(const c of b)c.frozenLeft?B.left.push(c):c.frozenRight?B.right.push(c):B.center.push(c);return B}function hn(b,B){return{left:jt(b.left),center:jt(b.center),right:jt(b.right),total:Math.floor(jt(B))}}function jt(b,B){let c=0;if(b)for(const p of b)c+=parseFloat(B&&p[B]?p[B]:p.width);return c}function T(b){const B=[],c=Bt(b);return B.push({type:"left",columns:c.left}),B.push({type:"center",columns:c.center}),B.push({type:"right",columns:c.right}),B}class N{constructor(){this.treeArray=[]}clearCache(){this.treeArray=[]}initCache(B){const{rows:c,rowHeight:p,detailRowHeight:O,externalVirtual:H,rowCount:Le,rowIndexes:Xe,rowExpansions:lt}=B,on="function"==typeof p,wn="function"==typeof O;if(!on&&isNaN(p))throw new Error(`Row Height cache initialization failed. Please ensure that 'rowHeight' is a\n valid number or function value: (${p}) when 'scrollbarV' is enabled.`);if(!wn&&isNaN(O))throw new Error(`Row Height cache initialization failed. Please ensure that 'detailRowHeight' is a\n valid number or function value: (${O}) when 'scrollbarV' is enabled.`);const ki=H?Le:c.length;this.treeArray=new Array(ki);for(let sn=0;sn<ki;++sn)this.treeArray[sn]=0;for(let sn=0;sn<ki;++sn){const ei=c[sn];let Ci=p;on&&(Ci=p(ei));const io=lt.has(ei);ei&&io&&(Ci+=wn?O(ei,Xe.get(ei)):O),this.update(sn,Ci)}}getRowIndex(B){return 0===B?0:this.calcRowIndex(B)}update(B,c){if(!this.treeArray.length)throw new Error(`Update at index ${B} with value ${c} failed:\n Row Height cache not initialized.`);const p=this.treeArray.length;for(B|=0;B<p;)this.treeArray[B]+=c,B|=B+1}query(B){if(!this.treeArray.length)throw new Error(`query at index ${B} failed: Fenwick tree array not initialized.`);let c=0;for(B|=0;B>=0;)c+=this.treeArray[B],B=(B&B+1)-1;return c}queryBetween(B,c){return this.query(c)-this.query(B-1)}calcRowIndex(B){if(!this.treeArray.length)return 0;let c=-1;const p=this.treeArray.length;for(let H=Math.pow(2,p.toString(2).length-1);0!==H;H>>=1){const Le=c+H;Le<p&&B>=this.treeArray[Le]&&(B-=this.treeArray[Le],c=Le)}return c+1}}const A={},ee=typeof document<"u"?document.createElement("div").style:void 0,xe=function(){const b=typeof window<"u"?window.getComputedStyle(document.documentElement,""):void 0,B=typeof b<"u"?Array.prototype.slice.call(b).join("").match(/-(moz|webkit|ms)-/):null,c=null!==B?B[1]:void 0,p=typeof c<"u"?"WebKit|Moz|MS|O".match(new RegExp("("+c+")","i"))[1]:void 0;return p?{dom:p,lowercase:c,css:`-${c}-`,js:c[0].toUpperCase()+c.substr(1)}:void 0}();function me(b){const B=qe(b);return A[B]||(void 0!==xe&&void 0!==ee[xe.css+b]?A[B]=xe.css+b:void 0!==ee[b]&&(A[B]=b)),A[B]}const Oe=typeof window<"u"?me("transform"):void 0,He=typeof window<"u"?me("backfaceVisibility"):void 0,rt=typeof window<"u"?!!me("transform"):void 0,Ke=typeof window<"u"?!!me("perspective"):void 0,q=typeof window<"u"?window.navigator.userAgent:"Chrome",we=/Safari\//.test(q)&&!/Chrome\//.test(q);function et(b,B,c){typeof Oe<"u"&&rt?!we&&Ke?(b[Oe]=`translate3d(${B}px, ${c}px, 0)`,b[He]="hidden"):b[qe(Oe)]=`translate(${B}px, ${c}px)`:(b.top=`${c}px`,b.left=`${B}px`)}let vt=(()=>{class b{constructor(c){this.cd=c,this.selected=[],this.scroll=new r.vpe,this.page=new r.vpe,this.activate=new r.vpe,this.select=new r.vpe,this.detailToggle=new r.vpe,this.rowContextmenu=new r.vpe(!1),this.treeAction=new r.vpe,this.rowHeightsCache=new N,this.temp=[],this.offsetY=0,this.indexes={},this.rowIndexes=new WeakMap,this.rowExpansions=[],this.getDetailRowHeight=(p,O)=>{if(!this.rowDetail)return 0;const H=this.rowDetail.rowHeight;return"function"==typeof H?H(p,O):H},this.rowTrackingFn=(p,O)=>{const H=this.getRowIndex(O);return this.trackByProp?O[this.trackByProp]:H}}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 p=Bt(c);this.columnGroupWidths=hn(p,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:p})=>{"row"===c&&this.toggleRowExpansion(p),"all"===c&&this.toggleAllRows(p),this.updateIndexes(),this.updateRows(),this.cd.markForCheck()})),this.groupHeader&&(this.listener=this.groupHeader.toggle.subscribe(({type:c,value:p})=>{"group"===c&&this.toggleRowExpansion(p),"all"===c&&this.toggleAllRows(p),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 p=c.scrollYPos,O=c.scrollXPos;(this.offsetY!==p||this.offsetX!==O)&&this.scroll.emit({offsetY:p,offsetX:O}),this.offsetY=p,this.offsetX=O,this.updateIndexes(),this.updatePage(c.direction),this.updateRows()}updatePage(c){let p=this.indexes.first/this.pageSize;"up"===c?p=Math.ceil(p):"down"===c&&(p=Math.floor(p)),void 0!==c&&!isNaN(p)&&this.page.emit({offset:p})}updateRows(){const{first:c,last:p}=this.indexes;let O=c,H=0;const Le=[];if(this.groupedRows){let Xe=3;for(1===this.groupedRows.length&&(Xe=this.groupedRows[0].value.length);O<p&&O<this.groupedRows.length;){const lt=this.groupedRows[O];this.rowIndexes.set(lt,O),lt.value&<.value.forEach((on,wn)=>{this.rowIndexes.set(on,`${O}-${wn}`)}),Le[H]=lt,H++,O++}}else for(;O<p&&O<this.rowCount;){const Xe=this.rows[O];Xe&&(this.rowIndexes.set(Xe,O),Le[H]=Xe),H++,O++}this.temp=Le}getRowHeight(c){return"function"==typeof this.rowHeight?this.rowHeight(c):this.rowHeight}getGroupHeight(c){let p=0;if(c.value)for(let O=0;O<c.value.length;O++)p+=this.getRowAndDetailHeight(c.value[O]);return p}getRowAndDetailHeight(c){let p=this.getRowHeight(c);return this.getRowExpanded(c)&&(p+=this.getDetailRowHeight(c)),p}getRowsStyles(c){const p={};if(this.groupedRows&&(p.width=this.columnGroupWidths.total),this.scrollbarV&&this.virtualization){let O=0;if(this.groupedRows){const Le=c[c.length-1];O=Le?this.getRowIndex(Le):0}else O=this.getRowIndex(c);et(p,0,this.rowHeightsCache.query(O-1))}return p}getBottomSummaryRowStyles(){if(!this.scrollbarV||!this.rows||!this.rows.length)return null;const c={position:"absolute"};return et(c,0,this.rowHeightsCache.query(this.rows.length-1)),c}hideIndicator(){setTimeout(()=>this.loadingIndicator=!1,500)}updateIndexes(){let c=0,p=0;if(this.scrollbarV)if(this.virtualization){const O=parseInt(this.bodyHeight,0);c=this.rowHeightsCache.getRowIndex(this.offsetY),p=this.rowHeightsCache.getRowIndex(O+this.offsetY)+1}else c=0,p=this.rowCount;else this.externalPaging||(c=Math.max(this.offset*this.pageSize,0)),p=Math.min(c+this.pageSize,this.rowCount);this.indexes={first:c,last:p}}refreshRowHeightCache(){if(this.scrollbarV&&(!this.scrollbarV||this.virtualization)&&(this.rowHeightsCache.clearCache(),this.rows&&this.rows.length)){const c=new Set;for(const p of this.rows)this.getRowExpanded(p)&&c.add(p);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 p=this.getAdjustedViewPortIndex(),O=this.getRowExpandedIdx(c,this.rowExpansions),H=O>-1;if(this.scrollbarV&&this.virtualization){const Le=this.getDetailRowHeight(c)*(H?-1:1),Xe=this.getRowIndex(c);this.rowHeightsCache.update(Xe,Le)}H?this.rowExpansions.splice(O,1):this.rowExpansions.push(c),this.detailToggle.emit({rows:[c],currentIndex:p})}toggleAllRows(c){this.rowExpansions=[];const p=this.getAdjustedViewPortIndex();if(c)for(const O of this.rows)this.rowExpansions.push(O);this.scrollbarV&&this.recalcLayout(),this.detailToggle.emit({rows:this.rows,currentIndex:p})}recalcLayout(){this.refreshRowHeightCache(),this.updateIndexes(),this.updateRows()}columnTrackingFn(c,p){return p.$$id}stylesByGroup(c){const p=this.columnGroupWidths,O=this.offsetX,H={width:`${p[c]}px`};if("left"===c)et(H,O,0);else if("right"===c){const Le=parseInt(this.innerWidth+"",0);et(H,-1*(p.total-Le-O),0)}return H}getRowExpanded(c){if(0===this.rowExpansions.length&&this.groupExpansionDefault)for(const p of this.groupedRows)this.rowExpansions.push(p);return this.getRowExpandedIdx(c,this.rowExpansions)>-1}getRowExpandedIdx(c,p){if(!p||!p.length)return-1;const O=this.rowIdentity(c);return p.findIndex(H=>this.rowIdentity(H)===O)}getRowIndex(c){return this.rowIndexes.get(c)||0}onTreeAction(c){this.treeAction.emit({row:c})}}return b.\u0275fac=function(c){return new(c||b)(r.Y36(r.sBO))},b.\u0275cmp=r.Xpm({type:b,selectors:[["datatable-body"]],viewQuery:function(c,p){if(1&c&&r.Gf(vn,5),2&c){let O;r.iGM(O=r.CRH())&&(p.scroller=O.first)}},hostAttrs:[1,"datatable-body"],hostVars:4,hostBindings:function(c,p){2&c&&r.Udp("width",p.bodyWidth)("height",p.bodyHeight)},inputs:{selected:"selected",pageSize:"pageSize",rows:"rows",columns:"columns",offset:"offset",rowCount:"rowCount",bodyHeight:"bodyHeight",offsetX:"offsetX",loadingIndicator:"loadingIndicator",scrollbarV:"scrollbarV",scrollbarH:"scrollbarH",externalPaging:"externalPaging",rowHeight:"rowHeight",emptyMessage:"emptyMessage",selectionType:"selectionType",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"},outputs:{scroll:"scroll",page:"page",activate:"activate",select:"select",detailToggle:"detailToggle",rowContextmenu:"rowContextmenu",treeAction:"treeAction"},decls:5,vars:9,consts:[[4,"ngIf"],[3,"selected","rows","selectCheck","selectEnabled","selectionType","rowIdentity","select","activate"],["selector",""],[3,"scrollbarV","scrollbarH","scrollHeight","scrollWidth","scroll",4,"ngIf"],["class","empty-row",3,"innerHTML",4,"ngIf"],[3,"scrollbarV","scrollbarH","scrollHeight","scrollWidth","scroll"],[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,"groupedRows","innerWidth","ngStyle","rowDetail","groupHeader","offsetX","detailRowHeight","row","expanded","rowIndex","rowContextmenu"],["role","row","tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","rowIndex","expanded","rowClass","displayCheck","treeStatus","treeAction","activate",4,"ngIf","ngIfElse"],["groupedRowsTemplate",""],["role","row","tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","rowIndex","expanded","rowClass","displayCheck","treeStatus","treeAction","activate"],["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,"isSelected","innerWidth","offsetX","columns","rowHeight","row","group","rowIndex","expanded","rowClass","activate"],["role","row",3,"ngStyle","rowHeight","offsetX","innerWidth","rows","columns"],[1,"empty-row",3,"innerHTML"]],template:function(c,p){1&c&&(r.YNc(0,j,1,0,"datatable-progress",0),r.TgZ(1,"datatable-selection",1,2),r.NdJ("select",function(H){return p.select.emit(H)})("activate",function(H){return p.activate.emit(H)}),r.YNc(3,ut,4,8,"datatable-scroller",3),r.YNc(4,st,1,1,"div",4),r.qZA()),2&c&&(r.Q6J("ngIf",p.loadingIndicator),r.xp6(1),r.Q6J("selected",p.selected)("rows",p.rows)("selectCheck",p.selectCheck)("selectEnabled",p.selectEnabled)("selectionType",p.selectionType)("rowIdentity",p.rowIdentity),r.xp6(2),r.Q6J("ngIf",null==p.rows?null:p.rows.length),r.xp6(1),r.Q6J("ngIf",!(null!=p.rows&&p.rows.length||p.loadingIndicator)))},directives:function(){return[P.O5,Nn,Ei,vn,zr,P.sg,pi,P.PC,bi]},encapsulation:2,changeDetection:0}),b})(),fn=(()=>{class b{constructor(c){this.cd=c,this.sort=new r.vpe,this.reorder=new r.vpe,this.resize=new r.vpe,this.select=new r.vpe,this.columnContextmenu=new r.vpe(!1),this._columnGroupWidths={total:100},this._styleByGroup={left:{},center:{},right:{}},this.destroyed=!1}set innerWidth(c){this._innerWidth=c,setTimeout(()=>{if(this._columns){const p=Bt(this._columns);this._columnGroupWidths=hn(p,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 p=Bt(c);this._columnsByPin=T(c),setTimeout(()=>{this._columnGroupWidths=hn(p,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:p}){p.dragging=!0,this.dragEventTarget=c}onLongPressEnd({event:c,model:p}){this.dragEventTarget=c,setTimeout(()=>{const O=this._columns.find(H=>H.$$id===p.$$id);O&&(O.dragging=!1)},5)}get headerWidth(){return this.scrollbarH?this.innerWidth+"px":"100%"}trackByGroups(c,p){return p.type}columnTrackingFn(c,p){return p.$$id}onColumnResized(c,p){c<=p.minWidth?c=p.minWidth:c>=p.maxWidth&&(c=p.maxWidth),this.resize.emit({column:p,prevValue:p.width,newValue:c})}onColumnReordered({prevIndex:c,newIndex:p,model:O}){const H=this.getColumn(p);H.isTarget=!1,H.targetMarkerContext=void 0,this.reorder.emit({column:O,prevValue:c,newValue:p})}onTargetChanged({prevIndex:c,newIndex:p,initialIndex:O}){if(c||0===c){const H=this.getColumn(c);H.isTarget=!1,H.targetMarkerContext=void 0}if(p||0===p){const H=this.getColumn(p);H.isTarget=!0,O!==p&&(H.targetMarkerContext={class:"targetMarker ".concat(O>p?"dragFromRight":"dragFromLeft")})}}getColumn(c){const p=this._columnsByPin[0].columns.length;if(c<p)return this._columnsByPin[0].columns[c];const O=this._columnsByPin[1].columns.length;return c<p+O?this._columnsByPin[1].columns[c-p]:this._columnsByPin[2].columns[c-p-O]}onSort({column:c,prevValue:p,newValue:O}){if(c.dragging)return;const H=this.calcNewSorts(c,p,O);this.sort.emit({sorts:H,column:c,prevValue:p,newValue:O})}calcNewSorts(c,p,O){let H=0;this.sorts||(this.sorts=[]);const Le=this.sorts.map((Xe,lt)=>((Xe=Object.assign({},Xe)).prop===c.prop&&(H=lt),Xe));return void 0===O?Le.splice(H,1):p?Le[H].dir=O:(this.sortType===Z.single&&Le.splice(0,this.sorts.length),Le.push({dir:O,prop:c.prop})),Le}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 p=this._columnGroupWidths,H={width:`${p[c]}px`};return"center"===c?et(H,-1*this.offsetX,0):"right"===c&&et(H,-1*(p.total-this.innerWidth),0),H}}return b.\u0275fac=function(c){return new(c||b)(r.Y36(r.sBO))},b.\u0275cmp=r.Xpm({type:b,selectors:[["datatable-header"]],hostAttrs:[1,"datatable-header"],hostVars:4,hostBindings:function(c,p){2&c&&r.Udp("height",p.headerHeight)("width",p.headerWidth)},inputs:{innerWidth:"innerWidth",headerHeight:"headerHeight",columns:"columns",offsetX:"offsetX",sorts:"sorts",sortAscendingIcon:"sortAscendingIcon",sortDescendingIcon:"sortDescendingIcon",sortUnsetIcon:"sortUnsetIcon",scrollbarH:"scrollbarH",dealsWithGroup:"dealsWithGroup",targetMarkerTemplate:"targetMarkerTemplate",sortType:"sortType",allRowsSelected:"allRowsSelected",selectionType:"selectionType",reorderable:"reorderable"},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,"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"]],template:function(c,p){1&c&&(r.TgZ(0,"div",0),r.NdJ("reorder",function(H){return p.onColumnReordered(H)})("targetChanged",function(H){return p.onTargetChanged(H)}),r.YNc(1,_t,2,5,"div",1),r.qZA()),2&c&&(r.Udp("width",p._columnGroupWidths.total,"px"),r.xp6(1),r.Q6J("ngForOf",p._columnsByPin)("ngForTrackBy",p.trackByGroups))},directives:function(){return[pn,P.sg,P.PC,Bn,Xt,ft,ke]},encapsulation:2,changeDetection:0}),b})();function Re(b,B,c){c=c||{};let p,O,H,Le=null,Xe=0;function lt(){Xe=!1===c.leading?0:+new Date,Le=null,H=b.apply(p,O)}return function(){const on=+new Date;!Xe&&!1===c.leading&&(Xe=on);const wn=B-(on-Xe);return p=this,O=arguments,wn<=0?(clearTimeout(Le),Le=null,Xe=on,H=b.apply(p,O)):!Le&&!1!==c.trailing&&(Le=setTimeout(lt,wn)),H}}function Fe(b,B){return function(p,O,H){return{configurable:!0,enumerable:H.enumerable,get:function(){return Object.defineProperty(this,O,{configurable:!0,enumerable:H.enumerable,value:Re(H.value,b,B)}),this[O]}}}}function k(b,B){for(const c of B){const p=b.indexOf(c);b.splice(p,1)}}function le(b,B=300){let c=0;for(const p of b)c+=p.width||B;return c}var Ce=(()=>{return(b=Ce||(Ce={})).asc="asc",b.desc="desc",Ce;var b})();function kt(b,B){if((null===b||typeof b>"u")&&(b=0),(null===B||typeof B>"u")&&(B=0),b instanceof Date&&B instanceof Date){if(b<B)return-1;if(b>B)return 1}else if(isNaN(parseFloat(b))||!isFinite(b)||isNaN(parseFloat(B))||!isFinite(B)){if(b=String(b),B=String(B),b.toLowerCase()<B.toLowerCase())return-1;if(b.toLowerCase()>B.toLowerCase())return 1}else{if(parseFloat(b)<parseFloat(B))return-1;if(parseFloat(b)>parseFloat(B))return 1}return 0}let Cn=(()=>{class b{constructor(c,p,O,H,Le,Xe,lt){this.scrollbarHelper=c,this.dimensionsHelper=p,this.cd=O,this.columnChangesService=Xe,this.configuration=lt,this.selected=[],this.scrollbarV=!1,this.scrollbarH=!1,this.rowHeight=30,this.columnMode=Vt.standard,this.headerHeight=30,this.footerHeight=0,this.externalPaging=!1,this.externalSorting=!1,this.loadingIndicator=!1,this.reorderable=!0,this.swapColumns=!0,this.sortType=Z.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 r.vpe,this.activate=new r.vpe,this.select=new r.vpe,this.sort=new r.vpe,this.page=new r.vpe,this.reorder=new r.vpe,this.resize=new r.vpe,this.tableContextmenu=new r.vpe(!1),this.treeAction=new r.vpe,this.rowCount=0,this._offsetX=new re(0),this._count=0,this._offset=0,this._subscriptions=[],this.rowIdentity=on=>this._groupRowsBy?on.key:on,this.element=H.nativeElement,this.rowDiffer=Le.find({}).create(),this.configuration&&this.configuration.messages&&(this.messages=Object.assign({},this.configuration.messages))}set rows(c){this._rows=c,c&&(this._internalRows=[...c]),this.externalSorting||this.sortInternalRows(),this._internalRows=De(this._internalRows,Pe(this.treeFromRelation),Pe(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],wt(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===ae.checkbox}get isCellSelection(){return this.selectionType===ae.cell}get isSingleSelection(){return this.selectionType===ae.single}get isMultiSelection(){return this.selectionType===ae.multi}get isMultiClickSelection(){return this.selectionType===ae.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 p=this.bodyComponent.indexes;c=this.selected.length===p.last-p.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 p=c.toArray();p.length&&(this._internalColumns=function bt(b){const B=[];for(const c of b){const p={},O=Object.getOwnPropertyNames(c);for(const H of O)p[H]=c[H];c.headerTemplate&&(p.headerTemplate=c.headerTemplate),c.cellTemplate&&(p.cellTemplate=c.cellTemplate),c.summaryFunc&&(p.summaryFunc=c.summaryFunc),c.summaryTemplate&&(p.summaryTemplate=c.summaryTemplate),B.push(p)}return B}(p),wt(this._internalColumns),this.recalculateColumns(),this.sortInternalRows(),this.cd.markForCheck())}}groupArrayBy(c,p){const O=new Map;return c.forEach(Xe=>{const lt=Xe[p];O.has(lt)?O.get(lt).push(Xe):O.set(lt,[Xe])}),Array.from(O,Xe=>((Xe,lt)=>({key:Xe,value:lt}))(Xe[0],Xe[1]))}ngDoCheck(){this.rowDiffer.diff(this.rows)&&(this.externalSorting?this._internalRows=[...this.rows]:this.sortInternalRows(),this._internalRows=De(this._internalRows,Pe(this.treeFromRelation),Pe(this.treeToRelation)),this.recalculatePages(),this.cd.markForCheck())}recalculate(){this.recalculateDims(),this.recalculateColumns(),this.cd.markForCheck()}onWindowResize(){this.recalculate()}recalculateColumns(c=this._internalColumns,p=-1,O=this.scrollbarH){if(!c)return;let H=this._innerWidth;return this.scrollbarV&&(H-=this.scrollbarHelper.width),this.columnMode===Vt.force?function g(b,B,c,p,O=300){const H=b.slice(c+1,b.length).filter(sn=>!1!==sn.canAutoResize);for(const sn of H)sn.$$oldWidth||(sn.$$oldWidth=sn.width);let Le=0,Xe=!1,lt=le(b,O),on=B-lt;const wn=[];do{Le=on/H.length,Xe=lt>=B;for(const sn of H){if(Xe&&p)sn.width=sn.$$oldWidth||sn.width||O;else{const ei=(sn.width||O)+Le;sn.minWidth&&ei<sn.minWidth?(sn.width=sn.minWidth,wn.push(sn)):sn.maxWidth&&ei>sn.maxWidth?(sn.width=sn.maxWidth,wn.push(sn)):sn.width=ei}sn.width=Math.max(0,sn.width)}lt=le(b),on=B-lt,k(H,wn)}while(on>1&&0!==H.length)}(c,H,p,O):this.columnMode===Vt.flex&&function R(b,B){const c=function gn(b,B){let c=0;for(const p of b)c+=B&&p[B]?p[B]:p.width;return c}(b),p=function nt(b){let B=0;for(const c of b)B+=c.flexGrow||0;return B}(b),O=Bt(b);c!==B&&function I(b,B,c){for(const H in b)for(const Le of b[H])Le.canAutoResize?Le.width=0:(B-=Le.width,c-=Le.flexGrow?Le.flexGrow:0);const p={};let O=B;do{const H=O/c;O=0;for(const Le in b)for(const Xe of b[Le])if(Xe.canAutoResize&&!p[Xe.prop]){const lt=Xe.width+Xe.flexGrow*H;void 0!==Xe.minWidth&<<Xe.minWidth?(O+=lt-Xe.minWidth,Xe.width=Xe.minWidth,p[Xe.prop]=!0):Xe.width=lt}}while(0!==O)}(O,B,p)}(c,H),c}recalculateDims(){const c=this.dimensionsHelper.getDimensions(this.element);if(this._innerWidth=Math.floor(c.width),this.scrollbarV){let p=c.height;this.headerHeight&&(p-=this.headerHeight),this.footerHeight&&(p-=this.footerHeight),this.bodyHeight=p}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 p=Math.ceil(this.bodyHeight/this.rowHeight);return Math.max(p,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:p}){this.tableContextmenu.emit({event:c,type:G.header,content:p})}onRowContextmenu({event:c,row:p}){this.tableContextmenu.emit({event:c,type:G.body,content:p})}onColumnResize({column:c,newValue:p}){if(void 0===c)return;let O;const H=this._internalColumns.map((Le,Xe)=>((Le=Object.assign({},Le)).$$id===c.$$id&&(O=Xe,Le.width=p,Le.$$oldWidth=p),Le));this.recalculateColumns(H,O),this._internalColumns=H,this.resize.emit({column:c,newValue:p})}onColumnReorder({column:c,newValue:p,prevValue:O}){const H=this._internalColumns.map(Le=>Object.assign({},Le));if(this.swapColumns){const Le=H[p];H[p]=c,H[O]=Le}else if(p>O){const Le=H[O];for(let Xe=O;Xe<p;Xe++)H[Xe]=H[Xe+1];H[p]=Le}else{const Le=H[O];for(let Xe=O;Xe>p;Xe--)H[Xe]=H[Xe-1];H[p]=Le}this._internalColumns=H,this.reorder.emit({column:c,newValue:p,prevValue:O})}onColumnSort(c){this.selectAllRowsOnPage&&(this.selected=[],this.select.emit({selected:this.selected})),this.sorts=c.sorts,!1===this.externalSorting&&this.sortInternalRows(),this._internalRows=De(this._internalRows,Pe(this.treeFromRelation),Pe(this.treeToRelation)),this.offset=0,this.bodyComponent.updateOffsetY(this.offset),this.sort.emit(c)}onHeaderSelect(c){if(this.bodyComponent&&this.selectAllRowsOnPage){const p=this.bodyComponent.indexes.first,O=this.bodyComponent.indexes.last,H=this.selected.length===O-p;this.selected=[],H||this.selected.push(...this._internalRows.slice(p,O))}else{const p=this.selected.length===this.rows.length;this.selected=[],p||this.selected.push(...this.rows)}this.select.emit({selected:this.selected})}onBodySelect(c){this.select.emit(c)}onTreeAction(c){const p=c.row,O=this._rows.findIndex(H=>H[this.treeToRelation]===c.row[this.treeToRelation]);this.treeAction.emit({row:p,rowIndex:O})}ngOnDestroy(){this._subscriptions.forEach(c=>c.unsubscribe())}listenForColumnInputChanges(){this._subscriptions.push(this.columnChangesService.columnInputChanges$.subscribe(()=>{this.columnTemplates&&this.columnTemplates.notifyOnChanges()}))}sortInternalRows(){this._internalRows=function cn(b,B,c){if(!b)return[];if(!c||!c.length||!B)return[...b];const p=new Map;b.forEach((Xe,lt)=>p.set(Xe,lt));const O=[...b],H=B.reduce((Xe,lt)=>(lt.comparator&&"function"==typeof lt.comparator&&(Xe[lt.prop]=lt.comparator),Xe),{}),Le=c.map(Xe=>{const lt=Xe.prop;return{prop:lt,dir:Xe.dir,valueGetter:Qt(lt),compareFn:H[lt]||kt}});return O.sort(function(Xe,lt){for(const on of Le){const{prop:wn,valueGetter:ki}=on,sn=ki(Xe,wn),ei=ki(lt,wn),Ci=on.dir!==Ce.desc?on.compareFn(sn,ei,Xe,lt,on.dir):-on.compareFn(sn,ei,Xe,lt,on.dir);if(0!==Ci)return Ci}return p.has(Xe)&&p.has(lt)?p.get(Xe)<p.get(lt)?-1:1:0})}(this._internalRows,this._internalColumns,this.sorts)}}return b.\u0275fac=function(c){return new(c||b)(r.Y36(Ue,4),r.Y36(ue,4),r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.aQg),r.Y36(he),r.Y36("configuration",8))},b.\u0275cmp=r.Xpm({type:b,selectors:[["ngx-datatable"]],contentQueries:function(c,p,O){if(1&c&&(r.Suo(O,Nt,5),r.Suo(O,bn,5),r.Suo(O,rn,5),r.Suo(O,mt,4)),2&c){let H;r.iGM(H=r.CRH())&&(p.rowDetail=H.first),r.iGM(H=r.CRH())&&(p.groupHeader=H.first),r.iGM(H=r.CRH())&&(p.footer=H.first),r.iGM(H=r.CRH())&&(p.columnTemplates=H)}},viewQuery:function(c,p){if(1&c&&(r.Gf(vt,5),r.Gf(fn,5)),2&c){let O;r.iGM(O=r.CRH())&&(p.bodyComponent=O.first),r.iGM(O=r.CRH())&&(p.headerComponent=O.first)}},hostAttrs:[1,"ngx-datatable"],hostVars:22,hostBindings:function(c,p){1&c&&r.NdJ("resize",function(){return p.onWindowResize()},!1,r.Jf7),2&c&&r.ekj("fixed-header",p.isFixedHeader)("fixed-row",p.isFixedRow)("scroll-vertical",p.isVertScroll)("virtualized",p.isVirtualized)("scroll-horz",p.isHorScroll)("selectable",p.isSelectable)("checkbox-selection",p.isCheckboxSelection)("cell-selection",p.isCellSelection)("single-selection",p.isSingleSelection)("multi-selection",p.isMultiSelection)("multi-click-selection",p.isMultiClickSelection)},inputs:{selected:"selected",scrollbarV:"scrollbarV",scrollbarH:"scrollbarH",rowHeight:"rowHeight",columnMode:"columnMode",headerHeight:"headerHeight",footerHeight:"footerHeight",externalPaging:"externalPaging",externalSorting:"externalSorting",loadingIndicator:"loadingIndicator",reorderable:"reorderable",swapColumns:"swapColumns",sortType:"sortType",sorts:"sorts",cssClasses:"cssClasses",messages:"messages",groupExpansionDefault:"groupExpansionDefault",selectAllRowsOnPage:"selectAllRowsOnPage",virtualization:"virtualization",summaryRow:"summaryRow",summaryHeight:"summaryHeight",summaryPosition:"summaryPosition",rowIdentity:"rowIdentity",rows:"rows",groupedRows:"groupedRows",groupRowsBy:"groupRowsBy",columns:"columns",limit:"limit",count:"count",offset:"offset",targetMarkerTemplate:"targetMarkerTemplate",selectionType:"selectionType",rowClass:"rowClass",selectCheck:"selectCheck",displayCheck:"displayCheck",trackByProp:"trackByProp",treeFromRelation:"treeFromRelation",treeToRelation:"treeToRelation"},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,"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","page","activate","rowContextmenu","select","scroll","treeAction"],[3,"rowCount","pageSize","offset","footerHeight","footerTemplate","totalMessage","pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","selectedCount","selectedMessage","pagerNextIcon","page",4,"ngIf"],["role","rowgroup",3,"sorts","sortType","scrollbarH","innerWidth","offsetX","dealsWithGroup","columns","headerHeight","reorderable","targetMarkerTemplate","sortAscendingIcon","sortDescendingIcon","sortUnsetIcon","allRowsSelected","selectionType","sort","resize","reorder","select","columnContextmenu"],[3,"rowCount","pageSize","offset","footerHeight","footerTemplate","totalMessage","pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","selectedCount","selectedMessage","pagerNextIcon","page"]],template:function(c,p){1&c&&(r.TgZ(0,"div",0),r.NdJ("visible",function(){return p.recalculate()}),r.YNc(1,Pt,2,17,"datatable-header",1),r.TgZ(2,"datatable-body",2),r.NdJ("page",function(H){return p.onBodyPage(H)})("activate",function(H){return p.activate.emit(H)})("rowContextmenu",function(H){return p.onRowContextmenu(H)})("select",function(H){return p.onBodySelect(H)})("scroll",function(H){return p.onBodyScroll(H)})("treeAction",function(H){return p.onTreeAction(H)}),r.ALo(3,"async"),r.qZA(),r.YNc(4,Tt,1,12,"datatable-footer",3),r.qZA()),2&c&&(r.xp6(1),r.Q6J("ngIf",p.headerHeight),r.xp6(1),r.Q6J("groupRowsBy",p.groupRowsBy)("groupedRows",p.groupedRows)("rows",p._internalRows)("groupExpansionDefault",p.groupExpansionDefault)("scrollbarV",p.scrollbarV)("scrollbarH",p.scrollbarH)("virtualization",p.virtualization)("loadingIndicator",p.loadingIndicator)("externalPaging",p.externalPaging)("rowHeight",p.rowHeight)("rowCount",p.rowCount)("offset",p.offset)("trackByProp",p.trackByProp)("columns",p._internalColumns)("pageSize",p.pageSize)("offsetX",r.lcZ(3,32,p._offsetX))("rowDetail",p.rowDetail)("groupHeader",p.groupHeader)("selected",p.selected)("innerWidth",p._innerWidth)("bodyHeight",p.bodyHeight)("selectionType",p.selectionType)("emptyMessage",p.messages.emptyMessage)("rowIdentity",p.rowIdentity)("rowClass",p.rowClass)("selectCheck",p.selectCheck)("displayCheck",p.displayCheck)("summaryRow",p.summaryRow)("summaryHeight",p.summaryHeight)("summaryPosition",p.summaryPosition),r.xp6(2),r.Q6J("ngIf",p.footerHeight))},directives:function(){return[Ae,P.O5,fn,vt,kn]},pipes:function(){return[P.Ov]},styles:[".ngx-datatable{display:block;overflow:hidden;justify-content:center;position:relative;transform:translateZ(0)}.ngx-datatable [hidden]{display:none!important}.ngx-datatable *,.ngx-datatable :after,.ngx-datatable :before{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-header-inner,.ngx-datatable .datatable-row-center{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-center,.ngx-datatable .datatable-row-group,.ngx-datatable .datatable-row-left,.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}"],encapsulation:2,changeDetection:0}),(0,W.gn)([Fe(5)],b.prototype,"onWindowResize",null),b})(),Bn=(()=>{class b{constructor(c){this.cd=c,this.sort=new r.vpe,this.select=new r.vpe,this.columnContextmenu=new r.vpe(!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 O=this.column.headerClass({column:this.column});if("string"==typeof O)c+=O;else if("object"==typeof O){const H=Object.keys(O);for(const Le of H)!0===O[Le]&&(c+=` ${Le}`)}}const p=this.sortDir;return p&&(c+=` sort-active sort-${p}`),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===ae.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 p=c.find(O=>O.prop===this.column.prop);if(p)return p.dir}}onSort(){if(!this.column.sortable)return;const c=function je(b,B){return b===Z.single?B===Ce.asc?Ce.desc:Ce.asc:B?B===Ce.asc?Ce.desc:void 0:Ce.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===Ce.asc?`sort-btn sort-asc ${this.sortAscendingIcon}`:c===Ce.desc?`sort-btn sort-desc ${this.sortDescendingIcon}`:`sort-btn ${this.sortUnsetIcon}`}}return b.\u0275fac=function(c){return new(c||b)(r.Y36(r.sBO))},b.\u0275cmp=r.Xpm({type:b,selectors:[["datatable-header-cell"]],hostAttrs:[1,"datatable-header-cell"],hostVars:11,hostBindings:function(c,p){1&c&&r.NdJ("contextmenu",function(H){return p.onContextmenu(H)}),2&c&&(r.uIk("title",p.name),r.Tol(p.columnCssClasses),r.Udp("min-width",p.minWidth,"px")("max-width",p.maxWidth,"px")("width",p.width,"px")("height",p.headerHeight,"px"))},inputs:{allRowsSelected:"allRowsSelected",column:"column",sorts:"sorts",sortType:"sortType",sortAscendingIcon:"sortAscendingIcon",sortDescendingIcon:"sortDescendingIcon",sortUnsetIcon:"sortUnsetIcon",isTarget:"isTarget",targetMarkerTemplate:"targetMarkerTemplate",targetMarkerContext:"targetMarkerContext",selectionType:"selectionType",headerHeight:"headerHeight"},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,"checked","change"],[1,"datatable-header-cell-wrapper"],[1,"datatable-header-cell-label","draggable",3,"innerHTML","click"]],template:function(c,p){1&c&&(r.TgZ(0,"div",0),r.YNc(1,Et,1,2,null,1),r.YNc(2,_n,2,1,"label",2),r.YNc(3,nn,2,1,"span",3),r.YNc(4,V,1,2,null,1),r.TgZ(5,"span",4),r.NdJ("click",function(){return p.onSort()}),r.qZA()()),2&c&&(r.xp6(1),r.Q6J("ngIf",p.isTarget),r.xp6(1),r.Q6J("ngIf",p.isCheckboxable),r.xp6(1),r.Q6J("ngIf",!p.column.headerTemplate),r.xp6(1),r.Q6J("ngIf",p.column.headerTemplate),r.xp6(1),r.Tol(p.sortClass))},directives:[P.O5,P.tP],encapsulation:2,changeDetection:0}),b})(),kn=(()=>{class b{constructor(){this.selectedCount=0,this.page=new r.vpe}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=r.Xpm({type:b,selectors:[["datatable-footer"]],hostAttrs:[1,"datatable-footer"],inputs:{selectedCount:"selectedCount",footerHeight:"footerHeight",rowCount:"rowCount",pageSize:"pageSize",offset:"offset",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon",totalMessage:"totalMessage",footerTemplate:"footerTemplate",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,"pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","pagerNextIcon","page","size","count","hidden","change"]],template:function(c,p){1&c&&(r.TgZ(0,"div",0),r.YNc(1,be,1,8,null,1),r.YNc(2,tt,3,3,"div",2),r.YNc(3,ct,1,8,"datatable-pager",3),r.qZA()),2&c&&(r.Udp("height",p.footerHeight,"px"),r.Q6J("ngClass",r.VKq(6,Rt,p.selectedMessage)),r.xp6(1),r.Q6J("ngIf",p.footerTemplate),r.xp6(1),r.Q6J("ngIf",!p.footerTemplate),r.xp6(1),r.Q6J("ngIf",!p.footerTemplate))},directives:function(){return[P.mk,P.O5,P.tP,qn]},encapsulation:2,changeDetection:0}),b})(),qn=(()=>{class b{constructor(){this.change=new r.vpe,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 p=[];let O=1,H=this.totalPages;c=c||this.page,5<this.totalPages&&(O=c-Math.floor(2.5),H=c+Math.floor(2.5),O<1?(O=1,H=Math.min(O+5-1,this.totalPages)):H>this.totalPages&&(O=Math.max(this.totalPages-5+1,1),H=this.totalPages));for(let lt=O;lt<=H;lt++)p.push({number:lt,text:lt});return p}}return b.\u0275fac=function(c){return new(c||b)},b.\u0275cmp=r.Xpm({type:b,selectors:[["datatable-pager"]],hostAttrs:[1,"datatable-pager"],inputs:{size:"size",count:"count",page:"page",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon"},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,p){1&c&&(r.TgZ(0,"ul",0)(1,"li")(2,"a",1),r.NdJ("click",function(){return p.selectPage(1)}),r._UZ(3,"i"),r.qZA()(),r.TgZ(4,"li")(5,"a",2),r.NdJ("click",function(){return p.prevPage()}),r._UZ(6,"i"),r.qZA()(),r.YNc(7,It,3,4,"li",3),r.TgZ(8,"li")(9,"a",4),r.NdJ("click",function(){return p.nextPage()}),r._UZ(10,"i"),r.qZA()(),r.TgZ(11,"li")(12,"a",5),r.NdJ("click",function(){return p.selectPage(p.totalPages)}),r._UZ(13,"i"),r.qZA()()()),2&c&&(r.xp6(1),r.ekj("disabled",!p.canPrevious()),r.xp6(2),r.Tol(p.pagerPreviousIcon),r.xp6(1),r.ekj("disabled",!p.canPrevious()),r.xp6(2),r.Tol(p.pagerLeftArrowIcon),r.xp6(1),r.Q6J("ngForOf",p.pages),r.xp6(1),r.ekj("disabled",!p.canNext()),r.xp6(2),r.Tol(p.pagerRightArrowIcon),r.xp6(1),r.ekj("disabled",!p.canNext()),r.xp6(2),r.Tol(p.pagerNextIcon))},directives:[P.sg],encapsulation:2,changeDetection:0}),b})(),Nn=(()=>{class b{}return b.\u0275fac=function(c){return new(c||b)},b.\u0275cmp=r.Xpm({type:b,selectors:[["datatable-progress"]],decls:3,vars:0,consts:[["role","progressbar",1,"progress-linear"],[1,"container"],[1,"bar"]],template:function(c,p){1&c&&(r.TgZ(0,"div",0)(1,"div",1),r._UZ(2,"div",2),r.qZA()())},encapsulation:2,changeDetection:0}),b})();var Wt=(()=>{return(b=Wt||(Wt={}))[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",Wt;var b})();let bi=(()=>{class b{constructor(c,p,O,H){this.differs=c,this.scrollbarHelper=p,this.cd=O,this.treeStatus="collapsed",this.activate=new r.vpe,this.treeAction=new r.vpe,this._groupStyles={left:{},center:{},right:{}},this._element=H.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 p=Bt(this._columns);this._columnGroupWidths=hn(p,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 p=this.rowClass(this.row);if("string"==typeof p)c+=` ${p}`;else if("object"==typeof p){const O=Object.keys(p);for(const H of O)!0===p[H]&&(c+=` ${H}`)}}return c}get columnsTotalWidths(){return this._columnGroupWidths.total}ngDoCheck(){this._rowDiffer.diff(this.row)&&this.cd.markForCheck()}trackByGroups(c,p){return p.type}columnTrackingFn(c,p){return p.$$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 p=this._columnGroupWidths,O=this.offsetX,H={width:`${p[c]}px`};if("left"===c)et(H,O,0);else if("right"===c){const Le=parseInt(this.innerWidth+"",0);et(H,-1*(p.total-Le-O+this.scrollbarHelper.width),0)}return H}onActivate(c,p){c.cellIndex=p,c.rowElement=this._element,this.activate.emit(c)}onKeyDown(c){const p=c.keyCode;(p===Wt.return||p===Wt.down||p===Wt.up||p===Wt.left||p===Wt.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 p=Bt(this._columns);this._columnsByPin=T(this._columns),this._columnGroupWidths=hn(p,this._columns)}onTreeAction(){this.treeAction.emit()}}return b.\u0275fac=function(c){return new(c||b)(r.Y36(r.aQg),r.Y36(Ue,4),r.Y36(r.sBO),r.Y36(r.SBq))},b.\u0275cmp=r.Xpm({type:b,selectors:[["datatable-body-row"]],hostVars:6,hostBindings:function(c,p){1&c&&r.NdJ("keydown",function(H){return p.onKeyDown(H)})("mouseenter",function(H){return p.onMouseenter(H)}),2&c&&(r.Tol(p.cssClass),r.Udp("width",p.columnsTotalWidths,"px")("height",p.rowHeight,"px"))},inputs:{treeStatus:"treeStatus",columns:"columns",innerWidth:"innerWidth",offsetX:"offsetX",expanded:"expanded",rowClass:"rowClass",row:"row",group:"group",isSelected:"isSelected",rowIndex:"rowIndex",displayCheck:"displayCheck",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,"row","group","expanded","isSelected","rowIndex","column","rowHeight","displayCheck","treeStatus","activate","treeAction"]],template:function(c,p){1&c&&r.YNc(0,Yn,2,6,"div",0),2&c&&r.Q6J("ngForOf",p._columnsByPin)("ngForTrackBy",p.trackByGroups)},directives:function(){return[P.sg,P.PC,Qn]},encapsulation:2,changeDetection:0}),b})(),pi=(()=>{class b{constructor(c,p){this.cd=c,this.differs=p,this.rowContextmenu=new r.vpe(!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=p.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)(r.Y36(r.sBO),r.Y36(r.aQg))},b.\u0275cmp=r.Xpm({type:b,selectors:[["datatable-row-wrapper"]],hostAttrs:[1,"datatable-row-wrapper"],hostBindings:function(c,p){1&c&&r.NdJ("contextmenu",function(H){return p.onContextmenu(H)})},inputs:{rowIndex:"rowIndex",expanded:"expanded",innerWidth:"innerWidth",rowDetail:"rowDetail",groupHeader:"groupHeader",offsetX:"offsetX",detailRowHeight:"detailRowHeight",row:"row",groupedRows:"groupedRows"},outputs:{rowContextmenu:"rowContextmenu"},ngContentSelectors:Y,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,p){1&c&&(r.F$t(),r.YNc(0,En,2,2,"div",0),r.YNc(1,Vn,1,0,"ng-content",1),r.YNc(2,Ln,2,3,"div",2)),2&c&&(r.Q6J("ngIf",p.groupHeader&&p.groupHeader.template),r.xp6(1),r.Q6J("ngIf",p.groupHeader&&p.groupHeader.template&&p.expanded||!p.groupHeader||!p.groupHeader.template),r.xp6(1),r.Q6J("ngIf",p.rowDetail&&p.rowDetail.template&&p.expanded))},directives:[P.O5,P.PC,P.tP],encapsulation:2,changeDetection:0}),b})(),Qn=(()=>{class b{constructor(c,p){this.cd=p,this.activate=new r.vpe,this.treeAction=new r.vpe,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 p=this.column.cellClass({row:this.row,group:this.group,column:this.column,value:this.value,rowHeight:this.rowHeight});if("string"==typeof p)c+=" "+p;else if("object"==typeof p){const O=Object.keys(p);for(const H of O)!0===p[H]&&(c+=` ${H}`)}}return this.sortDir||(c+=" sort-active"),this.isFocused&&(c+=" active"),this.sortDir===Ce.asc&&(c+=" sort-asc"),this.sortDir===Ce.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 p=this.column.$$valueGetter(this.row,this.column.prop),O=this.column.pipe;O?c=O.transform(p):void 0!==c&&(c=p)}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 p=c.keyCode;(p===Wt.return||p===Wt.down||p===Wt.up||p===Wt.left||p===Wt.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 p=c.find(O=>O.prop===this.column.prop);return p?p.dir:void 0}stripHtml(c){return c.replace?c.replace(/<\/?[^>]+(>|$)/g,""):c}onTreeAction(){this.treeAction.emit(this.row)}calcLeftMargin(c,p){return c.isTreeColumn?p.level*(null!=c.treeLevelIndent?c.treeLevelIndent:50):0}}return b.\u0275fac=function(c){return new(c||b)(r.Y36(r.SBq),r.Y36(r.sBO))},b.\u0275cmp=r.Xpm({type:b,selectors:[["datatable-body-cell"]],viewQuery:function(c,p){if(1&c&&r.Gf(Di,7,r.s_b),2&c){let O;r.iGM(O=r.CRH())&&(p.cellTemplate=O.first)}},hostVars:10,hostBindings:function(c,p){1&c&&r.NdJ("focus",function(){return p.onFocus()})("blur",function(){return p.onBlur()})("click",function(H){return p.onClick(H)})("dblclick",function(H){return p.onDblClick(H)})("keydown",function(H){return p.onKeyDown(H)}),2&c&&(r.Tol(p.columnCssClasses),r.Udp("width",p.width,"px")("min-width",p.minWidth,"px")("max-width",p.maxWidth,"px")("height",p.height))},inputs:{group:"group",rowHeight:"rowHeight",isSelected:"isSelected",expanded:"expanded",rowIndex:"rowIndex",column:"column",row:"row",sorts:"sorts",treeStatus:"treeStatus",displayCheck:"displayCheck"},outputs:{activate:"activate",treeAction:"treeAction"},decls:5,vars:6,consts:[[1,"datatable-body-cell-label"],["class","datatable-checkbox",4,"ngIf"],[4,"ngIf"],[3,"title","innerHTML",4,"ngIf"],[1,"datatable-checkbox"],["type","checkbox",3,"checked","click"],["class","datatable-tree-button",3,"disabled","click",4,"ngIf"],[1,"datatable-tree-button",3,"disabled","click"],["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"],["cellTemplate",""]],template:function(c,p){1&c&&(r.TgZ(0,"div",0),r.YNc(1,ii,2,1,"label",1),r.YNc(2,qt,3,2,"ng-container",2),r.YNc(3,ri,1,2,"span",3),r.YNc(4,vi,2,2,null,2),r.qZA()),2&c&&(r.Udp("margin-left",p.calcLeftMargin(p.column,p.row),"px"),r.xp6(1),r.Q6J("ngIf",p.column.checkboxable&&(!p.displayCheck||p.displayCheck(p.row,p.column,p.value))),r.xp6(1),r.Q6J("ngIf",p.column.isTreeColumn),r.xp6(1),r.Q6J("ngIf",!p.column.cellTemplate),r.xp6(1),r.Q6J("ngIf",p.column.cellTemplate))},directives:[P.O5,P.tP],encapsulation:2,changeDetection:0}),b})();function Pi(b,B,c){const p=c(B,b);return p>-1?b.splice(p,1):b.push(B),b}let Ei=(()=>{class b{constructor(){this.activate=new r.vpe,this.select=new r.vpe}selectRow(c,p,O){if(!this.selectEnabled)return;const H=this.selectionType===ae.checkbox,Xe=this.selectionType===ae.multiClick;let lt=[];lt=this.selectionType===ae.multi||H||Xe?c.shiftKey?function Mi(b,B,c,p,O){const H=c<p;for(let Le=0;Le<B.length;Le++){const Xe=B[Le],lt=Le>=p&&Le<=c,on=Le<=p&&Le>=c;let wn={start:0,end:0};wn=H?{start:c,end:p}:{start:p,end:c+1},(H&&on||!H&<)&&Le>=wn.start&&Le<=wn.end&&b.push(Xe)}return b}([],this.rows,p,this.prevIndex,this.getRowSelectedIdx.bind(this)):Pi(c.ctrlKey||c.metaKey||Xe||H?[...this.selected]:[],O,this.getRowSelectedIdx.bind(this)):Pi([],O,this.getRowSelectedIdx.bind(this)),"function"==typeof this.selectCheck&&(lt=lt.filter(this.selectCheck.bind(this))),this.selected.splice(0,this.selected.length),this.selected.push(...lt),this.prevIndex=p,this.select.emit({selected:lt})}onActivate(c,p){const{type:O,event:H,row:Le}=c,Xe=this.selectionType===ae.checkbox;!Xe&&("click"===O||"dblclick"===O)||Xe&&"checkbox"===O?this.selectRow(H,p,Le):"keydown"===O&&(H.keyCode===Wt.return?this.selectRow(H,p,Le):this.onKeyboardFocus(c)),this.activate.emit(c)}onKeyboardFocus(c){const{keyCode:p}=c.event;if(p===Wt.up||p===Wt.down||p===Wt.right||p===Wt.left){const H=this.selectionType===ae.cell;c.cellElement&&H?H&&this.focusCell(c.cellElement,c.rowElement,p,c.cellIndex):this.focusRow(c.rowElement,p)}}focusRow(c,p){const O=this.getPrevNextRow(c,p);O&&O.focus()}getPrevNextRow(c,p){const O=c.parentElement;if(O){let H;if(p===Wt.up?H=O.previousElementSibling:p===Wt.down&&(H=O.nextElementSibling),H&&H.children.length)return H.children[0]}}focusCell(c,p,O,H){let Le;if(O===Wt.left)Le=c.previousElementSibling;else if(O===Wt.right)Le=c.nextElementSibling;else if(O===Wt.up||O===Wt.down){const Xe=this.getPrevNextRow(p,O);if(Xe){const lt=Xe.getElementsByClassName("datatable-body-cell");lt.length&&(Le=lt[H])}}Le&&Le.focus()}getRowSelected(c){return this.getRowSelectedIdx(c,this.selected)>-1}getRowSelectedIdx(c,p){if(!p||!p.length)return-1;const O=this.rowIdentity(c);return p.findIndex(H=>this.rowIdentity(H)===O)}}return b.\u0275fac=function(c){return new(c||b)},b.\u0275cmp=r.Xpm({type:b,selectors:[["datatable-selection"]],inputs:{rows:"rows",selected:"selected",selectEnabled:"selectEnabled",selectionType:"selectionType",rowIdentity:"rowIdentity",selectCheck:"selectCheck"},outputs:{activate:"activate",select:"select"},ngContentSelectors:Y,decls:1,vars:0,template:function(c,p){1&c&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),b})();function Gn(b){const B=b.filter(c=>!!c);return!B.length||B.some(c=>"number"!=typeof c)?null:B.reduce((c,p)=>c+p)}function Si(b){return null}let zr=(()=>{class b{constructor(){this.summaryRow={}}ngOnChanges(){!this.columns||!this.rows||(this.updateInternalColumns(),this.updateValues())}updateInternalColumns(){this._internalColumns=this.columns.map(c=>Object.assign(Object.assign({},c),{cellTemplate:c.summaryTemplate}))}updateValues(){this.summaryRow={},this.columns.filter(c=>!c.summaryTemplate).forEach(c=>{const p=this.rows.map(H=>H[c.prop]),O=this.getSummaryFunction(c);this.summaryRow[c.prop]=c.pipe?c.pipe.transform(O(p)):O(p)})}getSummaryFunction(c){return void 0===c.summaryFunc?Gn:null===c.summaryFunc?Si:c.summaryFunc}}return b.\u0275fac=function(c){return new(c||b)},b.\u0275cmp=r.Xpm({type:b,selectors:[["datatable-summary-row"]],hostAttrs:[1,"datatable-summary-row"],inputs:{rows:"rows",columns:"columns",rowHeight:"rowHeight",offsetX:"offsetX",innerWidth:"innerWidth"},features:[r.TTD],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,p){1&c&&r.YNc(0,li,1,6,"datatable-body-row",0),2&c&&r.Q6J("ngIf",p.summaryRow&&p._internalColumns)},directives:[P.O5,bi],encapsulation:2}),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=r.oAB({type:b}),b.\u0275inj=r.cJS({providers:[Ue,ue,he],imports:[[P.ez]]}),b})();typeof document<"u"&&!document.elementsFromPoint&&(document.elementsFromPoint=function qi(b,B){const c=[],p=[];let O,H,Le;for(;(O=document.elementFromPoint(b,B))&&-1===c.indexOf(O)&&null!=O;)c.push(O),p.push({value:O.style.getPropertyValue("pointer-events"),priority:O.style.getPropertyPriority("pointer-events")}),O.style.setProperty("pointer-events","none","important");for(H=p.length;Le=p[--H];)c[H].style.setProperty("pointer-events",Le.value?Le.value:"",Le.priority);return c})},443:($e,X,M)=>{var r=M(2119);$e.exports=r.Symbol},4633:$e=>{$e.exports=function X(M,r){for(var P=-1,_e=null==M?0:M.length,pe=Array(_e);++P<_e;)pe[P]=r(M[P],P,M);return pe}},8745:$e=>{$e.exports=function X(M,r,P,_e){var pe=-1,re=null==M?0:M.length;for(_e&&re&&(P=M[++pe]);++pe<re;)P=r(P,M[pe],pe,M);return P}},69:$e=>{var X=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;$e.exports=function M(r){return r.match(X)||[]}},3337:($e,X,M)=>{var r=M(443),P=M(1318),_e=M(2902),J=r?r.toStringTag:void 0;$e.exports=function ce(W){return null==W?void 0===W?"[object Undefined]":"[object Null]":J&&J in Object(W)?P(W):_e(W)}},2724:$e=>{$e.exports=function X(M){return function(r){return null==M?void 0:M[r]}}},3935:($e,X,M)=>{var r=M(443),P=M(4633),_e=M(1503),pe=M(4129),J=r?r.prototype:void 0,ce=J?J.toString:void 0;$e.exports=function W(Y){if("string"==typeof Y)return Y;if(_e(Y))return P(Y,W)+"";if(pe(Y))return ce?ce.call(Y):"";var j=Y+"";return"0"==j&&1/Y==-1/0?"-0":j}},1491:($e,X,M)=>{var r=M(8745),P=M(4707),_e=M(7188),re=RegExp("['\u2019]","g");$e.exports=function J(ce){return function(W){return r(_e(P(W).replace(re,"")),ce,"")}}},9148:($e,X,M)=>{var _e=M(2724)({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"});$e.exports=_e},9122:$e=>{var X="object"==typeof global&&global&&global.Object===Object&&global;$e.exports=X},9519:($e,X,M)=>{var P=M(9385)(Object.getPrototypeOf,Object);$e.exports=P},1318:($e,X,M)=>{var r=M(443),P=Object.prototype,_e=P.hasOwnProperty,pe=P.toString,re=r?r.toStringTag:void 0;$e.exports=function J(ce){var W=_e.call(ce,re),Y=ce[re];try{ce[re]=void 0;var j=!0}catch{}var z=pe.call(ce);return j&&(W?ce[re]=Y:delete ce[re]),z}},9062:$e=>{var X=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;$e.exports=function M(r){return X.test(r)}},2902:$e=>{var M=Object.prototype.toString;$e.exports=function r(P){return M.call(P)}},9385:$e=>{$e.exports=function X(M,r){return function(P){return M(r(P))}}},2119:($e,X,M)=>{var r=M(9122),P="object"==typeof self&&self&&self.Object===Object&&self,_e=r||P||Function("return this")();$e.exports=_e},910:$e=>{var X="\\ud800-\\udfff",pe="\\u2700-\\u27bf",re="a-z\\xdf-\\xf6\\xf8-\\xff",j="A-Z\\xc0-\\xd6\\xd8-\\xde",fe="\\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",Ve="["+fe+"]",Be="\\d+",ut="["+pe+"]",st="["+re+"]",dt="[^"+X+fe+Be+pe+re+j+"]",an="(?:\\ud83c[\\udde6-\\uddff]){2}",Et="[\\ud800-\\udbff][\\udc00-\\udfff]",_n="["+j+"]",te="(?:"+st+"|"+dt+")",V="(?:"+_n+"|"+dt+")",K="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",ie="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",be="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",se="[\\ufe0e\\ufe0f]?",It=se+be+"(?:\\u200d(?:"+["[^"+X+"]",an,Et].join("|")+")"+se+be+")*",In="(?:"+[ut,an,Et].join("|")+")"+It,Yn=RegExp([_n+"?"+st+"+"+K+"(?="+[Ve,_n,"$"].join("|")+")",V+"+"+ie+"(?="+[Ve,_n+te,"$"].join("|")+")",_n+"?"+te+"+"+K,_n+"+"+ie,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Be,In].join("|"),"g");$e.exports=function Kt(Xn){return Xn.match(Yn)||[]}},4707:($e,X,M)=>{var r=M(9148),P=M(3943),_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Y=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");$e.exports=function j(z){return(z=P(z))&&z.replace(_e,r).replace(Y,"")}},1503:$e=>{$e.exports=Array.isArray},4798:($e,X,M)=>{var r=M(3337),P=M(2671);$e.exports=function pe(re){return!0===re||!1===re||P(re)&&"[object Boolean]"==r(re)}},1305:$e=>{$e.exports=function X(M){return null===M}},9138:($e,X,M)=>{var r=M(3337),P=M(2671);$e.exports=function pe(re){return"number"==typeof re||P(re)&&"[object Number]"==r(re)}},2671:$e=>{$e.exports=function X(M){return null!=M&&"object"==typeof M}},7614:($e,X,M)=>{var r=M(3337),P=M(9519),_e=M(2671),ce=Function.prototype.toString,W=Object.prototype.hasOwnProperty,Y=ce.call(Object);$e.exports=function j(z){if(!_e(z)||"[object Object]"!=r(z))return!1;var fe=P(z);if(null===fe)return!0;var ge=W.call(fe,"constructor")&&fe.constructor;return"function"==typeof ge&&ge instanceof ge&&ce.call(ge)==Y}},248:($e,X,M)=>{var r=M(3337),P=M(1503),_e=M(2671);$e.exports=function re(J){return"string"==typeof J||!P(J)&&_e(J)&&"[object String]"==r(J)}},4129:($e,X,M)=>{var r=M(3337),P=M(2671);$e.exports=function pe(re){return"symbol"==typeof re||P(re)&&"[object Symbol]"==r(re)}},4235:$e=>{$e.exports=function X(M){return void 0===M}},1978:($e,X,M)=>{var P=M(1491)(function(_e,pe,re){return _e+(re?"_":"")+pe.toLowerCase()});$e.exports=P},3943:($e,X,M)=>{var r=M(3935);$e.exports=function P(_e){return null==_e?"":r(_e)}},7188:($e,X,M)=>{var r=M(69),P=M(9062),_e=M(3943),pe=M(910);$e.exports=function re(J,ce,W){return J=_e(J),void 0===(ce=W?void 0:ce)?P(J)?pe(J):r(J):J.match(ce)||[]}},2916:($e,X,M)=>{"use strict";M.d(X,{y:()=>z});var r=M(3489),_e=M(7668),pe=M(3292),J=M(3821),ce=M(5379);var j=M(2830);let z=(()=>{class ge{constructor(Ie){this._isScalar=!1,Ie&&(this._subscribe=Ie)}lift(Ie){const Be=new ge;return Be.source=this,Be.operator=Ie,Be}subscribe(Ie,Be,ut){const{operator:st}=this,dt=function re(ge,Ve,Ie){if(ge){if(ge instanceof r.L)return ge;if(ge[_e.b])return ge[_e.b]()}return ge||Ve||Ie?new r.L(ge,Ve,Ie):new r.L(pe.c)}(Ie,Be,ut);if(dt.add(st?st.call(dt,this.source):this.source||j.v.useDeprecatedSynchronousErrorHandling&&!dt.syncErrorThrowable?this._subscribe(dt):this._trySubscribe(dt)),j.v.useDeprecatedSynchronousErrorHandling&&dt.syncErrorThrowable&&(dt.syncErrorThrowable=!1,dt.syncErrorThrown))throw dt.syncErrorValue;return dt}_trySubscribe(Ie){try{return this._subscribe(Ie)}catch(Be){j.v.useDeprecatedSynchronousErrorHandling&&(Ie.syncErrorThrown=!0,Ie.syncErrorValue=Be),function P(ge){for(;ge;){const{closed:Ve,destination:Ie,isStopped:Be}=ge;if(Ve||Be)return!1;ge=Ie&&Ie instanceof r.L?Ie:null}return!0}(Ie)?Ie.error(Be):console.warn(Be)}}forEach(Ie,Be){return new(Be=fe(Be))((ut,st)=>{let dt;dt=this.subscribe(_t=>{try{Ie(_t)}catch(Pt){st(Pt),dt&&dt.unsubscribe()}},st,ut)})}_subscribe(Ie){const{source:Be}=this;return Be&&Be.subscribe(Ie)}[J.L](){return this}pipe(...Ie){return 0===Ie.length?this:function Y(ge){return 0===ge.length?ce.y:1===ge.length?ge[0]:function(Ie){return ge.reduce((Be,ut)=>ut(Be),Ie)}}(Ie)(this)}toPromise(Ie){return new(Ie=fe(Ie))((Be,ut)=>{let st;this.subscribe(dt=>st=dt,dt=>ut(dt),()=>Be(st))})}}return ge.create=Ve=>new ge(Ve),ge})();function fe(ge){if(ge||(ge=j.v.Promise||Promise),!ge)throw new Error("no Promise impl found");return ge}},3292:($e,X,M)=>{"use strict";M.d(X,{c:()=>_e});var r=M(2830),P=M(2782);const _e={closed:!0,next(pe){},error(pe){if(r.v.useDeprecatedSynchronousErrorHandling)throw pe;(0,P.z)(pe)},complete(){}}},5529:($e,X,M)=>{"use strict";M.d(X,{xQ:()=>W,Yc:()=>ce});var r=M(2916),P=M(3489),_e=M(2654),pe=M(5279);class re extends _e.w{constructor(z,fe){super(),this.subject=z,this.subscriber=fe,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const z=this.subject,fe=z.observers;if(this.subject=null,!fe||0===fe.length||z.isStopped||z.closed)return;const ge=fe.indexOf(this.subscriber);-1!==ge&&fe.splice(ge,1)}}var J=M(7668);class ce extends P.L{constructor(z){super(z),this.destination=z}}let W=(()=>{class j extends r.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[J.b](){return new ce(this)}lift(fe){const ge=new Y(this,this);return ge.operator=fe,ge}next(fe){if(this.closed)throw new pe.N;if(!this.isStopped){const{observers:ge}=this,Ve=ge.length,Ie=ge.slice();for(let Be=0;Be<Ve;Be++)Ie[Be].next(fe)}}error(fe){if(this.closed)throw new pe.N;this.hasError=!0,this.thrownError=fe,this.isStopped=!0;const{observers:ge}=this,Ve=ge.length,Ie=ge.slice();for(let Be=0;Be<Ve;Be++)Ie[Be].error(fe);this.observers.length=0}complete(){if(this.closed)throw new pe.N;this.isStopped=!0;const{observers:fe}=this,ge=fe.length,Ve=fe.slice();for(let Ie=0;Ie<ge;Ie++)Ve[Ie].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(fe){if(this.closed)throw new pe.N;return super._trySubscribe(fe)}_subscribe(fe){if(this.closed)throw new pe.N;return this.hasError?(fe.error(this.thrownError),_e.w.EMPTY):this.isStopped?(fe.complete(),_e.w.EMPTY):(this.observers.push(fe),new re(this,fe))}asObservable(){const fe=new r.y;return fe.source=this,fe}}return j.create=(z,fe)=>new Y(z,fe),j})();class Y extends W{constructor(z,fe){super(),this.destination=z,this.source=fe}next(z){const{destination:fe}=this;fe&&fe.next&&fe.next(z)}error(z){const{destination:fe}=this;fe&&fe.error&&this.destination.error(z)}complete(){const{destination:z}=this;z&&z.complete&&this.destination.complete()}_subscribe(z){const{source:fe}=this;return fe?this.source.subscribe(z):_e.w.EMPTY}}},3489:($e,X,M)=>{"use strict";M.d(X,{L:()=>ce});var r=M(7043),P=M(3292),_e=M(2654),pe=M(7668),re=M(2830),J=M(2782);class ce extends _e.w{constructor(j,z,fe){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=P.c;break;case 1:if(!j){this.destination=P.c;break}if("object"==typeof j){j instanceof ce?(this.syncErrorThrowable=j.syncErrorThrowable,this.destination=j,j.add(this)):(this.syncErrorThrowable=!0,this.destination=new W(this,j));break}default:this.syncErrorThrowable=!0,this.destination=new W(this,j,z,fe)}}[pe.b](){return this}static create(j,z,fe){const ge=new ce(j,z,fe);return ge.syncErrorThrowable=!1,ge}next(j){this.isStopped||this._next(j)}error(j){this.isStopped||(this.isStopped=!0,this._error(j))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(j){this.destination.next(j)}_error(j){this.destination.error(j),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:j}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=j,this}}class W extends ce{constructor(j,z,fe,ge){super(),this._parentSubscriber=j;let Ve,Ie=this;(0,r.m)(z)?Ve=z:z&&(Ve=z.next,fe=z.error,ge=z.complete,z!==P.c&&(Ie=Object.create(z),(0,r.m)(Ie.unsubscribe)&&this.add(Ie.unsubscribe.bind(Ie)),Ie.unsubscribe=this.unsubscribe.bind(this))),this._context=Ie,this._next=Ve,this._error=fe,this._complete=ge}next(j){if(!this.isStopped&&this._next){const{_parentSubscriber:z}=this;re.v.useDeprecatedSynchronousErrorHandling&&z.syncErrorThrowable?this.__tryOrSetError(z,this._next,j)&&this.unsubscribe():this.__tryOrUnsub(this._next,j)}}error(j){if(!this.isStopped){const{_parentSubscriber:z}=this,{useDeprecatedSynchronousErrorHandling:fe}=re.v;if(this._error)fe&&z.syncErrorThrowable?(this.__tryOrSetError(z,this._error,j),this.unsubscribe()):(this.__tryOrUnsub(this._error,j),this.unsubscribe());else if(z.syncErrorThrowable)fe?(z.syncErrorValue=j,z.syncErrorThrown=!0):(0,J.z)(j),this.unsubscribe();else{if(this.unsubscribe(),fe)throw j;(0,J.z)(j)}}}complete(){if(!this.isStopped){const{_parentSubscriber:j}=this;if(this._complete){const z=()=>this._complete.call(this._context);re.v.useDeprecatedSynchronousErrorHandling&&j.syncErrorThrowable?(this.__tryOrSetError(j,z),this.unsubscribe()):(this.__tryOrUnsub(z),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(j,z){try{j.call(this._context,z)}catch(fe){if(this.unsubscribe(),re.v.useDeprecatedSynchronousErrorHandling)throw fe;(0,J.z)(fe)}}__tryOrSetError(j,z,fe){if(!re.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{z.call(this._context,fe)}catch(ge){return re.v.useDeprecatedSynchronousErrorHandling?(j.syncErrorValue=ge,j.syncErrorThrown=!0,!0):((0,J.z)(ge),!0)}return!1}_unsubscribe(){const{_parentSubscriber:j}=this;this._context=null,this._parentSubscriber=null,j.unsubscribe()}}},2654:($e,X,M)=>{"use strict";M.d(X,{w:()=>J});var r=M(6688),P=M(7830),_e=M(7043);const re=(()=>{function W(Y){return Error.call(this),this.message=Y?`${Y.length} errors occurred during unsubscription:\n${Y.map((j,z)=>`${z+1}) ${j.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Y,this}return W.prototype=Object.create(Error.prototype),W})();class J{constructor(Y){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,Y&&(this._ctorUnsubscribe=!0,this._unsubscribe=Y)}unsubscribe(){let Y;if(this.closed)return;let{_parentOrParents:j,_ctorUnsubscribe:z,_unsubscribe:fe,_subscriptions:ge}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,j instanceof J)j.remove(this);else if(null!==j)for(let Ve=0;Ve<j.length;++Ve)j[Ve].remove(this);if((0,_e.m)(fe)){z&&(this._unsubscribe=void 0);try{fe.call(this)}catch(Ve){Y=Ve instanceof re?ce(Ve.errors):[Ve]}}if((0,r.k)(ge)){let Ve=-1,Ie=ge.length;for(;++Ve<Ie;){const Be=ge[Ve];if((0,P.K)(Be))try{Be.unsubscribe()}catch(ut){Y=Y||[],ut instanceof re?Y=Y.concat(ce(ut.errors)):Y.push(ut)}}}if(Y)throw new re(Y)}add(Y){let j=Y;if(!Y)return J.EMPTY;switch(typeof Y){case"function":j=new J(Y);case"object":if(j===this||j.closed||"function"!=typeof j.unsubscribe)return j;if(this.closed)return j.unsubscribe(),j;if(!(j instanceof J)){const ge=j;j=new J,j._subscriptions=[ge]}break;default:throw new Error("unrecognized teardown "+Y+" added to Subscription.")}let{_parentOrParents:z}=j;if(null===z)j._parentOrParents=this;else if(z instanceof J){if(z===this)return j;j._parentOrParents=[z,this]}else{if(-1!==z.indexOf(this))return j;z.push(this)}const fe=this._subscriptions;return null===fe?this._subscriptions=[j]:fe.push(j),j}remove(Y){const j=this._subscriptions;if(j){const z=j.indexOf(Y);-1!==z&&j.splice(z,1)}}}var W;function ce(W){return W.reduce((Y,j)=>Y.concat(j instanceof re?j.errors:j),[])}J.EMPTY=((W=new J).closed=!0,W)},2830:($e,X,M)=>{"use strict";M.d(X,{v:()=>P});let r=!1;const P={Promise:void 0,set useDeprecatedSynchronousErrorHandling(_e){if(_e){const pe=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+pe.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=_e},get useDeprecatedSynchronousErrorHandling(){return r}}},1177:($e,X,M)=>{"use strict";M.d(X,{Ds:()=>J,IY:()=>pe,ft:()=>W});var r=M(3489),P=M(2916),_e=M(9249);class pe extends r.L{constructor(j){super(),this.parent=j}_next(j){this.parent.notifyNext(j)}_error(j){this.parent.notifyError(j),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class J extends r.L{notifyNext(j){this.destination.next(j)}notifyError(j){this.destination.error(j)}notifyComplete(){this.destination.complete()}}function W(Y,j){if(j.closed)return;if(Y instanceof P.y)return Y.subscribe(j);let z;try{z=(0,_e.s)(Y)(j)}catch(fe){j.error(fe)}return z}},5254:($e,X,M)=>{"use strict";M.d(X,{D:()=>Ie});var r=M(2916),P=M(9249),_e=M(2654),pe=M(3821),ce=M(6454),W=M(5430),z=M(8955),fe=M(8515);function Ie(Be,ut){return ut?function Ve(Be,ut){if(null!=Be){if(function j(Be){return Be&&"function"==typeof Be[pe.L]}(Be))return function re(Be,ut){return new r.y(st=>{const dt=new _e.w;return dt.add(ut.schedule(()=>{const _t=Be[pe.L]();dt.add(_t.subscribe({next(Pt){dt.add(ut.schedule(()=>st.next(Pt)))},error(Pt){dt.add(ut.schedule(()=>st.error(Pt)))},complete(){dt.add(ut.schedule(()=>st.complete()))}}))})),dt})}(Be,ut);if((0,z.t)(Be))return function J(Be,ut){return new r.y(st=>{const dt=new _e.w;return dt.add(ut.schedule(()=>Be.then(_t=>{dt.add(ut.schedule(()=>{st.next(_t),dt.add(ut.schedule(()=>st.complete()))}))},_t=>{dt.add(ut.schedule(()=>st.error(_t)))}))),dt})}(Be,ut);if((0,fe.z)(Be))return(0,ce.r)(Be,ut);if(function ge(Be){return Be&&"function"==typeof Be[W.hZ]}(Be)||"string"==typeof Be)return function Y(Be,ut){if(!Be)throw new Error("Iterable cannot be null");return new r.y(st=>{const dt=new _e.w;let _t;return dt.add(()=>{_t&&"function"==typeof _t.return&&_t.return()}),dt.add(ut.schedule(()=>{_t=Be[W.hZ](),dt.add(ut.schedule(function(){if(st.closed)return;let Pt,Tt;try{const an=_t.next();Pt=an.value,Tt=an.done}catch(an){return void st.error(an)}Tt?st.complete():(st.next(Pt),this.schedule())}))})),dt})}(Be,ut)}throw new TypeError((null!==Be&&typeof Be||Be)+" is not observable")}(Be,ut):Be instanceof r.y?Be:new r.y((0,P.s)(Be))}},3009:($e,X,M)=>{"use strict";M.d(X,{n:()=>pe});var r=M(2916),P=M(3650),_e=M(6454);function pe(re,J){return J?(0,_e.r)(re,J):new r.y((0,P.V)(re))}},3753:($e,X,M)=>{"use strict";M.d(X,{R:()=>J});var r=M(2916),P=M(6688),_e=M(7043),pe=M(4850);function J(z,fe,ge,Ve){return(0,_e.m)(ge)&&(Ve=ge,ge=void 0),Ve?J(z,fe,ge).pipe((0,pe.U)(Ie=>(0,P.k)(Ie)?Ve(...Ie):Ve(Ie))):new r.y(Ie=>{ce(z,fe,function Be(ut){Ie.next(arguments.length>1?Array.prototype.slice.call(arguments):ut)},Ie,ge)})}function ce(z,fe,ge,Ve,Ie){let Be;if(function j(z){return z&&"function"==typeof z.addEventListener&&"function"==typeof z.removeEventListener}(z)){const ut=z;z.addEventListener(fe,ge,Ie),Be=()=>ut.removeEventListener(fe,ge,Ie)}else if(function Y(z){return z&&"function"==typeof z.on&&"function"==typeof z.off}(z)){const ut=z;z.on(fe,ge),Be=()=>ut.off(fe,ge)}else if(function W(z){return z&&"function"==typeof z.addListener&&"function"==typeof z.removeListener}(z)){const ut=z;z.addListener(fe,ge),Be=()=>ut.removeListener(fe,ge)}else{if(!z||!z.length)throw new TypeError("Invalid event target");for(let ut=0,st=z.length;ut<st;ut++)ce(z[ut],fe,ge,Ve,Ie)}Ve.add(Be)}},6787:($e,X,M)=>{"use strict";M.d(X,{T:()=>re});var r=M(2916),P=M(2866),_e=M(9146),pe=M(3009);function re(...J){let ce=Number.POSITIVE_INFINITY,W=null,Y=J[J.length-1];return(0,P.K)(Y)?(W=J.pop(),J.length>1&&"number"==typeof J[J.length-1]&&(ce=J.pop())):"number"==typeof Y&&(ce=J.pop()),null===W&&1===J.length&&J[0]instanceof r.y?J[0]:(0,_e.J)(ce)((0,pe.n)(J,W))}},1086:($e,X,M)=>{"use strict";M.d(X,{of:()=>pe});var r=M(2866),P=M(3009),_e=M(6454);function pe(...re){let J=re[re.length-1];return(0,r.K)(J)?(re.pop(),(0,_e.r)(re,J)):(0,P.n)(re)}},7739:($e,X,M)=>{"use strict";M.d(X,{H:()=>J});var r=M(2916),P=M(353),_e=M(6688);function pe(W){return!(0,_e.k)(W)&&W-parseFloat(W)+1>=0}var re=M(2866);function J(W=0,Y,j){let z=-1;return pe(Y)?z=Number(Y)<1?1:Number(Y):(0,re.K)(Y)&&(j=Y),(0,re.K)(j)||(j=P.P),new r.y(fe=>{const ge=pe(W)?W:+W-j.now();return j.schedule(ce,ge,{index:0,period:z,subscriber:fe})})}function ce(W){const{index:Y,period:j,subscriber:z}=W;if(z.next(Y),!z.closed){if(-1===j)return z.complete();W.index=Y+1,this.schedule(W,j)}}},2198:($e,X,M)=>{"use strict";M.d(X,{h:()=>P});var r=M(3489);function P(re,J){return function(W){return W.lift(new _e(re,J))}}class _e{constructor(J,ce){this.predicate=J,this.thisArg=ce}call(J,ce){return ce.subscribe(new pe(J,this.predicate,this.thisArg))}}class pe extends r.L{constructor(J,ce,W){super(J),this.predicate=ce,this.thisArg=W,this.count=0}_next(J){let ce;try{ce=this.predicate.call(this.thisArg,J,this.count++)}catch(W){return void this.destination.error(W)}ce&&this.destination.next(J)}}},4850:($e,X,M)=>{"use strict";M.d(X,{U:()=>P});var r=M(3489);function P(re,J){return function(W){if("function"!=typeof re)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return W.lift(new _e(re,J))}}class _e{constructor(J,ce){this.project=J,this.thisArg=ce}call(J,ce){return ce.subscribe(new pe(J,this.project,this.thisArg))}}class pe extends r.L{constructor(J,ce,W){super(J),this.project=ce,this.count=0,this.thisArg=W||this}_next(J){let ce;try{ce=this.project.call(this.thisArg,J,this.count++)}catch(W){return void this.destination.error(W)}this.destination.next(ce)}}},9146:($e,X,M)=>{"use strict";M.d(X,{J:()=>_e});var r=M(1709),P=M(5379);function _e(pe=Number.POSITIVE_INFINITY){return(0,r.zg)(P.y,pe)}},1709:($e,X,M)=>{"use strict";M.d(X,{zg:()=>pe});var r=M(4850),P=M(5254),_e=M(1177);function pe(W,Y,j=Number.POSITIVE_INFINITY){return"function"==typeof Y?z=>z.pipe(pe((fe,ge)=>(0,P.D)(W(fe,ge)).pipe((0,r.U)((Ve,Ie)=>Y(fe,Ve,ge,Ie))),j)):("number"==typeof Y&&(j=Y),z=>z.lift(new re(W,j)))}class re{constructor(Y,j=Number.POSITIVE_INFINITY){this.project=Y,this.concurrent=j}call(Y,j){return j.subscribe(new J(Y,this.project,this.concurrent))}}class J extends _e.Ds{constructor(Y,j,z=Number.POSITIVE_INFINITY){super(Y),this.project=j,this.concurrent=z,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(Y){this.active<this.concurrent?this._tryNext(Y):this.buffer.push(Y)}_tryNext(Y){let j;const z=this.index++;try{j=this.project(Y,z)}catch(fe){return void this.destination.error(fe)}this.active++,this._innerSub(j)}_innerSub(Y){const j=new _e.IY(this),z=this.destination;z.add(j);const fe=(0,_e.ft)(Y,j);fe!==j&&z.add(fe)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(Y){this.destination.next(Y)}notifyComplete(){const Y=this.buffer;this.active--,Y.length>0?this._next(Y.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},7625:($e,X,M)=>{"use strict";M.d(X,{R:()=>P});var r=M(1177);function P(re){return J=>J.lift(new _e(re))}class _e{constructor(J){this.notifier=J}call(J,ce){const W=new pe(J),Y=(0,r.ft)(this.notifier,new r.IY(W));return Y&&!W.seenValue?(W.add(Y),ce.subscribe(W)):W}}class pe extends r.Ds{constructor(J){super(J),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},6454:($e,X,M)=>{"use strict";M.d(X,{r:()=>_e});var r=M(2916),P=M(2654);function _e(pe,re){return new r.y(J=>{const ce=new P.w;let W=0;return ce.add(re.schedule(function(){W!==pe.length?(J.next(pe[W++]),J.closed||ce.add(this.schedule())):J.complete()})),ce})}},6686:($e,X,M)=>{"use strict";M.d(X,{o:()=>_e});var r=M(2654);class P extends r.w{constructor(re,J){super()}schedule(re,J=0){return this}}class _e extends P{constructor(re,J){super(re,J),this.scheduler=re,this.work=J,this.pending=!1}schedule(re,J=0){if(this.closed)return this;this.state=re;const ce=this.id,W=this.scheduler;return null!=ce&&(this.id=this.recycleAsyncId(W,ce,J)),this.pending=!0,this.delay=J,this.id=this.id||this.requestAsyncId(W,this.id,J),this}requestAsyncId(re,J,ce=0){return setInterval(re.flush.bind(re,this),ce)}recycleAsyncId(re,J,ce=0){if(null!==ce&&this.delay===ce&&!1===this.pending)return J;clearInterval(J)}execute(re,J){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ce=this._execute(re,J);if(ce)return ce;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(re,J){let W,ce=!1;try{this.work(re)}catch(Y){ce=!0,W=!!Y&&Y||new Error(Y)}if(ce)return this.unsubscribe(),W}_unsubscribe(){const re=this.id,J=this.scheduler,ce=J.actions,W=ce.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==W&&ce.splice(W,1),null!=re&&(this.id=this.recycleAsyncId(J,re,null)),this.delay=null}}},2268:($e,X,M)=>{"use strict";M.d(X,{v:()=>P});let r=(()=>{class _e{constructor(re,J=_e.now){this.SchedulerAction=re,this.now=J}schedule(re,J=0,ce){return new this.SchedulerAction(this,re).schedule(ce,J)}}return _e.now=()=>Date.now(),_e})();class P extends r{constructor(pe,re=r.now){super(pe,()=>P.delegate&&P.delegate!==this?P.delegate.now():re()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(pe,re=0,J){return P.delegate&&P.delegate!==this?P.delegate.schedule(pe,re,J):super.schedule(pe,re,J)}flush(pe){const{actions:re}=this;if(this.active)return void re.push(pe);let J;this.active=!0;do{if(J=pe.execute(pe.state,pe.delay))break}while(pe=re.shift());if(this.active=!1,J){for(;pe=re.shift();)pe.unsubscribe();throw J}}}},352:($e,X,M)=>{"use strict";M.d(X,{Z:()=>re});var r=M(6686),_e=M(2268);const re=new class pe extends _e.v{flush(W){this.active=!0,this.scheduled=void 0;const{actions:Y}=this;let j,z=-1,fe=Y.length;W=W||Y.shift();do{if(j=W.execute(W.state,W.delay))break}while(++z<fe&&(W=Y.shift()));if(this.active=!1,j){for(;++z<fe&&(W=Y.shift());)W.unsubscribe();throw j}}}(class P extends r.o{constructor(W,Y){super(W,Y),this.scheduler=W,this.work=Y}requestAsyncId(W,Y,j=0){return null!==j&&j>0?super.requestAsyncId(W,Y,j):(W.actions.push(this),W.scheduled||(W.scheduled=requestAnimationFrame(()=>W.flush(null))))}recycleAsyncId(W,Y,j=0){if(null!==j&&j>0||null===j&&this.delay>0)return super.recycleAsyncId(W,Y,j);0===W.actions.length&&(cancelAnimationFrame(Y),W.scheduled=void 0)}})},353:($e,X,M)=>{"use strict";M.d(X,{P:()=>pe});var r=M(6686);const pe=new(M(2268).v)(r.o)},5430:($e,X,M)=>{"use strict";M.d(X,{hZ:()=>P});const P=function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:($e,X,M)=>{"use strict";M.d(X,{L:()=>r});const r="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:($e,X,M)=>{"use strict";M.d(X,{b:()=>r});const r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},5279:($e,X,M)=>{"use strict";M.d(X,{N:()=>P});const P=(()=>{function _e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return _e.prototype=Object.create(Error.prototype),_e})()},2782:($e,X,M)=>{"use strict";function r(P){setTimeout(()=>{throw P},0)}M.d(X,{z:()=>r})},5379:($e,X,M)=>{"use strict";function r(P){return P}M.d(X,{y:()=>r})},6688:($e,X,M)=>{"use strict";M.d(X,{k:()=>r});const r=Array.isArray||(P=>P&&"number"==typeof P.length)},8515:($e,X,M)=>{"use strict";M.d(X,{z:()=>r});const r=P=>P&&"number"==typeof P.length&&"function"!=typeof P},7043:($e,X,M)=>{"use strict";function r(P){return"function"==typeof P}M.d(X,{m:()=>r})},7830:($e,X,M)=>{"use strict";function r(P){return null!==P&&"object"==typeof P}M.d(X,{K:()=>r})},8955:($e,X,M)=>{"use strict";function r(P){return!!P&&"function"!=typeof P.subscribe&&"function"==typeof P.then}M.d(X,{t:()=>r})},2866:($e,X,M)=>{"use strict";function r(P){return P&&"function"==typeof P.schedule}M.d(X,{K:()=>r})},9249:($e,X,M)=>{"use strict";M.d(X,{s:()=>z});var r=M(3650),P=M(2782),pe=M(5430),J=M(3821),W=M(8515),Y=M(8955),j=M(7830);const z=fe=>{if(fe&&"function"==typeof fe[J.L])return(fe=>ge=>{const Ve=fe[J.L]();if("function"!=typeof Ve.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return Ve.subscribe(ge)})(fe);if((0,W.z)(fe))return(0,r.V)(fe);if((0,Y.t)(fe))return(fe=>ge=>(fe.then(Ve=>{ge.closed||(ge.next(Ve),ge.complete())},Ve=>ge.error(Ve)).then(null,P.z),ge))(fe);if(fe&&"function"==typeof fe[pe.hZ])return(fe=>ge=>{const Ve=fe[pe.hZ]();for(;;){let Ie;try{Ie=Ve.next()}catch(Be){return ge.error(Be),ge}if(Ie.done){ge.complete();break}if(ge.next(Ie.value),ge.closed)break}return"function"==typeof Ve.return&&ge.add(()=>{Ve.return&&Ve.return()}),ge})(fe);{const Ve=`You provided ${(0,j.K)(fe)?"an invalid object":`'${fe}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(Ve)}}},3650:($e,X,M)=>{"use strict";M.d(X,{V:()=>r});const r=P=>_e=>{for(let pe=0,re=P.length;pe<re&&!_e.closed;pe++)_e.next(P[pe]);_e.complete()}},8583:()=>{"use strict";!function(ne){const Ee=ne.performance;function Pe(rt){Ee&&Ee.mark&&Ee.mark(rt)}function De(rt,Ke){Ee&&Ee.measure&&Ee.measure(rt,Ke)}Pe("Zone");const Je=ne.__Zone_symbol_prefix||"__zone_symbol__";function qe(rt){return Je+rt}const pt=!0===ne[qe("forceDuplicateZoneCheck")];if(ne.Zone){if(pt||"function"!=typeof ne.Zone.__symbol__)throw new Error("Zone already loaded.");return ne.Zone}let Ct=(()=>{class rt{constructor(q,we){this._parent=q,this._name=we?we.name||"unnamed":"<root>",this._properties=we&&we.properties||{},this._zoneDelegate=new at(this,this._parent&&this._parent._zoneDelegate,we)}static assertZonePatched(){if(ne.Promise!==ee.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 q=rt.current;for(;q.parent;)q=q.parent;return q}static get current(){return xe.zone}static get currentTask(){return me}static __load_patch(q,we,et=!1){if(ee.hasOwnProperty(q)){if(!et&&pt)throw Error("Already loaded patch: "+q)}else if(!ne["__Zone_disable_"+q]){const vt="Zone:"+q;Pe(vt),ee[q]=we(ne,rt,Ne),De(vt,vt)}}get parent(){return this._parent}get name(){return this._name}get(q){const we=this.getZoneWith(q);if(we)return we._properties[q]}getZoneWith(q){let we=this;for(;we;){if(we._properties.hasOwnProperty(q))return we;we=we._parent}return null}fork(q){if(!q)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,q)}wrap(q,we){if("function"!=typeof q)throw new Error("Expecting function got: "+q);const et=this._zoneDelegate.intercept(this,q,we),vt=this;return function(){return vt.runGuarded(et,this,arguments,we)}}run(q,we,et,vt){xe={parent:xe,zone:this};try{return this._zoneDelegate.invoke(this,q,we,et,vt)}finally{xe=xe.parent}}runGuarded(q,we=null,et,vt){xe={parent:xe,zone:this};try{try{return this._zoneDelegate.invoke(this,q,we,et,vt)}catch(fn){if(this._zoneDelegate.handleError(this,fn))throw fn}}finally{xe=xe.parent}}runTask(q,we,et){if(q.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(q.zone||Ot).name+"; Execution: "+this.name+")");if(q.state===Nt&&(q.type===A||q.type===N))return;const vt=q.state!=hn;vt&&q._transitionTo(hn,Bt),q.runCount++;const fn=me;me=q,xe={parent:xe,zone:this};try{q.type==N&&q.data&&!q.data.isPeriodic&&(q.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,q,we,et)}catch(Re){if(this._zoneDelegate.handleError(this,Re))throw Re}}finally{q.state!==Nt&&q.state!==gn&&(q.type==A||q.data&&q.data.isPeriodic?vt&&q._transitionTo(Bt,hn):(q.runCount=0,this._updateTaskCount(q,-1),vt&&q._transitionTo(Nt,hn,Nt))),xe=xe.parent,me=fn}}scheduleTask(q){if(q.zone&&q.zone!==this){let et=this;for(;et;){if(et===q.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${q.zone.name}`);et=et.parent}}q._transitionTo(rn,Nt);const we=[];q._zoneDelegates=we,q._zone=this;try{q=this._zoneDelegate.scheduleTask(this,q)}catch(et){throw q._transitionTo(gn,rn,Nt),this._zoneDelegate.handleError(this,et),et}return q._zoneDelegates===we&&this._updateTaskCount(q,1),q.state==rn&&q._transitionTo(Bt,rn),q}scheduleMicroTask(q,we,et,vt){return this.scheduleTask(new bt(T,q,we,et,vt,void 0))}scheduleMacroTask(q,we,et,vt,fn){return this.scheduleTask(new bt(N,q,we,et,vt,fn))}scheduleEventTask(q,we,et,vt,fn){return this.scheduleTask(new bt(A,q,we,et,vt,fn))}cancelTask(q){if(q.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(q.zone||Ot).name+"; Execution: "+this.name+")");q._transitionTo(jt,Bt,hn);try{this._zoneDelegate.cancelTask(this,q)}catch(we){throw q._transitionTo(gn,jt),this._zoneDelegate.handleError(this,we),we}return this._updateTaskCount(q,-1),q._transitionTo(Nt,jt),q.runCount=0,q}_updateTaskCount(q,we){const et=q._zoneDelegates;-1==we&&(q._zoneDelegates=null);for(let vt=0;vt<et.length;vt++)et[vt]._updateTaskCount(q.type,we)}}return rt.__symbol__=qe,rt})();const wt={name:"",onHasTask:(rt,Ke,q,we)=>rt.hasTask(q,we),onScheduleTask:(rt,Ke,q,we)=>rt.scheduleTask(q,we),onInvokeTask:(rt,Ke,q,we,et,vt)=>rt.invokeTask(q,we,et,vt),onCancelTask:(rt,Ke,q,we)=>rt.cancelTask(q,we)};class at{constructor(Ke,q,we){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=Ke,this._parentDelegate=q,this._forkZS=we&&(we&&we.onFork?we:q._forkZS),this._forkDlgt=we&&(we.onFork?q:q._forkDlgt),this._forkCurrZone=we&&(we.onFork?this.zone:q._forkCurrZone),this._interceptZS=we&&(we.onIntercept?we:q._interceptZS),this._interceptDlgt=we&&(we.onIntercept?q:q._interceptDlgt),this._interceptCurrZone=we&&(we.onIntercept?this.zone:q._interceptCurrZone),this._invokeZS=we&&(we.onInvoke?we:q._invokeZS),this._invokeDlgt=we&&(we.onInvoke?q:q._invokeDlgt),this._invokeCurrZone=we&&(we.onInvoke?this.zone:q._invokeCurrZone),this._handleErrorZS=we&&(we.onHandleError?we:q._handleErrorZS),this._handleErrorDlgt=we&&(we.onHandleError?q:q._handleErrorDlgt),this._handleErrorCurrZone=we&&(we.onHandleError?this.zone:q._handleErrorCurrZone),this._scheduleTaskZS=we&&(we.onScheduleTask?we:q._scheduleTaskZS),this._scheduleTaskDlgt=we&&(we.onScheduleTask?q:q._scheduleTaskDlgt),this._scheduleTaskCurrZone=we&&(we.onScheduleTask?this.zone:q._scheduleTaskCurrZone),this._invokeTaskZS=we&&(we.onInvokeTask?we:q._invokeTaskZS),this._invokeTaskDlgt=we&&(we.onInvokeTask?q:q._invokeTaskDlgt),this._invokeTaskCurrZone=we&&(we.onInvokeTask?this.zone:q._invokeTaskCurrZone),this._cancelTaskZS=we&&(we.onCancelTask?we:q._cancelTaskZS),this._cancelTaskDlgt=we&&(we.onCancelTask?q:q._cancelTaskDlgt),this._cancelTaskCurrZone=we&&(we.onCancelTask?this.zone:q._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const et=we&&we.onHasTask;(et||q&&q._hasTaskZS)&&(this._hasTaskZS=et?we:wt,this._hasTaskDlgt=q,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=Ke,we.onScheduleTask||(this._scheduleTaskZS=wt,this._scheduleTaskDlgt=q,this._scheduleTaskCurrZone=this.zone),we.onInvokeTask||(this._invokeTaskZS=wt,this._invokeTaskDlgt=q,this._invokeTaskCurrZone=this.zone),we.onCancelTask||(this._cancelTaskZS=wt,this._cancelTaskDlgt=q,this._cancelTaskCurrZone=this.zone))}fork(Ke,q){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,Ke,q):new Ct(Ke,q)}intercept(Ke,q,we){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,Ke,q,we):q}invoke(Ke,q,we,et,vt){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,Ke,q,we,et,vt):q.apply(we,et)}handleError(Ke,q){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,Ke,q)}scheduleTask(Ke,q){let we=q;if(this._scheduleTaskZS)this._hasTaskZS&&we._zoneDelegates.push(this._hasTaskDlgtOwner),we=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,Ke,q),we||(we=q);else if(q.scheduleFn)q.scheduleFn(q);else{if(q.type!=T)throw new Error("Task is missing scheduleFn.");We(q)}return we}invokeTask(Ke,q,we,et){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,Ke,q,we,et):q.callback.apply(we,et)}cancelTask(Ke,q){let we;if(this._cancelTaskZS)we=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,Ke,q);else{if(!q.cancelFn)throw Error("Task is not cancelable");we=q.cancelFn(q)}return we}hasTask(Ke,q){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,Ke,q)}catch(we){this.handleError(Ke,we)}}_updateTaskCount(Ke,q){const we=this._taskCounts,et=we[Ke],vt=we[Ke]=et+q;if(vt<0)throw new Error("More tasks executed then were scheduled.");0!=et&&0!=vt||this.hasTask(this.zone,{microTask:we.microTask>0,macroTask:we.macroTask>0,eventTask:we.eventTask>0,change:Ke})}}class bt{constructor(Ke,q,we,et,vt,fn){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=Ke,this.source=q,this.data=et,this.scheduleFn=vt,this.cancelFn=fn,!we)throw new Error("callback is not defined");this.callback=we;const Re=this;this.invoke=Ke===A&&et&&et.useG?bt.invokeTask:function(){return bt.invokeTask.call(ne,Re,this,arguments)}}static invokeTask(Ke,q,we){Ke||(Ke=this),Oe++;try{return Ke.runCount++,Ke.zone.runTask(Ke,q,we)}finally{1==Oe&&mt(),Oe--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Nt,rn)}_transitionTo(Ke,q,we){if(this._state!==q&&this._state!==we)throw new Error(`${this.type} '${this.source}': can not transition to '${Ke}', expecting state '${q}'${we?" or '"+we+"'":""}, was '${this._state}'.`);this._state=Ke,Ke==Nt&&(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 Vt=qe("setTimeout"),ae=qe("Promise"),Z=qe("then");let Te,G=[],ye=!1;function We(rt){if(0===Oe&&0===G.length)if(Te||ne[ae]&&(Te=ne[ae].resolve(0)),Te){let Ke=Te[Z];Ke||(Ke=Te.then),Ke.call(Te,mt)}else ne[Vt](mt,0);rt&&G.push(rt)}function mt(){if(!ye){for(ye=!0;G.length;){const rt=G;G=[];for(let Ke=0;Ke<rt.length;Ke++){const q=rt[Ke];try{q.zone.runTask(q,null,null)}catch(we){Ne.onUnhandledError(we)}}}Ne.microtaskDrainDone(),ye=!1}}const Ot={name:"NO ZONE"},Nt="notScheduled",rn="scheduling",Bt="scheduled",hn="running",jt="canceling",gn="unknown",T="microTask",N="macroTask",A="eventTask",ee={},Ne={symbol:qe,currentZoneFrame:()=>xe,onUnhandledError:He,microtaskDrainDone:He,scheduleMicroTask:We,showUncaughtError:()=>!Ct[qe("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:He,patchMethod:()=>He,bindArguments:()=>[],patchThen:()=>He,patchMacroTask:()=>He,patchEventPrototype:()=>He,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>He,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>He,wrapWithCurrentZone:()=>He,filterProperties:()=>[],attachOriginToPatched:()=>He,_redefineProperty:()=>He,patchCallbacks:()=>He};let xe={parent:null,zone:new Ct(null,null)},me=null,Oe=0;function He(){}De("Zone","Zone"),ne.Zone=Ct}(typeof window<"u"&&window||typeof self<"u"&&self||global);const X=Object.getOwnPropertyDescriptor,M=Object.defineProperty,r=Object.getPrototypeOf,P=Object.create,_e=Array.prototype.slice,pe="addEventListener",re="removeEventListener",J=Zone.__symbol__(pe),ce=Zone.__symbol__(re),W="true",Y="false",j=Zone.__symbol__("");function z(ne,Ee){return Zone.current.wrap(ne,Ee)}function fe(ne,Ee,Pe,De,Je){return Zone.current.scheduleMacroTask(ne,Ee,Pe,De,Je)}const ge=Zone.__symbol__,Ve=typeof window<"u",Ie=Ve?window:void 0,Be=Ve&&Ie||"object"==typeof self&&self||global,st=[null];function dt(ne,Ee){for(let Pe=ne.length-1;Pe>=0;Pe--)"function"==typeof ne[Pe]&&(ne[Pe]=z(ne[Pe],Ee+"_"+Pe));return ne}function Pt(ne){return!ne||!1!==ne.writable&&!("function"==typeof ne.get&&typeof ne.set>"u")}const Tt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,an=!("nw"in Be)&&typeof Be.process<"u"&&"[object process]"==={}.toString.call(Be.process),Et=!an&&!Tt&&!(!Ve||!Ie.HTMLElement),_n=typeof Be.process<"u"&&"[object process]"==={}.toString.call(Be.process)&&!Tt&&!(!Ve||!Ie.HTMLElement),nn={},te=function(ne){if(!(ne=ne||Be.event))return;let Ee=nn[ne.type];Ee||(Ee=nn[ne.type]=ge("ON_PROPERTY"+ne.type));const Pe=this||ne.target||Be,De=Pe[Ee];let Je;if(Et&&Pe===Ie&&"error"===ne.type){const qe=ne;Je=De&&De.call(this,qe.message,qe.filename,qe.lineno,qe.colno,qe.error),!0===Je&&ne.preventDefault()}else Je=De&&De.apply(this,arguments),null!=Je&&!Je&&ne.preventDefault();return Je};function V(ne,Ee,Pe){let De=X(ne,Ee);if(!De&&Pe&&X(Pe,Ee)&&(De={enumerable:!0,configurable:!0}),!De||!De.configurable)return;const Je=ge("on"+Ee+"patched");if(ne.hasOwnProperty(Je)&&ne[Je])return;delete De.writable,delete De.value;const qe=De.get,pt=De.set,Ct=Ee.substr(2);let wt=nn[Ct];wt||(wt=nn[Ct]=ge("ON_PROPERTY"+Ct)),De.set=function(at){let bt=this;!bt&&ne===Be&&(bt=Be),bt&&(bt[wt]&&bt.removeEventListener(Ct,te),pt&&pt.apply(bt,st),"function"==typeof at?(bt[wt]=at,bt.addEventListener(Ct,te,!1)):bt[wt]=null)},De.get=function(){let at=this;if(!at&&ne===Be&&(at=Be),!at)return null;const bt=at[wt];if(bt)return bt;if(qe){let Vt=qe&&qe.call(this);if(Vt)return De.set.call(this,Vt),"function"==typeof at.removeAttribute&&at.removeAttribute(Ee),Vt}return null},M(ne,Ee,De),ne[Je]=!0}function K(ne,Ee,Pe){if(Ee)for(let De=0;De<Ee.length;De++)V(ne,"on"+Ee[De],Pe);else{const De=[];for(const Je in ne)"on"==Je.substr(0,2)&&De.push(Je);for(let Je=0;Je<De.length;Je++)V(ne,De[Je],Pe)}}const ie=ge("originalInstance");function be(ne){const Ee=Be[ne];if(!Ee)return;Be[ge(ne)]=Ee,Be[ne]=function(){const Je=dt(arguments,ne);switch(Je.length){case 0:this[ie]=new Ee;break;case 1:this[ie]=new Ee(Je[0]);break;case 2:this[ie]=new Ee(Je[0],Je[1]);break;case 3:this[ie]=new Ee(Je[0],Je[1],Je[2]);break;case 4:this[ie]=new Ee(Je[0],Je[1],Je[2],Je[3]);break;default:throw new Error("Arg list too long.")}},ct(Be[ne],Ee);const Pe=new Ee(function(){});let De;for(De in Pe)"XMLHttpRequest"===ne&&"responseBlob"===De||function(Je){"function"==typeof Pe[Je]?Be[ne].prototype[Je]=function(){return this[ie][Je].apply(this[ie],arguments)}:M(Be[ne].prototype,Je,{set:function(qe){"function"==typeof qe?(this[ie][Je]=z(qe,ne+"."+Je),ct(this[ie][Je],qe)):this[ie][Je]=qe},get:function(){return this[ie][Je]}})}(De);for(De in Ee)"prototype"!==De&&Ee.hasOwnProperty(De)&&(Be[ne][De]=Ee[De])}function se(ne,Ee,Pe){let De=ne;for(;De&&!De.hasOwnProperty(Ee);)De=r(De);!De&&ne[Ee]&&(De=ne);const Je=ge(Ee);let qe=null;if(De&&(!(qe=De[Je])||!De.hasOwnProperty(Je))&&(qe=De[Je]=De[Ee],Pt(De&&X(De,Ee)))){const Ct=Pe(qe,Je,Ee);De[Ee]=function(){return Ct(this,arguments)},ct(De[Ee],qe)}return qe}function tt(ne,Ee,Pe){let De=null;function Je(qe){const pt=qe.data;return pt.args[pt.cbIdx]=function(){qe.invoke.apply(this,arguments)},De.apply(pt.target,pt.args),qe}De=se(ne,Ee,qe=>function(pt,Ct){const wt=Pe(pt,Ct);return wt.cbIdx>=0&&"function"==typeof Ct[wt.cbIdx]?fe(wt.name,Ct[wt.cbIdx],wt,Je):qe.apply(pt,Ct)})}function ct(ne,Ee){ne[ge("OriginalDelegate")]=Ee}let Rt=!1,It=!1;function Yn(){if(Rt)return It;Rt=!0;try{const ne=Ie.navigator.userAgent;(-1!==ne.indexOf("MSIE ")||-1!==ne.indexOf("Trident/")||-1!==ne.indexOf("Edge/"))&&(It=!0)}catch{}return It}Zone.__load_patch("ZoneAwarePromise",(ne,Ee,Pe)=>{const De=Object.getOwnPropertyDescriptor,Je=Object.defineProperty,pt=Pe.symbol,Ct=[],wt=!0===ne[pt("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],at=pt("Promise"),bt=pt("then");Pe.onUnhandledError=Re=>{if(Pe.showUncaughtError()){const Fe=Re&&Re.rejection;Fe?console.error("Unhandled Promise rejection:",Fe instanceof Error?Fe.message:Fe,"; Zone:",Re.zone.name,"; Task:",Re.task&&Re.task.source,"; Value:",Fe,Fe instanceof Error?Fe.stack:void 0):console.error(Re)}},Pe.microtaskDrainDone=()=>{for(;Ct.length;){const Re=Ct.shift();try{Re.zone.runGuarded(()=>{throw Re.throwOriginal?Re.rejection:Re})}catch(Fe){Z(Fe)}}};const ae=pt("unhandledPromiseRejectionHandler");function Z(Re){Pe.onUnhandledError(Re);try{const Fe=Ee[ae];"function"==typeof Fe&&Fe.call(this,Re)}catch{}}function G(Re){return Re&&Re.then}function ye(Re){return Re}function Te(Re){return q.reject(Re)}const We=pt("state"),mt=pt("value"),Ot=pt("finally"),Nt=pt("parentPromiseValue"),rn=pt("parentPromiseState"),hn=null,gn=!1;function N(Re,Fe){return nt=>{try{xe(Re,Fe,nt)}catch(R){xe(Re,!1,R)}}}const Ne=pt("currentTaskTrace");function xe(Re,Fe,nt){const R=function(){let Re=!1;return function(nt){return function(){Re||(Re=!0,nt.apply(null,arguments))}}}();if(Re===nt)throw new TypeError("Promise resolved with itself");if(Re[We]===hn){let I=null;try{("object"==typeof nt||"function"==typeof nt)&&(I=nt&&nt.then)}catch(g){return R(()=>{xe(Re,!1,g)})(),Re}if(Fe!==gn&&nt instanceof q&&nt.hasOwnProperty(We)&&nt.hasOwnProperty(mt)&&nt[We]!==hn)Oe(nt),xe(Re,nt[We],nt[mt]);else if(Fe!==gn&&"function"==typeof I)try{I.call(nt,R(N(Re,Fe)),R(N(Re,!1)))}catch(g){R(()=>{xe(Re,!1,g)})()}else{Re[We]=Fe;const g=Re[mt];if(Re[mt]=nt,Re[Ot]===Ot&&!0===Fe&&(Re[We]=Re[rn],Re[mt]=Re[Nt]),Fe===gn&&nt instanceof Error){const k=Ee.currentTask&&Ee.currentTask.data&&Ee.currentTask.data.__creationTrace__;k&&Je(nt,Ne,{configurable:!0,enumerable:!1,writable:!0,value:k})}for(let k=0;k<g.length;)He(Re,g[k++],g[k++],g[k++],g[k++]);if(0==g.length&&Fe==gn){Re[We]=0;let k=nt;try{throw new Error("Uncaught (in promise): "+function qe(Re){return Re&&Re.toString===Object.prototype.toString?(Re.constructor&&Re.constructor.name||"")+": "+JSON.stringify(Re):Re?Re.toString():Object.prototype.toString.call(Re)}(nt)+(nt&&nt.stack?"\n"+nt.stack:""))}catch(le){k=le}wt&&(k.throwOriginal=!0),k.rejection=nt,k.promise=Re,k.zone=Ee.current,k.task=Ee.currentTask,Ct.push(k),Pe.scheduleMicroTask()}}}return Re}const me=pt("rejectionHandledHandler");function Oe(Re){if(0===Re[We]){try{const Fe=Ee[me];Fe&&"function"==typeof Fe&&Fe.call(this,{rejection:Re[mt],promise:Re})}catch{}Re[We]=gn;for(let Fe=0;Fe<Ct.length;Fe++)Re===Ct[Fe].promise&&Ct.splice(Fe,1)}}function He(Re,Fe,nt,R,I){Oe(Re);const g=Re[We],k=g?"function"==typeof R?R:ye:"function"==typeof I?I:Te;Fe.scheduleMicroTask("Promise.then",()=>{try{const le=Re[mt],Ce=!!nt&&Ot===nt[Ot];Ce&&(nt[Nt]=le,nt[rn]=g);const je=Fe.run(k,void 0,Ce&&k!==Te&&k!==ye?[]:[le]);xe(nt,!0,je)}catch(le){xe(nt,!1,le)}},nt)}const Ke=function(){};class q{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(Fe){return xe(new this(null),!0,Fe)}static reject(Fe){return xe(new this(null),gn,Fe)}static race(Fe){let nt,R,I=new this((le,Ce)=>{nt=le,R=Ce});function g(le){nt(le)}function k(le){R(le)}for(let le of Fe)G(le)||(le=this.resolve(le)),le.then(g,k);return I}static all(Fe){return q.allWithCallback(Fe)}static allSettled(Fe){return(this&&this.prototype instanceof q?this:q).allWithCallback(Fe,{thenCallback:R=>({status:"fulfilled",value:R}),errorCallback:R=>({status:"rejected",reason:R})})}static allWithCallback(Fe,nt){let R,I,g=new this((je,kt)=>{R=je,I=kt}),k=2,le=0;const Ce=[];for(let je of Fe){G(je)||(je=this.resolve(je));const kt=le;try{je.then(cn=>{Ce[kt]=nt?nt.thenCallback(cn):cn,k--,0===k&&R(Ce)},cn=>{nt?(Ce[kt]=nt.errorCallback(cn),k--,0===k&&R(Ce)):I(cn)})}catch(cn){I(cn)}k++,le++}return k-=2,0===k&&R(Ce),g}constructor(Fe){const nt=this;if(!(nt instanceof q))throw new Error("Must be an instanceof Promise.");nt[We]=hn,nt[mt]=[];try{Fe&&Fe(N(nt,!0),N(nt,gn))}catch(R){xe(nt,!1,R)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return q}then(Fe,nt){let R=this.constructor[Symbol.species];(!R||"function"!=typeof R)&&(R=this.constructor||q);const I=new R(Ke),g=Ee.current;return this[We]==hn?this[mt].push(g,I,Fe,nt):He(this,g,I,Fe,nt),I}catch(Fe){return this.then(null,Fe)}finally(Fe){let nt=this.constructor[Symbol.species];(!nt||"function"!=typeof nt)&&(nt=q);const R=new nt(Ke);R[Ot]=Ot;const I=Ee.current;return this[We]==hn?this[mt].push(I,R,Fe,Fe):He(this,I,R,Fe,Fe),R}}q.resolve=q.resolve,q.reject=q.reject,q.race=q.race,q.all=q.all;const we=ne[at]=ne.Promise;ne.Promise=q;const et=pt("thenPatched");function vt(Re){const Fe=Re.prototype,nt=De(Fe,"then");if(nt&&(!1===nt.writable||!nt.configurable))return;const R=Fe.then;Fe[bt]=R,Re.prototype.then=function(I,g){return new q((le,Ce)=>{R.call(this,le,Ce)}).then(I,g)},Re[et]=!0}return Pe.patchThen=vt,we&&(vt(we),se(ne,"fetch",Re=>function fn(Re){return function(Fe,nt){let R=Re.apply(Fe,nt);if(R instanceof q)return R;let I=R.constructor;return I[et]||vt(I),R}}(Re))),Promise[Ee.__symbol__("uncaughtPromiseErrors")]=Ct,q}),Zone.__load_patch("toString",ne=>{const Ee=Function.prototype.toString,Pe=ge("OriginalDelegate"),De=ge("Promise"),Je=ge("Error"),qe=function(){if("function"==typeof this){const at=this[Pe];if(at)return"function"==typeof at?Ee.call(at):Object.prototype.toString.call(at);if(this===Promise){const bt=ne[De];if(bt)return Ee.call(bt)}if(this===Error){const bt=ne[Je];if(bt)return Ee.call(bt)}}return Ee.call(this)};qe[Pe]=Ee,Function.prototype.toString=qe;const pt=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":pt.call(this)}});let Kt=!1;if(typeof window<"u")try{const ne=Object.defineProperty({},"passive",{get:function(){Kt=!0}});window.addEventListener("test",ne,ne),window.removeEventListener("test",ne,ne)}catch{Kt=!1}const Xn={useG:!0},En={},Vn={},Rn=new RegExp("^"+j+"(\\w+)(true|false)$"),yn=ge("propagationStopped");function Ln(ne,Ee){const Pe=(Ee?Ee(ne):ne)+Y,De=(Ee?Ee(ne):ne)+W,Je=j+Pe,qe=j+De;En[ne]={},En[ne][Y]=Je,En[ne][W]=qe}function Di(ne,Ee,Pe){const De=Pe&&Pe.add||pe,Je=Pe&&Pe.rm||re,qe=Pe&&Pe.listeners||"eventListeners",pt=Pe&&Pe.rmAll||"removeAllListeners",Ct=ge(De),wt="."+De+":",Vt=function(Te,We,mt){if(Te.isRemoved)return;const Ot=Te.callback;"object"==typeof Ot&&Ot.handleEvent&&(Te.callback=rn=>Ot.handleEvent(rn),Te.originalDelegate=Ot),Te.invoke(Te,We,[mt]);const Nt=Te.options;Nt&&"object"==typeof Nt&&Nt.once&&We[Je].call(We,mt.type,Te.originalDelegate?Te.originalDelegate:Te.callback,Nt)},ae=function(Te){if(!(Te=Te||ne.event))return;const We=this||Te.target||ne,mt=We[En[Te.type][Y]];if(mt)if(1===mt.length)Vt(mt[0],We,Te);else{const Ot=mt.slice();for(let Nt=0;Nt<Ot.length&&(!Te||!0!==Te[yn]);Nt++)Vt(Ot[Nt],We,Te)}},Z=function(Te){if(!(Te=Te||ne.event))return;const We=this||Te.target||ne,mt=We[En[Te.type][W]];if(mt)if(1===mt.length)Vt(mt[0],We,Te);else{const Ot=mt.slice();for(let Nt=0;Nt<Ot.length&&(!Te||!0!==Te[yn]);Nt++)Vt(Ot[Nt],We,Te)}};function G(Te,We){if(!Te)return!1;let mt=!0;We&&void 0!==We.useG&&(mt=We.useG);const Ot=We&&We.vh;let Nt=!0;We&&void 0!==We.chkDup&&(Nt=We.chkDup);let rn=!1;We&&void 0!==We.rt&&(rn=We.rt);let Bt=Te;for(;Bt&&!Bt.hasOwnProperty(De);)Bt=r(Bt);if(!Bt&&Te[De]&&(Bt=Te),!Bt||Bt[Ct])return!1;const hn=We&&We.eventNameToString,jt={},gn=Bt[Ct]=Bt[De],T=Bt[ge(Je)]=Bt[Je],N=Bt[ge(qe)]=Bt[qe],A=Bt[ge(pt)]=Bt[pt];let ee;function Ne(Fe,nt){return!Kt&&"object"==typeof Fe&&Fe?!!Fe.capture:Kt&&nt?"boolean"==typeof Fe?{capture:Fe,passive:!0}:Fe?"object"==typeof Fe&&!1!==Fe.passive?Object.assign(Object.assign({},Fe),{passive:!0}):Fe:{passive:!0}:Fe}We&&We.prepend&&(ee=Bt[ge(We.prepend)]=Bt[We.prepend]);const Ke=mt?function(Fe){if(!jt.isExisting)return gn.call(jt.target,jt.eventName,jt.capture?Z:ae,jt.options)}:function(Fe){return gn.call(jt.target,jt.eventName,Fe.invoke,jt.options)},q=mt?function(Fe){if(!Fe.isRemoved){const nt=En[Fe.eventName];let R;nt&&(R=nt[Fe.capture?W:Y]);const I=R&&Fe.target[R];if(I)for(let g=0;g<I.length;g++)if(I[g]===Fe){I.splice(g,1),Fe.isRemoved=!0,0===I.length&&(Fe.allRemoved=!0,Fe.target[R]=null);break}}if(Fe.allRemoved)return T.call(Fe.target,Fe.eventName,Fe.capture?Z:ae,Fe.options)}:function(Fe){return T.call(Fe.target,Fe.eventName,Fe.invoke,Fe.options)},et=We&&We.diff?We.diff:function(Fe,nt){const R=typeof nt;return"function"===R&&Fe.callback===nt||"object"===R&&Fe.originalDelegate===nt},vt=Zone[ge("UNPATCHED_EVENTS")],fn=ne[ge("PASSIVE_EVENTS")],Re=function(Fe,nt,R,I,g=!1,k=!1){return function(){const le=this||ne;let Ce=arguments[0];We&&We.transferEventName&&(Ce=We.transferEventName(Ce));let je=arguments[1];if(!je)return Fe.apply(this,arguments);if(an&&"uncaughtException"===Ce)return Fe.apply(this,arguments);let kt=!1;if("function"!=typeof je){if(!je.handleEvent)return Fe.apply(this,arguments);kt=!0}if(Ot&&!Ot(Fe,je,le,arguments))return;const cn=Kt&&!!fn&&-1!==fn.indexOf(Ce),Cn=Ne(arguments[2],cn);if(vt)for(let Si=0;Si<vt.length;Si++)if(Ce===vt[Si])return cn?Fe.call(le,Ce,je,Cn):Fe.apply(this,arguments);const Bn=!!Cn&&("boolean"==typeof Cn||Cn.capture),kn=!(!Cn||"object"!=typeof Cn)&&Cn.once,qn=Zone.current;let Nn=En[Ce];Nn||(Ln(Ce,hn),Nn=En[Ce]);const Wt=Nn[Bn?W:Y];let Qn,bi=le[Wt],pi=!1;if(bi){if(pi=!0,Nt)for(let Si=0;Si<bi.length;Si++)if(et(bi[Si],je))return}else bi=le[Wt]=[];const Pi=le.constructor.name,Mi=Vn[Pi];Mi&&(Qn=Mi[Ce]),Qn||(Qn=Pi+nt+(hn?hn(Ce):Ce)),jt.options=Cn,kn&&(jt.options.once=!1),jt.target=le,jt.capture=Bn,jt.eventName=Ce,jt.isExisting=pi;const Ei=mt?Xn:void 0;Ei&&(Ei.taskData=jt);const Gn=qn.scheduleEventTask(Qn,je,Ei,R,I);return jt.target=null,Ei&&(Ei.taskData=null),kn&&(Cn.once=!0),!Kt&&"boolean"==typeof Gn.options||(Gn.options=Cn),Gn.target=le,Gn.capture=Bn,Gn.eventName=Ce,kt&&(Gn.originalDelegate=je),k?bi.unshift(Gn):bi.push(Gn),g?le:void 0}};return Bt[De]=Re(gn,wt,Ke,q,rn),ee&&(Bt.prependListener=Re(ee,".prependListener:",function(Fe){return ee.call(jt.target,jt.eventName,Fe.invoke,jt.options)},q,rn,!0)),Bt[Je]=function(){const Fe=this||ne;let nt=arguments[0];We&&We.transferEventName&&(nt=We.transferEventName(nt));const R=arguments[2],I=!!R&&("boolean"==typeof R||R.capture),g=arguments[1];if(!g)return T.apply(this,arguments);if(Ot&&!Ot(T,g,Fe,arguments))return;const k=En[nt];let le;k&&(le=k[I?W:Y]);const Ce=le&&Fe[le];if(Ce)for(let je=0;je<Ce.length;je++){const kt=Ce[je];if(et(kt,g))return Ce.splice(je,1),kt.isRemoved=!0,0===Ce.length&&(kt.allRemoved=!0,Fe[le]=null,"string"==typeof nt)&&(Fe[j+"ON_PROPERTY"+nt]=null),kt.zone.cancelTask(kt),rn?Fe:void 0}return T.apply(this,arguments)},Bt[qe]=function(){const Fe=this||ne;let nt=arguments[0];We&&We.transferEventName&&(nt=We.transferEventName(nt));const R=[],I=ii(Fe,hn?hn(nt):nt);for(let g=0;g<I.length;g++){const k=I[g];R.push(k.originalDelegate?k.originalDelegate:k.callback)}return R},Bt[pt]=function(){const Fe=this||ne;let nt=arguments[0];if(nt){We&&We.transferEventName&&(nt=We.transferEventName(nt));const R=En[nt];if(R){const k=Fe[R[Y]],le=Fe[R[W]];if(k){const Ce=k.slice();for(let je=0;je<Ce.length;je++){const kt=Ce[je];this[Je].call(this,nt,kt.originalDelegate?kt.originalDelegate:kt.callback,kt.options)}}if(le){const Ce=le.slice();for(let je=0;je<Ce.length;je++){const kt=Ce[je];this[Je].call(this,nt,kt.originalDelegate?kt.originalDelegate:kt.callback,kt.options)}}}}else{const R=Object.keys(Fe);for(let I=0;I<R.length;I++){const k=Rn.exec(R[I]);let le=k&&k[1];le&&"removeListener"!==le&&this[pt].call(this,le)}this[pt].call(this,"removeListener")}if(rn)return this},ct(Bt[De],gn),ct(Bt[Je],T),A&&ct(Bt[pt],A),N&&ct(Bt[qe],N),!0}let ye=[];for(let Te=0;Te<Ee.length;Te++)ye[Te]=G(Ee[Te],Pe);return ye}function ii(ne,Ee){if(!Ee){const qe=[];for(let pt in ne){const Ct=Rn.exec(pt);let wt=Ct&&Ct[1];if(wt&&(!Ee||wt===Ee)){const at=ne[pt];if(at)for(let bt=0;bt<at.length;bt++)qe.push(at[bt])}}return qe}let Pe=En[Ee];Pe||(Ln(Ee),Pe=En[Ee]);const De=ne[Pe[Y]],Je=ne[Pe[W]];return De?Je?De.concat(Je):De.slice():Je?Je.slice():[]}function Tn(ne,Ee){const Pe=ne.Event;Pe&&Pe.prototype&&Ee.patchMethod(Pe.prototype,"stopImmediatePropagation",De=>function(Je,qe){Je[yn]=!0,De&&De.apply(Je,qe)})}function Zt(ne,Ee,Pe,De,Je){const qe=Zone.__symbol__(De);if(Ee[qe])return;const pt=Ee[qe]=Ee[De];Ee[De]=function(Ct,wt,at){return wt&&wt.prototype&&Je.forEach(function(bt){const Vt=`${Pe}.${De}::`+bt,ae=wt.prototype;if(ae.hasOwnProperty(bt)){const Z=ne.ObjectGetOwnPropertyDescriptor(ae,bt);Z&&Z.value?(Z.value=ne.wrapWithCurrentZone(Z.value,Vt),ne._redefineProperty(wt.prototype,bt,Z)):ae[bt]&&(ae[bt]=ne.wrapWithCurrentZone(ae[bt],Vt))}else ae[bt]&&(ae[bt]=ne.wrapWithCurrentZone(ae[bt],Vt))}),pt.call(Ee,Ct,wt,at)},ne.attachOriginToPatched(Ee[De],pt)}const Sn=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],Ni=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],li=["load"],Ue=["blur","error","focus","load","resize","scroll","messageerror"],ue=["bounce","finish","start"],he=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],ze=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],Ae=["close","error","open","message"],ke=["error","message"],Xt=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],Sn,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function pn(ne,Ee,Pe){if(!Pe||0===Pe.length)return Ee;const De=Pe.filter(qe=>qe.target===ne);if(!De||0===De.length)return Ee;const Je=De[0].ignoreProperties;return Ee.filter(qe=>-1===Je.indexOf(qe))}function ft(ne,Ee,Pe,De){ne&&K(ne,pn(ne,Ee,Pe),De)}Zone.__load_patch("util",(ne,Ee,Pe)=>{Pe.patchOnProperties=K,Pe.patchMethod=se,Pe.bindArguments=dt,Pe.patchMacroTask=tt;const De=Ee.__symbol__("BLACK_LISTED_EVENTS"),Je=Ee.__symbol__("UNPATCHED_EVENTS");ne[Je]&&(ne[De]=ne[Je]),ne[De]&&(Ee[De]=Ee[Je]=ne[De]),Pe.patchEventPrototype=Tn,Pe.patchEventTarget=Di,Pe.isIEOrEdge=Yn,Pe.ObjectDefineProperty=M,Pe.ObjectGetOwnPropertyDescriptor=X,Pe.ObjectCreate=P,Pe.ArraySlice=_e,Pe.patchClass=be,Pe.wrapWithCurrentZone=z,Pe.filterProperties=pn,Pe.attachOriginToPatched=ct,Pe._redefineProperty=Object.defineProperty,Pe.patchCallbacks=Zt,Pe.getGlobalObjects=()=>({globalSources:Vn,zoneSymbolEventNames:En,eventNames:Xt,isBrowser:Et,isMix:_n,isNode:an,TRUE_STR:W,FALSE_STR:Y,ZONE_SYMBOL_PREFIX:j,ADD_EVENT_LISTENER_STR:pe,REMOVE_EVENT_LISTENER_STR:re})});const Mn=ge("zoneTask");function bn(ne,Ee,Pe,De){let Je=null,qe=null;Pe+=De;const pt={};function Ct(at){const bt=at.data;return bt.args[0]=function(){return at.invoke.apply(this,arguments)},bt.handleId=Je.apply(ne,bt.args),at}function wt(at){return qe.call(ne,at.data.handleId)}Je=se(ne,Ee+=De,at=>function(bt,Vt){if("function"==typeof Vt[0]){const ae={isPeriodic:"Interval"===De,delay:"Timeout"===De||"Interval"===De?Vt[1]||0:void 0,args:Vt},Z=Vt[0];Vt[0]=function(){try{return Z.apply(this,arguments)}finally{ae.isPeriodic||("number"==typeof ae.handleId?delete pt[ae.handleId]:ae.handleId&&(ae.handleId[Mn]=null))}};const G=fe(Ee,Vt[0],ae,Ct,wt);if(!G)return G;const ye=G.data.handleId;return"number"==typeof ye?pt[ye]=G:ye&&(ye[Mn]=G),ye&&ye.ref&&ye.unref&&"function"==typeof ye.ref&&"function"==typeof ye.unref&&(G.ref=ye.ref.bind(ye),G.unref=ye.unref.bind(ye)),"number"==typeof ye||ye?ye:G}return at.apply(ne,Vt)}),qe=se(ne,Pe,at=>function(bt,Vt){const ae=Vt[0];let Z;"number"==typeof ae?Z=pt[ae]:(Z=ae&&ae[Mn],Z||(Z=ae)),Z&&"string"==typeof Z.type?"notScheduled"!==Z.state&&(Z.cancelFn&&Z.data.isPeriodic||0===Z.runCount)&&("number"==typeof ae?delete pt[ae]:ae&&(ae[Mn]=null),Z.zone.cancelTask(Z)):at.apply(ne,Vt)})}Zone.__load_patch("legacy",ne=>{const Ee=ne[Zone.__symbol__("legacyPatch")];Ee&&Ee()}),Zone.__load_patch("queueMicrotask",(ne,Ee,Pe)=>{Pe.patchMethod(ne,"queueMicrotask",De=>function(Je,qe){Ee.current.scheduleMicroTask("queueMicrotask",qe[0])})}),Zone.__load_patch("timers",ne=>{const Pe="clear";bn(ne,"set",Pe,"Timeout"),bn(ne,"set",Pe,"Interval"),bn(ne,"set",Pe,"Immediate")}),Zone.__load_patch("requestAnimationFrame",ne=>{bn(ne,"request","cancel","AnimationFrame"),bn(ne,"mozRequest","mozCancel","AnimationFrame"),bn(ne,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(ne,Ee)=>{const Pe=["alert","prompt","confirm"];for(let De=0;De<Pe.length;De++)se(ne,Pe[De],(qe,pt,Ct)=>function(wt,at){return Ee.current.run(qe,ne,at,Ct)})}),Zone.__load_patch("EventTarget",(ne,Ee,Pe)=>{(function Ft(ne,Ee){Ee.patchEventPrototype(ne,Ee)})(ne,Pe),function Qt(ne,Ee){if(Zone[Ee.symbol("patchEventTarget")])return;const{eventNames:Pe,zoneSymbolEventNames:De,TRUE_STR:Je,FALSE_STR:qe,ZONE_SYMBOL_PREFIX:pt}=Ee.getGlobalObjects();for(let wt=0;wt<Pe.length;wt++){const at=Pe[wt],ae=pt+(at+qe),Z=pt+(at+Je);De[at]={},De[at][qe]=ae,De[at][Je]=Z}const Ct=ne.EventTarget;Ct&&Ct.prototype&&Ee.patchEventTarget(ne,[Ct&&Ct.prototype])}(ne,Pe);const De=ne.XMLHttpRequestEventTarget;De&&De.prototype&&Pe.patchEventTarget(ne,[De.prototype])}),Zone.__load_patch("MutationObserver",(ne,Ee,Pe)=>{be("MutationObserver"),be("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(ne,Ee,Pe)=>{be("IntersectionObserver")}),Zone.__load_patch("FileReader",(ne,Ee,Pe)=>{be("FileReader")}),Zone.__load_patch("on_property",(ne,Ee,Pe)=>{!function vn(ne,Ee){if(an&&!_n||Zone[ne.symbol("patchEvents")])return;const Pe=typeof WebSocket<"u",De=Ee.__Zone_ignore_on_properties;if(Et){const pt=window,Ct=function In(){try{const ne=Ie.navigator.userAgent;if(-1!==ne.indexOf("MSIE ")||-1!==ne.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:pt,ignoreProperties:["error"]}]:[];ft(pt,Xt.concat(["messageerror"]),De&&De.concat(Ct),r(pt)),ft(Document.prototype,Xt,De),typeof pt.SVGElement<"u"&&ft(pt.SVGElement.prototype,Xt,De),ft(Element.prototype,Xt,De),ft(HTMLElement.prototype,Xt,De),ft(HTMLMediaElement.prototype,Ni,De),ft(HTMLFrameSetElement.prototype,Sn.concat(Ue),De),ft(HTMLBodyElement.prototype,Sn.concat(Ue),De),ft(HTMLFrameElement.prototype,li,De),ft(HTMLIFrameElement.prototype,li,De);const wt=pt.HTMLMarqueeElement;wt&&ft(wt.prototype,ue,De);const at=pt.Worker;at&&ft(at.prototype,ke,De)}const Je=Ee.XMLHttpRequest;Je&&ft(Je.prototype,he,De);const qe=Ee.XMLHttpRequestEventTarget;qe&&ft(qe&&qe.prototype,he,De),typeof IDBIndex<"u"&&(ft(IDBIndex.prototype,ze,De),ft(IDBRequest.prototype,ze,De),ft(IDBOpenDBRequest.prototype,ze,De),ft(IDBDatabase.prototype,ze,De),ft(IDBTransaction.prototype,ze,De),ft(IDBCursor.prototype,ze,De)),Pe&&ft(WebSocket.prototype,Ae,De)}(Pe,ne)}),Zone.__load_patch("customElements",(ne,Ee,Pe)=>{!function At(ne,Ee){const{isBrowser:Pe,isMix:De}=Ee.getGlobalObjects();(Pe||De)&&ne.customElements&&"customElements"in ne&&Ee.patchCallbacks(Ee,ne.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(ne,Pe)}),Zone.__load_patch("XHR",(ne,Ee)=>{!function wt(at){const bt=at.XMLHttpRequest;if(!bt)return;const Vt=bt.prototype;let Z=Vt[J],G=Vt[ce];if(!Z){const T=at.XMLHttpRequestEventTarget;if(T){const N=T.prototype;Z=N[J],G=N[ce]}}const ye="readystatechange",Te="scheduled";function We(T){const N=T.data,A=N.target;A[qe]=!1,A[Ct]=!1;const ee=A[Je];Z||(Z=A[J],G=A[ce]),ee&&G.call(A,ye,ee);const Ne=A[Je]=()=>{if(A.readyState===A.DONE)if(!N.aborted&&A[qe]&&T.state===Te){const me=A[Ee.__symbol__("loadfalse")];if(0!==A.status&&me&&me.length>0){const Oe=T.invoke;T.invoke=function(){const He=A[Ee.__symbol__("loadfalse")];for(let rt=0;rt<He.length;rt++)He[rt]===T&&He.splice(rt,1);!N.aborted&&T.state===Te&&Oe.call(T)},me.push(T)}else T.invoke()}else!N.aborted&&!1===A[qe]&&(A[Ct]=!0)};return Z.call(A,ye,Ne),A[Pe]||(A[Pe]=T),jt.apply(A,N.args),A[qe]=!0,T}function mt(){}function Ot(T){const N=T.data;return N.aborted=!0,gn.apply(N.target,N.args)}const Nt=se(Vt,"open",()=>function(T,N){return T[De]=0==N[2],T[pt]=N[1],Nt.apply(T,N)}),Bt=ge("fetchTaskAborting"),hn=ge("fetchTaskScheduling"),jt=se(Vt,"send",()=>function(T,N){if(!0===Ee.current[hn]||T[De])return jt.apply(T,N);{const A={target:T,url:T[pt],isPeriodic:!1,args:N,aborted:!1},ee=fe("XMLHttpRequest.send",mt,A,We,Ot);T&&!0===T[Ct]&&!A.aborted&&ee.state===Te&&ee.invoke()}}),gn=se(Vt,"abort",()=>function(T,N){const A=function ae(T){return T[Pe]}(T);if(A&&"string"==typeof A.type){if(null==A.cancelFn||A.data&&A.data.aborted)return;A.zone.cancelTask(A)}else if(!0===Ee.current[Bt])return gn.apply(T,N)})}(ne);const Pe=ge("xhrTask"),De=ge("xhrSync"),Je=ge("xhrListener"),qe=ge("xhrScheduled"),pt=ge("xhrURL"),Ct=ge("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",ne=>{ne.navigator&&ne.navigator.geolocation&&function _t(ne,Ee){const Pe=ne.constructor.name;for(let De=0;De<Ee.length;De++){const Je=Ee[De],qe=ne[Je];if(qe){if(!Pt(X(ne,Je)))continue;ne[Je]=(Ct=>{const wt=function(){return Ct.apply(this,dt(arguments,Pe+"."+Je))};return ct(wt,Ct),wt})(qe)}}}(ne.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(ne,Ee)=>{function Pe(De){return function(Je){ii(ne,De).forEach(pt=>{const Ct=ne.PromiseRejectionEvent;if(Ct){const wt=new Ct(De,{promise:Je.promise,reason:Je.rejection});pt.invoke(wt)}})}}ne.PromiseRejectionEvent&&(Ee[ge("unhandledPromiseRejectionHandler")]=Pe("unhandledrejection"),Ee[ge("rejectionHandledHandler")]=Pe("rejectionhandled"))})},655:($e,X,M)=>{"use strict";function re(te,V,K,ie){var tt,be=arguments.length,se=be<3?V:null===ie?ie=Object.getOwnPropertyDescriptor(V,K):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)se=Reflect.decorate(te,V,K,ie);else for(var ct=te.length-1;ct>=0;ct--)(tt=te[ct])&&(se=(be<3?tt(se):be>3?tt(V,K,se):tt(V,K))||se);return be>3&&se&&Object.defineProperty(V,K,se),se}function ce(te,V){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(te,V)}M.d(X,{gn:()=>re,w6:()=>ce})},6895:($e,X,M)=>{"use strict";M.d(X,{HT:()=>re,JF:()=>Lr,K0:()=>ce,Mx:()=>we,NF:()=>wo,O5:()=>R,Ov:()=>Pi,PC:()=>Bn,bD:()=>ei,ez:()=>sn,mk:()=>et,q:()=>_e,sg:()=>Re,tP:()=>kn,w_:()=>J});var r=M(3071);let P=null;function _e(){return P}function re(C){P||(P=C)}class J{}const ce=new r.OlP("DocumentToken");function we(C,x){x=encodeURIComponent(x);for(const w of C.split(";")){const U=w.indexOf("="),[ve,Ge]=-1==U?[w,""]:[w.slice(0,U),w.slice(U+1)];if(ve.trim()===x)return decodeURIComponent(Ge)}return null}let et=(()=>{class C{constructor(w,U,ve,Ge){this._iterableDiffers=w,this._keyValueDiffers=U,this._ngEl=ve,this._renderer=Ge,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(w){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof w?w.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(w){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof w?w.split(/\s+/):w,this._rawClass&&((0,r.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const w=this._iterableDiffer.diff(this._rawClass);w&&this._applyIterableChanges(w)}else if(this._keyValueDiffer){const w=this._keyValueDiffer.diff(this._rawClass);w&&this._applyKeyValueChanges(w)}}_applyKeyValueChanges(w){w.forEachAddedItem(U=>this._toggleClass(U.key,U.currentValue)),w.forEachChangedItem(U=>this._toggleClass(U.key,U.currentValue)),w.forEachRemovedItem(U=>{U.previousValue&&this._toggleClass(U.key,!1)})}_applyIterableChanges(w){w.forEachAddedItem(U=>{if("string"!=typeof U.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,r.AaK)(U.item)}`);this._toggleClass(U.item,!0)}),w.forEachRemovedItem(U=>this._toggleClass(U.item,!1))}_applyClasses(w){w&&(Array.isArray(w)||w instanceof Set?w.forEach(U=>this._toggleClass(U,!0)):Object.keys(w).forEach(U=>this._toggleClass(U,!!w[U])))}_removeClasses(w){w&&(Array.isArray(w)||w instanceof Set?w.forEach(U=>this._toggleClass(U,!1)):Object.keys(w).forEach(U=>this._toggleClass(U,!1)))}_toggleClass(w,U){(w=w.trim())&&w.split(/\s+/g).forEach(ve=>{U?this._renderer.addClass(this._ngEl.nativeElement,ve):this._renderer.removeClass(this._ngEl.nativeElement,ve)})}}return C.\u0275fac=function(w){return new(w||C)(r.Y36(r.ZZ4),r.Y36(r.aQg),r.Y36(r.SBq),r.Y36(r.Qsj))},C.\u0275dir=r.lG2({type:C,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),C})();class fn{constructor(x,w,U,ve){this.$implicit=x,this.ngForOf=w,this.index=U,this.count=ve}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 Re=(()=>{class C{constructor(w,U,ve){this._viewContainer=w,this._template=U,this._differs=ve,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(w){this._ngForOf=w,this._ngForOfDirty=!0}set ngForTrackBy(w){this._trackByFn=w}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(w){w&&(this._template=w)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const w=this._ngForOf;!this._differ&&w&&(this._differ=this._differs.find(w).create(this.ngForTrackBy))}if(this._differ){const w=this._differ.diff(this._ngForOf);w&&this._applyChanges(w)}}_applyChanges(w){const U=this._viewContainer;w.forEachOperation((ve,Ge,ht)=>{if(null==ve.previousIndex)U.createEmbeddedView(this._template,new fn(ve.item,this._ngForOf,-1,-1),null===ht?void 0:ht);else if(null==ht)U.remove(null===Ge?void 0:Ge);else if(null!==Ge){const Mt=U.get(Ge);U.move(Mt,ht),Fe(Mt,ve)}});for(let ve=0,Ge=U.length;ve<Ge;ve++){const Mt=U.get(ve).context;Mt.index=ve,Mt.count=Ge,Mt.ngForOf=this._ngForOf}w.forEachIdentityChange(ve=>{Fe(U.get(ve.currentIndex),ve)})}static ngTemplateContextGuard(w,U){return!0}}return C.\u0275fac=function(w){return new(w||C)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(r.ZZ4))},C.\u0275dir=r.lG2({type:C,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),C})();function Fe(C,x){C.context.$implicit=x.item}let R=(()=>{class C{constructor(w,U){this._viewContainer=w,this._context=new I,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=U}set ngIf(w){this._context.$implicit=this._context.ngIf=w,this._updateView()}set ngIfThen(w){g("ngIfThen",w),this._thenTemplateRef=w,this._thenViewRef=null,this._updateView()}set ngIfElse(w){g("ngIfElse",w),this._elseTemplateRef=w,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(w,U){return!0}}return C.\u0275fac=function(w){return new(w||C)(r.Y36(r.s_b),r.Y36(r.Rgc))},C.\u0275dir=r.lG2({type:C,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),C})();class I{constructor(){this.$implicit=null,this.ngIf=null}}function g(C,x){if(x&&!x.createEmbeddedView)throw new Error(`${C} must be a TemplateRef, but received '${(0,r.AaK)(x)}'.`)}let Bn=(()=>{class C{constructor(w,U,ve){this._ngEl=w,this._differs=U,this._renderer=ve,this._ngStyle=null,this._differ=null}set ngStyle(w){this._ngStyle=w,!this._differ&&w&&(this._differ=this._differs.find(w).create())}ngDoCheck(){if(this._differ){const w=this._differ.diff(this._ngStyle);w&&this._applyChanges(w)}}_setStyle(w,U){const[ve,Ge]=w.split(".");null!=(U=null!=U&&Ge?`${U}${Ge}`:U)?this._renderer.setStyle(this._ngEl.nativeElement,ve,U):this._renderer.removeStyle(this._ngEl.nativeElement,ve)}_applyChanges(w){w.forEachRemovedItem(U=>this._setStyle(U.key,null)),w.forEachAddedItem(U=>this._setStyle(U.key,U.currentValue)),w.forEachChangedItem(U=>this._setStyle(U.key,U.currentValue))}}return C.\u0275fac=function(w){return new(w||C)(r.Y36(r.SBq),r.Y36(r.aQg),r.Y36(r.Qsj))},C.\u0275dir=r.lG2({type:C,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),C})(),kn=(()=>{class C{constructor(w){this._viewContainerRef=w,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(w){if(w.ngTemplateOutlet){const U=this._viewContainerRef;this._viewRef&&U.remove(U.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?U.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&w.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return C.\u0275fac=function(w){return new(w||C)(r.Y36(r.s_b))},C.\u0275dir=r.lG2({type:C,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[r.TTD]}),C})();class Wt{createSubscription(x,w){return x.subscribe({next:w,error:U=>{throw U}})}dispose(x){x.unsubscribe()}onDestroy(x){x.unsubscribe()}}class bi{createSubscription(x,w){return x.then(w,U=>{throw U})}dispose(x){}onDestroy(x){}}const pi=new bi,Qn=new Wt;let Pi=(()=>{class C{constructor(w){this._ref=w,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(w){return this._obj?w!==this._obj?(this._dispose(),this.transform(w)):this._latestValue:(w&&this._subscribe(w),this._latestValue)}_subscribe(w){this._obj=w,this._strategy=this._selectStrategy(w),this._subscription=this._strategy.createSubscription(w,U=>this._updateLatestValue(w,U))}_selectStrategy(w){if((0,r.QGY)(w))return pi;if((0,r.F4k)(w))return Qn;throw function Nn(C,x){return new r.vHH(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(w,U){w===this._obj&&(this._latestValue=U,this._ref.markForCheck())}}return C.\u0275fac=function(w){return new(w||C)(r.Y36(r.sBO,16))},C.\u0275pipe=r.Yjl({name:"async",type:C,pure:!1}),C})(),sn=(()=>{class C{}return C.\u0275fac=function(w){return new(w||C)},C.\u0275mod=r.oAB({type:C}),C.\u0275inj=r.cJS({}),C})();const ei="browser";function wo(C){return C===ei}class Lr{}},5793:($e,X,M)=>{"use strict";M.d(X,{eN:()=>tt,JF:()=>oi,WM:()=>z});var r=M(6895),P=M(3071),_e=M(1086),pe=M(2916),re=M(1709),ce=M(2198),W=M(4850);class Y{}class j{}class z{constructor(ue){this.normalizedNames=new Map,this.lazyUpdate=null,ue?this.lazyInit="string"==typeof ue?()=>{this.headers=new Map,ue.split("\n").forEach(he=>{const ze=he.indexOf(":");if(ze>0){const Ae=he.slice(0,ze),ke=Ae.toLowerCase(),Xt=he.slice(ze+1).trim();this.maybeSetNormalizedName(Ae,ke),this.headers.has(ke)?this.headers.get(ke).push(Xt):this.headers.set(ke,[Xt])}})}:()=>{this.headers=new Map,Object.keys(ue).forEach(he=>{let ze=ue[he];const Ae=he.toLowerCase();"string"==typeof ze&&(ze=[ze]),ze.length>0&&(this.headers.set(Ae,ze),this.maybeSetNormalizedName(he,Ae))})}:this.headers=new Map}has(ue){return this.init(),this.headers.has(ue.toLowerCase())}get(ue){this.init();const he=this.headers.get(ue.toLowerCase());return he&&he.length>0?he[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ue){return this.init(),this.headers.get(ue.toLowerCase())||null}append(ue,he){return this.clone({name:ue,value:he,op:"a"})}set(ue,he){return this.clone({name:ue,value:he,op:"s"})}delete(ue,he){return this.clone({name:ue,value:he,op:"d"})}maybeSetNormalizedName(ue,he){this.normalizedNames.has(he)||this.normalizedNames.set(he,ue)}init(){this.lazyInit&&(this.lazyInit instanceof z?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ue=>this.applyUpdate(ue)),this.lazyUpdate=null))}copyFrom(ue){ue.init(),Array.from(ue.headers.keys()).forEach(he=>{this.headers.set(he,ue.headers.get(he)),this.normalizedNames.set(he,ue.normalizedNames.get(he))})}clone(ue){const he=new z;return he.lazyInit=this.lazyInit&&this.lazyInit instanceof z?this.lazyInit:this,he.lazyUpdate=(this.lazyUpdate||[]).concat([ue]),he}applyUpdate(ue){const he=ue.name.toLowerCase();switch(ue.op){case"a":case"s":let ze=ue.value;if("string"==typeof ze&&(ze=[ze]),0===ze.length)return;this.maybeSetNormalizedName(ue.name,he);const Ae=("a"===ue.op?this.headers.get(he):void 0)||[];Ae.push(...ze),this.headers.set(he,Ae);break;case"d":const ke=ue.value;if(ke){let Xt=this.headers.get(he);if(!Xt)return;Xt=Xt.filter(pn=>-1===ke.indexOf(pn)),0===Xt.length?(this.headers.delete(he),this.normalizedNames.delete(he)):this.headers.set(he,Xt)}else this.headers.delete(he),this.normalizedNames.delete(he)}}forEach(ue){this.init(),Array.from(this.normalizedNames.keys()).forEach(he=>ue(this.normalizedNames.get(he),this.headers.get(he)))}}class fe{encodeKey(ue){return Be(ue)}encodeValue(ue){return Be(ue)}decodeKey(ue){return decodeURIComponent(ue)}decodeValue(ue){return decodeURIComponent(ue)}}const Ve=/%(\d[a-f0-9])/gi,Ie={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Be(Ue){return encodeURIComponent(Ue).replace(Ve,(ue,he)=>Ie[he]??ue)}function ut(Ue){return`${Ue}`}class st{constructor(ue={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ue.encoder||new fe,ue.fromString){if(ue.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ge(Ue,ue){const he=new Map;return Ue.length>0&&Ue.replace(/^\?/,"").split("&").forEach(Ae=>{const ke=Ae.indexOf("="),[Xt,pn]=-1==ke?[ue.decodeKey(Ae),""]:[ue.decodeKey(Ae.slice(0,ke)),ue.decodeValue(Ae.slice(ke+1))],ft=he.get(Xt)||[];ft.push(pn),he.set(Xt,ft)}),he}(ue.fromString,this.encoder)}else ue.fromObject?(this.map=new Map,Object.keys(ue.fromObject).forEach(he=>{const ze=ue.fromObject[he];this.map.set(he,Array.isArray(ze)?ze:[ze])})):this.map=null}has(ue){return this.init(),this.map.has(ue)}get(ue){this.init();const he=this.map.get(ue);return he?he[0]:null}getAll(ue){return this.init(),this.map.get(ue)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ue,he){return this.clone({param:ue,value:he,op:"a"})}appendAll(ue){const he=[];return Object.keys(ue).forEach(ze=>{const Ae=ue[ze];Array.isArray(Ae)?Ae.forEach(ke=>{he.push({param:ze,value:ke,op:"a"})}):he.push({param:ze,value:Ae,op:"a"})}),this.clone(he)}set(ue,he){return this.clone({param:ue,value:he,op:"s"})}delete(ue,he){return this.clone({param:ue,value:he,op:"d"})}toString(){return this.init(),this.keys().map(ue=>{const he=this.encoder.encodeKey(ue);return this.map.get(ue).map(ze=>he+"="+this.encoder.encodeValue(ze)).join("&")}).filter(ue=>""!==ue).join("&")}clone(ue){const he=new st({encoder:this.encoder});return he.cloneFrom=this.cloneFrom||this,he.updates=(this.updates||[]).concat(ue),he}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ue=>this.map.set(ue,this.cloneFrom.map.get(ue))),this.updates.forEach(ue=>{switch(ue.op){case"a":case"s":const he=("a"===ue.op?this.map.get(ue.param):void 0)||[];he.push(ut(ue.value)),this.map.set(ue.param,he);break;case"d":if(void 0===ue.value){this.map.delete(ue.param);break}{let ze=this.map.get(ue.param)||[];const Ae=ze.indexOf(ut(ue.value));-1!==Ae&&ze.splice(Ae,1),ze.length>0?this.map.set(ue.param,ze):this.map.delete(ue.param)}}}),this.cloneFrom=this.updates=null)}}class _t{constructor(){this.map=new Map}set(ue,he){return this.map.set(ue,he),this}get(ue){return this.map.has(ue)||this.map.set(ue,ue.defaultValue()),this.map.get(ue)}delete(ue){return this.map.delete(ue),this}has(ue){return this.map.has(ue)}keys(){return this.map.keys()}}function Tt(Ue){return typeof ArrayBuffer<"u"&&Ue instanceof ArrayBuffer}function an(Ue){return typeof Blob<"u"&&Ue instanceof Blob}function Et(Ue){return typeof FormData<"u"&&Ue instanceof FormData}class nn{constructor(ue,he,ze,Ae){let ke;if(this.url=he,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ue.toUpperCase(),function Pt(Ue){switch(Ue){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ae?(this.body=void 0!==ze?ze:null,ke=Ae):ke=ze,ke&&(this.reportProgress=!!ke.reportProgress,this.withCredentials=!!ke.withCredentials,ke.responseType&&(this.responseType=ke.responseType),ke.headers&&(this.headers=ke.headers),ke.context&&(this.context=ke.context),ke.params&&(this.params=ke.params)),this.headers||(this.headers=new z),this.context||(this.context=new _t),this.params){const Xt=this.params.toString();if(0===Xt.length)this.urlWithParams=he;else{const pn=he.indexOf("?");this.urlWithParams=he+(-1===pn?"?":pn<he.length-1?"&":"")+Xt}}else this.params=new st,this.urlWithParams=he}serializeBody(){return null===this.body?null:Tt(this.body)||an(this.body)||Et(this.body)||function _n(Ue){return typeof URLSearchParams<"u"&&Ue instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof st?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||Et(this.body)?null:an(this.body)?this.body.type||null:Tt(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof st?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(ue={}){const he=ue.method||this.method,ze=ue.url||this.url,Ae=ue.responseType||this.responseType,ke=void 0!==ue.body?ue.body:this.body,Xt=void 0!==ue.withCredentials?ue.withCredentials:this.withCredentials,pn=void 0!==ue.reportProgress?ue.reportProgress:this.reportProgress;let ft=ue.headers||this.headers,vn=ue.params||this.params;const Mn=ue.context??this.context;return void 0!==ue.setHeaders&&(ft=Object.keys(ue.setHeaders).reduce((bn,At)=>bn.set(At,ue.setHeaders[At]),ft)),ue.setParams&&(vn=Object.keys(ue.setParams).reduce((bn,At)=>bn.set(At,ue.setParams[At]),vn)),new nn(he,ze,ke,{params:vn,headers:ft,context:Mn,reportProgress:pn,responseType:Ae,withCredentials:Xt})}}var te=(()=>((te=te||{})[te.Sent=0]="Sent",te[te.UploadProgress=1]="UploadProgress",te[te.ResponseHeader=2]="ResponseHeader",te[te.DownloadProgress=3]="DownloadProgress",te[te.Response=4]="Response",te[te.User=5]="User",te))();class V{constructor(ue,he=200,ze="OK"){this.headers=ue.headers||new z,this.status=void 0!==ue.status?ue.status:he,this.statusText=ue.statusText||ze,this.url=ue.url||null,this.ok=this.status>=200&&this.status<300}}class K extends V{constructor(ue={}){super(ue),this.type=te.ResponseHeader}clone(ue={}){return new K({headers:ue.headers||this.headers,status:void 0!==ue.status?ue.status:this.status,statusText:ue.statusText||this.statusText,url:ue.url||this.url||void 0})}}class ie extends V{constructor(ue={}){super(ue),this.type=te.Response,this.body=void 0!==ue.body?ue.body:null}clone(ue={}){return new ie({body:void 0!==ue.body?ue.body:this.body,headers:ue.headers||this.headers,status:void 0!==ue.status?ue.status:this.status,statusText:ue.statusText||this.statusText,url:ue.url||this.url||void 0})}}class be extends V{constructor(ue){super(ue,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ue.url||"(unknown url)"}`:`Http failure response for ${ue.url||"(unknown url)"}: ${ue.status} ${ue.statusText}`,this.error=ue.error||null}}function se(Ue,ue){return{body:ue,headers:Ue.headers,context:Ue.context,observe:Ue.observe,params:Ue.params,reportProgress:Ue.reportProgress,responseType:Ue.responseType,withCredentials:Ue.withCredentials}}let tt=(()=>{class Ue{constructor(he){this.handler=he}request(he,ze,Ae={}){let ke;if(he instanceof nn)ke=he;else{let ft,vn;ft=Ae.headers instanceof z?Ae.headers:new z(Ae.headers),Ae.params&&(vn=Ae.params instanceof st?Ae.params:new st({fromObject:Ae.params})),ke=new nn(he,ze,void 0!==Ae.body?Ae.body:null,{headers:ft,context:Ae.context,params:vn,reportProgress:Ae.reportProgress,responseType:Ae.responseType||"json",withCredentials:Ae.withCredentials})}const Xt=(0,_e.of)(ke).pipe(function J(Ue,ue){return(0,re.zg)(Ue,ue,1)}(ft=>this.handler.handle(ft)));if(he instanceof nn||"events"===Ae.observe)return Xt;const pn=Xt.pipe((0,ce.h)(ft=>ft instanceof ie));switch(Ae.observe||"body"){case"body":switch(ke.responseType){case"arraybuffer":return pn.pipe((0,W.U)(ft=>{if(null!==ft.body&&!(ft.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ft.body}));case"blob":return pn.pipe((0,W.U)(ft=>{if(null!==ft.body&&!(ft.body instanceof Blob))throw new Error("Response is not a Blob.");return ft.body}));case"text":return pn.pipe((0,W.U)(ft=>{if(null!==ft.body&&"string"!=typeof ft.body)throw new Error("Response is not a string.");return ft.body}));default:return pn.pipe((0,W.U)(ft=>ft.body))}case"response":return pn;default:throw new Error(`Unreachable: unhandled observe type ${Ae.observe}}`)}}delete(he,ze={}){return this.request("DELETE",he,ze)}get(he,ze={}){return this.request("GET",he,ze)}head(he,ze={}){return this.request("HEAD",he,ze)}jsonp(he,ze){return this.request("JSONP",he,{params:(new st).append(ze,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(he,ze={}){return this.request("OPTIONS",he,ze)}patch(he,ze,Ae={}){return this.request("PATCH",he,se(Ae,ze))}post(he,ze,Ae={}){return this.request("POST",he,se(Ae,ze))}put(he,ze,Ae={}){return this.request("PUT",he,se(Ae,ze))}}return Ue.\u0275fac=function(he){return new(he||Ue)(P.LFG(Y))},Ue.\u0275prov=P.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})();class ct{constructor(ue,he){this.next=ue,this.interceptor=he}handle(ue){return this.interceptor.intercept(ue,this.next)}}const Rt=new P.OlP("HTTP_INTERCEPTORS");let It=(()=>{class Ue{intercept(he,ze){return ze.handle(he)}}return Ue.\u0275fac=function(he){return new(he||Ue)},Ue.\u0275prov=P.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})();const Ln=/^\)\]\}',?\n/;let ii=(()=>{class Ue{constructor(he){this.xhrFactory=he}handle(he){if("JSONP"===he.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new pe.y(ze=>{const Ae=this.xhrFactory.build();if(Ae.open(he.method,he.urlWithParams),he.withCredentials&&(Ae.withCredentials=!0),he.headers.forEach((Qt,Ft)=>Ae.setRequestHeader(Qt,Ft.join(","))),he.headers.has("Accept")||Ae.setRequestHeader("Accept","application/json, text/plain, */*"),!he.headers.has("Content-Type")){const Qt=he.detectContentTypeHeader();null!==Qt&&Ae.setRequestHeader("Content-Type",Qt)}if(he.responseType){const Qt=he.responseType.toLowerCase();Ae.responseType="json"!==Qt?Qt:"text"}const ke=he.serializeBody();let Xt=null;const pn=()=>{if(null!==Xt)return Xt;const Qt=Ae.statusText||"OK",Ft=new z(Ae.getAllResponseHeaders()),ne=function Di(Ue){return"responseURL"in Ue&&Ue.responseURL?Ue.responseURL:/^X-Request-URL:/m.test(Ue.getAllResponseHeaders())?Ue.getResponseHeader("X-Request-URL"):null}(Ae)||he.url;return Xt=new K({headers:Ft,status:Ae.status,statusText:Qt,url:ne}),Xt},ft=()=>{let{headers:Qt,status:Ft,statusText:ne,url:Ee}=pn(),Pe=null;204!==Ft&&(Pe=typeof Ae.response>"u"?Ae.responseText:Ae.response),0===Ft&&(Ft=Pe?200:0);let De=Ft>=200&&Ft<300;if("json"===he.responseType&&"string"==typeof Pe){const Je=Pe;Pe=Pe.replace(Ln,"");try{Pe=""!==Pe?JSON.parse(Pe):null}catch(qe){Pe=Je,De&&(De=!1,Pe={error:qe,text:Pe})}}De?(ze.next(new ie({body:Pe,headers:Qt,status:Ft,statusText:ne,url:Ee||void 0})),ze.complete()):ze.error(new be({error:Pe,headers:Qt,status:Ft,statusText:ne,url:Ee||void 0}))},vn=Qt=>{const{url:Ft}=pn(),ne=new be({error:Qt,status:Ae.status||0,statusText:Ae.statusText||"Unknown Error",url:Ft||void 0});ze.error(ne)};let Mn=!1;const bn=Qt=>{Mn||(ze.next(pn()),Mn=!0);let Ft={type:te.DownloadProgress,loaded:Qt.loaded};Qt.lengthComputable&&(Ft.total=Qt.total),"text"===he.responseType&&!!Ae.responseText&&(Ft.partialText=Ae.responseText),ze.next(Ft)},At=Qt=>{let Ft={type:te.UploadProgress,loaded:Qt.loaded};Qt.lengthComputable&&(Ft.total=Qt.total),ze.next(Ft)};return Ae.addEventListener("load",ft),Ae.addEventListener("error",vn),Ae.addEventListener("timeout",vn),Ae.addEventListener("abort",vn),he.reportProgress&&(Ae.addEventListener("progress",bn),null!==ke&&Ae.upload&&Ae.upload.addEventListener("progress",At)),Ae.send(ke),ze.next({type:te.Sent}),()=>{Ae.removeEventListener("error",vn),Ae.removeEventListener("abort",vn),Ae.removeEventListener("load",ft),Ae.removeEventListener("timeout",vn),he.reportProgress&&(Ae.removeEventListener("progress",bn),null!==ke&&Ae.upload&&Ae.upload.removeEventListener("progress",At)),Ae.readyState!==Ae.DONE&&Ae.abort()}})}}return Ue.\u0275fac=function(he){return new(he||Ue)(P.LFG(r.JF))},Ue.\u0275prov=P.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})();const Tn=new P.OlP("XSRF_COOKIE_NAME"),Zt=new P.OlP("XSRF_HEADER_NAME");class hi{}let fi=(()=>{class Ue{constructor(he,ze,Ae){this.doc=he,this.platform=ze,this.cookieName=Ae,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const he=this.doc.cookie||"";return he!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,r.Mx)(he,this.cookieName),this.lastCookieString=he),this.lastToken}}return Ue.\u0275fac=function(he){return new(he||Ue)(P.LFG(r.K0),P.LFG(P.Lbi),P.LFG(Tn))},Ue.\u0275prov=P.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})(),Sn=(()=>{class Ue{constructor(he,ze){this.tokenService=he,this.headerName=ze}intercept(he,ze){const Ae=he.url.toLowerCase();if("GET"===he.method||"HEAD"===he.method||Ae.startsWith("http://")||Ae.startsWith("https://"))return ze.handle(he);const ke=this.tokenService.getToken();return null!==ke&&!he.headers.has(this.headerName)&&(he=he.clone({headers:he.headers.set(this.headerName,ke)})),ze.handle(he)}}return Ue.\u0275fac=function(he){return new(he||Ue)(P.LFG(hi),P.LFG(Zt))},Ue.\u0275prov=P.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})(),ln=(()=>{class Ue{constructor(he,ze){this.backend=he,this.injector=ze,this.chain=null}handle(he){if(null===this.chain){const ze=this.injector.get(Rt,[]);this.chain=ze.reduceRight((Ae,ke)=>new ct(Ae,ke),this.backend)}return this.chain.handle(he)}}return Ue.\u0275fac=function(he){return new(he||Ue)(P.LFG(j),P.LFG(P.zs3))},Ue.\u0275prov=P.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})(),ri=(()=>{class Ue{static disable(){return{ngModule:Ue,providers:[{provide:Sn,useClass:It}]}}static withOptions(he={}){return{ngModule:Ue,providers:[he.cookieName?{provide:Tn,useValue:he.cookieName}:[],he.headerName?{provide:Zt,useValue:he.headerName}:[]]}}}return Ue.\u0275fac=function(he){return new(he||Ue)},Ue.\u0275mod=P.oAB({type:Ue}),Ue.\u0275inj=P.cJS({providers:[Sn,{provide:Rt,useExisting:Sn,multi:!0},{provide:hi,useClass:fi},{provide:Tn,useValue:"XSRF-TOKEN"},{provide:Zt,useValue:"X-XSRF-TOKEN"}]}),Ue})(),oi=(()=>{class Ue{}return Ue.\u0275fac=function(he){return new(he||Ue)},Ue.\u0275mod=P.oAB({type:Ue}),Ue.\u0275inj=P.cJS({providers:[tt,{provide:Y,useClass:ln},ii,{provide:j,useExisting:ii}],imports:[[ri.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Ue})()},3071:($e,X,M)=>{"use strict";M.d(X,{AFp:()=>Wg,ip1:()=>zg,CZH:()=>mu,hGG:()=>e0,z2F:()=>Eu,sBO:()=>Vw,_Vd:()=>Za,EJc:()=>mw,SBq:()=>Us,qLn:()=>Ea,vpe:()=>Rr,OlP:()=>ai,zs3:()=>Ar,ZZ4:()=>Ou,aQg:()=>Iu,soG:()=>yu,h0i:()=>cs,R0b:()=>Cr,Lbi:()=>fw,g9A:()=>Zg,Qsj:()=>pC,FYo:()=>Qp,JOm:()=>Or,Rgc:()=>Ws,dDg:()=>Jg,GfV:()=>Jp,s_b:()=>Ja,ifc:()=>ne,eFA:()=>em,G48:()=>Lw,Gpc:()=>an,X6Q:()=>Rw,_c5:()=>Xw,VLi:()=>Sw,zSh:()=>bc,wAp:()=>Jt,vHH:()=>te,cg1:()=>Yc,kL8:()=>bp,dqk:()=>qe,sIi:()=>Ns,CqO:()=>Tf,QGY:()=>Lc,F4k:()=>Ef,RDi:()=>Hn,AaK:()=>_t,qOj:()=>Tc,TTD:()=>Zr,_Bn:()=>Yp,xp6:()=>ih,uIk:()=>xc,Tol:()=>Yf,Gre:()=>lp,ekj:()=>Gc,Suo:()=>Dg,Xpm:()=>We,lG2:()=>gn,Yz7:()=>ln,cJS:()=>qt,oAB:()=>Bt,Yjl:()=>T,Y36:()=>Rs,_UZ:()=>kc,GkF:()=>Rc,BQk:()=>Ha,ynx:()=>Ba,qZA:()=>Va,TgZ:()=>La,EpF:()=>Df,n5z:()=>ga,LFG:()=>xn,$8M:()=>Jr,NdJ:()=>Vc,CRH:()=>Eg,oxw:()=>Pf,ALo:()=>pg,lcZ:()=>gg,Hsn:()=>If,F$t:()=>Of,Q6J:()=>Fc,s9C:()=>Hc,DdM:()=>ig,VKq:()=>rg,WLB:()=>og,kEZ:()=>sg,l5B:()=>ag,qbA:()=>lg,iGM:()=>Cg,MAs:()=>hf,Jf7:()=>Id,CHM:()=>To,oJD:()=>wd,B6R:()=>mt,kYT:()=>hn,Udp:()=>Uc,YNc:()=>df,W1O:()=>xg,_uU:()=>ep,Oqu:()=>zc,hij:()=>Ua,AsE:()=>Wc,Gf:()=>wg});var r=M(5529),P=M(2654),_e=M(2916),pe=M(6787),re=M(3489);function J(){return function(t){return t.lift(new ce(t))}}class ce{constructor(t){this.connectable=t}call(t,n){const{connectable:i}=this;i._refCount++;const o=new W(t,i),s=n.subscribe(o);return o.closed||(o.connection=i.connect()),s}}class W extends re.L{constructor(t,n){super(t),this.connectable=n}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const n=t._refCount;if(n<=0)return void(this.connection=null);if(t._refCount=n-1,n>1)return void(this.connection=null);const{connection:i}=this,o=t._connection;this.connection=null,o&&(!i||o===i)&&o.unsubscribe()}}class Y extends _e.y{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new P.w,t.add(this.source.subscribe(new z(this.getSubject(),this))),t.closed&&(this._connection=null,t=P.w.EMPTY)),t}refCount(){return J()(this)}}const j=(()=>{const e=Y.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class z extends r.Yc{constructor(t,n){super(t),this.connectable=n}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const n=t._connection;t._refCount=0,t._subject=null,t._connection=null,n&&n.unsubscribe()}}}class Ie{constructor(t,n){this.subjectFactory=t,this.selector=n}call(t,n){const{selector:i}=this,o=this.subjectFactory(),s=i(o).subscribe(t);return s.add(n.subscribe(o)),s}}function Be(){return new r.xQ}function st(e){for(let t in e)if(e[t]===st)return t;throw Error("Could not find renamed property on target object.")}function dt(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function _t(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(_t).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 Pt(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Tt=st({__forward_ref__:st});function an(e){return e.__forward_ref__=an,e.toString=function(){return _t(this())},e}function Et(e){return _n(e)?e():e}function _n(e){return"function"==typeof e&&e.hasOwnProperty(Tt)&&e.__forward_ref__===an}class te extends Error{constructor(t,n){super(function V(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function K(e){return"string"==typeof e?e:null==e?"":String(e)}function ie(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():K(e)}function ct(e,t){const n=t?` in ${t}`:"";throw new te(-201,`No provider for ${ie(e)} found${n}`)}function Tn(e,t){null==e&&function Zt(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function ln(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function qt(e){return{providers:e.providers||[],imports:e.imports||[]}}function ri(e){return oi(e,ue)||oi(e,ze)}function oi(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ue(e){return e&&(e.hasOwnProperty(he)||e.hasOwnProperty(Ae))?e[he]:null}const ue=st({\u0275prov:st}),he=st({\u0275inj:st}),ze=st({ngInjectableDef:st}),Ae=st({ngInjectorDef:st});var ke=(()=>((ke=ke||{})[ke.Default=0]="Default",ke[ke.Host=1]="Host",ke[ke.Self=2]="Self",ke[ke.SkipSelf=4]="SkipSelf",ke[ke.Optional=8]="Optional",ke))();let Xt;function ft(e){const t=Xt;return Xt=e,t}function vn(e,t,n){const i=ri(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&ke.Optional?null:void 0!==t?t:void ct(_t(e),"Injector")}function bn(e){return{toString:e}.toString()}var At=(()=>((At=At||{})[At.OnPush=0]="OnPush",At[At.Default=1]="Default",At))(),ne=(()=>{return(e=ne||(ne={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",ne;var e})();const Ee=typeof globalThis<"u"&&globalThis,Pe=typeof window<"u"&&window,De=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,qe=Ee||typeof global<"u"&&global||Pe||De,wt={},at=[],bt=st({\u0275cmp:st}),Vt=st({\u0275dir:st}),ae=st({\u0275pipe:st}),Z=st({\u0275mod:st}),G=st({\u0275fac:st}),ye=st({__NG_ELEMENT_ID__:st});let Te=0;function We(e){return bn(()=>{const n={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===At.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||at,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ne.Emulated,id:"c",styles:e.styles||at,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,s=e.features,u=e.pipes;return i.id+=Te++,i.inputs=jt(e.inputs,n),i.outputs=jt(e.outputs),s&&s.forEach(h=>h(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(Ot):null,i.pipeDefs=u?()=>("function"==typeof u?u():u).map(Nt):null,i})}function mt(e,t,n){const i=e.\u0275cmp;i.directiveDefs=()=>t.map(Ot),i.pipeDefs=()=>n.map(Nt)}function Ot(e){return N(e)||function A(e){return e[Vt]||null}(e)}function Nt(e){return function ee(e){return e[ae]||null}(e)}const rn={};function Bt(e){return bn(()=>{const t={type:e.type,bootstrap:e.bootstrap||at,declarations:e.declarations||at,imports:e.imports||at,exports:e.exports||at,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(rn[e.id]=e.type),t})}function hn(e,t){return bn(()=>{const n=Ne(e,!0);n.declarations=t.declarations||at,n.imports=t.imports||at,n.exports=t.exports||at})}function jt(e,t){if(null==e)return wt;const n={};for(const i in e)if(e.hasOwnProperty(i)){let o=e[i],s=o;Array.isArray(o)&&(s=o[1],o=o[0]),n[o]=i,t&&(t[o]=s)}return n}const gn=We;function T(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function N(e){return e[bt]||null}function Ne(e,t){const n=e[Z]||null;if(!n&&!0===t)throw new Error(`Type ${_t(e)} does not have '\u0275mod' property.`);return n}const g=16;function pi(e){return Array.isArray(e)&&"object"==typeof e[1]}function Qn(e){return Array.isArray(e)&&!0===e[1]}function Pi(e){return 0!=(8&e.flags)}function Mi(e){return 2==(2&e.flags)}function Ei(e){return 1==(1&e.flags)}function Gn(e){return null!==e.template}function Si(e){return 0!=(512&e[2])}function ir(e,t){return e.hasOwnProperty(G)?e[G]:null}class Yr{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function Zr(){return Qi}function Qi(e){return e.type.prototype.ngOnChanges&&(e.setInput=ro),Do}function Do(){const e=dr(this),t=e?.current;if(t){const n=e.previous;if(n===wt)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function ro(e,t,n,i){const o=dr(e)||function oo(e,t){return e[Dr]=t}(e,{previous:wt,current:null}),s=o.current||(o.current={}),u=o.previous,h=this.declaredInputs[n],m=u[h];s[h]=new Yr(m&&m.currentValue,t,u===wt),e[i]=t}Zr.ngInherit=!0;const Dr="__ngSimpleChanges__";function dr(e){return e[Dr]||null}let Mt;function Hn(e){Mt=e}function An(){return void 0!==Mt?Mt:typeof document<"u"?document:void 0}function Ut(e){return!!e.listen}const ci={createRenderer:(e,t)=>An()};function mn(e){for(;Array.isArray(e);)e=e[0];return e}function zi(e,t){return mn(t[e])}function Jn(e,t){return mn(t[e.index])}function y(e,t){return e.data[t]}function _(e,t){return e[t]}function F(e,t){const n=t[e];return pi(n)?n:n[0]}function Ye(e){return 4==(4&e[2])}function Lt(e){return 128==(128&e[2])}function ni(e,t){return null==t?null:e[t]}function rr(e){e[18]=0}function Wi(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const Yt={lFrame:oa(null),bindingsEnabled:!0};function Qs(){return Yt.bindingsEnabled}function ot(){return Yt.lFrame.lView}function On(){return Yt.lFrame.tView}function To(e){return Yt.lFrame.contextLView=e,e[8]}function gi(){let e=hs();for(;null!==e&&64===e.type;)e=e.parent;return e}function hs(){return Yt.lFrame.currentTNode}function or(e,t){const n=Yt.lFrame;n.currentTNode=e,n.isParent=t}function fs(){return Yt.lFrame.isParent}function ps(){Yt.lFrame.isParent=!1}function xi(){const e=Yt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function qr(){return Yt.lFrame.bindingIndex++}function fr(e){const t=Yt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function ea(e,t){const n=Yt.lFrame;n.bindingIndex=n.bindingRootIndex=e,xo(t)}function xo(e){Yt.lFrame.currentDirectiveIndex=e}function na(){return Yt.lFrame.currentQueryIndex}function ia(e){Yt.lFrame.currentQueryIndex=e}function ll(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function cl(e,t,n){if(n&ke.SkipSelf){let o=t,s=e;for(;!(o=o.parent,null!==o||n&ke.Host||(o=ll(s),null===o||(s=s[15],10&o.type))););if(null===o)return!1;t=o,e=s}const i=Yt.lFrame=ra();return i.currentTNode=t,i.lView=e,!0}function ms(e){const t=ra(),n=e[1];Yt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ra(){const e=Yt.lFrame,t=null===e?null:e.child;return null===t?oa(e):t}function oa(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 sa(){const e=Yt.lFrame;return Yt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const aa=sa;function Po(){const e=sa();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 Ri(){return Yt.lFrame.selectedIndex}function Br(e){Yt.lFrame.selectedIndex=e}function si(){const e=Yt.lFrame;return y(e.tView,e.selectedIndex)}function Oo(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const s=e.data[n].type.prototype,{ngAfterContentInit:u,ngAfterContentChecked:h,ngAfterViewInit:m,ngAfterViewChecked:E,ngOnDestroy:S}=s;u&&(e.contentHooks||(e.contentHooks=[])).push(-n,u),h&&((e.contentHooks||(e.contentHooks=[])).push(n,h),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,h)),m&&(e.viewHooks||(e.viewHooks=[])).push(-n,m),E&&((e.viewHooks||(e.viewHooks=[])).push(n,E),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,E)),null!=S&&(e.destroyHooks||(e.destroyHooks=[])).push(n,S)}}function Io(e,t,n){la(e,t,3,n)}function Ao(e,t,n,i){(3&e[2])===n&&la(e,t,n,i)}function _s(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function la(e,t,n,i){const s=i??-1,u=t.length-1;let h=0;for(let m=void 0!==i?65535&e[18]:0;m<u;m++)if("number"==typeof t[m+1]){if(h=t[m],null!=i&&h>=i)break}else t[m]<0&&(e[18]+=65536),(h<s||-1==s)&&(hl(e,n,t,m),e[18]=(4294901760&e[18])+m+2),m++}function hl(e,t,n,i){const o=n[i]<0,s=n[i+1],h=e[o?-n[i]:n[i]];if(o){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{s.call(h)}finally{}}}else try{s.call(h)}finally{}}class ao{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function ys(e,t,n){const i=Ut(e);let o=0;for(;o<n.length;){const s=n[o];if("number"==typeof s){if(0!==s)break;o++;const u=n[o++],h=n[o++],m=n[o++];i?e.setAttribute(t,h,m,u):t.setAttributeNS(u,h,m)}else{const u=s,h=n[++o];ua(u)?i&&e.setProperty(t,u,h):i?e.setAttribute(t,u,h):t.setAttribute(u,h),o++}}return o}function gl(e){return 3===e||4===e||6===e}function ua(e){return 64===e.charCodeAt(0)}function No(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const o=t[i];"number"==typeof o?n=o:0===n||ml(e,n,o,null,-1===n||2===n?t[++i]:null)}}return e}function ml(e,t,n,i,o){let s=0,u=e.length;if(-1===t)u=-1;else for(;s<e.length;){const h=e[s++];if("number"==typeof h){if(h===t){u=-1;break}if(h>t){u=s-1;break}}}for(;s<e.length;){const h=e[s];if("number"==typeof h)break;if(h===n){if(null===i)return void(null!==o&&(e[s+1]=o));if(i===e[s+1])return void(e[s+2]=o)}s++,null!==i&&s++,null!==o&&s++}-1!==u&&(e.splice(u,0,t),s=u+1),e.splice(s++,0,n),null!==i&&e.splice(s++,0,i),null!==o&&e.splice(s++,0,o)}function _l(e){return-1!==e}function lo(e){return 32767&e}function co(e,t){let n=function Qu(e){return e>>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let da=!0;function vs(e){const t=da;return da=e,t}let Ju=0;function zn(e,t){const n=Qr(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Ki(i.data,e),Ki(t,null),Ki(i.blueprint,null));const o=ko(e,t),s=e.injectorIndex;if(_l(o)){const u=lo(o),h=co(o,t),m=h[1].data;for(let E=0;E<8;E++)t[s+E]=h[u+E]|m[u+E]}return t[s+8]=o,s}function Ki(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Qr(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ko(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,o=t;for(;null!==o;){const s=o[1],u=s.type;if(i=2===u?s.declTNode:1===u?o[6]:null,null===i)return-1;if(n++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function ji(e,t,n){!function Ji(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ye)&&(i=n[ye]),null==i&&(i=n[ye]=Ju++);const o=255&i;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function ha(e,t,n){if(n&ke.Optional)return e;ct(t,"NodeInjector")}function fa(e,t,n,i){if(n&ke.Optional&&void 0===i&&(i=null),0==(n&(ke.Self|ke.Host))){const o=e[9],s=ft(void 0);try{return o?o.get(t,i,n&ke.Optional):vn(t,i,n&ke.Optional)}finally{ft(s)}}return ha(i,t,n)}function pa(e,t,n,i=ke.Default,o){if(null!==e){const s=function ed(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(ye)?e[ye]:void 0;return"number"==typeof t?t>=0?255&t:Ku:t}(n);if("function"==typeof s){if(!cl(t,e,i))return i&ke.Host?ha(o,n,i):fa(t,n,i,o);try{const u=s(i);if(null!=u||i&ke.Optional)return u;ct(n)}finally{aa()}}else if("number"==typeof s){let u=null,h=Qr(e,t),m=-1,E=i&ke.Host?t[g][6]:null;for((-1===h||i&ke.SkipSelf)&&(m=-1===h?ko(e,t):t[h+8],-1!==m&&Dl(i,!1)?(u=t[1],h=lo(m),t=co(m,t)):h=-1);-1!==h;){const S=t[1];if(wl(s,h,S.data)){const $=Xu(h,t,n,u,i,E);if($!==Cl)return $}m=t[h+8],-1!==m&&Dl(i,t[1].data[h+8]===E)&&wl(s,h,t)?(u=S,h=lo(m),t=co(m,t)):h=-1}}}return fa(t,n,i,o)}const Cl={};function Ku(){return new uo(gi(),ot())}function Xu(e,t,n,i,o,s){const u=t[1],h=u.data[e+8],S=bs(h,u,n,null==i?Mi(h)&&da:i!=u&&0!=(3&h.type),o&ke.Host&&s===h);return null!==S?Ro(t,u,S,h):Cl}function bs(e,t,n,i,o){const s=e.providerIndexes,u=t.data,h=1048575&s,m=e.directiveStart,S=s>>20,de=o?h+S:e.directiveEnd;for(let Me=i?h:h+S;Me<de;Me++){const Ze=u[Me];if(Me<m&&n===Ze||Me>=m&&Ze.type===n)return Me}if(o){const Me=u[m];if(Me&&Gn(Me)&&Me.type===n)return m}return null}function Ro(e,t,n,i){let o=e[n];const s=t.data;if(function fl(e){return e instanceof ao}(o)){const u=o;u.resolving&&function be(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new te(-200,`Circular dependency in DI detected for ${e}${n}`)}(ie(s[n]));const h=vs(u.canSeeViewProviders);u.resolving=!0;const m=u.injectImpl?ft(u.injectImpl):null;cl(e,i,ke.Default);try{o=e[n]=u.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Wu(e,t,n){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:s}=t.type.prototype;if(i){const u=Qi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==m&&ft(m),vs(h),u.resolving=!1,aa()}}return o}function wl(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Dl(e,t){return!(e&ke.Self||e&ke.Host&&t)}class uo{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,i){return pa(this._tNode,this._lView,t,i,n)}}function ga(e){return bn(()=>{const t=e.prototype.constructor,n=t[G]||Cs(t),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const s=o[G]||Cs(o);if(s&&s!==n)return s;o=Object.getPrototypeOf(o)}return s=>new s})}function Cs(e){return _n(e)?()=>{const t=Cs(Et(e));return t&&t()}:ir(e)}function Jr(e){return function bl(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let o=0;for(;o<i;){const s=n[o];if(gl(s))break;if(0===s)o+=2;else if("number"==typeof s)for(o++;o<i&&"string"==typeof n[o];)o++;else{if(s===t)return n[o+1];o+=2}}}return null}(gi(),e)}const Xr="__parameters__";function fo(e,t,n){return bn(()=>{const i=function ma(e){return function(...n){if(e){const i=e(...n);for(const o in i)this[o]=i[o]}}}(t);function o(...s){if(this instanceof o)return i.apply(this,s),this;const u=new o(...s);return h.annotation=u,h;function h(m,E,S){const $=m.hasOwnProperty(Xr)?m[Xr]:Object.defineProperty(m,Xr,{value:[]})[Xr];for(;$.length<=S;)$.push(null);return($[S]=$[S]||[]).push(u),m}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class ai{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=ln({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Xi(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),Xi(i,t)):t!==e&&t.push(i)}return t}function pr(e,t){e.forEach(n=>Array.isArray(n)?pr(n,t):t(n))}function Sl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ws(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Vo(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function Yi(e,t,n){let i=go(e,t);return i>=0?e[1|i]=n:(i=~i,function sd(e,t,n,i){let o=e.length;if(o==t)e.push(n,i);else if(1===o)e.push(i,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function va(e,t){const n=go(e,t);if(n>=0)return e[1|n]}function go(e,t){return function Ol(e,t,n){let i=0,o=e.length>>n;for(;o!==i;){const s=i+(o-i>>1),u=e[s<<n];if(t===u)return s<<n;u>t?o=s:i=s+1}return~(o<<n)}(e,t,1)}const Q={},oe="__NG_DI_FLAG__",Se="ngTempTokenPath",Dt=/\n/gm,tn="__source",Dn=st({provide:String,useValue:st});let Gt;function un(e){const t=Gt;return Gt=e,t}function jn(e,t=ke.Default){if(void 0===Gt)throw new te(203,"");return null===Gt?vn(e,void 0,t):Gt.get(e,t&ke.Optional?null:void 0,t)}function xn(e,t=ke.Default){return(function pn(){return Xt}()||jn)(Et(e),t)}const Ii=xn;function yi(e){const t=[];for(let n=0;n<e.length;n++){const i=Et(e[n]);if(Array.isArray(i)){if(0===i.length)throw new te(900,"");let o,s=ke.Default;for(let u=0;u<i.length;u++){const h=i[u],m=ar(h);"number"==typeof m?-1===m?o=h.token:s|=m:o=h}t.push(xn(o,s))}else t.push(xn(i))}return t}function sr(e,t){return e[oe]=t,e.prototype[oe]=t,e}function ar(e){return e[oe]}const Zi=sr(fo("Optional"),8),Mr=sr(fo("SkipSelf"),4);let lr,Ca;function Ho(e){return function mo(){if(void 0===lr&&(lr=null,qe.trustedTypes))try{lr=qe.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return lr}()?.createHTML(e)||e}function dd(e){return function Il(){if(void 0===Ca&&(Ca=null,qe.trustedTypes))try{Ca=qe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ca}()?.createHTML(e)||e}class pd{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function eo(e){return e instanceof pd?e.changingThisBreaksApplicationSecurity:e}class Am{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Ho(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class Fm{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Ho(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=Ho(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let o=n.length-1;0<o;o--){const u=n.item(o).name;("xmlns:ns1"===u||0===u.indexOf("ns1:"))&&t.removeAttribute(u)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const km=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Rm=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function wa(e){return(e=String(e)).match(km)||e.match(Rm)?e:"unsafe:"+e}function xr(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ms(...e){const t={};for(const n of e)for(const i in n)n.hasOwnProperty(i)&&(t[i]=!0);return t}const _d=xr("area,br,col,hr,img,wbr"),yd=xr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),vd=xr("rp,rt"),Al=Ms(_d,Ms(yd,xr("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")),Ms(vd,xr("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")),Ms(vd,yd)),Fl=xr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Nl=xr("srcset"),bd=Ms(Fl,Nl,xr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),xr("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")),Lm=xr("script,style,template");class Vm{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,i=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?i=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,i&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=this.checkClobberedElement(n,n.nextSibling);if(o){n=o;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Al.hasOwnProperty(n))return this.sanitizedSomething=!0,!Lm.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const i=t.attributes;for(let o=0;o<i.length;o++){const s=i.item(o),u=s.name,h=u.toLowerCase();if(!bd.hasOwnProperty(h)){this.sanitizedSomething=!0;continue}let m=s.value;Fl[h]&&(m=wa(m)),Nl[h]&&(e=m,m=(e=String(e)).split(",").map(t=>wa(t.trim())).join(", ")),this.buf.push(" ",u,'="',Cd(m),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Al.hasOwnProperty(n)&&!_d.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Cd(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Bm=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Hm=/([^\#-~ |!])/g;function Cd(e){return e.replace(/&/g,"&").replace(Bm,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Hm,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Da;function kl(e){return"content"in e&&function Um(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var wi=(()=>((wi=wi||{})[wi.NONE=0]="NONE",wi[wi.HTML=1]="HTML",wi[wi.STYLE=2]="STYLE",wi[wi.SCRIPT=3]="SCRIPT",wi[wi.URL=4]="URL",wi[wi.RESOURCE_URL=5]="RESOURCE_URL",wi))();function wd(e){const t=function Ss(){const e=ot();return e&&e[12]}();return t?dd(t.sanitize(wi.HTML,e)||""):function Ts(e,t){const n=function Im(e){return e instanceof pd&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}(e,"HTML")?dd(eo(e)):function jm(e,t){let n=null;try{Da=Da||function gd(e){const t=new Fm(e);return function Nm(){try{return!!(new window.DOMParser).parseFromString(Ho(""),"text/html")}catch{return!1}}()?new Am(t):t}(e);let i=t?String(t):"";n=Da.getInertBodyElement(i);let o=5,s=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=s,s=n.innerHTML,n=Da.getInertBodyElement(i)}while(i!==s);return Ho((new Vm).sanitizeChildren(kl(n)||n))}finally{if(n){const i=kl(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}(An(),K(e))}const Md="__ngContext__";function Bi(e,t){e[Md]=t}function Ll(e){const t=function xs(e){return e[Md]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Bl(e){return e.ngOriginalError}function r_(e,...t){e.error(...t)}class Ea{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=function i_(e){return e&&e.ngErrorLogger||r_}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Bl(t);for(;n&&Bl(n);)n=Bl(n);return n||null}}const p_=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(qe))();function Id(e){return e.ownerDocument.defaultView}function Pr(e){return e instanceof Function?e():e}var Or=(()=>((Or=Or||{})[Or.Important=1]="Important",Or[Or.DashCase=2]="DashCase",Or))();function jl(e,t){return undefined(e,t)}function Ps(e){const t=e[3];return Qn(t)?t[3]:t}function Ul(e){return Rd(e[13])}function Gl(e){return Rd(e[4])}function Rd(e){for(;null!==e&&!Qn(e);)e=e[4];return e}function Uo(e,t,n,i,o){if(null!=i){let s,u=!1;Qn(i)?s=i:pi(i)&&(u=!0,i=i[0]);const h=mn(i);0===e&&null!==n?null==o?Ud(t,n,h):_o(t,n,h,o||null,!0):1===e&&null!==n?_o(t,n,h,o||null,!0):2===e?function qd(e,t,n){const i=Ta(e,t);i&&function S_(e,t,n,i){Ut(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,h,u):3===e&&t.destroyNode(h),null!=s&&function O_(e,t,n,i,o){const s=n[7];s!==mn(n)&&Uo(t,e,i,s,o);for(let h=10;h<n.length;h++){const m=n[h];Os(m[1],m,e,t,i,s)}}(t,e,s,n,o)}}function zl(e,t,n){if(Ut(e))return e.createElement(t,n);{const i=null!==n?function ht(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(n):null;return null===i?e.createElement(t):e.createElementNS(i,t)}}function Vd(e,t){const n=e[9],i=n.indexOf(t),o=t[3];1024&t[2]&&(t[2]&=-1025,Wi(o,-1)),n.splice(i,1)}function Wl(e,t){if(e.length<=10)return;const n=10+t,i=e[n];if(i){const o=i[17];null!==o&&o!==e&&Vd(o,i),t>0&&(e[n-1][4]=i[4]);const s=ws(e,10+t);!function v_(e,t){Os(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const u=s[19];null!==u&&u.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Bd(e,t){if(!(256&t[2])){const n=t[11];Ut(n)&&n.destroyNode&&Os(e,t,n,3,null,null),function w_(e){let t=e[13];if(!t)return Yl(e[1],e);for(;t;){let n=null;if(pi(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)pi(t)&&Yl(t[1],t),t=t[3];null===t&&(t=e),pi(t)&&Yl(t[1],t),n=t&&t[4]}t=n}}(t)}}function Yl(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function M_(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const o=t[n[i]];if(!(o instanceof ao)){const s=n[i+1];if(Array.isArray(s))for(let u=0;u<s.length;u+=2){const h=o[s[u]],m=s[u+1];try{m.call(h)}finally{}}else try{s.call(o)}finally{}}}}(e,t),function T_(e,t){const n=e.cleanup,i=t[7];let o=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const u=n[s+1],h="function"==typeof u?u(t):mn(t[u]),m=i[o=n[s+2]],E=n[s+3];"boolean"==typeof E?h.removeEventListener(n[s],m,E):E>=0?i[o=E]():i[o=-E].unsubscribe(),s+=2}else{const u=i[o=n[s+1]];n[s].call(u)}if(null!==i){for(let s=o+1;s<i.length;s++)i[s]();t[7]=null}}(e,t),1===t[1].type&&Ut(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&Qn(t[3])){n!==t[3]&&Vd(n,t);const i=t[19];null!==i&&i.detachView(e)}}}function Hd(e,t,n){return function jd(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){const o=e.data[i.directiveStart].encapsulation;if(o===ne.None||o===ne.Emulated)return null}return Jn(i,n)}(e,t.parent,n)}function _o(e,t,n,i,o){Ut(e)?e.insertBefore(t,n,i,o):t.insertBefore(n,i,o)}function Ud(e,t,n){Ut(e)?e.appendChild(t,n):t.appendChild(n)}function Gd(e,t,n,i,o){null!==i?_o(e,t,n,i,o):Ud(e,t,n)}function Ta(e,t){return Ut(e)?e.parentNode(t):t.parentNode}function $d(e,t,n){return Wd(e,t,n)}let Wd=function zd(e,t,n){return 40&e.type?Jn(e,n):null};function Ma(e,t,n,i){const o=Hd(e,i,t),s=t[11],h=$d(i.parent||t[6],i,t);if(null!=o)if(Array.isArray(n))for(let m=0;m<n.length;m++)Gd(s,o,n[m],h,!1);else Gd(s,o,n,h,!1)}function Sa(e,t){if(null!==t){const n=t.type;if(3&n)return Jn(t,e);if(4&n)return ql(-1,e[t.index]);if(8&n){const i=t.child;if(null!==i)return Sa(e,i);{const o=e[t.index];return Qn(o)?ql(-1,o):mn(o)}}if(32&n)return jl(t,e)()||mn(e[t.index]);{const i=Zd(e,t);return null!==i?Array.isArray(i)?i[0]:Sa(Ps(e[g]),i):Sa(e,t.next)}}return null}function Zd(e,t){return null!==t?e[g][6].projection[t.projection]:null}function ql(e,t){const n=10+e+1;if(n<t.length){const i=t[n],o=i[1].firstChild;if(null!==o)return Sa(i,o)}return t[7]}function Ql(e,t,n,i,o,s,u){for(;null!=n;){const h=i[n.index],m=n.type;if(u&&0===t&&(h&&Bi(mn(h),i),n.flags|=4),64!=(64&n.flags))if(8&m)Ql(e,t,n.child,i,o,s,!1),Uo(t,e,o,h,s);else if(32&m){const E=jl(n,i);let S;for(;S=E();)Uo(t,e,o,S,s);Uo(t,e,o,h,s)}else 16&m?Qd(e,t,i,n,o,s):Uo(t,e,o,h,s);n=u?n.projectionNext:n.next}}function Os(e,t,n,i,o,s){Ql(n,i,e.firstChild,t,o,s,!1)}function Qd(e,t,n,i,o,s){const u=n[g],m=u[6].projection[i.projection];if(Array.isArray(m))for(let E=0;E<m.length;E++)Uo(t,e,o,m[E],s);else Ql(e,t,m,u[3],o,s,!0)}function Jd(e,t,n){Ut(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Jl(e,t,n){Ut(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function Kd(e,t,n){let i=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const s=t.length;if(o+s===i||e.charCodeAt(o+s)<=32)return o}n=o+1}}const Xd="ng-template";function A_(e,t,n){let i=0;for(;i<e.length;){let o=e[i++];if(n&&"class"===o){if(o=e[i],-1!==Kd(o.toLowerCase(),t,0))return!0}else if(1===o){for(;i<e.length&&"string"==typeof(o=e[i++]);)if(o.toLowerCase()===t)return!0;return!1}}return!1}function eh(e){return 4===e.type&&e.value!==Xd}function F_(e,t,n){return t===(4!==e.type||n?e.value:Xd)}function N_(e,t,n){let i=4;const o=e.attrs||[],s=function L_(e){for(let t=0;t<e.length;t++)if(gl(e[t]))return t;return e.length}(o);let u=!1;for(let h=0;h<t.length;h++){const m=t[h];if("number"!=typeof m){if(!u)if(4&i){if(i=2|1&i,""!==m&&!F_(e,m,n)||""===m&&1===t.length){if(mr(i))return!1;u=!0}}else{const E=8&i?m:t[++h];if(8&i&&null!==e.attrs){if(!A_(e.attrs,E,n)){if(mr(i))return!1;u=!0}continue}const $=k_(8&i?"class":m,o,eh(e),n);if(-1===$){if(mr(i))return!1;u=!0;continue}if(""!==E){let de;de=$>s?"":o[$+1].toLowerCase();const Me=8&i?de:null;if(Me&&-1!==Kd(Me,E,0)||2&i&&E!==de){if(mr(i))return!1;u=!0}}}}else{if(!u&&!mr(i)&&!mr(m))return!1;if(u&&mr(m))continue;u=!1,i=m|1&i}}return mr(i)||u}function mr(e){return 0==(1&e)}function k_(e,t,n,i){if(null===t)return-1;let o=0;if(i||!n){let s=!1;for(;o<t.length;){const u=t[o];if(u===e)return o;if(3===u||6===u)s=!0;else{if(1===u||2===u){let h=t[++o];for(;"string"==typeof h;)h=t[++o];continue}if(4===u)break;if(0===u){o+=4;continue}}o+=s?1:2}return-1}return function V_(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function th(e,t,n=!1){for(let i=0;i<t.length;i++)if(N_(e,t[i],n))return!0;return!1}function B_(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let o=0;o<e.length;o++)if(e[o]!==i[o])continue e;return!0}}return!1}function nh(e,t){return e?":not("+t.trim()+")":t}function H_(e){let t=e[0],n=1,i=2,o="",s=!1;for(;n<e.length;){let u=e[n];if("string"==typeof u)if(2&i){const h=e[++n];o+="["+u+(h.length>0?'="'+h+'"':"")+"]"}else 8&i?o+="."+u:4&i&&(o+=" "+u);else""!==o&&!mr(u)&&(t+=nh(s,o),o=""),i=u,s=s||!mr(i);n++}return""!==o&&(t+=nh(s,o)),t}const dn={};function ih(e){rh(On(),ot(),Ri()+e,!1)}function rh(e,t,n,i){if(!i)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&Io(t,s,n)}else{const s=e.preOrderHooks;null!==s&&Ao(t,s,0,n)}Br(n)}function xa(e,t){return e<<17|t<<2}function _r(e){return e>>17&32767}function Kl(e){return 2|e}function Gr(e){return(131068&e)>>2}function Xl(e,t){return-131069&e|t<<2}function ec(e){return 1|e}function gh(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const o=n[i],s=n[i+1];if(-1!==s){const u=e.data[s];ia(o),u.contentQueries(2,t[s],s)}}}function Is(e,t,n,i,o,s,u,h,m,E){const S=t.blueprint.slice();return S[0]=o,S[2]=140|i,rr(S),S[3]=S[15]=e,S[8]=n,S[10]=u||e&&e[10],S[11]=h||e&&e[11],S[12]=m||e&&e[12]||null,S[9]=E||e&&e[9]||null,S[6]=s,S[g]=2==t.type?e[g]:S,S}function Go(e,t,n,i,o){let s=e.data[t];if(null===s)s=function cc(e,t,n,i,o){const s=hs(),u=fs(),m=e.data[t]=function ry(e,t,n,i,o,s){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,u?s:s&&s.parent,n,t,i,o);return null===e.firstChild&&(e.firstChild=m),null!==s&&(u?null==s.child&&null!==m.parent&&(s.child=m):null===s.next&&(s.next=m)),m}(e,t,n,i,o),function al(){return Yt.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=o;const u=function so(){const e=Yt.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();s.injectorIndex=null===u?-1:u.injectorIndex}return or(s,!0),s}function $o(e,t,n,i){if(0===n)return-1;const o=t.length;for(let s=0;s<n;s++)t.push(i),e.blueprint.push(i),e.data.push(null);return o}function As(e,t,n){ms(t);try{const i=e.viewQuery;null!==i&&yc(1,i,n);const o=e.template;null!==o&&mh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&gh(e,t),e.staticViewQueries&&yc(2,e.viewQuery,n);const s=e.components;null!==s&&function ty(e,t){for(let n=0;n<t.length;n++)wy(e,t[n])}(t,s)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{t[2]&=-5,Po()}}function zo(e,t,n,i){const o=t[2];if(256!=(256&o)){ms(t);try{rr(t),function Ks(e){return Yt.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&mh(e,t,n,2,i);const u=3==(3&o);if(u){const E=e.preOrderCheckHooks;null!==E&&Io(t,E,null)}else{const E=e.preOrderHooks;null!==E&&Ao(t,E,0,null),_s(t,0)}if(function by(e){for(let t=Ul(e);null!==t;t=Gl(t)){if(!t[2])continue;const n=t[9];for(let i=0;i<n.length;i++){const o=n[i],s=o[3];0==(1024&o[2])&&Wi(s,1),o[2]|=1024}}}(t),function vy(e){for(let t=Ul(e);null!==t;t=Gl(t))for(let n=10;n<t.length;n++){const i=t[n],o=i[1];Lt(i)&&zo(o,i,o.template,i[8])}}(t),null!==e.contentQueries&&gh(e,t),u){const E=e.contentCheckHooks;null!==E&&Io(t,E)}else{const E=e.contentHooks;null!==E&&Ao(t,E,1),_s(t,1)}!function X_(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let i=0;i<n.length;i++){const o=n[i];if(o<0)Br(~o);else{const s=o,u=n[++i],h=n[++i];ea(u,s),h(2,t[s])}}}finally{Br(-1)}}(e,t);const h=e.components;null!==h&&function ey(e,t){for(let n=0;n<t.length;n++)Cy(e,t[n])}(t,h);const m=e.viewQuery;if(null!==m&&yc(2,m,i),u){const E=e.viewCheckHooks;null!==E&&Io(t,E)}else{const E=e.viewHooks;null!==E&&Ao(t,E,2),_s(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[2]&=-73,1024&t[2]&&(t[2]&=-1025,Wi(t[3],-1))}finally{Po()}}}function ny(e,t,n,i){const o=t[10],u=Ye(t);try{!u&&o.begin&&o.begin(),u&&As(e,t,i),zo(e,t,n,i)}finally{!u&&o.end&&o.end()}}function mh(e,t,n,i,o){const s=Ri(),u=2&i;try{Br(-1),u&&t.length>20&&rh(e,t,20,!1),n(i,o)}finally{Br(s)}}function _h(e,t,n){if(Pi(t)){const o=t.directiveEnd;for(let s=t.directiveStart;s<o;s++){const u=e.data[s];u.contentQueries&&u.contentQueries(1,n[s],s)}}}function uc(e,t,n){!Qs()||(function dy(e,t,n,i){const o=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||zn(n,t),Bi(i,t);const u=n.initialInputs;for(let h=o;h<s;h++){const m=e.data[h],E=Gn(m);E&&my(t,n,m);const S=Ro(t,e,h,n);Bi(S,t),null!==u&&_y(0,h-o,S,m,0,u),E&&(F(n.index,t)[8]=S)}}(e,t,n,Jn(n,t)),128==(128&n.flags)&&function hy(e,t,n){const i=n.directiveStart,o=n.directiveEnd,u=n.index,h=function ta(){return Yt.lFrame.currentDirectiveIndex}();try{Br(u);for(let m=i;m<o;m++){const E=e.data[m],S=t[m];xo(m),(null!==E.hostBindings||0!==E.hostVars||null!==E.hostAttrs)&&Th(E,S)}}finally{Br(-1),xo(h)}}(e,t,n))}function dc(e,t,n=Jn){const i=t.localNames;if(null!==i){let o=t.index+1;for(let s=0;s<i.length;s+=2){const u=i[s+1],h=-1===u?n(t,e):e[u];e[o++]=h}}}function yh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Ia(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Ia(e,t,n,i,o,s,u,h,m,E){const S=20+i,$=S+o,de=function iy(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:dn);return n}(S,$),Me="function"==typeof E?E():E;return de[1]={type:e,blueprint:de,template:n,queries:null,viewQuery:h,declTNode:t,data:de.slice().fill(null,S),bindingStartIndex:S,expandoStartIndex:$,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 u?u():u,firstChild:null,schemas:m,consts:Me,incompleteFirstPass:!1}}function Ch(e,t,n,i){const o=Ih(t);null===n?o.push(i):(o.push(n),e.firstCreatePass&&Ah(e).push(i,o.length-1))}function wh(e,t,n){for(let i in e)if(e.hasOwnProperty(i)){const o=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,o):n[i]=[t,o]}return n}function tr(e,t,n,i,o,s,u,h){const m=Jn(t,n);let S,E=t.inputs;!h&&null!=E&&(S=E[i])?(kh(e,n,S,i,o),Mi(t)&&function ay(e,t){const n=F(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i=function sy(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),o=null!=u?u(o,t.value||"",i):o,Ut(s)?s.setProperty(m,i,o):ua(i)||(m.setProperty?m.setProperty(i,o):m[i]=o))}function hc(e,t,n,i){let o=!1;if(Qs()){const s=function fy(e,t,n){const i=e.directiveRegistry;let o=null;if(i)for(let s=0;s<i.length;s++){const u=i[s];th(n,u.selectors,!1)&&(o||(o=[]),ji(zn(n,t),e,u.type),Gn(u)?(Mh(e,n),o.unshift(u)):o.push(u))}return o}(e,t,n),u=null===i?null:{"":-1};if(null!==s){o=!0,Sh(n,e.data.length,s.length);for(let S=0;S<s.length;S++){const $=s[S];$.providersResolver&&$.providersResolver($)}let h=!1,m=!1,E=$o(e,t,s.length,null);for(let S=0;S<s.length;S++){const $=s[S];n.mergedAttrs=No(n.mergedAttrs,$.hostAttrs),xh(e,n,t,E,$),gy(E,$,u),null!==$.contentQueries&&(n.flags|=8),(null!==$.hostBindings||null!==$.hostAttrs||0!==$.hostVars)&&(n.flags|=128);const de=$.type.prototype;!h&&(de.ngOnChanges||de.ngOnInit||de.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),h=!0),!m&&(de.ngOnChanges||de.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),m=!0),E++}!function oy(e,t){const i=t.directiveEnd,o=e.data,s=t.attrs,u=[];let h=null,m=null;for(let E=t.directiveStart;E<i;E++){const S=o[E],$=S.inputs,de=null===s||eh(t)?null:yy($,s);u.push(de),h=wh($,E,h),m=wh(S.outputs,E,m)}null!==h&&(h.hasOwnProperty("class")&&(t.flags|=16),h.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=u,t.inputs=h,t.outputs=m}(e,n)}u&&function py(e,t,n){if(t){const i=e.localNames=[];for(let o=0;o<t.length;o+=2){const s=n[t[o+1]];if(null==s)throw new te(-301,!1);i.push(t[o],s)}}}(n,i,u)}return n.mergedAttrs=No(n.mergedAttrs,n.attrs),o}function Eh(e,t,n,i,o,s){const u=s.hostBindings;if(u){let h=e.hostBindingOpCodes;null===h&&(h=e.hostBindingOpCodes=[]);const m=~t.index;(function uy(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(h)!=m&&h.push(m),h.push(i,o,u)}}function Th(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Mh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function gy(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;Gn(t)&&(n[""]=e)}}function Sh(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function xh(e,t,n,i,o){e.data[i]=o;const s=o.factory||(o.factory=ir(o.type)),u=new ao(s,Gn(o),null);e.blueprint[i]=u,n[i]=u,Eh(e,t,0,i,$o(e,n,o.hostVars,dn),o)}function my(e,t,n){const i=Jn(t,e),o=yh(n),s=e[10],u=Aa(e,Is(e,o,null,n.onPush?64:16,i,t,s,s.createRenderer(i,n),null,null));e[t.index]=u}function Ir(e,t,n,i,o,s){const u=Jn(e,t);!function fc(e,t,n,i,o,s,u){if(null==s)Ut(e)?e.removeAttribute(t,o,n):t.removeAttribute(o);else{const h=null==u?K(s):u(s,i||"",o);Ut(e)?e.setAttribute(t,o,h,n):n?t.setAttributeNS(n,o,h):t.setAttribute(o,h)}}(t[11],u,s,e.value,n,i,o)}function _y(e,t,n,i,o,s){const u=s[t];if(null!==u){const h=i.setInput;for(let m=0;m<u.length;){const E=u[m++],S=u[m++],$=u[m++];null!==h?i.setInput(n,$,E,S):n[S]=$}}}function yy(e,t){let n=null,i=0;for(;i<t.length;){const o=t[i];if(0!==o)if(5!==o){if("number"==typeof o)break;e.hasOwnProperty(o)&&(null===n&&(n=[]),n.push(o,e[o],t[i+1])),i+=2}else i+=2;else i+=4}return n}function Ph(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function Cy(e,t){const n=F(t,e);if(Lt(n)){const i=n[1];80&n[2]?zo(i,n,i.template,n[8]):n[5]>0&&pc(n)}}function pc(e){for(let i=Ul(e);null!==i;i=Gl(i))for(let o=10;o<i.length;o++){const s=i[o];if(1024&s[2]){const u=s[1];zo(u,s,u.template,s[8])}else s[5]>0&&pc(s)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const o=F(n[i],e);Lt(o)&&o[5]>0&&pc(o)}}function wy(e,t){const n=F(t,e),i=n[1];(function Dy(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(i,n),As(i,n,n[8])}function Aa(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function gc(e){for(;e;){e[2]|=64;const t=Ps(e);if(Si(e)&&!t)return e;e=t}return null}function Oh(e){!function mc(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],i=Ll(n),o=i[1];ny(o,i,o.template,n)}}(e[8])}function yc(e,t,n){ia(0),t(e,n)}const Ty=(()=>Promise.resolve(null))();function Ih(e){return e[7]||(e[7]=[])}function Ah(e){return e.cleanup||(e.cleanup=[])}function Nh(e,t){const n=e[9],i=n?n.get(Ea,null):null;i&&i.handleError(t)}function kh(e,t,n,i,o){for(let s=0;s<n.length;){const u=n[s++],h=n[s++],m=t[u],E=e.data[u];null!==E.setInput?E.setInput(m,o,i,h):m[h]=o}}function $r(e,t,n){const i=zi(t,e);!function Ld(e,t,n){Ut(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}function Fa(e,t,n){let i=n?e.styles:null,o=n?e.classes:null,s=0;if(null!==t)for(let u=0;u<t.length;u++){const h=t[u];"number"==typeof h?s=h:1==s?o=Pt(o,h):2==s&&(i=Pt(i,h+": "+t[++u]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=o:e.classesWithoutHost=o}const vc=new ai("INJECTOR",-1);class Rh{get(t,n=Q){if(n===Q){const i=new Error(`NullInjectorError: No provider for ${_t(t)}!`);throw i.name="NullInjectorError",i}return n}}const bc=new ai("Set Injector scope."),Fs={},xy={};let Cc;function Lh(){return void 0===Cc&&(Cc=new Rh),Cc}function Vh(e,t=null,n=null,i){const o=Bh(e,t,n,i);return o._resolveInjectorDefTypes(),o}function Bh(e,t=null,n=null,i){return new Py(e,n,t||Lh(),i)}class Py{constructor(t,n,i,o=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];n&&pr(n,h=>this.processProvider(h,t,n)),pr([t],h=>this.processInjectorType(h,[],s)),this.records.set(vc,Wo(void 0,this));const u=this.records.get(bc);this.scope=null!=u?u.value:null,this.source=o||("object"==typeof t?null:_t(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Q,i=ke.Default){this.assertNotDestroyed();const o=un(this),s=ft(void 0);try{if(!(i&ke.SkipSelf)){let h=this.records.get(t);if(void 0===h){const m=function Ly(e){return"function"==typeof e||"object"==typeof e&&e instanceof ai}(t)&&ri(t);h=m&&this.injectableDefInScope(m)?Wo(wc(t),Fs):null,this.records.set(t,h)}if(null!=h)return this.hydrate(t,h)}return(i&ke.Self?Lh():this.parent).get(t,n=i&ke.Optional&&n===Q?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[Se]=u[Se]||[]).unshift(_t(t)),o)throw u;return function Ai(e,t,n,i){const o=e[Se];throw t[tn]&&o.unshift(t[tn]),e.message=function gr(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=_t(t);if(Array.isArray(t))o=t.map(_t).join(" -> ");else if("object"==typeof t){let s=[];for(let u in t)if(t.hasOwnProperty(u)){let h=t[u];s.push(u+":"+("string"==typeof h?JSON.stringify(h):_t(h)))}o=`{${s.join(", ")}}`}return`${n}${i?"("+i+")":""}[${o}]: ${e.replace(Dt,"\n ")}`}("\n"+e.message,o,n,i),e.ngTokenPath=o,e[Se]=null,e}(u,t,"R3InjectorError",this.source)}throw u}finally{ft(s),un(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,o)=>t.push(_t(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new te(205,!1)}processInjectorType(t,n,i){if(!(t=Et(t)))return!1;let o=Ue(t);const s=null==o&&t.ngModule||void 0,u=void 0===s?t:s,h=-1!==i.indexOf(u);if(void 0!==s&&(o=Ue(s)),null==o)return!1;if(null!=o.imports&&!h){let S;i.push(u);try{pr(o.imports,$=>{this.processInjectorType($,n,i)&&(void 0===S&&(S=[]),S.push($))})}finally{}if(void 0!==S)for(let $=0;$<S.length;$++){const{ngModule:de,providers:Me}=S[$];pr(Me,Ze=>this.processProvider(Ze,de,Me||at))}}this.injectorDefTypes.add(u);const m=ir(u)||(()=>new u);this.records.set(u,Wo(m,Fs));const E=o.providers;if(null!=E&&!h){const S=t;pr(E,$=>this.processProvider($,S,E))}return void 0!==s&&void 0!==t.providers}processProvider(t,n,i){let o=Yo(t=Et(t))?t:Et(t&&t.provide);const s=function Iy(e,t,n){return jh(e)?Wo(void 0,e.useValue):Wo(Hh(e),Fs)}(t);if(Yo(t)||!0!==t.multi)this.records.get(o);else{let u=this.records.get(o);u||(u=Wo(void 0,Fs,!0),u.factory=()=>yi(u.multi),this.records.set(o,u)),o=t,u.multi.push(t)}this.records.set(o,s)}hydrate(t,n){return n.value===Fs&&(n.value=xy,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Ry(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Et(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function wc(e){const t=ri(e),n=null!==t?t.factory:ir(e);if(null!==n)return n;if(e instanceof ai)throw new te(204,!1);if(e instanceof Function)return function Oy(e){const t=e.length;if(t>0)throw Vo(t,"?"),new te(204,!1);const n=function vi(e){const t=e&&(e[ue]||e[ze]);if(t){const n=function li(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new te(204,!1)}function Hh(e,t,n){let i;if(Yo(e)){const o=Et(e);return ir(o)||wc(o)}if(jh(e))i=()=>Et(e.useValue);else if(function Fy(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...yi(e.deps||[]));else if(function Ay(e){return!(!e||!e.useExisting)}(e))i=()=>xn(Et(e.useExisting));else{const o=Et(e&&(e.useClass||e.provide));if(!function ky(e){return!!e.deps}(e))return ir(o)||wc(o);i=()=>new o(...yi(e.deps))}return i}function Wo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function jh(e){return null!==e&&"object"==typeof e&&Dn in e}function Yo(e){return"function"==typeof e}let Ar=(()=>{class e{static create(n,i){if(Array.isArray(n))return Vh({name:""},i,n,"");{const o=n.name??"";return Vh({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=Q,e.NULL=new Rh,e.\u0275prov=ln({token:e,providedIn:"any",factory:()=>xn(vc)}),e.__NG_ELEMENT_ID__=-1,e})();function zy(e,t){Oo(Ll(e)[1],gi())}function Tc(e){let t=function Xh(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let o;if(Gn(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new te(903,"");o=t.\u0275dir}if(o){if(n){i.push(o);const u=e;u.inputs=Mc(e.inputs),u.declaredInputs=Mc(e.declaredInputs),u.outputs=Mc(e.outputs);const h=o.hostBindings;h&&qy(e,h);const m=o.viewQuery,E=o.contentQueries;if(m&&Yy(e,m),E&&Zy(e,E),dt(e.inputs,o.inputs),dt(e.declaredInputs,o.declaredInputs),dt(e.outputs,o.outputs),Gn(o)&&o.data.animation){const S=e.data;S.animation=(S.animation||[]).concat(o.data.animation)}}const s=o.features;if(s)for(let u=0;u<s.length;u++){const h=s[u];h&&h.ngInherit&&h(e),h===Tc&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Wy(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const o=e[i];o.hostVars=t+=o.hostVars,o.hostAttrs=No(o.hostAttrs,n=No(n,o.hostAttrs))}}(i)}function Mc(e){return e===wt?{}:e===at?[]:e}function Yy(e,t){const n=e.viewQuery;e.viewQuery=n?(i,o)=>{t(i,o),n(i,o)}:t}function Zy(e,t){const n=e.contentQueries;e.contentQueries=n?(i,o,s)=>{t(i,o,s),n(i,o,s)}:t}function qy(e,t){const n=e.hostBindings;e.hostBindings=n?(i,o)=>{t(i,o),n(i,o)}:t}let Na=null;function Zo(){if(!Na){const e=qe.Symbol;if(e&&e.iterator)Na=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Na=i)}}}return Na}function Ns(e){return!!Sc(e)&&(Array.isArray(e)||!(e instanceof Map)&&Zo()in e)}function Sc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Fr(e,t,n){return e[t]=n}function ks(e,t){return e[t]}function Hi(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function yo(e,t,n,i){const o=Hi(e,t,n);return Hi(e,t+1,i)||o}function cr(e,t,n,i,o,s){const u=yo(e,t,n,i);return yo(e,t+2,o,s)||u}function xc(e,t,n,i){const o=ot();return Hi(o,qr(),t)&&(On(),Ir(si(),o,e,t,n,i)),xc}function Qo(e,t,n,i){return Hi(e,qr(),n)?t+K(n)+i:dn}function Jo(e,t,n,i,o,s){const h=yo(e,function hr(){return Yt.lFrame.bindingIndex}(),n,o);return fr(2),h?t+K(n)+i+K(o)+s:dn}function df(e,t,n,i,o,s,u,h){const m=ot(),E=On(),S=e+20,$=E.firstCreatePass?function nv(e,t,n,i,o,s,u,h,m){const E=t.consts,S=Go(t,e,4,u||null,ni(E,h));hc(t,n,S,ni(E,m)),Oo(t,S);const $=S.tViews=Ia(2,S,i,o,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,E);return null!==t.queries&&(t.queries.template(t,S),$.queries=t.queries.embeddedTView(S)),S}(S,E,m,t,n,i,o,s,u):E.data[S];or($,!1);const de=m[11].createComment("");Ma(E,m,de,$),Bi(de,m),Aa(m,m[S]=Ph(de,m,de,$)),Ei($)&&uc(E,m,$),null!=u&&dc(m,$,h)}function hf(e){return _(function Mo(){return Yt.lFrame.contextLView}(),20+e)}function Rs(e,t=ke.Default){const n=ot();return null===n?xn(e,t):pa(gi(),n,Et(e),t)}function Fc(e,t,n){const i=ot();return Hi(i,qr(),t)&&tr(On(),si(),i,e,t,i[11],n,!1),Fc}function Nc(e,t,n,i,o){const u=o?"class":"style";kh(e,n,t.inputs[u],u,i)}function La(e,t,n,i){const o=ot(),s=On(),u=20+e,h=o[11],m=o[u]=zl(h,t,function zu(){return Yt.lFrame.currentNamespace}()),E=s.firstCreatePass?function Ev(e,t,n,i,o,s,u){const h=t.consts,E=Go(t,e,2,o,ni(h,s));return hc(t,n,E,ni(h,u)),null!==E.attrs&&Fa(E,E.attrs,!1),null!==E.mergedAttrs&&Fa(E,E.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,E),E}(u,s,o,0,t,n,i):s.data[u];or(E,!0);const S=E.mergedAttrs;null!==S&&ys(h,m,S);const $=E.classes;null!==$&&Jl(h,m,$);const de=E.styles;return null!==de&&Jd(h,m,de),64!=(64&E.flags)&&Ma(s,o,m,E),0===function il(){return Yt.lFrame.elementDepthCount}()&&Bi(m,o),function rl(){Yt.lFrame.elementDepthCount++}(),Ei(E)&&(uc(s,o,E),_h(s,E,o)),null!==i&&dc(o,E),La}function Va(){let e=gi();fs()?ps():(e=e.parent,or(e,!1));const t=e;!function qs(){Yt.lFrame.elementDepthCount--}();const n=On();return n.firstCreatePass&&(Oo(n,e),Pi(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Zu(e){return 0!=(16&e.flags)}(t)&&Nc(n,t,ot(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function pl(e){return 0!=(32&e.flags)}(t)&&Nc(n,t,ot(),t.stylesWithoutHost,!1),Va}function kc(e,t,n,i){return La(e,t,n,i),Va(),kc}function Ba(e,t,n){const i=ot(),o=On(),s=e+20,u=o.firstCreatePass?function Tv(e,t,n,i,o){const s=t.consts,u=ni(s,i),h=Go(t,e,8,"ng-container",u);return null!==u&&Fa(h,u,!0),hc(t,n,h,ni(s,o)),null!==t.queries&&t.queries.elementStart(t,h),h}(s,o,i,t,n):o.data[s];or(u,!0);const h=i[s]=i[11].createComment("");return Ma(o,i,h,u),Bi(h,i),Ei(u)&&(uc(o,i,u),_h(o,u,i)),null!=n&&dc(i,u),Ba}function Ha(){let e=gi();const t=On();return fs()?ps():(e=e.parent,or(e,!1)),t.firstCreatePass&&(Oo(t,e),Pi(e)&&t.queries.elementEnd(e)),Ha}function Rc(e,t,n){return Ba(e,t,n),Ha(),Rc}function Df(){return ot()}function Lc(e){return!!e&&"function"==typeof e.then}function Ef(e){return!!e&&"function"==typeof e.subscribe}const Tf=Ef;function Vc(e,t,n,i){const o=ot(),s=On(),u=gi();return function Sf(e,t,n,i,o,s,u,h){const m=Ei(i),S=e.firstCreatePass&&Ah(e),$=t[8],de=Ih(t);let Me=!0;if(3&i.type||h){const yt=Jn(i,t),xt=h?h(yt):yt,it=de.length,zt=h?Pn=>h(mn(Pn[i.index])):i.index;if(Ut(n)){let Pn=null;if(!h&&m&&(Pn=function Mv(e,t,n,i){const o=e.cleanup;if(null!=o)for(let s=0;s<o.length-1;s+=2){const u=o[s];if(u===n&&o[s+1]===i){const h=t[7],m=o[s+2];return h.length>m?h[m]:null}"string"==typeof u&&(s+=2)}return null}(e,t,o,i.index)),null!==Pn)(Pn.__ngLastListenerFn__||Pn).__ngNextListenerFn__=s,Pn.__ngLastListenerFn__=s,Me=!1;else{s=Bc(i,t,$,s,!1);const Un=n.listen(xt,o,s);de.push(s,Un),S&&S.push(o,zt,it,it+1)}}else s=Bc(i,t,$,s,!0),xt.addEventListener(o,s,u),de.push(s),S&&S.push(o,zt,it,u)}else s=Bc(i,t,$,s,!1);const Ze=i.outputs;let gt;if(Me&&null!==Ze&&(gt=Ze[o])){const yt=gt.length;if(yt)for(let xt=0;xt<yt;xt+=2){const nr=t[gt[xt]][gt[xt+1]].subscribe(s),Co=de.length;de.push(s,nr),S&&S.push(o,i.index,Co,-(Co+1))}}}(s,o,o[11],u,e,t,!!n,i),Vc}function xf(e,t,n,i){try{return!1!==n(i)}catch(o){return Nh(e,o),!1}}function Bc(e,t,n,i,o){return function s(u){if(u===Function)return i;const h=2&e.flags?F(e.index,t):t;0==(32&t[2])&&gc(h);let m=xf(t,0,i,u),E=s.__ngNextListenerFn__;for(;E;)m=xf(t,0,E,u)&&m,E=E.__ngNextListenerFn__;return o&&!1===m&&(u.preventDefault(),u.returnValue=!1),m}}function Pf(e=1){return function ul(e){return(Yt.lFrame.contextLView=function dl(e,t){for(;e>0;)t=t[15],e--;return t}(e,Yt.lFrame.contextLView))[8]}(e)}function Sv(e,t){let n=null;const i=function R_(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let o=0;o<t.length;o++){const s=t[o];if("*"!==s){if(null===i?th(e,s,!0):B_(i,s))return o}else n=o}return n}function Of(e){const t=ot()[g][6];if(!t.projection){const i=t.projection=Vo(e?e.length:1,null),o=i.slice();let s=t.child;for(;null!==s;){const u=e?Sv(s,e):0;null!==u&&(o[u]?o[u].projectionNext=s:i[u]=s,o[u]=s),s=s.next}}}function If(e,t=0,n){const i=ot(),o=On(),s=Go(o,20+e,16,null,n||null);null===s.projection&&(s.projection=t),ps(),64!=(64&s.flags)&&function P_(e,t,n){Qd(t[11],0,t,n,Hd(e,n,t),$d(n.parent||t[6],n,t))}(o,i,s)}function Hc(e,t,n){return jc(e,"",t,"",n),Hc}function jc(e,t,n,i,o){const s=ot(),u=Qo(s,t,n,i);return u!==dn&&tr(On(),si(),s,e,u,s[11],o,!1),jc}function Hf(e,t,n,i,o){const s=e[n+1],u=null===t;let h=i?_r(s):Gr(s),m=!1;for(;0!==h&&(!1===m||u);){const S=e[h+1];Ov(e[h],t)&&(m=!0,e[h+1]=i?ec(S):Kl(S)),h=i?_r(S):Gr(S)}m&&(e[n+1]=i?Kl(s):ec(s))}function Ov(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&go(e,t)>=0}const Ti={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jf(e){return e.substring(Ti.key,Ti.keyEnd)}function Uf(e,t){const n=Ti.textEnd;return n===t?-1:(t=Ti.keyEnd=function Nv(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Ti.key=t,n),os(e,t,n))}function os(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Uc(e,t,n){return vr(e,t,n,!1),Uc}function Gc(e,t){return vr(e,t,null,!0),Gc}function Yf(e){br(Yi,kr,e,!0)}function kr(e,t){for(let n=function Av(e){return function $f(e){Ti.key=0,Ti.keyEnd=0,Ti.value=0,Ti.valueEnd=0,Ti.textEnd=e.length}(e),Uf(e,os(e,0,Ti.textEnd))}(t);n>=0;n=Uf(t,n))Yi(e,jf(t),!0)}function vr(e,t,n,i){const o=ot(),s=On(),u=fr(2);s.firstUpdatePass&&qf(s,e,u,i),t!==dn&&Hi(o,u,t)&&Jf(s,s.data[Ri()],o,o[11],e,o[u+1]=function $v(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=_t(eo(e)))),e}(t,n),i,u)}function br(e,t,n,i){const o=On(),s=fr(2);o.firstUpdatePass&&qf(o,null,s,i);const u=ot();if(n!==dn&&Hi(u,s,n)){const h=o.data[Ri()];if(Xf(h,i)&&!Zf(o,s)){let m=i?h.classesWithoutHost:h.stylesWithoutHost;null!==m&&(n=Pt(m,n||"")),Nc(o,h,u,n,i)}else!function Gv(e,t,n,i,o,s,u,h){o===dn&&(o=at);let m=0,E=0,S=0<o.length?o[0]:null,$=0<s.length?s[0]:null;for(;null!==S||null!==$;){const de=m<o.length?o[m+1]:void 0,Me=E<s.length?s[E+1]:void 0;let gt,Ze=null;S===$?(m+=2,E+=2,de!==Me&&(Ze=$,gt=Me)):null===$||null!==S&&S<$?(m+=2,Ze=S):(E+=2,Ze=$,gt=Me),null!==Ze&&Jf(e,t,n,i,Ze,gt,u,h),S=m<o.length?o[m]:null,$=E<s.length?s[E]:null}}(o,h,u,u[11],u[s+1],u[s+1]=function Uv(e,t,n){if(null==n||""===n)return at;const i=[],o=eo(n);if(Array.isArray(o))for(let s=0;s<o.length;s++)e(i,o[s],!0);else if("object"==typeof o)for(const s in o)o.hasOwnProperty(s)&&e(i,s,o[s]);else"string"==typeof o&&t(i,o);return i}(e,t,n),i,s)}}function Zf(e,t){return t>=e.expandoStartIndex}function qf(e,t,n,i){const o=e.data;if(null===o[n+1]){const s=o[Ri()],u=Zf(e,n);Xf(s,i)&&null===t&&!u&&(t=!1),t=function Vv(e,t,n,i){const o=function gs(e){const t=Yt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let s=i?t.residualClasses:t.residualStyles;if(null===o)0===(i?t.classBindings:t.styleBindings)&&(n=Ls(n=$c(null,e,t,n,i),t.attrs,i),s=null);else{const u=t.directiveStylingLast;if(-1===u||e[u]!==o)if(n=$c(o,e,t,n,i),null===s){let m=function Bv(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==Gr(i))return e[_r(i)]}(e,t,i);void 0!==m&&Array.isArray(m)&&(m=$c(null,e,t,m[1],i),m=Ls(m,t.attrs,i),function Hv(e,t,n,i){e[_r(n?t.classBindings:t.styleBindings)]=i}(e,t,i,m))}else s=function jv(e,t,n){let i;const o=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<o;s++)i=Ls(i,e[s].hostAttrs,n);return Ls(i,t.attrs,n)}(e,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),n}(o,s,t,i),function xv(e,t,n,i,o,s){let u=s?t.classBindings:t.styleBindings,h=_r(u),m=Gr(u);e[i]=n;let S,E=!1;if(Array.isArray(n)){const $=n;S=$[1],(null===S||go($,S)>0)&&(E=!0)}else S=n;if(o)if(0!==m){const de=_r(e[h+1]);e[i+1]=xa(de,h),0!==de&&(e[de+1]=Xl(e[de+1],i)),e[h+1]=function G_(e,t){return 131071&e|t<<17}(e[h+1],i)}else e[i+1]=xa(h,0),0!==h&&(e[h+1]=Xl(e[h+1],i)),h=i;else e[i+1]=xa(m,0),0===h?h=i:e[m+1]=Xl(e[m+1],i),m=i;E&&(e[i+1]=Kl(e[i+1])),Hf(e,S,i,!0),Hf(e,S,i,!1),function Pv(e,t,n,i,o){const s=o?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&go(s,t)>=0&&(n[i+1]=ec(n[i+1]))}(t,S,e,i,s),u=xa(h,m),s?t.classBindings=u:t.styleBindings=u}(o,s,t,n,u,i)}}function $c(e,t,n,i,o){let s=null;const u=n.directiveEnd;let h=n.directiveStylingLast;for(-1===h?h=n.directiveStart:h++;h<u&&(s=t[h],i=Ls(i,s.hostAttrs,o),s!==e);)h++;return null!==e&&(n.directiveStylingLast=h),i}function Ls(e,t,n){const i=n?1:2;let o=-1;if(null!==t)for(let s=0;s<t.length;s++){const u=t[s];"number"==typeof u?o=u:o===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Yi(e,u,!!n||t[++s]))}return void 0===e?null:e}function Jf(e,t,n,i,o,s,u,h){if(!(3&t.type))return;const m=e.data,E=m[h+1];ja(function ah(e){return 1==(1&e)}(E)?Kf(m,t,n,o,Gr(E),u):void 0)||(ja(s)||function sh(e){return 2==(2&e)}(E)&&(s=Kf(m,null,n,o,h,u)),function I_(e,t,n,i,o){const s=Ut(e);if(t)o?s?e.addClass(n,i):n.classList.add(i):s?e.removeClass(n,i):n.classList.remove(i);else{let u=-1===i.indexOf("-")?void 0:Or.DashCase;if(null==o)s?e.removeStyle(n,i,u):n.style.removeProperty(i);else{const h="string"==typeof o&&o.endsWith("!important");h&&(o=o.slice(0,-10),u|=Or.Important),s?e.setStyle(n,i,o,u):n.style.setProperty(i,o,h?"important":"")}}}(i,u,zi(Ri(),n),o,s))}function Kf(e,t,n,i,o,s){const u=null===t;let h;for(;o>0;){const m=e[o],E=Array.isArray(m),S=E?m[1]:m,$=null===S;let de=n[o+1];de===dn&&(de=$?at:void 0);let Me=$?va(de,i):S===i?de:void 0;if(E&&!ja(Me)&&(Me=va(m,i)),ja(Me)&&(h=Me,u))return h;const Ze=e[o+1];o=u?_r(Ze):Gr(Ze)}if(null!==t){let m=s?t.residualClasses:t.residualStyles;null!=m&&(h=va(m,i))}return h}function ja(e){return void 0!==e}function Xf(e,t){return 0!=(e.flags&(t?16:32))}function ep(e,t=""){const n=ot(),i=On(),o=e+20,s=i.firstCreatePass?Go(i,o,1,t,null):i.data[o],u=n[o]=function $l(e,t){return Ut(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Ma(i,n,u,s),or(s,!1)}function zc(e){return Ua("",e,""),zc}function Ua(e,t,n){const i=ot(),o=Qo(i,e,t,n);return o!==dn&&$r(i,Ri(),o),Ua}function Wc(e,t,n,i,o){const s=ot(),u=Jo(s,e,t,n,i,o);return u!==dn&&$r(s,Ri(),u),Wc}function lp(e,t,n){br(Yi,kr,Qo(ot(),e,t,n),!0)}const vo=void 0;var cb=["en",[["a","p"],["AM","PM"],vo],[["AM","PM"],vo,vo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],vo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],vo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",vo,"{1} 'at' {0}",vo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function lb(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let ss={};function Yc(e){const t=function ub(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Cp(t);if(n)return n;const i=t.split("-")[0];if(n=Cp(i),n)return n;if("en"===i)return cb;throw new Error(`Missing locale data for the locale "${e}".`)}function bp(e){return Yc(e)[Jt.PluralCase]}function Cp(e){return e in ss||(ss[e]=qe.ng&&qe.ng.common&&qe.ng.common.locales&&qe.ng.common.locales[e]),ss[e]}var Jt=(()=>((Jt=Jt||{})[Jt.LocaleId=0]="LocaleId",Jt[Jt.DayPeriodsFormat=1]="DayPeriodsFormat",Jt[Jt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Jt[Jt.DaysFormat=3]="DaysFormat",Jt[Jt.DaysStandalone=4]="DaysStandalone",Jt[Jt.MonthsFormat=5]="MonthsFormat",Jt[Jt.MonthsStandalone=6]="MonthsStandalone",Jt[Jt.Eras=7]="Eras",Jt[Jt.FirstDayOfWeek=8]="FirstDayOfWeek",Jt[Jt.WeekendRange=9]="WeekendRange",Jt[Jt.DateFormat=10]="DateFormat",Jt[Jt.TimeFormat=11]="TimeFormat",Jt[Jt.DateTimeFormat=12]="DateTimeFormat",Jt[Jt.NumberSymbols=13]="NumberSymbols",Jt[Jt.NumberFormats=14]="NumberFormats",Jt[Jt.CurrencyCode=15]="CurrencyCode",Jt[Jt.CurrencySymbol=16]="CurrencySymbol",Jt[Jt.CurrencyName=17]="CurrencyName",Jt[Jt.Currencies=18]="Currencies",Jt[Jt.Directionality=19]="Directionality",Jt[Jt.PluralCase=20]="PluralCase",Jt[Jt.ExtraData=21]="ExtraData",Jt))();const Ga="en-US";let wp=Ga;function Qc(e,t,n,i,o){if(e=Et(e),Array.isArray(e))for(let s=0;s<e.length;s++)Qc(e[s],t,n,i,o);else{const s=On(),u=ot();let h=Yo(e)?e:Et(e.provide),m=Hh(e);const E=gi(),S=1048575&E.providerIndexes,$=E.directiveStart,de=E.providerIndexes>>20;if(Yo(e)||!e.multi){const Me=new ao(m,o,Rs),Ze=Kc(h,t,o?S:S+de,$);-1===Ze?(ji(zn(E,u),s,h),Jc(s,e,t.length),t.push(h),E.directiveStart++,E.directiveEnd++,o&&(E.providerIndexes+=1048576),n.push(Me),u.push(Me)):(n[Ze]=Me,u[Ze]=Me)}else{const Me=Kc(h,t,S+de,$),Ze=Kc(h,t,S,S+de),gt=Me>=0&&n[Me],yt=Ze>=0&&n[Ze];if(o&&!yt||!o&&!gt){ji(zn(E,u),s,h);const xt=function lC(e,t,n,i,o){const s=new ao(e,n,Rs);return s.multi=[],s.index=t,s.componentProviders=0,Wp(s,o,i&&!n),s}(o?aC:sC,n.length,o,i,m);!o&&yt&&(n[Ze].providerFactory=xt),Jc(s,e,t.length,0),t.push(h),E.directiveStart++,E.directiveEnd++,o&&(E.providerIndexes+=1048576),n.push(xt),u.push(xt)}else Jc(s,e,Me>-1?Me:Ze,Wp(n[o?Ze:Me],m,!o&&i));!o&&i&&yt&&n[Ze].componentProviders++}}}function Jc(e,t,n,i){const o=Yo(t),s=function Ny(e){return!!e.useClass}(t);if(o||s){const m=(s?Et(t.useClass):t).prototype.ngOnDestroy;if(m){const E=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const S=E.indexOf(n);-1===S?E.push(n,[i,m]):E[S+1].push(i,m)}else E.push(n,m)}}}function Wp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Kc(e,t,n,i){for(let o=n;o<i;o++)if(t[o]===e)return o;return-1}function sC(e,t,n,i){return Xc(this.multi,[])}function aC(e,t,n,i){const o=this.multi;let s;if(this.providerFactory){const u=this.providerFactory.componentProviders,h=Ro(n,n[1],this.providerFactory.index,i);s=h.slice(0,u),Xc(o,s);for(let m=u;m<h.length;m++)s.push(h[m])}else s=[],Xc(o,s);return s}function Xc(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Yp(e,t=[]){return n=>{n.providersResolver=(i,o)=>function oC(e,t,n){const i=On();if(i.firstCreatePass){const o=Gn(e);Qc(n,i.data,i.blueprint,o,!0),Qc(t,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,t)}}class Zp{}class dC{resolveComponentFactory(t){throw function uC(e){const t=Error(`No component factory found for ${_t(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Za=(()=>{class e{}return e.NULL=new dC,e})();function hC(){return ls(gi(),ot())}function ls(e,t){return new Us(Jn(e,t))}let Us=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=hC,e})();function fC(e){return e instanceof Us?e.nativeElement:e}class Qp{}let pC=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function mC(){const e=ot(),n=F(gi().index,e);return function gC(e){return e[11]}(pi(n)?n:e)}(),e})(),_C=(()=>{class e{}return e.\u0275prov=ln({token:e,providedIn:"root",factory:()=>null}),e})();class Jp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const yC=new Jp("13.3.11"),eu={};function qa(e,t,n,i,o=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&i.push(mn(s)),Qn(s))for(let h=10;h<s.length;h++){const m=s[h],E=m[1].firstChild;null!==E&&qa(m[1],m,E,i)}const u=n.type;if(8&u)qa(e,t,n.child,i);else if(32&u){const h=jl(n,t);let m;for(;m=h();)i.push(m)}else if(16&u){const h=Zd(t,n);if(Array.isArray(h))i.push(...h);else{const m=Ps(t[g]);qa(m[1],m,h,i,!0)}}n=o?n.projectionNext:n.next}return i}class Gs{constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,n=t[1];return qa(n,t,n.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Qn(t)){const n=t[8],i=n?n.indexOf(this):-1;i>-1&&(Wl(t,i),ws(n,i))}this._attachedToViewContainer=!1}Bd(this._lView[1],this._lView)}onDestroy(t){Ch(this._lView[1],this._lView,null,t)}markForCheck(){gc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function _c(e,t,n){const i=t[10];i.begin&&i.begin();try{zo(e,t,e.template,n)}catch(o){throw Nh(t,o),o}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new te(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function C_(e,t){Os(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new te(902,"");this._appRef=t}}class vC extends Gs{constructor(t){super(t),this._view=t}detectChanges(){Oh(this._view)}checkNoChanges(){}get context(){return null}}class Kp extends Za{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=N(t);return new tu(n,this.ngModule)}}function Xp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class tu extends Zp{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function j_(e){return e.map(H_).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Xp(this.componentDef.inputs)}get outputs(){return Xp(this.componentDef.outputs)}create(t,n,i,o){const s=(o=o||this.ngModule)?function CC(e,t){return{get:(n,i,o)=>{const s=e.get(n,eu,o);return s!==eu||i===eu?s:t.get(n,i,o)}}}(t,o.injector):t,u=s.get(Qp,ci),h=s.get(_C,null),m=u.createRenderer(null,this.componentDef),E=this.componentDef.selectors[0][0]||"div",S=i?function bh(e,t,n){if(Ut(e))return e.selectRootElement(t,n===ne.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(m,i,this.componentDef.encapsulation):zl(u.createRenderer(null,this.componentDef),E,function bC(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(E)),$=this.componentDef.onPush?576:528,de=function Kh(e,t){return{components:[],scheduler:e||p_,clean:Ty,playerHandler:t||null,flags:0}}(),Me=Ia(0,null,null,1,0,null,null,null,null,null),Ze=Is(null,Me,de,$,null,null,u,m,h,s);let gt,yt;ms(Ze);try{const xt=function Qh(e,t,n,i,o,s){const u=n[1];n[20]=e;const m=Go(u,20,2,"#host",null),E=m.mergedAttrs=t.hostAttrs;null!==E&&(Fa(m,E,!0),null!==e&&(ys(o,e,E),null!==m.classes&&Jl(o,e,m.classes),null!==m.styles&&Jd(o,e,m.styles)));const S=i.createRenderer(e,t),$=Is(n,yh(t),null,t.onPush?64:16,n[20],m,i,S,s||null,null);return u.firstCreatePass&&(ji(zn(m,n),u,t.type),Mh(u,m),Sh(m,n.length,1)),Aa(n,$),n[20]=$}(S,this.componentDef,Ze,u,m);if(S)if(i)ys(m,S,["ng-version",yC.full]);else{const{attrs:it,classes:zt}=function U_(e){const t=[],n=[];let i=1,o=2;for(;i<e.length;){let s=e[i];if("string"==typeof s)2===o?""!==s&&t.push(s,e[++i]):8===o&&n.push(s);else{if(!mr(o))break;o=s}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);it&&ys(m,S,it),zt&&zt.length>0&&Jl(m,S,zt.join(" "))}if(yt=y(Me,20),void 0!==n){const it=yt.projection=[];for(let zt=0;zt<this.ngContentSelectors.length;zt++){const Pn=n[zt];it.push(null!=Pn?Array.from(Pn):null)}}gt=function Jh(e,t,n,i,o){const s=n[1],u=function cy(e,t,n){const i=gi();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),xh(e,i,t,$o(e,t,1,null),n));const o=Ro(t,e,i.directiveStart,i);Bi(o,t);const s=Jn(i,t);return s&&Bi(s,t),o}(s,n,t);if(i.components.push(u),e[8]=u,o&&o.forEach(m=>m(u,t)),t.contentQueries){const m=gi();t.contentQueries(1,u,m.directiveStart)}const h=gi();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Br(h.index),Eh(n[1],h,0,h.directiveStart,h.directiveEnd,t),Th(t,u)),u}(xt,this.componentDef,Ze,de,[zy]),As(Me,Ze,null)}finally{Po()}return new DC(this.componentType,gt,ls(yt,Ze),Ze,yt)}}class DC extends class cC{}{constructor(t,n,i,o,s){super(),this.location=i,this._rootLView=o,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new vC(o),this.componentType=t}get injector(){return new uo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class cs{}const us=new Map;class ng extends cs{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Kp(this);const i=Ne(t);this._bootstrapComponents=Pr(i.bootstrap),this._r3Injector=Bh(t,n,[{provide:cs,useValue:this},{provide:Za,useValue:this.componentFactoryResolver}],_t(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Ar.THROW_IF_NOT_FOUND,i=ke.Default){return t===Ar||t===cs||t===vc?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class nu extends class TC{}{constructor(t){super(),this.moduleType=t,null!==Ne(t)&&function MC(e){const t=new Set;!function n(i){const o=Ne(i,!0),s=o.id;null!==s&&(function eg(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${_t(t)} vs ${_t(t.name)}`)}(s,us.get(s),i),us.set(s,i));const u=Pr(o.imports);for(const h of u)t.has(h)||(t.add(h),n(h))}(e)}(t)}create(t){return new ng(this.moduleType,t)}}function ig(e,t,n){const i=xi()+e,o=ot();return o[i]===dn?Fr(o,i,n?t.call(n):t()):ks(o,i)}function rg(e,t,n,i){return cg(ot(),xi(),e,t,n,i)}function og(e,t,n,i,o){return function ug(e,t,n,i,o,s,u){const h=t+n;return yo(e,h,o,s)?Fr(e,h+2,u?i.call(u,o,s):i(o,s)):$s(e,h+2)}(ot(),xi(),e,t,n,i,o)}function sg(e,t,n,i,o,s){return function dg(e,t,n,i,o,s,u,h){const m=t+n;return function ka(e,t,n,i,o){const s=yo(e,t,n,i);return Hi(e,t+2,o)||s}(e,m,o,s,u)?Fr(e,m+3,h?i.call(h,o,s,u):i(o,s,u)):$s(e,m+3)}(ot(),xi(),e,t,n,i,o,s)}function ag(e,t,n,i,o,s,u){return function hg(e,t,n,i,o,s,u,h,m){const E=t+n;return cr(e,E,o,s,u,h)?Fr(e,E+4,m?i.call(m,o,s,u,h):i(o,s,u,h)):$s(e,E+4)}(ot(),xi(),e,t,n,i,o,s,u)}function lg(e,t,n,i,o,s,u,h){const m=xi()+e,E=ot(),S=cr(E,m,n,i,o,s);return Hi(E,m+4,u)||S?Fr(E,m+5,h?t.call(h,n,i,o,s,u):t(n,i,o,s,u)):ks(E,m+5)}function $s(e,t){const n=e[t];return n===dn?void 0:n}function cg(e,t,n,i,o,s){const u=t+n;return Hi(e,u,o)?Fr(e,u+1,s?i.call(s,o):i(o)):$s(e,u+1)}function pg(e,t){const n=On();let i;const o=e+20;n.firstCreatePass?(i=function IC(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[o]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,i.onDestroy)):i=n.data[o];const s=i.factory||(i.factory=ir(i.type)),u=ft(Rs);try{const h=vs(!1),m=s();return vs(h),function iv(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,ot(),o,m),m}finally{ft(u)}}function gg(e,t,n){const i=e+20,o=ot(),s=_(o,i);return function zs(e,t){return e[1].data[t].pure}(o,i)?cg(o,xi(),t,s.transform,n,s):s.transform(n)}function iu(e){return t=>{setTimeout(e,void 0,t)}}const Rr=class RC extends r.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){let o=t,s=n||(()=>null),u=i;if(t&&"object"==typeof t){const m=t;o=m.next?.bind(m),s=m.error?.bind(m),u=m.complete?.bind(m)}this.__isAsync&&(s=iu(s),o&&(o=iu(o)),u&&(u=iu(u)));const h=super.subscribe({next:o,error:s,complete:u});return t instanceof P.w&&t.add(h),h}};function LC(){return this._results[Zo()]()}class ru{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Zo(),i=ru.prototype;i[n]||(i[n]=LC)}get changes(){return this._changes||(this._changes=new Rr)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const o=Xi(t);(this._changesDetected=!function rd(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let o=e[i],s=t[i];if(n&&(o=n(o),s=n(s)),s!==o)return!1}return!0}(i._results,o,n))&&(i._results=o,i.length=o.length,i.last=o[this.length-1],i.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Ws=(()=>{class e{}return e.__NG_ELEMENT_ID__=HC,e})();const VC=Ws,BC=class extends VC{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Is(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(n)),As(n,i,t),new Gs(i)}};function HC(){return Qa(gi(),ot())}function Qa(e,t){return 4&e.type?new BC(t,e,ls(e,t)):null}let Ja=(()=>{class e{}return e.__NG_ELEMENT_ID__=jC,e})();function jC(){return yg(gi(),ot())}const UC=Ja,mg=class extends UC{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return ls(this._hostTNode,this._hostLView)}get injector(){return new uo(this._hostTNode,this._hostLView)}get parentInjector(){const t=ko(this._hostTNode,this._hostLView);if(_l(t)){const n=co(t,this._hostLView),i=lo(t);return new uo(n[1].data[i+8],n)}return new uo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=_g(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const o=t.createEmbeddedView(n||{});return this.insert(o,i),o}createComponent(t,n,i,o,s){const u=t&&!function Lo(e){return"function"==typeof e}(t);let h;if(u)h=n;else{const $=n||{};h=$.index,i=$.injector,o=$.projectableNodes,s=$.ngModuleRef}const m=u?t:new tu(N(t)),E=i||this.parentInjector;if(!s&&null==m.ngModule){const de=(u?E:this.parentInjector).get(cs,null);de&&(s=de)}const S=m.create(E,o,void 0,s);return this.insert(S.hostView,h),S}insert(t,n){const i=t._lView,o=i[1];if(function Zn(e){return Qn(e[3])}(i)){const S=this.indexOf(t);if(-1!==S)this.detach(S);else{const $=i[3],de=new mg($,$[6],$[3]);de.detach(de.indexOf(t))}}const s=this._adjustIndex(n),u=this._lContainer;!function D_(e,t,n,i){const o=10+i,s=n.length;i>0&&(n[o-1][4]=t),i<s-10?(t[4]=n[o],Sl(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;const u=t[17];null!==u&&n!==u&&function E_(e,t){const n=e[9];t[g]!==t[3][3][g]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(u,t);const h=t[19];null!==h&&h.insertView(e),t[2]|=128}(o,i,u,s);const h=ql(s,u),m=i[11],E=Ta(m,u[7]);return null!==E&&function b_(e,t,n,i,o,s){i[0]=o,i[6]=t,Os(e,i,n,1,o,s)}(o,u[6],m,i,E,h),t.attachToViewContainerRef(),Sl(ou(u),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=_g(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),i=Wl(this._lContainer,n);i&&(ws(ou(this._lContainer),n),Bd(i[1],i))}detach(t){const n=this._adjustIndex(t,-1),i=Wl(this._lContainer,n);return i&&null!=ws(ou(this._lContainer),n)?new Gs(i):null}_adjustIndex(t,n=0){return t??this.length+n}};function _g(e){return e[8]}function ou(e){return e[8]||(e[8]=[])}function yg(e,t){let n;const i=t[e.index];if(Qn(i))n=i;else{let o;if(8&e.type)o=mn(i);else{const s=t[11];o=s.createComment("");const u=Jn(e,t);_o(s,Ta(s,u),o,function x_(e,t){return Ut(e)?e.nextSibling(t):t.nextSibling}(s,u),!1)}t[e.index]=n=Ph(i,t,o,e),Aa(t,n)}return new mg(n,e,t)}class su{constructor(t){this.queryList=t,this.matches=null}clone(){return new su(this.queryList)}setDirty(){this.queryList.setDirty()}}class au{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const i=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let s=0;s<i;s++){const u=n.getByIndex(s);o.push(this.queries[u.indexInDeclarationView].clone())}return new au(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==Sg(t,n).matches&&this.queries[n].setDirty()}}class vg{constructor(t,n,i=null){this.predicate=t,this.flags=n,this.read=i}}class lu{constructor(t=[]){this.queries=t}elementStart(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let i=0;i<this.length;i++){const o=null!==n?n.length:0,s=this.getByIndex(i).embeddedTView(t,o);s&&(s.indexInDeclarationView=i,null!==n?n.push(s):n=[s])}return null!==n?new lu(n):null}template(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class cu{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 cu(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==n;)i=i.parent;return n===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const i=this.metadata.predicate;if(Array.isArray(i))for(let o=0;o<i.length;o++){const s=i[o];this.matchTNodeWithReadOption(t,n,zC(n,s)),this.matchTNodeWithReadOption(t,n,bs(n,t,s,!1,!1))}else i===Ws?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,bs(n,t,i,!1,!1))}matchTNodeWithReadOption(t,n,i){if(null!==i){const o=this.metadata.read;if(null!==o)if(o===Us||o===Ja||o===Ws&&4&n.type)this.addMatch(n.index,-2);else{const s=bs(n,t,o,!1,!1);null!==s&&this.addMatch(n.index,s)}else this.addMatch(n.index,i)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function zC(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function YC(e,t,n,i){return-1===n?function WC(e,t){return 11&e.type?ls(e,t):4&e.type?Qa(e,t):null}(t,e):-2===n?function ZC(e,t,n){return n===Us?ls(t,e):n===Ws?Qa(t,e):n===Ja?yg(t,e):void 0}(e,t,i):Ro(e,e[1],n,t)}function bg(e,t,n,i){const o=t[19].queries[i];if(null===o.matches){const s=e.data,u=n.matches,h=[];for(let m=0;m<u.length;m+=2){const E=u[m];h.push(E<0?null:YC(t,s[E],u[m+1],n.metadata.read))}o.matches=h}return o.matches}function uu(e,t,n,i){const o=e.queries.getByIndex(n),s=o.matches;if(null!==s){const u=bg(e,t,o,n);for(let h=0;h<s.length;h+=2){const m=s[h];if(m>0)i.push(u[h/2]);else{const E=s[h+1],S=t[-m];for(let $=10;$<S.length;$++){const de=S[$];de[17]===de[3]&&uu(de[1],de,E,i)}if(null!==S[9]){const $=S[9];for(let de=0;de<$.length;de++){const Me=$[de];uu(Me[1],Me,E,i)}}}}}return i}function Cg(e){const t=ot(),n=On(),i=na();ia(i+1);const o=Sg(n,i);if(e.dirty&&Ye(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const s=o.crossesNgTemplate?uu(n,t,i,[]):bg(n,t,o,i);e.reset(s,fC),e.notifyOnChanges()}return!0}return!1}function wg(e,t,n){const i=On();i.firstCreatePass&&(Mg(i,new vg(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),Tg(i,ot(),t)}function Dg(e,t,n,i){const o=On();if(o.firstCreatePass){const s=gi();Mg(o,new vg(t,n,i),s.index),function QC(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}Tg(o,ot(),n)}function Eg(){return function qC(e,t){return e[19].queries[t].queryList}(ot(),na())}function Tg(e,t,n){const i=new ru(4==(4&n));Ch(e,t,i,i.destroy),null===t[19]&&(t[19]=new au),t[19].queries.push(new su(i))}function Mg(e,t,n){null===e.queries&&(e.queries=new lu),e.queries.track(new cu(t,n))}function Sg(e,t){return e.queries.getByIndex(t)}function xg(e,t){return Qa(e,t)}function el(...e){}const zg=new ai("Application Initializer");let mu=(()=>{class e{constructor(n){this.appInits=n,this.resolve=el,this.reject=el,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const s=this.appInits[o]();if(Lc(s))n.push(s);else if(Tf(s)){const u=new Promise((h,m)=>{s.subscribe({complete:h,error:m})});n.push(u)}}Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(xn(zg,8))},e.\u0275prov=ln({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Wg=new ai("AppId",{providedIn:"root",factory:function Yg(){return`${_u()}${_u()}${_u()}`}});function _u(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Zg=new ai("Platform Initializer"),fw=new ai("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),pw=new ai("appBootstrapListener"),yu=new ai("LocaleId",{providedIn:"root",factory:()=>Ii(yu,ke.Optional|ke.SkipSelf)||function gw(){return typeof $localize<"u"&&$localize.locale||Ga}()}),mw=new ai("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),vw=(()=>Promise.resolve(0))();function vu(e){typeof Zone>"u"?vw.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Cr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Rr(!1),this.onMicrotaskEmpty=new Rr(!1),this.onStable=new Rr(!1),this.onError=new Rr(!1),typeof Zone>"u")throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&n,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function bw(){let e=qe.requestAnimationFrame,t=qe.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function Dw(e){const t=()=>{!function ww(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(qe,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Cu(e),e.isCheckStableRunning=!0,bu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Cu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,o,s,u,h)=>{try{return qg(e),n.invokeTask(o,s,u,h)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),Qg(e)}},onInvoke:(n,i,o,s,u,h,m)=>{try{return qg(e),n.invoke(o,s,u,h,m)}finally{e.shouldCoalesceRunChangeDetection&&t(),Qg(e)}},onHasTask:(n,i,o,s)=>{n.hasTask(o,s),i===o&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Cu(e),bu(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,o,s)=>(n.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Cr.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Cr.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,o){const s=this._inner,u=s.scheduleEventTask("NgZoneEvent: "+o,t,Cw,el,el);try{return s.runTask(u,n,i)}finally{s.cancelTask(u)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const Cw={};function bu(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 Cu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function qg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Qg(e){e._nesting--,bu(e)}class Ew{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Rr,this.onMicrotaskEmpty=new Rr,this.onStable=new Rr,this.onError=new Rr}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,o){return t.apply(n,i)}}let Jg=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Cr.assertNotInAngularZone(),vu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())vu(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(xn(Cr))},e.\u0275prov=ln({token:e,factory:e.\u0275fac}),e})(),Tw=(()=>{class e{constructor(){this._applications=new Map,wu.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return wu.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ln({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();class Mw{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function Sw(e){wu=e}let wu=new Mw,Zs=null;const Kg=new ai("AllowMultipleToken"),Xg=new ai("PlatformOnDestroy");function em(e,t,n=[]){const i=`Platform: ${t}`,o=new ai(i);return(s=[])=>{let u=Du();if(!u||u.injector.get(Kg,!1)){const h=[...n,...s,{provide:o,useValue:!0}];e?e(h):function Ow(e){if(Zs&&!Zs.get(Kg,!1))throw new te(400,"");Zs=e;const t=e.get(tm),n=e.get(Zg,null);n&&n.forEach(i=>i())}(function Aw(e=[],t){return Ar.create({name:t,providers:[{provide:bc,useValue:"platform"},{provide:Xg,useValue:()=>Zs=null},...e]})}(h,i))}return function Iw(e){const t=Du();if(!t)throw new te(401,"");return t}()}}function Du(){return Zs?.get(tm)??null}let tm=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const h=function Fw(e,t){let n;return n="noop"===e?new Ew:("zone.js"===e?void 0:e)||new Cr({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!t?.ngZoneEventCoalescing,shouldCoalesceRunChangeDetection:!!t?.ngZoneRunCoalescing}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),m=[{provide:Cr,useValue:h}];return h.run(()=>{const E=Ar.create({providers:m,parent:this.injector,name:n.moduleType.name}),S=n.create(E),$=S.injector.get(Ea,null);if(!$)throw new te(402,"");return h.runOutsideAngular(()=>{const de=h.onError.subscribe({next:Me=>{$.handleError(Me)}});S.onDestroy(()=>{Tu(this._modules,S),de.unsubscribe()})}),function Nw(e,t,n){try{const i=n();return Lc(i)?i.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}($,h,()=>{const de=S.injector.get(mu);return de.runInitializers(),de.donePromise.then(()=>(function pb(e){Tn(e,"Expected localeId to be defined"),"string"==typeof e&&(wp=e.toLowerCase().replace(/_/g,"-"))}(S.injector.get(yu,Ga)||Ga),this._moduleDoBootstrap(S),S))})})}bootstrapModule(n,i=[]){const o=nm({},i);return function xw(e,t,n){const i=new nu(n);return Promise.resolve(i)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){const i=n.injector.get(Eu);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new te(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new te(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i()),this._injector.get(Xg,null)?.(),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(xn(Ar))},e.\u0275prov=ln({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function nm(e,t){return Array.isArray(t)?t.reduce(nm,e):{...e,...t}}let Eu=(()=>{class e{constructor(n,i,o,s){this._zone=n,this._injector=i,this._exceptionHandler=o,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const u=new _e.y(m=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{m.next(this._stable),m.complete()})}),h=new _e.y(m=>{let E;this._zone.runOutsideAngular(()=>{E=this._zone.onStable.subscribe(()=>{Cr.assertNotInAngularZone(),vu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,m.next(!0))})})});const S=this._zone.onUnstable.subscribe(()=>{Cr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{m.next(!1)}))});return()=>{E.unsubscribe(),S.unsubscribe()}});this.isStable=(0,pe.T)(u,h.pipe(function ut(){return e=>J()(function Ve(e,t){return function(i){let o;if(o="function"==typeof e?e:function(){return e},"function"==typeof t)return i.lift(new Ie(o,t));const s=Object.create(i,j);return s.source=i,s.subjectFactory=o,s}}(Be)(e))}()))}bootstrap(n,i){if(!this._initStatus.done)throw new te(405,"");let o;o=n instanceof Zp?n:this._injector.get(Za).resolveComponentFactory(n),this.componentTypes.push(o.componentType);const s=function Pw(e){return e.isBoundToModule}(o)?void 0:this._injector.get(cs),h=o.create(Ar.NULL,[],i||o.selector,s),m=h.location.nativeElement,E=h.injector.get(Jg,null),S=E&&h.injector.get(Tw);return E&&S&&S.registerApplication(m,E),h.onDestroy(()=>{this.detachView(h.hostView),Tu(this.components,h),S&&S.unregisterApplication(m)}),this._loadComponent(h),h}tick(){if(this._runningTick)throw new te(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;Tu(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(pw,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(xn(Cr),xn(Ar),xn(Ea),xn(mu))},e.\u0275prov=ln({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Tu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let rm=!0,om=!1;function Rw(){return om=!0,rm}function Lw(){if(om)throw new Error("Cannot enable prod mode after platform setup.");rm=!1}let Vw=(()=>{class e{}return e.__NG_ELEMENT_ID__=Bw,e})();function Bw(e){return function Hw(e,t,n){if(Mi(e)&&!n){const i=F(e.index,t);return new Gs(i,i)}return 47&e.type?new Gs(t[g],t):null}(gi(),ot(),16==(16&e))}class cm{constructor(){}supports(t){return Ns(t)}create(t){return new Ww(t)}}const zw=(e,t)=>t;class Ww{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||zw}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,o=0,s=null;for(;n||i;){const u=!i||n&&n.currentIndex<dm(i,o,s)?n:i,h=dm(u,o,s),m=u.currentIndex;if(u===i)o--,i=i._nextRemoved;else if(n=n._next,null==u.previousIndex)o++;else{s||(s=[]);const E=h-o,S=m-o;if(E!=S){for(let de=0;de<E;de++){const Me=de<s.length?s[de]:s[de]=0,Ze=Me+de;S<=Ze&&Ze<E&&(s[de]=Me+1)}s[u.previousIndex]=S-E}}h!==m&&t(u,h,m)}}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=[]),!Ns(t))throw new te(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,s,u,n=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let h=0;h<this.length;h++)s=t[h],u=this._trackByFn(h,s),null!==n&&Object.is(n.trackById,u)?(i&&(n=this._verifyReinsertion(n,s,u,h)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,u,h),i=!0),n=n._next}else o=0,function tv(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Zo()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(t,h=>{u=this._trackByFn(o,h),null!==n&&Object.is(n.trackById,u)?(i&&(n=this._verifyReinsertion(n,h,u,o)),Object.is(n.item,h)||this._addIdentityChange(n,h)):(n=this._mismatch(n,h,u,o),i=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,o){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,o)):t=this._addAfter(new Yw(n,i),s,o),t}_verifyReinsertion(t,n,i,o){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,s=t._nextRemoved;return null===o?this._removalsHead=s:o._nextRemoved=s,null===s?this._removalsTail=o:s._prevRemoved=o,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new um),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new um),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 Yw{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 Zw{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class um{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new Zw,this.map.set(n,i)),i.add(t)}get(t,n){const o=this.map.get(t);return o?o.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 dm(e,t,n){const i=e.previousIndex;if(null===i)return i;let o=0;return n&&i<n.length&&(o=n[i]),i+t+o}class hm{constructor(){}supports(t){return t instanceof Map||Sc(t)}create(){return new qw}}class qw{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||Sc(t)))throw new te(900,"")}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(o,i);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const s=o._prev,u=o._next;return s&&(s._next=u),u&&(u._prev=s),o._next=null,o._prev=null,o}const i=new Qw(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class Qw{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 fm(){return new Ou([new cm])}let Ou=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||fm()),deps:[[e,new Mr,new Zi]]}}find(n){const i=this.factories.find(o=>o.supports(n));if(null!=i)return i;throw new te(901,"")}}return e.\u0275prov=ln({token:e,providedIn:"root",factory:fm}),e})();function pm(){return new Iu([new hm])}let Iu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||pm()),deps:[[e,new Mr,new Zi]]}}find(n){const i=this.factories.find(s=>s.supports(n));if(i)return i;throw new te(901,"")}}return e.\u0275prov=ln({token:e,providedIn:"root",factory:pm}),e})();const Xw=em(null,"core",[]);let e0=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(xn(Eu))},e.\u0275mod=Bt({type:e}),e.\u0275inj=qt({}),e})()},4719:($e,X,M)=>{"use strict";M.d(X,{Wl:()=>Ve,u5:()=>mn,JU:()=>fe,JJ:()=>oi,On:()=>kn});var r=M(3071),P=M(6895),_e=M(2916),pe=M(6688),re=M(4850),J=M(7830),ce=M(5254);function Y(v,y){return new _e.y(_=>{const F=v.length;if(0===F)return void _.complete();const Ye=new Array(F);let Lt=0,Zn=0;for(let ni=0;ni<F;ni++){const rr=(0,ce.D)(v[ni]);let Wi=!1;_.add(rr.subscribe({next:Yt=>{Wi||(Wi=!0,Zn++),Ye[ni]=Yt},error:Yt=>_.error(Yt),complete:()=>{Lt++,(Lt===F||!Wi)&&(Zn===F&&_.next(y?y.reduce((Yt,Oi,Vr)=>(Yt[Oi]=Ye[Vr],Yt),{}):Ye),_.complete())}}))}})}let j=(()=>{class v{constructor(_,F){this._renderer=_,this._elementRef=F,this.onChange=Ye=>{},this.onTouched=()=>{}}setProperty(_,F){this._renderer.setProperty(this._elementRef.nativeElement,_,F)}registerOnTouched(_){this.onTouched=_}registerOnChange(_){this.onChange=_}setDisabledState(_){this.setProperty("disabled",_)}}return v.\u0275fac=function(_){return new(_||v)(r.Y36(r.Qsj),r.Y36(r.SBq))},v.\u0275dir=r.lG2({type:v}),v})(),z=(()=>{class v extends j{}return v.\u0275fac=function(){let y;return function(F){return(y||(y=r.n5z(v)))(F||v)}}(),v.\u0275dir=r.lG2({type:v,features:[r.qOj]}),v})();const fe=new r.OlP("NgValueAccessor"),ge={provide:fe,useExisting:(0,r.Gpc)(()=>Ve),multi:!0};let Ve=(()=>{class v extends z{writeValue(_){this.setProperty("checked",_)}}return v.\u0275fac=function(){let y;return function(F){return(y||(y=r.n5z(v)))(F||v)}}(),v.\u0275dir=r.lG2({type:v,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(_,F){1&_&&r.NdJ("change",function(Lt){return F.onChange(Lt.target.checked)})("blur",function(){return F.onTouched()})},features:[r._Bn([ge]),r.qOj]}),v})();const Ie={provide:fe,useExisting:(0,r.Gpc)(()=>st),multi:!0},ut=new r.OlP("CompositionEventMode");let st=(()=>{class v extends j{constructor(_,F,Ye){super(_,F),this._compositionMode=Ye,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Be(){const v=(0,P.q)()?(0,P.q)().getUserAgent():"";return/android (\d+)/.test(v.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(_)}}return v.\u0275fac=function(_){return new(_||v)(r.Y36(r.Qsj),r.Y36(r.SBq),r.Y36(ut,8))},v.\u0275dir=r.lG2({type:v,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){1&_&&r.NdJ("input",function(Lt){return F._handleInput(Lt.target.value)})("blur",function(){return F.onTouched()})("compositionstart",function(){return F._compositionStart()})("compositionend",function(Lt){return F._compositionEnd(Lt.target.value)})},features:[r._Bn([Ie]),r.qOj]}),v})();const Pt=new r.OlP("NgValidators"),Tt=new r.OlP("NgAsyncValidators");function ct(v){return null!=v}function Rt(v){const y=(0,r.QGY)(v)?(0,ce.D)(v):v;return(0,r.CqO)(y),y}function It(v){let y={};return v.forEach(_=>{y=null!=_?{...y,..._}:y}),0===Object.keys(y).length?null:y}function In(v,y){return y.map(_=>_(v))}function Kt(v){return v.map(y=>function Yn(v){return!v.validate}(y)?y:_=>y.validate(_))}function En(v){return null!=v?function Xn(v){if(!v)return null;const y=v.filter(ct);return 0==y.length?null:function(_){return It(In(_,y))}}(Kt(v)):null}function Rn(v){return null!=v?function Vn(v){if(!v)return null;const y=v.filter(ct);return 0==y.length?null:function(_){return function W(...v){if(1===v.length){const y=v[0];if((0,pe.k)(y))return Y(y,null);if((0,J.K)(y)&&Object.getPrototypeOf(y)===Object.prototype){const _=Object.keys(y);return Y(_.map(F=>y[F]),_)}}if("function"==typeof v[v.length-1]){const y=v.pop();return Y(v=1===v.length&&(0,pe.k)(v[0])?v[0]:v,null).pipe((0,re.U)(_=>y(..._)))}return Y(v,null)}(In(_,y).map(Rt)).pipe((0,re.U)(It))}}(Kt(v)):null}function yn(v,y){return null===v?[y]:Array.isArray(v)?[...v,y]:[v,y]}function ii(v){return v?Array.isArray(v)?v:[v]:[]}function Tn(v,y){return Array.isArray(v)?v.includes(y):v===y}function Zt(v,y){const _=ii(y);return ii(v).forEach(Ye=>{Tn(_,Ye)||_.push(Ye)}),_}function hi(v,y){return ii(y).filter(_=>!Tn(v,_))}class fi{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(y){this._rawValidators=y||[],this._composedValidatorFn=En(this._rawValidators)}_setAsyncValidators(y){this._rawAsyncValidators=y||[],this._composedAsyncValidatorFn=Rn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(y){this._onDestroyCallbacks.push(y)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(y=>y()),this._onDestroyCallbacks=[]}reset(y){this.control&&this.control.reset(y)}hasError(y,_){return!!this.control&&this.control.hasError(y,_)}getError(y,_){return this.control?this.control.getError(y,_):null}}class Sn extends fi{get formDirective(){return null}get path(){return null}}class ln extends fi{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let oi=(()=>{class v extends class Ni{constructor(y){this._cd=y}is(y){return"submitted"===y?!!this._cd?.submitted:!!this._cd?.control?.[y]}}{constructor(_){super(_)}}return v.\u0275fac=function(_){return new(_||v)(r.Y36(ln,2))},v.\u0275dir=r.lG2({type:v,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(_,F){2&_&&r.ekj("ng-untouched",F.is("untouched"))("ng-touched",F.is("touched"))("ng-pristine",F.is("pristine"))("ng-dirty",F.is("dirty"))("ng-valid",F.is("valid"))("ng-invalid",F.is("invalid"))("ng-pending",F.is("pending"))},features:[r.qOj]}),v})();function Ee(v,y){(function qe(v,y){const _=function Ln(v){return v._rawValidators}(v);null!==y.validator?v.setValidators(yn(_,y.validator)):"function"==typeof _&&v.setValidators([_]);const F=function Di(v){return v._rawAsyncValidators}(v);null!==y.asyncValidator?v.setAsyncValidators(yn(F,y.asyncValidator)):"function"==typeof F&&v.setAsyncValidators([F]);const Ye=()=>v.updateValueAndValidity();De(y._rawValidators,Ye),De(y._rawAsyncValidators,Ye)})(v,y),y.valueAccessor.writeValue(v.value),function Ct(v,y){y.valueAccessor.registerOnChange(_=>{v._pendingValue=_,v._pendingChange=!0,v._pendingDirty=!0,"change"===v.updateOn&&at(v,y)})}(v,y),function bt(v,y){const _=(F,Ye)=>{y.valueAccessor.writeValue(F),Ye&&y.viewToModelUpdate(F)};v.registerOnChange(_),y._registerOnDestroy(()=>{v._unregisterOnChange(_)})}(v,y),function wt(v,y){y.valueAccessor.registerOnTouched(()=>{v._pendingTouched=!0,"blur"===v.updateOn&&v._pendingChange&&at(v,y),"submit"!==v.updateOn&&v.markAsTouched()})}(v,y),function Je(v,y){if(y.valueAccessor.setDisabledState){const _=F=>{y.valueAccessor.setDisabledState(F)};v.registerOnDisabledChange(_),y._registerOnDestroy(()=>{v._unregisterOnDisabledChange(_)})}}(v,y)}function De(v,y){v.forEach(_=>{_.registerOnValidatorChange&&_.registerOnValidatorChange(y)})}function at(v,y){v._pendingDirty&&v.markAsDirty(),v.setValue(v._pendingValue,{emitModelToViewChange:!1}),y.viewToModelUpdate(v._pendingValue),v._pendingChange=!1}function rn(v,y){const _=v.indexOf(y);_>-1&&v.splice(_,1)}const jt="VALID",gn="INVALID",T="PENDING",N="DISABLED";function ee(v){return(Oe(v)?v.validators:v)||null}function Ne(v){return Array.isArray(v)?En(v):v||null}function xe(v,y){return(Oe(y)?y.asyncValidators:v)||null}function me(v){return Array.isArray(v)?Rn(v):v||null}function Oe(v){return null!=v&&!Array.isArray(v)&&"object"==typeof v}const rt=v=>v instanceof Re;function q(v){return(v=>v instanceof fn)(v)?v.value:v.getRawValue()}function we(v,y){const _=rt(v),F=v.controls;if(!(_?Object.keys(F):F).length)throw new r.vHH(1e3,"");if(!F[y])throw new r.vHH(1001,"")}function et(v,y){rt(v),v._forEachChild((F,Ye)=>{if(void 0===y[Ye])throw new r.vHH(1002,"")})}class vt{constructor(y,_){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=y,this._rawAsyncValidators=_,this._composedValidatorFn=Ne(this._rawValidators),this._composedAsyncValidatorFn=me(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(y){this._rawValidators=this._composedValidatorFn=y}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(y){this._rawAsyncValidators=this._composedAsyncValidatorFn=y}get parent(){return this._parent}get valid(){return this.status===jt}get invalid(){return this.status===gn}get pending(){return this.status==T}get disabled(){return this.status===N}get enabled(){return this.status!==N}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(y){this._rawValidators=y,this._composedValidatorFn=Ne(y)}setAsyncValidators(y){this._rawAsyncValidators=y,this._composedAsyncValidatorFn=me(y)}addValidators(y){this.setValidators(Zt(y,this._rawValidators))}addAsyncValidators(y){this.setAsyncValidators(Zt(y,this._rawAsyncValidators))}removeValidators(y){this.setValidators(hi(y,this._rawValidators))}removeAsyncValidators(y){this.setAsyncValidators(hi(y,this._rawAsyncValidators))}hasValidator(y){return Tn(this._rawValidators,y)}hasAsyncValidator(y){return Tn(this._rawAsyncValidators,y)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(y={}){this.touched=!0,this._parent&&!y.onlySelf&&this._parent.markAsTouched(y)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(y=>y.markAllAsTouched())}markAsUntouched(y={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(_=>{_.markAsUntouched({onlySelf:!0})}),this._parent&&!y.onlySelf&&this._parent._updateTouched(y)}markAsDirty(y={}){this.pristine=!1,this._parent&&!y.onlySelf&&this._parent.markAsDirty(y)}markAsPristine(y={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(_=>{_.markAsPristine({onlySelf:!0})}),this._parent&&!y.onlySelf&&this._parent._updatePristine(y)}markAsPending(y={}){this.status=T,!1!==y.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!y.onlySelf&&this._parent.markAsPending(y)}disable(y={}){const _=this._parentMarkedDirty(y.onlySelf);this.status=N,this.errors=null,this._forEachChild(F=>{F.disable({...y,onlySelf:!0})}),this._updateValue(),!1!==y.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...y,skipPristineCheck:_}),this._onDisabledChange.forEach(F=>F(!0))}enable(y={}){const _=this._parentMarkedDirty(y.onlySelf);this.status=jt,this._forEachChild(F=>{F.enable({...y,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:y.emitEvent}),this._updateAncestors({...y,skipPristineCheck:_}),this._onDisabledChange.forEach(F=>F(!1))}_updateAncestors(y){this._parent&&!y.onlySelf&&(this._parent.updateValueAndValidity(y),y.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(y){this._parent=y}updateValueAndValidity(y={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===jt||this.status===T)&&this._runAsyncValidator(y.emitEvent)),!1!==y.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!y.onlySelf&&this._parent.updateValueAndValidity(y)}_updateTreeValidity(y={emitEvent:!0}){this._forEachChild(_=>_._updateTreeValidity(y)),this.updateValueAndValidity({onlySelf:!0,emitEvent:y.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?N:jt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(y){if(this.asyncValidator){this.status=T,this._hasOwnPendingAsyncValidator=!0;const _=Rt(this.asyncValidator(this));this._asyncValidationSubscription=_.subscribe(F=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(F,{emitEvent:y})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(y,_={}){this.errors=y,this._updateControlsErrors(!1!==_.emitEvent)}get(y){return function A(v,y,_){if(null==y||(Array.isArray(y)||(y=y.split(_)),Array.isArray(y)&&0===y.length))return null;let F=v;return y.forEach(Ye=>{F=rt(F)?F.controls.hasOwnProperty(Ye)?F.controls[Ye]:null:(v=>v instanceof Fe)(F)&&F.at(Ye)||null}),F}(this,y,".")}getError(y,_){const F=_?this.get(_):this;return F&&F.errors?F.errors[y]:null}hasError(y,_){return!!this.getError(y,_)}get root(){let y=this;for(;y._parent;)y=y._parent;return y}_updateControlsErrors(y){this.status=this._calculateStatus(),y&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(y)}_initObservables(){this.valueChanges=new r.vpe,this.statusChanges=new r.vpe}_calculateStatus(){return this._allControlsDisabled()?N:this.errors?gn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(T)?T:this._anyControlsHaveStatus(gn)?gn:jt}_anyControlsHaveStatus(y){return this._anyControls(_=>_.status===y)}_anyControlsDirty(){return this._anyControls(y=>y.dirty)}_anyControlsTouched(){return this._anyControls(y=>y.touched)}_updatePristine(y={}){this.pristine=!this._anyControlsDirty(),this._parent&&!y.onlySelf&&this._parent._updatePristine(y)}_updateTouched(y={}){this.touched=this._anyControlsTouched(),this._parent&&!y.onlySelf&&this._parent._updateTouched(y)}_isBoxedValue(y){return"object"==typeof y&&null!==y&&2===Object.keys(y).length&&"value"in y&&"disabled"in y}_registerOnCollectionChange(y){this._onCollectionChange=y}_setUpdateStrategy(y){Oe(y)&&null!=y.updateOn&&(this._updateOn=y.updateOn)}_parentMarkedDirty(y){return!y&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class fn extends vt{constructor(y=null,_,F){super(ee(_),xe(F,_)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(y),this._setUpdateStrategy(_),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Oe(_)&&_.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(y)?y.value:y)}setValue(y,_={}){this.value=this._pendingValue=y,this._onChange.length&&!1!==_.emitModelToViewChange&&this._onChange.forEach(F=>F(this.value,!1!==_.emitViewToModelChange)),this.updateValueAndValidity(_)}patchValue(y,_={}){this.setValue(y,_)}reset(y=this.defaultValue,_={}){this._applyFormState(y),this.markAsPristine(_),this.markAsUntouched(_),this.setValue(this.value,_),this._pendingChange=!1}_updateValue(){}_anyControls(y){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(y){this._onChange.push(y)}_unregisterOnChange(y){rn(this._onChange,y)}registerOnDisabledChange(y){this._onDisabledChange.push(y)}_unregisterOnDisabledChange(y){rn(this._onDisabledChange,y)}_forEachChild(y){}_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(y){this._isBoxedValue(y)?(this.value=this._pendingValue=y.value,y.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=y}}class Re extends vt{constructor(y,_,F){super(ee(_),xe(F,_)),this.controls=y,this._initObservables(),this._setUpdateStrategy(_),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(y,_){return this.controls[y]?this.controls[y]:(this.controls[y]=_,_.setParent(this),_._registerOnCollectionChange(this._onCollectionChange),_)}addControl(y,_,F={}){this.registerControl(y,_),this.updateValueAndValidity({emitEvent:F.emitEvent}),this._onCollectionChange()}removeControl(y,_={}){this.controls[y]&&this.controls[y]._registerOnCollectionChange(()=>{}),delete this.controls[y],this.updateValueAndValidity({emitEvent:_.emitEvent}),this._onCollectionChange()}setControl(y,_,F={}){this.controls[y]&&this.controls[y]._registerOnCollectionChange(()=>{}),delete this.controls[y],_&&this.registerControl(y,_),this.updateValueAndValidity({emitEvent:F.emitEvent}),this._onCollectionChange()}contains(y){return this.controls.hasOwnProperty(y)&&this.controls[y].enabled}setValue(y,_={}){et(this,y),Object.keys(y).forEach(F=>{we(this,F),this.controls[F].setValue(y[F],{onlySelf:!0,emitEvent:_.emitEvent})}),this.updateValueAndValidity(_)}patchValue(y,_={}){null!=y&&(Object.keys(y).forEach(F=>{this.controls[F]&&this.controls[F].patchValue(y[F],{onlySelf:!0,emitEvent:_.emitEvent})}),this.updateValueAndValidity(_))}reset(y={},_={}){this._forEachChild((F,Ye)=>{F.reset(y[Ye],{onlySelf:!0,emitEvent:_.emitEvent})}),this._updatePristine(_),this._updateTouched(_),this.updateValueAndValidity(_)}getRawValue(){return this._reduceChildren({},(y,_,F)=>(y[F]=q(_),y))}_syncPendingControls(){let y=this._reduceChildren(!1,(_,F)=>!!F._syncPendingControls()||_);return y&&this.updateValueAndValidity({onlySelf:!0}),y}_forEachChild(y){Object.keys(this.controls).forEach(_=>{const F=this.controls[_];F&&y(F,_)})}_setUpControls(){this._forEachChild(y=>{y.setParent(this),y._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(y){for(const _ of Object.keys(this.controls)){const F=this.controls[_];if(this.contains(_)&&y(F))return!0}return!1}_reduceValue(){return this._reduceChildren({},(y,_,F)=>((_.enabled||this.disabled)&&(y[F]=_.value),y))}_reduceChildren(y,_){let F=y;return this._forEachChild((Ye,Lt)=>{F=_(F,Ye,Lt)}),F}_allControlsDisabled(){for(const y of Object.keys(this.controls))if(this.controls[y].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Fe extends vt{constructor(y,_,F){super(ee(_),xe(F,_)),this.controls=y,this._initObservables(),this._setUpdateStrategy(_),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(y){return this.controls[y]}push(y,_={}){this.controls.push(y),this._registerControl(y),this.updateValueAndValidity({emitEvent:_.emitEvent}),this._onCollectionChange()}insert(y,_,F={}){this.controls.splice(y,0,_),this._registerControl(_),this.updateValueAndValidity({emitEvent:F.emitEvent})}removeAt(y,_={}){this.controls[y]&&this.controls[y]._registerOnCollectionChange(()=>{}),this.controls.splice(y,1),this.updateValueAndValidity({emitEvent:_.emitEvent})}setControl(y,_,F={}){this.controls[y]&&this.controls[y]._registerOnCollectionChange(()=>{}),this.controls.splice(y,1),_&&(this.controls.splice(y,0,_),this._registerControl(_)),this.updateValueAndValidity({emitEvent:F.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(y,_={}){et(this,y),y.forEach((F,Ye)=>{we(this,Ye),this.at(Ye).setValue(F,{onlySelf:!0,emitEvent:_.emitEvent})}),this.updateValueAndValidity(_)}patchValue(y,_={}){null!=y&&(y.forEach((F,Ye)=>{this.at(Ye)&&this.at(Ye).patchValue(F,{onlySelf:!0,emitEvent:_.emitEvent})}),this.updateValueAndValidity(_))}reset(y=[],_={}){this._forEachChild((F,Ye)=>{F.reset(y[Ye],{onlySelf:!0,emitEvent:_.emitEvent})}),this._updatePristine(_),this._updateTouched(_),this.updateValueAndValidity(_)}getRawValue(){return this.controls.map(y=>q(y))}clear(y={}){this.controls.length<1||(this._forEachChild(_=>_._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:y.emitEvent}))}_syncPendingControls(){let y=this.controls.reduce((_,F)=>!!F._syncPendingControls()||_,!1);return y&&this.updateValueAndValidity({onlySelf:!0}),y}_forEachChild(y){this.controls.forEach((_,F)=>{y(_,F)})}_updateValue(){this.value=this.controls.filter(y=>y.enabled||this.disabled).map(y=>y.value)}_anyControls(y){return this.controls.some(_=>_.enabled&&y(_))}_setUpControls(){this._forEachChild(y=>this._registerControl(y))}_allControlsDisabled(){for(const y of this.controls)if(y.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(y){y.setParent(this),y._registerOnCollectionChange(this._onCollectionChange)}}const Cn={provide:ln,useExisting:(0,r.Gpc)(()=>kn)},Bn=(()=>Promise.resolve(null))();let kn=(()=>{class v extends ln{constructor(_,F,Ye,Lt,Zn){super(),this._changeDetectorRef=Zn,this.control=new fn,this._registered=!1,this.update=new r.vpe,this._parent=_,this._setValidators(F),this._setAsyncValidators(Ye),this.valueAccessor=function Nt(v,y){if(!y)return null;let _,F,Ye;return Array.isArray(y),y.forEach(Lt=>{Lt.constructor===st?_=Lt:function mt(v){return Object.getPrototypeOf(v.constructor)===z}(Lt)?F=Lt:Ye=Lt}),Ye||F||_||null}(0,Lt)}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 We(v,y){if(!v.hasOwnProperty("model"))return!1;const _=v.model;return!!_.isFirstChange()||!Object.is(y,_.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(){Ee(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(_){Bn.then(()=>{this.control.setValue(_,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(_){const F=_.isDisabled.currentValue,Ye=""===F||F&&"false"!==F;Bn.then(()=>{Ye&&!this.control.disabled?this.control.disable():!Ye&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(_){return this._parent?function ne(v,y){return[...y.path,v]}(_,this._parent):[_]}}return v.\u0275fac=function(_){return new(_||v)(r.Y36(Sn,9),r.Y36(Pt,10),r.Y36(Tt,10),r.Y36(fe,10),r.Y36(r.sBO,8))},v.\u0275dir=r.lG2({type:v,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r._Bn([Cn]),r.qOj,r.TTD]}),v})(),Qn=(()=>{class v{}return v.\u0275fac=function(_){return new(_||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({}),v})(),$n=(()=>{class v{}return v.\u0275fac=function(_){return new(_||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({imports:[[Qn]]}),v})(),mn=(()=>{class v{}return v.\u0275fac=function(_){return new(_||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({imports:[$n]}),v})()},1481:($e,X,M)=>{"use strict";M.d(X,{b2:()=>fi,q6:()=>Zt,se:()=>be});var r=M(6895),P=M(3071);class _e extends r.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class pe extends _e{static makeCurrent(){(0,r.HT)(new pe)}onAndCancel(Z,G,ye){return Z.addEventListener(G,ye,!1),()=>{Z.removeEventListener(G,ye,!1)}}dispatchEvent(Z,G){Z.dispatchEvent(G)}remove(Z){Z.parentNode&&Z.parentNode.removeChild(Z)}createElement(Z,G){return(G=G||this.getDefaultDocument()).createElement(Z)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Z){return Z.nodeType===Node.ELEMENT_NODE}isShadowRoot(Z){return Z instanceof DocumentFragment}getGlobalEventTarget(Z,G){return"window"===G?window:"document"===G?Z:"body"===G?Z.body:null}getBaseHref(Z){const G=function J(){return re=re||document.querySelector("base"),re?re.getAttribute("href"):null}();return null==G?null:function W(ae){ce=ce||document.createElement("a"),ce.setAttribute("href",ae);const Z=ce.pathname;return"/"===Z.charAt(0)?Z:`/${Z}`}(G)}resetBaseElement(){re=null}getUserAgent(){return window.navigator.userAgent}getCookie(Z){return(0,r.Mx)(document.cookie,Z)}}let ce,re=null;const Y=new P.OlP("TRANSITION_ID"),z=[{provide:P.ip1,useFactory:function j(ae,Z,G){return()=>{G.get(P.CZH).donePromise.then(()=>{const ye=(0,r.q)(),Te=Z.querySelectorAll(`style[ng-transition="${ae}"]`);for(let We=0;We<Te.length;We++)ye.remove(Te[We])})}},deps:[Y,r.K0,P.zs3],multi:!0}];class fe{static init(){(0,P.VLi)(new fe)}addToWindow(Z){P.dqk.getAngularTestability=(ye,Te=!0)=>{const We=Z.findTestabilityInTree(ye,Te);if(null==We)throw new Error("Could not find testability for element.");return We},P.dqk.getAllAngularTestabilities=()=>Z.getAllTestabilities(),P.dqk.getAllAngularRootElements=()=>Z.getAllRootElements(),P.dqk.frameworkStabilizers||(P.dqk.frameworkStabilizers=[]),P.dqk.frameworkStabilizers.push(ye=>{const Te=P.dqk.getAllAngularTestabilities();let We=Te.length,mt=!1;const Ot=function(Nt){mt=mt||Nt,We--,0==We&&ye(mt)};Te.forEach(function(Nt){Nt.whenStable(Ot)})})}findTestabilityInTree(Z,G,ye){return null==G?null:Z.getTestability(G)??(ye?(0,r.q)().isShadowRoot(G)?this.findTestabilityInTree(Z,G.host,!0):this.findTestabilityInTree(Z,G.parentElement,!0):null)}}let ge=(()=>{class ae{build(){return new XMLHttpRequest}}return ae.\u0275fac=function(G){return new(G||ae)},ae.\u0275prov=P.Yz7({token:ae,factory:ae.\u0275fac}),ae})();const Ve=new P.OlP("EventManagerPlugins");let Ie=(()=>{class ae{constructor(G,ye){this._zone=ye,this._eventNameToPlugin=new Map,G.forEach(Te=>Te.manager=this),this._plugins=G.slice().reverse()}addEventListener(G,ye,Te){return this._findPluginFor(ye).addEventListener(G,ye,Te)}addGlobalEventListener(G,ye,Te){return this._findPluginFor(ye).addGlobalEventListener(G,ye,Te)}getZone(){return this._zone}_findPluginFor(G){const ye=this._eventNameToPlugin.get(G);if(ye)return ye;const Te=this._plugins;for(let We=0;We<Te.length;We++){const mt=Te[We];if(mt.supports(G))return this._eventNameToPlugin.set(G,mt),mt}throw new Error(`No event manager plugin found for event ${G}`)}}return ae.\u0275fac=function(G){return new(G||ae)(P.LFG(Ve),P.LFG(P.R0b))},ae.\u0275prov=P.Yz7({token:ae,factory:ae.\u0275fac}),ae})();class Be{constructor(Z){this._doc=Z}addGlobalEventListener(Z,G,ye){const Te=(0,r.q)().getGlobalEventTarget(this._doc,Z);if(!Te)throw new Error(`Unsupported event target ${Te} for event ${G}`);return this.addEventListener(Te,G,ye)}}let ut=(()=>{class ae{constructor(){this._stylesSet=new Set}addStyles(G){const ye=new Set;G.forEach(Te=>{this._stylesSet.has(Te)||(this._stylesSet.add(Te),ye.add(Te))}),this.onStylesAdded(ye)}onStylesAdded(G){}getAllStyles(){return Array.from(this._stylesSet)}}return ae.\u0275fac=function(G){return new(G||ae)},ae.\u0275prov=P.Yz7({token:ae,factory:ae.\u0275fac}),ae})(),st=(()=>{class ae extends ut{constructor(G){super(),this._doc=G,this._hostNodes=new Map,this._hostNodes.set(G.head,[])}_addStylesToHost(G,ye,Te){G.forEach(We=>{const mt=this._doc.createElement("style");mt.textContent=We,Te.push(ye.appendChild(mt))})}addHost(G){const ye=[];this._addStylesToHost(this._stylesSet,G,ye),this._hostNodes.set(G,ye)}removeHost(G){const ye=this._hostNodes.get(G);ye&&ye.forEach(dt),this._hostNodes.delete(G)}onStylesAdded(G){this._hostNodes.forEach((ye,Te)=>{this._addStylesToHost(G,Te,ye)})}ngOnDestroy(){this._hostNodes.forEach(G=>G.forEach(dt))}}return ae.\u0275fac=function(G){return new(G||ae)(P.LFG(r.K0))},ae.\u0275prov=P.Yz7({token:ae,factory:ae.\u0275fac}),ae})();function dt(ae){(0,r.q)().remove(ae)}const _t={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Pt=/%COMP%/g;function V(ae,Z,G){for(let ye=0;ye<Z.length;ye++){let Te=Z[ye];Array.isArray(Te)?V(ae,Te,G):(Te=Te.replace(Pt,ae),G.push(Te))}return G}function K(ae){return Z=>{if("__ngUnwrap__"===Z)return ae;!1===ae(Z)&&(Z.preventDefault(),Z.returnValue=!1)}}let be=(()=>{class ae{constructor(G,ye,Te){this.eventManager=G,this.sharedStylesHost=ye,this.appId=Te,this.rendererByCompId=new Map,this.defaultRenderer=new se(G)}createRenderer(G,ye){if(!G||!ye)return this.defaultRenderer;switch(ye.encapsulation){case P.ifc.Emulated:{let Te=this.rendererByCompId.get(ye.id);return Te||(Te=new Rt(this.eventManager,this.sharedStylesHost,ye,this.appId),this.rendererByCompId.set(ye.id,Te)),Te.applyToHost(G),Te}case 1:case P.ifc.ShadowDom:return new It(this.eventManager,this.sharedStylesHost,G,ye);default:if(!this.rendererByCompId.has(ye.id)){const Te=V(ye.id,ye.styles,[]);this.sharedStylesHost.addStyles(Te),this.rendererByCompId.set(ye.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return ae.\u0275fac=function(G){return new(G||ae)(P.LFG(Ie),P.LFG(st),P.LFG(P.AFp))},ae.\u0275prov=P.Yz7({token:ae,factory:ae.\u0275fac}),ae})();class se{constructor(Z){this.eventManager=Z,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Z,G){return G?document.createElementNS(_t[G]||G,Z):document.createElement(Z)}createComment(Z){return document.createComment(Z)}createText(Z){return document.createTextNode(Z)}appendChild(Z,G){Z.appendChild(G)}insertBefore(Z,G,ye){Z&&Z.insertBefore(G,ye)}removeChild(Z,G){Z&&Z.removeChild(G)}selectRootElement(Z,G){let ye="string"==typeof Z?document.querySelector(Z):Z;if(!ye)throw new Error(`The selector "${Z}" did not match any elements`);return G||(ye.textContent=""),ye}parentNode(Z){return Z.parentNode}nextSibling(Z){return Z.nextSibling}setAttribute(Z,G,ye,Te){if(Te){G=Te+":"+G;const We=_t[Te];We?Z.setAttributeNS(We,G,ye):Z.setAttribute(G,ye)}else Z.setAttribute(G,ye)}removeAttribute(Z,G,ye){if(ye){const Te=_t[ye];Te?Z.removeAttributeNS(Te,G):Z.removeAttribute(`${ye}:${G}`)}else Z.removeAttribute(G)}addClass(Z,G){Z.classList.add(G)}removeClass(Z,G){Z.classList.remove(G)}setStyle(Z,G,ye,Te){Te&(P.JOm.DashCase|P.JOm.Important)?Z.style.setProperty(G,ye,Te&P.JOm.Important?"important":""):Z.style[G]=ye}removeStyle(Z,G,ye){ye&P.JOm.DashCase?Z.style.removeProperty(G):Z.style[G]=""}setProperty(Z,G,ye){Z[G]=ye}setValue(Z,G){Z.nodeValue=G}listen(Z,G,ye){return"string"==typeof Z?this.eventManager.addGlobalEventListener(Z,G,K(ye)):this.eventManager.addEventListener(Z,G,K(ye))}}class Rt extends se{constructor(Z,G,ye,Te){super(Z),this.component=ye;const We=V(Te+"-"+ye.id,ye.styles,[]);G.addStyles(We),this.contentAttr=function nn(ae){return"_ngcontent-%COMP%".replace(Pt,ae)}(Te+"-"+ye.id),this.hostAttr=function te(ae){return"_nghost-%COMP%".replace(Pt,ae)}(Te+"-"+ye.id)}applyToHost(Z){super.setAttribute(Z,this.hostAttr,"")}createElement(Z,G){const ye=super.createElement(Z,G);return super.setAttribute(ye,this.contentAttr,""),ye}}class It extends se{constructor(Z,G,ye,Te){super(Z),this.sharedStylesHost=G,this.hostEl=ye,this.shadowRoot=ye.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const We=V(Te.id,Te.styles,[]);for(let mt=0;mt<We.length;mt++){const Ot=document.createElement("style");Ot.textContent=We[mt],this.shadowRoot.appendChild(Ot)}}nodeOrShadowRoot(Z){return Z===this.hostEl?this.shadowRoot:Z}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Z,G){return super.appendChild(this.nodeOrShadowRoot(Z),G)}insertBefore(Z,G,ye){return super.insertBefore(this.nodeOrShadowRoot(Z),G,ye)}removeChild(Z,G){return super.removeChild(this.nodeOrShadowRoot(Z),G)}parentNode(Z){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Z)))}}let In=(()=>{class ae extends Be{constructor(G){super(G)}supports(G){return!0}addEventListener(G,ye,Te){return G.addEventListener(ye,Te,!1),()=>this.removeEventListener(G,ye,Te)}removeEventListener(G,ye,Te){return G.removeEventListener(ye,Te)}}return ae.\u0275fac=function(G){return new(G||ae)(P.LFG(r.K0))},ae.\u0275prov=P.Yz7({token:ae,factory:ae.\u0275fac}),ae})();const Yn=["alt","control","meta","shift"],Xn={"\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"},En={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Vn={alt:ae=>ae.altKey,control:ae=>ae.ctrlKey,meta:ae=>ae.metaKey,shift:ae=>ae.shiftKey};let Rn=(()=>{class ae extends Be{constructor(G){super(G)}supports(G){return null!=ae.parseEventName(G)}addEventListener(G,ye,Te){const We=ae.parseEventName(ye),mt=ae.eventCallback(We.fullKey,Te,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,r.q)().onAndCancel(G,We.domEventName,mt))}static parseEventName(G){const ye=G.toLowerCase().split("."),Te=ye.shift();if(0===ye.length||"keydown"!==Te&&"keyup"!==Te)return null;const We=ae._normalizeKey(ye.pop());let mt="";if(Yn.forEach(Nt=>{const rn=ye.indexOf(Nt);rn>-1&&(ye.splice(rn,1),mt+=Nt+".")}),mt+=We,0!=ye.length||0===We.length)return null;const Ot={};return Ot.domEventName=Te,Ot.fullKey=mt,Ot}static getEventFullKey(G){let ye="",Te=function yn(ae){let Z=ae.key;if(null==Z){if(Z=ae.keyIdentifier,null==Z)return"Unidentified";Z.startsWith("U+")&&(Z=String.fromCharCode(parseInt(Z.substring(2),16)),3===ae.location&&En.hasOwnProperty(Z)&&(Z=En[Z]))}return Xn[Z]||Z}(G);return Te=Te.toLowerCase()," "===Te?Te="space":"."===Te&&(Te="dot"),Yn.forEach(We=>{We!=Te&&Vn[We](G)&&(ye+=We+".")}),ye+=Te,ye}static eventCallback(G,ye,Te){return We=>{ae.getEventFullKey(We)===G&&Te.runGuarded(()=>ye(We))}}static _normalizeKey(G){return"esc"===G?"escape":G}}return ae.\u0275fac=function(G){return new(G||ae)(P.LFG(r.K0))},ae.\u0275prov=P.Yz7({token:ae,factory:ae.\u0275fac}),ae})();const Zt=(0,P.eFA)(P._c5,"browser",[{provide:P.Lbi,useValue:r.bD},{provide:P.g9A,useValue:function Ln(){pe.makeCurrent(),fe.init()},multi:!0},{provide:r.K0,useFactory:function ii(){return(0,P.RDi)(document),document},deps:[]}]),hi=[{provide:P.zSh,useValue:"root"},{provide:P.qLn,useFactory:function Di(){return new P.qLn},deps:[]},{provide:Ve,useClass:In,multi:!0,deps:[r.K0,P.R0b,P.Lbi]},{provide:Ve,useClass:Rn,multi:!0,deps:[r.K0]},{provide:be,useClass:be,deps:[Ie,st,P.AFp]},{provide:P.FYo,useExisting:be},{provide:ut,useExisting:st},{provide:st,useClass:st,deps:[r.K0]},{provide:P.dDg,useClass:P.dDg,deps:[P.R0b]},{provide:Ie,useClass:Ie,deps:[Ve,P.R0b]},{provide:r.JF,useClass:ge,deps:[]}];let fi=(()=>{class ae{constructor(G){if(G)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(G){return{ngModule:ae,providers:[{provide:P.AFp,useValue:G.appId},{provide:Y,useExisting:P.AFp},z]}}}return ae.\u0275fac=function(G){return new(G||ae)(P.LFG(ae,12))},ae.\u0275mod=P.oAB({type:ae}),ae.\u0275inj=P.cJS({providers:hi,imports:[r.ez,P.hGG]}),ae})();typeof window<"u"&&window},8638:($e,X,M)=>{"use strict";M.d(X,{Tr:()=>te});var r=M(3071),P=M(5793),_e=M(4850);const W={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 Y{constructor(be){this.unprotectedPaths=["/resetpass","/invitation"],this.protocol=be.protocol;let se=be.port;se||(function pe(ie){return/^https:$/i.test(ie)}(this.protocol)?se="443":function re(ie){return/^http:$/i.test(ie)}(this.protocol)&&(se="80")),this.domain=be.hostname,this.port=parseInt(se,10),this.path=be.pathname;const tt=this.path.match(/((?:\/cpsess\d+)?)(?:\/([^\/]+))?/)||[];if(this.applicationName=/^whm\./.test(this.domain)?W[2087]:/^cpanel\./.test(this.domain)?W[2083]:/^webmail\./.test(this.domain)?W[2095]:W[se.toString()]||W[tt[2]]||"whostmgr",this.securityToken=tt[1]||"",this.applicationPath=this.securityToken?this.path.replace(this.securityToken,""):this.path,this.theme="",!this.isUnprotected&&(this.isCpanel||this.isWebmail)){const Rt=this.path.split("/");this.theme=Rt[3]}this.themePath="";let ct=this.securityToken+"/";this.isUnprotected?ct="/":this.isCpanel?ct+="frontend/"+this.theme+"/":this.isWebmail?ct+="webmail/"+this.theme+"/":this.isOther&&(ct="/"),this.themePath=ct,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 J(ie){return ie&&ie.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 j{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 z=M(4235),fe=M.n(z),ge=M(1305),Ve=M.n(ge),Ie=(()=>{return(ie=Ie||(Ie={}))[ie.Error=0]="Error",ie[ie.Warning=1]="Warning",ie[ie.Information=2]="Information",ie[ie.Unknown=3]="Unknown",Ie;var ie})();const Be={isPaged:!1,isFiltered:!1,record:0,page:0,pageSize:0,totalRecords:0,totalPages:0,recordsBeforeFilter:0,batch:!1,properties:{}};class dt{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(tt=>!se.has(tt)).forEach(tt=>{this.properties[tt]=be[tt]})}}class _t extends class st{constructor(be,se){if(this.status=0,this.messages=[],this.meta=function ut(ie){return JSON.parse(JSON.stringify(ie))}(Be),this.options={keepUnprocessedResponse:!1},fe()(be)||Ve()(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(Ie.Error)}get warnings(){return this._getMessages(Ie.Warning)}get infoMessages(){return this._getMessages(Ie.Information)}_hasMessages(be){return this.messages.filter(se=>se.type===be).length>0}get hasErrors(){return this._hasMessages(Ie.Error)}get hasWarnings(){return this._hasMessages(Ie.Warning)}get hasInfoMessages(){return this._hasMessages(Ie.Information)}get isPaged(){return this.meta.isPaged}get isFiltered(){return this.meta.isFiltered}}{_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(tt=>{this.messages.push({type:Ie.Error,message:tt})})}if("messages"in be){const se=be.messages;se&&se.forEach(tt=>{this.messages.push({type:Ie.Information,message:tt})})}}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 dt(be.metadata))}}var Pt=M(109),Tt=M(3022);let te=(()=>{class ie{constructor(se){this.http=se}delete(se){const tt=se.generate(),ct=this.packageUrl(tt);return this.http.delete(ct,{headers:this.packageHeaders(tt)}).pipe((0,_e.U)(this.packageResponseHandler(ct)))}get(se){const tt=se.generate({verb:Pt.F.GET,encoder:new Tt.VN}),ct=this.packageUrl(tt);return this.http.get(ct,{headers:this.packageHeaders(tt)}).pipe((0,_e.U)(this.packageResponseHandler(ct)))}options(se){const tt=se.generate(),ct=this.packageUrl(tt);return this.http.options(ct,{headers:this.packageHeaders(tt)}).pipe((0,_e.U)(this.packageResponseHandler(ct)))}patch(se){const tt=se.generate(),ct=this.packageUrl(tt);return this.http.patch(ct,tt.body,{headers:this.packageHeaders(tt)}).pipe((0,_e.U)(this.packageResponseHandler(ct)))}put(se){const tt=se.generate(),ct=this.packageUrl(tt);return this.http.put(ct,tt.body,{headers:this.packageHeaders(tt)}).pipe((0,_e.U)(this.packageResponseHandler(ct)))}post(se){const tt=se.generate(),ct=this.packageUrl(tt);return this.http.post(ct,tt.body,{headers:this.packageHeaders(tt)}).pipe((0,_e.U)(this.packageResponseHandler(ct)))}packageHeaders(se){const tt={};return se.headers.forEach(ct=>{tt[ct.name]=ct.value}),new P.WM(tt)}packageUrl(se){return new Y(new j).buildTokenPath(se.url)}packageResponseHandler(se){return tt=>{const ct=new _t(tt);return ct.meta.properties.url=se,ct}}}return ie.\u0275fac=function(se){return new(se||ie)(r.LFG(P.eN))},ie.\u0275prov=r.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})()},348:($e,X,M)=>{"use strict";M.d(X,{m:()=>re});var r=M(3071),P=M(269);const _e=new r.OlP("window"),pe=J=>new P.g(J.CLDR,J.LEXICON);let re=(()=>{class J{}return J.\u0275fac=function(W){return new(W||J)},J.\u0275mod=r.oAB({type:J}),J.\u0275inj=r.cJS({providers:[{provide:_e,useValue:window},{provide:P.g,useFactory:pe,deps:[_e]}],imports:[[]]}),J})()},3063:($e,X,M)=>{"use strict";M.d(X,{Sw:()=>Ml,hF:()=>id,CQ:()=>mi,nM:()=>ko,c9:()=>Qr,Oc:()=>Kr,df:()=>Xr,go:()=>ga,zf:()=>Cs});var r=M(3071),P=M(6895),_e=M(5529),pe=M(2198),re=M(348),J=M(269);class ce{}const Y="*";function j(d,l){return{type:7,name:d,definitions:l,options:{}}}function z(d,l=null){return{type:4,styles:l,timings:d}}function ge(d,l=null){return{type:2,steps:d,options:l}}function Ve(d){return{type:6,styles:d,offset:null}}function Ie(d,l,a){return{type:0,name:d,styles:l,options:a}}function ut(d,l,a=null){return{type:1,expr:d,animation:l,options:a}}function an(d){Promise.resolve(null).then(d)}class Et{constructor(l=0,a=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=l+a}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(l=>l()),this._onDoneFns=[])}onStart(l){this._onStartFns.push(l)}onDone(l){this._onDoneFns.push(l)}onDestroy(l){this._onDestroyFns.push(l)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){an(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(l=>l()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(l=>l()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(l){this._position=this.totalTime?l*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(l){const a="start"==l?this._onStartFns:this._onDoneFns;a.forEach(f=>f()),a.length=0}}class _n{constructor(l){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=l;let a=0,f=0,D=0;const L=this.players.length;0==L?an(()=>this._onFinish()):this.players.forEach(Q=>{Q.onDone(()=>{++a==L&&this._onFinish()}),Q.onDestroy(()=>{++f==L&&this._onDestroy()}),Q.onStart(()=>{++D==L&&this._onStart()})}),this.totalTime=this.players.reduce((Q,oe)=>Math.max(Q,oe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(l=>l()),this._onDoneFns=[])}init(){this.players.forEach(l=>l.init())}onStart(l){this._onStartFns.push(l)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(l=>l()),this._onStartFns=[])}onDone(l){this._onDoneFns.push(l)}onDestroy(l){this._onDestroyFns.push(l)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(l=>l.play())}pause(){this.players.forEach(l=>l.pause())}restart(){this.players.forEach(l=>l.restart())}finish(){this._onFinish(),this.players.forEach(l=>l.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(l=>l.destroy()),this._onDestroyFns.forEach(l=>l()),this._onDestroyFns=[])}reset(){this.players.forEach(l=>l.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(l){const a=l*this.totalTime;this.players.forEach(f=>{const D=f.totalTime?Math.min(1,a/f.totalTime):1;f.setPosition(D)})}getPosition(){const l=this.players.reduce((a,f)=>null===a||f.totalTime>a.totalTime?f:a,null);return null!=l?l.getPosition():0}beforeDestroy(){this.players.forEach(l=>{l.beforeDestroy&&l.beforeDestroy()})}triggerCallback(l){const a="start"==l?this._onStartFns:this._onDoneFns;a.forEach(f=>f()),a.length=0}}var te=M(1481);const V=!1;function ie(d){return new r.vHH(3e3,V)}function Xt(){return typeof window<"u"&&typeof window.document<"u"}function pn(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ft(d){switch(d.length){case 0:return new Et;case 1:return d[0];default:return new _n(d)}}function vn(d,l,a,f,D={},L={}){const Q=[],oe=[];let Se=-1,Qe=null;if(f.forEach(Dt=>{const Ht=Dt.offset,tn=Ht==Se,Dn=tn&&Qe||{};Object.keys(Dt).forEach(Gt=>{let un=Gt,jn=Dt[Gt];if("offset"!==Gt)switch(un=l.normalizePropertyName(un,Q),jn){case"!":jn=D[Gt];break;case Y:jn=L[Gt];break;default:jn=l.normalizeStyleValue(Gt,un,jn,Q)}Dn[un]=jn}),tn||oe.push(Dn),Qe=Dn,Se=Ht}),Q.length)throw function Ni(d){return new r.vHH(3502,V)}();return oe}function Mn(d,l,a,f){switch(l){case"start":d.onStart(()=>f(a&&bn(a,"start",d)));break;case"done":d.onDone(()=>f(a&&bn(a,"done",d)));break;case"destroy":d.onDestroy(()=>f(a&&bn(a,"destroy",d)))}}function bn(d,l,a){const L=At(d.element,d.triggerName,d.fromState,d.toState,l||d.phaseName,a.totalTime??d.totalTime,!!a.disabled),Q=d._data;return null!=Q&&(L._data=Q),L}function At(d,l,a,f,D="",L=0,Q){return{element:d,triggerName:l,fromState:a,toState:f,phaseName:D,totalTime:L,disabled:!!Q}}function Qt(d,l,a){let f;return d instanceof Map?(f=d.get(l),f||d.set(l,f=a)):(f=d[l],f||(f=d[l]=a)),f}function Ft(d){const l=d.indexOf(":");return[d.substring(1,l),d.substr(l+1)]}let ne=(d,l)=>!1,Ee=(d,l,a)=>[],Pe=null;function De(d){const l=d.parentNode||d.host;return l===Pe?null:l}(pn()||typeof Element<"u")&&(Xt()?(Pe=(()=>document.documentElement)(),ne=(d,l)=>{for(;l;){if(l===d)return!0;l=De(l)}return!1}):ne=(d,l)=>d.contains(l),Ee=(d,l,a)=>{if(a)return Array.from(d.querySelectorAll(l));const f=d.querySelector(l);return f?[f]:[]});let pt=null,Ct=!1;function wt(d){pt||(pt=function at(){return typeof document<"u"?document.body:null}()||{},Ct=!!pt.style&&"WebkitAppearance"in pt.style);let l=!0;return pt.style&&!function qe(d){return"ebkit"==d.substring(1,6)}(d)&&(l=d in pt.style,!l&&Ct&&(l="Webkit"+d.charAt(0).toUpperCase()+d.substr(1)in pt.style)),l}const bt=ne,Vt=Ee;let Z=(()=>{class d{validateStyleProperty(a){return wt(a)}matchesElement(a,f){return!1}containsElement(a,f){return bt(a,f)}getParentElement(a){return De(a)}query(a,f,D){return Vt(a,f,D)}computeStyle(a,f,D){return D||""}animate(a,f,D,L,Q,oe=[],Se){return new Et(D,L)}}return d.\u0275fac=function(a){return new(a||d)},d.\u0275prov=r.Yz7({token:d,factory:d.\u0275fac}),d})(),G=(()=>{class d{}return d.NOOP=new Z,d})();const mt="ng-enter",Ot="ng-leave",Nt="ng-trigger",rn=".ng-trigger",Bt="ng-animating",hn=".ng-animating";function jt(d){if("number"==typeof d)return d;const l=d.match(/^(-?[\.\d]+)(m?s)/);return!l||l.length<2?0:gn(parseFloat(l[1]),l[2])}function gn(d,l){return"s"===l?1e3*d:d}function T(d,l,a){return d.hasOwnProperty("duration")?d:function N(d,l,a){let D,L=0,Q="";if("string"==typeof d){const oe=d.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===oe)return l.push(ie()),{duration:0,delay:0,easing:""};D=gn(parseFloat(oe[1]),oe[2]);const Se=oe[3];null!=Se&&(L=gn(parseFloat(Se),oe[4]));const Qe=oe[5];Qe&&(Q=Qe)}else D=d;if(!a){let oe=!1,Se=l.length;D<0&&(l.push(function be(){return new r.vHH(3100,V)}()),oe=!0),L<0&&(l.push(function se(){return new r.vHH(3101,V)}()),oe=!0),oe&&l.splice(Se,0,ie())}return{duration:D,delay:L,easing:Q}}(d,l,a)}function A(d,l={}){return Object.keys(d).forEach(a=>{l[a]=d[a]}),l}function Ne(d,l,a={}){if(l)for(let f in d)a[f]=d[f];else A(d,a);return a}function xe(d,l,a){return a?l+":"+a+";":""}function me(d){let l="";for(let a=0;a<d.style.length;a++){const f=d.style.item(a);l+=xe(0,f,d.style.getPropertyValue(f))}for(const a in d.style)d.style.hasOwnProperty(a)&&!a.startsWith("_")&&(l+=xe(0,Fe(a),d.style[a]));d.setAttribute("style",l)}function Oe(d,l,a){d.style&&(Object.keys(l).forEach(f=>{const D=Re(f);a&&!a.hasOwnProperty(f)&&(a[f]=d.style[D]),d.style[D]=l[f]}),pn()&&me(d))}function He(d,l){d.style&&(Object.keys(l).forEach(a=>{const f=Re(a);d.style[f]=""}),pn()&&me(d))}function rt(d){return Array.isArray(d)?1==d.length?d[0]:ge(d):d}const q=new RegExp("{{\\s*(.+?)\\s*}}","g");function we(d){let l=[];if("string"==typeof d){let a;for(;a=q.exec(d);)l.push(a[1]);q.lastIndex=0}return l}function et(d,l,a){const f=d.toString(),D=f.replace(q,(L,Q)=>{let oe=l[Q];return l.hasOwnProperty(Q)||(a.push(function ct(d){return new r.vHH(3003,V)}()),oe=""),oe.toString()});return D==f?d:D}function vt(d){const l=[];let a=d.next();for(;!a.done;)l.push(a.value),a=d.next();return l}const fn=/-+([a-z0-9])/g;function Re(d){return d.replace(fn,(...l)=>l[1].toUpperCase())}function Fe(d){return d.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function I(d,l,a){switch(l.type){case 7:return d.visitTrigger(l,a);case 0:return d.visitState(l,a);case 1:return d.visitTransition(l,a);case 2:return d.visitSequence(l,a);case 3:return d.visitGroup(l,a);case 4:return d.visitAnimate(l,a);case 5:return d.visitKeyframes(l,a);case 6:return d.visitStyle(l,a);case 8:return d.visitReference(l,a);case 9:return d.visitAnimateChild(l,a);case 10:return d.visitAnimateRef(l,a);case 11:return d.visitQuery(l,a);case 12:return d.visitStagger(l,a);default:throw function Rt(d){return new r.vHH(3004,V)}()}}function g(d,l){return window.getComputedStyle(d)[l]}function kn(d,l){const a=[];return"string"==typeof d?d.split(/\s*,\s*/).forEach(f=>function qn(d,l,a){if(":"==d[0]){const Se=function Nn(d,l){switch(d){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(a,f)=>parseFloat(f)>parseFloat(a);case":decrement":return(a,f)=>parseFloat(f)<parseFloat(a);default:return l.push(function hi(d){return new r.vHH(3016,V)}()),"* => *"}}(d,a);if("function"==typeof Se)return void l.push(Se);d=Se}const f=d.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==f||f.length<4)return a.push(function Zt(d){return new r.vHH(3015,V)}()),l;const D=f[1],L=f[2],Q=f[3];l.push(pi(D,Q));"<"==L[0]&&!("*"==D&&"*"==Q)&&l.push(pi(Q,D))}(f,a,l)):a.push(d),a}const Wt=new Set(["true","1"]),bi=new Set(["false","0"]);function pi(d,l){const a=Wt.has(d)||bi.has(d),f=Wt.has(l)||bi.has(l);return(D,L)=>{let Q="*"==d||d==D,oe="*"==l||l==L;return!Q&&a&&"boolean"==typeof D&&(Q=D?Wt.has(d):bi.has(d)),!oe&&f&&"boolean"==typeof L&&(oe=L?Wt.has(l):bi.has(l)),Q&&oe}}const Pi=new RegExp("s*:selfs*,?","g");function Mi(d,l,a,f){return new Gn(d).build(l,a,f)}class Gn{constructor(l){this._driver=l}build(l,a,f){const D=new wr(a);this._resetContextStyleTimingState(D);const L=I(this,rt(l),D);return D.unsupportedCSSPropertiesFound.size&&D.unsupportedCSSPropertiesFound.keys(),L}_resetContextStyleTimingState(l){l.currentQuerySelector="",l.collectedStyles={},l.collectedStyles[""]={},l.currentTime=0}visitTrigger(l,a){let f=a.queryCount=0,D=a.depCount=0;const L=[],Q=[];return"@"==l.name.charAt(0)&&a.errors.push(function In(){return new r.vHH(3006,V)}()),l.definitions.forEach(oe=>{if(this._resetContextStyleTimingState(a),0==oe.type){const Se=oe,Qe=Se.name;Qe.toString().split(/\s*,\s*/).forEach(Dt=>{Se.name=Dt,L.push(this.visitState(Se,a))}),Se.name=Qe}else if(1==oe.type){const Se=this.visitTransition(oe,a);f+=Se.queryCount,D+=Se.depCount,Q.push(Se)}else a.errors.push(function Yn(){return new r.vHH(3007,V)}())}),{type:7,name:l.name,states:L,transitions:Q,queryCount:f,depCount:D,options:null}}visitState(l,a){const f=this.visitStyle(l.styles,a),D=l.options&&l.options.params||null;if(f.containsDynamicStyles){const L=new Set,Q=D||{};f.styles.forEach(oe=>{if(qi(oe)){const Se=oe;Object.keys(Se).forEach(Qe=>{we(Se[Qe]).forEach(Dt=>{Q.hasOwnProperty(Dt)||L.add(Dt)})})}}),L.size&&(vt(L.values()),a.errors.push(function Kt(d,l){return new r.vHH(3008,V)}()))}return{type:0,name:l.name,style:f,options:D?{params:D}:null}}visitTransition(l,a){a.queryCount=0,a.depCount=0;const f=I(this,rt(l.animation),a);return{type:1,matchers:kn(l.expr,a.errors),animation:f,queryCount:a.queryCount,depCount:a.depCount,options:B(l.options)}}visitSequence(l,a){return{type:2,steps:l.steps.map(f=>I(this,f,a)),options:B(l.options)}}visitGroup(l,a){const f=a.currentTime;let D=0;const L=l.steps.map(Q=>{a.currentTime=f;const oe=I(this,Q,a);return D=Math.max(D,a.currentTime),oe});return a.currentTime=D,{type:3,steps:L,options:B(l.options)}}visitAnimate(l,a){const f=function b(d,l){if(d.hasOwnProperty("duration"))return d;if("number"==typeof d)return c(T(d,l).duration,0,"");const a=d;if(a.split(/\s+/).some(L=>"{"==L.charAt(0)&&"{"==L.charAt(1))){const L=c(0,0,"");return L.dynamic=!0,L.strValue=a,L}const D=T(a,l);return c(D.duration,D.delay,D.easing)}(l.timings,a.errors);a.currentAnimateTimings=f;let D,L=l.styles?l.styles:Ve({});if(5==L.type)D=this.visitKeyframes(L,a);else{let Q=l.styles,oe=!1;if(!Q){oe=!0;const Qe={};f.easing&&(Qe.easing=f.easing),Q=Ve(Qe)}a.currentTime+=f.duration+f.delay;const Se=this.visitStyle(Q,a);Se.isEmptyStep=oe,D=Se}return a.currentAnimateTimings=null,{type:4,timings:f,style:D,options:null}}visitStyle(l,a){const f=this._makeStyleAst(l,a);return this._validateStyleAst(f,a),f}_makeStyleAst(l,a){const f=[];Array.isArray(l.styles)?l.styles.forEach(Q=>{"string"==typeof Q?Q==Y?f.push(Q):a.errors.push(function Xn(d){return new r.vHH(3002,V)}()):f.push(Q)}):f.push(l.styles);let D=!1,L=null;return f.forEach(Q=>{if(qi(Q)){const oe=Q,Se=oe.easing;if(Se&&(L=Se,delete oe.easing),!D)for(let Qe in oe)if(oe[Qe].toString().indexOf("{{")>=0){D=!0;break}}}),{type:6,styles:f,easing:L,offset:l.offset,containsDynamicStyles:D,options:null}}_validateStyleAst(l,a){const f=a.currentAnimateTimings;let D=a.currentTime,L=a.currentTime;f&&L>0&&(L-=f.duration+f.delay),l.styles.forEach(Q=>{"string"!=typeof Q&&Object.keys(Q).forEach(oe=>{if(!this._driver.validateStyleProperty(oe))return delete Q[oe],void a.unsupportedCSSPropertiesFound.add(oe);const Se=a.collectedStyles[a.currentQuerySelector],Qe=Se[oe];let Dt=!0;Qe&&(L!=D&&L>=Qe.startTime&&D<=Qe.endTime&&(a.errors.push(function Vn(d,l,a,f,D){return new r.vHH(3010,V)}()),Dt=!1),L=Qe.startTime),Dt&&(Se[oe]={startTime:L,endTime:D}),a.options&&function Ke(d,l,a){const f=l.params||{},D=we(d);D.length&&D.forEach(L=>{f.hasOwnProperty(L)||a.push(function tt(d){return new r.vHH(3001,V)}())})}(Q[oe],a.options,a.errors)})})}visitKeyframes(l,a){const f={type:5,styles:[],options:null};if(!a.currentAnimateTimings)return a.errors.push(function Rn(){return new r.vHH(3011,V)}()),f;let L=0;const Q=[];let oe=!1,Se=!1,Qe=0;const Dt=l.steps.map(xn=>{const _i=this._makeStyleAst(xn,a);let Ii=null!=_i.offset?_i.offset:function Wr(d){if("string"==typeof d)return null;let l=null;if(Array.isArray(d))d.forEach(a=>{if(qi(a)&&a.hasOwnProperty("offset")){const f=a;l=parseFloat(f.offset),delete f.offset}});else if(qi(d)&&d.hasOwnProperty("offset")){const a=d;l=parseFloat(a.offset),delete a.offset}return l}(_i.styles),yi=0;return null!=Ii&&(L++,yi=_i.offset=Ii),Se=Se||yi<0||yi>1,oe=oe||yi<Qe,Qe=yi,Q.push(yi),_i});Se&&a.errors.push(function yn(){return new r.vHH(3012,V)}()),oe&&a.errors.push(function Ln(){return new r.vHH(3200,V)}());const Ht=l.steps.length;let tn=0;L>0&&L<Ht?a.errors.push(function Di(){return new r.vHH(3202,V)}()):0==L&&(tn=1/(Ht-1));const Dn=Ht-1,Gt=a.currentTime,un=a.currentAnimateTimings,jn=un.duration;return Dt.forEach((xn,_i)=>{const Ii=tn>0?_i==Dn?1:tn*_i:Q[_i],yi=Ii*jn;a.currentTime=Gt+un.delay+yi,un.duration=yi,this._validateStyleAst(xn,a),xn.offset=Ii,f.styles.push(xn)}),f}visitReference(l,a){return{type:8,animation:I(this,rt(l.animation),a),options:B(l.options)}}visitAnimateChild(l,a){return a.depCount++,{type:9,options:B(l.options)}}visitAnimateRef(l,a){return{type:10,animation:this.visitReference(l.animation,a),options:B(l.options)}}visitQuery(l,a){const f=a.currentQuerySelector,D=l.options||{};a.queryCount++,a.currentQuery=l;const[L,Q]=function Si(d){const l=!!d.split(/\s*,\s*/).find(a=>":self"==a);return l&&(d=d.replace(Pi,"")),d=d.replace(/@\*/g,rn).replace(/@\w+/g,a=>rn+"-"+a.substr(1)).replace(/:animating/g,hn),[d,l]}(l.selector);a.currentQuerySelector=f.length?f+" "+L:L,Qt(a.collectedStyles,a.currentQuerySelector,{});const oe=I(this,rt(l.animation),a);return a.currentQuery=null,a.currentQuerySelector=f,{type:11,selector:L,limit:D.limit||0,optional:!!D.optional,includeSelf:Q,animation:oe,originalSelector:l.selector,options:B(l.options)}}visitStagger(l,a){a.currentQuery||a.errors.push(function ii(){return new r.vHH(3013,V)}());const f="full"===l.timings?{duration:0,delay:0,easing:"full"}:T(l.timings,a.errors,!0);return{type:12,animation:I(this,rt(l.animation),a),timings:f,options:null}}}class wr{constructor(l){this.errors=l,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function qi(d){return!Array.isArray(d)&&"object"==typeof d}function B(d){return d?(d=A(d)).params&&(d.params=function zr(d){return d?A(d):null}(d.params)):d={},d}function c(d,l,a){return{duration:d,delay:l,easing:a}}function p(d,l,a,f,D,L,Q=null,oe=!1){return{type:1,element:d,keyframes:l,preStyleProps:a,postStyleProps:f,duration:D,delay:L,totalTime:D+L,easing:Q,subTimeline:oe}}class O{constructor(){this._map=new Map}get(l){return this._map.get(l)||[]}append(l,a){let f=this._map.get(l);f||this._map.set(l,f=[]),f.push(...a)}has(l){return this._map.has(l)}clear(){this._map.clear()}}const Xe=new RegExp(":enter","g"),on=new RegExp(":leave","g");function wn(d,l,a,f,D,L={},Q={},oe,Se,Qe=[]){return(new ki).buildKeyframes(d,l,a,f,D,L,Q,oe,Se,Qe)}class ki{buildKeyframes(l,a,f,D,L,Q,oe,Se,Qe,Dt=[]){Qe=Qe||new O;const Ht=new ei(l,a,Qe,D,L,Dt,[]);Ht.options=Se,Ht.currentTimeline.setStyles([Q],null,Ht.errors,Se),I(this,f,Ht);const tn=Ht.timelines.filter(Dn=>Dn.containsAnimation());if(Object.keys(oe).length){let Dn;for(let Gt=tn.length-1;Gt>=0;Gt--){const un=tn[Gt];if(un.element===a){Dn=un;break}}Dn&&!Dn.allowOnlyTimelineStyles()&&Dn.setStyles([oe],null,Ht.errors,Se)}return tn.length?tn.map(Dn=>Dn.buildKeyframes()):[p(a,[],[],[],0,0,"",!1)]}visitTrigger(l,a){}visitState(l,a){}visitTransition(l,a){}visitAnimateChild(l,a){const f=a.subInstructions.get(a.element);if(f){const D=a.createSubContext(l.options),L=a.currentTimeline.currentTime,Q=this._visitSubInstructions(f,D,D.options);L!=Q&&a.transformIntoNewTimeline(Q)}a.previousNode=l}visitAnimateRef(l,a){const f=a.createSubContext(l.options);f.transformIntoNewTimeline(),this.visitReference(l.animation,f),a.transformIntoNewTimeline(f.currentTimeline.currentTime),a.previousNode=l}_visitSubInstructions(l,a,f){let L=a.currentTimeline.currentTime;const Q=null!=f.duration?jt(f.duration):null,oe=null!=f.delay?jt(f.delay):null;return 0!==Q&&l.forEach(Se=>{const Qe=a.appendInstructionToTimeline(Se,Q,oe);L=Math.max(L,Qe.duration+Qe.delay)}),L}visitReference(l,a){a.updateOptions(l.options,!0),I(this,l.animation,a),a.previousNode=l}visitSequence(l,a){const f=a.subContextCount;let D=a;const L=l.options;if(L&&(L.params||L.delay)&&(D=a.createSubContext(L),D.transformIntoNewTimeline(),null!=L.delay)){6==D.previousNode.type&&(D.currentTimeline.snapshotCurrentStyles(),D.previousNode=sn);const Q=jt(L.delay);D.delayNextStep(Q)}l.steps.length&&(l.steps.forEach(Q=>I(this,Q,D)),D.currentTimeline.applyStylesToKeyframe(),D.subContextCount>f&&D.transformIntoNewTimeline()),a.previousNode=l}visitGroup(l,a){const f=[];let D=a.currentTimeline.currentTime;const L=l.options&&l.options.delay?jt(l.options.delay):0;l.steps.forEach(Q=>{const oe=a.createSubContext(l.options);L&&oe.delayNextStep(L),I(this,Q,oe),D=Math.max(D,oe.currentTimeline.currentTime),f.push(oe.currentTimeline)}),f.forEach(Q=>a.currentTimeline.mergeTimelineCollectedStyles(Q)),a.transformIntoNewTimeline(D),a.previousNode=l}_visitTiming(l,a){if(l.dynamic){const f=l.strValue;return T(a.params?et(f,a.params,a.errors):f,a.errors)}return{duration:l.duration,delay:l.delay,easing:l.easing}}visitAnimate(l,a){const f=a.currentAnimateTimings=this._visitTiming(l.timings,a),D=a.currentTimeline;f.delay&&(a.incrementTime(f.delay),D.snapshotCurrentStyles());const L=l.style;5==L.type?this.visitKeyframes(L,a):(a.incrementTime(f.duration),this.visitStyle(L,a),D.applyStylesToKeyframe()),a.currentAnimateTimings=null,a.previousNode=l}visitStyle(l,a){const f=a.currentTimeline,D=a.currentAnimateTimings;!D&&f.getCurrentStyleProperties().length&&f.forwardFrame();const L=D&&D.easing||l.easing;l.isEmptyStep?f.applyEmptyStep(L):f.setStyles(l.styles,L,a.errors,a.options),a.previousNode=l}visitKeyframes(l,a){const f=a.currentAnimateTimings,D=a.currentTimeline.duration,L=f.duration,oe=a.createSubContext().currentTimeline;oe.easing=f.easing,l.styles.forEach(Se=>{oe.forwardTime((Se.offset||0)*L),oe.setStyles(Se.styles,Se.easing,a.errors,a.options),oe.applyStylesToKeyframe()}),a.currentTimeline.mergeTimelineCollectedStyles(oe),a.transformIntoNewTimeline(D+L),a.previousNode=l}visitQuery(l,a){const f=a.currentTimeline.currentTime,D=l.options||{},L=D.delay?jt(D.delay):0;L&&(6===a.previousNode.type||0==f&&a.currentTimeline.getCurrentStyleProperties().length)&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=sn);let Q=f;const oe=a.invokeQuery(l.selector,l.originalSelector,l.limit,l.includeSelf,!!D.optional,a.errors);a.currentQueryTotal=oe.length;let Se=null;oe.forEach((Qe,Dt)=>{a.currentQueryIndex=Dt;const Ht=a.createSubContext(l.options,Qe);L&&Ht.delayNextStep(L),Qe===a.element&&(Se=Ht.currentTimeline),I(this,l.animation,Ht),Ht.currentTimeline.applyStylesToKeyframe(),Q=Math.max(Q,Ht.currentTimeline.currentTime)}),a.currentQueryIndex=0,a.currentQueryTotal=0,a.transformIntoNewTimeline(Q),Se&&(a.currentTimeline.mergeTimelineCollectedStyles(Se),a.currentTimeline.snapshotCurrentStyles()),a.previousNode=l}visitStagger(l,a){const f=a.parentContext,D=a.currentTimeline,L=l.timings,Q=Math.abs(L.duration),oe=Q*(a.currentQueryTotal-1);let Se=Q*a.currentQueryIndex;switch(L.duration<0?"reverse":L.easing){case"reverse":Se=oe-Se;break;case"full":Se=f.currentStaggerTime}const Dt=a.currentTimeline;Se&&Dt.delayNextStep(Se);const Ht=Dt.currentTime;I(this,l.animation,a),a.previousNode=l,f.currentStaggerTime=D.currentTime-Ht+(D.startTime-f.currentTimeline.startTime)}}const sn={};class ei{constructor(l,a,f,D,L,Q,oe,Se){this._driver=l,this.element=a,this.subInstructions=f,this._enterClassName=D,this._leaveClassName=L,this.errors=Q,this.timelines=oe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=sn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Se||new Ci(this._driver,a,0),oe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(l,a){if(!l)return;const f=l;let D=this.options;null!=f.duration&&(D.duration=jt(f.duration)),null!=f.delay&&(D.delay=jt(f.delay));const L=f.params;if(L){let Q=D.params;Q||(Q=this.options.params={}),Object.keys(L).forEach(oe=>{(!a||!Q.hasOwnProperty(oe))&&(Q[oe]=et(L[oe],Q,this.errors))})}}_copyOptions(){const l={};if(this.options){const a=this.options.params;if(a){const f=l.params={};Object.keys(a).forEach(D=>{f[D]=a[D]})}}return l}createSubContext(l=null,a,f){const D=a||this.element,L=new ei(this._driver,D,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(D,f||0));return L.previousNode=this.previousNode,L.currentAnimateTimings=this.currentAnimateTimings,L.options=this._copyOptions(),L.updateOptions(l),L.currentQueryIndex=this.currentQueryIndex,L.currentQueryTotal=this.currentQueryTotal,L.parentContext=this,this.subContextCount++,L}transformIntoNewTimeline(l){return this.previousNode=sn,this.currentTimeline=this.currentTimeline.fork(this.element,l),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(l,a,f){const D={duration:a??l.duration,delay:this.currentTimeline.currentTime+(f??0)+l.delay,easing:""},L=new io(this._driver,l.element,l.keyframes,l.preStyleProps,l.postStyleProps,D,l.stretchStartingKeyframe);return this.timelines.push(L),D}incrementTime(l){this.currentTimeline.forwardTime(this.currentTimeline.duration+l)}delayNextStep(l){l>0&&this.currentTimeline.delayNextStep(l)}invokeQuery(l,a,f,D,L,Q){let oe=[];if(D&&oe.push(this.element),l.length>0){l=(l=l.replace(Xe,"."+this._enterClassName)).replace(on,"."+this._leaveClassName);let Qe=this._driver.query(this.element,l,1!=f);0!==f&&(Qe=f<0?Qe.slice(Qe.length+f,Qe.length):Qe.slice(0,f)),oe.push(...Qe)}return!L&&0==oe.length&&Q.push(function Tn(d){return new r.vHH(3014,V)}()),oe}}class Ci{constructor(l,a,f,D){this._driver=l,this.element=a,this.startTime=f,this._elementTimelineStylesLookup=D,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(a),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(a,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(l){const a=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||a?(this.forwardTime(this.currentTime+l),a&&this.snapshotCurrentStyles()):this.startTime+=l}fork(l,a){return this.applyStylesToKeyframe(),new Ci(this._driver,l,a||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(l){this.applyStylesToKeyframe(),this.duration=l,this._loadKeyframe()}_updateStyle(l,a){this._localTimelineStyles[l]=a,this._globalTimelineStyles[l]=a,this._styleSummary[l]={time:this.currentTime,value:a}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(l){l&&(this._previousKeyframe.easing=l),Object.keys(this._globalTimelineStyles).forEach(a=>{this._backFill[a]=this._globalTimelineStyles[a]||Y,this._currentKeyframe[a]=Y}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(l,a,f,D){a&&(this._previousKeyframe.easing=a);const L=D&&D.params||{},Q=function wo(d,l){const a={};let f;return d.forEach(D=>{"*"===D?(f=f||Object.keys(l),f.forEach(L=>{a[L]=Y})):Ne(D,!1,a)}),a}(l,this._globalTimelineStyles);Object.keys(Q).forEach(oe=>{const Se=et(Q[oe],L,f);this._pendingStyles[oe]=Se,this._localTimelineStyles.hasOwnProperty(oe)||(this._backFill[oe]=this._globalTimelineStyles.hasOwnProperty(oe)?this._globalTimelineStyles[oe]:Y),this._updateStyle(oe,Se)})}applyStylesToKeyframe(){const l=this._pendingStyles,a=Object.keys(l);0!=a.length&&(this._pendingStyles={},a.forEach(f=>{this._currentKeyframe[f]=l[f]}),Object.keys(this._localTimelineStyles).forEach(f=>{this._currentKeyframe.hasOwnProperty(f)||(this._currentKeyframe[f]=this._localTimelineStyles[f])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(l=>{const a=this._localTimelineStyles[l];this._pendingStyles[l]=a,this._updateStyle(l,a)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const l=[];for(let a in this._currentKeyframe)l.push(a);return l}mergeTimelineCollectedStyles(l){Object.keys(l._styleSummary).forEach(a=>{const f=this._styleSummary[a],D=l._styleSummary[a];(!f||D.time>f.time)&&this._updateStyle(a,D.value)})}buildKeyframes(){this.applyStylesToKeyframe();const l=new Set,a=new Set,f=1===this._keyframes.size&&0===this.duration;let D=[];this._keyframes.forEach((oe,Se)=>{const Qe=Ne(oe,!0);Object.keys(Qe).forEach(Dt=>{const Ht=Qe[Dt];"!"==Ht?l.add(Dt):Ht==Y&&a.add(Dt)}),f||(Qe.offset=Se/this.duration),D.push(Qe)});const L=l.size?vt(l.values()):[],Q=a.size?vt(a.values()):[];if(f){const oe=D[0],Se=A(oe);oe.offset=0,Se.offset=1,D=[oe,Se]}return p(this.element,D,L,Q,this.duration,this.startTime,this.easing,!1)}}class io extends Ci{constructor(l,a,f,D,L,Q,oe=!1){super(l,a,Q.delay),this.keyframes=f,this.preStyleProps=D,this.postStyleProps=L,this._stretchStartingKeyframe=oe,this.timings={duration:Q.duration,delay:Q.delay,easing:Q.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let l=this.keyframes,{delay:a,duration:f,easing:D}=this.timings;if(this._stretchStartingKeyframe&&a){const L=[],Q=f+a,oe=a/Q,Se=Ne(l[0],!1);Se.offset=0,L.push(Se);const Qe=Ne(l[0],!1);Qe.offset=ur(oe),L.push(Qe);const Dt=l.length-1;for(let Ht=1;Ht<=Dt;Ht++){let tn=Ne(l[Ht],!1);tn.offset=ur((a+tn.offset*f)/Q),L.push(tn)}f=Q,a=0,D="",l=L}return p(this.element,l,this.preStyleProps,this.postStyleProps,f,a,D,!0)}}function ur(d,l=3){const a=Math.pow(10,l-1);return Math.round(d*a)/a}class Yr{}class Qi extends Yr{normalizePropertyName(l,a){return Re(l)}normalizeStyleValue(l,a,f,D){let L="";const Q=f.toString().trim();if(Do[a]&&0!==f&&"0"!==f)if("number"==typeof f)L="px";else{const oe=f.match(/^[+-]?[\d\.]+([a-z]*)$/);oe&&0==oe[1].length&&D.push(function It(d,l){return new r.vHH(3005,V)}())}return Q+L}}const Do=(()=>function ro(d){const l={};return d.forEach(a=>l[a]=!0),l}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Dr(d,l,a,f,D,L,Q,oe,Se,Qe,Dt,Ht,tn){return{type:0,element:d,triggerName:l,isRemovalTransition:D,fromState:a,fromStyles:L,toState:f,toStyles:Q,timelines:oe,queriedElements:Se,preStyleProps:Qe,postStyleProps:Dt,totalTime:Ht,errors:tn}}const dr={};class oo{constructor(l,a,f){this._triggerName=l,this.ast=a,this._stateStyles=f}match(l,a,f,D){return function Lr(d,l,a,f,D){return d.some(L=>L(l,a,f,D))}(this.ast.matchers,l,a,f,D)}buildStyles(l,a,f){const D=this._stateStyles["*"],L=this._stateStyles[l],Q=D?D.buildStyles(a,f):{};return L?L.buildStyles(a,f):Q}build(l,a,f,D,L,Q,oe,Se,Qe,Dt){const Ht=[],tn=this.ast.options&&this.ast.options.params||dr,Gt=this.buildStyles(f,oe&&oe.params||dr,Ht),un=Se&&Se.params||dr,jn=this.buildStyles(D,un,Ht),xn=new Set,_i=new Map,Ii=new Map,yi="void"===D,sr={params:{...tn,...un}},ar=Dt?[]:wn(l,a,this.ast.animation,L,Q,Gt,jn,sr,Qe,Ht);let Ai=0;if(ar.forEach(er=>{Ai=Math.max(er.duration+er.delay,Ai)}),Ht.length)return Dr(a,this._triggerName,f,D,yi,Gt,jn,[],[],_i,Ii,Ai,Ht);ar.forEach(er=>{const Zi=er.element,Ds=Qt(_i,Zi,{});er.preStyleProps.forEach(Hr=>Ds[Hr]=!0);const Mr=Qt(Ii,Zi,{});er.postStyleProps.forEach(Hr=>Mr[Hr]=!0),Zi!==a&&xn.add(Zi)});const gr=vt(xn.values());return Dr(a,this._triggerName,f,D,yi,Gt,jn,ar,gr,_i,Ii,Ai)}}class C{constructor(l,a,f){this.styles=l,this.defaultParams=a,this.normalizer=f}buildStyles(l,a){const f={},D=A(this.defaultParams);return Object.keys(l).forEach(L=>{const Q=l[L];null!=Q&&(D[L]=Q)}),this.styles.styles.forEach(L=>{if("string"!=typeof L){const Q=L;Object.keys(Q).forEach(oe=>{let Se=Q[oe];Se.length>1&&(Se=et(Se,D,a));const Qe=this.normalizer.normalizePropertyName(oe,a);Se=this.normalizer.normalizeStyleValue(oe,Qe,Se,a),f[Qe]=Se})}}),f}}class w{constructor(l,a,f){this.name=l,this.ast=a,this._normalizer=f,this.transitionFactories=[],this.states={},a.states.forEach(D=>{this.states[D.name]=new C(D.style,D.options&&D.options.params||{},f)}),ve(this.states,"true","1"),ve(this.states,"false","0"),a.transitions.forEach(D=>{this.transitionFactories.push(new oo(l,D,this.states))}),this.fallbackTransition=function U(d,l,a){return new oo(d,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Q,oe)=>!0],options:null,queryCount:0,depCount:0},l)}(l,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(l,a,f,D){return this.transitionFactories.find(Q=>Q.match(l,a,f,D))||null}matchStyles(l,a,f){return this.fallbackTransition.buildStyles(l,a,f)}}function ve(d,l,a){d.hasOwnProperty(l)?d.hasOwnProperty(a)||(d[a]=d[l]):d.hasOwnProperty(a)&&(d[l]=d[a])}const Ge=new O;class ht{constructor(l,a,f){this.bodyNode=l,this._driver=a,this._normalizer=f,this._animations={},this._playersById={},this.players=[]}register(l,a){const f=[],L=Mi(this._driver,a,f,[]);if(f.length)throw function qt(d){return new r.vHH(3503,V)}();this._animations[l]=L}_buildPlayer(l,a,f){const D=l.element,L=vn(0,this._normalizer,0,l.keyframes,a,f);return this._driver.animate(D,L,l.duration,l.delay,l.easing,[],!0)}create(l,a,f={}){const D=[],L=this._animations[l];let Q;const oe=new Map;if(L?(Q=wn(this._driver,a,L,mt,Ot,{},{},f,Ge,D),Q.forEach(Dt=>{const Ht=Qt(oe,Dt.element,{});Dt.postStyleProps.forEach(tn=>Ht[tn]=null)})):(D.push(function ri(){return new r.vHH(3300,V)}()),Q=[]),D.length)throw function oi(d){return new r.vHH(3504,V)}();oe.forEach((Dt,Ht)=>{Object.keys(Dt).forEach(tn=>{Dt[tn]=this._driver.computeStyle(Ht,tn,Y)})});const Qe=ft(Q.map(Dt=>{const Ht=oe.get(Dt.element);return this._buildPlayer(Dt,{},Ht)}));return this._playersById[l]=Qe,Qe.onDestroy(()=>this.destroy(l)),this.players.push(Qe),Qe}destroy(l){const a=this._getPlayer(l);a.destroy(),delete this._playersById[l];const f=this.players.indexOf(a);f>=0&&this.players.splice(f,1)}_getPlayer(l){const a=this._playersById[l];if(!a)throw function vi(d){return new r.vHH(3301,V)}();return a}listen(l,a,f,D){const L=At(a,"","","");return Mn(this._getPlayer(l),f,L,D),()=>{}}command(l,a,f,D){if("register"==f)return void this.register(l,D[0]);if("create"==f)return void this.create(l,a,D[0]||{});const L=this._getPlayer(l);switch(f){case"play":L.play();break;case"pause":L.pause();break;case"reset":L.reset();break;case"restart":L.restart();break;case"finish":L.finish();break;case"init":L.init();break;case"setPosition":L.setPosition(parseFloat(D[0]));break;case"destroy":this.destroy(l)}}}const Mt="ng-animate-queued",An="ng-animate-disabled",$n=[],mn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Er={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ui="__ng_removed";class zi{constructor(l,a=""){this.namespaceId=a;const f=l&&l.hasOwnProperty("value");if(this.value=function Lt(d){return d??null}(f?l.value:l),f){const L=A(l);delete L.value,this.options=L}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(l){const a=l.params;if(a){const f=this.options.params;Object.keys(a).forEach(D=>{null==f[D]&&(f[D]=a[D])})}}}const Jn="void",v=new zi(Jn);class y{constructor(l,a,f){this.id=l,this.hostElement=a,this._engine=f,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+l,Oi(a,this._hostClassName)}listen(l,a,f,D){if(!this._triggers.hasOwnProperty(a))throw function li(d,l){return new r.vHH(3302,V)}();if(null==f||0==f.length)throw function Ue(d){return new r.vHH(3303,V)}();if(!function ni(d){return"start"==d||"done"==d}(f))throw function ue(d,l){return new r.vHH(3400,V)}();const L=Qt(this._elementListeners,l,[]),Q={name:a,phase:f,callback:D};L.push(Q);const oe=Qt(this._engine.statesByElement,l,{});return oe.hasOwnProperty(a)||(Oi(l,Nt),Oi(l,Nt+"-"+a),oe[a]=v),()=>{this._engine.afterFlush(()=>{const Se=L.indexOf(Q);Se>=0&&L.splice(Se,1),this._triggers[a]||delete oe[a]})}}register(l,a){return!this._triggers[l]&&(this._triggers[l]=a,!0)}_getTrigger(l){const a=this._triggers[l];if(!a)throw function he(d){return new r.vHH(3401,V)}();return a}trigger(l,a,f,D=!0){const L=this._getTrigger(a),Q=new F(this.id,a,l);let oe=this._engine.statesByElement.get(l);oe||(Oi(l,Nt),Oi(l,Nt+"-"+a),this._engine.statesByElement.set(l,oe={}));let Se=oe[a];const Qe=new zi(f,this.id);if(!(f&&f.hasOwnProperty("value"))&&Se&&Qe.absorbOptions(Se.options),oe[a]=Qe,Se||(Se=v),Qe.value!==Jn&&Se.value===Qe.value){if(!function Qs(d,l){const a=Object.keys(d),f=Object.keys(l);if(a.length!=f.length)return!1;for(let D=0;D<a.length;D++){const L=a[D];if(!l.hasOwnProperty(L)||d[L]!==l[L])return!1}return!0}(Se.params,Qe.params)){const un=[],jn=L.matchStyles(Se.value,Se.params,un),xn=L.matchStyles(Qe.value,Qe.params,un);un.length?this._engine.reportError(un):this._engine.afterFlush(()=>{He(l,jn),Oe(l,xn)})}return}const tn=Qt(this._engine.playersByElement,l,[]);tn.forEach(un=>{un.namespaceId==this.id&&un.triggerName==a&&un.queued&&un.destroy()});let Dn=L.matchTransition(Se.value,Qe.value,l,Qe.params),Gt=!1;if(!Dn){if(!D)return;Dn=L.fallbackTransition,Gt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:l,triggerName:a,transition:Dn,fromState:Se,toState:Qe,player:Q,isFallbackTransition:Gt}),Gt||(Oi(l,Mt),Q.onStart(()=>{Vr(l,Mt)})),Q.onDone(()=>{let un=this.players.indexOf(Q);un>=0&&this.players.splice(un,1);const jn=this._engine.playersByElement.get(l);if(jn){let xn=jn.indexOf(Q);xn>=0&&jn.splice(xn,1)}}),this.players.push(Q),tn.push(Q),Q}deregister(l){delete this._triggers[l],this._engine.statesByElement.forEach((a,f)=>{delete a[l]}),this._elementListeners.forEach((a,f)=>{this._elementListeners.set(f,a.filter(D=>D.name!=l))})}clearElementCache(l){this._engine.statesByElement.delete(l),this._elementListeners.delete(l);const a=this._engine.playersByElement.get(l);a&&(a.forEach(f=>f.destroy()),this._engine.playersByElement.delete(l))}_signalRemovalForInnerTriggers(l,a){const f=this._engine.driver.query(l,rn,!0);f.forEach(D=>{if(D[ui])return;const L=this._engine.fetchNamespacesByElement(D);L.size?L.forEach(Q=>Q.triggerLeaveAnimation(D,a,!1,!0)):this.clearElementCache(D)}),this._engine.afterFlushAnimationsDone(()=>f.forEach(D=>this.clearElementCache(D)))}triggerLeaveAnimation(l,a,f,D){const L=this._engine.statesByElement.get(l),Q=new Map;if(L){const oe=[];if(Object.keys(L).forEach(Se=>{if(Q.set(Se,L[Se].value),this._triggers[Se]){const Qe=this.trigger(l,Se,Jn,D);Qe&&oe.push(Qe)}}),oe.length)return this._engine.markElementAsRemoved(this.id,l,!0,a,Q),f&&ft(oe).onDone(()=>this._engine.processLeaveNode(l)),!0}return!1}prepareLeaveAnimationListeners(l){const a=this._elementListeners.get(l),f=this._engine.statesByElement.get(l);if(a&&f){const D=new Set;a.forEach(L=>{const Q=L.name;if(D.has(Q))return;D.add(Q);const Se=this._triggers[Q].fallbackTransition,Qe=f[Q]||v,Dt=new zi(Jn),Ht=new F(this.id,Q,l);this._engine.totalQueuedPlayers++,this._queue.push({element:l,triggerName:Q,transition:Se,fromState:Qe,toState:Dt,player:Ht,isFallbackTransition:!0})})}}removeNode(l,a){const f=this._engine;if(l.childElementCount&&this._signalRemovalForInnerTriggers(l,a),this.triggerLeaveAnimation(l,a,!0))return;let D=!1;if(f.totalAnimations){const L=f.players.length?f.playersByQueriedElement.get(l):[];if(L&&L.length)D=!0;else{let Q=l;for(;Q=Q.parentNode;)if(f.statesByElement.get(Q)){D=!0;break}}}if(this.prepareLeaveAnimationListeners(l),D)f.markElementAsRemoved(this.id,l,!1,a);else{const L=l[ui];(!L||L===mn)&&(f.afterFlush(()=>this.clearElementCache(l)),f.destroyInnerAnimations(l),f._onRemovalComplete(l,a))}}insertNode(l,a){Oi(l,this._hostClassName)}drainQueuedTransitions(l){const a=[];return this._queue.forEach(f=>{const D=f.player;if(D.destroyed)return;const L=f.element,Q=this._elementListeners.get(L);Q&&Q.forEach(oe=>{if(oe.name==f.triggerName){const Se=At(L,f.triggerName,f.fromState.value,f.toState.value);Se._data=l,Mn(f.player,oe.phase,Se,oe.callback)}}),D.markedForDestroy?this._engine.afterFlush(()=>{D.destroy()}):a.push(f)}),this._queue=[],a.sort((f,D)=>{const L=f.transition.ast.depCount,Q=D.transition.ast.depCount;return 0==L||0==Q?L-Q:this._engine.driver.containsElement(f.element,D.element)?1:-1})}destroy(l){this.players.forEach(a=>a.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,l)}elementContainsData(l){let a=!1;return this._elementListeners.has(l)&&(a=!0),a=!!this._queue.find(f=>f.element===l)||a,a}}class _{constructor(l,a,f){this.bodyNode=l,this.driver=a,this._normalizer=f,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=(D,L)=>{}}_onRemovalComplete(l,a){this.onRemovalComplete(l,a)}get queuedPlayers(){const l=[];return this._namespaceList.forEach(a=>{a.players.forEach(f=>{f.queued&&l.push(f)})}),l}createNamespace(l,a){const f=new y(l,a,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,a)?this._balanceNamespaceList(f,a):(this.newHostElements.set(a,f),this.collectEnterElement(a)),this._namespaceLookup[l]=f}_balanceNamespaceList(l,a){const f=this._namespaceList,D=this.namespacesByHostElement,L=f.length-1;if(L>=0){let Q=!1;if(void 0!==this.driver.getParentElement){let oe=this.driver.getParentElement(a);for(;oe;){const Se=D.get(oe);if(Se){const Qe=f.indexOf(Se);f.splice(Qe+1,0,l),Q=!0;break}oe=this.driver.getParentElement(oe)}}else for(let oe=L;oe>=0;oe--)if(this.driver.containsElement(f[oe].hostElement,a)){f.splice(oe+1,0,l),Q=!0;break}Q||f.unshift(l)}else f.push(l);return D.set(a,l),l}register(l,a){let f=this._namespaceLookup[l];return f||(f=this.createNamespace(l,a)),f}registerTrigger(l,a,f){let D=this._namespaceLookup[l];D&&D.register(a,f)&&this.totalAnimations++}destroy(l,a){if(!l)return;const f=this._fetchNamespace(l);this.afterFlush(()=>{this.namespacesByHostElement.delete(f.hostElement),delete this._namespaceLookup[l];const D=this._namespaceList.indexOf(f);D>=0&&this._namespaceList.splice(D,1)}),this.afterFlushAnimationsDone(()=>f.destroy(a))}_fetchNamespace(l){return this._namespaceLookup[l]}fetchNamespacesByElement(l){const a=new Set,f=this.statesByElement.get(l);if(f){const D=Object.keys(f);for(let L=0;L<D.length;L++){const Q=f[D[L]].namespaceId;if(Q){const oe=this._fetchNamespace(Q);oe&&a.add(oe)}}}return a}trigger(l,a,f,D){if(Zn(a)){const L=this._fetchNamespace(l);if(L)return L.trigger(a,f,D),!0}return!1}insertNode(l,a,f,D){if(!Zn(a))return;const L=a[ui];if(L&&L.setForRemoval){L.setForRemoval=!1,L.setForMove=!0;const Q=this.collectedLeaveElements.indexOf(a);Q>=0&&this.collectedLeaveElements.splice(Q,1)}if(l){const Q=this._fetchNamespace(l);Q&&Q.insertNode(a,f)}D&&this.collectEnterElement(a)}collectEnterElement(l){this.collectedEnterElements.push(l)}markElementAsDisabled(l,a){a?this.disabledNodes.has(l)||(this.disabledNodes.add(l),Oi(l,An)):this.disabledNodes.has(l)&&(this.disabledNodes.delete(l),Vr(l,An))}removeNode(l,a,f,D){if(Zn(a)){const L=l?this._fetchNamespace(l):null;if(L?L.removeNode(a,D):this.markElementAsRemoved(l,a,!1,D),f){const Q=this.namespacesByHostElement.get(a);Q&&Q.id!==l&&Q.removeNode(a,D)}}else this._onRemovalComplete(a,D)}markElementAsRemoved(l,a,f,D,L){this.collectedLeaveElements.push(a),a[ui]={namespaceId:l,setForRemoval:D,hasAnimation:f,removedBeforeQueried:!1,previousTriggersValues:L}}listen(l,a,f,D,L){return Zn(a)?this._fetchNamespace(l).listen(a,f,D,L):()=>{}}_buildInstruction(l,a,f,D,L){return l.transition.build(this.driver,l.element,l.fromState.value,l.toState.value,f,D,l.fromState.options,l.toState.options,a,L)}destroyInnerAnimations(l){let a=this.driver.query(l,rn,!0);a.forEach(f=>this.destroyActiveAnimationsForElement(f)),0!=this.playersByQueriedElement.size&&(a=this.driver.query(l,hn,!0),a.forEach(f=>this.finishActiveQueriedAnimationOnElement(f)))}destroyActiveAnimationsForElement(l){const a=this.playersByElement.get(l);a&&a.forEach(f=>{f.queued?f.markedForDestroy=!0:f.destroy()})}finishActiveQueriedAnimationOnElement(l){const a=this.playersByQueriedElement.get(l);a&&a.forEach(f=>f.finish())}whenRenderingDone(){return new Promise(l=>{if(this.players.length)return ft(this.players).onDone(()=>l());l()})}processLeaveNode(l){const a=l[ui];if(a&&a.setForRemoval){if(l[ui]=mn,a.namespaceId){this.destroyInnerAnimations(l);const f=this._fetchNamespace(a.namespaceId);f&&f.clearElementCache(l)}this._onRemovalComplete(l,a.setForRemoval)}l.classList?.contains(An)&&this.markElementAsDisabled(l,!1),this.driver.query(l,".ng-animate-disabled",!0).forEach(f=>{this.markElementAsDisabled(f,!1)})}flush(l=-1){let a=[];if(this.newHostElements.size&&(this.newHostElements.forEach((f,D)=>this._balanceNamespaceList(f,D)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let f=0;f<this.collectedEnterElements.length;f++)Oi(this.collectedEnterElements[f],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const f=[];try{a=this._flushAnimations(f,l)}finally{for(let D=0;D<f.length;D++)f[D]()}}else for(let f=0;f<this.collectedLeaveElements.length;f++)this.processLeaveNode(this.collectedLeaveElements[f]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(f=>f()),this._flushFns=[],this._whenQuietFns.length){const f=this._whenQuietFns;this._whenQuietFns=[],a.length?ft(a).onDone(()=>{f.forEach(D=>D())}):f.forEach(D=>D())}}reportError(l){throw function ze(d){return new r.vHH(3402,V)}()}_flushAnimations(l,a){const f=new O,D=[],L=new Map,Q=[],oe=new Map,Se=new Map,Qe=new Map,Dt=new Set;this.disabledNodes.forEach(St=>{Dt.add(St);const $t=this.driver.query(St,".ng-animate-queued",!0);for(let en=0;en<$t.length;en++)Dt.add($t[en])});const Ht=this.bodyNode,tn=Array.from(this.statesByElement.keys()),Dn=Yt(tn,this.collectedEnterElements),Gt=new Map;let un=0;Dn.forEach((St,$t)=>{const en=mt+un++;Gt.set($t,en),St.forEach(Fn=>Oi(Fn,en))});const jn=[],xn=new Set,_i=new Set;for(let St=0;St<this.collectedLeaveElements.length;St++){const $t=this.collectedLeaveElements[St],en=$t[ui];en&&en.setForRemoval&&(jn.push($t),xn.add($t),en.hasAnimation?this.driver.query($t,".ng-star-inserted",!0).forEach(Fn=>xn.add(Fn)):_i.add($t))}const Ii=new Map,yi=Yt(tn,Array.from(xn));yi.forEach((St,$t)=>{const en=Ot+un++;Ii.set($t,en),St.forEach(Fn=>Oi(Fn,en))}),l.push(()=>{Dn.forEach((St,$t)=>{const en=Gt.get($t);St.forEach(Fn=>Vr(Fn,en))}),yi.forEach((St,$t)=>{const en=Ii.get($t);St.forEach(Fn=>Vr(Fn,en))}),jn.forEach(St=>{this.processLeaveNode(St)})});const sr=[],ar=[];for(let St=this._namespaceList.length-1;St>=0;St--)this._namespaceList[St].drainQueuedTransitions(a).forEach(en=>{const Fn=en.player,ti=en.element;if(sr.push(Fn),this.collectedEnterElements.length){const Fi=ti[ui];if(Fi&&Fi.setForMove){if(Fi.previousTriggersValues&&Fi.previousTriggersValues.has(en.triggerName)){const Ur=Fi.previousTriggersValues.get(en.triggerName),Sr=this.statesByElement.get(en.element);Sr&&Sr[en.triggerName]&&(Sr[en.triggerName].value=Ur)}return void Fn.destroy()}}const Vi=!Ht||!this.driver.containsElement(Ht,ti),Ui=Ii.get(ti),jr=Gt.get(ti),Kn=this._buildInstruction(en,f,jr,Ui,Vi);if(Kn.errors&&Kn.errors.length)return void ar.push(Kn);if(Vi)return Fn.onStart(()=>He(ti,Kn.fromStyles)),Fn.onDestroy(()=>Oe(ti,Kn.toStyles)),void D.push(Fn);if(en.isFallbackTransition)return Fn.onStart(()=>He(ti,Kn.fromStyles)),Fn.onDestroy(()=>Oe(ti,Kn.toStyles)),void D.push(Fn);const ba=[];Kn.timelines.forEach(Fi=>{Fi.stretchStartingKeyframe=!0,this.disabledNodes.has(Fi.element)||ba.push(Fi)}),Kn.timelines=ba,f.append(ti,Kn.timelines),Q.push({instruction:Kn,player:Fn,element:ti}),Kn.queriedElements.forEach(Fi=>Qt(oe,Fi,[]).push(Fn)),Kn.preStyleProps.forEach((Fi,Ur)=>{const Sr=Object.keys(Fi);if(Sr.length){let lr=Se.get(Ur);lr||Se.set(Ur,lr=new Set),Sr.forEach(mo=>lr.add(mo))}}),Kn.postStyleProps.forEach((Fi,Ur)=>{const Sr=Object.keys(Fi);let lr=Qe.get(Ur);lr||Qe.set(Ur,lr=new Set),Sr.forEach(mo=>lr.add(mo))})});if(ar.length){const St=[];ar.forEach($t=>{St.push(function ke(d,l){return new r.vHH(3505,V)}())}),sr.forEach($t=>$t.destroy()),this.reportError(St)}const Ai=new Map,gr=new Map;Q.forEach(St=>{const $t=St.element;f.has($t)&&(gr.set($t,$t),this._beforeAnimationBuild(St.player.namespaceId,St.instruction,Ai))}),D.forEach(St=>{const $t=St.element;this._getPreviousPlayers($t,!1,St.namespaceId,St.triggerName,null).forEach(Fn=>{Qt(Ai,$t,[]).push(Fn),Fn.destroy()})});const er=jn.filter(St=>Js(St,Se,Qe)),Zi=new Map;Wi(Zi,this.driver,_i,Qe,Y).forEach(St=>{Js(St,Se,Qe)&&er.push(St)});const Mr=new Map;Dn.forEach((St,$t)=>{Wi(Mr,this.driver,new Set(St),Se,"!")}),er.forEach(St=>{const $t=Zi.get(St),en=Mr.get(St);Zi.set(St,{...$t,...en})});const Hr=[],Es=[],Bo={};Q.forEach(St=>{const{element:$t,player:en,instruction:Fn}=St;if(f.has($t)){if(Dt.has($t))return en.onDestroy(()=>Oe($t,Fn.toStyles)),en.disabled=!0,en.overrideTotalTime(Fn.totalTime),void D.push(en);let ti=Bo;if(gr.size>1){let Ui=$t;const jr=[];for(;Ui=Ui.parentNode;){const Kn=gr.get(Ui);if(Kn){ti=Kn;break}jr.push(Ui)}jr.forEach(Kn=>gr.set(Kn,ti))}const Vi=this._buildAnimation(en.namespaceId,Fn,Ai,L,Mr,Zi);if(en.setRealPlayer(Vi),ti===Bo)Hr.push(en);else{const Ui=this.playersByElement.get(ti);Ui&&Ui.length&&(en.parentPlayer=ft(Ui)),D.push(en)}}else He($t,Fn.fromStyles),en.onDestroy(()=>Oe($t,Fn.toStyles)),Es.push(en),Dt.has($t)&&D.push(en)}),Es.forEach(St=>{const $t=L.get(St.element);if($t&&$t.length){const en=ft($t);St.setRealPlayer(en)}}),D.forEach(St=>{St.parentPlayer?St.syncPlayerEvents(St.parentPlayer):St.destroy()});for(let St=0;St<jn.length;St++){const $t=jn[St],en=$t[ui];if(Vr($t,Ot),en&&en.hasAnimation)continue;let Fn=[];if(oe.size){let Vi=oe.get($t);Vi&&Vi.length&&Fn.push(...Vi);let Ui=this.driver.query($t,hn,!0);for(let jr=0;jr<Ui.length;jr++){let Kn=oe.get(Ui[jr]);Kn&&Kn.length&&Fn.push(...Kn)}}const ti=Fn.filter(Vi=>!Vi.destroyed);ti.length?il(this,$t,ti):this.processLeaveNode($t)}return jn.length=0,Hr.forEach(St=>{this.players.push(St),St.onDone(()=>{St.destroy();const $t=this.players.indexOf(St);this.players.splice($t,1)}),St.play()}),Hr}elementContainsData(l,a){let f=!1;const D=a[ui];return D&&D.setForRemoval&&(f=!0),this.playersByElement.has(a)&&(f=!0),this.playersByQueriedElement.has(a)&&(f=!0),this.statesByElement.has(a)&&(f=!0),this._fetchNamespace(l).elementContainsData(a)||f}afterFlush(l){this._flushFns.push(l)}afterFlushAnimationsDone(l){this._whenQuietFns.push(l)}_getPreviousPlayers(l,a,f,D,L){let Q=[];if(a){const oe=this.playersByQueriedElement.get(l);oe&&(Q=oe)}else{const oe=this.playersByElement.get(l);if(oe){const Se=!L||L==Jn;oe.forEach(Qe=>{Qe.queued||!Se&&Qe.triggerName!=D||Q.push(Qe)})}}return(f||D)&&(Q=Q.filter(oe=>!(f&&f!=oe.namespaceId||D&&D!=oe.triggerName))),Q}_beforeAnimationBuild(l,a,f){const L=a.element,Q=a.isRemovalTransition?void 0:l,oe=a.isRemovalTransition?void 0:a.triggerName;for(const Se of a.timelines){const Qe=Se.element,Dt=Qe!==L,Ht=Qt(f,Qe,[]);this._getPreviousPlayers(Qe,Dt,Q,oe,a.toState).forEach(Dn=>{const Gt=Dn.getRealPlayer();Gt.beforeDestroy&&Gt.beforeDestroy(),Dn.destroy(),Ht.push(Dn)})}He(L,a.fromStyles)}_buildAnimation(l,a,f,D,L,Q){const oe=a.triggerName,Se=a.element,Qe=[],Dt=new Set,Ht=new Set,tn=a.timelines.map(Gt=>{const un=Gt.element;Dt.add(un);const jn=un[ui];if(jn&&jn.removedBeforeQueried)return new Et(Gt.duration,Gt.delay);const xn=un!==Se,_i=function rl(d){const l=[];return qs(d,l),l}((f.get(un)||$n).map(Ai=>Ai.getRealPlayer())).filter(Ai=>!!Ai.element&&Ai.element===un),Ii=L.get(un),yi=Q.get(un),sr=vn(0,this._normalizer,0,Gt.keyframes,Ii,yi),ar=this._buildPlayer(Gt,sr,_i);if(Gt.subTimeline&&D&&Ht.add(un),xn){const Ai=new F(l,oe,un);Ai.setRealPlayer(ar),Qe.push(Ai)}return ar});Qe.forEach(Gt=>{Qt(this.playersByQueriedElement,Gt.element,[]).push(Gt),Gt.onDone(()=>function Ye(d,l,a){let f;if(d instanceof Map){if(f=d.get(l),f){if(f.length){const D=f.indexOf(a);f.splice(D,1)}0==f.length&&d.delete(l)}}else if(f=d[l],f){if(f.length){const D=f.indexOf(a);f.splice(D,1)}0==f.length&&delete d[l]}return f}(this.playersByQueriedElement,Gt.element,Gt))}),Dt.forEach(Gt=>Oi(Gt,Bt));const Dn=ft(tn);return Dn.onDestroy(()=>{Dt.forEach(Gt=>Vr(Gt,Bt)),Oe(Se,a.toStyles)}),Ht.forEach(Gt=>{Qt(D,Gt,[]).push(Dn)}),Dn}_buildPlayer(l,a,f){return a.length>0?this.driver.animate(l.element,a,l.duration,l.delay,l.easing,f):new Et(l.duration,l.delay)}}class F{constructor(l,a,f){this.namespaceId=l,this.triggerName=a,this.element=f,this._player=new Et,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(l){this._containsRealPlayer||(this._player=l,Object.keys(this._queuedCallbacks).forEach(a=>{this._queuedCallbacks[a].forEach(f=>Mn(l,a,void 0,f))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(l.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(l){this.totalTime=l}syncPlayerEvents(l){const a=this._player;a.triggerCallback&&l.onStart(()=>a.triggerCallback("start")),l.onDone(()=>this.finish()),l.onDestroy(()=>this.destroy())}_queueEvent(l,a){Qt(this._queuedCallbacks,l,[]).push(a)}onDone(l){this.queued&&this._queueEvent("done",l),this._player.onDone(l)}onStart(l){this.queued&&this._queueEvent("start",l),this._player.onStart(l)}onDestroy(l){this.queued&&this._queueEvent("destroy",l),this._player.onDestroy(l)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(l){this.queued||this._player.setPosition(l)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(l){const a=this._player;a.triggerCallback&&a.triggerCallback(l)}}function Zn(d){return d&&1===d.nodeType}function rr(d,l){const a=d.style.display;return d.style.display=l??"none",a}function Wi(d,l,a,f,D){const L=[];a.forEach(Se=>L.push(rr(Se)));const Q=[];f.forEach((Se,Qe)=>{const Dt={};Se.forEach(Ht=>{const tn=Dt[Ht]=l.computeStyle(Qe,Ht,D);(!tn||0==tn.length)&&(Qe[ui]=Er,Q.push(Qe))}),d.set(Qe,Dt)});let oe=0;return a.forEach(Se=>rr(Se,L[oe++])),Q}function Yt(d,l){const a=new Map;if(d.forEach(oe=>a.set(oe,[])),0==l.length)return a;const D=new Set(l),L=new Map;function Q(oe){if(!oe)return 1;let Se=L.get(oe);if(Se)return Se;const Qe=oe.parentNode;return Se=a.has(Qe)?Qe:D.has(Qe)?1:Q(Qe),L.set(oe,Se),Se}return l.forEach(oe=>{const Se=Q(oe);1!==Se&&a.get(Se).push(oe)}),a}function Oi(d,l){d.classList?.add(l)}function Vr(d,l){d.classList?.remove(l)}function il(d,l,a){ft(a).onDone(()=>d.processLeaveNode(l))}function qs(d,l){for(let a=0;a<d.length;a++){const f=d[a];f instanceof _n?qs(f.players,l):l.push(f)}}function Js(d,l,a){const f=a.get(d);if(!f)return!1;let D=l.get(d);return D?f.forEach(L=>D.add(L)):l.set(d,f),a.delete(d),!0}class Eo{constructor(l,a,f){this.bodyNode=l,this._driver=a,this._normalizer=f,this._triggerCache={},this.onRemovalComplete=(D,L)=>{},this._transitionEngine=new _(l,a,f),this._timelineEngine=new ht(l,a,f),this._transitionEngine.onRemovalComplete=(D,L)=>this.onRemovalComplete(D,L)}registerTrigger(l,a,f,D,L){const Q=l+"-"+D;let oe=this._triggerCache[Q];if(!oe){const Se=[],Dt=Mi(this._driver,L,Se,[]);if(Se.length)throw function ln(d,l){return new r.vHH(3404,V)}();oe=function x(d,l,a){return new w(d,l,a)}(D,Dt,this._normalizer),this._triggerCache[Q]=oe}this._transitionEngine.registerTrigger(a,D,oe)}register(l,a){this._transitionEngine.register(l,a)}destroy(l,a){this._transitionEngine.destroy(l,a)}onInsert(l,a,f,D){this._transitionEngine.insertNode(l,a,f,D)}onRemove(l,a,f,D){this._transitionEngine.removeNode(l,a,D||!1,f)}disableAnimations(l,a){this._transitionEngine.markElementAsDisabled(l,a)}process(l,a,f,D){if("@"==f.charAt(0)){const[L,Q]=Ft(f);this._timelineEngine.command(L,a,Q,D)}else this._transitionEngine.trigger(l,a,f,D)}listen(l,a,f,D,L){if("@"==f.charAt(0)){const[Q,oe]=Ft(f);return this._timelineEngine.listen(Q,a,oe,L)}return this._transitionEngine.listen(l,a,f,D,L)}flush(l=-1){this._transitionEngine.flush(l)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let On=(()=>{class d{constructor(a,f,D){this._element=a,this._startStyles=f,this._endStyles=D,this._state=0;let L=d.initialStylesByElement.get(a);L||d.initialStylesByElement.set(a,L={}),this._initialStyles=L}start(){this._state<1&&(this._startStyles&&Oe(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Oe(this._element,this._initialStyles),this._endStyles&&(Oe(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(d.initialStylesByElement.delete(this._element),this._startStyles&&(He(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(He(this._element,this._endStyles),this._endStyles=null),Oe(this._element,this._initialStyles),this._state=3)}}return d.initialStylesByElement=new WeakMap,d})();function To(d){let l=null;const a=Object.keys(d);for(let f=0;f<a.length;f++){const D=a[f];gi(D)&&(l=l||{},l[D]=d[D])}return l}function gi(d){return"display"===d||"position"===d}class hs{constructor(l,a,f,D){this.element=l,this.keyframes=a,this.options=f,this._specialStyles=D,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=f.duration,this._delay=f.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(l=>l()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const l=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,l,this.options),this._finalKeyframe=l.length?l[l.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(l,a,f){return l.animate(a,f)}onStart(l){this._onStartFns.push(l)}onDone(l){this._onDoneFns.push(l)}onDestroy(l){this._onDestroyFns.push(l)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(l=>l()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(l=>l()),this._onDestroyFns=[])}setPosition(l){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=l*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const l={};if(this.hasStarted()){const a=this._finalKeyframe;Object.keys(a).forEach(f=>{"offset"!=f&&(l[f]=this._finished?a[f]:g(this.element,f))})}this.currentSnapshot=l}triggerCallback(l){const a="start"==l?this._onStartFns:this._onDoneFns;a.forEach(f=>f()),a.length=0}}class so{validateStyleProperty(l){return wt(l)}matchesElement(l,a){return!1}containsElement(l,a){return bt(l,a)}getParentElement(l){return De(l)}query(l,a,f){return Vt(l,a,f)}computeStyle(l,a,f){return window.getComputedStyle(l)[a]}animate(l,a,f,D,L,Q=[]){const Se={duration:f,delay:D,fill:0==D?"both":"forwards"};L&&(Se.easing=L);const Qe={},Dt=Q.filter(tn=>tn instanceof hs);(function nt(d,l){return 0===d||0===l})(f,D)&&Dt.forEach(tn=>{let Dn=tn.currentSnapshot;Object.keys(Dn).forEach(Gt=>Qe[Gt]=Dn[Gt])}),a=function R(d,l,a){const f=Object.keys(a);if(f.length&&l.length){let L=l[0],Q=[];if(f.forEach(oe=>{L.hasOwnProperty(oe)||Q.push(oe),L[oe]=a[oe]}),Q.length)for(var D=1;D<l.length;D++){let oe=l[D];Q.forEach(function(Se){oe[Se]=g(d,Se)})}}return l}(l,a=a.map(tn=>Ne(tn,!1)),Qe);const Ht=function ot(d,l){let a=null,f=null;return Array.isArray(l)&&l.length?(a=To(l[0]),l.length>1&&(f=To(l[l.length-1]))):l&&(a=To(l)),a||f?new On(d,a,f):null}(l,a);return new hs(l,a,Se,Ht)}}let or=(()=>{class d extends ce{constructor(a,f){super(),this._nextAnimationId=0,this._renderer=a.createRenderer(f.body,{id:"0",encapsulation:r.ifc.None,styles:[],data:{animation:[]}})}build(a){const f=this._nextAnimationId.toString();this._nextAnimationId++;const D=Array.isArray(a)?ge(a):a;return ol(this._renderer,null,f,"register",[D]),new fs(f,this._renderer)}}return d.\u0275fac=function(a){return new(a||d)(r.LFG(r.FYo),r.LFG(P.K0))},d.\u0275prov=r.Yz7({token:d,factory:d.\u0275fac}),d})();class fs extends class W{}{constructor(l,a){super(),this._id=l,this._renderer=a}create(l,a){return new ps(this._id,l,a||{},this._renderer)}}class ps{constructor(l,a,f,D){this.id=l,this.element=a,this._renderer=D,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",f)}_listen(l,a){return this._renderer.listen(this.element,`@@${this.id}:${l}`,a)}_command(l,...a){return ol(this._renderer,this.element,this.id,l,a)}onDone(l){this._listen("done",l)}onStart(l){this._listen("start",l)}onDestroy(l){this._listen("destroy",l)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(l){this._command("setPosition",l)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function ol(d,l,a,f,D){return d.setProperty(l,`@@${a}:${f}`,D)}const sl="@.disabled";let So=(()=>{class d{constructor(a,f,D){this.delegate=a,this.engine=f,this._zone=D,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),f.onRemovalComplete=(L,Q)=>{const oe=Q?.parentNode(L);oe&&Q.removeChild(oe,L)}}createRenderer(a,f){const L=this.delegate.createRenderer(a,f);if(!(a&&f&&f.data&&f.data.animation)){let Dt=this._rendererCache.get(L);return Dt||(Dt=new xi("",L,this.engine),this._rendererCache.set(L,Dt)),Dt}const Q=f.id,oe=f.id+"-"+this._currentId;this._currentId++,this.engine.register(oe,a);const Se=Dt=>{Array.isArray(Dt)?Dt.forEach(Se):this.engine.registerTrigger(Q,oe,a,Dt.name,Dt)};return f.data.animation.forEach(Se),new hr(this,oe,L,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(a,f,D){a>=0&&a<this._microtaskId?this._zone.run(()=>f(D)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(L=>{const[Q,oe]=L;Q(oe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([f,D]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return d.\u0275fac=function(a){return new(a||d)(r.LFG(r.FYo),r.LFG(Eo),r.LFG(r.R0b))},d.\u0275prov=r.Yz7({token:d,factory:d.\u0275fac}),d})();class xi{constructor(l,a,f){this.namespaceId=l,this.delegate=a,this.engine=f,this.destroyNode=this.delegate.destroyNode?D=>a.destroyNode(D):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(l,a){return this.delegate.createElement(l,a)}createComment(l){return this.delegate.createComment(l)}createText(l){return this.delegate.createText(l)}appendChild(l,a){this.delegate.appendChild(l,a),this.engine.onInsert(this.namespaceId,a,l,!1)}insertBefore(l,a,f,D=!0){this.delegate.insertBefore(l,a,f),this.engine.onInsert(this.namespaceId,a,l,D)}removeChild(l,a,f){this.engine.onRemove(this.namespaceId,a,this.delegate,f)}selectRootElement(l,a){return this.delegate.selectRootElement(l,a)}parentNode(l){return this.delegate.parentNode(l)}nextSibling(l){return this.delegate.nextSibling(l)}setAttribute(l,a,f,D){this.delegate.setAttribute(l,a,f,D)}removeAttribute(l,a,f){this.delegate.removeAttribute(l,a,f)}addClass(l,a){this.delegate.addClass(l,a)}removeClass(l,a){this.delegate.removeClass(l,a)}setStyle(l,a,f,D){this.delegate.setStyle(l,a,f,D)}removeStyle(l,a,f){this.delegate.removeStyle(l,a,f)}setProperty(l,a,f){"@"==a.charAt(0)&&a==sl?this.disableAnimations(l,!!f):this.delegate.setProperty(l,a,f)}setValue(l,a){this.delegate.setValue(l,a)}listen(l,a,f){return this.delegate.listen(l,a,f)}disableAnimations(l,a){this.engine.disableAnimations(l,a)}}class hr extends xi{constructor(l,a,f,D){super(a,f,D),this.factory=l,this.namespaceId=a}setProperty(l,a,f){"@"==a.charAt(0)?"."==a.charAt(1)&&a==sl?this.disableAnimations(l,f=void 0===f||!!f):this.engine.process(this.namespaceId,l,a.substr(1),f):this.delegate.setProperty(l,a,f)}listen(l,a,f){if("@"==a.charAt(0)){const D=function Ks(d){switch(d){case"body":return document.body;case"document":return document;case"window":return window;default:return d}}(l);let L=a.substr(1),Q="";return"@"!=L.charAt(0)&&([L,Q]=function qr(d){const l=d.indexOf(".");return[d.substring(0,l),d.substr(l+1)]}(L)),this.engine.listen(this.namespaceId,D,L,Q,oe=>{this.factory.scheduleListenerCallback(oe._data||-1,f,oe)})}return this.delegate.listen(l,a,f)}}let fr=(()=>{class d extends Eo{constructor(a,f,D){super(a.body,f,D)}ngOnDestroy(){this.flush()}}return d.\u0275fac=function(a){return new(a||d)(r.LFG(P.K0),r.LFG(G),r.LFG(Yr))},d.\u0275prov=r.Yz7({token:d,factory:d.\u0275fac}),d})();const ea=new r.OlP("AnimationModuleType"),ta=[{provide:ce,useClass:or},{provide:Yr,useFactory:function al(){return new Qi}},{provide:Eo,useClass:fr},{provide:r.FYo,useFactory:function Xs(d,l,a){return new So(d,l,a)},deps:[te.se,Eo,r.R0b]}],xo=[{provide:G,useFactory:()=>new so},{provide:ea,useValue:"BrowserAnimations"},...ta],gs=[{provide:G,useClass:Z},{provide:ea,useValue:"NoopAnimations"},...ta];let na=(()=>{class d{static withConfig(a){return{ngModule:d,providers:a.disableAnimations?gs:xo}}}return d.\u0275fac=function(a){return new(a||d)},d.\u0275mod=r.oAB({type:d}),d.\u0275inj=r.cJS({providers:xo,imports:[te.b2]}),d})();function ra(d,l){if(1&d&&r._uU(0),2&d){const a=r.oxw();r.hij(" ",a.locale.maketext("Loading \u2026"),"\n")}}function oa(d,l){1&d&&r.GkF(0)}const sa=["header"];function aa(d,l){if(1&d){const a=r.EpF();r.TgZ(0,"button",4),r.NdJ("click",function(){return r.CHM(a),r.oxw().closeClicked()}),r._UZ(1,"i",5),r.qZA()}if(2&d){const a=r.oxw();r.uIk("id",a.buttonID)}}const Po=[[["","callout-heading",""]],"*"],ul=["[callout-heading]","*"];function Oo(d,l){if(1&d){const a=r.EpF();r.TgZ(0,"button",9),r.NdJ("click",function(){return r.CHM(a),r.oxw(2).fireClose()}),r.TgZ(1,"span"),r._uU(2,"\xd7"),r.qZA()()}if(2&d){const a=r.oxw(2);r.Q6J("id",a.closeButtonID)("title",a.closeLabel),r.uIk("aria-label",a.closeLabel),r.xp6(1),r.uIk("aria-hidden",!0)}}function Io(d,l){if(1&d){const a=r.EpF();r.TgZ(0,"button",10),r.NdJ("click",function(){return r.CHM(a),r.oxw(2).fireToggleMore()}),r._uU(1),r.qZA()}if(2&d){const a=r.oxw(2);r.Q6J("id",a.moreButtonID),r.xp6(1),r.hij(" ",a.moreLabel," ")}}function Ao(d,l){if(1&d&&(r.TgZ(0,"strong",11),r._uU(1),r.qZA()),2&d){const a=r.oxw(2);r.xp6(1),r.Oqu(a.label)}}function _s(d,l){if(1&d&&(r.TgZ(0,"span",12),r._uU(1),r.qZA()),2&d){const a=r.oxw(2);r.Q6J("id",a.textMessageID),r.xp6(1),r.hij(" ",a.message," ")}}function la(d,l){if(1&d&&(r.TgZ(0,"li")(1,"span",12),r._uU(2),r.qZA()()),2&d){const a=l.$implicit,f=l.index,D=r.oxw(3);r.xp6(1),r.s9C("id",D.textListID+"_"+f),r.xp6(1),r.hij(" ",a," ")}}function hl(d,l){if(1&d&&(r.TgZ(0,"ul",13),r.YNc(1,la,3,2,"li",14),r.qZA()),2&d){const a=r.oxw(2);r.xp6(1),r.Q6J("ngForOf",a.alert.list)}}function Tr(d,l){if(1&d&&(r.TgZ(0,"div",1),r.YNc(1,Oo,3,4,"button",2),r.YNc(2,Io,2,2,"button",3),r._UZ(3,"span"),r.TgZ(4,"div",4),r.YNc(5,Ao,2,1,"strong",5),r.TgZ(6,"span",6),r.YNc(7,_s,2,2,"span",7),r.qZA(),r.YNc(8,hl,2,1,"ul",8),r.qZA()()),2&d){const a=r.oxw();r.Gre("alert alert-",a.type," ng-hide"),r.Q6J("@openClose",a.animationClass),r.xp6(1),r.Q6J("ngIf",a.showCloseButton),r.xp6(1),r.Q6J("ngIf",a.showMoreButton),r.xp6(1),r.Tol(a.icon),r.uIk("aria-hidden",!0),r.xp6(2),r.Q6J("ngIf",a.hasLabel),r.xp6(2),r.Q6J("ngIf",a.message),r.xp6(1),r.Q6J("ngIf",a.alert&&a.alert.list&&a.alert.list.length)}}function ao(d,l){if(1&d){const a=r.EpF();r.TgZ(0,"div",6)(1,"cp-alert",7),r.NdJ("close",function(){const L=r.CHM(a).$implicit;return r.oxw().alertClosed(L)}),r.qZA()()}if(2&d){const a=l.$implicit;r.xp6(1),r.Q6J("alert",a)}}function fl(d,l){if(1&d&&r._UZ(0,"div",8),2&d){const a=r.oxw();r.Q6J("ngClass",a.positionClasses)}}class Ji{constructor(l,a,f=Ji.defaultOptions){this._message=l,this._type=a;const D=f.id?f.id:Math.random().toString(36).substr(2,9);this._id=D,this._closable=f.isCloseable??!0,this._autoClosePeriod=f.autoClosePeriod,this._list=f.list,this._showMore=f.showMore||Ji.defaultShowMore,this._ts=f.createdOn??Date.now()}get message(){return this._message}get type(){return this._type}get id(){return this._id}get isClosable(){return this._closable}get autoCloses(){return this._autoClosePeriod>0}get autoClosePeriod(){return this._autoClosePeriod}get list(){return this._list}get createdOn(){return this._ts}get showMore(){return this._showMore}static makeAlert(l){const{message:a,type:f,...D}=l;return new Ji(a,f,D)}}Ji.defaultShowMore=!1,Ji.defaultAutoClosePeriod=0,Ji.defaultOptions={autoClosePeriod:Ji.defaultAutoClosePeriod,list:[]};var zn=(()=>{return(d=zn||(zn={}))[d.error=0]="error",d[d.success=1]="success",d[d.warning=2]="warning",d[d.information=3]="information",zn;var d})(),Ki=(()=>{return(d=Ki||(Ki={})).add="add",d.remove="remove",d.clear="clear",Ki;var d})();let Qr=(()=>{class d{constructor(){this._alertEventsSource=new _e.xQ,this._alerts={},this.alertEvents=this._alertEventsSource.asObservable()}add(a,f=d.defaultGroup){this._alerts[f]||(this._alerts[f]=[]);const D=a instanceof Ji?a:Ji.makeAlert(a);if(this.list(f).push(D),this._alertEventsSource.next({type:Ki.add,group:f,alert:D}),(0,r.X6Q)())switch(D.type){case zn.error:console.error(D.message,D);break;case zn.warning:console.warn(D.message,D);break;default:console.log(D.message,D)}return D}success(a,f=d.defaultGroup){return this.add(new Ji(a,zn.success,d.defaultSuccessOptions),f)}error(a,f=d.defaultGroup){return this.add({message:a,type:zn.error},f)}info(a,f=d.defaultGroup){return this.add({message:a,type:zn.information},f)}warn(a,f=d.defaultGroup){return this.add({message:a,type:zn.warning},f)}removeById(a,f=d.defaultGroup){const D=this.list(f),L=D.findIndex(Q=>Q.id===a,0);if(-1!==L){const Q=D[L];D.splice(L,1),this._alertEventsSource.next({type:Ki.remove,group:f,alert:Q})}}clear(a=d.defaultGroup){this._alerts[a]=[],this._alertEventsSource.next({type:Ki.clear,group:a})}list(a=d.defaultGroup){return null==this._alerts[a]&&(this._alerts[a]=[]),this._alerts[a]}}return d.defaultGroup="__DEFAULT__",d.defaultSuccessOptions={autoClosePeriod:1e4},d.\u0275fac=function(a){return new(a||d)},d.\u0275prov=r.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),d})(),ko=(()=>{class d{}return d.\u0275fac=function(a){return new(a||d)},d.\u0275mod=r.oAB({type:d}),d.\u0275inj=r.cJS({providers:[Qr],imports:[[P.ez]]}),d})();var ji=(()=>{return(d=ji||(ji={})).inline="inline",d.topLeft="top-left",d.topMiddle="top-middle",d.topRight="top-right",d.bottomLeft="bottom-left",d.bottomMiddle="bottom-middle",d.bottomRight="bottom-right",d.middleLeft="middle-left",d.middleMiddle="middle-middle",d.middleRight="middle-right",ji;var d})();const ha=ji.topRight,fa=ji.topLeft;let ga=(()=>{class d{constructor(a){this.locale=a,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"}}return d.\u0275fac=function(a){return new(a||d)(r.Y36(J.g))},d.\u0275cmp=r.Xpm({type:d,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(a,f){if(1&a&&(r.YNc(0,ra,1,1,"ng-template",null,0,r.W1O),r.TgZ(2,"div",1),r._UZ(3,"i",2),r.TgZ(4,"div",3),r.YNc(5,oa,1,0,"ng-container",4),r.qZA()()),2&a){const D=r.MAs(1);r.xp6(2),r.uIk("id",f.containerId),r.xp6(1),r.uIk("id",f.spinnerId),r.xp6(1),r.uIk("id",f.messageId),r.xp6(1),r.Q6J("ngTemplateOutlet",f.loadingTemplate?f.loadingTemplate:D)}},directives:[P.tP],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}']}),d})(),Cs=(()=>{class d{}return d.\u0275fac=function(a){return new(a||d)},d.\u0275mod=r.oAB({type:d}),d.\u0275inj=r.cJS({imports:[[P.ez,re.m]]}),d})();var Jr=(()=>{return(d=Jr||(Jr={})).warnings="warnings",d.danger="danger",d.info="info",d.default="info",Jr;var d})();let Kr=(()=>{class d{constructor(){this.calloutType=Jr.default,this.closeable=!1,this.close=new r.vpe}closeClicked(){this.close.emit(null)}ngOnInit(){if(!this.id)throw new Error("id must be defined for `cp-callout`");this.buttonID=`${this.id}_button`,this.headingID=`${this.id}_heading`,this.contentID=`${this.id}_content`}ngAfterViewInit(){0===this.header.nativeElement.children.length&&this.header.nativeElement.classList.add("hidden")}}return d.\u0275fac=function(a){return new(a||d)},d.\u0275cmp=r.Xpm({type:d,selectors:[["cp-callout"]],viewQuery:function(a,f){if(1&a&&r.Gf(sa,5),2&a){let D;r.iGM(D=r.CRH())&&(f.header=D.first)}},inputs:{id:"id",calloutType:"calloutType",closeable:"closeable"},outputs:{close:"close"},ngContentSelectors:ul,decls:7,vars:7,consts:[["role","alert"],["type","button","class","close","aria-label","Close",3,"click",4,"ngIf"],[1,"callout-heading"],["header",""],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true",1,"fas","fa-sm","fa-times"]],template:function(a,f){1&a&&(r.F$t(Po),r.TgZ(0,"div",0),r.YNc(1,aa,2,1,"button",1),r.TgZ(2,"div",2,3),r.Hsn(4),r.qZA(),r.TgZ(5,"div"),r.Hsn(6,1),r.qZA()()),2&a&&(r.Gre("callout callout-",f.calloutType,""),r.uIk("aria-label",f.calloutType),r.xp6(1),r.Q6J("ngIf",f.closeable),r.xp6(1),r.uIk("id",f.headingID),r.xp6(3),r.uIk("id",f.contentID))},directives:[P.O5],styles:['.callout[_ngcontent-%COMP%]{border-left-width:3px;border-left-style:solid;border-left-color:#eee;margin:15px 0;padding:15px}.callout-danger[_ngcontent-%COMP%]{background-color:#f2dede;border-left-color:#d03f00}.callout-success[_ngcontent-%COMP%]{background-color:#dff2d5;border-left-color:#83b655}.callout-warning[_ngcontent-%COMP%]{background-color:#fcf8e1;border-left-color:#f6c342}.callout-info[_ngcontent-%COMP%]{background-color:#d7edf9;border-left-color:#179bd7}.callout-heading[_ngcontent-%COMP%]{font-size:16px;margin-bottom:15px;font-family:inherit;font-weight:600;line-height:1.1;color:inherit;text-transform:capitalize}html[dir="rtl"][_nghost-%COMP%] .callout[_ngcontent-%COMP%], html[dir="rtl"] [_nghost-%COMP%] .callout[_ngcontent-%COMP%]{border-left-width:0;border-left-style:none;border-left-color:transparent;border-right-width:3px;border-right-style:solid;border-right-color:#eee}html[dir="rtl"][_nghost-%COMP%] .callout-danger[_ngcontent-%COMP%], html[dir="rtl"] [_nghost-%COMP%] .callout-danger[_ngcontent-%COMP%]{border-left-color:transparent;border-right-color:#d03f00}html[dir="rtl"][_nghost-%COMP%] .callout-success[_ngcontent-%COMP%], html[dir="rtl"] [_nghost-%COMP%] .callout-success[_ngcontent-%COMP%]{border-left-color:transparent;border-right-color:#83b655}html[dir="rtl"][_nghost-%COMP%] .callout-warning[_ngcontent-%COMP%], html[dir="rtl"] [_nghost-%COMP%] .callout-warning[_ngcontent-%COMP%]{border-left-color:transparent;border-right-color:#f6c342}html[dir="rtl"][_nghost-%COMP%] .callout-info[_ngcontent-%COMP%], html[dir="rtl"] [_nghost-%COMP%] .callout-info[_ngcontent-%COMP%]{border-left-color:transparent;border-right-color:#179bd7}']}),d})(),Xr=(()=>{class d{}return d.\u0275fac=function(a){return new(a||d)},d.\u0275mod=r.oAB({type:d}),d.\u0275inj=r.cJS({imports:[[P.ez]]}),d})();var Li=(()=>{return(d=Li||(Li={})).new="new",d.closed="closed",d.open="open",Li;var d})();let nd=(()=>{class d{constructor(a){this.locale=a,this.close=new r.vpe,this.toggleMore=new r.vpe,this.animationClass=Li.new}ngOnInit(){if(this._showMore=!1,this._closed=!1,this.moreButtonID=this._buildID("btnMore",this.type,this.alert.id),this.closeButtonID=this._buildID("btnClose",this.type,this.alert.id),this.textMessageID=this._buildID("txtMessage",this.type,this.alert.id),this.textListID=this._buildID("txtList",this.type,this.alert.id),!this.label)switch(this.alert.type){case zn.success:this.label=this.locale.maketext("Success:");break;case zn.error:this.label=this.locale.maketext("Error:");break;case zn.information:this.label=this.locale.maketext("Information:");break;case zn.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=Li.open},.25)}ngAfterViewInit(){this.willAutoClose&&this.startTimer()}get icon(){switch(this.alert.type){case zn.error:return"type-icon fas fa-times-circle";case zn.warning:return"type-icon fas fa-exclamation-triangle";case zn.information:return"type-icon fas fa-info-circle";case zn.success:return"type-icon fas fa-check-circle"}}get type(){switch(this.alert.type){case zn.error:return"danger";case zn.warning:return"warning";case zn.information:return"info";case zn.success:return"success"}}fireToggleMore(){this._showMore=!this._showMore,this.toggleMore.emit({alert:this.alert,showMore:this._showMore,component:this})}fireClose(){this._timeout&&this.clearTimer(),this.animationClass=Li.closed,setTimeout(()=>{this.close.emit({alert:this.alert,component:this}),this._closed=!0},250)}fireTimeout(){this.fireClose(),this.clearTimer()}get hasLabel(){const a=this.label;return null!==a&&""!==a}get showCloseButton(){return this.alert.isClosable}get showMoreButton(){return this.alert.showMore&&this.toggleMore.observers.length>0}get message(){return this.alert.message}startTimer(){this._timeout=setTimeout(()=>this.fireTimeout(),this.autoClosePeriod)}clearTimer(){this._timeout&&(clearTimeout(this._timeout),this._timeout=null)}get willAutoClose(){return this.autoClosePeriod>0}get autoClosePeriod(){return this.alert.autoClosePeriod}get isClosed(){return this._closed}_buildID(...a){return a.join("_")}}return d.\u0275fac=function(a){return new(a||d)(r.Y36(J.g))},d.\u0275cmp=r.Xpm({type:d,selectors:[["cp-alert"]],inputs:{alert:"alert",label:"label",closeLabel:"closeLabel",moreLabel:"moreLabel"},outputs:{close:"close",toggleMore:"toggleMore"},decls:1,vars:1,consts:[["role","alert",3,"class",4,"ngIf"],["role","alert"],["type","button","class","close",3,"id","title","click",4,"ngIf"],["type","button","class","btn btn-more btn-link pull-right flip",3,"id","click",4,"ngIf"],[1,"alert-message"],["class","alert-title",4,"ngIf"],[1,"alert-body"],[3,"id",4,"ngIf"],["class","alert-list",4,"ngIf"],["type","button",1,"close",3,"id","title","click"],["type","button",1,"btn","btn-more","btn-link","pull-right","flip",3,"id","click"],[1,"alert-title"],[3,"id"],[1,"alert-list"],[4,"ngFor","ngForOf"]],template:function(a,f){1&a&&r.YNc(0,Tr,9,13,"div",0),2&a&&r.Q6J("ngIf",!f.isClosed)},directives:[P.O5,P.sg],styles:['.alert-danger[_ngcontent-%COMP%]{background-color:#f2dede;border:1px solid #d03f00}html[dir="ltr"][_nghost-%COMP%] .alert-danger[_ngcontent-%COMP%], html[dir="ltr"] [_nghost-%COMP%] .alert-danger[_ngcontent-%COMP%]{box-shadow:inset 41px 0 #d03f00}html[dir="rtl"][_nghost-%COMP%] .alert-danger[_ngcontent-%COMP%], html[dir="rtl"] [_nghost-%COMP%] .alert-danger[_ngcontent-%COMP%]{box-shadow:inset -41px 0 #d03f00}.alert-success[_ngcontent-%COMP%]{background-color:#dff2d5;border:1px solid #83b655}html[dir="ltr"][_nghost-%COMP%] .alert-success[_ngcontent-%COMP%], html[dir="ltr"] [_nghost-%COMP%] .alert-success[_ngcontent-%COMP%]{box-shadow:inset 41px 0 #83b655}html[dir="rtl"][_nghost-%COMP%] .alert-success[_ngcontent-%COMP%], html[dir="rtl"] [_nghost-%COMP%] .alert-success[_ngcontent-%COMP%]{box-shadow:inset -41px 0 #83b655}.alert-warning[_ngcontent-%COMP%]{background-color:#fcf8e1;border:1px solid #f6c342}html[dir="ltr"][_nghost-%COMP%] .alert-warning[_ngcontent-%COMP%], html[dir="ltr"] [_nghost-%COMP%] .alert-warning[_ngcontent-%COMP%]{box-shadow:inset 41px 0 #f6c342}html[dir="rtl"][_nghost-%COMP%] .alert-warning[_ngcontent-%COMP%], html[dir="rtl"] [_nghost-%COMP%] .alert-warning[_ngcontent-%COMP%]{box-shadow:inset -41px 0 #f6c342}.alert-info[_ngcontent-%COMP%]{background-color:#d7edf9;border:1px solid #179bd7}html[dir="ltr"][_nghost-%COMP%] .alert-info[_ngcontent-%COMP%], html[dir="ltr"] [_nghost-%COMP%] .alert-info[_ngcontent-%COMP%]{box-shadow:inset 41px 0 #179bd7}html[dir="rtl"][_nghost-%COMP%] .alert-info[_ngcontent-%COMP%], html[dir="rtl"] [_nghost-%COMP%] .alert-info[_ngcontent-%COMP%]{box-shadow:inset -41px 0 #179bd7}.alert[_ngcontent-%COMP%]{position:relative;border-radius:2px;padding:10px 30px 10px 50px}html[dir="rtl"][_nghost-%COMP%] .alert[_ngcontent-%COMP%], html[dir="rtl"] [_nghost-%COMP%] .alert[_ngcontent-%COMP%]{padding:10px 50px 10px 30px}.alert-message[_ngcontent-%COMP%]{color:#333;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word}.alert-message[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:underline}.alert[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{top:-2px;position:relative;right:-21px}html[dir="rtl"][_nghost-%COMP%] .alert[_ngcontent-%COMP%] .close[_ngcontent-%COMP%], html[dir="rtl"] [_nghost-%COMP%] .alert[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{left:-21px;right:auto}.alert[_ngcontent-%COMP%] .type-icon[_ngcontent-%COMP%]{color:#f2dede;left:10px;position:absolute;-webkit-text-size-adjust:100%;text-size-adjust:100%;font-size:20px;line-height:20px;top:9px}html[dir="rtl"][_nghost-%COMP%] .alert[_ngcontent-%COMP%] .type-icon[_ngcontent-%COMP%], html[dir="rtl"] [_nghost-%COMP%] .alert[_ngcontent-%COMP%] .type-icon[_ngcontent-%COMP%]{left:auto;right:10px}.alert[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{opacity:.5}.alert-success[_ngcontent-%COMP%] .type-icon[_ngcontent-%COMP%]{color:#dff2d5}.alert-warning[_ngcontent-%COMP%] .type-icon[_ngcontent-%COMP%]{color:#fcf8e1}.alert-info[_ngcontent-%COMP%] .type-icon[_ngcontent-%COMP%]{color:#d7edf9}.alert[_ngcontent-%COMP%] .alert-message[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-bottom:0;padding:0 30px}.alert-warning[_ngcontent-%COMP%] .alert-message[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#8a6d3b}.alert-warning[_ngcontent-%COMP%] .alert-message[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#333}.alert-success[_ngcontent-%COMP%] .alert-message[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#3c763d}.alert-success[_ngcontent-%COMP%] .alert-message[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#333}.alert-info[_ngcontent-%COMP%] .alert-message[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#31708f}.alert-info[_ngcontent-%COMP%] .alert-message[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#333}.alert-danger[_ngcontent-%COMP%] .alert-message[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:#a94442}.alert-danger[_ngcontent-%COMP%] .alert-message[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#333}.alert[_ngcontent-%COMP%] .btn-more[_ngcontent-%COMP%]{padding:0;margin:0;line-height:1em;text-transform:none;color:#255783}'],data:{animation:[j("openClose",[Ie(Li.new,Ve({opacity:0})),Ie(Li.open,Ve({opacity:1})),Ie(Li.closed,Ve({opacity:0,transform:"translateX(25%)"})),ut(`${Li.open} => ${Li.closed}`,[z("0.25s")]),ut(`${Li.new} => ${Li.open}`,[z("0.25s")]),ut(`${Li.closed} => ${Li.open}`,[z("0.25s")])])]}}),d})(),Ml=(()=>{class d{}return d.\u0275fac=function(a){return new(a||d)},d.\u0275mod=r.oAB({type:d}),d.\u0275inj=r.cJS({imports:[[P.ez,na,re.m]]}),d})(),po=(()=>{class d{constructor(a){this.locale=a}get position(){return this.locale.isLtr?ha:fa}}return d.\u0275fac=function(a){return new(a||d)(r.LFG(J.g))},d.\u0275prov=r.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),d})(),id=(()=>{class d{constructor(a,f){this._alertService=a,this._positionService=f,this.alerts=this.alerts?this.alerts:[]}set position(a){this._position=((d,l=ji.topRight)=>{if(d){const a=(d=>{const l=Object.keys(ji),f=Object.values(ji).indexOf(d);return-1!==f?l[f]:(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)})(d);if(a)return ji[a]}return l})(a)}get position(){return this._position.toString()}alertClosed(a){this._alertService.removeById(a.id,this.group)}ngOnInit(){this.group||(this.group=Qr.defaultGroup),this._position||(this._position=this._positionService.position),this._alertService.list(this.group).forEach(f=>this._addAlert(f)),this._groupEvents=this._alertService.alertEvents.pipe((0,pe.h)(f=>f.group===this.group)),this._eventSubscription=this._groupEvents.subscribe({next:this._onAlertEvent.bind(this),error:console.error})}ngOnDestroy(){this._eventSubscription.unsubscribe()}_findAlertIndexById(a){return this.alerts.findIndex(f=>f.id===a)}_addAlert(a){return this.alerts.push(a),this.alerts}_removeAlert(a){const f=this._findAlertIndexById(a.id);return f>-1&&(this.alerts.splice(f,1),!0)}_clearAlerts(){this.alerts.splice(0,this.alerts.length)}_onAlertEvent(a){switch(a.type){case Ki.add:this._addAlert(a.alert);break;case Ki.clear:this._clearAlerts();break;case Ki.remove:this._removeAlert(a.alert)}}get hasAlerts(){return this.alerts.length>0}get positionClasses(){return this.inline?d.positionPrefix+ji.inline.toString():d.positionPrefix+this.position.toString()}}return d.positionPrefix="position-",d.\u0275fac=function(a){return new(a||d)(r.Y36(Qr),r.Y36(po))},d.\u0275cmp=r.Xpm({type:d,selectors:[["cp-alert-list"]],inputs:{alerts:"alerts",group:"group",inline:"inline",position:"position"},decls:7,vars:3,consts:[[1,"alert-list-container",3,"ngClass"],["container",""],[1,"alert-list"],["list",""],["class","alert-container",4,"ngFor","ngForOf"],["class","alert-list-backdrop",3,"ngClass",4,"ngIf"],[1,"alert-container"],[3,"alert","close"],[1,"alert-list-backdrop",3,"ngClass"]],template:function(a,f){1&a&&(r.TgZ(0,"div")(1,"div",0,1)(3,"div",2,3),r.YNc(5,ao,2,1,"div",4),r.qZA()(),r.YNc(6,fl,1,1,"div",5),r.qZA()),2&a&&(r.xp6(1),r.Q6J("ngClass",f.positionClasses),r.xp6(4),r.Q6J("ngForOf",f.alerts),r.xp6(1),r.Q6J("ngIf",f.hasAlerts))},directives:[nd,P.mk,P.sg,P.O5],styles:[".alert-list-container.position-inline[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-top:0;margin-bottom:5px}@media (min-width: 768px){.alert-list-container.position-inline[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-bottom:10px}}.alert-list-container.position-top-left[_ngcontent-%COMP%]{position:fixed;z-index:900;min-width:25%;max-width:100%;padding-left:1px;padding-right:1px;left:0}@media (max-width: 768px){.whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-top-left[_ngcontent-%COMP%], .whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-top-left[_ngcontent-%COMP%]{max-width:calc(100% - 218px)}}@media (max-width: 768px){.cpanel[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-top-left[_ngcontent-%COMP%], .cpanel [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-top-left[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}}.alert-list-container.position-top-left.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-top-left[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.alert-list-container.position-top-left[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{max-width:500px}}.alert-list-container.position-top-left.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.whostmgr[_nghost-%COMP%] .alert-list-container.position-top-left[_ngcontent-%COMP%], .whostmgr [_nghost-%COMP%] .alert-list-container.position-top-left[_ngcontent-%COMP%]{top:70px}.cpanel[_nghost-%COMP%] .alert-list-container.position-top-left[_ngcontent-%COMP%], .cpanel [_nghost-%COMP%] .alert-list-container.position-top-left[_ngcontent-%COMP%]{top:30px}.webmail[_nghost-%COMP%] .alert-list-container.position-top-left[_ngcontent-%COMP%], .webmail [_nghost-%COMP%] .alert-list-container.position-top-left[_ngcontent-%COMP%]{top:52px}@media (min-width: 768px){.whostmgr[_nghost-%COMP%] .alert-list-container.position-top-left[_ngcontent-%COMP%], .whostmgr [_nghost-%COMP%] .alert-list-container.position-top-left[_ngcontent-%COMP%]{top:120px}.cpanel[_nghost-%COMP%] .alert-list-container.position-top-left[_ngcontent-%COMP%], .cpanel [_nghost-%COMP%] .alert-list-container.position-top-left[_ngcontent-%COMP%]{top:52px}}@media (max-width: 667px){.webmail[_nghost-%COMP%] .alert-list-container.position-top-left[_ngcontent-%COMP%], .webmail [_nghost-%COMP%] .alert-list-container.position-top-left[_ngcontent-%COMP%]{top:30px}}.alert-list-container.position-top-left[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-top:2px;margin-bottom:0}@media (min-width: 768px){.alert-list-container.position-top-left[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-top:10px}}.alert-list-container.position-top-left.show-scroll-bar[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{margin-bottom:2px}@media (min-width: 768px){.alert-list-container.position-top-left.show-scroll-bar[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{margin-bottom:10px}}@media (min-width: 768px){.alert-list-container.position-top-left[_ngcontent-%COMP%]{padding-left:10px;padding-right:0}}.alert-list-container.position-top-middle[_ngcontent-%COMP%]{position:fixed;z-index:900;min-width:25%;max-width:100%;padding-left:1px;padding-right:1px;left:50%;transform:translate(-50%)}@media (max-width: 768px){.whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-top-middle[_ngcontent-%COMP%], .whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-top-middle[_ngcontent-%COMP%]{max-width:calc(100% - 218px)}}@media (max-width: 768px){.cpanel[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-top-middle[_ngcontent-%COMP%], .cpanel [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-top-middle[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}}.alert-list-container.position-top-middle.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-top-middle[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.alert-list-container.position-top-middle[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{max-width:500px}}.alert-list-container.position-top-middle.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.whostmgr[_nghost-%COMP%] .alert-list-container.position-top-middle[_ngcontent-%COMP%], .whostmgr [_nghost-%COMP%] .alert-list-container.position-top-middle[_ngcontent-%COMP%]{top:70px}.cpanel[_nghost-%COMP%] .alert-list-container.position-top-middle[_ngcontent-%COMP%], .cpanel [_nghost-%COMP%] .alert-list-container.position-top-middle[_ngcontent-%COMP%]{top:30px}.webmail[_nghost-%COMP%] .alert-list-container.position-top-middle[_ngcontent-%COMP%], .webmail [_nghost-%COMP%] .alert-list-container.position-top-middle[_ngcontent-%COMP%]{top:52px}@media (min-width: 768px){.whostmgr[_nghost-%COMP%] .alert-list-container.position-top-middle[_ngcontent-%COMP%], .whostmgr [_nghost-%COMP%] .alert-list-container.position-top-middle[_ngcontent-%COMP%]{top:120px}.cpanel[_nghost-%COMP%] .alert-list-container.position-top-middle[_ngcontent-%COMP%], .cpanel [_nghost-%COMP%] .alert-list-container.position-top-middle[_ngcontent-%COMP%]{top:52px}}@media (max-width: 667px){.webmail[_nghost-%COMP%] .alert-list-container.position-top-middle[_ngcontent-%COMP%], .webmail [_nghost-%COMP%] .alert-list-container.position-top-middle[_ngcontent-%COMP%]{top:30px}}.alert-list-container.position-top-middle[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-top:2px;margin-bottom:0}@media (min-width: 768px){.alert-list-container.position-top-middle[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-top:10px}}.alert-list-container.position-top-middle.show-scroll-bar[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{margin-bottom:2px}@media (min-width: 768px){.alert-list-container.position-top-middle.show-scroll-bar[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{margin-bottom:10px}}@media (min-width: 768px){.alert-list-container.position-top-middle[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}.alert-list-container.position-top-right[_ngcontent-%COMP%]{position:fixed;z-index:900;min-width:25%;max-width:100%;padding-left:1px;padding-right:1px;right:0}@media (max-width: 768px){.whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-top-right[_ngcontent-%COMP%], .whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-top-right[_ngcontent-%COMP%]{max-width:calc(100% - 218px)}}@media (max-width: 768px){.cpanel[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-top-right[_ngcontent-%COMP%], .cpanel [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-top-right[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}}.alert-list-container.position-top-right.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-top-right[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.alert-list-container.position-top-right[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{max-width:500px}}.alert-list-container.position-top-right.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.whostmgr[_nghost-%COMP%] .alert-list-container.position-top-right[_ngcontent-%COMP%], .whostmgr [_nghost-%COMP%] .alert-list-container.position-top-right[_ngcontent-%COMP%]{top:70px}.cpanel[_nghost-%COMP%] .alert-list-container.position-top-right[_ngcontent-%COMP%], .cpanel [_nghost-%COMP%] .alert-list-container.position-top-right[_ngcontent-%COMP%]{top:30px}.webmail[_nghost-%COMP%] .alert-list-container.position-top-right[_ngcontent-%COMP%], .webmail [_nghost-%COMP%] .alert-list-container.position-top-right[_ngcontent-%COMP%]{top:52px}@media (min-width: 768px){.whostmgr[_nghost-%COMP%] .alert-list-container.position-top-right[_ngcontent-%COMP%], .whostmgr [_nghost-%COMP%] .alert-list-container.position-top-right[_ngcontent-%COMP%]{top:120px}.cpanel[_nghost-%COMP%] .alert-list-container.position-top-right[_ngcontent-%COMP%], .cpanel [_nghost-%COMP%] .alert-list-container.position-top-right[_ngcontent-%COMP%]{top:52px}}@media (max-width: 667px){.webmail[_nghost-%COMP%] .alert-list-container.position-top-right[_ngcontent-%COMP%], .webmail [_nghost-%COMP%] .alert-list-container.position-top-right[_ngcontent-%COMP%]{top:30px}}.alert-list-container.position-top-right[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-top:2px;margin-bottom:0}@media (min-width: 768px){.alert-list-container.position-top-right[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-top:10px}}.alert-list-container.position-top-right.show-scroll-bar[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{margin-bottom:2px}@media (min-width: 768px){.alert-list-container.position-top-right.show-scroll-bar[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{margin-bottom:10px}}@media (min-width: 768px){.alert-list-container.position-top-right[_ngcontent-%COMP%]{padding-left:0;padding-right:10px}}.alert-list-container.position-middle-left[_ngcontent-%COMP%]{position:fixed;z-index:900;min-width:25%;max-width:100%;padding-left:1px;padding-right:1px;top:50%;transform:translateY(-50%);left:0}@media (max-width: 768px){.whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-middle-left[_ngcontent-%COMP%], .whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-middle-left[_ngcontent-%COMP%]{max-width:calc(100% - 218px)}}@media (max-width: 768px){.cpanel[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-middle-left[_ngcontent-%COMP%], .cpanel [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-middle-left[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}}.alert-list-container.position-middle-left.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-middle-left[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.alert-list-container.position-middle-left[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{max-width:500px}}.alert-list-container.position-middle-left.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-middle-left[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-top:1px;margin-bottom:1px}@media (min-width: 768px){.alert-list-container.position-middle-left[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-bottom:5px;margin-top:5px}}@media (min-width: 768px){.alert-list-container.position-middle-left[_ngcontent-%COMP%]{padding-left:10px;padding-right:0}}.alert-list-backdrop.position-middle-middle[_ngcontent-%COMP%]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:899;overflow:hidden;outline:0;background-color:#000;opacity:.5}.alert-list-container.position-middle-middle[_ngcontent-%COMP%]{position:fixed;z-index:900;min-width:25%;max-width:100%;padding-left:1px;padding-right:1px;top:50%;transform:translateY(-50%);left:50%;transform:translate(-50%)}@media (max-width: 768px){.whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-middle-middle[_ngcontent-%COMP%], .whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-middle-middle[_ngcontent-%COMP%]{max-width:calc(100% - 218px)}}@media (max-width: 768px){.cpanel[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-middle-middle[_ngcontent-%COMP%], .cpanel [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-middle-middle[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}}.alert-list-container.position-middle-middle.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-middle-middle[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.alert-list-container.position-middle-middle[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{max-width:500px}}.alert-list-container.position-middle-middle.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-middle-middle[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-top:1px;margin-bottom:1px}@media (min-width: 768px){.alert-list-container.position-middle-middle[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-bottom:5px;margin-top:5px}}@media (min-width: 768px){.alert-list-container.position-middle-middle[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}.alert-list-container.position-middle-right[_ngcontent-%COMP%]{position:fixed;z-index:900;min-width:25%;max-width:100%;padding-left:1px;padding-right:1px;top:50%;transform:translateY(-50%);right:0}@media (max-width: 768px){.whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-middle-right[_ngcontent-%COMP%], .whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-middle-right[_ngcontent-%COMP%]{max-width:calc(100% - 218px)}}@media (max-width: 768px){.cpanel[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-middle-right[_ngcontent-%COMP%], .cpanel [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-middle-right[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}}.alert-list-container.position-middle-right.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-middle-right[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.alert-list-container.position-middle-right[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{max-width:500px}}.alert-list-container.position-middle-right.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-middle-right[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-top:1px;margin-bottom:1px}@media (min-width: 768px){.alert-list-container.position-middle-right[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-bottom:5px;margin-top:5px}}@media (min-width: 768px){.alert-list-container.position-middle-right[_ngcontent-%COMP%]{padding-left:0;padding-right:10px}}.alert-list-container.position-bottom-left[_ngcontent-%COMP%]{position:fixed;z-index:900;min-width:25%;max-width:100%;padding-left:1px;padding-right:1px;bottom:0;left:0}@media (max-width: 768px){.whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-bottom-left[_ngcontent-%COMP%], .whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-bottom-left[_ngcontent-%COMP%]{max-width:calc(100% - 218px)}}@media (max-width: 768px){.cpanel[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-bottom-left[_ngcontent-%COMP%], .cpanel [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-bottom-left[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}}.alert-list-container.position-bottom-left.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-bottom-left[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.alert-list-container.position-bottom-left[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{max-width:500px}}.alert-list-container.position-bottom-left.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-bottom-left[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-top:0;margin-bottom:2px}@media (min-width: 768px){.alert-list-container.position-bottom-left[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-bottom:10px}}.alert-list-container.position-bottom-left.show-scroll-bar[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{margin-top:2px}@media (min-width: 768px){.alert-list-container.position-bottom-left.show-scroll-bar[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{margin-top:10px}}@media (min-width: 768px){.alert-list-container.position-bottom-left[_ngcontent-%COMP%]{padding-left:10px;padding-right:0}}.alert-list-container.position-bottom-middle[_ngcontent-%COMP%]{position:fixed;z-index:900;min-width:25%;max-width:100%;padding-left:1px;padding-right:1px;bottom:0;left:50%;transform:translate(-50%)}@media (max-width: 768px){.whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-bottom-middle[_ngcontent-%COMP%], .whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-bottom-middle[_ngcontent-%COMP%]{max-width:calc(100% - 218px)}}@media (max-width: 768px){.cpanel[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-bottom-middle[_ngcontent-%COMP%], .cpanel [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-bottom-middle[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}}.alert-list-container.position-bottom-middle.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-bottom-middle[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.alert-list-container.position-bottom-middle[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{max-width:500px}}.alert-list-container.position-bottom-middle.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-bottom-middle[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-top:0;margin-bottom:2px}@media (min-width: 768px){.alert-list-container.position-bottom-middle[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-bottom:10px}}.alert-list-container.position-bottom-middle.show-scroll-bar[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{margin-top:2px}@media (min-width: 768px){.alert-list-container.position-bottom-middle.show-scroll-bar[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{margin-top:10px}}@media (min-width: 768px){.alert-list-container.position-bottom-middle[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}.alert-list-container.position-bottom-right[_ngcontent-%COMP%]{position:fixed;z-index:900;min-width:25%;max-width:100%;padding-left:1px;padding-right:1px;bottom:0;right:0}@media (max-width: 768px){.whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-bottom-right[_ngcontent-%COMP%], .whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-bottom-right[_ngcontent-%COMP%]{max-width:calc(100% - 218px)}}@media (max-width: 768px){.cpanel[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-bottom-right[_ngcontent-%COMP%], .cpanel [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container.position-bottom-right[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}}.alert-list-container.position-bottom-right[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.alert-list-container.position-bottom-right[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{max-width:500px}}.alert-list-container.position-bottom-right.show-scroll-bar[_ngcontent-%COMP%]{overflow-y:scroll}.alert-list-container.position-bottom-right[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-top:0;margin-bottom:2px}@media (min-width: 768px){.alert-list-container.position-bottom-right[_ngcontent-%COMP%] .alert[_ngcontent-%COMP%]{margin-bottom:10px}}.alert-list-container.position-bottom-right.show-scroll-bar[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{margin-top:2px}@media (min-width: 768px){.alert-list-container.position-bottom-right.show-scroll-bar[_ngcontent-%COMP%] .alert-list[_ngcontent-%COMP%]{margin-top:10px}}@media (min-width: 768px){.alert-list-container.position-bottom-right[_ngcontent-%COMP%]{padding-left:0;padding-right:10px}}@media (max-width: 768px){.whostmgr.nav-collapsed[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.nav-collapsed [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .webmail[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .webmail [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline){position:fixed;z-index:900;min-width:25%;padding-left:1px;padding-right:1px;bottom:auto;right:auto;left:0;top:0;transform:none;max-width:100%;min-width:100%;width:100%}.whostmgr.nav-collapsed[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert-list[_ngcontent-%COMP%], .whostmgr.nav-collapsed [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert-list[_ngcontent-%COMP%], .whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert-list[_ngcontent-%COMP%], .whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert-list[_ngcontent-%COMP%], .cpanel[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert-list[_ngcontent-%COMP%], .cpanel [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert-list[_ngcontent-%COMP%], .webmail[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert-list[_ngcontent-%COMP%], .webmail [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert-list[_ngcontent-%COMP%]{width:100%}.whostmgr.nav-collapsed[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline).show-scroll-bar, .whostmgr.nav-collapsed [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline).show-scroll-bar, .whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline).show-scroll-bar, .whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline).show-scroll-bar, .cpanel[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline).show-scroll-bar, .cpanel [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline).show-scroll-bar, .webmail[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline).show-scroll-bar, .webmail [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline).show-scroll-bar{overflow-y:scroll}.whostmgr.nav-collapsed[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert[_ngcontent-%COMP%], .whostmgr.nav-collapsed [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert[_ngcontent-%COMP%], .whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert[_ngcontent-%COMP%], .whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert[_ngcontent-%COMP%], .cpanel[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert[_ngcontent-%COMP%], .cpanel [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert[_ngcontent-%COMP%], .webmail[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert[_ngcontent-%COMP%], .webmail [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert[_ngcontent-%COMP%]{margin-bottom:5px}}@media (max-width: 768px) and (max-width: 768px){.whostmgr.whostmgr.nav-collapsed[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.whostmgr.nav-collapsed [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr .whostmgr.nav-collapsed[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr .whostmgr.nav-collapsed [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.nav-collapsed .whostmgr[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.nav-collapsed .whostmgr [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr .whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr .whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr .whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr .whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.cpanel[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.cpanel [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr .cpanel[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr .cpanel [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel .whostmgr[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel .whostmgr [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.webmail[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.webmail [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr .webmail[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr .webmail [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .webmail .whostmgr[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .webmail .whostmgr [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline){max-width:calc(100% - 218px)}}@media (max-width: 768px) and (max-width: 768px){.cpanel.whostmgr.nav-collapsed[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel.whostmgr.nav-collapsed [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel .whostmgr.nav-collapsed[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel .whostmgr.nav-collapsed [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.nav-collapsed .cpanel[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr.nav-collapsed .cpanel [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel.whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel.whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel .whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel .whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr .cpanel[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .whostmgr .cpanel [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel.cpanel[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel.cpanel [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel .cpanel[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel .cpanel [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel .cpanel[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel .cpanel [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel.webmail[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel.webmail [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel .webmail[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .cpanel .webmail [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .webmail .cpanel[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline), .webmail .cpanel [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline){max-width:calc(100% - 50px)}}@media (max-width: 768px) and (min-width: 768px){.whostmgr.nav-collapsed[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert-list[_ngcontent-%COMP%], .whostmgr.nav-collapsed [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert-list[_ngcontent-%COMP%], .whostmgr[_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert-list[_ngcontent-%COMP%], .whostmgr [_nghost-%COMP%]:not(.nav-collapsed) .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert-list[_ngcontent-%COMP%], .cpanel[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert-list[_ngcontent-%COMP%], .cpanel [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert-list[_ngcontent-%COMP%], .webmail[_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert-list[_ngcontent-%COMP%], .webmail [_nghost-%COMP%] .alert-list-container[_ngcontent-%COMP%]:not(.position-inline) .alert-list[_ngcontent-%COMP%]{max-width:500px}}"]}),d})(),mi=(()=>{class d{}return d.\u0275fac=function(a){return new(a||d)},d.\u0275mod=r.oAB({type:d}),d.\u0275inj=r.cJS({imports:[[P.ez,Ml]]}),d})()},7322:($e,X,M)=>{"use strict";M.d(X,{jq:()=>q,w9:()=>fn,A0:()=>nt});var r=M(3071),P=M(4719),_e=M(353),pe=M(1177);class J{constructor(I){this.durationSelector=I}call(I,g){return g.subscribe(new ce(I,this.durationSelector))}}class ce extends pe.Ds{constructor(I,g){super(I),this.durationSelector=g,this.hasValue=!1}_next(I){if(this.value=I,this.hasValue=!0,!this.throttled){let g;try{const{durationSelector:le}=this;g=le(I)}catch(le){return this.destination.error(le)}const k=(0,pe.ft)(g,new pe.IY(this));!k||k.closed?this.clearThrottle():this.add(this.throttled=k)}}clearThrottle(){const{value:I,hasValue:g,throttled:k}=this;k&&(this.remove(k),this.throttled=void 0,k.unsubscribe()),g&&(this.value=void 0,this.hasValue=!1,this.destination.next(I))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var W=M(7739);var j=M(1086),z=M(9146);function ge(...R){return function fe(){return(0,z.J)(1)}()((0,j.of)(...R))}var Ve=M(2866),Be=M(3489);function ut(){}var st=M(7043);class _t{constructor(I,g,k){this.nextOrObserver=I,this.error=g,this.complete=k}call(I,g){return g.subscribe(new Pt(I,this.nextOrObserver,this.error,this.complete))}}class Pt extends Be.L{constructor(I,g,k,le){super(I),this._tapNext=ut,this._tapError=ut,this._tapComplete=ut,this._tapError=k||ut,this._tapComplete=le||ut,(0,st.m)(g)?(this._context=this,this._tapNext=g):g&&(this._context=g,this._tapNext=g.next||ut,this._tapError=g.error||ut,this._tapComplete=g.complete||ut)}_next(I){try{this._tapNext.call(this._context,I)}catch(g){return void this.destination.error(g)}this.destination.next(I)}_error(I){try{this._tapError.call(this._context,I)}catch(g){return void this.destination.error(g)}this.destination.error(I)}_complete(){try{this._tapComplete.call(this._context)}catch(I){return void this.destination.error(I)}return this.destination.complete()}}class an{constructor(I,g){this.dueTime=I,this.scheduler=g}call(I,g){return g.subscribe(new Et(I,this.dueTime,this.scheduler))}}class Et extends Be.L{constructor(I,g,k){super(I),this.dueTime=g,this.scheduler=k,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(I){this.clearDebounce(),this.lastValue=I,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(_n,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:I}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(I)}}clearDebounce(){const I=this.debouncedSubscription;null!==I&&(this.remove(I),I.unsubscribe(),this.debouncedSubscription=null)}}function _n(R){R.debouncedNext()}var nn=M(7625),te=M(2198),V=M(4850);let K=1;const ie=Promise.resolve(),be={};function se(R){return R in be&&(delete be[R],!0)}const tt={setImmediate(R){const I=K++;return be[I]=!0,ie.then(()=>se(I)&&R()),I},clearImmediate(R){se(R)}};var Rt=M(6686),In=M(2268);const Kt=new class Yn extends In.v{flush(I){this.active=!0,this.scheduled=void 0;const{actions:g}=this;let k,le=-1,Ce=g.length;I=I||g.shift();do{if(k=I.execute(I.state,I.delay))break}while(++le<Ce&&(I=g.shift()));if(this.active=!1,k){for(;++le<Ce&&(I=g.shift());)I.unsubscribe();throw k}}}(class It extends Rt.o{constructor(I,g){super(I,g),this.scheduler=I,this.work=g}requestAsyncId(I,g,k=0){return null!==k&&k>0?super.requestAsyncId(I,g,k):(I.actions.push(this),I.scheduled||(I.scheduled=tt.setImmediate(I.flush.bind(I,null))))}recycleAsyncId(I,g,k=0){if(null!==k&&k>0||null===k&&this.delay>0)return super.recycleAsyncId(I,g,k);0===I.actions.length&&(tt.clearImmediate(g),I.scheduled=void 0)}});var En=M(352),Vn=M(5529),Rn=M(3753),yn=M(6787),Ln=M(6895);const Di=["content"],ii=["scroll"],Tn=["padding"],Zt=function(R){return{searchTerm:R}};function hi(R,I){if(1&R&&(r.TgZ(0,"div",6),r.GkF(1,7),r.qZA()),2&R){const g=r.oxw();r.xp6(1),r.Q6J("ngTemplateOutlet",g.headerTemplate)("ngTemplateOutletContext",r.VKq(2,Zt,g.filterValue))}}function fi(R,I){if(1&R&&(r.TgZ(0,"div",8),r.GkF(1,7),r.qZA()),2&R){const g=r.oxw();r.xp6(1),r.Q6J("ngTemplateOutlet",g.footerTemplate)("ngTemplateOutletContext",r.VKq(2,Zt,g.filterValue))}}const Sn=["*"],ln=["searchInput"];function Ni(R,I){if(1&R){const g=r.EpF();r.TgZ(0,"span",15),r.NdJ("click",function(){r.CHM(g);const le=r.oxw().$implicit;return r.oxw(2).unselect(le)}),r._uU(1,"\xd7"),r.qZA(),r._UZ(2,"span",16)}if(2&R){const g=r.oxw().$implicit,k=r.oxw(2);r.xp6(2),r.Q6J("ngItemLabel",g.label)("escape",k.escapeHTML)}}function qt(R,I){}const ri=function(R,I,g){return{item:R,clear:I,label:g}};function oi(R,I){if(1&R&&(r.TgZ(0,"div",12),r.YNc(1,Ni,3,2,"ng-template",null,13,r.W1O),r.YNc(3,qt,0,0,"ng-template",14),r.qZA()),2&R){const g=I.$implicit,k=r.MAs(2),le=r.oxw(2);r.ekj("ng-value-disabled",g.disabled),r.xp6(3),r.Q6J("ngTemplateOutlet",le.labelTemplate||k)("ngTemplateOutletContext",r.kEZ(4,ri,g.value,le.clearItem,g.label))}}function vi(R,I){if(1&R&&(r.ynx(0),r.YNc(1,oi,4,8,"div",11),r.BQk()),2&R){const g=r.oxw();r.xp6(1),r.Q6J("ngForOf",g.selectedItems)("ngForTrackBy",g.trackByOption)}}function li(R,I){}const Ue=function(R,I){return{items:R,clear:I}};function ue(R,I){if(1&R&&r.YNc(0,li,0,0,"ng-template",14),2&R){const g=r.oxw();r.Q6J("ngTemplateOutlet",g.multiLabelTemplate)("ngTemplateOutletContext",r.WLB(2,Ue,g.selectedValues,g.clearItem))}}function he(R,I){1&R&&r._UZ(0,"div",19)}function ze(R,I){}function Ae(R,I){if(1&R&&(r.ynx(0),r.YNc(1,he,1,0,"ng-template",null,17,r.W1O),r.YNc(3,ze,0,0,"ng-template",18),r.BQk()),2&R){const g=r.MAs(2),k=r.oxw();r.xp6(3),r.Q6J("ngTemplateOutlet",k.loadingSpinnerTemplate||g)}}function ke(R,I){if(1&R&&(r.TgZ(0,"span",20)(1,"span",21),r._uU(2,"\xd7"),r.qZA()()),2&R){const g=r.oxw();r.s9C("title",g.clearAllText)}}function Xt(R,I){if(1&R&&r._UZ(0,"span",27),2&R){const g=r.oxw().$implicit,k=r.oxw(2);r.Q6J("ngItemLabel",g.label)("escape",k.escapeHTML)}}function pn(R,I){}const ft=function(R,I,g,k){return{item:R,item$:I,index:g,searchTerm:k}};function vn(R,I){if(1&R){const g=r.EpF();r.TgZ(0,"div",25),r.NdJ("click",function(){const Ce=r.CHM(g).$implicit;return r.oxw(2).toggleItem(Ce)})("mouseover",function(){const Ce=r.CHM(g).$implicit;return r.oxw(2).onItemHover(Ce)}),r.YNc(1,Xt,1,2,"ng-template",null,26,r.W1O),r.YNc(3,pn,0,0,"ng-template",14),r.qZA()}if(2&R){const g=I.$implicit,k=r.MAs(2),le=r.oxw(2);r.ekj("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===le.itemsList.markedItem),r.uIk("role",g.children?"group":"option")("aria-selected",g.selected)("id",null==g?null:g.htmlId),r.xp6(3),r.Q6J("ngTemplateOutlet",g.children?le.optgroupTemplate||k:le.optionTemplate||k)("ngTemplateOutletContext",r.l5B(17,ft,g.value,g,g.index,le.searchTerm))}}function Mn(R,I){if(1&R&&(r.TgZ(0,"span")(1,"span",30),r._uU(2),r.qZA(),r._uU(3),r.qZA()),2&R){const g=r.oxw(3);r.xp6(2),r.Oqu(g.addTagText),r.xp6(1),r.hij('"',g.searchTerm,'"')}}function bn(R,I){}function At(R,I){if(1&R){const g=r.EpF();r.TgZ(0,"div",28),r.NdJ("mouseover",function(){return r.CHM(g),r.oxw(2).itemsList.unmarkItem()})("click",function(){return r.CHM(g),r.oxw(2).selectTag()}),r.YNc(1,Mn,4,2,"ng-template",null,29,r.W1O),r.YNc(3,bn,0,0,"ng-template",14),r.qZA()}if(2&R){const g=r.MAs(2),k=r.oxw(2);r.ekj("ng-option-marked",!k.itemsList.markedItem),r.xp6(3),r.Q6J("ngTemplateOutlet",k.tagTemplate||g)("ngTemplateOutletContext",r.VKq(4,Zt,k.searchTerm))}}function Qt(R,I){if(1&R&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&R){const g=r.oxw(3);r.xp6(1),r.Oqu(g.notFoundText)}}function Ft(R,I){}function ne(R,I){if(1&R&&(r.ynx(0),r.YNc(1,Qt,2,1,"ng-template",null,31,r.W1O),r.YNc(3,Ft,0,0,"ng-template",14),r.BQk()),2&R){const g=r.MAs(2),k=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",k.notFoundTemplate||g)("ngTemplateOutletContext",r.VKq(2,Zt,k.searchTerm))}}function Ee(R,I){if(1&R&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&R){const g=r.oxw(3);r.xp6(1),r.Oqu(g.typeToSearchText)}}function Pe(R,I){}function De(R,I){if(1&R&&(r.ynx(0),r.YNc(1,Ee,2,1,"ng-template",null,33,r.W1O),r.YNc(3,Pe,0,0,"ng-template",18),r.BQk()),2&R){const g=r.MAs(2),k=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",k.typeToSearchTemplate||g)}}function Je(R,I){if(1&R&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&R){const g=r.oxw(3);r.xp6(1),r.Oqu(g.loadingText)}}function qe(R,I){}function pt(R,I){if(1&R&&(r.ynx(0),r.YNc(1,Je,2,1,"ng-template",null,34,r.W1O),r.YNc(3,qe,0,0,"ng-template",14),r.BQk()),2&R){const g=r.MAs(2),k=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",k.loadingTextTemplate||g)("ngTemplateOutletContext",r.VKq(2,Zt,k.searchTerm))}}function Ct(R,I){if(1&R){const g=r.EpF();r.TgZ(0,"ng-dropdown-panel",22),r.NdJ("update",function(le){return r.CHM(g),r.oxw().viewPortItems=le})("scroll",function(le){return r.CHM(g),r.oxw().scroll.emit(le)})("scrollToEnd",function(le){return r.CHM(g),r.oxw().scrollToEnd.emit(le)})("outsideClick",function(){return r.CHM(g),r.oxw().close()}),r.ynx(1),r.YNc(2,vn,4,22,"div",23),r.YNc(3,At,4,6,"div",24),r.BQk(),r.YNc(4,ne,4,4,"ng-container",3),r.YNc(5,De,4,1,"ng-container",3),r.YNc(6,pt,4,4,"ng-container",3),r.qZA()}if(2&R){const g=r.oxw();r.ekj("ng-select-multiple",g.multiple),r.Q6J("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.classes:null)("id",g.dropdownId),r.xp6(2),r.Q6J("ngForOf",g.viewPortItems)("ngForTrackBy",g.trackByOption),r.xp6(1),r.Q6J("ngIf",g.showAddTag),r.xp6(1),r.Q6J("ngIf",g.showNoItemsFound()),r.xp6(1),r.Q6J("ngIf",g.showTypeToSearch()),r.xp6(1),r.Q6J("ngIf",g.loading&&0===g.itemsList.filteredItems.length)}}const wt=/[&<>"']/g,at=RegExp(wt.source),bt={"&":"&","<":"<",">":">",'"':""","'":"'"};function ae(R){return null!=R}function Z(R){return"object"==typeof R&&ae(R)}function ye(R){return R instanceof Function}let Te=(()=>{class R{constructor(g){this.element=g,this.escape=!0}ngOnChanges(g){this.element.nativeElement.innerHTML=this.escape?function Vt(R){return R&&at.test(R)?R.replace(wt,I=>bt[I]):R}(this.ngItemLabel):this.ngItemLabel}}return R.\u0275fac=function(g){return new(g||R)(r.Y36(r.SBq))},R.\u0275dir=r.lG2({type:R,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[r.TTD]}),R})(),We=(()=>{class R{constructor(g){this.template=g}}return R.\u0275fac=function(g){return new(g||R)(r.Y36(r.Rgc))},R.\u0275dir=r.lG2({type:R,selectors:[["","ng-option-tmp",""]]}),R})(),mt=(()=>{class R{constructor(g){this.template=g}}return R.\u0275fac=function(g){return new(g||R)(r.Y36(r.Rgc))},R.\u0275dir=r.lG2({type:R,selectors:[["","ng-optgroup-tmp",""]]}),R})(),Ot=(()=>{class R{constructor(g){this.template=g}}return R.\u0275fac=function(g){return new(g||R)(r.Y36(r.Rgc))},R.\u0275dir=r.lG2({type:R,selectors:[["","ng-label-tmp",""]]}),R})(),Nt=(()=>{class R{constructor(g){this.template=g}}return R.\u0275fac=function(g){return new(g||R)(r.Y36(r.Rgc))},R.\u0275dir=r.lG2({type:R,selectors:[["","ng-multi-label-tmp",""]]}),R})(),rn=(()=>{class R{constructor(g){this.template=g}}return R.\u0275fac=function(g){return new(g||R)(r.Y36(r.Rgc))},R.\u0275dir=r.lG2({type:R,selectors:[["","ng-header-tmp",""]]}),R})(),Bt=(()=>{class R{constructor(g){this.template=g}}return R.\u0275fac=function(g){return new(g||R)(r.Y36(r.Rgc))},R.\u0275dir=r.lG2({type:R,selectors:[["","ng-footer-tmp",""]]}),R})(),hn=(()=>{class R{constructor(g){this.template=g}}return R.\u0275fac=function(g){return new(g||R)(r.Y36(r.Rgc))},R.\u0275dir=r.lG2({type:R,selectors:[["","ng-notfound-tmp",""]]}),R})(),jt=(()=>{class R{constructor(g){this.template=g}}return R.\u0275fac=function(g){return new(g||R)(r.Y36(r.Rgc))},R.\u0275dir=r.lG2({type:R,selectors:[["","ng-typetosearch-tmp",""]]}),R})(),gn=(()=>{class R{constructor(g){this.template=g}}return R.\u0275fac=function(g){return new(g||R)(r.Y36(r.Rgc))},R.\u0275dir=r.lG2({type:R,selectors:[["","ng-loadingtext-tmp",""]]}),R})(),T=(()=>{class R{constructor(g){this.template=g}}return R.\u0275fac=function(g){return new(g||R)(r.Y36(r.Rgc))},R.\u0275dir=r.lG2({type:R,selectors:[["","ng-tag-tmp",""]]}),R})(),N=(()=>{class R{constructor(g){this.template=g}}return R.\u0275fac=function(g){return new(g||R)(r.Y36(r.Rgc))},R.\u0275dir=r.lG2({type:R,selectors:[["","ng-loadingspinner-tmp",""]]}),R})();function A(){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 Ne(R){return R.replace(/[^\u0000-\u007E]/g,g=>ee[g]||g)}class xe{constructor(I,g){this._ngSelect=I,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 I=this.selectedItems.length-1;for(;I>=0;I--){const g=this.selectedItems[I];if(!g.disabled)return g}return null}setItems(I){this._items=I.map((g,k)=>this.mapItem(g,k)),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(I){if(I.selected||this.maxItemsSelected)return;const g=this._ngSelect.multiple;g||this.clearSelected(),this._selectionModel.select(I,g,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(I)}unselect(I){!I.selected||(this._selectionModel.unselect(I,this._ngSelect.multiple),this._ngSelect.hideSelected&&ae(I.index)&&this._ngSelect.multiple&&this._showSelected(I))}findItem(I){let g;return g=this._ngSelect.compareWith?k=>this._ngSelect.compareWith(k.value,I):this._ngSelect.bindValue?k=>!k.children&&this.resolveNested(k.value,this._ngSelect.bindValue)===I:k=>k.value===I||!k.children&&k.label&&k.label===this.resolveNested(I,this._ngSelect.bindLabel),this._items.find(k=>g(k))}addItem(I){const g=this.mapItem(I,this._items.length);return this._items.push(g),this._filteredItems.push(g),g}clearSelected(I=!1){this._selectionModel.clear(I),this._items.forEach(g=>{g.selected=I&&g.selected&&g.disabled,g.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(I){return I=Ne(I).toLocaleLowerCase(),this.filteredItems.find(g=>Ne(g.label).toLocaleLowerCase().substr(0,I.length)===I)}filter(I){if(!I)return void this.resetFilteredItems();this._filteredItems=[],I=this._ngSelect.searchFn?I:Ne(I).toLocaleLowerCase();const g=this._ngSelect.searchFn||this._defaultSearchFn,k=this._ngSelect.hideSelected;for(const le of Array.from(this._groups.keys())){const Ce=[];for(const je of this._groups.get(le))k&&(je.parent&&je.parent.selected||je.selected)||g(I,this._ngSelect.searchFn?je.value:je)&&Ce.push(je);if(Ce.length>0){const[je]=Ce.slice(-1);if(je.parent){const kt=this._items.find(cn=>cn===je.parent);this._filteredItems.push(kt)}this._filteredItems.push(...Ce)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(I=>!I.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(I){this._markedIndex=this._filteredItems.indexOf(I)}markSelectedOrDefault(I){if(0===this._filteredItems.length)return;const g=this._getLastMarkedIndex();this._markedIndex=g>-1?g:I?this.filteredItems.findIndex(k=>!k.disabled):-1}resolveNested(I,g){if(!Z(I))return I;if(-1===g.indexOf("."))return I[g];{const k=g.split(".");let le=I;for(let Ce=0,je=k.length;Ce<je;++Ce){if(null==le)return null;le=le[k[Ce]]}return le}}mapItem(I,g){const k=ae(I.$ngOptionLabel)?I.$ngOptionLabel:this.resolveNested(I,this._ngSelect.bindLabel),le=ae(I.$ngOptionValue)?I.$ngOptionValue:I;return{index:g,label:ae(k)?k.toString():"",value:le,disabled:I.disabled,htmlId:`${this._ngSelect.dropdownId}-${g}`}}mapSelectedItems(){const I=this._ngSelect.multiple;for(const g of this.selectedItems){const k=this._ngSelect.bindValue?this.resolveNested(g.value,this._ngSelect.bindValue):g.value,le=ae(k)?this.findItem(k):null;this._selectionModel.unselect(g,I),this._selectionModel.select(le||g,I,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(g=>-1===this.selectedItems.indexOf(g)))}_showSelected(I){if(this._filteredItems.push(I),I.parent){const g=I.parent;this._filteredItems.find(le=>le===g)||this._filteredItems.push(g)}else if(I.children)for(const g of I.children)g.selected=!1,this._filteredItems.push(g);this._filteredItems=[...this._filteredItems.sort((g,k)=>g.index-k.index)]}_hideSelected(I){this._filteredItems=this._filteredItems.filter(g=>g!==I),I.parent?I.parent.children.every(k=>k.selected)&&(this._filteredItems=this._filteredItems.filter(k=>k!==I.parent)):I.children&&(this._filteredItems=this.filteredItems.filter(g=>g.parent!==I))}_defaultSearchFn(I,g){return Ne(g.label).toLocaleLowerCase().indexOf(I)>-1}_getNextItemIndex(I){return I>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(I){0===this._filteredItems.length||this._filteredItems.every(g=>g.disabled)||(this._markedIndex=this._getNextItemIndex(I),this.markedItem.disabled&&this._stepToItem(I))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const I=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&I<0?-1:Math.max(this.markedIndex,I)}_groupBy(I,g){const k=new Map;if(0===I.length)return k;if(Array.isArray(I[0].value[g])){for(const je of I){const kt=(je.value[g]||[]).map((cn,Cn)=>this.mapItem(cn,Cn));k.set(je,kt)}return k}const le=ye(this._ngSelect.groupBy),Ce=je=>{const kt=le?g(je.value):je.value[g];return ae(kt)?kt:void 0};for(const je of I){const kt=Ce(je),cn=k.get(kt);cn?cn.push(je):k.set(kt,[je])}return k}_flatten(I){const g=ye(this._ngSelect.groupBy),k=[];for(const le of Array.from(I.keys())){let Ce=k.length;if(void 0===le){const kn=I.get(void 0)||[];k.push(...kn.map(qn=>(qn.index=Ce++,qn)));continue}const je=Z(le),kt={label:je?"":String(le),children:void 0,parent:null,index:Ce++,disabled:!this._ngSelect.selectableGroup,htmlId:A()},cn=g?this._ngSelect.bindLabel:this._ngSelect.groupBy,Cn=this._ngSelect.groupValue||(()=>je?le.value:{[cn]:le}),Bn=I.get(le).map(kn=>(kn.parent=kt,kn.children=void 0,kn.index=Ce++,kn));kt.children=Bn,kt.value=Cn(le,Bn.map(kn=>kn.value)),k.push(kt),k.push(...Bn)}return k}}var me=(()=>{return(R=me||(me={}))[R.Tab=9]="Tab",R[R.Enter=13]="Enter",R[R.Esc=27]="Esc",R[R.Space=32]="Space",R[R.ArrowUp=38]="ArrowUp",R[R.ArrowDown=40]="ArrowDown",R[R.Backspace=8]="Backspace",me;var R})();let Oe=(()=>{class R{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(g,k,le){const Ce=this._dimensions,je=Ce.itemHeight*k,cn=Math.max(0,g)/je*k;let Cn=Math.min(k,Math.ceil(cn)+(Ce.itemsPerViewport+1));const kn=Math.max(0,Cn-Ce.itemsPerViewport);let qn=Math.min(kn,Math.floor(cn)),Nn=Ce.itemHeight*Math.ceil(qn)-Ce.itemHeight*Math.min(qn,le);return Nn=isNaN(Nn)?0:Nn,qn=isNaN(qn)?-1:qn,Cn=isNaN(Cn)?-1:Cn,qn-=le,qn=Math.max(0,qn),Cn+=le,Cn=Math.min(k,Cn),{topPadding:Nn,scrollHeight:je,start:qn,end:Cn}}setDimensions(g,k){const le=Math.max(1,Math.floor(k/g));this._dimensions={itemHeight:g,panelHeight:k,itemsPerViewport:le}}getScrollTo(g,k,le){const{panelHeight:Ce}=this.dimensions,je=g+k,cn=le+Ce;return Ce>=je&&le===g?null:je>cn?le+je-cn:g<=le?g:null}}return R.\u0275fac=function(g){return new(g||R)},R.\u0275prov=r.Yz7({token:R,factory:R.\u0275fac}),R})();const He=["top","right","bottom","left"],rt=typeof requestAnimationFrame<"u"?En.Z:Kt;let Ke=(()=>{class R{constructor(g,k,le,Ce,je){this._renderer=g,this._zone=k,this._panelService=le,this._document=je,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new r.vpe,this.scroll=new r.vpe,this.scrollToEnd=new r.vpe,this.outsideClick=new r.vpe,this._destroy$=new Vn.xQ,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=Ce.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(g){g!==this._itemsLength&&(this._itemsLength=g,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:g,panelHeight:k}=this._panelService.dimensions,le=this.markedItem.index*g;return k>le?0:le}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 k=g.items;this._onItemsChange(k.currentValue,k.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(g,k=!1){if(!g)return;const le=this.items.indexOf(g);if(le<0||le>=this.itemsLength)return;let Ce;if(this.virtualScroll){const je=this._panelService.dimensions.itemHeight;Ce=this._panelService.getScrollTo(le*je,je,this._lastScrollPosition)}else{const je=this._dropdown.querySelector(`#${g.htmlId}`);Ce=this._panelService.getScrollTo(je.offsetTop,je.clientHeight,k?je.offsetTop:this._lastScrollPosition)}ae(Ce)&&(this._scrollablePanel.scrollTop=Ce)}scrollToTag(){const g=this._scrollablePanel;g.scrollTop=g.scrollHeight-g.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),He.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(g){He.forEach(le=>{const Ce=`ng-select-${le}`;this._renderer.removeClass(this._dropdown,Ce),this._renderer.removeClass(this._select,Ce)});const k=`ng-select-${g}`;this._renderer.addClass(this._dropdown,k),this._renderer.addClass(this._select,k)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,Rn.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,nn.R)(this._destroy$),function Y(R,I=_e.P){return function re(R){return function(g){return g.lift(new J(R))}}(()=>(0,W.H)(R,I))}(0,rt)).subscribe(g=>{const k=g.path||g.composedPath&&g.composedPath();this._onContentScrolled(k&&0!==k.length?k[0].scrollTop:g.target.scrollTop)})})}_handleOutsideClick(){!this._document||this._zone.runOutsideAngular(()=>{(0,yn.T)((0,Rn.R)(this._document,"touchstart",{capture:!0}),(0,Rn.R)(this._document,"mousedown",{capture:!0})).pipe((0,nn.R)(this._destroy$)).subscribe(g=>this._checkToClose(g))})}_checkToClose(g){if(this._select.contains(g.target)||this._dropdown.contains(g.target))return;const k=g.path||g.composedPath&&g.composedPath();g.target&&g.target.shadowRoot&&k&&k[0]&&this._select.contains(k[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(g,k){this.items=g||[],this._scrollToEndFired=!1,this.itemsLength=g.length,this.virtualScroll?this._updateItemsRange(k):(this._setVirtualHeight(),this._updateItems(k))}_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 k=this._panelService.calculateItems(g=g||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(k.scrollHeight),this._contentPanel.style.transform=`translateY(${k.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(k.start,k.end)),this.scroll.emit({start:k.start,end:k.end})}),ae(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 le=this._dropdown.querySelector(`#${g.htmlId}`).clientHeight;return this._virtualPadding.style.height=le*this.itemsLength+"px",this._panelService.setDimensions(le,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 k=this._select.getBoundingClientRect(),le=document.documentElement.scrollTop||document.body.scrollTop;return k.top+window.pageYOffset+k.height+g.getBoundingClientRect().height>le+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(),k=this._parent.getBoundingClientRect();this._dropdown.style.left=g.left-k.left+"px",this._dropdown.style.width=g.width+"px",this._dropdown.style.minWidth=g.width+"px"}_updateYPosition(){const g=this._select.getBoundingClientRect(),k=this._parent.getBoundingClientRect(),le=g.height;"top"===this._currentPosition?(this._dropdown.style.bottom=k.bottom-g.bottom+le+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=g.top-k.top+le+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,Rn.R)(this._dropdown,"mousedown").pipe((0,nn.R)(this._destroy$)).subscribe(g=>{"INPUT"!==g.target.tagName&&g.preventDefault()})})}}return R.\u0275fac=function(g){return new(g||R)(r.Y36(r.Qsj),r.Y36(r.R0b),r.Y36(Oe),r.Y36(r.SBq),r.Y36(Ln.K0,8))},R.\u0275cmp=r.Xpm({type:R,selectors:[["ng-dropdown-panel"]],viewQuery:function(g,k){if(1&g&&(r.Gf(Di,7,r.SBq),r.Gf(ii,7,r.SBq),r.Gf(Tn,7,r.SBq)),2&g){let le;r.iGM(le=r.CRH())&&(k.contentElementRef=le.first),r.iGM(le=r.CRH())&&(k.scrollElementRef=le.first),r.iGM(le=r.CRH())&&(k.paddingElementRef=le.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[r.TTD],ngContentSelectors:Sn,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],[1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(g,k){1&g&&(r.F$t(),r.YNc(0,hi,2,4,"div",0),r.TgZ(1,"div",1,2),r._UZ(3,"div",null,3),r.TgZ(5,"div",null,4),r.Hsn(7),r.qZA()(),r.YNc(8,fi,2,4,"div",5)),2&g&&(r.Q6J("ngIf",k.headerTemplate),r.xp6(3),r.ekj("total-padding",k.virtualScroll),r.xp6(2),r.ekj("scrollable-content",k.virtualScroll&&k.items.length),r.xp6(3),r.Q6J("ngIf",k.footerTemplate))},directives:[Ln.O5,Ln.tP],encapsulation:2,changeDetection:0}),R})(),q=(()=>{class R{constructor(g){this.elementRef=g,this.stateChange$=new Vn.xQ,this._disabled=!1}get disabled(){return this._disabled}set disabled(g){this._disabled=this._isDisabled(g)}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()}_isDisabled(g){return null!=g&&"false"!=`${g}`}}return R.\u0275fac=function(g){return new(g||R)(r.Y36(r.SBq))},R.\u0275cmp=r.Xpm({type:R,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[r.TTD],ngContentSelectors:Sn,decls:1,vars:0,template:function(g,k){1&g&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),R})(),we=(()=>{class R{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}}return R.\u0275fac=function(g){return new(g||R)},R.\u0275prov=r.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})(),et=(()=>{class R{warn(g){console.warn(g)}}return R.\u0275fac=function(g){return new(g||R)},R.\u0275prov=r.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();const vt=new r.OlP("ng-select-selection-model");let fn=(()=>{class R{constructor(g,k,le,Ce,je,kt,cn){this.classes=g,this.autoFocus=k,this.config=le,this._cd=kt,this._console=cn,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=Cn=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new r.vpe,this.focusEvent=new r.vpe,this.changeEvent=new r.vpe,this.openEvent=new r.vpe,this.closeEvent=new r.vpe,this.searchEvent=new r.vpe,this.clearEvent=new r.vpe,this.addEvent=new r.vpe,this.removeEvent=new r.vpe,this.scroll=new r.vpe,this.scrollToEnd=new r.vpe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=A(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new Vn.xQ,this._keyPress$=new Vn.xQ,this._onChange=Cn=>{},this._onTouched=()=>{},this.clearItem=Cn=>{const Bn=this.selectedItems.find(kn=>kn.value===Cn);this.unselect(Bn)},this.trackByOption=(Cn,Bn)=>this.trackByFn?this.trackByFn(Bn.value):Bn,this._mergeGlobalConfig(le),this.itemsList=new xe(this,Ce()),this.element=je.nativeElement}get items(){return this._items}set items(g){null===g&&(g=[]),this._itemsAreUsed=!0,this._items=g}get compareWith(){return this._compareWith}set compareWith(g){if(null!=g&&!ye(g))throw Error("`compareWith` must be a function.");this._compareWith=g}get clearSearchOnAdd(){return ae(this._clearSearchOnAdd)?this._clearSearchOnAdd:ae(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(g){this._clearSearchOnAdd=g}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(g=>g.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(g){g.multiple&&this.itemsList.clearSelected(),g.items&&this._setItems(g.items.currentValue||[]),g.isOpen&&(this._manualOpen=ae(g.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),ae(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(g){if(me[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){switch(g.which){case me.ArrowDown:this._handleArrowDown(g);break;case me.ArrowUp:this._handleArrowUp(g);break;case me.Space:this._handleSpace(g);break;case me.Enter:this._handleEnter(g);break;case me.Tab:this._handleTab(g);break;case me.Esc:this.close(),g.preventDefault();break;case me.Backspace:this._handleBackspace()}}handleMousedown(g){const k=g.target;"INPUT"!==k.tagName&&g.preventDefault(),k.classList.contains("ng-clear-wrapper")?this.handleClearClick():k.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():k.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.multiple&&g.selected?this.unselect(g):this.select(g),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}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()}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))}selectTag(){let g;g=ye(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const k=le=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(le,null):this.itemsList.addItem(le);!function G(R){return R instanceof Promise}(g)?g&&this.select(k(g)):g.then(le=>this.select(k(le))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}get showAddTag(){if(!this._validTerm)return!1;const g=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(k=>k.label.toLowerCase()===g)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(k=>k.label.toLowerCase()===g))&&!this.loading}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(k=>k.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 k=g[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=ae(k)?!Z(k):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(g),g.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&ae(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const g=le=>{this.items=le.map(Ce=>({$ngOptionValue:Ce.value,$ngOptionLabel:Ce.elementRef.nativeElement.innerHTML,disabled:Ce.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},k=()=>{const le=(0,yn.T)(this.ngOptions.changes,this._destroy$);(0,yn.T)(...this.ngOptions.map(Ce=>Ce.stateChange$)).pipe((0,nn.R)(le)).subscribe(Ce=>{const je=this.itemsList.findItem(Ce.value);je.disabled=Ce.disabled,je.label=Ce.label||je.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(function Ie(...R){const I=R[R.length-1];return(0,Ve.K)(I)?(R.pop(),g=>ge(R,g,I)):g=>ge(R,g)}(this.ngOptions),(0,nn.R)(this._destroy$)).subscribe(le=>{this.bindLabel=this._defaultLabel,g(le),k()})}_isValidWriteValue(g){if(!ae(g)||this.multiple&&""===g||Array.isArray(g)&&0===g.length)return!1;const k=le=>!(!ae(this.compareWith)&&Z(le)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(le)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(g)?g.every(le=>k(le)):(this._console.warn("Multiple select ngModel should be array."),!1):k(g)}_handleWriteValue(g){if(!this._isValidWriteValue(g))return;const k=le=>{let Ce=this.itemsList.findItem(le);if(Ce)this.itemsList.select(Ce);else{const je=Z(le),kt=!je&&!this.bindValue;je||kt?this.itemsList.select(this.itemsList.mapItem(le,null)):this.bindValue&&(Ce={[this.bindLabel]:null,[this.bindValue]:le},this.itemsList.select(this.itemsList.mapItem(Ce,null)))}};this.multiple?g.forEach(le=>k(le)):k(g)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,nn.R)(this._destroy$),function dt(R,I,g){return function(le){return le.lift(new _t(R,I,g))}}(g=>this._pressedKeys.push(g)),function Tt(R,I=_e.P){return g=>g.lift(new an(R,I))}(200),(0,te.h)(()=>this._pressedKeys.length>0),(0,V.U)(()=>this._pressedKeys.join(""))).subscribe(g=>{const k=this.itemsList.findByLabel(g);k&&(this.isOpen?(this.itemsList.markItem(k),this._scrollToMarked(),this._cd.markForCheck()):this.select(k)),this._pressedKeys=[]})}_setInputAttributes(){const g=this.searchInput.nativeElement,k={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const le of Object.keys(k))g.setAttribute(le,k[le])}_updateNgModel(){const g=[];for(const le of this.selectedItems)if(this.bindValue){let Ce=null;Ce=le.children?le.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(le.value,this.bindValue),g.push(Ce)}else g.push(le.value);const k=this.selectedItems.map(le=>le.value);this.multiple?(this._onChange(g),this.changeEvent.emit(k)):(this._onChange(ae(g[0])?g[0]:null),this.changeEvent.emit(k[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.multiple&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(g){!1===this.isOpen&&!this.addTag||(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 k=this.itemsList.markedIndex+g;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(k<0||k===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const g=this.searchTerm&&this.searchTerm.trim();return g&&g.length>=this.minTermLength}_mergeGlobalConfig(g){this.placeholder=this.placeholder||g.placeholder,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=ae(this.virtualScroll)?this.virtualScroll:!!ae(g.disableVirtualScroll)&&!g.disableVirtualScroll,this.openOnEnter=ae(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}}return R.\u0275fac=function(g){return new(g||R)(r.$8M("class"),r.$8M("autofocus"),r.Y36(we),r.Y36(vt),r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(et))},R.\u0275cmp=r.Xpm({type:R,selectors:[["ng-select"]],contentQueries:function(g,k,le){if(1&g&&(r.Suo(le,We,5,r.Rgc),r.Suo(le,mt,5,r.Rgc),r.Suo(le,Ot,5,r.Rgc),r.Suo(le,Nt,5,r.Rgc),r.Suo(le,rn,5,r.Rgc),r.Suo(le,Bt,5,r.Rgc),r.Suo(le,hn,5,r.Rgc),r.Suo(le,jt,5,r.Rgc),r.Suo(le,gn,5,r.Rgc),r.Suo(le,T,5,r.Rgc),r.Suo(le,N,5,r.Rgc),r.Suo(le,q,5)),2&g){let Ce;r.iGM(Ce=r.CRH())&&(k.optionTemplate=Ce.first),r.iGM(Ce=r.CRH())&&(k.optgroupTemplate=Ce.first),r.iGM(Ce=r.CRH())&&(k.labelTemplate=Ce.first),r.iGM(Ce=r.CRH())&&(k.multiLabelTemplate=Ce.first),r.iGM(Ce=r.CRH())&&(k.headerTemplate=Ce.first),r.iGM(Ce=r.CRH())&&(k.footerTemplate=Ce.first),r.iGM(Ce=r.CRH())&&(k.notFoundTemplate=Ce.first),r.iGM(Ce=r.CRH())&&(k.typeToSearchTemplate=Ce.first),r.iGM(Ce=r.CRH())&&(k.loadingTextTemplate=Ce.first),r.iGM(Ce=r.CRH())&&(k.tagTemplate=Ce.first),r.iGM(Ce=r.CRH())&&(k.loadingSpinnerTemplate=Ce.first),r.iGM(Ce=r.CRH())&&(k.ngOptions=Ce)}},viewQuery:function(g,k){if(1&g&&(r.Gf(Ke,5),r.Gf(ln,7)),2&g){let le;r.iGM(le=r.CRH())&&(k.dropdownPanel=le.first),r.iGM(le=r.CRH())&&(k.searchInput=le.first)}},hostVars:20,hostBindings:function(g,k){1&g&&r.NdJ("keydown",function(Ce){return k.handleKeyDown(Ce)}),2&g&&r.ekj("ng-select-typeahead",k.typeahead)("ng-select-multiple",k.multiple)("ng-select-taggable",k.addTag)("ng-select-searchable",k.searchable)("ng-select-clearable",k.clearable)("ng-select-opened",k.isOpen)("ng-select",k.useDefaultClass)("ng-select-disabled",k.disabled)("ng-select-filtered",k.filtered)("ng-select-single",k.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[r._Bn([{provide:P.JU,useExisting:(0,r.Gpc)(()=>R),multi:!0},Oe]),r.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],[1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(g,k){if(1&g){const le=r.EpF();r.TgZ(0,"div",0),r.NdJ("mousedown",function(je){return k.handleMousedown(je)}),r.TgZ(1,"div",1)(2,"div",2),r._uU(3),r.qZA(),r.YNc(4,vi,2,2,"ng-container",3),r.YNc(5,ue,1,5,null,3),r.TgZ(6,"div",4)(7,"input",5,6),r.NdJ("input",function(){r.CHM(le);const je=r.MAs(8);return k.filter(je.value)})("compositionstart",function(){return k.onCompositionStart()})("compositionend",function(){r.CHM(le);const je=r.MAs(8);return k.onCompositionEnd(je.value)})("focus",function(je){return k.onInputFocus(je)})("blur",function(je){return k.onInputBlur(je)})("change",function(je){return je.stopPropagation()}),r.qZA()()(),r.YNc(9,Ae,4,1,"ng-container",3),r.YNc(10,ke,3,1,"span",7),r.TgZ(11,"span",8),r._UZ(12,"span",9),r.qZA()(),r.YNc(13,Ct,7,19,"ng-dropdown-panel",10)}2&g&&(r.ekj("ng-appearance-outline","outline"===k.appearance)("ng-has-value",k.hasValue),r.xp6(3),r.Oqu(k.placeholder),r.xp6(1),r.Q6J("ngIf",(!k.multiLabelTemplate||!k.multiple)&&k.selectedItems.length>0),r.xp6(1),r.Q6J("ngIf",k.multiple&&k.multiLabelTemplate&&k.selectedValues.length>0),r.xp6(1),r.uIk("aria-expanded",k.isOpen)("aria-owns",k.isOpen?k.dropdownId:null),r.xp6(1),r.Q6J("readOnly",!k.searchable||k.itemsList.maxItemsSelected)("disabled",k.disabled)("value",k.searchTerm?k.searchTerm:""),r.uIk("id",k.labelForId)("tabindex",k.tabIndex)("aria-activedescendant",k.isOpen?null==k.itemsList||null==k.itemsList.markedItem?null:k.itemsList.markedItem.htmlId:null)("aria-controls",k.isOpen?k.dropdownId:null),r.xp6(2),r.Q6J("ngIf",k.loading),r.xp6(1),r.Q6J("ngIf",k.showClear()),r.xp6(3),r.Q6J("ngIf",k.isOpen))},directives:[Ke,Ln.O5,Ln.sg,Te,Ln.tP,Ln.mk],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0}),R})();function Re(){return new Fe}class Fe{constructor(){this._selected=[]}get value(){return this._selected}select(I,g,k){if(I.selected=!0,(!I.children||!g&&k)&&this._selected.push(I),g)if(I.parent){const le=I.parent.children.length,Ce=I.parent.children.filter(je=>je.selected).length;I.parent.selected=le===Ce}else I.children&&(this._setChildrenSelectedState(I.children,!0),this._removeChildren(I),this._selected=k&&this._activeChildren(I)?[...this._selected.filter(le=>le.parent!==I),I]:[...this._selected,...I.children.filter(le=>!le.disabled)])}unselect(I,g){if(this._selected=this._selected.filter(k=>k!==I),I.selected=!1,g)if(I.parent&&I.parent.selected){const k=I.parent.children;this._removeParent(I.parent),this._removeChildren(I.parent),this._selected.push(...k.filter(le=>le!==I&&!le.disabled)),I.parent.selected=!1}else I.children&&(this._setChildrenSelectedState(I.children,!1),this._removeChildren(I))}clear(I){this._selected=I?this._selected.filter(g=>g.disabled):[]}_setChildrenSelectedState(I,g){for(const k of I)k.disabled||(k.selected=g)}_removeChildren(I){this._selected=[...this._selected.filter(g=>g.parent!==I),...I.children.filter(g=>g.parent===I&&g.disabled&&g.selected)]}_removeParent(I){this._selected=this._selected.filter(g=>g!==I)}_activeChildren(I){return I.children.every(g=>!g.disabled||g.selected)}}let nt=(()=>{class R{}return R.\u0275fac=function(g){return new(g||R)},R.\u0275mod=r.oAB({type:R}),R.\u0275inj=r.cJS({providers:[{provide:vt,useValue:Re}],imports:[[Ln.ez]]}),R})()},976:($e,X,M)=>{"use strict";M.d(X,{i9:()=>jt,z8:()=>gn});var r=M(3071);class P{constructor(N,A){this.open=N,this.close=A||N}isManual(){return"manual"===this.open||"manual"===this.close}}const _e={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function pe(T,N=_e){const A=(T||"").trim();if(0===A.length)return[];const ee=A.split(/\s+/).map(xe=>xe.split(":")).map(xe=>{const me=N[xe[0]]||xe;return new P(me[0],me[1])}),Ne=ee.filter(xe=>xe.isManual());if(Ne.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===Ne.length&&ee.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return ee}const Y=typeof window<"u"&&window||{};let Tt;function an(){if(typeof Y.document>"u")return"bs4";const T=Y.document.createElement("span");T.innerText="testing bs version",T.classList.add("d-none"),T.classList.add("pl-1"),Y.document.head.appendChild(T);const N=T.getBoundingClientRect(),A=Y.getComputedStyle(T).paddingLeft;return!N||N&&0!==N.top?(Y.document.head.removeChild(T),"bs3"):A&&parseFloat(A)?(Y.document.head.removeChild(T),"bs4"):(Y.document.head.removeChild(T),"bs5")}function _n(){return typeof Y>"u"||(typeof Y.__theme>"u"?(Tt||(Tt=an()),"bs3"===Tt):"bs3"===Y.__theme)}function nn(){return!_n()&&(Tt||(Tt=an()),"bs4"===Tt)}function V(){return{isBs3:_n(),isBs4:nn(),isBs5:!_n()&&!nn()&&(Tt||(Tt=an()),"bs5"===Tt)}}function be(){const T="Change";return function(A,ee){const Ne=` __${ee}Value`;Object.defineProperty(A,ee,{get(){return this[Ne]},set(xe){const me=this[Ne];this[Ne]=xe,me!==xe&&this[ee+T]&&this[ee+T].emit(xe)}})}}const tt={},ct=typeof console>"u"||!("warn"in console);function Rt(T){!(0,r.X6Q)()||ct||T in tt||(tt[T]=!0,console.warn(T))}var It=M(6895),In=M(5529),Yn=M(6787),Kt=M(3753),Xn=M(1086),En=M(352),Vn=(()=>{return(T=Vn||(Vn={})).top="top",T.bottom="bottom",T.left="left",T.right="right",T.auto="auto",T.end="right",T.start="left",T["top left"]="top left",T["top right"]="top right",T["right top"]="right top",T["right bottom"]="right bottom",T["bottom right"]="bottom right",T["bottom left"]="bottom left",T["left bottom"]="left bottom",T["left top"]="left top",T["top start"]="top left",T["top end"]="top right",T["end top"]="right top",T["end bottom"]="right bottom",T["bottom end"]="bottom right",T["bottom start"]="bottom left",T["start bottom"]="start bottom",T["start top"]="left top",Vn;var T})(),Rn=(()=>{return(T=Rn||(Rn={})).top="top",T.bottom="bottom",T.left="start",T.right="end",T.auto="auto",T.end="end",T.start="start",T["top left"]="top start",T["top right"]="top end",T["right top"]="end top",T["right bottom"]="end bottom",T["bottom right"]="bottom end",T["bottom left"]="bottom start",T["left bottom"]="start bottom",T["left top"]="start top",T["top start"]="top start",T["top end"]="top end",T["end top"]="end top",T["end bottom"]="end bottom",T["bottom end"]="bottom end",T["bottom start"]="bottom start",T["start bottom"]="start bottom",T["start top"]="start top",Rn;var T})();function yn(T,N){if(1!==T.nodeType)return[];const ee=T.ownerDocument.defaultView?.getComputedStyle(T,null);return N?ee&&ee[N]:ee}function Ln(T){if(!T)return document.documentElement;let ee,A=T?.offsetParent;for(;null===A&&T.nextElementSibling&&ee!==T.nextElementSibling;)ee=T.nextElementSibling,A=ee.offsetParent;const Ne=A&&A.nodeName;return Ne&&"BODY"!==Ne&&"HTML"!==Ne?A&&-1!==["TH","TD","TABLE"].indexOf(A.nodeName)&&"static"===yn(A,"position")?Ln(A):A:ee?ee.ownerDocument.documentElement:document.documentElement}function ii(T){return null!==T.parentNode?ii(T.parentNode):T}function Tn(T,N){if(!(T&&T.nodeType&&N&&N.nodeType))return document.documentElement;const A=T.compareDocumentPosition(N)&Node.DOCUMENT_POSITION_FOLLOWING,ee=A?T:N,Ne=A?N:T,xe=document.createRange();xe.setStart(ee,0),xe.setEnd(Ne,0);const me=xe.commonAncestorContainer;if(T!==me&&N!==me||ee.contains(Ne))return function Di(T){const{nodeName:N}=T;return"BODY"!==N&&("HTML"===N||Ln(T.firstElementChild)===T)}(me)?me:Ln(me);const Oe=ii(T);return Oe.host?Tn(Oe.host,N):Tn(T,ii(N).host)}function Zt(T){if(!T||!T.parentElement)return document.documentElement;let N=T.parentElement;for(;N?.parentElement&&"none"===yn(N,"transform");)N=N.parentElement;return N||document.documentElement}function hi(T,N){const A="x"===N?"Left":"Top",ee="Left"===A?"Right":"Bottom";return parseFloat(T[`border${A}Width`])+parseFloat(T[`border${ee}Width`])}function fi(T,N,A,ee){return Math.max(N[`offset${T}`],N[`scroll${T}`],A[`client${T}`],A[`offset${T}`],A[`scroll${T}`],0)}function Sn(T){const N=T.body,A=T.documentElement;return{height:fi("Height",N,A),width:fi("Width",N,A)}}function ln(T){return{...T,right:(T.left||0)+T.width,bottom:(T.top||0)+T.height}}function qt(T){return"number"==typeof T||"[object Number]"===Object.prototype.toString.call(T)}function ri(T){const N=T.getBoundingClientRect();if(!(N&&qt(N.top)&&qt(N.left)&&qt(N.bottom)&&qt(N.right)))return N;const A={left:N.left,top:N.top,width:N.right-N.left,height:N.bottom-N.top},ee="HTML"===T.nodeName?Sn(T.ownerDocument):void 0,Ne=ee?.width||T.clientWidth||qt(N.right)&&qt(A.left)&&N.right-A.left||0,xe=ee?.height||T.clientHeight||qt(N.bottom)&&qt(A.top)&&N.bottom-A.top||0;let me=T.offsetWidth-Ne,Oe=T.offsetHeight-xe;if(me||Oe){const He=yn(T);me-=hi(He,"x"),Oe-=hi(He,"y"),A.width-=me,A.height-=Oe}return ln(A)}function oi(T){return"HTML"===T.nodeName?T:T.parentNode||T.host}function vi(T){if(!T)return document.body;switch(T.nodeName){case"HTML":case"BODY":return T.ownerDocument.body;case"#document":return T.body}const{overflow:N,overflowX:A,overflowY:ee}=yn(T);return/(auto|scroll|overlay)/.test(String(N)+String(ee)+String(A))?T:vi(oi(T))}function li(T,N,A=!1){const ee="HTML"===N.nodeName,Ne=ri(T),xe=ri(N),Oe=(vi(T),yn(N)),He=parseFloat(Oe.borderTopWidth),rt=parseFloat(Oe.borderLeftWidth);A&&ee&&(xe.top=Math.max(xe.top??0,0),xe.left=Math.max(xe.left??0,0));const Ke=ln({top:(Ne.top??0)-(xe.top??0)-He,left:(Ne.left??0)-(xe.left??0)-rt,width:Ne.width,height:Ne.height});if(Ke.marginTop=0,Ke.marginLeft=0,ee){const q=parseFloat(Oe.marginTop),we=parseFloat(Oe.marginLeft);qt(Ke.top)&&(Ke.top-=He-q),qt(Ke.bottom)&&(Ke.bottom-=He-q),qt(Ke.left)&&(Ke.left-=rt-we),qt(Ke.right)&&(Ke.right-=rt-we),Ke.marginTop=q,Ke.marginLeft=we}return Ke}function Ue(T,N="top"){const A="top"===N?"scrollTop":"scrollLeft",ee=T.nodeName;if("BODY"===ee||"HTML"===ee){const Ne=T.ownerDocument.documentElement;return(T.ownerDocument.scrollingElement||Ne)[A]}return T[A]}function he(T){const N=T.nodeName;return"BODY"!==N&&"HTML"!==N&&("fixed"===yn(T,"position")||he(oi(T)))}function ze(T,N,A=0,ee,Ne=!1){let xe={top:0,left:0};const me=Ne?Zt(T):Tn(T,N);if("viewport"===ee)xe=function ue(T,N=!1){const A=T.ownerDocument.documentElement,ee=li(T,A),Ne=Math.max(A.clientWidth,window.innerWidth||0),xe=Math.max(A.clientHeight,window.innerHeight||0),me=N?0:Ue(A),Oe=N?0:Ue(A,"left");return ln({top:me-Number(ee?.top)+Number(ee?.marginTop),left:Oe-Number(ee?.left)+Number(ee?.marginLeft),width:Ne,height:xe})}(me,Ne);else{let Oe;"scrollParent"===ee?(Oe=vi(oi(N)),"BODY"===Oe.nodeName&&(Oe=T.ownerDocument.documentElement)):Oe="window"===ee?T.ownerDocument.documentElement:ee;const He=li(Oe,me,Ne);if(He&&"HTML"===Oe.nodeName&&!he(me)){const{height:rt,width:Ke}=Sn(T.ownerDocument);qt(xe.top)&&qt(He.top)&&qt(He.marginTop)&&(xe.top+=He.top-He.marginTop),qt(xe.top)&&(xe.bottom=Number(rt)+Number(He.top)),qt(xe.left)&&qt(He.left)&&qt(He.marginLeft)&&(xe.left+=He.left-He.marginLeft),qt(xe.top)&&(xe.right=Number(Ke)+Number(He.left))}else He&&(xe=He)}return qt(xe.left)&&(xe.left+=A),qt(xe.top)&&(xe.top+=A),qt(xe.right)&&(xe.right-=A),qt(xe.bottom)&&(xe.bottom-=A),xe}function Ae({width:T,height:N}){return T*N}function ke(T,N,A,ee,Ne=["top","bottom","right","left"],xe="viewport",me=0){if(-1===T.indexOf("auto"))return T;const Oe=ze(A,ee,me,xe),He={top:{width:Oe?.width??0,height:(N?.top??0)-(Oe?.top??0)},right:{width:(Oe?.right??0)-(N?.right??0),height:Oe?.height??0},bottom:{width:Oe?.width??0,height:(Oe?.bottom??0)-(N?.bottom??0)},left:{width:(N.left??0)-(Oe?.left??0),height:Oe?.height??0}},rt=Object.keys(He).map(et=>({position:et,...He[et],area:Ae(He[et])})).sort((et,vt)=>vt.area-et.area);let Ke=rt.filter(({width:et,height:vt})=>et>=A.clientWidth&&vt>=A.clientHeight);Ke=Ke.filter(({position:et})=>Ne.some(vt=>vt===et));const q=Ke.length>0?Ke[0].position:rt[0].position,we=T.split(" ")[1];return A.className=A.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${V().isBs5?Rn[q]:q}`),q+(we?`-${we}`:"")}const vn=(T,N=0)=>T?parseFloat(T):N;function Mn(T){const A=T.ownerDocument.defaultView?.getComputedStyle(T),ee=vn(A?.marginTop)+vn(A?.marginBottom),Ne=vn(A?.marginLeft)+vn(A?.marginRight);return{width:Number(T.offsetWidth)+Ne,height:Number(T.offsetHeight)+ee}}function bn(T,N,A){return li(N,A?Zt(T):Tn(T,N),A)}function At(T,N,A){const ee=A.split(" ")[0],Ne=Mn(T),xe={width:Ne.width,height:Ne.height},me=-1!==["right","left"].indexOf(ee),Oe=me?"top":"left",He=me?"left":"top",rt=me?"height":"width",Ke=me?"width":"height";return xe[Oe]=(N[Oe]??0)+N[rt]/2-Ne[rt]/2,xe[He]=ee===He?(N[He]??0)-Ne[Ke]:N[function pn(T){const N={left:"right",right:"left",bottom:"top",top:"bottom"};return T.replace(/left|right|bottom|top/g,A=>N[A])}(He)]??0,xe}function Qt(T,N){return!!T.modifiers[N]?.enabled}const Ft={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 ne(T,N){return!!V().isBs5&&Ft[N].includes(T)}function De(T,N,A){!T||!N||Object.keys(N).forEach(ee=>{let Ne="";-1!==["width","height","top","right","bottom","left"].indexOf(ee)&&function Ni(T){return""!==T&&!isNaN(parseFloat(T))&&isFinite(Number(T))}(N[ee])&&(Ne="px"),A?A.setStyle(T,ee,`${String(N[ee])}${Ne}`):T.style[ee]=String(N[ee])+Ne})}function Je(T){let N=T.offsets.target;const A=T.instance.target.querySelector(".arrow");if(!A)return T;const ee=-1!==["left","right"].indexOf(T.placement.split(" ")[0]),Ne=ee?"height":"width",xe=ee?"Top":"Left",me=xe.toLowerCase(),Oe=ee?"left":"top",He=ee?"bottom":"right",rt=Mn(A)[Ne],Ke=T.placement.split(" ")[1];(T.offsets.host[He]??0)-rt<(N[me]??0)&&(N[me]-=(N[me]??0)-((T.offsets.host[He]??0)-rt)),Number(T.offsets.host[me])+Number(rt)>(N[He]??0)&&(N[me]+=Number(T.offsets.host[me])+Number(rt)-Number(N[He])),N=ln(N);const q=yn(T.instance.target),we=parseFloat(q[`margin${xe}`])||0,et=parseFloat(q[`border${xe}Width`])||0;let vt;if(Ke){const Re=parseFloat(q.borderRadius)||0,Fe=Number(we+et+Re);vt=me===Ke?Number(T.offsets.host[me])+Fe:Number(T.offsets.host[me])+Number(T.offsets.host[Ne]-Fe)}else vt=Number(T.offsets.host[me])+Number(T.offsets.host[Ne]/2-rt/2);let fn=vt-(N[me]??0)-we-et;return fn=Math.max(Math.min(N[Ne]-(rt+5),fn),0),T.offsets.arrow={[me]:Math.round(fn),[Oe]:""},T.instance.arrow=A,T}function qe(T){if(T.offsets.target=ln(T.offsets.target),!Qt(T.options,"flip"))return T.offsets.target={...T.offsets.target,...At(T.instance.target,T.offsets.host,T.placement)},T;const N=ze(T.instance.target,T.instance.host,0,"viewport",!1);let A=T.placement.split(" ")[0],ee=T.placement.split(" ")[1]||"";const Oe=ke("auto",T.offsets.host,T.instance.target,T.instance.host,T.options.allowedPositions),He=[A,Oe];return He.forEach((rt,Ke)=>{if(A!==rt||He.length===Ke+1)return;A=T.placement.split(" ")[0];const q="left"===A&&Math.floor(T.offsets.target.right??0)>Math.floor(T.offsets.host.left??0)||"right"===A&&Math.floor(T.offsets.target.left??0)<Math.floor(T.offsets.host.right??0)||"top"===A&&Math.floor(T.offsets.target.bottom??0)>Math.floor(T.offsets.host.top??0)||"bottom"===A&&Math.floor(T.offsets.target.top??0)<Math.floor(T.offsets.host.bottom??0),we=Math.floor(T.offsets.target.left??0)<Math.floor(N.left??0),et=Math.floor(T.offsets.target.right??0)>Math.floor(N.right??0),vt=Math.floor(T.offsets.target.top??0)<Math.floor(N.top??0),fn=Math.floor(T.offsets.target.bottom??0)>Math.floor(N.bottom??0),Re="left"===A&&we||"right"===A&&et||"top"===A&&vt||"bottom"===A&&fn,Fe=-1!==["top","bottom"].indexOf(A),nt=Fe&&"left"===ee&&we||Fe&&"right"===ee&&et||!Fe&&"left"===ee&&vt||!Fe&&"right"===ee&&fn;(q||Re||nt)&&((q||Re)&&(A=He[Ke+1]),nt&&(ee=function ft(T){return"right"===T?"left":"left"===T?"right":T}(ee)),T.placement=A+(ee?` ${ee}`:""),T.offsets.target={...T.offsets.target,...At(T.instance.target,T.offsets.host,T.placement)})}),T}function Ct(T){if(!Qt(T.options,"preventOverflow"))return T;const N="transform",A=T.instance.target.style,{top:ee,left:Ne,[N]:xe}=A;A.top="",A.left="",A[N]="";const me=ze(T.instance.target,T.instance.host,0,T.options.modifiers.preventOverflow?.boundariesElement||"scrollParent",!1);A.top=ee,A.left=Ne,A[N]=xe;const He={primary(rt){let Ke=T.offsets.target[rt];return(T.offsets.target[rt]??0)<(me[rt]??0)&&(Ke=Math.max(T.offsets.target[rt]??0,me[rt]??0)),{[rt]:Ke}},secondary(rt){const Ke="right"===rt,q=Ke?"left":"top";let et=T.offsets.target[q];return(T.offsets.target[rt]??0)>(me[rt]??0)&&(et=Math.min(T.offsets.target[q]??0,(me[rt]??0)-T.offsets.target[Ke?"width":"height"])),{[q]:et}}};return["left","right","top","bottom"].forEach(rt=>{const Ke=-1!==["left","top","start"].indexOf(rt)?He.primary:He.secondary;T.offsets.target={...T.offsets.target,...Ke(rt)}}),T}function wt(T){const N=T.placement,A=N.split(" ")[0],ee=N.split(" ")[1];if(ee){const{host:Ne,target:xe}=T.offsets,me=-1!==["bottom","top"].indexOf(A),Oe=me?"left":"top",He=me?"width":"height",rt={start:{[Oe]:Ne[Oe]},end:{[Oe]:(Ne[Oe]??0)+Ne[He]-xe[He]}};T.offsets.target={...xe,[Oe]:Oe===ee?rt.start[Oe]:rt.end[Oe]}}return T}const bt=new class at{position(N,A){return this.offset(N,A)}offset(N,A){return bn(A,N)}positionElements(N,A,ee,Ne,xe){const me=[qe,wt,Ct,Je],He=function pt(T,N,A,ee){if(!T||!N)return;const Ne=bn(T,N);!A.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!A.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(A="auto");const xe=!!A.match(/auto/g);let me=A.match(/auto\s(left|right|top|bottom|start|end)/)?A.split(" ")[1]||"auto":A;const Oe=me.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);return Oe&&(me=Oe[1]+(Oe[2]?` ${Oe[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(me)&&(me="auto"),me=ke(me,Ne,T,N,ee?ee.allowedPositions:void 0),{options:ee||{modifiers:{}},instance:{target:T,host:N,arrow:void 0},offsets:{target:At(T,Ne,me),host:Ne,arrow:void 0},positionFixed:!1,placement:me,placementAuto:xe}}(A,N,Vn[ee],xe);if(He)return me.reduce((rt,Ke)=>Ke(rt),He)}};function Vt(T,N,A,ee,Ne,xe){const me=bt.positionElements(T,N,A,ee,Ne);if(!me)return;const Oe=function Xt(T){return{width:T.offsets.target.width,height:T.offsets.target.height,left:Math.floor(T.offsets.target.left??0),top:Math.round(T.offsets.target.top??0),bottom:Math.round(T.offsets.target.bottom??0),right:Math.floor(T.offsets.target.right??0)}}(me);De(N,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${Oe.left}px, ${Oe.top}px, 0px)`},xe),me.instance.arrow&&De(me.instance.arrow,me.offsets.arrow,xe),function Pe(T,N){const A=T.instance.target;let ee=A.className;const Ne=V().isBs5?Rn[T.placement]:T.placement;T.placementAuto&&(ee=ee.replace(/bs-popover-auto/g,`bs-popover-${Ne}`),ee=ee.replace(/ms-2|me-2|mb-2|mt-2/g,""),ee=ee.replace(/bs-tooltip-auto/g,`bs-tooltip-${Ne}`),ee=ee.replace(/\sauto/g,` ${Ne}`),-1!==ee.indexOf("popover")&&(ee=ee+" "+function Ee(T){return V().isBs5?ne(T,"end")?"ms-2":ne(T,"start")?"me-2":ne(T,"top")?"mb-2":ne(T,"bottom")?"mt-2":"":""}(Ne)),-1!==ee.indexOf("popover")&&-1===ee.indexOf("popover-auto")&&(ee+=" popover-auto"),-1!==ee.indexOf("tooltip")&&-1===ee.indexOf("tooltip-auto")&&(ee+=" tooltip-auto")),ee=ee.replace(/left|right|top|bottom|end|start/g,`${Ne.split(" ")[0]}`),N?N.setAttribute(A,"class",ee):A.className=ee}(me,xe)}let ae=(()=>{class T{constructor(A,ee,Ne){this.update$$=new In.xQ,this.positionElements=new Map,this.isDisabled=!1,(0,It.NF)(Ne)&&A.runOutsideAngular(()=>{this.triggerEvent$=(0,Yn.T)((0,Kt.R)(window,"scroll",{passive:!0}),(0,Kt.R)(window,"resize",{passive:!0}),(0,Xn.of)(0,En.Z),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(xe=>{Vt(Z(xe.target),Z(xe.element),xe.attachment,xe.appendToBody,this.options,ee.createRenderer(null,null))})})})}position(A){this.addPositionElement(A)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(A){this.positionElements.set(Z(A.element),A)}calcPosition(){this.update$$.next(null)}deletePositionElement(A){this.positionElements.delete(Z(A))}setOptions(A){this.options=A}}return T.\u0275fac=function(A){return new(A||T)(r.LFG(r.R0b),r.LFG(r.FYo),r.LFG(r.Lbi))},T.\u0275prov=r.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})();function Z(T){return"string"==typeof T?document.querySelector(T):T instanceof r.SBq?T.nativeElement:T??null}var G=M(655);class Te{constructor(N,A,ee){this.nodes=N,this.viewRef=A,this.componentRef=ee}}class We{constructor(N,A,ee,Ne,xe,me,Oe,He){this._viewContainerRef=N,this._renderer=A,this._elementRef=ee,this._injector=Ne,this._componentFactoryResolver=xe,this._ngZone=me,this._applicationRef=Oe,this._posService=He,this.onBeforeShow=new r.vpe,this.onShown=new r.vpe,this.onBeforeHide=new r.vpe,this.onHidden=new r.vpe,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(N){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(N),this}to(N){return this.container=N||this.container,this}position(N){return N?(this.attachment=N.attachment||this.attachment,this._elementRef=N.target||this._elementRef,this):this}provide(N){return this._providers.push(N),this}show(N={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(N.content,N.context,N.initialState);const A=r.zs3.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(A,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,N),this.container instanceof r.SBq&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&typeof document<"u"){const ee=document.querySelector(this.container)||document.querySelector(this.containerDefaultSelector);if(!ee)return;ee.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(N.id?{id:N.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(N){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const A=this._componentRef.location.nativeElement;return A.parentNode?.removeChild(A),this._contentRef?.componentRef?.destroy(),this._viewContainerRef&&this._contentRef?.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef?.viewRef?.destroy(),this._contentRef=void 0,this._componentRef=void 0,this._removeGlobalListener(),this.onHidden.emit(N?{id:N}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(N){this.triggers=N.triggers||this.triggers,this._listenOpts.outsideClick=N.outsideClick,this._listenOpts.outsideEsc=N.outsideEsc,N.target=N.target||this._elementRef?.nativeElement;const A=this._listenOpts.hide=()=>N.hide?N.hide():void this.hide(),ee=this._listenOpts.show=xe=>{N.show?N.show(xe):this.show(xe),xe()};return this._renderer&&(this._unregisterListenersFn=function J(T,N){const A=pe(N.triggers),ee=N.target;if(1===A.length&&A[0].isManual())return Function.prototype;const Ne=[],xe=[],me=()=>{xe.forEach(Oe=>Ne.push(Oe())),xe.length=0};return A.forEach(Oe=>{const He=Oe.open===Oe.close,rt=He?N.toggle:N.show;if(!He&&Oe.close&&N.hide){const Ke=T.listen(ee,Oe.close,N.hide);xe.push(()=>Ke)}rt&&Ne.push(T.listen(ee,Oe.open,()=>rt(me)))}),()=>{Ne.forEach(Oe=>Oe())}}(this._renderer,{target:N.target,triggers:N.triggers,show:ee,hide:A,toggle:xe=>{this.isShown?A():ee(xe)}})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline(N,A){return N&&A&&(this._inlineViewRef=N.createEmbeddedView(A)),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const N=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&(this._globalListener=function ce(T,N){return N.outsideClick?T.listen("document","click",A=>{N.target&&N.target.contains(A.target)||N.targets&&N.targets.some(ee=>ee.contains(A.target))||N.hide&&N.hide()}):Function.prototype}(this._renderer,{targets:[N,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}this._listenOpts.outsideEsc&&this._renderer&&this._elementRef&&(this._globalListener=function W(T,N){return N.outsideEsc?T.listen("document","keyup.esc",A=>{N.target&&N.target.contains(A.target)||N.targets&&N.targets.some(ee=>ee.contains(A.target))||N.hide&&N.hide()}):Function.prototype}(this._renderer,{targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){this._zoneSubscription||!this.attachment||(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef?.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{!this._componentRef||this._posService.calcPosition()}))}_unsubscribePositioning(){!this._zoneSubscription||(this._zoneSubscription.unsubscribe(),this._zoneSubscription=void 0)}_getContentRef(N,A,ee){if(!N)return new Te([]);if(N instanceof r.Rgc){if(this._viewContainerRef){const me=this._viewContainerRef.createEmbeddedView(N,A);return me.markForCheck(),new Te([me.rootNodes],me)}const xe=N.createEmbeddedView({});return this._applicationRef.attachView(xe),new Te([xe.rootNodes],xe)}if("function"==typeof N){const xe=this._componentFactoryResolver.resolveComponentFactory(N),me=r.zs3.create({providers:this._providers,parent:this._injector}),Oe=xe.create(me);return Object.assign(Oe.instance,ee),this._applicationRef.attachView(Oe.hostView),new Te([[Oe.location.nativeElement]],Oe.hostView,Oe)}const Ne=this._renderer?[this._renderer.createText(`${N}`)]:[];return new Te([Ne])}}let mt=(()=>{class T{constructor(A,ee,Ne,xe,me){this._componentFactoryResolver=A,this._ngZone=ee,this._injector=Ne,this._posService=xe,this._applicationRef=me}createLoader(A,ee,Ne){return new We(ee,Ne,A,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService)}}return T.\u0275fac=function(A){return new(A||T)(r.LFG(r._Vd),r.LFG(r.R0b),r.LFG(r.zs3),r.LFG(ae),r.LFG(r.z2F))},T.\u0275prov=r.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})();var Ot=M(7739);const Nt=["*"];let rn=(()=>{class T{constructor(){this.adaptivePosition=!0,this.placement="top",this.triggers="hover focus",this.delay=0}}return T.\u0275fac=function(A){return new(A||T)},T.\u0275prov=r.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})(),Bt=(()=>{class T{constructor(A){Object.assign(this,A)}get _bsVersions(){return V()}ngAfterViewInit(){this.classMap={in:!1,fade:!1},this.placement&&(this._bsVersions.isBs5&&(this.placement=Rn[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)}}return T.\u0275fac=function(A){return new(A||T)(r.Y36(rn))},T.\u0275cmp=r.Xpm({type:T,selectors:[["bs-tooltip-container"]],hostAttrs:["role","tooltip"],hostVars:7,hostBindings:function(A,ee){2&A&&(r.uIk("id",ee.id),r.Tol("tooltip in tooltip-"+ee.placement+" bs-tooltip-"+ee.placement+" "+ee.placement+" "+ee.containerClass),r.ekj("show",!ee._bsVersions.isBs3)("bs3",ee._bsVersions.isBs3))},ngContentSelectors:Nt,decls:3,vars:0,consts:[[1,"tooltip-arrow","arrow"],[1,"tooltip-inner"]],template:function(A,ee){1&A&&(r.F$t(),r._UZ(0,"div",0),r.TgZ(1,"div",1),r.Hsn(2),r.qZA())},styles:[".tooltip[_nghost-%COMP%]{display:block;pointer-events:none}.bs3.tooltip.top[_nghost-%COMP%] > .arrow[_ngcontent-%COMP%]{margin-left:-2px}.bs3.tooltip.bottom[_nghost-%COMP%]{margin-top:0}.bs3.bs-tooltip-left[_nghost-%COMP%], .bs3.bs-tooltip-right[_nghost-%COMP%]{margin:0}.bs3.bs-tooltip-right[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .bs3.bs-tooltip-left[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{margin:.3rem 0}"],changeDetection:0}),T})(),hn=0,jt=(()=>{class T{constructor(A,ee,Ne,xe,me,Oe){this._elementRef=xe,this._renderer=me,this._positionService=Oe,this.tooltipId=hn++,this.adaptivePosition=!0,this.tooltipChange=new r.vpe,this.placement="top",this.triggers="hover focus",this.containerClass="",this.isDisabled=!1,this.delay=0,this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new r.vpe,this._tooltip=ee.createLoader(this._elementRef,A,this._renderer).provide({provide:rn,useValue:Ne}),Object.assign(this,Ne),this.onShown=this._tooltip.onShown,this.onHidden=this._tooltip.onHidden}get isOpen(){return this._tooltip.isShown}set isOpen(A){A?this.show():this.hide()}set htmlContent(A){Rt("tooltipHtml was deprecated, please use `tooltip` instead"),this.tooltip=A}set _placement(A){Rt("tooltipPlacement was deprecated, please use `placement` instead"),this.placement=A}set _isOpen(A){Rt("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen=A}get _isOpen(){return Rt("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen}set _enable(A){Rt("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled=!A}get _enable(){return Rt("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled}set _appendToBody(A){Rt('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container=A?"body":this.container}get _appendToBody(){return Rt('tooltipAppendToBody was deprecated, please use `container="body"` instead'),"body"===this.container}set _popupClass(A){Rt("tooltipClass deprecated")}set _tooltipContext(A){Rt("tooltipContext deprecated")}set _tooltipPopupDelay(A){Rt("tooltipPopupDelay is deprecated, use `delay` instead"),this.delay=A}get _tooltipTrigger(){return Rt("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers}set _tooltipTrigger(A){Rt("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers=(A||"").toString()}ngOnInit(){this._tooltip.listen({triggers:this.triggers,show:()=>this.show()}),this.tooltipChange.subscribe(A=>{A||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 A=()=>{this._delayTimeoutId&&(this._delayTimeoutId=void 0),this._tooltip.attach(Bt).to(this.container).position({attachment:this.placement}).show({content:this.tooltip,placement:this.placement,containerClass:this.containerClass,id:`tooltip-${this.tooltipId}`})},ee=()=>{this._tooltipCancelShowFn&&this._tooltipCancelShowFn()};this.delay?(this._delaySubscription&&this._delaySubscription.unsubscribe(),this._delaySubscription=(0,Ot.H)(this.delay).subscribe(()=>{A(),ee()}),this.triggers&&pe(this.triggers).forEach(Ne=>{!Ne.close||(this._tooltipCancelShowFn=this._renderer.listen(this._elementRef.nativeElement,Ne.close,()=>{this._delaySubscription?.unsubscribe(),ee()}))})):A()}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()}}return T.\u0275fac=function(A){return new(A||T)(r.Y36(r.s_b),r.Y36(mt),r.Y36(rn),r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(ae))},T.\u0275dir=r.lG2({type:T,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:["tooltipHtml","htmlContent"],_placement:["tooltipPlacement","_placement"],_isOpen:["tooltipIsOpen","_isOpen"],_enable:["tooltipEnable","_enable"],_appendToBody:["tooltipAppendToBody","_appendToBody"],tooltipAnimation:"tooltipAnimation",_popupClass:["tooltipClass","_popupClass"],_tooltipContext:["tooltipContext","_tooltipContext"],_tooltipPopupDelay:["tooltipPopupDelay","_tooltipPopupDelay"],tooltipFadeDuration:"tooltipFadeDuration",_tooltipTrigger:["tooltipTrigger","_tooltipTrigger"]},outputs:{tooltipChange:"tooltipChange",onShown:"onShown",onHidden:"onHidden",tooltipStateChanged:"tooltipStateChanged"},exportAs:["bs-tooltip"]}),(0,G.gn)([be(),(0,G.w6)("design:type",Object)],T.prototype,"tooltip",void 0),T})(),gn=(()=>{class T{static forRoot(){return{ngModule:T,providers:[mt,ae]}}}return T.\u0275fac=function(A){return new(A||T)},T.\u0275mod=r.oAB({type:T}),T.\u0275inj=r.cJS({imports:[[It.ez]]}),T})()}}]);
Back to Directory
File Manager