@drayman/elements 1.34.0 → 1.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (()=>{var tS={764:function(Wt){Wt.exports=function(){"use strict";var _t="millisecond",We="second",wt="minute",Ee="hour",Dt="day",Ft="week",Lt="month",ee="quarter",he="year",dt="date",_e=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,V=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Ve={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},me=function(re,J,B){var O=String(re);return!O||O.length>=J?re:""+Array(J+1-O.length).join(B)+re},we={s:me,z:function(re){var J=-re.utcOffset(),B=Math.abs(J),O=Math.floor(B/60),X=B%60;return(J<=0?"+":"-")+me(O,2,"0")+":"+me(X,2,"0")},m:function re(J,B){if(J.date()<B.date())return-re(B,J);var O=12*(B.year()-J.year())+(B.month()-J.month()),X=J.clone().add(O,Lt),ce=B-X<0,P=J.clone().add(O+(ce?-1:1),Lt);return+(-(O+(B-X)/(ce?X-P:P-X))||0)},a:function(re){return re<0?Math.ceil(re)||0:Math.floor(re)},p:function(re){return{M:Lt,y:he,w:Ft,d:Dt,D:dt,h:Ee,m:wt,s:We,ms:_t,Q:ee}[re]||String(re||"").toLowerCase().replace(/s$/,"")},u:function(re){return void 0===re}},Ze="en",Ne={};Ne[Ze]=Ve;var Ct=function(re){return re instanceof $t},Yt=function(re,J,B){var O;if(!re)return Ze;if("string"==typeof re)Ne[re]&&(O=re),J&&(Ne[re]=J,O=re);else{var X=re.name;Ne[X]=re,O=X}return!B&&O&&(Ze=O),O||!B&&Ze},rt=function(re,J){if(Ct(re))return re.clone();var B="object"==typeof J?J:{};return B.date=re,B.args=arguments,new $t(B)},Y=we;Y.l=Yt,Y.i=Ct,Y.w=function(re,J){return rt(re,{locale:J.$L,utc:J.$u,x:J.$x,$offset:J.$offset})};var $t=function(){function re(B){this.$L=Yt(B.locale,null,!0),this.parse(B)}var J=re.prototype;return J.parse=function(B){this.$d=function(O){var X=O.date,ce=O.utc;if(null===X)return new Date(NaN);if(Y.u(X))return new Date;if(X instanceof Date)return new Date(X);if("string"==typeof X&&!/Z$/i.test(X)){var P=X.match(_e);if(P){var Je=P[2]-1||0,at=(P[7]||"0").substring(0,3);return ce?new Date(Date.UTC(P[1],Je,P[3]||1,P[4]||0,P[5]||0,P[6]||0,at)):new Date(P[1],Je,P[3]||1,P[4]||0,P[5]||0,P[6]||0,at)}}return new Date(X)}(B),this.$x=B.x||{},this.init()},J.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},J.$utils=function(){return Y},J.isValid=function(){return"Invalid Date"!==this.$d.toString()},J.isSame=function(B,O){var X=rt(B);return this.startOf(O)<=X&&X<=this.endOf(O)},J.isAfter=function(B,O){return rt(B)<this.startOf(O)},J.isBefore=function(B,O){return this.endOf(O)<rt(B)},J.$g=function(B,O,X){return Y.u(B)?this[O]:this.set(X,B)},J.unix=function(){return Math.floor(this.valueOf()/1e3)},J.valueOf=function(){return this.$d.getTime()},J.startOf=function(B,O){var X=this,ce=!!Y.u(O)||O,P=Y.p(B),Je=function(Be,xt){var lt=Y.w(X.$u?Date.UTC(X.$y,xt,Be):new Date(X.$y,xt,Be),X);return ce?lt:lt.endOf(Dt)},at=function(Be,xt){return Y.w(X.toDate()[Be].apply(X.toDate("s"),(ce?[0,0,0,0]:[23,59,59,999]).slice(xt)),X)},it=this.$W,Et=this.$M,tn=this.$D,nn="set"+(this.$u?"UTC":"");switch(P){case he:return ce?Je(1,0):Je(31,11);case Lt:return ce?Je(1,Et):Je(0,Et+1);case Ft:var Yn=this.$locale().weekStart||0,qn=(it<Yn?it+7:it)-Yn;return Je(ce?tn-qn:tn+(6-qn),Et);case Dt:case dt:return at(nn+"Hours",0);case Ee:return at(nn+"Minutes",1);case wt:return at(nn+"Seconds",2);case We:return at(nn+"Milliseconds",3);default:return this.clone()}},J.endOf=function(B){return this.startOf(B,!1)},J.$set=function(B,O){var X,ce=Y.p(B),P="set"+(this.$u?"UTC":""),Je=(X={},X[Dt]=P+"Date",X[dt]=P+"Date",X[Lt]=P+"Month",X[he]=P+"FullYear",X[Ee]=P+"Hours",X[wt]=P+"Minutes",X[We]=P+"Seconds",X[_t]=P+"Milliseconds",X)[ce],at=ce===Dt?this.$D+(O-this.$W):O;if(ce===Lt||ce===he){var it=this.clone().set(dt,1);it.$d[Je](at),it.init(),this.$d=it.set(dt,Math.min(this.$D,it.daysInMonth())).$d}else Je&&this.$d[Je](at);return this.init(),this},J.set=function(B,O){return this.clone().$set(B,O)},J.get=function(B){return this[Y.p(B)]()},J.add=function(B,O){var X,ce=this;B=Number(B);var P=Y.p(O),Je=function(Et){var tn=rt(ce);return Y.w(tn.date(tn.date()+Math.round(Et*B)),ce)};if(P===Lt)return this.set(Lt,this.$M+B);if(P===he)return this.set(he,this.$y+B);if(P===Dt)return Je(1);if(P===Ft)return Je(7);var at=(X={},X[wt]=6e4,X[Ee]=36e5,X[We]=1e3,X)[P]||1,it=this.$d.getTime()+B*at;return Y.w(it,this)},J.subtract=function(B,O){return this.add(-1*B,O)},J.format=function(B){var O=this;if(!this.isValid())return"Invalid Date";var X=B||"YYYY-MM-DDTHH:mm:ssZ",ce=Y.z(this),P=this.$locale(),Je=this.$H,at=this.$m,it=this.$M,Et=P.weekdays,tn=P.months,nn=function(xt,lt,Kn,di){return xt&&(xt[lt]||xt(O,X))||Kn[lt].substr(0,di)},Yn=function(xt){return Y.s(Je%12||12,xt,"0")},qn=P.meridiem||function(xt,lt,Kn){var di=xt<12?"AM":"PM";return Kn?di.toLowerCase():di},Be={YY:String(this.$y).slice(-2),YYYY:this.$y,M:it+1,MM:Y.s(it+1,2,"0"),MMM:nn(P.monthsShort,it,tn,3),MMMM:nn(tn,it),D:this.$D,DD:Y.s(this.$D,2,"0"),d:String(this.$W),dd:nn(P.weekdaysMin,this.$W,Et,2),ddd:nn(P.weekdaysShort,this.$W,Et,3),dddd:Et[this.$W],H:String(Je),HH:Y.s(Je,2,"0"),h:Yn(1),hh:Yn(2),a:qn(Je,at,!0),A:qn(Je,at,!1),m:String(at),mm:Y.s(at,2,"0"),s:String(this.$s),ss:Y.s(this.$s,2,"0"),SSS:Y.s(this.$ms,3,"0"),Z:ce};return X.replace(V,function(xt,lt){return lt||Be[xt]||ce.replace(":","")})},J.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},J.diff=function(B,O,X){var ce,P=Y.p(O),Je=rt(B),at=6e4*(Je.utcOffset()-this.utcOffset()),it=this-Je,Et=Y.m(this,Je);return Et=(ce={},ce[he]=Et/12,ce[Lt]=Et,ce[ee]=Et/3,ce[Ft]=(it-at)/6048e5,ce[Dt]=(it-at)/864e5,ce[Ee]=it/36e5,ce[wt]=it/6e4,ce[We]=it/1e3,ce)[P]||it,X?Et:Y.a(Et)},J.daysInMonth=function(){return this.endOf(Lt).$D},J.$locale=function(){return Ne[this.$L]},J.locale=function(B,O){if(!B)return this.$L;var X=this.clone(),ce=Yt(B,O,!0);return ce&&(X.$L=ce),X},J.clone=function(){return Y.w(this.$d,this)},J.toDate=function(){return new Date(this.valueOf())},J.toJSON=function(){return this.isValid()?this.toISOString():null},J.toISOString=function(){return this.$d.toISOString()},J.toString=function(){return this.$d.toUTCString()},re}(),zn=$t.prototype;return rt.prototype=zn,[["$ms",_t],["$s",We],["$m",wt],["$H",Ee],["$W",Dt],["$M",Lt],["$y",he],["$D",dt]].forEach(function(re){zn[re[1]]=function(J){return this.$g(J,re[0],re[1])}}),rt.extend=function(re,J){return re(J,$t,rt),rt},rt.locale=Yt,rt.isDayjs=Ct,rt.unix=function(re){return rt(1e3*re)},rt.en=Ne[Ze],rt.Ls=Ne,rt.p={},rt}()},274:function(Wt){Wt.exports=function(){"use strict";var _t,We={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Ee=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,Dt=/\d\d/,Ft=/\d\d?/,Lt=/\d*[^\s\d-:/()]+/,ee=function(me){return function(we){this[me]=+we}},he=[/[+-]\d\d:?\d\d/,function(me){var we,Ze;(this.zone||(this.zone={})).offset=0==(Ze=60*(we=me.match(/([+-]|\d\d)/g))[1]+ +we[2])?0:"+"===we[0]?-Ze:Ze}],dt=function(me){var we=_t[me];return we&&(we.indexOf?we:we.s.concat(we.f))},_e=function(me,we){var Ze,Ne=_t.meridiem;if(Ne){for(var Ct=1;Ct<=24;Ct+=1)if(me.indexOf(Ne(Ct,0,we))>-1){Ze=Ct>12;break}}else Ze=me===(we?"pm":"PM");return Ze},V={A:[Lt,function(me){this.afternoon=_e(me,!1)}],a:[Lt,function(me){this.afternoon=_e(me,!0)}],S:[/\d/,function(me){this.milliseconds=100*+me}],SS:[Dt,function(me){this.milliseconds=10*+me}],SSS:[/\d{3}/,function(me){this.milliseconds=+me}],s:[Ft,ee("seconds")],ss:[Ft,ee("seconds")],m:[Ft,ee("minutes")],mm:[Ft,ee("minutes")],H:[Ft,ee("hours")],h:[Ft,ee("hours")],HH:[Ft,ee("hours")],hh:[Ft,ee("hours")],D:[Ft,ee("day")],DD:[Dt,ee("day")],Do:[Lt,function(me){var we=_t.ordinal,Ze=me.match(/\d+/);if(this.day=Ze[0],we)for(var Ne=1;Ne<=31;Ne+=1)we(Ne).replace(/\[|\]/g,"")===me&&(this.day=Ne)}],M:[Ft,ee("month")],MM:[Dt,ee("month")],MMM:[Lt,function(me){var we=dt("months"),Ze=(dt("monthsShort")||we.map(function(Ne){return Ne.substr(0,3)})).indexOf(me)+1;if(Ze<1)throw new Error;this.month=Ze%12||Ze}],MMMM:[Lt,function(me){var we=dt("months").indexOf(me)+1;if(we<1)throw new Error;this.month=we%12||we}],Y:[/[+-]?\d+/,ee("year")],YY:[Dt,function(me){this.year=(me=+me)+(me>68?1900:2e3)}],YYYY:[/\d{4}/,ee("year")],Z:he,ZZ:he},Ve=function(me,we,Ze){try{var Ne=function(Et){for(var tn=(Et=function(me,we){return me.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Ze,Ne,Ct){var Yt=Ct&&Ct.toUpperCase();return Ne||we[Ct]||We[Ct]||we[Yt].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(rt,Y,$t){return Y||$t.slice(1)})})}(Et,_t&&_t.formats)).match(Ee),nn=tn.length,Yn=0;Yn<nn;Yn+=1){var qn=tn[Yn],Be=V[qn],lt=Be&&Be[1];tn[Yn]=lt?{regex:Be&&Be[0],parser:lt}:qn.replace(/^\[|\]$/g,"")}return function(Kn){for(var di={},mn=0,hi=0;mn<nn;mn+=1){var fr=tn[mn];if("string"==typeof fr)hi+=fr.length;else{var Bs=fr.regex,kn=fr.parser,Xn=Kn.substr(hi),pr=Bs.exec(Xn)[0];kn.call(di,pr),Kn=Kn.replace(pr,"")}}return function(Qn){var m=Qn.afternoon;if(void 0!==m){var C=Qn.hours;m?C<12&&(Qn.hours+=12):12===C&&(Qn.hours=0),delete Qn.afternoon}}(di),di}}(we)(me),Ct=Ne.year,Yt=Ne.month,rt=Ne.day,Y=Ne.hours,$t=Ne.minutes,zn=Ne.seconds,re=Ne.milliseconds,J=Ne.zone,B=new Date,O=rt||(Ct||Yt?1:B.getDate()),X=Ct||B.getFullYear(),ce=0;Ct&&!Yt||(ce=Yt>0?Yt-1:B.getMonth());var P=Y||0,Je=$t||0,at=zn||0,it=re||0;return J?new Date(Date.UTC(X,ce,O,P,Je,at,it+60*J.offset*1e3)):Ze?new Date(Date.UTC(X,ce,O,P,Je,at,it)):new Date(X,ce,O,P,Je,at,it)}catch(Et){return new Date("")}};return function(me,we,Ze){Ze.p.customParseFormat=!0;var Ne=we.prototype,Ct=Ne.parse;Ne.parse=function(Yt){var rt=Yt.date,Y=Yt.utc,$t=Yt.args;this.$u=Y;var zn=$t[1];if("string"==typeof zn){var re=!0===$t[2],J=!0===$t[3],B=re||J,O=$t[2];J&&(O=$t[2]),re||(_t=O?Ze.Ls[O]:this.$locale()),this.$d=Ve(rt,zn,Y),this.init(),O&&!0!==O&&(this.$L=this.locale(O).$L),B&&rt!==this.format(zn)&&(this.$d=new Date("")),_t=void 0}else if(zn instanceof Array)for(var X=zn.length,ce=1;ce<=X;ce+=1){$t[1]=zn[ce-1];var P=Ze.apply(this,$t);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}ce===X&&(this.$d=new Date(""))}else Ct.call(this,Yt)}}}()},268:function(Wt){Wt.exports=function(){"use strict";return function(_t,We,wt){var Ee=We.prototype;wt.utc=function(_e){return new We({date:_e,utc:!0,args:arguments})},Ee.utc=function(_e){var V=wt(this.toDate(),{locale:this.$L,utc:!0});return _e?V.add(this.utcOffset(),"minute"):V},Ee.local=function(){return wt(this.toDate(),{locale:this.$L,utc:!1})};var Dt=Ee.parse;Ee.parse=function(_e){_e.utc&&(this.$u=!0),this.$utils().u(_e.$offset)||(this.$offset=_e.$offset),Dt.call(this,_e)};var Ft=Ee.init;Ee.init=function(){if(this.$u){var _e=this.$d;this.$y=_e.getUTCFullYear(),this.$M=_e.getUTCMonth(),this.$D=_e.getUTCDate(),this.$W=_e.getUTCDay(),this.$H=_e.getUTCHours(),this.$m=_e.getUTCMinutes(),this.$s=_e.getUTCSeconds(),this.$ms=_e.getUTCMilliseconds()}else Ft.call(this)};var Lt=Ee.utcOffset;Ee.utcOffset=function(_e,V){var Ve=this.$utils().u;if(Ve(_e))return this.$u?0:Ve(this.$offset)?Lt.call(this):this.$offset;var me=Math.abs(_e)<=16?60*_e:_e,we=this;if(V)return we.$offset=me,we.$u=0===_e,we;if(0!==_e){var Ze=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(we=this.local().add(me+Ze,"minute")).$offset=me,we.$x.$localOffset=Ze}else we=this.utc();return we};var ee=Ee.format;Ee.format=function(_e){return ee.call(this,_e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},Ee.valueOf=function(){var _e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*_e},Ee.isUTC=function(){return!!this.$u},Ee.toISOString=function(){return this.toDate().toISOString()},Ee.toString=function(){return this.toDate().toUTCString()};var he=Ee.toDate;Ee.toDate=function(_e){return"s"===_e&&this.$offset?wt(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():he.call(this)};var dt=Ee.diff;Ee.diff=function(_e,V,Ve){if(this.$u===_e.$u)return dt.call(this,_e,V,Ve);var me=this.local(),we=wt(_e).local();return dt.call(me,we,V,Ve)}}}()},23:(Wt,_t,We)=>{var wt;!function(Ee){var Dt=/^\s+/,Ft=/\s+$/,Lt=0,ee=Ee.round,he=Ee.min,dt=Ee.max,_e=Ee.random;function V(m,C){if(C=C||{},(m=m||"")instanceof V)return m;if(!(this instanceof V))return new V(m,C);var y=function Ve(m){var C={r:0,g:0,b:0},y=1,F=null,$=null,q=null,et=!1,St=!1;return"string"==typeof m&&(m=function pr(m){m=m.replace(Dt,"").replace(Ft,"").toLowerCase();var y,C=!1;if(tn[m])m=tn[m],C=!0;else if("transparent"==m)return{r:0,g:0,b:0,a:0,format:"name"};return(y=kn.rgb.exec(m))?{r:y[1],g:y[2],b:y[3]}:(y=kn.rgba.exec(m))?{r:y[1],g:y[2],b:y[3],a:y[4]}:(y=kn.hsl.exec(m))?{h:y[1],s:y[2],l:y[3]}:(y=kn.hsla.exec(m))?{h:y[1],s:y[2],l:y[3],a:y[4]}:(y=kn.hsv.exec(m))?{h:y[1],s:y[2],v:y[3]}:(y=kn.hsva.exec(m))?{h:y[1],s:y[2],v:y[3],a:y[4]}:(y=kn.hex8.exec(m))?{r:lt(y[1]),g:lt(y[2]),b:lt(y[3]),a:Bs(y[4]),format:C?"name":"hex8"}:(y=kn.hex6.exec(m))?{r:lt(y[1]),g:lt(y[2]),b:lt(y[3]),format:C?"name":"hex"}:(y=kn.hex4.exec(m))?{r:lt(y[1]+""+y[1]),g:lt(y[2]+""+y[2]),b:lt(y[3]+""+y[3]),a:Bs(y[4]+""+y[4]),format:C?"name":"hex8"}:!!(y=kn.hex3.exec(m))&&{r:lt(y[1]+""+y[1]),g:lt(y[2]+""+y[2]),b:lt(y[3]+""+y[3]),format:C?"name":"hex"}}(m)),"object"==typeof m&&(Xn(m.r)&&Xn(m.g)&&Xn(m.b)?(C=function me(m,C,y){return{r:255*Be(m,255),g:255*Be(C,255),b:255*Be(y,255)}}(m.r,m.g,m.b),et=!0,St="%"===String(m.r).substr(-1)?"prgb":"rgb"):Xn(m.h)&&Xn(m.s)&&Xn(m.v)?(F=hi(m.s),$=hi(m.v),C=function Ct(m,C,y){m=6*Be(m,360),C=Be(C,100),y=Be(y,100);var F=Ee.floor(m),$=m-F,q=y*(1-C),et=y*(1-$*C),St=y*(1-(1-$)*C),Mt=F%6;return{r:255*[y,et,q,q,St,y][Mt],g:255*[St,y,y,et,q,q][Mt],b:255*[q,q,St,y,y,et][Mt]}}(m.h,F,$),et=!0,St="hsv"):Xn(m.h)&&Xn(m.s)&&Xn(m.l)&&(F=hi(m.s),q=hi(m.l),C=function Ze(m,C,y){var F,$,q;function et(xn,qt,Gn){return Gn<0&&(Gn+=1),Gn>1&&(Gn-=1),Gn<.16666666666666666?xn+6*(qt-xn)*Gn:Gn<.5?qt:Gn<.6666666666666666?xn+(qt-xn)*(.6666666666666666-Gn)*6:xn}if(m=Be(m,360),C=Be(C,100),y=Be(y,100),0===C)F=$=q=y;else{var St=y<.5?y*(1+C):y+C-y*C,Mt=2*y-St;F=et(Mt,St,m+.3333333333333333),$=et(Mt,St,m),q=et(Mt,St,m-.3333333333333333)}return{r:255*F,g:255*$,b:255*q}}(m.h,F,q),et=!0,St="hsl"),m.hasOwnProperty("a")&&(y=m.a)),y=qn(y),{ok:et,format:m.format||St,r:he(255,dt(C.r,0)),g:he(255,dt(C.g,0)),b:he(255,dt(C.b,0)),a:y}}(m);this._originalInput=m,this._r=y.r,this._g=y.g,this._b=y.b,this._a=y.a,this._roundA=ee(100*this._a)/100,this._format=C.format||y.format,this._gradientType=C.gradientType,this._r<1&&(this._r=ee(this._r)),this._g<1&&(this._g=ee(this._g)),this._b<1&&(this._b=ee(this._b)),this._ok=y.ok,this._tc_id=Lt++}function we(m,C,y){m=Be(m,255),C=Be(C,255),y=Be(y,255);var q,et,F=dt(m,C,y),$=he(m,C,y),St=(F+$)/2;if(F==$)q=et=0;else{var Mt=F-$;switch(et=St>.5?Mt/(2-F-$):Mt/(F+$),F){case m:q=(C-y)/Mt+(C<y?6:0);break;case C:q=(y-m)/Mt+2;break;case y:q=(m-C)/Mt+4}q/=6}return{h:q,s:et,l:St}}function Ne(m,C,y){m=Be(m,255),C=Be(C,255),y=Be(y,255);var q,et,F=dt(m,C,y),$=he(m,C,y),St=F,Mt=F-$;if(et=0===F?0:Mt/F,F==$)q=0;else{switch(F){case m:q=(C-y)/Mt+(C<y?6:0);break;case C:q=(y-m)/Mt+2;break;case y:q=(m-C)/Mt+4}q/=6}return{h:q,s:et,v:St}}function Yt(m,C,y,F){var $=[mn(ee(m).toString(16)),mn(ee(C).toString(16)),mn(ee(y).toString(16))];return F&&$[0].charAt(0)==$[0].charAt(1)&&$[1].charAt(0)==$[1].charAt(1)&&$[2].charAt(0)==$[2].charAt(1)?$[0].charAt(0)+$[1].charAt(0)+$[2].charAt(0):$.join("")}function Y(m,C,y,F){return[mn(fr(F)),mn(ee(m).toString(16)),mn(ee(C).toString(16)),mn(ee(y).toString(16))].join("")}function $t(m,C){C=0===C?0:C||10;var y=V(m).toHsl();return y.s-=C/100,y.s=xt(y.s),V(y)}function zn(m,C){C=0===C?0:C||10;var y=V(m).toHsl();return y.s+=C/100,y.s=xt(y.s),V(y)}function re(m){return V(m).desaturate(100)}function J(m,C){C=0===C?0:C||10;var y=V(m).toHsl();return y.l+=C/100,y.l=xt(y.l),V(y)}function B(m,C){C=0===C?0:C||10;var y=V(m).toRgb();return y.r=dt(0,he(255,y.r-ee(-C/100*255))),y.g=dt(0,he(255,y.g-ee(-C/100*255))),y.b=dt(0,he(255,y.b-ee(-C/100*255))),V(y)}function O(m,C){C=0===C?0:C||10;var y=V(m).toHsl();return y.l-=C/100,y.l=xt(y.l),V(y)}function X(m,C){var y=V(m).toHsl(),F=(y.h+C)%360;return y.h=F<0?360+F:F,V(y)}function ce(m){var C=V(m).toHsl();return C.h=(C.h+180)%360,V(C)}function P(m){var C=V(m).toHsl(),y=C.h;return[V(m),V({h:(y+120)%360,s:C.s,l:C.l}),V({h:(y+240)%360,s:C.s,l:C.l})]}function Je(m){var C=V(m).toHsl(),y=C.h;return[V(m),V({h:(y+90)%360,s:C.s,l:C.l}),V({h:(y+180)%360,s:C.s,l:C.l}),V({h:(y+270)%360,s:C.s,l:C.l})]}function at(m){var C=V(m).toHsl(),y=C.h;return[V(m),V({h:(y+72)%360,s:C.s,l:C.l}),V({h:(y+216)%360,s:C.s,l:C.l})]}function it(m,C,y){C=C||6,y=y||30;var F=V(m).toHsl(),$=360/y,q=[V(m)];for(F.h=(F.h-($*C>>1)+720)%360;--C;)F.h=(F.h+$)%360,q.push(V(F));return q}function Et(m,C){C=C||6;for(var y=V(m).toHsv(),F=y.h,$=y.s,q=y.v,et=[],St=1/C;C--;)et.push(V({h:F,s:$,v:q})),q=(q+St)%1;return et}V.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var m=this.toRgb();return(299*m.r+587*m.g+114*m.b)/1e3},getLuminance:function(){var C,y,F,m=this.toRgb();return y=m.g/255,F=m.b/255,.2126*((C=m.r/255)<=.03928?C/12.92:Ee.pow((C+.055)/1.055,2.4))+.7152*(y<=.03928?y/12.92:Ee.pow((y+.055)/1.055,2.4))+.0722*(F<=.03928?F/12.92:Ee.pow((F+.055)/1.055,2.4))},setAlpha:function(m){return this._a=qn(m),this._roundA=ee(100*this._a)/100,this},toHsv:function(){var m=Ne(this._r,this._g,this._b);return{h:360*m.h,s:m.s,v:m.v,a:this._a}},toHsvString:function(){var m=Ne(this._r,this._g,this._b),C=ee(360*m.h),y=ee(100*m.s),F=ee(100*m.v);return 1==this._a?"hsv("+C+", "+y+"%, "+F+"%)":"hsva("+C+", "+y+"%, "+F+"%, "+this._roundA+")"},toHsl:function(){var m=we(this._r,this._g,this._b);return{h:360*m.h,s:m.s,l:m.l,a:this._a}},toHslString:function(){var m=we(this._r,this._g,this._b),C=ee(360*m.h),y=ee(100*m.s),F=ee(100*m.l);return 1==this._a?"hsl("+C+", "+y+"%, "+F+"%)":"hsla("+C+", "+y+"%, "+F+"%, "+this._roundA+")"},toHex:function(m){return Yt(this._r,this._g,this._b,m)},toHexString:function(m){return"#"+this.toHex(m)},toHex8:function(m){return function rt(m,C,y,F,$){var q=[mn(ee(m).toString(16)),mn(ee(C).toString(16)),mn(ee(y).toString(16)),mn(fr(F))];return $&&q[0].charAt(0)==q[0].charAt(1)&&q[1].charAt(0)==q[1].charAt(1)&&q[2].charAt(0)==q[2].charAt(1)&&q[3].charAt(0)==q[3].charAt(1)?q[0].charAt(0)+q[1].charAt(0)+q[2].charAt(0)+q[3].charAt(0):q.join("")}(this._r,this._g,this._b,this._a,m)},toHex8String:function(m){return"#"+this.toHex8(m)},toRgb:function(){return{r:ee(this._r),g:ee(this._g),b:ee(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+ee(this._r)+", "+ee(this._g)+", "+ee(this._b)+")":"rgba("+ee(this._r)+", "+ee(this._g)+", "+ee(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:ee(100*Be(this._r,255))+"%",g:ee(100*Be(this._g,255))+"%",b:ee(100*Be(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+ee(100*Be(this._r,255))+"%, "+ee(100*Be(this._g,255))+"%, "+ee(100*Be(this._b,255))+"%)":"rgba("+ee(100*Be(this._r,255))+"%, "+ee(100*Be(this._g,255))+"%, "+ee(100*Be(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(nn[Yt(this._r,this._g,this._b,!0)]||!1)},toFilter:function(m){var C="#"+Y(this._r,this._g,this._b,this._a),y=C,F=this._gradientType?"GradientType = 1, ":"";if(m){var $=V(m);y="#"+Y($._r,$._g,$._b,$._a)}return"progid:DXImageTransform.Microsoft.gradient("+F+"startColorstr="+C+",endColorstr="+y+")"},toString:function(m){var C=!!m;m=m||this._format;var y=!1;return!C&&this._a<1&&this._a>=0&&("hex"===m||"hex6"===m||"hex3"===m||"hex4"===m||"hex8"===m||"name"===m)?"name"===m&&0===this._a?this.toName():this.toRgbString():("rgb"===m&&(y=this.toRgbString()),"prgb"===m&&(y=this.toPercentageRgbString()),("hex"===m||"hex6"===m)&&(y=this.toHexString()),"hex3"===m&&(y=this.toHexString(!0)),"hex4"===m&&(y=this.toHex8String(!0)),"hex8"===m&&(y=this.toHex8String()),"name"===m&&(y=this.toName()),"hsl"===m&&(y=this.toHslString()),"hsv"===m&&(y=this.toHsvString()),y||this.toHexString())},clone:function(){return V(this.toString())},_applyModification:function(m,C){var y=m.apply(null,[this].concat([].slice.call(C)));return this._r=y._r,this._g=y._g,this._b=y._b,this.setAlpha(y._a),this},lighten:function(){return this._applyModification(J,arguments)},brighten:function(){return this._applyModification(B,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification($t,arguments)},saturate:function(){return this._applyModification(zn,arguments)},greyscale:function(){return this._applyModification(re,arguments)},spin:function(){return this._applyModification(X,arguments)},_applyCombination:function(m,C){return m.apply(null,[this].concat([].slice.call(C)))},analogous:function(){return this._applyCombination(it,arguments)},complement:function(){return this._applyCombination(ce,arguments)},monochromatic:function(){return this._applyCombination(Et,arguments)},splitcomplement:function(){return this._applyCombination(at,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(Je,arguments)}},V.fromRatio=function(m,C){if("object"==typeof m){var y={};for(var F in m)m.hasOwnProperty(F)&&(y[F]="a"===F?m[F]:hi(m[F]));m=y}return V(m,C)},V.equals=function(m,C){return!(!m||!C)&&V(m).toRgbString()==V(C).toRgbString()},V.random=function(){return V.fromRatio({r:_e(),g:_e(),b:_e()})},V.mix=function(m,C,y){y=0===y?0:y||50;var F=V(m).toRgb(),$=V(C).toRgb(),q=y/100;return V({r:($.r-F.r)*q+F.r,g:($.g-F.g)*q+F.g,b:($.b-F.b)*q+F.b,a:($.a-F.a)*q+F.a})},V.readability=function(m,C){var y=V(m),F=V(C);return(Ee.max(y.getLuminance(),F.getLuminance())+.05)/(Ee.min(y.getLuminance(),F.getLuminance())+.05)},V.isReadable=function(m,C,y){var $,q,F=V.readability(m,C);switch(q=!1,$=function Qn(m){var C,y;return"AA"!==(C=((m=m||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==C&&(C="AA"),"small"!==(y=(m.size||"small").toLowerCase())&&"large"!==y&&(y="small"),{level:C,size:y}}(y),$.level+$.size){case"AAsmall":case"AAAlarge":q=F>=4.5;break;case"AAlarge":q=F>=3;break;case"AAAsmall":q=F>=7}return q},V.mostReadable=function(m,C,y){var q,et,St,Mt,F=null,$=0;et=(y=y||{}).includeFallbackColors,St=y.level,Mt=y.size;for(var xn=0;xn<C.length;xn++)(q=V.readability(m,C[xn]))>$&&($=q,F=V(C[xn]));return V.isReadable(m,F,{level:St,size:Mt})||!et?F:(y.includeFallbackColors=!1,V.mostReadable(m,["#fff","#000"],y))};var tn=V.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},nn=V.hexNames=function Yn(m){var C={};for(var y in m)m.hasOwnProperty(y)&&(C[m[y]]=y);return C}(tn);function qn(m){return m=parseFloat(m),(isNaN(m)||m<0||m>1)&&(m=1),m}function Be(m,C){(function Kn(m){return"string"==typeof m&&-1!=m.indexOf(".")&&1===parseFloat(m)})(m)&&(m="100%");var y=function di(m){return"string"==typeof m&&-1!=m.indexOf("%")}(m);return m=he(C,dt(0,parseFloat(m))),y&&(m=parseInt(m*C,10)/100),Ee.abs(m-C)<1e-6?1:m%C/parseFloat(C)}function xt(m){return he(1,dt(0,m))}function lt(m){return parseInt(m,16)}function mn(m){return 1==m.length?"0"+m:""+m}function hi(m){return m<=1&&(m=100*m+"%"),m}function fr(m){return Ee.round(255*parseFloat(m)).toString(16)}function Bs(m){return lt(m)/255}var y,F,$,kn=(F="[\\s|\\(]+("+(y="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?",$="[\\s|\\(]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?",{CSS_UNIT:new RegExp(y),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+$),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+$),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+$),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Xn(m){return!!kn.CSS_UNIT.exec(m)}Wt.exports?Wt.exports=V:void 0!==(wt=function(){return V}.call(_t,We,_t,Wt))&&(Wt.exports=wt)}(Math)}},qg={};function Ko(Wt){var _t=qg[Wt];if(void 0!==_t)return _t.exports;var We=qg[Wt]={exports:{}};return tS[Wt].call(We.exports,We,We.exports,Ko),We.exports}(()=>{"use strict";function Wt(n){return"function"==typeof n}let _t=!1;const We={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else _t&&console.log("RxJS: Back to a better error behavior. Thank you. <3");_t=n},get useDeprecatedSynchronousErrorHandling(){return _t}};function wt(n){setTimeout(()=>{throw n},0)}const Ee={closed:!0,next(n){},error(n){if(We.useDeprecatedSynchronousErrorHandling)throw n;wt(n)},complete(){}},Dt=Array.isArray||(n=>n&&"number"==typeof n.length);function Ft(n){return null!==n&&"object"==typeof n}const ee=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class he{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof he)e.remove(this);else if(null!==e)for(let o=0;o<e.length;++o)e[o].remove(this);if(Wt(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){t=o instanceof ee?dt(o.errors):[o]}}if(Dt(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(Ft(l))try{l.unsubscribe()}catch(c){t=t||[],c instanceof ee?t=t.concat(dt(c.errors)):t.push(c)}}}if(t)throw new ee(t)}add(t){let e=t;if(!t)return he.EMPTY;switch(typeof t){case"function":e=new he(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof he)){const s=e;e=new he,e._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof he){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[e]:r.push(e),e}remove(t){const e=this._subscriptions;if(e){const i=e.indexOf(t);-1!==i&&e.splice(i,1)}}}var n;function dt(n){return n.reduce((t,e)=>t.concat(e instanceof ee?e.errors:e),[])}he.EMPTY=((n=new he).closed=!0,n);const _e="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Ve extends he{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Ee;break;case 1:if(!t){this.destination=Ee;break}if("object"==typeof t){t instanceof Ve?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new me(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new me(this,t,e,i)}}[_e](){return this}static create(t,e,i){const r=new Ve(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class me extends Ve{constructor(t,e,i,r){super(),this._parentSubscriber=t;let s,o=this;Wt(e)?s=e:e&&(s=e.next,i=e.error,r=e.complete,e!==Ee&&(o=Object.create(e),Wt(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;We.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=We;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):wt(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;wt(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);We.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),We.useDeprecatedSynchronousErrorHandling)throw i;wt(i)}}__tryOrSetError(t,e,i){if(!We.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return We.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(wt(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const Ne="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ct(n){return n}let Y=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:s}=this,o=function Ze(n,t,e){if(n){if(n instanceof Ve)return n;if(n[_e])return n[_e]()}return n||t||e?new Ve(n,t,e):new Ve(Ee)}(e,i,r);if(o.add(s?s.call(o,this.source):this.source||We.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),We.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){We.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function we(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof Ve?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=$t(i))((r,s)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[Ne](){return this}pipe(...e){return 0===e.length?this:function rt(n){return 0===n.length?Ct:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=$t(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=t=>new n(t),n})();function $t(n){if(n||(n=We.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const re=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class J extends he{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class B extends Ve{constructor(t){super(t),this.destination=t}}let O=(()=>{class n extends Y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[_e](){return new B(this)}lift(e){const i=new X(this,this);return i.operator=e,i}next(e){if(this.closed)throw new re;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(e)}}error(e){if(this.closed)throw new re;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new re;this.isStopped=!0;const{observers:e}=this,i=e.length,r=e.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new re;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new re;return this.hasError?(e.error(this.thrownError),he.EMPTY):this.isStopped?(e.complete(),he.EMPTY):(this.observers.push(e),new J(this,e))}asObservable(){const e=new Y;return e.source=this,e}}return n.create=(t,e)=>new X(t,e),n})();class X extends O{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):he.EMPTY}}function ce(n){return n&&"function"==typeof n.schedule}function P(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Je(n,t))}}class Je{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new at(t,this.project,this.thisArg))}}class at extends Ve{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const it=n=>t=>{for(let e=0,i=n.length;e<i&&!t.closed;e++)t.next(n[e]);t.complete()},nn=function tn(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),xt=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function lt(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Kn=n=>{if(n&&"function"==typeof n[Ne])return(n=>t=>{const e=n[Ne]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(xt(n))return it(n);if(lt(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,wt),t))(n);if(n&&"function"==typeof n[nn])return(n=>t=>{const e=n[nn]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${Ft(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function hi(n,t){return new Y(e=>{const i=new he;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function pr(n,t){return t?function Xn(n,t){if(null!=n){if(function Bs(n){return n&&"function"==typeof n[Ne]}(n))return function di(n,t){return new Y(e=>{const i=new he;return i.add(t.schedule(()=>{const r=n[Ne]();i.add(r.subscribe({next(s){i.add(t.schedule(()=>e.next(s)))},error(s){i.add(t.schedule(()=>e.error(s)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(lt(n))return function mn(n,t){return new Y(e=>{const i=new he;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(xt(n))return hi(n,t);if(function kn(n){return n&&"function"==typeof n[nn]}(n)||"string"==typeof n)return function fr(n,t){if(!n)throw new Error("Iterable cannot be null");return new Y(e=>{const i=new he;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[nn](),i.add(t.schedule(function(){if(e.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(s),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof Y?n:new Y(Kn(n))}class Qn extends Ve{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class C extends Ve{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function F(n,t){if(!t.closed)return n instanceof Y?n.subscribe(t):Kn(n)(t)}function $(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe($((r,s)=>pr(n(r,s)).pipe(P((o,a)=>t(r,o,s,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new q(n,e)))}class q{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new et(t,this.project,this.concurrent))}}class et extends C{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(t){const e=new Qn(this),i=this.destination;i.add(e);const r=F(t,e);r!==e&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Mt(n=Number.POSITIVE_INFINITY){return $(Ct,n)}function xn(n,t){return t?hi(n,t):new Y(it(n))}function qt(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return ce(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof Y?n[0]:Mt(t)(xn(n,e))}function Gn(){return function(t){return t.lift(new nS(t))}}class nS{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new iS(t,i),s=e.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class iS extends Ve{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class rS extends Y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,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 he,t.add(this.source.subscribe(new oS(this.getSubject(),this))),t.closed&&(this._connection=null,t=he.EMPTY)),t}refCount(){return Gn()(this)}}const sS=(()=>{const n=rS.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class oS extends B{constructor(t,e){super(t),this.connectable=e}_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 e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class cS{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(t);return s.add(e.subscribe(r)),s}}function uS(){return new O}function Ai(){return n=>Gn()(function lS(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new cS(r,t));const s=Object.create(i,sS);return s.source=i,s.subjectFactory=r,s}}(uS)(n))}function ht(n){for(let t in n)if(n[t]===ht)return t;throw Error("Could not find renamed property on target object.")}function Zu(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function st(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(st).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Ju(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const dS=ht({__forward_ref__:ht});function gt(n){return n.__forward_ref__=gt,n.toString=function(){return st(this())},n}function Re(n){return Kg(n)?n():n}function Kg(n){return"function"==typeof n&&n.hasOwnProperty(dS)&&n.__forward_ref__===gt}class K extends Error{constructor(t,e){super(function ed(n,t){return`NG0${Math.abs(n)}${t?": "+t:""}`}(t,e)),this.code=t}}function xe(n){return"string"==typeof n?n:null==n?"":String(n)}function yn(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():xe(n)}function ml(n,t){const e=t?` in ${t}`:"";throw new K(-201,`No provider for ${yn(n)} found${e}`)}function Jn(n,t){null==n&&function ot(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function R(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}const mS=R;function qe(n){return{providers:n.providers||[],imports:n.imports||[]}}function td(n){return Xg(n,yl)||Xg(n,Zg)}function Xg(n,t){return n.hasOwnProperty(t)?n[t]:null}function Qg(n){return n&&(n.hasOwnProperty(nd)||n.hasOwnProperty(_S))?n[nd]:null}const yl=ht({\u0275prov:ht}),nd=ht({\u0275inj:ht}),Zg=ht({ngInjectableDef:ht}),_S=ht({ngInjectorDef:ht});var Te=(()=>((Te=Te||{})[Te.Default=0]="Default",Te[Te.Host=1]="Host",Te[Te.Self=2]="Self",Te[Te.SkipSelf=4]="SkipSelf",Te[Te.Optional=8]="Optional",Te))();let id;function Ir(n){const t=id;return id=n,t}function Jg(n,t,e){const i=td(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Te.Optional?null:void 0!==t?t:void ml(st(n),"Injector")}function kr(n){return{toString:n}.toString()}var Ti=(()=>((Ti=Ti||{})[Ti.OnPush=0]="OnPush",Ti[Ti.Default=1]="Default",Ti))(),Ii=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Ii||(Ii={})),Ii))();const bS="undefined"!=typeof globalThis&&globalThis,DS="undefined"!=typeof window&&window,CS="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ct=bS||"undefined"!=typeof global&&global||DS||CS,Hs={},ft=[],vl=ht({\u0275cmp:ht}),rd=ht({\u0275dir:ht}),sd=ht({\u0275pipe:ht}),em=ht({\u0275mod:ht}),mr=ht({\u0275fac:ht}),Xo=ht({__NG_ELEMENT_ID__:ht});let ES=0;function rn(n){return kr(()=>{const e={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Ti.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||ft,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Ii.Emulated,id:"c",styles:n.styles||ft,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=ES++,i.inputs=rm(n.inputs,e),i.outputs=rm(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(tm):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(nm):null,i})}function tm(n){return _n(n)||function Or(n){return n[rd]||null}(n)}function nm(n){return function is(n){return n[sd]||null}(n)}const im={};function Ke(n){return kr(()=>{const t={type:n.type,bootstrap:n.bootstrap||ft,declarations:n.declarations||ft,imports:n.imports||ft,exports:n.exports||ft,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(im[n.id]=n.type),t})}function rm(n,t){if(null==n)return Hs;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,t&&(t[r]=s)}return e}const T=rn;function vn(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function _n(n){return n[vl]||null}function fi(n,t){const e=n[em]||null;if(!e&&!0===t)throw new Error(`Type ${st(n)} does not have '\u0275mod' property.`);return e}function Xi(n){return Array.isArray(n)&&"object"==typeof n[1]}function Oi(n){return Array.isArray(n)&&!0===n[1]}function ld(n){return 0!=(8&n.flags)}function Dl(n){return 2==(2&n.flags)}function Cl(n){return 1==(1&n.flags)}function Fi(n){return null!==n.template}function IS(n){return 0!=(512&n[2])}function as(n,t){return n.hasOwnProperty(mr)?n[mr]:null}class om{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function hn(){return am}function am(n){return n.type.prototype.ngOnChanges&&(n.setInput=RS),FS}function FS(){const n=cm(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===Hs)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function RS(n,t,e,i){const r=cm(n)||function PS(n,t){return n[lm]=t}(n,{previous:Hs,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],l=o[a];s[a]=new om(l&&l.currentValue,t,o===Hs),n[i]=t}hn.ngInherit=!0;const lm="__ngSimpleChanges__";function cm(n){return n[lm]||null}let fd;function pd(){return void 0!==fd?fd:"undefined"!=typeof document?document:void 0}function Bt(n){return!!n.listen}const um={createRenderer:(n,t)=>pd()};function Kt(n){for(;Array.isArray(n);)n=n[0];return n}function El(n,t){return Kt(t[n])}function ti(n,t){return Kt(t[n.index])}function gd(n,t){return n.data[t]}function Us(n,t){return n[t]}function ni(n,t){const e=t[n];return Xi(e)?e:e[0]}function dm(n){return 4==(4&n[2])}function md(n){return 128==(128&n[2])}function Fr(n,t){return null==t?null:n[t]}function hm(n){n[18]=0}function yd(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const Se={lFrame:bm(null),bindingsEnabled:!0};function pm(){return Se.bindingsEnabled}function I(){return Se.lFrame.lView}function Xe(){return Se.lFrame.tView}function Ie(n){return Se.lFrame.contextLView=n,n[8]}function sn(){let n=gm();for(;null!==n&&64===n.type;)n=n.parent;return n}function gm(){return Se.lFrame.currentTNode}function Qi(n,t){const e=Se.lFrame;e.currentTNode=n,e.isParent=t}function vd(){return Se.lFrame.isParent}function _d(){Se.lFrame.isParent=!1}function Fn(){const n=Se.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Ws(){return Se.lFrame.bindingIndex++}function ZS(n,t){const e=Se.lFrame;e.bindingIndex=e.bindingRootIndex=n,wd(t)}function wd(n){Se.lFrame.currentDirectiveIndex=n}function vm(){return Se.lFrame.currentQueryIndex}function Dd(n){Se.lFrame.currentQueryIndex=n}function eM(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function _m(n,t,e){if(e&Te.SkipSelf){let r=t,s=n;for(;!(r=r.parent,null!==r||e&Te.Host||(r=eM(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,n=s}const i=Se.lFrame=wm();return i.currentTNode=t,i.lView=n,!0}function Sl(n){const t=wm(),e=n[1];Se.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function wm(){const n=Se.lFrame,t=null===n?null:n.child;return null===t?bm(n):t}function bm(n){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:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function Dm(){const n=Se.lFrame;return Se.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Cm=Dm;function Ml(){const n=Dm();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Rn(){return Se.lFrame.selectedIndex}function Rr(n){Se.lFrame.selectedIndex=n}function Rt(){const n=Se.lFrame;return gd(n.tView,n.selectedIndex)}function Al(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e<i;e++){const s=n.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-e,o),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-e,l),c&&((n.viewHooks||(n.viewHooks=[])).push(e,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(e,u)}}function Tl(n,t,e){Em(n,t,3,e)}function Il(n,t,e,i){(3&n[2])===e&&Em(n,t,e,i)}function Cd(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function Em(n,t,e,i){const s=null!=i?i:-1,o=t.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=i&&a>=i)break}else t[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(cM(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function cM(n,t,e,i){const r=e[i]<0,s=e[i+1],a=n[r?-e[i]:e[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class ta{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function kl(n,t,e){const i=Bt(n);let r=0;for(;r<e.length;){const s=e[r];if("number"==typeof s){if(0!==s)break;r++;const o=e[r++],a=e[r++],l=e[r++];i?n.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=s,a=e[++r];xd(o)?i&&n.setProperty(t,o,a):i?n.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function xm(n){return 3===n||4===n||6===n}function xd(n){return 64===n.charCodeAt(0)}function Ol(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?e=r:0===e||Sm(n,e,r,null,-1===e||2===e?t[++i]:null)}}return n}function Sm(n,t,e,i,r){let s=0,o=n.length;if(-1===t)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===t){o=-1;break}if(a>t){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,t),s=o+1),n.splice(s++,0,e),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function Mm(n){return-1!==n}function Ys(n){return 32767&n}function qs(n,t){let e=function pM(n){return n>>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Sd=!0;function Fl(n){const t=Sd;return Sd=n,t}let gM=0;function ia(n,t){const e=Ad(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Md(i.data,n),Md(t,null),Md(i.blueprint,null));const r=Rl(n,t),s=n.injectorIndex;if(Mm(r)){const o=Ys(r),a=qs(r,t),l=a[1].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=r,s}function Md(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Ad(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Rl(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Pl(n,t,e){!function mM(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Xo)&&(i=e[Xo]),null==i&&(i=e[Xo]=gM++);const r=255&i;t.data[n+(r>>5)]|=1<<r}(n,t,e)}function Im(n,t,e){if(e&Te.Optional)return n;ml(t,"NodeInjector")}function km(n,t,e,i){if(e&Te.Optional&&void 0===i&&(i=null),0==(e&(Te.Self|Te.Host))){const r=n[9],s=Ir(void 0);try{return r?r.get(t,i,e&Te.Optional):Jg(t,i,e&Te.Optional)}finally{Ir(s)}}return Im(i,t,e)}function Om(n,t,e,i=Te.Default,r){if(null!==n){const s=function wM(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(Xo)?n[Xo]:void 0;return"number"==typeof t?t>=0?255&t:vM:t}(e);if("function"==typeof s){if(!_m(t,n,i))return i&Te.Host?Im(r,e,i):km(t,e,i,r);try{const o=s(i);if(null!=o||i&Te.Optional)return o;ml(e)}finally{Cm()}}else if("number"==typeof s){let o=null,a=Ad(n,t),l=-1,c=i&Te.Host?t[16][6]:null;for((-1===a||i&Te.SkipSelf)&&(l=-1===a?Rl(n,t):t[a+8],-1!==l&&Pm(i,!1)?(o=t[1],a=Ys(l),t=qs(l,t)):a=-1);-1!==a;){const u=t[1];if(Rm(s,a,u.data)){const d=_M(a,t,e,o,i,c);if(d!==Fm)return d}l=t[a+8],-1!==l&&Pm(i,t[1].data[a+8]===c)&&Rm(s,a,t)?(o=u,a=Ys(l),t=qs(l,t)):a=-1}}}return km(t,e,i,r)}const Fm={};function vM(){return new Ks(sn(),I())}function _M(n,t,e,i,r,s){const o=t[1],a=o.data[n+8],u=Nl(a,o,e,null==i?Dl(a)&&Sd:i!=o&&0!=(3&a.type),r&Te.Host&&s===a);return null!==u?ra(t,o,u,a):Fm}function Nl(n,t,e,i,r){const s=n.providerIndexes,o=t.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&e===p||f>=l&&p.type===e)return f}if(r){const f=o[l];if(f&&Fi(f)&&f.type===e)return l}return null}function ra(n,t,e,i){let r=n[e];const s=t.data;if(function uM(n){return n instanceof ta}(r)){const o=r;o.resolving&&function hS(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new K(-200,`Circular dependency in DI detected for ${n}${e}`)}(yn(s[e]));const a=Fl(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Ir(o.injectImpl):null;_m(n,i,Te.Default);try{r=n[e]=o.factory(void 0,s,n,i),t.firstCreatePass&&e>=i.directiveStart&&function lM(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const o=am(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==l&&Ir(l),Fl(a),o.resolving=!1,Cm()}}return r}function Rm(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function Pm(n,t){return!(n&Te.Self||n&Te.Host&&t)}class Ks{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return Om(this._tNode,this._lView,t,i,e)}}function se(n){return kr(()=>{const t=n.prototype.constructor,e=t[mr]||Td(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[mr]||Td(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Td(n){return Kg(n)?()=>{const t=Td(Re(n));return t&&t()}:as(n)}const Qs="__parameters__",Zs="__prop__metadata__";function Id(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}function Js(n,t,e){return kr(()=>{const i=Id(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Qs)?l[Qs]:Object.defineProperty(l,Qs,{value:[]})[Qs];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}function kd(n,t,e,i){return kr(()=>{const r=Id(t);function s(...o){if(this instanceof s)return r.apply(this,o),this;const a=new s(...o);return function l(c,u){const d=c.constructor,h=d.hasOwnProperty(Zs)?d[Zs]:Object.defineProperty(d,Zs,{value:{}})[Zs];h[u]=h.hasOwnProperty(u)&&h[u]||[],h[u].unshift(a),i&&i(c,u,...o)}}return e&&(s.prototype=Object.create(e.prototype)),s.prototype.ngMetadataName=n,s.annotationCls=s,s})}class ne{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=R({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function mi(n,t){void 0===t&&(t=n);for(let e=0;e<n.length;e++){let i=n[e];Array.isArray(i)?(t===n&&(t=n.slice(0,e)),mi(i,t)):t!==n&&t.push(i)}return t}function Zi(n,t){n.forEach(e=>Array.isArray(e)?Zi(e,t):t(e))}function Lm(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Vl(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function aa(n,t){const e=[];for(let i=0;i<n;i++)e.push(t);return e}function ii(n,t,e){let i=eo(n,t);return i>=0?n[1|i]=e:(i=~i,function EM(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function Fd(n,t){const e=eo(n,t);if(e>=0)return n[1|e]}function eo(n,t){return function Hm(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<e];if(t===o)return s<<e;o>t?r=s:i=s+1}return~(r<<e)}(n,t,1)}const la={},Pd="__NG_DI_FLAG__",Hl="ngTempTokenPath",kM=/\n/gm,$m="__source",FM=ht({provide:String,useValue:ht});let ca;function zm(n){const t=ca;return ca=n,t}function RM(n,t=Te.Default){if(void 0===ca)throw new K(203,"");return null===ca?Jg(n,void 0,t):ca.get(n,t&Te.Optional?null:void 0,t)}function S(n,t=Te.Default){return(function wS(){return id}()||RM)(Re(n),t)}const to=S;function Nd(n){const t=[];for(let e=0;e<n.length;e++){const i=Re(n[e]);if(Array.isArray(i)){if(0===i.length)throw new K(900,"");let r,s=Te.Default;for(let o=0;o<i.length;o++){const a=i[o],l=PM(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}t.push(S(r,s))}else t.push(S(i))}return t}function ua(n,t){return n[Pd]=t,n.prototype[Pd]=t,n}function PM(n){return n[Pd]}const _r=ua(Js("Inject",n=>({token:n})),-1),ls=ua(Js("Optional"),8),da=ua(Js("SkipSelf"),4);var ri=(()=>((ri=ri||{})[ri.Important=1]="Important",ri[ri.DashCase=2]="DashCase",ri))();const Qm="__ngContext__";function Mn(n,t){n[Qm]=t}function Bd(n){const t=function fa(n){return n[Qm]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function jd(n,t){return undefined(n,t)}function pa(n){const t=n[3];return Oi(t)?t[3]:t}function $d(n){return ry(n[13])}function zd(n){return ry(n[4])}function ry(n){for(;null!==n&&!Oi(n);)n=n[4];return n}function io(n,t,e,i,r){if(null!=i){let s,o=!1;Oi(i)?s=i:Xi(i)&&(o=!0,i=i[0]);const a=Kt(i);0===n&&null!==e?null==r?uy(t,e,a):cs(t,e,a,r||null,!0):1===n&&null!==e?cs(t,e,a,r||null,!0):2===n?function Xd(n,t,e){const i=$l(n,t);i&&function hA(n,t,e,i){Bt(n)?n.removeChild(t,e,i):t.removeChild(e)}(n,i,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function gA(n,t,e,i,r){const s=e[7];s!==Kt(e)&&io(t,n,i,s,r);for(let a=10;a<e.length;a++){const l=e[a];ga(l[1],l,n,t,i,s)}}(t,n,s,e,r)}}function Ud(n,t,e){if(Bt(n))return n.createElement(t,e);{const i=null!==e?function BS(n){const t=n.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(e):null;return null===i?n.createElement(t):n.createElementNS(i,t)}}function oy(n,t){const e=n[9],i=e.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,yd(r,-1)),e.splice(i,1)}function Wd(n,t){if(n.length<=10)return;const e=10+t,i=n[e];if(i){const r=i[17];null!==r&&r!==n&&oy(r,i),t>0&&(n[e-1][4]=i[4]);const s=Vl(n,10+t);!function rA(n,t){ga(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function ay(n,t){if(!(256&t[2])){const e=t[11];Bt(e)&&e.destroyNode&&ga(n,t,e,3,null,null),function aA(n){let t=n[13];if(!t)return Yd(n[1],n);for(;t;){let e=null;if(Xi(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Xi(t)&&Yd(t[1],t),t=t[3];null===t&&(t=n),Xi(t)&&Yd(t[1],t),e=t&&t[4]}t=e}}(t)}}function Yd(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function dA(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i<e.length;i+=2){const r=t[e[i]];if(!(r instanceof ta)){const s=e[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,t),function uA(n,t){const e=n.cleanup,i=t[7];let r=-1;if(null!==e)for(let s=0;s<e.length-1;s+=2)if("string"==typeof e[s]){const o=e[s+1],a="function"==typeof o?o(t):Kt(t[o]),l=i[r=e[s+2]],c=e[s+3];"boolean"==typeof c?a.removeEventListener(e[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=e[s+1]];e[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();t[7]=null}}(n,t),1===t[1].type&&Bt(t[11])&&t[11].destroy();const e=t[17];if(null!==e&&Oi(t[3])){e!==t[3]&&oy(e,t);const i=t[19];null!==i&&i.detachView(n)}}}function ly(n,t,e){return function cy(n,t,e){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return e[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===Ii.None||r===Ii.Emulated)return null}return ti(i,e)}(n,t.parent,e)}function cs(n,t,e,i,r){Bt(n)?n.insertBefore(t,e,i,r):t.insertBefore(e,i,r)}function uy(n,t,e){Bt(n)?n.appendChild(t,e):t.appendChild(e)}function dy(n,t,e,i,r){null!==i?cs(n,t,e,i,r):uy(n,t,e)}function $l(n,t){return Bt(n)?n.parentNode(t):t.parentNode}function hy(n,t,e){return py(n,t,e)}let Ul,Wl,py=function fy(n,t,e){return 40&n.type?ti(n,e):null};function zl(n,t,e,i){const r=ly(n,i,t),s=t[11],a=hy(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)dy(s,r,e[l],a,!1);else dy(s,r,e,a,!1)}function Gl(n,t){if(null!==t){const e=t.type;if(3&e)return ti(t,n);if(4&e)return Kd(-1,n[t.index]);if(8&e){const i=t.child;if(null!==i)return Gl(n,i);{const r=n[t.index];return Oi(r)?Kd(-1,r):Kt(r)}}if(32&e)return jd(t,n)()||Kt(n[t.index]);{const i=my(n,t);return null!==i?Array.isArray(i)?i[0]:Gl(pa(n[16]),i):Gl(n,t.next)}}return null}function my(n,t){return null!==t?n[16][6].projection[t.projection]:null}function Kd(n,t){const e=10+n+1;if(e<t.length){const i=t[e],r=i[1].firstChild;if(null!==r)return Gl(i,r)}return t[7]}function Qd(n,t,e,i,r,s,o){for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===t&&(a&&Mn(Kt(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)Qd(n,t,e.child,i,r,s,!1),io(t,n,r,a,s);else if(32&l){const c=jd(e,i);let u;for(;u=c();)io(t,n,r,u,s);io(t,n,r,a,s)}else 16&l?yy(n,t,i,e,r,s):io(t,n,r,a,s);e=o?e.projectionNext:e.next}}function ga(n,t,e,i,r,s){Qd(e,i,n.firstChild,t,r,s,!1)}function yy(n,t,e,i,r,s){const o=e[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)io(t,n,r,l[c],s);else Qd(n,t,l,o[3],r,s,!0)}function vy(n,t,e){Bt(n)?n.setAttribute(t,"style",e):t.style.cssText=e}function Zd(n,t,e){Bt(n)?""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e):t.className=e}function us(n){var t;return(null===(t=function Jd(){if(void 0===Ul&&(Ul=null,ct.trustedTypes))try{Ul=ct.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Ul}())||void 0===t?void 0:t.createHTML(n))||n}function _y(n){var t;return(null===(t=function eh(){if(void 0===Wl&&(Wl=null,ct.trustedTypes))try{Wl=ct.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Wl}())||void 0===t?void 0:t.createHTML(n))||n}class ds{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class wA extends ds{getTypeName(){return"HTML"}}class bA extends ds{getTypeName(){return"Style"}}class DA extends ds{getTypeName(){return"Script"}}class CA extends ds{getTypeName(){return"URL"}}class EA extends ds{getTypeName(){return"ResourceURL"}}function si(n){return n instanceof ds?n.changingThisBreaksApplicationSecurity:n}function Ji(n,t){const e=Dy(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function Dy(n){return n instanceof ds&&n.getTypeName()||null}class IA{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(us(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class kA{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=us(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=us(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const o=e.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&t.removeAttribute(o)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const FA=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,RA=/^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 ma(n){return(n=String(n)).match(FA)||n.match(RA)?n:"unsafe:"+n}function Ey(n){return(n=String(n)).split(",").map(t=>ma(t.trim())).join(", ")}function er(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function ya(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const xy=er("area,br,col,hr,img,wbr"),Sy=er("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),My=er("rp,rt"),th=ya(xy,ya(Sy,er("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")),ya(My,er("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")),ya(My,Sy)),nh=er("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ih=er("srcset"),Ay=ya(nh,ih,er("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"),er("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")),PA=er("script,style,template");class NA{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!th.hasOwnProperty(e))return this.sanitizedSomething=!0,!PA.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!Ay.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;nh[a]&&(l=ma(l)),ih[a]&&(l=Ey(l)),this.buf.push(" ",o,'="',Ty(l),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();th.hasOwnProperty(e)&&!xy.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Ty(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&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 e}}const LA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,VA=/([^\#-~ |!])/g;function Ty(n){return n.replace(/&/g,"&amp;").replace(LA,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(VA,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Yl;function Iy(n,t){let e=null;try{Yl=Yl||function Cy(n){const t=new kA(n);return function OA(){try{return!!(new window.DOMParser).parseFromString(us(""),"text/html")}catch(n){return!1}}()?new IA(t):t}(n);let i=t?String(t):"";e=Yl.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=e.innerHTML,e=Yl.getInertBodyElement(i)}while(i!==s);return us((new NA).sanitizeChildren(rh(e)||e))}finally{if(e){const i=rh(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function rh(n){return"content"in n&&function BA(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var tt=(()=>((tt=tt||{})[tt.NONE=0]="NONE",tt[tt.HTML=1]="HTML",tt[tt.STYLE=2]="STYLE",tt[tt.SCRIPT=3]="SCRIPT",tt[tt.URL=4]="URL",tt[tt.RESOURCE_URL=5]="RESOURCE_URL",tt))();function ql(n){const t=function va(){const n=I();return n&&n[12]}();return t?_y(t.sanitize(tt.HTML,n)||""):Ji(n,"HTML")?_y(si(n)):Iy(pd(),xe(n))}function oh(n){return n.ngOriginalError}function KA(n,...t){n.error(...t)}class Nr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=function qA(n){return n&&n.ngErrorLogger||KA}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&oh(t);for(;e&&oh(e);)e=oh(e);return e||null}}const nT=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ct))();function tr(n){return n instanceof Function?n():n}function Ry(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}e=r+1}}const Py="ng-template";function oT(n,t,e){let i=0;for(;i<n.length;){let r=n[i++];if(e&&"class"===r){if(r=n[i],-1!==Ry(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function Ny(n){return 4===n.type&&n.value!==Py}function aT(n,t,e){return t===(4!==n.type||e?n.value:Py)}function lT(n,t,e){let i=4;const r=n.attrs||[],s=function dT(n){for(let t=0;t<n.length;t++)if(xm(n[t]))return t;return n.length}(r);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!aT(n,l,e)||""===l&&1===t.length){if(Ri(i))return!1;o=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==n.attrs){if(!oT(n.attrs,c,e)){if(Ri(i))return!1;o=!0}continue}const d=cT(8&i?"class":l,r,Ny(n),e);if(-1===d){if(Ri(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==Ry(f,c,0)||2&i&&c!==h){if(Ri(i))return!1;o=!0}}}}else{if(!o&&!Ri(i)&&!Ri(l))return!1;if(o&&Ri(l))continue;o=!1,i=l|1&i}}return Ri(i)||o}function Ri(n){return 0==(1&n)}function cT(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let s=!1;for(;r<t.length;){const o=t[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=t[++r];for(;"string"==typeof a;)a=t[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function hT(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const i=n[e];if("number"==typeof i)return-1;if(i===t)return e;e++}return-1}(t,n)}function Ly(n,t,e=!1){for(let i=0;i<t.length;i++)if(lT(n,t[i],e))return!0;return!1}function fT(n,t){e:for(let e=0;e<t.length;e++){const i=t[e];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function Vy(n,t){return n?":not("+t.trim()+")":t}function pT(n){let t=n[0],e=1,i=2,r="",s=!1;for(;e<n.length;){let o=n[e];if("string"==typeof o)if(2&i){const a=n[++e];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Ri(o)&&(t+=Vy(s,r),r=""),i=o,s=s||!Ri(i);e++}return""!==r&&(t+=Vy(s,r)),t}const Me={};function te(n){By(Xe(),I(),Rn()+n,!1)}function By(n,t,e,i){if(!i)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&Tl(t,s,e)}else{const s=n.preOrderHooks;null!==s&&Il(t,s,0,e)}Rr(e)}function Kl(n,t){return n<<17|t<<2}function Pi(n){return n>>17&32767}function ah(n){return 2|n}function wr(n){return(131068&n)>>2}function lh(n,t){return-131069&n|t<<2}function ch(n){return 1|n}function Xy(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const r=e[i],s=e[i+1];if(-1!==s){const o=n.data[s];Dd(r),o.contentQueries(2,t[s],s)}}}function _a(n,t,e,i,r,s,o,a,l,c){const u=t.blueprint.slice();return u[0]=r,u[2]=140|i,hm(u),u[3]=u[15]=n,u[8]=e,u[10]=o||n&&n[10],u[11]=a||n&&n[11],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==t.type?n[16]:u,u}function so(n,t,e,i,r){let s=n.data[t];if(null===s)s=function vh(n,t,e,i,r){const s=gm(),o=vd(),l=n.data[t]=function OT(n,t,e,i,r,s){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,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,o?s:s&&s.parent,e,t,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,t,e,i,r),function QS(){return Se.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=e,s.value=i,s.attrs=r;const o=function ea(){const n=Se.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Qi(s,!0),s}function oo(n,t,e,i){if(0===e)return-1;const r=t.length;for(let s=0;s<e;s++)t.push(i),n.blueprint.push(i),n.data.push(null);return r}function wa(n,t,e){Sl(t);try{const i=n.viewQuery;null!==i&&Mh(1,i,e);const r=n.template;null!==r&&Qy(n,t,r,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&Xy(n,t),n.staticViewQueries&&Mh(2,n.viewQuery,e);const s=n.components;null!==s&&function TT(n,t){for(let e=0;e<t.length;e++)XT(n,t[e])}(t,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{t[2]&=-5,Ml()}}function ao(n,t,e,i){const r=t[2];if(256!=(256&r)){Sl(t);try{hm(t),function mm(n){return Se.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&Qy(n,t,e,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&Tl(t,c,null)}else{const c=n.preOrderHooks;null!==c&&Il(t,c,0,null),Cd(t,0)}if(function qT(n){for(let t=$d(n);null!==t;t=zd(t)){if(!t[2])continue;const e=t[9];for(let i=0;i<e.length;i++){const r=e[i],s=r[3];0==(1024&r[2])&&yd(s,1),r[2]|=1024}}}(t),function YT(n){for(let t=$d(n);null!==t;t=zd(t))for(let e=10;e<t.length;e++){const i=t[e],r=i[1];md(i)&&ao(r,i,r.template,i[8])}}(t),null!==n.contentQueries&&Xy(n,t),o){const c=n.contentCheckHooks;null!==c&&Tl(t,c)}else{const c=n.contentHooks;null!==c&&Il(t,c,1),Cd(t,1)}!function MT(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)Rr(~r);else{const s=r,o=e[++i],a=e[++i];ZS(o,s),a(2,t[s])}}}finally{Rr(-1)}}(n,t);const a=n.components;null!==a&&function AT(n,t){for(let e=0;e<t.length;e++)KT(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&Mh(2,l,i),o){const c=n.viewCheckHooks;null!==c&&Tl(t,c)}else{const c=n.viewHooks;null!==c&&Il(t,c,2),Cd(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[2]&=-73,1024&t[2]&&(t[2]&=-1025,yd(t[3],-1))}finally{Ml()}}}function IT(n,t,e,i){const r=t[10],o=dm(t);try{!o&&r.begin&&r.begin(),o&&wa(n,t,i),ao(n,t,e,i)}finally{!o&&r.end&&r.end()}}function Qy(n,t,e,i,r){const s=Rn(),o=2&i;try{Rr(-1),o&&t.length>20&&By(n,t,20,!1),e(i,r)}finally{Rr(s)}}function _h(n,t,e){!pm()||(function BT(n,t,e,i){const r=e.directiveStart,s=e.directiveEnd;n.firstCreatePass||ia(e,t),Mn(i,t);const o=e.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Fi(l);c&&GT(t,e,l);const u=ra(t,n,a,e);Mn(u,t),null!==o&&UT(0,a-r,u,l,0,o),c&&(ni(e.index,t)[8]=u)}}(n,t,e,ti(e,t)),128==(128&e.flags)&&function HT(n,t,e){const i=e.directiveStart,r=e.directiveEnd,o=e.index,a=function JS(){return Se.lFrame.currentDirectiveIndex}();try{Rr(o);for(let l=i;l<r;l++){const c=n.data[l],u=t[l];wd(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&ov(c,u)}}finally{Rr(-1),wd(a)}}(n,t,e))}function wh(n,t,e=ti){const i=t.localNames;if(null!==i){let r=t.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?e(t,n):n[o];n[r++]=a}}}function Jy(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=Zl(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function Zl(n,t,e,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function kT(n,t){const e=[];for(let i=0;i<t;i++)e.push(i<n?null:Me);return e}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,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 o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function nv(n,t,e,i){const r=hv(t);null===e?r.push(i):(r.push(e),n.firstCreatePass&&fv(n).push(i,r.length-1))}function iv(n,t,e){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(t,r):e[i]=[t,r]}return e}function bh(n,t,e,i){let r=!1;if(pm()){const s=function jT(n,t,e){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Ly(e,o.selectors,!1)&&(r||(r=[]),Pl(ia(e,t),n,o.type),Fi(o)?(av(n,e),r.unshift(o)):r.push(o))}return r}(n,t,e),o=null===i?null:{"":-1};if(null!==s){r=!0,lv(e,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=oo(n,t,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];e.mergedAttrs=Ol(e.mergedAttrs,d.hostAttrs),cv(n,e,t,c,d),zT(c,d,o),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function FT(n,t){const i=t.directiveEnd,r=n.data,s=t.attrs,o=[];let a=null,l=null;for(let c=t.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||Ny(t)?null:WT(d,s);o.push(h),a=iv(d,c,a),l=iv(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=l}(n,e)}o&&function $T(n,t,e){if(t){const i=n.localNames=[];for(let r=0;r<t.length;r+=2){const s=e[t[r+1]];if(null==s)throw new K(-301,!1);i.push(t[r],s)}}}(e,i,o)}return e.mergedAttrs=Ol(e.mergedAttrs,e.attrs),r}function sv(n,t,e,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~t.index;(function VT(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function ov(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function av(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function zT(n,t,e){if(e){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)e[t.exportAs[i]]=n;Fi(t)&&(e[""]=n)}}function lv(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function cv(n,t,e,i,r){n.data[i]=r;const s=r.factory||(r.factory=as(r.type)),o=new ta(s,Fi(r),null);n.blueprint[i]=o,e[i]=o,sv(n,t,0,i,oo(n,e,r.hostVars,Me),r)}function GT(n,t,e){const i=ti(t,n),r=Jy(e),s=n[10],o=Jl(n,_a(n,r,null,e.onPush?64:16,i,t,s,s.createRenderer(i,e),null,null));n[t.index]=o}function nr(n,t,e,i,r,s){const o=ti(n,t);!function Dh(n,t,e,i,r,s,o){if(null==s)Bt(n)?n.removeAttribute(t,r,e):t.removeAttribute(r);else{const a=null==o?xe(s):o(s,i||"",r);Bt(n)?n.setAttribute(t,r,a,e):e?t.setAttributeNS(e,r,a):t.setAttribute(r,a)}}(t[11],o,s,n.value,e,i,r)}function UT(n,t,e,i,r,s){const o=s[t];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(e,d,c,u):e[u]=d}}}function WT(n,t){let e=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===e&&(e=[]),e.push(r,n[r],t[i+1])),i+=2}else i+=2;else i+=4}return e}function uv(n,t,e,i){return new Array(n,!0,!1,t,null,0,i,e,null,null)}function KT(n,t){const e=ni(t,n);if(md(e)){const i=e[1];80&e[2]?ao(i,e,i.template,e[8]):e[5]>0&&Ch(e)}}function Ch(n){for(let i=$d(n);null!==i;i=zd(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];ao(o,s,o.template,s[8])}else s[5]>0&&Ch(s)}const e=n[1].components;if(null!==e)for(let i=0;i<e.length;i++){const r=ni(e[i],n);md(r)&&r[5]>0&&Ch(r)}}function XT(n,t){const e=ni(t,n),i=e[1];(function QT(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(i,e),wa(i,e,e[8])}function Jl(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function Eh(n){for(;n;){n[2]|=64;const t=pa(n);if(IS(n)&&!t)return n;n=t}return null}function dv(n){!function xh(n){for(let t=0;t<n.components.length;t++){const e=n.components[t],i=Bd(e),r=i[1];IT(r,i,r.template,e)}}(n[8])}function Mh(n,t,e){Dd(0),t(n,e)}const JT=(()=>Promise.resolve(null))();function hv(n){return n[7]||(n[7]=[])}function fv(n){return n.cleanup||(n.cleanup=[])}function gv(n,t){const e=n[9],i=e?e.get(Nr,null):null;i&&i.handleError(t)}function mv(n,t,e,i,r){for(let s=0;s<e.length;){const o=e[s++],a=e[s++],l=t[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function br(n,t,e){const i=El(t,n);!function sy(n,t,e){Bt(n)?n.setValue(t,e):t.textContent=e}(n[11],i,e)}function ec(n,t,e){let i=e?n.styles:null,r=e?n.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const a=t[o];"number"==typeof a?s=a:1==s?r=Ju(r,a):2==s&&(i=Ju(i,a+": "+t[++o]+";"))}e?n.styles=i:n.stylesWithoutHost=i,e?n.classes=r:n.classesWithoutHost=r}const Ah=new ne("INJECTOR",-1);class yv{get(t,e=la){if(e===la){const i=new Error(`NullInjectorError: No provider for ${st(t)}!`);throw i.name="NullInjectorError",i}return e}}const Th=new ne("Set Injector scope."),ba={},nI={};let Ih;function vv(){return void 0===Ih&&(Ih=new yv),Ih}function _v(n,t=null,e=null,i){const r=wv(n,t,e,i);return r._resolveInjectorDefTypes(),r}function wv(n,t=null,e=null,i){return new iI(n,e,t||vv(),i)}class iI{constructor(t,e,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&Zi(e,a=>this.processProvider(a,t,e)),Zi([t],a=>this.processInjectorType(a,[],s)),this.records.set(Ah,lo(void 0,this));const o=this.records.get(Th);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:st(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,e=la,i=Te.Default){this.assertNotDestroyed();const r=zm(this),s=Ir(void 0);try{if(!(i&Te.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function dI(n){return"function"==typeof n||"object"==typeof n&&n instanceof ne}(t)&&td(t);a=l&&this.injectableDefInScope(l)?lo(kh(t),ba):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&Te.Self?vv():this.parent).get(t,e=i&Te.Optional&&e===la?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Hl]=o[Hl]||[]).unshift(st(t)),r)throw o;return function NM(n,t,e,i){const r=n[Hl];throw t[$m]&&r.unshift(t[$m]),n.message=function LM(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=st(t);if(Array.isArray(t))r=t.map(st).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):st(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(kM,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[Hl]=null,n}(o,t,"R3InjectorError",this.source)}throw o}finally{Ir(s),zm(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(st(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new K(205,!1)}processInjectorType(t,e,i){if(!(t=Re(t)))return!1;let r=Qg(t);const s=null==r&&t.ngModule||void 0,o=void 0===s?t:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=Qg(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{Zi(r.imports,d=>{this.processInjectorType(d,e,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];Zi(f,p=>this.processProvider(p,h,f||ft))}}this.injectorDefTypes.add(o);const l=as(o)||(()=>new o);this.records.set(o,lo(l,ba));const c=r.providers;if(null!=c&&!a){const u=t;Zi(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let r=co(t=Re(t))?t:Re(t&&t.provide);const s=function sI(n,t,e){return Dv(n)?lo(void 0,n.useValue):lo(function bv(n,t,e){let i;if(co(n)){const r=Re(n);return as(r)||kh(r)}if(Dv(n))i=()=>Re(n.useValue);else if(function aI(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Nd(n.deps||[]));else if(function oI(n){return!(!n||!n.useExisting)}(n))i=()=>S(Re(n.useExisting));else{const r=Re(n&&(n.useClass||n.provide));if(!function cI(n){return!!n.deps}(n))return as(r)||kh(r);i=()=>new r(...Nd(n.deps))}return i}(n),ba)}(t);if(co(t)||!0!==t.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=lo(void 0,ba,!0),o.factory=()=>Nd(o.multi),this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,s)}hydrate(t,e){return e.value===ba&&(e.value=nI,e.value=e.factory()),"object"==typeof e.value&&e.value&&function uI(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=Re(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function kh(n){const t=td(n),e=null!==t?t.factory:as(n);if(null!==e)return e;if(n instanceof ne)throw new K(204,!1);if(n instanceof Function)return function rI(n){const t=n.length;if(t>0)throw aa(t,"?"),new K(204,!1);const e=function yS(n){const t=n&&(n[yl]||n[Zg]);if(t){const e=function vS(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" 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 "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new K(204,!1)}function lo(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function Dv(n){return null!==n&&"object"==typeof n&&FM in n}function co(n){return"function"==typeof n}let wn=(()=>{class n{static create(e,i){var r;if(Array.isArray(e))return _v({name:""},i,e,"");{const s=null!==(r=e.name)&&void 0!==r?r:"";return _v({name:s},e.parent,e.providers,s)}}}return n.THROW_IF_NOT_FOUND=la,n.NULL=new yv,n.\u0275prov=R({token:n,providedIn:"any",factory:()=>S(Ah)}),n.__NG_ELEMENT_ID__=-1,n})();function _I(n,t){Al(Bd(n)[1],sn())}function H(n){let t=function Rv(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(Fi(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new K(903,"");r=t.\u0275dir}if(r){if(e){i.push(r);const o=n;o.inputs=Rh(n.inputs),o.declaredInputs=Rh(n.declaredInputs),o.outputs=Rh(n.outputs);const a=r.hostBindings;a&&CI(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&bI(n,l),c&&DI(n,c),Zu(n.inputs,r.inputs),Zu(n.declaredInputs,r.declaredInputs),Zu(n.outputs,r.outputs),Fi(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===H&&(e=!1)}}t=Object.getPrototypeOf(t)}!function wI(n){let t=0,e=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Ol(r.hostAttrs,e=Ol(e,r.hostAttrs))}}(i)}function Rh(n){return n===Hs?{}:n===ft?[]:n}function bI(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function DI(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,s)=>{t(i,r,s),e(i,r,s)}:t}function CI(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let tc=null;function uo(){if(!tc){const n=ct.Symbol;if(n&&n.iterator)tc=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const i=t[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(tc=i)}}}return tc}function Da(n){return!!Ph(n)&&(Array.isArray(n)||!(n instanceof Map)&&uo()in n)}function Ph(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function ir(n,t,e){return n[t]=e}function Ca(n,t){return n[t]}function An(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function hs(n,t,e,i){const r=An(n,t,e);return An(n,t+1,i)||r}function zt(n,t,e,i){const r=I();return An(r,Ws(),t)&&(Xe(),nr(Rt(),r,n,t,e,i)),zt}function pe(n,t,e,i,r,s,o,a){const l=I(),c=Xe(),u=n+20,d=c.firstCreatePass?function II(n,t,e,i,r,s,o,a,l){const c=t.consts,u=so(t,n,4,o||null,Fr(c,a));bh(t,e,u,Fr(c,l)),Al(t,u);const d=u.tViews=Zl(2,u,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,e,i,r,s,o):c.data[u];Qi(d,!1);const h=l[11].createComment("");zl(c,l,h,d),Mn(h,l),Jl(l,l[u]=uv(h,l,h,d)),Cl(d)&&_h(c,l,d),null!=o&&wh(l,d,a)}function fn(n){return Us(function XS(){return Se.lFrame.contextLView}(),20+n)}function g(n,t=Te.Default){const e=I();return null===e?S(n,t):Om(sn(),e,Re(n),t)}function L(n,t,e){const i=I();return An(i,Ws(),t)&&function oi(n,t,e,i,r,s,o,a){const l=ti(t,e);let u,c=t.inputs;!a&&null!=c&&(u=c[i])?(mv(n,e,u,i,r),Dl(t)&&function PT(n,t){const e=ni(t,n);16&e[2]||(e[2]|=64)}(e,t.index)):3&t.type&&(i=function RT(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,t.value||"",i):r,Bt(s)?s.setProperty(l,i,r):xd(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(Xe(),Rt(),i,n,t,i[11],e,!1),L}function Hh(n,t,e,i,r){const o=r?"class":"style";mv(n,e,t.inputs[o],o,i)}function oe(n,t,e,i){const r=I(),s=Xe(),o=20+n,a=r[11],l=r[o]=Ud(a,t,function aM(){return Se.lFrame.currentNamespace}()),c=s.firstCreatePass?function QI(n,t,e,i,r,s,o){const a=t.consts,c=so(t,n,2,r,Fr(a,s));return bh(t,e,c,Fr(a,o)),null!==c.attrs&&ec(c,c.attrs,!1),null!==c.mergedAttrs&&ec(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,s,r,0,t,e,i):s.data[o];Qi(c,!0);const u=c.mergedAttrs;null!==u&&kl(a,l,u);const d=c.classes;null!==d&&Zd(a,l,d);const h=c.styles;return null!==h&&vy(a,l,h),64!=(64&c.flags)&&zl(s,r,l,c),0===function US(){return Se.lFrame.elementDepthCount}()&&Mn(l,r),function WS(){Se.lFrame.elementDepthCount++}(),Cl(c)&&(_h(s,r,c),function Zy(n,t,e){if(ld(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,e[s],s)}}}(s,c,r)),null!==i&&wh(r,c),oe}function ye(){let n=sn();vd()?_d():(n=n.parent,Qi(n,!1));const t=n;!function YS(){Se.lFrame.elementDepthCount--}();const e=Xe();return e.firstCreatePass&&(Al(e,n),ld(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function hM(n){return 0!=(16&n.flags)}(t)&&Hh(e,t,I(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function fM(n){return 0!=(32&n.flags)}(t)&&Hh(e,t,I(),t.stylesWithoutHost,!1),ye}function Xt(n,t,e,i){return oe(n,t,e,i),ye(),Xt}function Nn(){return I()}function rc(n){return!!n&&"function"==typeof n.then}function n_(n){return!!n&&"function"==typeof n.subscribe}const i_=n_;function Le(n,t,e,i){const r=I(),s=Xe(),o=sn();return function s_(n,t,e,i,r,s,o,a){const l=Cl(i),u=n.firstCreatePass&&fv(n),d=t[8],h=hv(t);let f=!0;if(3&i.type||a){const D=ti(i,t),E=a?a(D):D,w=h.length,M=a?k=>a(Kt(k[i.index])):i.index;if(Bt(e)){let k=null;if(!a&&l&&(k=function JI(n,t,e,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===e&&r[s+1]===i){const a=t[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,t,r,i.index)),null!==k)(k.__ngLastListenerFn__||k).__ngNextListenerFn__=s,k.__ngLastListenerFn__=s,f=!1;else{s=zh(i,t,d,s,!1);const j=e.listen(E,r,s);h.push(s,j),u&&u.push(r,M,w,w+1)}}else s=zh(i,t,d,s,!0),E.addEventListener(r,s,o),h.push(s),u&&u.push(r,M,w,o)}else s=zh(i,t,d,s,!1);const p=i.outputs;let v;if(f&&null!==p&&(v=p[r])){const D=v.length;if(D)for(let E=0;E<D;E+=2){const be=t[v[E]][v[E+1]].subscribe(s),Fe=h.length;h.push(s,be),u&&u.push(r,i.index,Fe,-(Fe+1))}}}(s,r,r[11],o,n,t,!!e,i),Le}function o_(n,t,e,i){try{return!1!==e(i)}catch(r){return gv(n,r),!1}}function zh(n,t,e,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?ni(n.index,t):t;0==(32&t[2])&&Eh(a);let l=o_(t,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=o_(t,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function G(n=1){return function tM(n){return(Se.lFrame.contextLView=function nM(n,t){for(;n>0;)t=t[15],n--;return t}(n,Se.lFrame.contextLView))[8]}(n)}function ek(n,t){let e=null;const i=function uT(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r<t.length;r++){const s=t[r];if("*"!==s){if(null===i?Ly(n,s,!0):fT(i,s))return r}else e=r}return e}function Gh(n){const t=I()[16][6];if(!t.projection){const i=t.projection=aa(n?n.length:1,null),r=i.slice();let s=t.child;for(;null!==s;){const o=n?ek(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function Uh(n,t=0,e){const i=I(),r=Xe(),s=so(r,20+n,16,null,e||null);null===s.projection&&(s.projection=t),_d(),64!=(64&s.flags)&&function pA(n,t,e){yy(t[11],0,t,e,ly(n,e,t),hy(e.parent||t[6],e,t))}(r,i,s)}function m_(n,t,e,i,r){const s=n[e+1],o=null===t;let a=i?Pi(s):wr(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];ik(n[a],t)&&(l=!0,n[a+1]=i?ch(u):ah(u)),a=i?Pi(u):wr(u)}l&&(n[e+1]=i?ah(s):ch(s))}function ik(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&eo(n,t)>=0}function Dr(n,t,e){return Li(n,t,e,!1),Dr}function Qt(n,t){return Li(n,t,null,!0),Qt}function Li(n,t,e,i){const r=I(),s=Xe(),o=function vr(n){const t=Se.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}(2);s.firstUpdatePass&&function E_(n,t,e,i){const r=n.data;if(null===r[e+1]){const s=r[Rn()],o=function C_(n,t){return t>=n.expandoStartIndex}(n,e);(function A_(n,t){return 0!=(n.flags&(t?16:32))})(s,i)&&null===t&&!o&&(t=!1),t=function hk(n,t,e,i){const r=function bd(n){const t=Se.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Ea(e=Yh(null,n,t,e,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==r)if(e=Yh(r,n,t,e,i),null===s){let l=function fk(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==wr(i))return n[Pi(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=Yh(null,n,t,l[1],i),l=Ea(l,t.attrs,i),function pk(n,t,e,i){n[Pi(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else s=function gk(n,t,e){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=Ea(i,n[s].hostAttrs,e);return Ea(i,t.attrs,e)}(n,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),e}(r,s,t,i),function tk(n,t,e,i,r,s){let o=s?t.classBindings:t.styleBindings,a=Pi(o),l=wr(o);n[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||eo(d,u)>0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=Pi(n[a+1]);n[i+1]=Kl(h,a),0!==h&&(n[h+1]=lh(n[h+1],i)),n[a+1]=function yT(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=Kl(a,0),0!==a&&(n[a+1]=lh(n[a+1],i)),a=i;else n[i+1]=Kl(l,0),0===a?a=i:n[l+1]=lh(n[l+1],i),l=i;c&&(n[i+1]=ah(n[i+1])),m_(n,u,i,!0),m_(n,u,i,!1),function nk(n,t,e,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&eo(s,t)>=0&&(e[i+1]=ch(e[i+1]))}(t,u,n,i,s),o=Kl(a,l),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,i)}}(s,n,o,i),t!==Me&&An(r,o,t)&&function S_(n,t,e,i,r,s,o,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];sc(function $y(n){return 1==(1&n)}(c)?M_(l,t,e,r,wr(c),o):void 0)||(sc(s)||function jy(n){return 2==(2&n)}(c)&&(s=M_(l,null,e,r,a,o)),function mA(n,t,e,i,r){const s=Bt(n);if(t)r?s?n.addClass(e,i):e.classList.add(i):s?n.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:ri.DashCase;if(null==r)s?n.removeStyle(e,i,o):e.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=ri.Important),s?n.setStyle(e,i,r,o):e.style.setProperty(i,r,a?"important":"")}}}(i,o,El(Rn(),e),r,s))}(s,s.data[Rn()],r,r[11],n,r[o+1]=function vk(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=st(si(n)))),n}(t,e),i,o)}function Yh(n,t,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(s=t[a],i=Ea(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(e.directiveStylingLast=a),i}function Ea(n,t,e){const i=e?1:2;let r=-1;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),ii(n,o,!!e||t[++s]))}return void 0===n?null:n}function M_(n,t,e,i,r,s){const o=null===t;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Me&&(h=d?ft:void 0);let f=d?Fd(h,i):u===i?h:void 0;if(c&&!sc(f)&&(f=Fd(l,i)),sc(f)&&(a=f,o))return a;const p=n[r+1];r=o?Pi(p):wr(p)}if(null!==t){let l=s?t.residualClasses:t.residualStyles;null!=l&&(a=Fd(l,i))}return a}function sc(n){return void 0!==n}function Ln(n,t=""){const e=I(),i=Xe(),r=n+20,s=i.firstCreatePass?so(i,r,1,t,null):i.data[r],o=e[r]=function Gd(n,t){return Bt(n)?n.createText(t):n.createTextNode(t)}(e[11],t);zl(i,e,o,s),Qi(s,!1)}function fs(n){return Co("",n,""),fs}function Co(n,t,e){const i=I(),r=function fo(n,t,e,i){return An(n,Ws(),e)?t+xe(e)+i:Me}(i,n,t,e);return r!==Me&&br(i,Rn(),r),Co}const ps=void 0;var Vk=["en",[["a","p"],["AM","PM"],ps],[["AM","PM"],ps,ps],[["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"]],ps,[["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"]],ps,[["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}",ps,"{1} 'at' {0}",ps],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Lk(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Eo={};function Vn(n){const t=function Bk(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=K_(t);if(e)return e;const i=t.split("-")[0];if(e=K_(i),e)return e;if("en"===i)return Vk;throw new Error(`Missing locale data for the locale "${n}".`)}function K_(n){return n in Eo||(Eo[n]=ct.ng&&ct.ng.common&&ct.ng.common.locales&&ct.ng.common.locales[n]),Eo[n]}var U=(()=>((U=U||{})[U.LocaleId=0]="LocaleId",U[U.DayPeriodsFormat=1]="DayPeriodsFormat",U[U.DayPeriodsStandalone=2]="DayPeriodsStandalone",U[U.DaysFormat=3]="DaysFormat",U[U.DaysStandalone=4]="DaysStandalone",U[U.MonthsFormat=5]="MonthsFormat",U[U.MonthsStandalone=6]="MonthsStandalone",U[U.Eras=7]="Eras",U[U.FirstDayOfWeek=8]="FirstDayOfWeek",U[U.WeekendRange=9]="WeekendRange",U[U.DateFormat=10]="DateFormat",U[U.TimeFormat=11]="TimeFormat",U[U.DateTimeFormat=12]="DateTimeFormat",U[U.NumberSymbols=13]="NumberSymbols",U[U.NumberFormats=14]="NumberFormats",U[U.CurrencyCode=15]="CurrencyCode",U[U.CurrencySymbol=16]="CurrencySymbol",U[U.CurrencyName=17]="CurrencyName",U[U.Currencies=18]="Currencies",U[U.Directionality=19]="Directionality",U[U.PluralCase=20]="PluralCase",U[U.ExtraData=21]="ExtraData",U))();const oc="en-US";let X_=oc;class bw{}class HO{resolveComponentFactory(t){throw function BO(n){const t=Error(`No component factory found for ${st(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Cr=(()=>{class n{}return n.NULL=new HO,n})();function jO(){return So(sn(),I())}function So(n,t){return new de(ti(n,t))}let de=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=jO,n})();function $O(n){return n instanceof de?n.nativeElement:n}class Ta{}let ln=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function GO(){const n=I(),e=ni(sn().index,n);return function zO(n){return n[11]}(Xi(e)?e:n)}(),n})(),UO=(()=>{class n{}return n.\u0275prov=R({token:n,providedIn:"root",factory:()=>null}),n})();class Br{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const WO=new Br("13.4.0"),ef={};function dc(n,t,e,i,r=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&i.push(Kt(s)),Oi(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&dc(l[1],l,c,i)}const o=e.type;if(8&o)dc(n,t,e.child,i);else if(32&o){const a=jd(e,t);let l;for(;l=a();)i.push(l)}else if(16&o){const a=my(t,e);if(Array.isArray(a))i.push(...a);else{const l=pa(t[16]);dc(l[1],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}class Ia{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return dc(e,t,e.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(Oi(t)){const e=t[8],i=e?e.indexOf(this):-1;i>-1&&(Wd(t,i),Vl(e,i))}this._attachedToViewContainer=!1}ay(this._lView[1],this._lView)}onDestroy(t){nv(this._lView[1],this._lView,null,t)}markForCheck(){Eh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Sh(n,t,e){const i=t[10];i.begin&&i.begin();try{ao(n,t,n.template,e)}catch(r){throw gv(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new K(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function oA(n,t){ga(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new K(902,"");this._appRef=t}}class YO extends Ia{constructor(t){super(t),this._view=t}detectChanges(){dv(this._view)}checkNoChanges(){}get context(){return null}}class Cw extends Cr{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=_n(t);return new tf(e,this.ngModule)}}function Ew(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class tf extends bw{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function gT(n){return n.map(pT).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Ew(this.componentDef.inputs)}get outputs(){return Ew(this.componentDef.outputs)}create(t,e,i,r){const s=(r=r||this.ngModule)?function KO(n,t){return{get:(e,i,r)=>{const s=n.get(e,ef,r);return s!==ef||i===ef?s:t.get(e,i,r)}}}(t,r.injector):t,o=s.get(Ta,um),a=s.get(UO,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function tv(n,t,e){if(Bt(n))return n.selectRootElement(t,e===Ii.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Ud(o.createRenderer(null,this.componentDef),c,function qO(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function Fv(n,t){return{components:[],scheduler:n||nT,clean:JT,playerHandler:t||null,flags:0}}(),f=Zl(0,null,null,1,0,null,null,null,null,null),p=_a(null,f,h,d,null,null,o,l,a,s);let v,D;Sl(p);try{const E=function kv(n,t,e,i,r,s){const o=e[1];e[20]=n;const l=so(o,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(ec(l,c,!0),null!==n&&(kl(r,n,c),null!==l.classes&&Zd(r,n,l.classes),null!==l.styles&&vy(r,n,l.styles)));const u=i.createRenderer(n,t),d=_a(e,Jy(t),null,t.onPush?64:16,e[20],l,i,u,s||null,null);return o.firstCreatePass&&(Pl(ia(l,e),o,t.type),av(o,l),lv(l,e.length,1)),Jl(e,d),e[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)kl(l,u,["ng-version",WO.full]);else{const{attrs:w,classes:M}=function mT(n){const t=[],e=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&t.push(s,n[++i]):8===r&&e.push(s);else{if(!Ri(r))break;r=s}i++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);w&&kl(l,u,w),M&&M.length>0&&Zd(l,u,M.join(" "))}if(D=gd(f,20),void 0!==e){const w=D.projection=[];for(let M=0;M<this.ngContentSelectors.length;M++){const k=e[M];w.push(null!=k?Array.from(k):null)}}v=function Ov(n,t,e,i,r){const s=e[1],o=function LT(n,t,e){const i=sn();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),cv(n,i,t,oo(n,t,1,null),e));const r=ra(t,n,i.directiveStart,i);Mn(r,t);const s=ti(i,t);return s&&Mn(s,t),r}(s,e,t);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,t)),t.contentQueries){const l=sn();t.contentQueries(1,o,l.directiveStart)}const a=sn();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Rr(a.index),sv(e[1],a,0,a.directiveStart,a.directiveEnd,t),ov(t,o)),o}(E,this.componentDef,p,h,[_I]),wa(f,p,null)}finally{Ml()}return new QO(this.componentType,v,So(D,p),p,D)}}class QO extends class VO{}{constructor(t,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new YO(r),this.componentType=t}get injector(){return new Ks(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Mo{}const Ao=new Map;class Mw extends Mo{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Cw(this);const i=fi(t);this._bootstrapComponents=tr(i.bootstrap),this._r3Injector=wv(t,e,[{provide:Mo,useValue:this},{provide:Cr,useValue:this.componentFactoryResolver}],st(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=wn.THROW_IF_NOT_FOUND,i=Te.Default){return t===wn||t===Mo||t===Ah?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class nf extends class JO{}{constructor(t){super(),this.moduleType=t,null!==fi(t)&&function eF(n){const t=new Set;!function e(i){const r=fi(i,!0),s=r.id;null!==s&&(function xw(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${st(t)} vs ${st(t.name)}`)}(s,Ao.get(s),i),Ao.set(s,i));const o=tr(r.imports);for(const a of o)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new Mw(this.moduleType,t)}}function Bn(n,t,e){const i=Fn()+n,r=I();return r[i]===Me?ir(r,i,e?t.call(e):t()):Ca(r,i)}function gs(n,t,e,i){return kw(I(),Fn(),n,t,e,i)}function pn(n,t,e,i,r){return Ow(I(),Fn(),n,t,e,i,r)}function rf(n,t,e,i,r,s){return Fw(I(),Fn(),n,t,e,i,r,s)}function sf(n,t,e,i,r,s,o,a){const l=Fn()+n,c=I(),u=function yi(n,t,e,i,r,s){const o=hs(n,t,e,i);return hs(n,t+2,r,s)||o}(c,l,e,i,r,s);return An(c,l+4,o)||u?ir(c,l+5,a?t.call(a,e,i,r,s,o):t(e,i,r,s,o)):Ca(c,l+5)}function af(n,t,e,i){return function Pw(n,t,e,i,r,s){let o=t+e,a=!1;for(let l=0;l<r.length;l++)An(n,o++,r[l])&&(a=!0);return a?ir(n,o,i.apply(s,r)):ka(n,o)}(I(),Fn(),n,t,e,i)}function ka(n,t){const e=n[t];return e===Me?void 0:e}function kw(n,t,e,i,r,s){const o=t+e;return An(n,o,r)?ir(n,o+1,s?i.call(s,r):i(r)):ka(n,o+1)}function Ow(n,t,e,i,r,s,o){const a=t+e;return hs(n,a,r,s)?ir(n,a+2,o?i.call(o,r,s):i(r,s)):ka(n,a+2)}function Fw(n,t,e,i,r,s,o,a){const l=t+e;return function nc(n,t,e,i,r){const s=hs(n,t,e,i);return An(n,t+2,r)||s}(n,l,r,s,o)?ir(n,l+3,a?i.call(a,r,s,o):i(r,s,o)):ka(n,l+3)}function It(n,t){const e=Xe();let i;const r=n+20;e.firstCreatePass?(i=function nF(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const s=i.factory||(i.factory=as(i.type)),o=Ir(g);try{const a=Fl(!1),l=s();return Fl(a),function kI(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,I(),r,l),l}finally{Ir(o)}}function Bi(n,t,e,i){const r=n+20,s=I(),o=Us(s,r);return Oa(s,r)?Ow(s,Fn(),t,o.transform,e,i,o):o.transform(e,i)}function Hi(n,t,e,i,r){const s=n+20,o=I(),a=Us(o,s);return Oa(o,s)?Fw(o,Fn(),t,a.transform,e,i,r,a):a.transform(e,i,r)}function Oa(n,t){return n[1].data[t].pure}function lf(n){return t=>{setTimeout(n,void 0,t)}}const ie=class sF extends O{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,s,o;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const d=t;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=lf(l),a&&(a=lf(a)),c&&(c=lf(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof he&&t.add(u),u}};function oF(){return this._results[uo()]()}class cf{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 e=uo(),i=cf.prototype;i[e]||(i[e]=oF)}get changes(){return this._changes||(this._changes=new ie)}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,e){return this._results.reduce(t,e)}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,e){const i=this;i.dirty=!1;const r=mi(t);(this._changesDetected=!function DM(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=t[i];if(e&&(r=e(r),s=e(s)),s!==r)return!1}return!0}(i._results,r,e))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[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 De=(()=>{class n{}return n.__NG_ELEMENT_ID__=cF,n})();const aF=De,lF=class extends aF{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=_a(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(e)),wa(e,i,t),new Ia(i)}};function cF(){return fc(sn(),I())}function fc(n,t){return 4&n.type?new lF(t,n,So(n,t)):null}let Un=(()=>{class n{}return n.__NG_ELEMENT_ID__=uF,n})();function uF(){return Vw(sn(),I())}const dF=Un,Nw=class extends dF{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return So(this._hostTNode,this._hostLView)}get injector(){return new Ks(this._hostTNode,this._hostLView)}get parentInjector(){const t=Rl(this._hostTNode,this._hostLView);if(Mm(t)){const e=qs(t,this._hostLView),i=Ys(t);return new Ks(e[1].data[i+8],e)}return new Ks(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Lw(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const r=t.createEmbeddedView(e||{});return this.insert(r,i),r}createComponent(t,e,i,r,s){const o=t&&!function oa(n){return"function"==typeof n}(t);let a;if(o)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?t:new tf(_n(t)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(Mo,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function GS(n){return Oi(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new Nw(d,d[6],d[3]);h.detach(h.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function lA(n,t,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=t),i<s-10?(t[4]=e[r],Lm(e,10+i,t)):(e.push(t),t[4]=null),t[3]=e;const o=t[17];null!==o&&e!==o&&function cA(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=128}(r,i,o,s);const a=Kd(s,o),l=i[11],c=$l(l,o[7]);return null!==c&&function sA(n,t,e,i,r,s){i[0]=r,i[6]=t,ga(n,i,e,1,r,s)}(r,o[6],l,i,c,a),t.attachToViewContainerRef(),Lm(uf(o),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=Lw(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),i=Wd(this._lContainer,e);i&&(Vl(uf(this._lContainer),e),ay(i[1],i))}detach(t){const e=this._adjustIndex(t,-1),i=Wd(this._lContainer,e);return i&&null!=Vl(uf(this._lContainer),e)?new Ia(i):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function Lw(n){return n[8]}function uf(n){return n[8]||(n[8]=[])}function Vw(n,t){let e;const i=t[n.index];if(Oi(i))e=i;else{let r;if(8&n.type)r=Kt(i);else{const s=t[11];r=s.createComment("");const o=ti(n,t);cs(s,$l(s,o),r,function fA(n,t){return Bt(n)?n.nextSibling(t):t.nextSibling}(s,o),!1)}t[n.index]=e=uv(i,t,r,n),Jl(t,e)}return new Nw(e,n,t)}class df{constructor(t){this.queryList=t,this.matches=null}clone(){return new df(this.queryList)}setDirty(){this.queryList.setDirty()}}class hf{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let s=0;s<i;s++){const o=e.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new hf(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Ww(t,e).matches&&this.queries[e].setDirty()}}class Bw{constructor(t,e,i=null){this.predicate=t,this.flags=e,this.read=i}}class ff{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,s=this.getByIndex(i).embeddedTView(t,r);s&&(s.indexInDeclarationView=i,null!==e?e.push(s):e=[s])}return null!==e?new ff(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class pf{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new pf(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(t,e,pF(e,s)),this.matchTNodeWithReadOption(t,e,Nl(e,t,s,!1,!1))}else i===De?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Nl(e,t,i,!1,!1))}matchTNodeWithReadOption(t,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===de||r===Un||r===De&&4&e.type)this.addMatch(e.index,-2);else{const s=Nl(e,t,r,!1,!1);null!==s&&this.addMatch(e.index,s)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function pF(n,t){const e=n.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===t)return e[i+1];return null}function mF(n,t,e,i){return-1===e?function gF(n,t){return 11&n.type?So(n,t):4&n.type?fc(n,t):null}(t,n):-2===e?function yF(n,t,e){return e===de?So(t,n):e===De?fc(t,n):e===Un?Vw(t,n):void 0}(n,t,i):ra(n,n[1],e,t)}function Hw(n,t,e,i){const r=t[19].queries[i];if(null===r.matches){const s=n.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:mF(t,s[c],o[l+1],e.metadata.read))}r.matches=a}return r.matches}function gf(n,t,e,i){const r=n.queries.getByIndex(e),s=r.matches;if(null!==s){const o=Hw(n,t,r,e);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=t[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&gf(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];gf(f[1],f,c,i)}}}}}return i}function jw(n){const t=I(),e=Xe(),i=vm();Dd(i+1);const r=Ww(e,i);if(n.dirty&&dm(t)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?gf(e,t,i,[]):Hw(e,t,r,i);n.reset(s,$O),n.notifyOnChanges()}return!0}return!1}function $w(n,t,e){const i=Xe();i.firstCreatePass&&(function Uw(n,t,e){null===n.queries&&(n.queries=new ff),n.queries.track(new pf(t,e))}(i,new Bw(n,t,e),-1),2==(2&t)&&(i.staticViewQueries=!0)),function Gw(n,t,e){const i=new cf(4==(4&e));nv(n,t,i,i.destroy),null===t[19]&&(t[19]=new hf),t[19].queries.push(new df(i))}(i,I(),t)}function Ww(n,t){return n.queries.getByIndex(t)}function vi(n,t){return fc(n,t)}const x=kd("Input",n=>({bindingPropertyName:n})),ut=kd("Output",n=>({bindingPropertyName:n})),Ra=kd("HostListener",(n,t)=>({eventName:n,args:t}));function mc(...n){}const cb=new ne("Application Initializer");let bf=(()=>{class n{constructor(e){this.appInits=e,this.resolve=mc,this.reject=mc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(rc(s))e.push(s);else if(i_(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(S(cb,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Pa=new ne("AppId",{providedIn:"root",factory:function ub(){return`${Df()}${Df()}${Df()}`}});function Df(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const db=new ne("Platform Initializer"),_i=new ne("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),hb=new ne("appBootstrapListener"),bn=new ne("LocaleId",{providedIn:"root",factory:()=>to(bn,Te.Optional|Te.SkipSelf)||function LF(){return"undefined"!=typeof $localize&&$localize.locale||oc}()}),jF=(()=>Promise.resolve(0))();function Cf(n){"undefined"==typeof Zone?jF.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class $e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function $F(){let n=ct.requestAnimationFrame,t=ct.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function UF(n){const t=()=>{!function GF(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(ct,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,xf(n),n.isCheckStableRunning=!0,Ef(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),xf(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return fb(n),e.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),pb(n)}},onInvoke:(e,i,r,s,o,a,l)=>{try{return fb(n),e.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),pb(n)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,xf(n),Ef(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if($e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,zF,mc,mc);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const zF={};function Ef(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function xf(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function fb(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function pb(n){n._nesting--,Ef(n)}class WF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ie,this.onMicrotaskEmpty=new ie,this.onStable=new ie,this.onError=new ie}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}let Sf=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{$e.assertNotInAngularZone(),Cf(()=>{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())Cf(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(S($e))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),YF=(()=>{class n{constructor(){this._applications=new Map,Mf.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Mf.findTestabilityInTree(this,e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class qF{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let Mf=new qF,ms=null;const gb=new ne("AllowMultipleToken"),mb=new ne("PlatformOnDestroy");function yb(n,t,e=[]){const i=`Platform: ${t}`,r=new ne(i);return(s=[])=>{let o=Af();if(!o||o.injector.get(gb,!1)){const a=[...e,...s,{provide:r,useValue:!0}];n?n(a):function ZF(n){if(ms&&!ms.get(gb,!1))throw new K(400,"");ms=n;const t=n.get(vb),e=n.get(db,null);e&&e.forEach(i=>i())}(function eR(n=[],t){return wn.create({name:t,providers:[{provide:Th,useValue:"platform"},{provide:mb,useValue:()=>ms=null},...n]})}(a,i))}return function JF(n){const t=Af();if(!t)throw new K(401,"");return t}()}}function Af(){var n;return null!==(n=null==ms?void 0:ms.get(vb))&&void 0!==n?n:null}let vb=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function tR(n,t){let e;return e="noop"===n?new WF:("zone.js"===n?void 0:n)||new $e({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:$e,useValue:a}];return a.run(()=>{const c=wn.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(Nr,null);if(!d)throw new K(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{Tf(this._modules,u),h.unsubscribe()})}),function nR(n,t,e){try{const i=e();return rc(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(bf);return h.runInitializers(),h.donePromise.then(()=>(function zk(n){Jn(n,"Expected localeId to be defined"),"string"==typeof n&&(X_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(bn,oc)||oc),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const r=_b({},i);return function XF(n,t,e){const i=new nf(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(yc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new K(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new K(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(mb,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(S(wn))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function _b(n,t){return Array.isArray(t)?t.reduce(_b,n):Object.assign(Object.assign({},n),t)}let yc=(()=>{class n{constructor(e,i,r,s){this._zone=e,this._injector=i,this._exceptionHandler=r,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 o=new Y(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new Y(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{$e.assertNotInAngularZone(),Cf(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{$e.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=qt(o,a.pipe(Ai()))}bootstrap(e,i){if(!this._initStatus.done)throw new K(405,"");let r;r=e instanceof bw?e:this._injector.get(Cr).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const s=function QF(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Mo),a=r.create(wn.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Sf,null),u=c&&a.injector.get(YF);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Tf(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new K(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Tf(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(hb,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(S($e),S(wn),S(Nr),S(bf))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Tf(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let bb=!0,Er=(()=>{class n{}return n.__NG_ELEMENT_ID__=sR,n})();function sR(n){return function oR(n,t,e){if(Dl(n)&&!e){const i=ni(n.index,t);return new Ia(i,i)}return 47&n.type?new Ia(t[16],t):null}(sn(),I(),16==(16&n))}class Sb{constructor(){}supports(t){return Da(t)}create(t){return new hR(t)}}const dR=(n,t)=>t;class hR{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||dR}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex<Ab(i,r,s)?e:i,a=Ab(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&t(o,a,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Da(t))throw new K(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,s,o,e=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)s=t[a],o=this._trackByFn(a,s),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,o,a),i=!0),e=e._next}else r=0,function TI(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[uo()]();let i;for(;!(i=e.next()).done;)t(i.value)}}(t,a=>{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),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,e,i,r){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,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new fR(e,i),s,r),t}_verifyReinsertion(t,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}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,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Mb),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 e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Mb),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,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class fR{constructor(t,e){this.item=t,this.trackById=e,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 pR{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,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Mb{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new pR,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ab(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+t+r}class Tb{constructor(){}supports(t){return t instanceof Map||Ph(t)}create(){return new gR}}class gR{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 e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Ph(t)))throw new K(900,"")}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;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,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new mR(t);return this._records.set(t,i),i.currentValue=e,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,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,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,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class mR{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 Ib(){return new Na([new Sb])}let Na=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||Ib()),deps:[[n,new da,new ls]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new K(901,"")}}return n.\u0275prov=R({token:n,providedIn:"root",factory:Ib}),n})();function kb(){return new vs([new Tb])}let vs=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||kb()),deps:[[n,new da,new ls]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(i)return i;throw new K(901,"")}}return n.\u0275prov=R({token:n,providedIn:"root",factory:kb}),n})();const _R=yb(null,"core",[]);let wR=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(S(yc))},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({}),n})(),wc=null;function or(){return wc}const ke=new ne("DocumentToken");let La=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:function(){return function ER(){return S(Ob)}()},providedIn:"platform"}),n})(),Ob=(()=>{class n extends La{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return or().getBaseHref(this._doc)}onPopState(e){const i=or().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=or().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,r){Fb()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){Fb()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(S(ke))},n.\u0275prov=R({token:n,factory:function(){return function xR(){return new Ob(S(ke))}()},providedIn:"platform"}),n})();function Fb(){return!!window.history.pushState}function Rb(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function Pb(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function _s(n){return n&&"?"!==n[0]?"?"+n:n}let Rf=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:function(){return function SR(n){const t=S(ke).location;return new AR(S(La),t&&t.origin||"")}()},providedIn:"root"}),n})();const MR=new ne("appBaseHref");let AR=(()=>{class n extends Rf{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Rb(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+_s(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+_s(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+_s(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(S(La),S(MR,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),Nb=(()=>{class n{constructor(e,i){this._subject=new ie,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Pb(Lb(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+_s(i))}normalize(e){return n.stripTrailingSlash(function IR(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,Lb(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._platformStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+_s(i)),r)}replaceState(e,i="",r=null){this._platformStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+_s(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=_s,n.joinWithSlash=Rb,n.stripTrailingSlash=Pb,n.\u0275fac=function(e){return new(e||n)(S(Rf),S(La))},n.\u0275prov=R({token:n,factory:function(){return function TR(){return new Nb(S(Rf),S(La))}()},providedIn:"root"}),n})();function Lb(n){return n.replace(/\/index.html$/,"")}var Zt=(()=>((Zt=Zt||{})[Zt.Zero=0]="Zero",Zt[Zt.One=1]="One",Zt[Zt.Two=2]="Two",Zt[Zt.Few=3]="Few",Zt[Zt.Many=4]="Many",Zt[Zt.Other=5]="Other",Zt))(),Gt=(()=>((Gt=Gt||{})[Gt.Format=0]="Format",Gt[Gt.Standalone=1]="Standalone",Gt))(),ze=(()=>((ze=ze||{})[ze.Narrow=0]="Narrow",ze[ze.Abbreviated=1]="Abbreviated",ze[ze.Wide=2]="Wide",ze[ze.Short=3]="Short",ze))(),Pt=(()=>((Pt=Pt||{})[Pt.Short=0]="Short",Pt[Pt.Medium=1]="Medium",Pt[Pt.Long=2]="Long",Pt[Pt.Full=3]="Full",Pt))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function bc(n,t){return bi(Vn(n)[U.DateFormat],t)}function Dc(n,t){return bi(Vn(n)[U.TimeFormat],t)}function Cc(n,t){return bi(Vn(n)[U.DateTimeFormat],t)}function wi(n,t){const e=Vn(n),i=e[U.NumberSymbols][t];if(void 0===i){if(t===ge.CurrencyDecimal)return e[U.NumberSymbols][ge.Decimal];if(t===ge.CurrencyGroup)return e[U.NumberSymbols][ge.Group]}return i}const LR=function q_(n){return Vn(n)[U.PluralCase]};function Bb(n){if(!n[U.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[U.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function bi(n,t){for(let e=t;e>-1;e--)if(void 0!==n[e])return n[e];throw new Error("Locale data API: locale data undefined")}function Nf(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const zR=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Va={},GR=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var cn=(()=>((cn=cn||{})[cn.Short=0]="Short",cn[cn.ShortGMT=1]="ShortGMT",cn[cn.Long=2]="Long",cn[cn.Extended=3]="Extended",cn))(),ve=(()=>((ve=ve||{})[ve.FullYear=0]="FullYear",ve[ve.Month=1]="Month",ve[ve.Date=2]="Date",ve[ve.Hours=3]="Hours",ve[ve.Minutes=4]="Minutes",ve[ve.Seconds=5]="Seconds",ve[ve.FractionalSeconds=6]="FractionalSeconds",ve[ve.Day=7]="Day",ve))(),Pe=(()=>((Pe=Pe||{})[Pe.DayPeriods=0]="DayPeriods",Pe[Pe.Days=1]="Days",Pe[Pe.Months=2]="Months",Pe[Pe.Eras=3]="Eras",Pe))();function un(n,t,e,i){let r=function JR(n){if($b(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[r,s=1,o=1]=n.split("-").map(a=>+a);return Ec(r,s-1,o)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let i;if(i=n.match(zR))return function e1(n){const t=new Date(0);let e=0,i=0;const r=n[8]?t.setUTCFullYear:t.setFullYear,s=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),i=Number(n[9]+n[11])),r.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));const o=Number(n[4]||0)-e,a=Number(n[5]||0)-i,l=Number(n[6]||0),c=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return s.call(t,o,a,l,c),t}(i)}const t=new Date(n);if(!$b(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=xr(e,t)||t;let a,o=[];for(;t;){if(a=GR.exec(t),!a){o.push(t);break}{o=o.concat(a.slice(1));const u=o.pop();if(!u)break;t=u}}let l=r.getTimezoneOffset();i&&(l=jb(i,l),r=function ZR(n,t,e){const i=e?-1:1,r=n.getTimezoneOffset();return function QR(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,i*(jb(t,r)-r))}(r,i,!0));let c="";return o.forEach(u=>{const d=function XR(n){if(Vf[n])return Vf[n];let t;switch(n){case"G":case"GG":case"GGG":t=yt(Pe.Eras,ze.Abbreviated);break;case"GGGG":t=yt(Pe.Eras,ze.Wide);break;case"GGGGG":t=yt(Pe.Eras,ze.Narrow);break;case"y":t=Jt(ve.FullYear,1,0,!1,!0);break;case"yy":t=Jt(ve.FullYear,2,0,!0,!0);break;case"yyy":t=Jt(ve.FullYear,3,0,!1,!0);break;case"yyyy":t=Jt(ve.FullYear,4,0,!1,!0);break;case"Y":t=Ac(1);break;case"YY":t=Ac(2,!0);break;case"YYY":t=Ac(3);break;case"YYYY":t=Ac(4);break;case"M":case"L":t=Jt(ve.Month,1,1);break;case"MM":case"LL":t=Jt(ve.Month,2,1);break;case"MMM":t=yt(Pe.Months,ze.Abbreviated);break;case"MMMM":t=yt(Pe.Months,ze.Wide);break;case"MMMMM":t=yt(Pe.Months,ze.Narrow);break;case"LLL":t=yt(Pe.Months,ze.Abbreviated,Gt.Standalone);break;case"LLLL":t=yt(Pe.Months,ze.Wide,Gt.Standalone);break;case"LLLLL":t=yt(Pe.Months,ze.Narrow,Gt.Standalone);break;case"w":t=Lf(1);break;case"ww":t=Lf(2);break;case"W":t=Lf(1,!0);break;case"d":t=Jt(ve.Date,1);break;case"dd":t=Jt(ve.Date,2);break;case"c":case"cc":t=Jt(ve.Day,1);break;case"ccc":t=yt(Pe.Days,ze.Abbreviated,Gt.Standalone);break;case"cccc":t=yt(Pe.Days,ze.Wide,Gt.Standalone);break;case"ccccc":t=yt(Pe.Days,ze.Narrow,Gt.Standalone);break;case"cccccc":t=yt(Pe.Days,ze.Short,Gt.Standalone);break;case"E":case"EE":case"EEE":t=yt(Pe.Days,ze.Abbreviated);break;case"EEEE":t=yt(Pe.Days,ze.Wide);break;case"EEEEE":t=yt(Pe.Days,ze.Narrow);break;case"EEEEEE":t=yt(Pe.Days,ze.Short);break;case"a":case"aa":case"aaa":t=yt(Pe.DayPeriods,ze.Abbreviated);break;case"aaaa":t=yt(Pe.DayPeriods,ze.Wide);break;case"aaaaa":t=yt(Pe.DayPeriods,ze.Narrow);break;case"b":case"bb":case"bbb":t=yt(Pe.DayPeriods,ze.Abbreviated,Gt.Standalone,!0);break;case"bbbb":t=yt(Pe.DayPeriods,ze.Wide,Gt.Standalone,!0);break;case"bbbbb":t=yt(Pe.DayPeriods,ze.Narrow,Gt.Standalone,!0);break;case"B":case"BB":case"BBB":t=yt(Pe.DayPeriods,ze.Abbreviated,Gt.Format,!0);break;case"BBBB":t=yt(Pe.DayPeriods,ze.Wide,Gt.Format,!0);break;case"BBBBB":t=yt(Pe.DayPeriods,ze.Narrow,Gt.Format,!0);break;case"h":t=Jt(ve.Hours,1,-12);break;case"hh":t=Jt(ve.Hours,2,-12);break;case"H":t=Jt(ve.Hours,1);break;case"HH":t=Jt(ve.Hours,2);break;case"m":t=Jt(ve.Minutes,1);break;case"mm":t=Jt(ve.Minutes,2);break;case"s":t=Jt(ve.Seconds,1);break;case"ss":t=Jt(ve.Seconds,2);break;case"S":t=Jt(ve.FractionalSeconds,1);break;case"SS":t=Jt(ve.FractionalSeconds,2);break;case"SSS":t=Jt(ve.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Sc(cn.Short);break;case"ZZZZZ":t=Sc(cn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Sc(cn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Sc(cn.Long);break;default:return null}return Vf[n]=t,t}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Ec(n,t,e){const i=new Date(0);return i.setFullYear(n,t,e),i.setHours(0,0,0),i}function xr(n,t){const e=function kR(n){return Vn(n)[U.LocaleId]}(n);if(Va[e]=Va[e]||{},Va[e][t])return Va[e][t];let i="";switch(t){case"shortDate":i=bc(n,Pt.Short);break;case"mediumDate":i=bc(n,Pt.Medium);break;case"longDate":i=bc(n,Pt.Long);break;case"fullDate":i=bc(n,Pt.Full);break;case"shortTime":i=Dc(n,Pt.Short);break;case"mediumTime":i=Dc(n,Pt.Medium);break;case"longTime":i=Dc(n,Pt.Long);break;case"fullTime":i=Dc(n,Pt.Full);break;case"short":const r=xr(n,"shortTime"),s=xr(n,"shortDate");i=xc(Cc(n,Pt.Short),[r,s]);break;case"medium":const o=xr(n,"mediumTime"),a=xr(n,"mediumDate");i=xc(Cc(n,Pt.Medium),[o,a]);break;case"long":const l=xr(n,"longTime"),c=xr(n,"longDate");i=xc(Cc(n,Pt.Long),[l,c]);break;case"full":const u=xr(n,"fullTime"),d=xr(n,"fullDate");i=xc(Cc(n,Pt.Full),[u,d])}return i&&(Va[e][t]=i),i}function xc(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,i){return null!=t&&i in t?t[i]:e})),n}function ji(n,t,e="-",i,r){let s="";(n<0||r&&n<=0)&&(r?n=1-n:(n=-n,s=e));let o=String(n);for(;o.length<t;)o="0"+o;return i&&(o=o.substr(o.length-t)),s+o}function Jt(n,t,e=0,i=!1,r=!1){return function(s,o){let a=function WR(n,t){switch(n){case ve.FullYear:return t.getFullYear();case ve.Month:return t.getMonth();case ve.Date:return t.getDate();case ve.Hours:return t.getHours();case ve.Minutes:return t.getMinutes();case ve.Seconds:return t.getSeconds();case ve.FractionalSeconds:return t.getMilliseconds();case ve.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${n}".`)}}(n,s);if((e>0||a>-e)&&(a+=e),n===ve.Hours)0===a&&-12===e&&(a=12);else if(n===ve.FractionalSeconds)return function UR(n,t){return ji(n,3).substr(0,t)}(a,t);const l=wi(o,ge.MinusSign);return ji(a,t,l,i,r)}}function yt(n,t,e=Gt.Format,i=!1){return function(r,s){return function YR(n,t,e,i,r,s){switch(e){case Pe.Months:return function RR(n,t,e){const i=Vn(n),s=bi([i[U.MonthsFormat],i[U.MonthsStandalone]],t);return bi(s,e)}(t,r,i)[n.getMonth()];case Pe.Days:return function FR(n,t,e){const i=Vn(n),s=bi([i[U.DaysFormat],i[U.DaysStandalone]],t);return bi(s,e)}(t,r,i)[n.getDay()];case Pe.DayPeriods:const o=n.getHours(),a=n.getMinutes();if(s){const c=function VR(n){const t=Vn(n);return Bb(t),(t[U.ExtraData][2]||[]).map(i=>"string"==typeof i?Nf(i):[Nf(i[0]),Nf(i[1])])}(t),u=function BR(n,t,e){const i=Vn(n);Bb(i);const s=bi([i[U.ExtraData][0],i[U.ExtraData][1]],t)||[];return bi(s,e)||[]}(t,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[f,p]=h,v=o>=f.hours&&a>=f.minutes,D=o<p.hours||o===p.hours&&a<p.minutes;if(f.hours<p.hours){if(v&&D)return!0}else if(v||D)return!0}else if(h.hours===o&&h.minutes===a)return!0;return!1});if(-1!==d)return u[d]}return function OR(n,t,e){const i=Vn(n),s=bi([i[U.DayPeriodsFormat],i[U.DayPeriodsStandalone]],t);return bi(s,e)}(t,r,i)[o<12?0:1];case Pe.Eras:return function PR(n,t){return bi(Vn(n)[U.Eras],t)}(t,i)[n.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(r,s,n,t,e,i)}}function Sc(n){return function(t,e,i){const r=-1*i,s=wi(e,ge.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(n){case cn.Short:return(r>=0?"+":"")+ji(o,2,s)+ji(Math.abs(r%60),2,s);case cn.ShortGMT:return"GMT"+(r>=0?"+":"")+ji(o,1,s);case cn.Long:return"GMT"+(r>=0?"+":"")+ji(o,2,s)+":"+ji(Math.abs(r%60),2,s);case cn.Extended:return 0===i?"Z":(r>=0?"+":"")+ji(o,2,s)+":"+ji(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${n}"`)}}}function Hb(n){return Ec(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function Lf(n,t=!1){return function(e,i){let r;if(t){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,o=e.getDate();r=1+Math.floor((o+s)/7)}else{const s=Hb(e),o=function KR(n){const t=Ec(n,0,1).getDay();return Ec(n,0,1+(t<=4?4:11)-t)}(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return ji(r,n,wi(i,ge.MinusSign))}}function Ac(n,t=!1){return function(e,i){return ji(Hb(e).getFullYear(),n,wi(i,ge.MinusSign),t)}}const Vf={};function jb(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function $b(n){return n instanceof Date&&!isNaN(n.valueOf())}let zf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:function(e){let i=null;return e?i=new e:(r=S(bn),i=new h1(r)),i;var r},providedIn:"root"}),n})();let h1=(()=>{class n extends zf{constructor(e){super(),this.locale=e}getPluralCategory(e,i){switch(LR(i||this.locale)(e)){case Zt.Zero:return"zero";case Zt.One:return"one";case Zt.Two:return"two";case Zt.Few:return"few";case Zt.Many:return"many";default:return"other"}}}return n.\u0275fac=function(e){return new(e||n)(S(bn))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),ai=(()=>{class n{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Da(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${st(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(g(Na),g(vs),g(de),g(ln))},n.\u0275dir=T({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class g1{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}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 Hr=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new g1(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),Wb(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{Wb(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(g(Un),g(De),g(Na))},n.\u0275dir=T({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function Wb(n,t){n.context.$implicit=t.item}let ws=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new m1,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Yb("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Yb("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(g(Un),g(De))},n.\u0275dir=T({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class m1{constructor(){this.$implicit=null,this.ngIf=null}}function Yb(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${st(t)}'.`)}const qb="browser";function jr(n){return n===qb}function Io(n){return"server"===n}let bs=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,s]=e.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(vs),g(ln))},n.\u0275dir=T({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),Di=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(g(Un))},n.\u0275dir=T({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[hn]}),n})();function $i(n,t){return new K(2100,"")}class q1{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class K1{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}onDestroy(t){}}const X1=new K1,Q1=new q1;let qf=(()=>{class n{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(rc(e))return X1;if(n_(e))return Q1;throw $i()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(g(Er,16))},n.\u0275pipe=vn({name:"async",type:n,pure:!1}),n})();const rP=/#/g;let Oc=(()=>{class n{constructor(e){this._localization=e}transform(e,i,r){if(null==e)return"";if("object"!=typeof i||null===i)throw $i();return i[function Ub(n,t,e,i){let r=`=${n}`;if(t.indexOf(r)>-1||(r=e.getPluralCategory(n,i),t.indexOf(r)>-1))return r;if(t.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${n}"`)}(e,Object.keys(i),this._localization,r)].replace(rP,e.toString())}}return n.\u0275fac=function(e){return new(e||n)(g(zf,16))},n.\u0275pipe=vn({name:"i18nPlural",type:n,pure:!0}),n})(),tD=(()=>{class n{transform(e,i,r){if(null==e)return null;if(!this.supports(e))throw $i();return e.slice(i,r)}supports(e){return"string"==typeof e||Array.isArray(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=vn({name:"slice",type:n,pure:!1}),n})(),ko=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({}),n})();class Qf extends class gP extends class CR{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function DR(n){wc||(wc=n)}(new Qf)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function mP(){return ja=ja||document.querySelector("base"),ja?ja.getAttribute("href"):null}();return null==e?null:function yP(n){Fc=Fc||document.createElement("a"),Fc.setAttribute("href",n);const t=Fc.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){ja=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function f1(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}(document.cookie,t)}}let Fc,ja=null;const iD=new ne("TRANSITION_ID"),_P=[{provide:cb,useFactory:function vP(n,t,e){return()=>{e.get(bf).donePromise.then(()=>{const i=or(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[iD,ke,wn],multi:!0}];class Zf{static init(){!function KF(n){Mf=n}(new Zf)}addToWindow(t){ct.getAngularTestability=(i,r=!0)=>{const s=t.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},ct.getAllAngularTestabilities=()=>t.getAllTestabilities(),ct.getAllAngularRootElements=()=>t.getAllRootElements(),ct.frameworkStabilizers||(ct.frameworkStabilizers=[]),ct.frameworkStabilizers.push(i=>{const r=ct.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?or().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let wP=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const Rc=new ne("EventManagerPlugins");let Pc=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(S(Rc),S($e))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class rD{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const r=or().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let sD=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),$a=(()=>{class n extends sD{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(oD),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(oD))}}return n.\u0275fac=function(e){return new(e||n)(S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();function oD(n){or().remove(n)}const Jf={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/"},ep=/%COMP%/g;function Nc(n,t,e){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?Nc(n,r,e):(r=r.replace(ep,n),e.push(r))}return e}function cD(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Lc=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new tp(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Ii.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new SP(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Ii.ShadowDom:return new MP(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Nc(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(S(Pc),S($a),S(Pa))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class tp{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(Jf[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const s=Jf[r];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=Jf[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(ri.DashCase|ri.Important)?t.style.setProperty(e,i,r&ri.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&ri.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,cD(i)):this.eventManager.addEventListener(t,e,cD(i))}}class SP extends tp{constructor(t,e,i,r){super(t),this.component=i;const s=Nc(r+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr=function CP(n){return"_ngcontent-%COMP%".replace(ep,n)}(r+"-"+i.id),this.hostAttr=function EP(n){return"_nghost-%COMP%".replace(ep,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class MP extends tp{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Nc(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let AP=(()=>{class n extends rD{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const dD=["alt","control","meta","shift"],IP={"\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"},hD={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"},kP={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let OP=(()=>{class n extends rD{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>or().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(dD.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(e){let i="",r=function FP(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&hD.hasOwnProperty(t)&&(t=hD[t]))}return IP[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),dD.forEach(s=>{s!=r&&kP[s](e)&&(i+=s+".")}),i+=r,i}static eventCallback(e,i,r){return s=>{n.getEventFullKey(s)===e&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const LP=yb(_R,"browser",[{provide:_i,useValue:qb},{provide:db,useValue:function RP(){Qf.makeCurrent(),Zf.init()},multi:!0},{provide:ke,useFactory:function NP(){return function HS(n){fd=n}(document),document},deps:[]}]),VP=[{provide:Th,useValue:"root"},{provide:Nr,useFactory:function PP(){return new Nr},deps:[]},{provide:Rc,useClass:AP,multi:!0,deps:[ke,$e,_i]},{provide:Rc,useClass:OP,multi:!0,deps:[ke]},{provide:Lc,useClass:Lc,deps:[Pc,$a,Pa]},{provide:Ta,useExisting:Lc},{provide:sD,useExisting:$a},{provide:$a,useClass:$a,deps:[ke]},{provide:Sf,useClass:Sf,deps:[$e]},{provide:Pc,useClass:Pc,deps:[Rc,$e]},{provide:class fP{},useClass:wP,deps:[]}];let fD=(()=>{class n{constructor(e){if(e)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(e){return{ngModule:n,providers:[{provide:Pa,useValue:e.appId},{provide:iD,useExisting:Pa},_P]}}}return n.\u0275fac=function(e){return new(e||n)(S(n,12))},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({providers:VP,imports:[ko,wR]}),n})();"undefined"!=typeof window&&window;let Vc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:function(e){let i=null;return i=e?new(e||n):S(mD),i},providedIn:"root"}),n})(),mD=(()=>{class n extends Vc{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case tt.NONE:return i;case tt.HTML:return Ji(i,"HTML")?si(i):Iy(this._doc,String(i)).toString();case tt.STYLE:return Ji(i,"Style")?si(i):i;case tt.SCRIPT:if(Ji(i,"Script"))return si(i);throw new Error("unsafe value used in a script context");case tt.URL:return Dy(i),Ji(i,"URL")?si(i):ma(String(i));case tt.RESOURCE_URL:if(Ji(i,"ResourceURL"))return si(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function xA(n){return new wA(n)}(e)}bypassSecurityTrustStyle(e){return function SA(n){return new bA(n)}(e)}bypassSecurityTrustScript(e){return function MA(n){return new DA(n)}(e)}bypassSecurityTrustUrl(e){return function AA(n){return new CA(n)}(e)}bypassSecurityTrustResourceUrl(e){return function TA(n){return new EA(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(S(ke))},n.\u0275prov=R({token:n,factory:function(e){let i=null;return i=e?new e:function qP(n){return new mD(n.get(ke))}(S(wn)),i},providedIn:"root"}),n})();class KP extends he{constructor(t,e){super()}schedule(t,e=0){return this}}class Bc extends KP{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let yD=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class zi extends yD{constructor(t,e=yD.now){super(t,()=>zi.delegate&&zi.delegate!==this?zi.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return zi.delegate&&zi.delegate!==this?zi.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const ZP=new class QP extends zi{}(class XP extends Bc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}),vD=new Y(n=>n.complete());function ip(n){return n?function JP(n){return new Y(t=>n.schedule(()=>t.complete()))}(n):vD}function Gi(...n){let t=n[n.length-1];return ce(t)?(n.pop(),hi(n,t)):xn(n)}function _D(n,t){return new Y(t?e=>t.schedule(eN,0,{error:n,subscriber:e}):e=>e.error(n))}function eN({error:n,subscriber:t}){t.error(n)}class Ci{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Gi(this.value);case"E":return _D(this.error);case"C":return ip()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new Ci("N",t):Ci.undefinedValueNotification}static createError(t){return new Ci("E",void 0,t)}static createComplete(){return Ci.completeNotification}}Ci.completeNotification=new Ci("C"),Ci.undefinedValueNotification=new Ci("N",void 0);class Hc extends Ve{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Hc.dispatch,this.delay,new nN(t,this.destination)))}_next(t){this.scheduleMessage(Ci.createNext(t))}_error(t){this.scheduleMessage(Ci.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Ci.createComplete()),this.unsubscribe()}}class nN{constructor(t,e){this.notification=t,this.destination=e}}class wD extends O{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new iN(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new re;if(this.isStopped||this.hasError?o=he.EMPTY:(this.observers.push(t),o=new J(this,t)),r&&t.add(t=new Hc(t,r)),e)for(let a=0;a<s&&!t.closed;a++)t.next(i[a]);else for(let a=0;a<s&&!t.closed;a++)t.next(i[a].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),o}_getNow(){return(this.scheduler||ZP).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(t-r[o].time<i);)o++;return s>e&&(o=Math.max(o,s-e)),o>0&&r.splice(0,o),r}}class iN{constructor(t,e){this.time=t,this.value=e}}function Oo(n,t){return"function"==typeof t?e=>e.pipe(Oo((i,r)=>pr(n(i,r)).pipe(P((s,o)=>t(i,s,r,o))))):e=>e.lift(new rN(n))}class rN{constructor(t){this.project=t}call(t,e){return e.subscribe(new sN(t,this.project))}}class sN extends C{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new Qn(this),r=this.destination;r.add(i),this.innerSubscription=F(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const jc={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if("undefined"==typeof window)return jc.schedule(n,0);if(void 0===window.requestAnimationFrame)return jc.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let rp;function pN(n,t,e){let i=e;return function aN(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((r,s)=>!("*"===r||!function cN(n,t){if(!rp){const e=Element.prototype;rp=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&rp.call(n,t)}(n,r)||(i=s,0))),i}class mN{constructor(t,e){this.componentFactory=e.get(Cr).resolveComponentFactory(t)}create(t){return new yN(this.componentFactory,t)}}class yN{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new wD(1),this.events=this.eventEmitters.pipe(Oo(i=>qt(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get($e),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=jc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function uN(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=wn.create({providers:[],parent:this.injector}),i=function fN(n,t){const e=n.childNodes,i=t.map(()=>[]);let r=-1;t.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=e.length;s<o;++s){const a=e[s],l=pN(a,t,r);-1!==l&&i[l].push(a)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,t),this.viewChangeDetectorRef=this.componentRef.injector.get(Er),this.implementsOnChanges=function lN(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(yc).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:i,templateName:r})=>t.instance[i].pipe(P(o=>({name:r,value:o}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=jc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[t];if(i)return void(i.currentValue=e);const r=this.unchangedInputs.has(t),s=r?void 0:this.getInputValue(t);this.inputChanges[t]=new om(s,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class vN extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class sp extends O{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new re;return this._value}next(t){super.next(this._value=t)}}function bD(n){for(let t in n){let e=n[t]||"";switch(t){case"display":n.display="flex"===e?["-webkit-flex","flex"]:"inline-flex"===e?["-webkit-inline-flex","inline-flex"]:e;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":n["-webkit-"+t]=e;break;case"flex-direction":e=e||"row",n["-webkit-flex-direction"]=e,n["flex-direction"]=e;break;case"order":n.order=n["-webkit-"+t]=isNaN(+e)?"0":e}}return n}const op="inline",$c=["row","column","row-reverse","column-reverse"];function DD(n){let[t,e,i]=CD(n);return function bN(n,t=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":t||null}}(t,e,i)}function CD(n){var t;n=null!==(t=null==n?void 0:n.toLowerCase())&&void 0!==t?t:"";let[e,i,r]=n.split(" ");return $c.find(s=>s===e)||(e=$c[0]),i===op&&(i=r!==op?r:"",r=op),[e,wN(i),!!r]}function za(n){let[t]=CD(n);return t.indexOf("row")>-1}function wN(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}function Sr(n,...t){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let e of t)if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);return n}function Tn(n,t){return function(i){return i.lift(new DN(n,t))}}class DN{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new CN(t,this.predicate,this.thisArg))}}class CN extends Ve{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}function zr(){}function Ga(n,t,e){return function(r){return r.lift(new EN(n,t,e))}}class EN{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new xN(t,this.nextOrObserver,this.error,this.complete))}}class xN extends Ve{constructor(t,e,i,r){super(t),this._tapNext=zr,this._tapError=zr,this._tapComplete=zr,this._tapError=i||zr,this._tapComplete=r||zr,Wt(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||zr,this._tapError=e.error||zr,this._tapComplete=e.complete||zr)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const MN={provide:hb,useFactory:function SN(n,t){return()=>{if(jr(t)){const e=Array.from(n.querySelectorAll(`[class*=${ED}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${ED}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(i,"")})}}},deps:[ke,_i],multi:!0},ED="flex-layout-";let ap=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({providers:[MN]}),n})();class Ds{constructor(t=!1,e="all",i="",r="",s=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=r,this.priority=s,this.property=""}clone(){return new Ds(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let AN=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,r){const s=this.stylesheet.get(e);s?s.set(i,r):this.stylesheet.set(e,new Map([[i,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){const r=this.stylesheet.get(e);let s="";if(r){const o=r.get(i);("number"==typeof o||"string"==typeof o)&&(s=o+"")}return s}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const lp={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Ui=new ne("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>lp}),Fo=new ne("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),cp=new ne("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function xD(n,t){return n=n?n.clone():new Ds,t&&(n.mqAlias=t.alias,n.mediaQuery=t.mediaQuery,n.suffix=t.suffix,n.priority=t.priority),n}class jt{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}let bt=(()=>{class n{constructor(e,i,r,s){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=r,this.layoutConfig=s}applyStyleToElement(e,i,r=null){let s={};"string"==typeof i&&(s[i]=r,i=s),s=this.layoutConfig.disableVendorPrefixes?i:bD(i),this._applyMultiValueStyleToElement(s,e)}applyStyleToElements(e,i=[]){const r=this.layoutConfig.disableVendorPrefixes?e:bD(e);i.forEach(s=>{this._applyMultiValueStyleToElement(r,s)})}getFlowDirection(e){const i="flex-direction";let r=this.lookupStyle(e,i);return[r||"row",this.lookupInlineStyle(e,i)||Io(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,i){var r;return null!==(r=e.getAttribute(i))&&void 0!==r?r:""}lookupInlineStyle(e,i){return jr(this._platformId)?e.style.getPropertyValue(i):function TN(n,t){var e;return null!==(e=SD(n)[t])&&void 0!==e?e:""}(e,i)}lookupStyle(e,i,r=!1){let s="";return e&&((s=this.lookupInlineStyle(e,i))||(jr(this._platformId)?r||(s=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(s=this._serverStylesheet.getStyleForElement(e,i)))),s?s.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(r=>{const s=e[r],o=Array.isArray(s)?s:[s];o.sort();for(let a of o)a=a?a+"":"",jr(this._platformId)||!this._serverModuleLoaded?jr(this._platformId)?i.style.setProperty(r,a):IN(i,r,a):this._serverStylesheet.addStyleToElement(i,r,a)})}}return n.\u0275fac=function(e){return new(e||n)(S(AN),S(Fo),S(_i),S(Ui))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function IN(n,t,e){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=SD(n);i[t]=null!=e?e:"",function kN(n,t){let e="";for(const i in t)t[i]&&(e+=`${i}:${t[i]};`);n.setAttribute("style",e)}(n,i)}function SD(n){const t={},e=n.getAttribute("style");if(e){const i=e.split(/;+/g);for(let r=0;r<i.length;r++){const s=i[r].trim();if(s.length>0){const o=s.indexOf(":");if(-1===o)throw new Error(`Invalid CSS style: ${s}`);t[s.substr(0,o).trim()]=s.substr(o+1).trim()}}}return t}function Ua(n,t){return(t&&t.priority||0)-(n&&n.priority||0)}function ON(n,t){return(n.priority||0)-(t.priority||0)}let up=(()=>{class n{constructor(e,i,r){this._zone=e,this._platformId=i,this._document=r,this.source=new sp(new Ds(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((i,r)=>{i.matches&&e.push(r)}),e}isActive(e){var i;const r=this.registry.get(e);return null!==(i=null==r?void 0:r.matches)&&void 0!==i?i:this.registerQuery(e).some(s=>s.matches)}observe(e,i=!1){if(e&&e.length){const r=this._observable$.pipe(Tn(o=>!i||e.indexOf(o.mediaQuery)>-1));return qt(new Y(o=>{const a=this.registerQuery(e);if(a.length){const l=a.pop();a.forEach(c=>{o.next(c)}),this.source.next(l)}o.complete()}),r)}return this._observable$}registerQuery(e){const i=Array.isArray(e)?e:[e],r=[];return function FN(n,t){const e=n.filter(i=>!MD[i]);if(e.length>0){const i=e.join(", ");try{const r=t.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(t.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${i} {.fx-query-test{ }}\n`)),t.head.appendChild(r),e.forEach(s=>MD[s]=r)}catch(r){console.error(r)}}}(i,this._document),i.forEach(s=>{const o=l=>{this._zone.run(()=>this.source.next(new Ds(l.matches,s)))};let a=this.registry.get(s);a||(a=this.buildMQL(s),a.addListener(o),this.pendingRemoveListenerFns.push(()=>a.removeListener(o)),this.registry.set(s,a)),a.matches&&r.push(new Ds(!0,s))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function RN(n,t){return t&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,jr(this._platformId))}}return n.\u0275fac=function(e){return new(e||n)(S($e),S(_i),S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const MD={},PN=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],AD="(orientation: portrait) and (max-width: 599.98px)",TD="(orientation: landscape) and (max-width: 959.98px)",ID="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",kD="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",OD="(orientation: portrait) and (min-width: 840px)",FD="(orientation: landscape) and (min-width: 1280px)",Mr={HANDSET:`${AD}, ${TD}`,TABLET:`${ID} , ${kD}`,WEB:`${OD}, ${FD} `,HANDSET_PORTRAIT:`${AD}`,TABLET_PORTRAIT:`${ID} `,WEB_PORTRAIT:`${OD}`,HANDSET_LANDSCAPE:`${TD}`,TABLET_LANDSCAPE:`${kD}`,WEB_LANDSCAPE:`${FD}`},NN=[{alias:"handset",priority:2e3,mediaQuery:Mr.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Mr.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Mr.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Mr.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Mr.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Mr.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Mr.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Mr.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Mr.WEB_PORTRAIT,overlapping:!0}],LN=/(\.|-|_)/g;function VN(n){let t=n.length>0?n.charAt(0):"",e=n.length>1?n.slice(1):"";return t.toUpperCase()+e}const $N=new ne("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=to(cp),t=to(Ui),e=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r]));return function jN(n,t=[]){const e={};return n.forEach(i=>{e[i.alias]=i}),t.forEach(i=>{e[i.alias]?Sr(e[i.alias],i):e[i.alias]=i}),function HN(n){return n.forEach(t=>{t.suffix||(t.suffix=function BN(n){return n.replace(LN,"|").split("|").map(VN).join("")}(t.alias),t.overlapping=!!t.overlapping)}),n}(Object.keys(e).map(i=>e[i]))}((t.disableDefaultBps?[]:PN).concat(t.addOrientationBps?NN:[]),e)}});let dp=(()=>{class n{constructor(e){this.findByMap=new Map,this.items=[...e].sort(ON)}findByAlias(e){return e?this.findWithPredicate(e,i=>i.alias===e):null}findByQuery(e){return this.findWithPredicate(e,i=>i.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var i;return null!==(i=null==e?void 0:e.suffix)&&void 0!==i?i:""})}findWithPredicate(e,i){var r;let s=this.findByMap.get(e);return s||(s=null!==(r=this.items.find(i))&&void 0!==r?r:null,this.findByMap.set(e,s)),null!=s?s:null}}return n.\u0275fac=function(e){return new(e||n)(S($N))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ro="print",zN={alias:Ro,mediaQuery:Ro,priority:1e3};let GN=(()=>{class n{constructor(e,i,r){this.breakpoints=e,this.layoutConfig=i,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new UN,this.deactivations=[]}withPrintQuery(e){return[...e,Ro]}isPrintEvent(e){return e.mediaQuery.startsWith(Ro)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const i=this.breakpoints.findByQuery(e);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(Ua)}updateEvent(e){var i;let r=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(r=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(i=null==r?void 0:r.mediaQuery)&&void 0!==i?i:""),xD(e,r)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new Ds(!0,Ro))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(r)}interceptEvents(e){return i=>{this.isPrintEvent(i)?i.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(i)),e.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!i.matches){const r=this.breakpoints.findByQuery(i.mediaQuery);if(r){const s=this.formerActivations&&this.formerActivations.includes(r),o=!this.formerActivations&&e.activatedBreakpoints.includes(r);(s||o)&&(this.deactivations.push(r),this.deactivations.sort(Ua))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return n.\u0275fac=function(e){return new(e||n)(S(dp),S(Ui),S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class UN{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(zN),t.sort(Ua),t.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function WN(n){var t;return null!==(t=null==n?void 0:n.mediaQuery.startsWith(Ro))&&void 0!==t&&t}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}let kt=(()=>{class n{constructor(e,i,r){this.matchMedia=e,this.breakpoints=i,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new O,this.observeActivations()}get activatedAlias(){var e,i;return null!==(i=null===(e=this.activatedBreakpoints[0])||void 0===e?void 0:e.alias)&&void 0!==i?i:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const i=this.findByQuery(e.mediaQuery);if(i){e=xD(e,i);const r=this.activatedBreakpoints.indexOf(i);e.matches&&-1===r?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(Ua),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(Ua),this.updateStyles())}}init(e,i,r,s,o=[]){RD(this.updateMap,e,i,r),RD(this.clearMap,e,i,s),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,o)}getValue(e,i,r){const s=this.elementMap.get(e);if(s){const o=void 0!==r?s.get(r):this.getActivatedValues(s,i);if(o)return o.get(i)}}hasValue(e,i){const r=this.elementMap.get(e);if(r){const s=this.getActivatedValues(r,i);if(s)return void 0!==s.get(i)||!1}return!1}setValue(e,i,r,s){var o;let a=this.elementMap.get(e);if(a){const c=(null!==(o=a.get(s))&&void 0!==o?o:new Map).set(i,r);a.set(s,c),this.elementMap.set(e,a)}else a=(new Map).set(s,(new Map).set(i,r)),this.elementMap.set(e,a);const l=this.getValue(e,i);void 0!==l&&this.updateElement(e,i,l)}trackValue(e,i){return this.subject.asObservable().pipe(Tn(r=>r.element===e&&r.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{const r=new Set(this.elementKeyMap.get(i));let s=this.getActivatedValues(e);s&&s.forEach((o,a)=>{this.updateElement(i,a,o),r.delete(a)}),r.forEach(o=>{if(s=this.getActivatedValues(e,o),s){const a=s.get(o);this.updateElement(i,o,a)}else this.clearElement(i,o)})})}clearElement(e,i){const r=this.clearMap.get(e);if(r){const s=r.get(i);s&&(s(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,r){const s=this.updateMap.get(e);if(s){const o=s.get(i);o&&(o(r),this.subject.next({element:e,key:i,value:r}))}}releaseElement(e){const i=this.watcherMap.get(e);i&&(i.forEach(s=>s.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((s,o)=>r.delete(o)),this.elementMap.delete(e))}triggerUpdate(e,i){const r=this.elementMap.get(e);if(r){const s=this.getActivatedValues(r,i);s&&(i?this.updateElement(e,i,s.get(i)):s.forEach((o,a)=>this.updateElement(e,a,o)))}}buildElementKeyMap(e,i){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(i)}watchExtraTriggers(e,i,r){if(r&&r.length){let s=this.watcherMap.get(e);if(s||(s=new Map,this.watcherMap.set(e,s)),!s.get(i)){const a=qt(...r).subscribe(()=>{const l=this.getValue(e,i);this.updateElement(e,i,l)});s.set(i,a)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let s=0;s<this.activatedBreakpoints.length;s++){const a=e.get(this.activatedBreakpoints[s].alias);if(a&&(void 0===i||a.has(i)&&null!=a.get(i)))return a}if(!this._useFallbacks)return;const r=e.get("");return void 0===i||r&&r.has(i)?r:void 0}observeActivations(){const e=this.breakpoints.items.map(i=>i.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(Ga(this.hook.interceptEvents(this)),Tn(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(e){return new(e||n)(S(up),S(dp),S(GN))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function RD(n,t,e,i){var r;if(void 0!==i){const s=null!==(r=n.get(t))&&void 0!==r?r:new Map;s.set(e,i),n.set(t,s)}}let Nt=(()=>{class n{constructor(e,i,r,s){this.elementRef=e,this.styleBuilder=i,this.styler=r,this.marshal=s,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new O,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(i=>{if(-1!==this.inputs.indexOf(i)){const r=i.split(".").slice(1).join(".");this.setValue(e[i].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,i){const r=this.styleBuilder,s=r.shouldCache;let o=this.styleCache.get(e);(!o||!s)&&(o=r.buildStyles(e,i),s&&this.styleCache.set(e,o)),this.mru=Object.assign({},o),this.applyStyleToElement(o),r.sideEffect(e,o,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){const[r,s]=this.styler.getFlowDirection(e);if(!s&&i){const o=DD(r);this.styler.applyStyleToElements(o,[e])}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,r=this.nativeElement){this.styler.applyStyleToElement(r,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(jt),g(bt),g(kt))},n.\u0275dir=T({type:n,features:[hn]}),n})();function PD(n,t="1",e="1"){let i=[t,e,n],r=n.indexOf("calc");if(r>0){i[2]=ND(n.substring(r).trim());let s=n.substr(0,r).trim().split(" ");2==s.length&&(i[0]=s[0],i[1]=s[1])}else if(0==r)i[2]=ND(n.trim());else{let s=n.split(" ");i=3===s.length?s:[t,e,n]}return i}function ND(n){return n.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function Ei(n){return null!=n&&"false"!=`${n}`}function VD(n,t=0){return function KN(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function Gc(n){return Array.isArray(n)?n:[n]}function en(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Po(n){return n instanceof de?n.nativeElement:n}function vt(n){return t=>t.lift(new XN(n))}class XN{constructor(t){this.notifier=t}call(t,e){const i=new QN(t),r=F(this.notifier,new Qn(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class QN extends C{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let GD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[ap]]}),n})();const mL=new ne("cdk-dir-doc",{providedIn:"root",factory:function yL(){return to(ke)}}),vL=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Uc=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new ie,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function _L(n){const t=(null==n?void 0:n.toLowerCase())||"";return"auto"===t&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?vL.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(S(mL,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),No=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({}),n})(),wL=(()=>{class n extends jt{buildStyles(e,{display:i}){const r=DD(e);return Object.assign(Object.assign({},r),{display:"none"===i?i:r.display})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=se(n)))(i||n)}}(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const bL=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let DL=(()=>{class n extends Nt{constructor(e,i,r,s,o){super(e,r,i,s),this._config=o,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var i;const s=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(i=WD.get(s))&&void 0!==i?i:new Map,WD.set(s,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:s}),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(bt),g(wL),g(kt),g(Ui))},n.\u0275dir=T({type:n,features:[H]}),n})(),UD=(()=>{class n extends DL{constructor(){super(...arguments),this.inputs=bL}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=se(n)))(i||n)}}(),n.\u0275dir=T({type:n,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[H]}),n})();const WD=new Map;let RL=(()=>{class n extends jt{constructor(e){super(),this.layoutConfig=e}buildStyles(e,i){let[r,s,...o]=e.split(" "),a=o.join(" ");const l=i.direction.indexOf("column")>-1?"column":"row",c=za(l)?"max-width":"max-height",u=za(l)?"min-width":"min-height",d=String(a).indexOf("calc")>-1,h=d||"auto"===a,f=String(a).indexOf("%")>-1&&!d,p=String(a).indexOf("px")>-1||String(a).indexOf("rem")>-1||String(a).indexOf("em")>-1||String(a).indexOf("vw")>-1||String(a).indexOf("vh")>-1;let v=d||p;r="0"==r?0:r,s="0"==s?0:s;const D=!r&&!s;let E={};const w={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(a||""){case"":const M=!1!==this.layoutConfig.useColumnBasisZero;a="row"===l?"0%":M?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,a="auto";break;case"grow":a="100%";break;case"noshrink":s=0,a="auto";break;case"auto":break;case"none":r=0,s=0,a="auto";break;default:!v&&!f&&!isNaN(a)&&(a+="%"),"0%"===a&&(v=!0),"0px"===a&&(a="0%"),E=Sr(w,d?{"flex-grow":r,"flex-shrink":s,"flex-basis":v?a:"100%"}:{flex:`${r} ${s} ${v?a:"100%"}`})}return E.flex||E["flex-grow"]||(E=Sr(w,d?{"flex-grow":r,"flex-shrink":s,"flex-basis":a}:{flex:`${r} ${s} ${a}`})),"0%"!==a&&"0px"!==a&&"0.000000001px"!==a&&"auto"!==a&&(E[u]=D||v&&r?a:null,E[c]=D||!h&&s?a:null),E[u]||E[c]?i.hasWrap&&(E[d?"flex-basis":"flex"]=E[c]?d?E[c]:`${r} ${s} ${E[c]}`:d?E[u]:`${r} ${s} ${E[u]}`):E=Sr(w,d?{"flex-grow":r,"flex-shrink":s,"flex-basis":a}:{flex:`${r} ${s} ${a}`}),Sr(E,{"box-sizing":"border-box"})}}return n.\u0275fac=function(e){return new(e||n)(S(Ui))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const PL=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let NL=(()=>{class n extends Nt{constructor(e,i,r,s,o){super(e,s,i,o),this.layoutConfig=r,this.marshal=o,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(e){this.flexShrink=e||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(e){this.flexGrow=e||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(vt(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(vt(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(e){const r=e.value.split(" ");this.direction=r[0],this.wrap=void 0!==r[1]&&"wrap"===r[1],this.triggerUpdate()}updateWithValue(e){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const r=this.direction,s=r.startsWith("row"),o=this.wrap;s&&o?this.styleCache=BL:s&&!o?this.styleCache=LL:!s&&o?this.styleCache=HL:!s&&!o&&(this.styleCache=VL);const l=PD(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(l.join(" "),{direction:r,hasWrap:o})}triggerReflow(){const e=this.activatedValue;if(void 0!==e){const i=PD(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,i.join(" "))}}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(bt),g(Ui),g(RL),g(kt))},n.\u0275dir=T({type:n,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[H]}),n})(),KD=(()=>{class n extends NL{constructor(){super(...arguments),this.inputs=PL}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=se(n)))(i||n)}}(),n.\u0275dir=T({type:n,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[H]}),n})();const LL=new Map,VL=new Map,BL=new Map,HL=new Map;let cV=(()=>{class n extends jt{buildStyles(e,i){const r={},[s,o]=e.split(" ");switch(s){case"center":r["justify-content"]="center";break;case"space-around":r["justify-content"]="space-around";break;case"space-between":r["justify-content"]="space-between";break;case"space-evenly":r["justify-content"]="space-evenly";break;case"end":case"flex-end":r["justify-content"]="flex-end";break;default:r["justify-content"]="flex-start"}switch(o){case"start":case"flex-start":r["align-items"]=r["align-content"]="flex-start";break;case"center":r["align-items"]=r["align-content"]="center";break;case"end":case"flex-end":r["align-items"]=r["align-content"]="flex-end";break;case"space-between":r["align-content"]="space-between",r["align-items"]="stretch";break;case"space-around":r["align-content"]="space-around",r["align-items"]="stretch";break;case"baseline":r["align-content"]="stretch",r["align-items"]="baseline";break;default:r["align-items"]=r["align-content"]="stretch"}return Sr(r,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":"stretch"===o?za(i.layout)?null:"100%":null,"max-height":"stretch"===o&&za(i.layout)?"100%":null})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=se(n)))(i||n)}}(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const uV=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let dV=(()=>{class n extends Nt{constructor(e,i,r,s){super(e,r,i,s),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(vt(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){const i=this.layout||"row",r=this.inline;"row"===i&&r?this.styleCache=mV:"row"!==i||r?"row-reverse"===i&&r?this.styleCache=vV:"row-reverse"!==i||r?"column"===i&&r?this.styleCache=yV:"column"!==i||r?"column-reverse"===i&&r?this.styleCache=_V:"column-reverse"===i&&!r&&(this.styleCache=gV):this.styleCache=fV:this.styleCache=pV:this.styleCache=hV,this.addStyles(e,{layout:i,inline:r})}onLayoutChange(e){const i=e.value.split(" ");this.layout=i[0],this.inline=e.value.includes("inline"),$c.find(r=>r===this.layout)||(this.layout="row"),this.triggerUpdate()}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(bt),g(cV),g(kt))},n.\u0275dir=T({type:n,features:[H]}),n})(),XD=(()=>{class n extends dV{constructor(){super(...arguments),this.inputs=uV}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=se(n)))(i||n)}}(),n.\u0275dir=T({type:n,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[H]}),n})();const hV=new Map,fV=new Map,pV=new Map,gV=new Map,mV=new Map,yV=new Map,vV=new Map,_V=new Map;let QD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[ap,No]]}),n})(),sC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[ap]]}),n})(),jB=(()=>{class n{constructor(e,i){Io(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:n,providers:e.serverLoaded?[{provide:Ui,useValue:Object.assign(Object.assign({},lp),e)},{provide:cp,useValue:i,multi:!0},{provide:Fo,useValue:!0}]:[{provide:Ui,useValue:Object.assign(Object.assign({},lp),e)},{provide:cp,useValue:i,multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)(S(Fo),S(_i))},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[QD,GD,sC],QD,GD,sC]}),n})();function Yc(n,t){return new Y(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=pr(n[a]);let c=!1;e.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>e.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&e.next(t?t.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let KC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({}),n})(),HH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[KC]]}),n})(),jH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[HH]}),n})();class fE{}const Ar="*";function pE(n,t){return{type:7,name:n,definitions:t,options:{}}}function iu(n,t=null){return{type:4,styles:t,timings:n}}function gE(n,t=null){return{type:2,steps:n,options:t}}function lr(n){return{type:6,styles:n,offset:null}}function ru(n,t,e){return{type:0,name:n,styles:t,options:e}}function zH(n){return{type:5,steps:n}}function su(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function mE(n){Promise.resolve(null).then(n)}class Xa{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){mE(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class yE{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const s=this.players.length;0==s?mE(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const Ye=!1;function vE(n){return new K(3e3,Ye)}function E2(){return"undefined"!=typeof window&&void 0!==window.document}function Lp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Yr(n){switch(n.length){case 0:return new Xa;case 1:return n[0];default:return new yE(n)}}function _E(n,t,e,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,f=h&&c||{};Object.keys(u).forEach(p=>{let v=p,D=u[p];if("offset"!==p)switch(v=t.normalizePropertyName(v,o),D){case"!":D=r[p];break;case Ar:D=s[p];break;default:D=t.normalizeStyleValue(p,v,D,o)}f[v]=D}),h||a.push(f),c=f,l=d}),o.length)throw function f2(n){return new K(3502,Ye)}();return a}function Vp(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Bp(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Bp(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Bp(e,"destroy",n)))}}function Bp(n,t,e){const i=e.totalTime,s=Hp(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function Hp(n,t,e,i,r="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function li(n,t,e){let i;return n instanceof Map?(i=n.get(t),i||n.set(t,i=e)):(i=n[t],i||(i=n[t]=e)),i}function wE(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let jp=(n,t)=>!1,bE=(n,t,e)=>[],DE=null;function $p(n){const t=n.parentNode||n.host;return t===DE?null:t}(Lp()||"undefined"!=typeof Element)&&(E2()?(DE=(()=>document.documentElement)(),jp=(n,t)=>{for(;t;){if(t===n)return!0;t=$p(t)}return!1}):jp=(n,t)=>n.contains(t),bE=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let xs=null,CE=!1;function EE(n){xs||(xs=function S2(){return"undefined"!=typeof document?document.body:null}()||{},CE=!!xs.style&&"WebkitAppearance"in xs.style);let t=!0;return xs.style&&!function x2(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in xs.style,!t&&CE&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in xs.style)),t}const xE=jp,SE=bE;let ME=(()=>{class n{validateStyleProperty(e){return EE(e)}matchesElement(e,i){return!1}containsElement(e,i){return xE(e,i)}getParentElement(e){return $p(e)}query(e,i,r){return SE(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new Xa(r,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),zp=(()=>{class n{}return n.NOOP=new ME,n})();const Gp="ng-enter",au="ng-leave",lu="ng-trigger",cu=".ng-trigger",TE="ng-animating",Up=".ng-animating";function Ss(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Wp(parseFloat(t[1]),t[2])}function Wp(n,t){return"s"===t?1e3*n:n}function uu(n,t,e){return n.hasOwnProperty("duration")?n:function T2(n,t,e){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(vE()),{duration:0,delay:0,easing:""};r=Wp(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Wp(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function GH(){return new K(3100,Ye)}()),a=!0),s<0&&(t.push(function UH(){return new K(3101,Ye)}()),a=!0),a&&t.splice(l,0,vE())}return{duration:r,delay:s,easing:o}}(n,t,e)}function Vo(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function qr(n,t,e={}){if(t)for(let i in n)e[i]=n[i];else Vo(n,e);return e}function kE(n,t,e){return e?t+":"+e+";":""}function OE(n){let t="";for(let e=0;e<n.style.length;e++){const i=n.style.item(e);t+=kE(0,i,n.style.getPropertyValue(i))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=kE(0,O2(e),n.style[e]));n.setAttribute("style",t)}function cr(n,t,e){n.style&&(Object.keys(t).forEach(i=>{const r=qp(i);e&&!e.hasOwnProperty(i)&&(e[i]=n.style[r]),n.style[r]=t[i]}),Lp()&&OE(n))}function Ms(n,t){n.style&&(Object.keys(t).forEach(e=>{const i=qp(e);n.style[i]=""}),Lp()&&OE(n))}function Qa(n){return Array.isArray(n)?1==n.length?n[0]:gE(n):n}const Yp=new RegExp("{{\\s*(.+?)\\s*}}","g");function FE(n){let t=[];if("string"==typeof n){let e;for(;e=Yp.exec(n);)t.push(e[1]);Yp.lastIndex=0}return t}function du(n,t,e){const i=n.toString(),r=i.replace(Yp,(s,o)=>{let a=t[o];return t.hasOwnProperty(o)||(e.push(function YH(n){return new K(3003,Ye)}()),a=""),a.toString()});return r==i?n:r}function hu(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const k2=/-+([a-z0-9])/g;function qp(n){return n.replace(k2,(...t)=>t[1].toUpperCase())}function O2(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ci(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function qH(n){return new K(3004,Ye)}()}}function RE(n,t){return window.getComputedStyle(n)[t]}function V2(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function B2(n,t,e){if(":"==n[0]){const l=function H2(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return t.push(function c2(n){return new K(3016,Ye)}()),"* => *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function l2(n){return new K(3015,Ye)}()),t;const r=i[1],s=i[2],o=i[3];t.push(PE(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&t.push(PE(o,r))}(i,e,t)):e.push(n),e}const mu=new Set(["true","1"]),yu=new Set(["false","0"]);function PE(n,t){const e=mu.has(n)||yu.has(n),i=mu.has(t)||yu.has(t);return(r,s)=>{let o="*"==n||n==r,a="*"==t||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?mu.has(n):yu.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?mu.has(t):yu.has(t)),o&&a}}const j2=new RegExp("s*:selfs*,?","g");function Kp(n,t,e,i){return new $2(n).build(t,e,i)}class $2{constructor(t){this._driver=t}build(t,e,i){const r=new U2(e);this._resetContextStyleTimingState(r);const s=ci(this,Qa(t),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push(function XH(){return new K(3006,Ye)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push(function QH(){return new K(3007,Ye)}())}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(vu(a)){const l=a;Object.keys(l).forEach(c=>{FE(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(hu(s.values()),e.errors.push(function ZH(n,t){return new K(3008,Ye)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=ci(this,Qa(t.animation),e);return{type:1,matchers:V2(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:As(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>ci(this,i,e)),options:As(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=i;const a=ci(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:As(t.options)}}visitAnimate(t,e){const i=function Y2(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Xp(uu(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Xp(0,0,"");return s.dynamic=!0,s.strValue=e,s}const r=uu(e,t);return Xp(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:lr({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=lr(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(o=>{"string"==typeof o?o==Ar?i.push(o):e.errors.push(function JH(n){return new K(3002,Ye)}()):i.push(o)}):i.push(t.styles);let r=!1,s=null;return i.forEach(o=>{if(vu(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(e.errors.push(function e2(n,t,e,i,r){return new K(3010,Ye)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),e.options&&function I2(n,t,e){const i=t.params||{},r=FE(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(function WH(n){return new K(3001,Ye)}())})}(o[a],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function t2(){return new K(3011,Ye)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=t.steps.map(E=>{const w=this._makeStyleAst(E,e);let M=null!=w.offset?w.offset:function W2(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(vu(e)&&e.hasOwnProperty("offset")){const i=e;t=parseFloat(i.offset),delete i.offset}});else if(vu(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(w.styles),k=0;return null!=M&&(s++,k=w.offset=M),l=l||k<0||k>1,a=a||k<c,c=k,o.push(k),w});l&&e.errors.push(function n2(){return new K(3012,Ye)}()),a&&e.errors.push(function r2(){return new K(3200,Ye)}());const d=t.steps.length;let h=0;s>0&&s<d?e.errors.push(function s2(){return new K(3202,Ye)}()):0==s&&(h=1/(d-1));const f=d-1,p=e.currentTime,v=e.currentAnimateTimings,D=v.duration;return u.forEach((E,w)=>{const M=h>0?w==f?1:h*w:o[w],k=M*D;e.currentTime=p+v.delay+k,v.duration=k,this._validateStyleAst(E,e),E.offset=M,i.styles.push(E)}),i}visitReference(t,e){return{type:8,animation:ci(this,Qa(t.animation),e),options:As(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:As(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:As(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function z2(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(j2,"")),n=n.replace(/@\*/g,cu).replace(/@\w+/g,e=>cu+"-"+e.substr(1)).replace(/:animating/g,Up),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,li(e.collectedStyles,e.currentQuerySelector,{});const a=ci(this,Qa(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:As(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function o2(){return new K(3013,Ye)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:uu(t.timings,e.errors,!0);return{type:12,animation:ci(this,Qa(t.animation),e),timings:i,options:null}}}class U2{constructor(t){this.errors=t,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 vu(n){return!Array.isArray(n)&&"object"==typeof n}function As(n){return n?(n=Vo(n)).params&&(n.params=function G2(n){return n?Vo(n):null}(n.params)):n={},n}function Xp(n,t,e){return{duration:n,delay:t,easing:e}}function Qp(n,t,e,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class _u{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const X2=new RegExp(":enter","g"),Z2=new RegExp(":leave","g");function Zp(n,t,e,i,r,s={},o={},a,l,c=[]){return(new J2).buildKeyframes(n,t,e,i,r,s,o,a,l,c)}class J2{buildKeyframes(t,e,i,r,s,o,a,l,c,u=[]){c=c||new _u;const d=new Jp(t,e,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),ci(this,i,d);const h=d.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let p=h.length-1;p>=0;p--){const v=h[p];if(v.element===e){f=v;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[Qp(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?Ss(i.duration):null,a=null!=i.delay?Ss(i.delay):null;return 0!==o&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),ci(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=wu);const o=Ss(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>ci(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Ss(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),ci(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return uu(e.params?du(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?Ss(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=wu);let o=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);s&&d.delayNextStep(s),c===e.element&&(l=d.currentTimeline),ci(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;ci(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const wu={};class Jp{constructor(t,e,i,r,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=wu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new bu(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=Ss(i.duration)),null!=i.delay&&(r.delay=Ss(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=du(s[a],o,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,s=new Jp(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=wu,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new ej(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(X2,"."+this._enterClassName)).replace(Z2,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function a2(n){return new K(3014,Ye)}()),a}}class bu{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new bu(this._driver,t,e||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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Ar,this._currentKeyframe[e]=Ar}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},o=function tj(n,t){const e={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(t),i.forEach(s=>{e[s]=Ar})):qr(r,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=du(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Ar),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=t[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],r=t._styleSummary[e];(!i||r.time>i.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=qr(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?t.add(u):d==Ar&&e.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=t.size?hu(t.values()):[],o=e.size?hu(e.values()):[];if(i){const a=r[0],l=Vo(a);a.offset=0,l.offset=1,r=[a,l]}return Qp(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class ej extends bu{constructor(t,e,i,r,s,o,a=!1){super(t,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,l=qr(t[0],!1);l.offset=0,s.push(l);const c=qr(t[0],!1);c.offset=VE(a),s.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=qr(t[d],!1);h.offset=VE((e+h.offset*i)/o),s.push(h)}i=o,e=0,r="",t=s}return Qp(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function VE(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class eg{}class nj extends eg{normalizePropertyName(t,e){return qp(t)}normalizeStyleValue(t,e,i,r){let s="";const o=i.toString().trim();if(ij[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function KH(n,t){return new K(3005,Ye)}())}return o+s}}const ij=(()=>function rj(n){const t={};return n.forEach(e=>t[e]=!0),t}("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 BE(n,t,e,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const tg={};class HE{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function sj(n,t,e,i,r){return n.some(s=>s(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){const r=this._stateStyles["*"],s=this._stateStyles[t],o=r?r.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||tg,p=this.buildStyles(i,a&&a.params||tg,d),v=l&&l.params||tg,D=this.buildStyles(r,v,d),E=new Set,w=new Map,M=new Map,k="void"===r,j={params:Object.assign(Object.assign({},h),v)},be=u?[]:Zp(t,e,this.ast.animation,s,o,p,D,j,c,d);let Fe=0;if(be.forEach(fe=>{Fe=Math.max(fe.duration+fe.delay,Fe)}),d.length)return BE(e,this._triggerName,i,r,k,p,D,[],[],w,M,Fe,d);be.forEach(fe=>{const ae=fe.element,Q=li(w,ae,{});fe.preStyleProps.forEach(je=>Q[je]=!0);const N=li(M,ae,{});fe.postStyleProps.forEach(je=>N[je]=!0),ae!==e&&E.add(ae)});const Ce=hu(E.values());return BE(e,this._triggerName,i,r,k,p,D,be,Ce,w,M,Fe)}}class oj{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i={},r=Vo(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=du(l,r,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class lj{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new oj(r.style,r.options&&r.options.params||{},i)}),jE(this.states,"true","1"),jE(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new HE(t,r,this.states))}),this.fallbackTransition=function cj(n,t,e){return new HE(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function jE(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const uj=new _u;class dj{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],s=Kp(this._driver,e,i,[]);if(i.length)throw function p2(n){return new K(3503,Ye)}();this._animations[t]=s}_buildPlayer(t,e,i){const r=t.element,s=_E(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],s=this._animations[t];let o;const a=new Map;if(s?(o=Zp(this._driver,e,s,Gp,au,{},{},i,uj,r),o.forEach(u=>{const d=li(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function g2(){return new K(3300,Ye)}()),o=[]),r.length)throw function m2(n){return new K(3504,Ye)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,Ar)})});const c=Yr(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw function y2(n){return new K(3301,Ye)}();return e}listen(t,e,i,r){const s=Hp(e,"","","");return Vp(this._getPlayer(t),i,s,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const $E="ng-animate-queued",ng="ng-animate-disabled",mj=[],zE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},yj={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},xi="__ng_removed";class ig{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function bj(n){return null!=n?n:null}(i?t.value:t),i){const s=Vo(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Za="void",rg=new ig(Za);class vj{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Si(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.hasOwnProperty(e))throw function v2(n,t){return new K(3302,Ye)}();if(null==i||0==i.length)throw function _2(n){return new K(3303,Ye)}();if(!function Dj(n){return"start"==n||"done"==n}(i))throw function w2(n,t){return new K(3400,Ye)}();const s=li(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};s.push(o);const a=li(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Si(t,lu),Si(t,lu+"-"+e),a[e]=rg),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw function b2(n){return new K(3401,Ye)}();return e}trigger(t,e,i,r=!0){const s=this._getTrigger(e),o=new sg(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(Si(t,lu),Si(t,lu+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new ig(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=rg),c.value!==Za&&l.value===c.value){if(!function xj(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const s=e[r];if(!t.hasOwnProperty(s)||n[s]!==t[s])return!1}return!0}(l.params,c.params)){const v=[],D=s.matchStyles(l.value,l.params,v),E=s.matchStyles(c.value,c.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{Ms(t,D),cr(t,E)})}return}const h=li(this._engine.playersByElement,t,[]);h.forEach(v=>{v.namespaceId==this.id&&v.triggerName==e&&v.queued&&v.destroy()});let f=s.matchTransition(l.value,c.value,t,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(Si(t,$E),o.onStart(()=>{Bo(t,$E)})),o.onDone(()=>{let v=this.players.indexOf(o);v>=0&&this.players.splice(v,1);const D=this._engine.playersByElement.get(t);if(D){let E=D.indexOf(o);E>=0&&D.splice(E,1)}}),this.players.push(o),h.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,cu,!0);i.forEach(r=>{if(r[xi])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const s=this._engine.statesByElement.get(t),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(t,l,Za,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),i&&Yr(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||rg,u=new ig(Za),d=new sg(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const s=t[xi];(!s||s===zE)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Si(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=Hp(s,i.triggerName,i.fromState.value,i.toState.value);l._data=t,Vp(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class _j{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(r,s)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new vj(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,e)){i.splice(a+1,0,t),o=!0;break}o||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&e.add(a)}}}return e}trigger(t,e,i,r){if(Du(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!Du(e))return;const s=e[xi];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Si(t,ng)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Bo(t,ng))}removeNode(t,e,i,r){if(Du(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,s){this.collectedLeaveElements.push(e),e[xi]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,r,s){return Du(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,cu,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Up,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Yr(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const i=t[xi];if(i&&i.setForRemoval){if(t[xi]=zE,i.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}(null===(e=t.classList)||void 0===e?void 0:e.contains(ng))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Si(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,t)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Yr(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function D2(n){return new K(3402,Ye)}()}_flushAnimations(t,e){const i=new _u,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(W=>{u.add(W);const le=this.driver.query(W,".ng-animate-queued",!0);for(let ue=0;ue<le.length;ue++)u.add(le[ue])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=WE(h,this.collectedEnterElements),p=new Map;let v=0;f.forEach((W,le)=>{const ue=Gp+v++;p.set(le,ue),W.forEach(Ue=>Si(Ue,ue))});const D=[],E=new Set,w=new Set;for(let W=0;W<this.collectedLeaveElements.length;W++){const le=this.collectedLeaveElements[W],ue=le[xi];ue&&ue.setForRemoval&&(D.push(le),E.add(le),ue.hasAnimation?this.driver.query(le,".ng-star-inserted",!0).forEach(Ue=>E.add(Ue)):w.add(le))}const M=new Map,k=WE(h,Array.from(E));k.forEach((W,le)=>{const ue=au+v++;M.set(le,ue),W.forEach(Ue=>Si(Ue,ue))}),t.push(()=>{f.forEach((W,le)=>{const ue=p.get(le);W.forEach(Ue=>Bo(Ue,ue))}),k.forEach((W,le)=>{const ue=M.get(le);W.forEach(Ue=>Bo(Ue,ue))}),D.forEach(W=>{this.processLeaveNode(W)})});const j=[],be=[];for(let W=this._namespaceList.length-1;W>=0;W--)this._namespaceList[W].drainQueuedTransitions(e).forEach(ue=>{const Ue=ue.player,Qe=ue.element;if(j.push(Ue),this.collectedEnterElements.length){const $n=Qe[xi];if($n&&$n.setForMove){if($n.previousTriggersValues&&$n.previousTriggersValues.has(ue.triggerName)){const Ls=$n.previousTriggersValues.get(ue.triggerName),ns=this.statesByElement.get(ue.element);ns&&ns[ue.triggerName]&&(ns[ue.triggerName].value=Ls)}return void Ue.destroy()}}const Ot=!d||!this.driver.containsElement(d,Qe),gn=M.get(Qe),Mi=p.get(Qe),pt=this._buildInstruction(ue,i,Mi,gn,Ot);if(pt.errors&&pt.errors.length)return void be.push(pt);if(Ot)return Ue.onStart(()=>Ms(Qe,pt.fromStyles)),Ue.onDestroy(()=>cr(Qe,pt.toStyles)),void r.push(Ue);if(ue.isFallbackTransition)return Ue.onStart(()=>Ms(Qe,pt.fromStyles)),Ue.onDestroy(()=>cr(Qe,pt.toStyles)),void r.push(Ue);const gl=[];pt.timelines.forEach($n=>{$n.stretchStartingKeyframe=!0,this.disabledNodes.has($n.element)||gl.push($n)}),pt.timelines=gl,i.append(Qe,pt.timelines),o.push({instruction:pt,player:Ue,element:Qe}),pt.queriedElements.forEach($n=>li(a,$n,[]).push(Ue)),pt.preStyleProps.forEach(($n,Ls)=>{const ns=Object.keys($n);if(ns.length){let Vs=l.get(Ls);Vs||l.set(Ls,Vs=new Set),ns.forEach(Yg=>Vs.add(Yg))}}),pt.postStyleProps.forEach(($n,Ls)=>{const ns=Object.keys($n);let Vs=c.get(Ls);Vs||c.set(Ls,Vs=new Set),ns.forEach(Yg=>Vs.add(Yg))})});if(be.length){const W=[];be.forEach(le=>{W.push(function C2(n,t){return new K(3505,Ye)}())}),j.forEach(le=>le.destroy()),this.reportError(W)}const Fe=new Map,Ce=new Map;o.forEach(W=>{const le=W.element;i.has(le)&&(Ce.set(le,le),this._beforeAnimationBuild(W.player.namespaceId,W.instruction,Fe))}),r.forEach(W=>{const le=W.element;this._getPreviousPlayers(le,!1,W.namespaceId,W.triggerName,null).forEach(Ue=>{li(Fe,le,[]).push(Ue),Ue.destroy()})});const fe=D.filter(W=>qE(W,l,c)),ae=new Map;UE(ae,this.driver,w,c,Ar).forEach(W=>{qE(W,l,c)&&fe.push(W)});const N=new Map;f.forEach((W,le)=>{UE(N,this.driver,new Set(W),l,"!")}),fe.forEach(W=>{const le=ae.get(W),ue=N.get(W);ae.set(W,Object.assign(Object.assign({},le),ue))});const je=[],Ge=[],Ki={};o.forEach(W=>{const{element:le,player:ue,instruction:Ue}=W;if(i.has(le)){if(u.has(le))return ue.onDestroy(()=>cr(le,Ue.toStyles)),ue.disabled=!0,ue.overrideTotalTime(Ue.totalTime),void r.push(ue);let Qe=Ki;if(Ce.size>1){let gn=le;const Mi=[];for(;gn=gn.parentNode;){const pt=Ce.get(gn);if(pt){Qe=pt;break}Mi.push(gn)}Mi.forEach(pt=>Ce.set(pt,Qe))}const Ot=this._buildAnimation(ue.namespaceId,Ue,Fe,s,N,ae);if(ue.setRealPlayer(Ot),Qe===Ki)je.push(ue);else{const gn=this.playersByElement.get(Qe);gn&&gn.length&&(ue.parentPlayer=Yr(gn)),r.push(ue)}}else Ms(le,Ue.fromStyles),ue.onDestroy(()=>cr(le,Ue.toStyles)),Ge.push(ue),u.has(le)&&r.push(ue)}),Ge.forEach(W=>{const le=s.get(W.element);if(le&&le.length){const ue=Yr(le);W.setRealPlayer(ue)}}),r.forEach(W=>{W.parentPlayer?W.syncPlayerEvents(W.parentPlayer):W.destroy()});for(let W=0;W<D.length;W++){const le=D[W],ue=le[xi];if(Bo(le,au),ue&&ue.hasAnimation)continue;let Ue=[];if(a.size){let Ot=a.get(le);Ot&&Ot.length&&Ue.push(...Ot);let gn=this.driver.query(le,Up,!0);for(let Mi=0;Mi<gn.length;Mi++){let pt=a.get(gn[Mi]);pt&&pt.length&&Ue.push(...pt)}}const Qe=Ue.filter(Ot=>!Ot.destroyed);Qe.length?Cj(this,le,Qe):this.processLeaveNode(le)}return D.length=0,je.forEach(W=>{this.players.push(W),W.onDone(()=>{W.destroy();const le=this.players.indexOf(W);this.players.splice(le,1)}),W.play()}),je}elementContainsData(t,e){let i=!1;const r=e[xi];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const l=!s||s==Za;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,i){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,d=li(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Ms(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,o){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const v=p.element;u.add(v);const D=v[xi];if(D&&D.removedBeforeQueried)return new Xa(p.duration,p.delay);const E=v!==l,w=function Ej(n){const t=[];return YE(n,t),t}((i.get(v)||mj).map(Fe=>Fe.getRealPlayer())).filter(Fe=>!!Fe.element&&Fe.element===v),M=s.get(v),k=o.get(v),j=_E(0,this._normalizer,0,p.keyframes,M,k),be=this._buildPlayer(p,j,w);if(p.subTimeline&&r&&d.add(v),E){const Fe=new sg(t,a,v);Fe.setRealPlayer(be),c.push(Fe)}return be});c.forEach(p=>{li(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function wj(n,t,e){let i;if(n instanceof Map){if(i=n.get(t),i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}}else if(i=n[t],i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&delete n[t]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Si(p,TE));const f=Yr(h);return f.onDestroy(()=>{u.forEach(p=>Bo(p,TE)),cr(l,e.toStyles)}),d.forEach(p=>{li(r,p,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Xa(t.duration,t.delay)}}class sg{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Xa,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>Vp(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){li(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Du(n){return n&&1===n.nodeType}function GE(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function UE(n,t,e,i,r){const s=[];e.forEach(l=>s.push(GE(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=t.computeStyle(c,d,r);(!h||0==h.length)&&(c[xi]=yj,o.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>GE(l,s[a++])),o}function WE(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return t.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function Si(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function Bo(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function Cj(n,t,e){Yr(e).onDone(()=>n.processLeaveNode(t))}function YE(n,t){for(let e=0;e<n.length;e++){const i=n[e];i instanceof yE?YE(i.players,t):t.push(i)}}function qE(n,t,e){const i=e.get(n);if(!i)return!1;let r=t.get(n);return r?i.forEach(s=>r.add(s)):t.set(n,i),e.delete(n),!0}class Cu{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new _j(t,e,i),this._timelineEngine=new dj(t,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=Kp(this._driver,s,l,[]);if(l.length)throw function h2(n,t){return new K(3404,Ye)}();a=function aj(n,t,e){return new lj(n,t,e)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[s,o]=wE(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=wE(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Mj=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&cr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(cr(this._element,this._initialStyles),this._endStyles&&(cr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ms(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ms(this._element,this._endStyles),this._endStyles=null),cr(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function og(n){let t=null;const e=Object.keys(n);for(let i=0;i<e.length;i++){const r=e[i];Aj(r)&&(t=t||{},t[r]=n[r])}return t}function Aj(n){return"display"===n||"position"===n}class KE{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(t[i]=this._finished?e[i]:RE(this.element,i))})}this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Tj{validateStyleProperty(t){return EE(t)}matchesElement(t,e){return!1}containsElement(t,e){return xE(t,e)}getParentElement(t){return $p(t)}query(t,e,i){return SE(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(h=>h instanceof KE);(function F2(n,t){return 0===n||0===t})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),e=function R2(n,t,e){const i=Object.keys(e);if(i.length&&t.length){let s=t[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var r=1;r<t.length;r++){let a=t[r];o.forEach(function(l){a[l]=RE(n,l)})}}return t}(t,e=e.map(h=>qr(h,!1)),c);const d=function Sj(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=og(t[0]),t.length>1&&(i=og(t[t.length-1]))):t&&(e=og(t)),e||i?new Mj(n,e,i):null}(t,e);return new KE(t,e,l,d)}}let Ij=(()=>{class n extends fE{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ii.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?gE(e):e;return XE(this._renderer,null,i,"register",[r]),new kj(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(S(Ta),S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class kj extends class $H{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Oj(this._id,t,e||{},this._renderer)}}class Oj{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return XE(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function XE(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const QE="@.disabled";let Fj=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new ZE("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,e,u.name,u)};return i.data.animation.forEach(l),new Rj(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&e<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}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 n.\u0275fac=function(e){return new(e||n)(S(Ta),S(Cu),S($e))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class ZE{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==QE?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Rj extends ZE{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==QE?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function Pj(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function Nj(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let Lj=(()=>{class n extends Cu{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(S(ke),S(zp),S(eg))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const xu=new ne("AnimationModuleType"),JE=[{provide:fE,useClass:Ij},{provide:eg,useFactory:function Vj(){return new nj}},{provide:Cu,useClass:Lj},{provide:Ta,useFactory:function Bj(n,t,e){return new Fj(n,t,e)},deps:[Lc,Cu,$e]}],e0=[{provide:zp,useFactory:()=>new Tj},{provide:xu,useValue:"BrowserAnimations"},...JE],Hj=[{provide:zp,useClass:ME},{provide:xu,useValue:"NoopAnimations"},...JE];let jj=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?Hj:e0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({providers:e0,imports:[fD]}),n})();var Su=function(){return Su=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},Su.apply(this,arguments)};function b(n,t,e,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(s=(r<3?o(s):r>3?o(t,e,s):o(t,e))||s);return r>3&&s&&Object.defineProperty(t,e,s),s}function Ho(n,t){return function(e,i){t(e,i,n)}}function _(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}var Gj=function(){function n(){}return n.prototype.getAllStyles=function(t){return window.getComputedStyle(t)},n.prototype.getStyle=function(t,e){return this.getAllStyles(t)[e]},n.prototype.isStaticPositioned=function(t){return"static"===(this.getStyle(t,"position")||"static")},n.prototype.offsetParent=function(t){for(var e=t.offsetParent||document.documentElement;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement},n.prototype.position=function(t,e){void 0===e&&(e=!0);var i,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))i={top:(i=t.getBoundingClientRect()).top,bottom:i.bottom,left:i.left,right:i.right,height:i.height,width:i.width};else{var s=this.offsetParent(t);i=this.offset(t,!1),s!==document.documentElement&&(r=this.offset(s,!1)),r.top+=s.clientTop,r.left+=s.clientLeft}return i.top-=r.top,i.bottom-=r.top,i.left-=r.left,i.right-=r.left,e&&(i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i},n.prototype.offset=function(t,e){void 0===e&&(e=!0);var i=t.getBoundingClientRect(),r_top=window.pageYOffset-document.documentElement.clientTop,r_left=window.pageXOffset-document.documentElement.clientLeft,s={height:i.height||t.offsetHeight,width:i.width||t.offsetWidth,top:i.top+r_top,bottom:i.bottom+r_top,left:i.left+r_left,right:i.right+r_left};return e&&(s.height=Math.round(s.height),s.width=Math.round(s.width),s.top=Math.round(s.top),s.bottom=Math.round(s.bottom),s.left=Math.round(s.left),s.right=Math.round(s.right)),s},n.prototype.positionElements=function(t,e,i,r){var s=i.split("-"),o=s[0],a=void 0===o?"top":o,l=s[1],c=void 0===l?"center":l,u=r?this.offset(t,!1):this.position(t,!1),d=this.getAllStyles(e),h=parseFloat(d.marginTop),f=parseFloat(d.marginBottom),p=parseFloat(d.marginLeft),v=parseFloat(d.marginRight),D=0,E=0;switch(a){case"top":D=u.top-(e.offsetHeight+h+f);break;case"bottom":D=u.top+u.height;break;case"left":E=u.left-(e.offsetWidth+p+v);break;case"right":E=u.left+u.width}switch(c){case"top":D=u.top;break;case"bottom":D=u.top+u.height-e.offsetHeight;break;case"left":E=u.left;break;case"right":E=u.left+u.width-e.offsetWidth;break;case"center":"top"===a||"bottom"===a?E=u.left+u.width/2-e.offsetWidth/2:D=u.top+u.height/2-e.offsetHeight/2}e.style.transform="translate("+Math.round(E)+"px, "+Math.round(D)+"px)";var w=e.getBoundingClientRect(),M=document.documentElement,k=window.innerHeight||M.clientHeight,j=window.innerWidth||M.clientWidth;return w.left>=0&&w.top>=0&&w.right<=j&&w.bottom<=k},n}(),Uj=/\s+/,n0=new Gj;const Ja=new zi(Bc);function lg(n){return!Dt(n)&&n-parseFloat(n)+1>=0}function r0(n=0,t,e){let i=-1;return lg(t)?i=Number(t)<1?1:Number(t):ce(t)&&(e=t),ce(e)||(e=Ja),new Y(r=>{const s=lg(n)?n:+n-e.now();return e.schedule(Yj,s,{index:0,period:i,subscriber:r})})}function Yj(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}function cg(...n){return function Xj(){return Mt(1)}()(Gi(...n))}function Au(...n){const t=n[n.length-1];return ce(t)?(n.pop(),e=>cg(n,e,t)):e=>cg(n,e)}var Wi=function(){return Wi=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},Wi.apply(this,arguments)},s0=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var i=Array(n),r=0;for(t=0;t<e;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,r++)i[r]=s[o];return i},el=(()=>(function(n){n[n.SUNDAY=0]="SUNDAY",n[n.MONDAY=1]="MONDAY",n[n.TUESDAY=2]="TUESDAY",n[n.WEDNESDAY=3]="WEDNESDAY",n[n.THURSDAY=4]="THURSDAY",n[n.FRIDAY=5]="FRIDAY",n[n.SATURDAY=6]="SATURDAY"}(el||(el={})),el))(),Zj=[el.SUNDAY,el.SATURDAY],Kr=86400;function o0(n,t){var e=t.startDate,r=t.excluded,s=t.precision;if(r.length<1)return 0;for(var a=n.getDay,l=n.addDays,c=(0,n.addSeconds)(e,t.seconds-1),u=a(e),d=a(c),h=0,f=e,p=function(){var v=a(f);r.some(function(D){return D===v})&&(h+=function Jj(n,t){var i=t.day,s=t.dayEnd,o=t.startDate,a=t.endDate,l=n.differenceInSeconds,u=n.startOfDay;if("minutes"===t.precision){if(i===t.dayStart)return l((0,n.endOfDay)(o),o)+1;if(i===s)return l(a,u(a))+1}return Kr}(n,{dayStart:u,dayEnd:d,day:v,precision:s,startDate:e,endDate:c})),f=l(f,1)};f<c;)p();return h}function tl(n,t){var i=t.periodStart,r=t.periodEnd;return t.events.filter(function(s){return function n$(n,t){var e=t.event,i=t.periodStart,r=t.periodEnd,s=n.isSameSecond,o=e.start,a=e.end||e.start;return!!(o>i&&o<r||a>i&&a<r||o<i&&a>r||s(o,i)||s(o,r)||s(a,i)||s(a,r))}(n,{event:s,periodStart:i,periodEnd:r})})}function a0(n,t){var e=t.date,i=t.weekendDays,r=void 0===i?Zj:i,o=n.isSameDay,a=n.getDay,l=(0,n.startOfDay)(new Date),c=a(e);return{date:e,day:c,isPast:e<l,isToday:o(e,l),isFuture:e>l,isWeekend:r.indexOf(c)>-1}}function hg(n,t){for(var r=t.excluded,s=void 0===r?[]:r,o=t.weekendDays,a=t.viewStart,l=void 0===a?n.startOfWeek(t.viewDate,{weekStartsOn:t.weekStartsOn}):a,c=t.viewEnd,u=void 0===c?n.addDays(l,7):c,d=n.addDays,h=n.getDay,f=[],p=l;p<u;)s.some(function(v){return h(p)===v})||f.push(a0(n,{date:p,weekendDays:o})),p=d(p,1);return f}function r$(n,t){var e=t.events,i=void 0===e?[]:e,r=t.excluded,s=void 0===r?[]:r,o=t.precision,a=void 0===o?"days":o,l=t.absolutePositionedEvents,c=void 0!==l&&l,u=t.viewStart,d=t.viewEnd;u=n.startOfDay(u),d=n.endOfDay(d);var h=n.differenceInSeconds,f=n.differenceInDays,p=function i$(n,t){for(var i=t.date2,r=t.excluded,s=t.date1,o=0;s<i;)-1===r.indexOf(n.getDay(s))&&o++,s=n.addDays(s,1);return o}(n,{date1:u,date2:d,excluded:s}),v=f(d,u)+1,D=i.filter(function(M){return M.allDay}).map(function(M){var k=function t$(n,t){var e=t.event,i=t.startOfWeek,r=t.excluded,s=t.precision,o=n.differenceInDays,a=n.startOfDay,l=n.differenceInSeconds;if(e.start<i)return 0;var c=0;switch(s){case"days":c=o(a(e.start),i)*Kr;break;case"minutes":c=l(e.start,i)}return c-=o0(n,{startDate:i,seconds:c,excluded:r,precision:s}),Math.abs(c/Kr)}(n,{event:M,startOfWeek:u,excluded:s,precision:a}),j=function e$(n,t){var e=t.event,i=t.offset,s=t.excluded,o=t.precision,a=t.totalDaysInView,c=n.differenceInSeconds,u=n.addDays,d=n.endOfDay,h=n.differenceInDays,f=Kr,p=(0,n.max)([e.start,t.startOfWeekDate]);e.end&&(f="minutes"===o?c(e.end,p):h(u(d(e.end),1),p)*Kr);var v=i*Kr,E=a*Kr;return v+f>E&&(f=E-v),(f-=o0(n,{startDate:p,seconds:f,excluded:s,precision:o}))/Kr}(n,{event:M,offset:k,startOfWeekDate:u,excluded:s,precision:a,totalDaysInView:v});return{event:M,offset:k,span:j}}).filter(function(M){return M.offset<p}).filter(function(M){return M.span>0}).map(function(M){return{event:M.event,offset:M.offset,span:M.span,startsBeforeWeek:M.event.start<u,endsAfterWeek:(M.event.end||M.event.start)>d}}).sort(function(M,k){var j=h(M.event.start,k.event.start);return 0===j?h(k.event.end||k.event.start,M.event.end||M.event.start):j}),E=[],w=[];return D.forEach(function(M,k){if(-1===w.indexOf(M)){w.push(M);var j=M.span+M.offset,be=D.slice(k+1).filter(function(fe){if(fe.offset>=j&&j+fe.span<=v&&-1===w.indexOf(fe)){var ae=fe.offset-j;return c||(fe.offset=ae),j+=fe.span+ae,w.push(fe),!0}}),Fe=s0([M],be),Ce=Fe.filter(function(fe){return fe.event.id}).map(function(fe){return fe.event.id}).join("-");E.push(Wi({row:Fe},Ce?{id:Ce}:{}))}}),E}function s$(n,t){var e=t.events,i=t.viewDate,r=t.hourSegments,s=t.hourDuration,o=t.dayStart,a=t.dayEnd,l=t.weekStartsOn,c=t.excluded,u=t.weekendDays,d=t.segmentHeight,h=t.viewStart,f=t.viewEnd,p=t.minimumEventHeight,v=function c$(n,t){var e=t.viewDate,i=t.hourSegments,r=t.hourDuration,s=t.dayStart,o=t.dayEnd,a=n.setMinutes,l=n.setHours,c=n.startOfDay,u=n.startOfMinute,d=n.endOfDay,h=n.addMinutes,p=n.addDays,v=[],D=a(l(c(e),ku(s.hour)),Ou(s.minute)),E=a(l(u(d(e)),ku(o.hour)),Ou(o.minute)),w=(r||60)/i,M=c(e),k=d(e),j=function(Q){return Q};M.getTimezoneOffset()!==k.getTimezoneOffset()&&(M=p(M,1),D=p(D,1),E=p(E,1),j=function(Q){return p(Q,-1)});for(var be=r?1440/r:60,Fe=0;Fe<be;Fe++){for(var Ce=[],fe=0;fe<i;fe++){var ae=h(h(D,Fe*(r||60)),fe*w);ae>=D&&ae<E&&Ce.push({date:j(ae),displayDate:ae,isStart:0===fe})}Ce.length>0&&v.push({segments:Ce})}return v}(n,{viewDate:i,hourSegments:r,hourDuration:s,dayStart:o,dayEnd:a}),D=hg(n,{viewDate:i,weekStartsOn:l,excluded:c,weekendDays:u,viewStart:h,viewEnd:f}),E=n.setHours,w=n.setMinutes,M=n.getHours,k=n.getMinutes;return D.map(function(j){var be=function l$(n,t){var e=t.events,i=t.viewDate,r=t.hourSegments,s=t.dayStart,o=t.dayEnd,a=t.eventWidth,l=t.segmentHeight,c=t.hourDuration,u=t.minimumEventHeight,d=n.setMinutes,h=n.setHours,f=n.startOfDay,p=n.startOfMinute,v=n.endOfDay,D=n.differenceInMinutes,E=d(h(f(i),ku(s.hour)),Ou(s.minute)),w=d(h(p(v(i)),ku(o.hour)),Ou(o.minute));w.setSeconds(59,999);var M=[],k=tl(n,{events:e.filter(function(Ce){return!Ce.allDay}),periodStart:E,periodEnd:w}),j=k.sort(function(Ce,fe){return Ce.start.valueOf()-fe.start.valueOf()}).map(function(Ce){var fe=Ce.start,ae=Ce.end||fe,Q=fe<E,N=ae>w,je=r*l/(c||60),Ge=0;if(fe>E){var Ki=fe.getTimezoneOffset(),le=E.getTimezoneOffset()-Ki;Ge+=D(fe,E)+le}Ge*=je,Ge=Math.floor(Ge);var ue=Q?E:fe,Ue=N?w:ae,Qe=ue.getTimezoneOffset()-Ue.getTimezoneOffset(),Ot=D(Ue,ue)+Qe;Ce.end?Ot*=je:Ot=l,u&&Ot<u&&(Ot=u),Ot=Math.floor(Ot);for(var Mi=Iu(M,Ge,Ge+Ot),pt=0;Mi.some(function(Wg){return Wg.left===pt});)pt+=a;var gl={event:Ce,height:Ot,width:a,top:Ge,left:pt,startsBeforeDay:Q,endsAfterDay:N};return M.push(gl),gl}),be=Math.max.apply(Math,j.map(function(Ce){return Ce.left+Ce.width})),Fe=tl(n,{events:e.filter(function(Ce){return Ce.allDay}),periodStart:f(E),periodEnd:v(w)});return{events:j,width:be,allDayEvents:Fe,period:{events:k,start:E,end:w}}}(n,{events:e,viewDate:j.date,hourSegments:r,dayStart:o,dayEnd:a,segmentHeight:d,eventWidth:1,hourDuration:s,minimumEventHeight:p}),Fe=v.map(function(ae){var Q=ae.segments.map(function(N){var je=w(E(j.date,M(N.date)),k(N.date));return Wi(Wi({},N),{date:je})});return Wi(Wi({},ae),{segments:Q})});function Ce(ae,Q){var N=Math.max.apply(Math,Q.map(function(Ge){return Ge.left+1})),je=ae.filter(function(Ge){return Ge.left>=N}).filter(function(Ge){return Iu(Q,Ge.top,Ge.top+Ge.height).length>0});return je.length>0?Ce(ae,je):N}var fe=be.events.map(function(ae){var N=100/Ce(be.events,Iu(be.events,ae.top,ae.top+ae.height));return Wi(Wi({},ae),{left:ae.left*N,width:N})});return{hours:Fe,date:j.date,events:fe.map(function(ae){var Q=Iu(fe.filter(function(N){return N.left>ae.left}),ae.top,ae.top+ae.height);return Q.length>0?Wi(Wi({},ae),{width:Math.min.apply(Math,Q.map(function(N){return N.left}))-ae.left}):ae})}})}function Iu(n,t,e){return n.filter(function(i){var r=i.top,s=i.top+i.height;return t<s&&s<e||t<r&&r<e||r<=t&&e<=s})}function ku(n){return Math.max(Math.min(23,n),0)}function Ou(n){return Math.max(Math.min(59,n),0)}var Xr=(()=>(function(n){n.NotArray="Events must be an array",n.StartPropertyMissing="Event is missing the `start` property",n.StartPropertyNotDate="Event `start` property should be a javascript date object. Do `new Date(event.start)` to fix it.",n.EndPropertyNotDate="Event `end` property should be a javascript date object. Do `new Date(event.end)` to fix it.",n.EndsBeforeStart="Event `start` property occurs after the `end`"}(Xr||(Xr={})),Xr))();class d$ extends Ve{notifyNext(t,e,i,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class h$ extends Ve{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function f$(n,t,e,i,r=new h$(n,e,i)){if(!r.closed)return t instanceof Y?t.subscribe(r):Kn(t)(r)}const l0={};function c0(...n){let t,e;return ce(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&Dt(n[0])&&(n=n[0]),xn(n,e).lift(new p$(t))}class p${constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new g$(t,this.resultSelector))}}class g$ extends d${constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(l0),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i<e;i++)this.add(f$(this,t[i],void 0,i))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,i){const r=this.values,o=this.toRespond?r[i]===l0?--this.toRespond:this.toRespond:0;r[i]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function nl(n,t,e,i){return Wt(e)&&(i=e,e=void 0),i?nl(n,t,e).pipe(P(r=>Dt(r)?i(...r):i(r))):new Y(r=>{u0(n,t,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,e)})}function u0(n,t,e,i,r){let s;if(function v$(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(t,e,r),s=()=>o.removeEventListener(t,e,r)}else if(function y$(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(t,e),s=()=>o.off(t,e)}else if(function m$(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(t,e),s=()=>o.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)u0(n[o],t,e,i,r)}i.add(s)}function fg(n,t){return n=function _$(n,t){return void 0===n?void 0===t?n:t:n}(n,t),"function"==typeof n?function(){for(var i=arguments,r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=i[o];return!!n.apply(this,s)}:n?function(){return!0}:function(){return!1}}var pg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n},d0=function(n){return null!=n&&"object"===(void 0===n?"undefined":pg(n))&&1===n.nodeType&&"object"===pg(n.style)&&"object"===pg(n.ownerDocument)};function h0(n,t){if(t=mg(t,!0),!d0(t))return-1;for(var e=0;e<n.length;e++)if(n[e]===t)return e;return-1}function gg(n,t){return-1!==h0(n,t)}function w$(n,t){for(var e=0;e<t.length;e++)gg(n,t[e])||n.push(t[e]);return t}function b$(n){for(var t=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=t[i+1];return w$(n,e=e.map(mg))}function D$(n){for(var t=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=t[i+1];return e.map(mg).reduce(function(r,s){var o=h0(n,s);return-1!==o?r.concat(n.splice(o,1)):r},[])}function mg(n,t){if("string"==typeof n)try{return document.querySelector(n)}catch(e){throw e}if(!d0(n)&&!t)throw new TypeError(n+" is not a DOM element.");return n}function f0(n){if(n===window)return function E$(){var n={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},n);var t={};return Object.defineProperties(t,n),t}();try{var t=n.getBoundingClientRect();return void 0===t.x&&(t.x=t.left,t.y=t.top),t}catch(e){throw new TypeError("Can't call getBoundingClientRect on "+n)}}var t,yg=void 0;"function"!=typeof Object.create?(t=function(){},yg=function(e,i){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");t.prototype=e||{};var r=new t;return t.prototype=null,void 0!==i&&Object.defineProperties(r,i),null===e&&(r.__proto__=null),r}):yg=Object.create;var S$=yg,Ts=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function vg(n,t){t=t||{};for(var e=S$(n),i=0;i<Ts.length;i++)void 0!==t[Ts[i]]&&(e[Ts[i]]=t[Ts[i]]);return e}function _g(n,t){console.log("data ",t),n.data=t||{},n.dispatched="mousemove"}var il=["webkit","moz","ms","o"],rl=function(){if("undefined"==typeof window)return function(){};for(var n=0,t=il.length;n<t&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[il[n]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var e=0;window.requestAnimationFrame=function(i){var r=(new Date).getTime(),s=Math.max(0,16-r-e),o=window.setTimeout(function(){return i(r+s)},s);return e=r+s,o}}return window.requestAnimationFrame.bind(window)}(),jo=function(){if("undefined"==typeof window)return function(){};for(var n=0,t=il.length;n<t&&!window.cancelAnimationFrame;++n)window.cancelAnimationFrame=window[il[n]+"CancelAnimationFrame"]||window[il[n]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}();function A$(n,t){void 0===t&&(t={});var e=this,i=4,r=!1;if("object"!=typeof t.margin){var s=t.margin||-1;this.margin={left:s,right:s,top:s,bottom:s}}else this.margin=t.margin;this.scrollWhenOutside=t.scrollWhenOutside||!1;var o={},a=function C$(n,t){var e=fg((t=t||{}).allowUpdate,!0);return function(r){if(r=r||window.event,n.target=r.target||r.srcElement||r.originalTarget,n.element=this,n.type=r.type,e(r)){if(r.targetTouches)n.x=r.targetTouches[0].clientX,n.y=r.targetTouches[0].clientY,n.pageX=r.targetTouches[0].pageX,n.pageY=r.targetTouches[0].pageY,n.screenX=r.targetTouches[0].screenX,n.screenY=r.targetTouches[0].screenY;else{if(null===r.pageX&&null!==r.clientX){var s=r.target&&r.target.ownerDocument||document,o=s.documentElement,a=s.body;n.pageX=r.clientX+(o&&o.scrollLeft||a&&a.scrollLeft||0)-(o&&o.clientLeft||a&&a.clientLeft||0),n.pageY=r.clientY+(o&&o.scrollTop||a&&a.scrollTop||0)-(o&&o.clientTop||a&&a.clientTop||0)}else n.pageX=r.pageX,n.pageY=r.pageY;n.x=r.clientX,n.y=r.clientY,n.screenX=r.screenX,n.screenY=r.screenY}n.clientX=n.x,n.clientY=n.y}}}(o),l=function M$(n){var t={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null};function e(s){for(var o=0;o<Ts.length;o++)t[Ts[o]]=s[Ts[o]]}return void 0!==n&&n.addEventListener("mousemove",e),{destroy:function r(){n&&n.removeEventListener("mousemove",e,!1),t=null},dispatch:MouseEvent?function(o,a,l){var c=new MouseEvent("mousemove",vg(t,a));return _g(c,l),o.dispatchEvent(c)}:"function"==typeof document.createEvent?function(o,a,l){var c=vg(t,a),u=document.createEvent("MouseEvents");return u.initMouseEvent("mousemove",!0,!0,window,0,c.screenX,c.screenY,c.clientX,c.clientY,c.ctrlKey,c.altKey,c.shiftKey,c.metaKey,c.button,c.relatedTarget),_g(u,l),o.dispatchEvent(u)}:"function"==typeof document.createEventObject?function(o,a,l){var c=document.createEventObject(),u=vg(t,a);for(var d in u)c[d]=u[d];return _g(c,l),o.dispatchEvent(c)}:void 0}}(),c=!1;window.addEventListener("mousemove",a,!1),window.addEventListener("touchmove",a,!1),isNaN(t.maxSpeed)||(i=t.maxSpeed),"object"!=typeof i&&(i={left:i,right:i,top:i,bottom:i}),this.autoScroll=fg(t.autoScroll),this.syncMove=fg(t.syncMove,!1),this.destroy=function(Q){window.removeEventListener("mousemove",a,!1),window.removeEventListener("touchmove",a,!1),window.removeEventListener("mousedown",v,!1),window.removeEventListener("touchstart",v,!1),window.removeEventListener("mouseup",D,!1),window.removeEventListener("touchend",D,!1),window.removeEventListener("pointerup",D,!1),window.removeEventListener("mouseleave",w,!1),window.removeEventListener("mousemove",j,!1),window.removeEventListener("touchmove",j,!1),window.removeEventListener("scroll",p,!0),n=[],Q&&E()},this.add=function(){for(var Q=[],N=arguments.length;N--;)Q[N]=arguments[N];return b$.apply(void 0,[n].concat(Q)),this},this.remove=function(){for(var Q=[],N=arguments.length;N--;)Q[N]=arguments[N];return D$.apply(void 0,[n].concat(Q))};var d,Q,u=null;"[object Array]"!==Object.prototype.toString.call(n)&&(n=[n]),Q=n,n=[],Q.forEach(function(N){N===window?u=window:e.add(N)}),Object.defineProperties(this,{down:{get:function(){return c}},maxSpeed:{get:function(){return i}},point:{get:function(){return o}},scrolling:{get:function(){return r}}});var f,h=null;function p(Q){for(var N=0;N<n.length;N++)if(n[N]===Q.target){r=!0;break}r&&rl(function(){return r=!1})}function v(){c=!0}function D(){c=!1,E()}function E(){jo(f),jo(d)}function w(){c=!1}function k(){for(var Q=null,N=0;N<n.length;N++)p0(o,n[N])&&(Q=n[N]);return Q}function j(Q){if(e.autoScroll()&&!Q.dispatched){var N=Q.target,je=document.body;h&&!p0(o,h)&&(e.scrollWhenOutside||(h=null)),N&&N.parentNode===je?N=k():(N=function M(Q){if(!Q)return null;if(h===Q||gg(n,Q))return Q;for(;Q=Q.parentNode;)if(gg(n,Q))return Q;return null}(N),N||(N=k())),N&&N!==h&&(h=N),u&&(jo(d),d=rl(be)),h&&(jo(f),f=rl(Fe))}}function be(){Ce(u),jo(d),d=rl(be)}function Fe(){!h||(Ce(h),jo(f),f=rl(Fe))}function Ce(Q){var je,Ge,N=f0(Q);je=o.x<N.left+e.margin.left?Math.floor(Math.max(-1,(o.x-N.left)/e.margin.left-1)*e.maxSpeed.left):o.x>N.right-e.margin.right?Math.ceil(Math.min(1,(o.x-N.right)/e.margin.right+1)*e.maxSpeed.right):0,Ge=o.y<N.top+e.margin.top?Math.floor(Math.max(-1,(o.y-N.top)/e.margin.top-1)*e.maxSpeed.top):o.y>N.bottom-e.margin.bottom?Math.ceil(Math.min(1,(o.y-N.bottom)/e.margin.bottom+1)*e.maxSpeed.bottom):0,e.syncMove()&&l.dispatch(Q,{pageX:o.pageX+je,pageY:o.pageY+Ge,clientX:o.x+je,clientY:o.y+Ge}),setTimeout(function(){Ge&&function fe(Q,N){Q===window?window.scrollTo(Q.pageXOffset,Q.pageYOffset+N):Q.scrollTop+=N}(Q,Ge),je&&function ae(Q,N){Q===window?window.scrollTo(Q.pageXOffset+N,Q.pageYOffset):Q.scrollLeft+=N}(Q,je)})}window.addEventListener("mousedown",v,!1),window.addEventListener("touchstart",v,!1),window.addEventListener("mouseup",D,!1),window.addEventListener("touchend",D,!1),window.addEventListener("pointerup",D,!1),window.addEventListener("mousemove",j,!1),window.addEventListener("touchmove",j,!1),window.addEventListener("mouseleave",w,!1),window.addEventListener("scroll",p,!0)}function p0(n,t,e){return e?n.y>e.top&&n.y<e.bottom&&n.x>e.left&&n.x<e.right:function x$(n,t){var e=f0(t);return n.y>e.top&&n.y<e.bottom&&n.x>e.left&&n.x<e.right}(n,t)}const g0=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function Tr(n){return t=>0===n?ip():t.lift(new k$(n))}class k${constructor(t){if(this.total=t,this.total<0)throw new g0}call(t,e){return e.subscribe(new O$(t,this.total))}}class O$ extends Ve{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}class R${constructor(t){if(this.total=t,this.total<0)throw new g0}call(t,e){return e.subscribe(new P$(t,this.total))}}class P$ extends Ve{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,r=this.count++;e.length<i?e.push(t):e[r%i]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<i;s++){const o=e++%i;t.next(r[o])}}t.complete()}}class L${constructor(t,e){this.predicate=t,this.source=e}call(t,e){return e.subscribe(new V$(t,this.predicate,this.source))}}class V$ extends Ve{constructor(t,e,i){super(t),this.predicate=e,this.source=i,this.count=0,this.index=0}_next(t){this.predicate?this._tryPredicate(t):this.count++}_tryPredicate(t){let e;try{e=this.predicate(t,this.index++,this.source)}catch(i){return void this.destination.error(i)}e&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}function wg(){return n=>n.lift(new B$)}class B${call(t,e){return e.subscribe(new H$(t))}}class H$ extends Ve{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}function m0(n,t){return e=>e.lift(new j$(n,t))}class j${constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new $$(t,this.compare,this.keySelector))}}class $$ extends Ve{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}class ur{constructor(){this.currentDrag=new O}}ur.\u0275fac=function(t){return new(t||ur)},ur.\u0275prov=R({token:ur,factory:ur.\u0275fac,providedIn:"root"}),ur.ngInjectableDef=mS({factory:function(){return new ur},token:ur,providedIn:"root"});let y0=(()=>{class n{constructor(e){this.elementRef=e,this.activeLongPressDrag=!1,this.longPressConfig={duration:300,delta:30}}}return n.\u0275fac=function(e){return new(e||n)(g(de))},n.\u0275dir=T({type:n,selectors:[["","mwlDraggableScrollContainer",""]],inputs:{activeLongPressDrag:"activeLongPressDrag",longPressConfig:"longPressConfig"}}),n})();function bg(n,t,e){e&&e.split(" ").forEach(i=>n.addClass(t.nativeElement,i))}function Fu(n,t,e){e&&e.split(" ").forEach(i=>n.removeClass(t.nativeElement,i))}let Dg=(()=>{class n{constructor(e,i,r,s,o,a,l){this.element=e,this.renderer=i,this.draggableHelper=r,this.zone=s,this.vcr=o,this.scrollContainer=a,this.document=l,this.dragAxis={x:!0,y:!0},this.dragSnapGrid={},this.ghostDragEnabled=!0,this.showOriginalElementWhileDragging=!1,this.dragCursor="",this.autoScroll={margin:20},this.dragPointerDown=new ie,this.dragStart=new ie,this.ghostElementCreated=new ie,this.dragging=new ie,this.dragEnd=new ie,this.pointerDown$=new O,this.pointerMove$=new O,this.pointerUp$=new O,this.eventListenerSubscriptions={},this.destroy$=new O,this.timeLongPress={timerBegin:0,timerEnd:0}}ngOnInit(){this.checkEventListeners();const e=this.pointerDown$.pipe(Tn(()=>this.canDrag()),$(i=>{i.event.stopPropagation&&!this.scrollContainer&&i.event.stopPropagation();const r=this.renderer.createElement("style");this.renderer.setAttribute(r,"type","text/css"),this.renderer.appendChild(r,this.renderer.createText("\n body * {\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n ")),requestAnimationFrame(()=>{this.document.head.appendChild(r)});const s=this.getScrollPosition(),o=new Y(f=>this.renderer.listen(this.scrollContainer?this.scrollContainer.elementRef.nativeElement:"window","scroll",v=>f.next(v))).pipe(Au(s),P(()=>this.getScrollPosition())),a=new O,l=new wD;this.zone.run(()=>{this.dragPointerDown.next({x:0,y:0})});const c=qt(this.pointerUp$,this.pointerDown$,l,this.destroy$).pipe(Ai()),u=c0([this.pointerMove$,o]).pipe(P(([f,p])=>({currentDrag$:a,transformX:f.clientX-i.clientX,transformY:f.clientY-i.clientY,clientX:f.clientX,clientY:f.clientY,scrollLeft:p.left,scrollTop:p.top,target:f.event.target})),P(f=>(this.dragSnapGrid.x&&(f.transformX=Math.round(f.transformX/this.dragSnapGrid.x)*this.dragSnapGrid.x),this.dragSnapGrid.y&&(f.transformY=Math.round(f.transformY/this.dragSnapGrid.y)*this.dragSnapGrid.y),f)),P(f=>(this.dragAxis.x||(f.transformX=0),this.dragAxis.y||(f.transformY=0),f)),P(f=>Object.assign({},f,{x:f.transformX+(f.scrollLeft-s.left),y:f.transformY+(f.scrollTop-s.top)})),Tn(({x:f,y:p,transformX:v,transformY:D})=>!this.validateDrag||this.validateDrag({x:f,y:p,transform:{x:v,y:D}})),vt(c),Ai()),d=u.pipe(Tr(1),Ai()),h=u.pipe(function F$(n){return function(e){return 0===n?ip():e.lift(new R$(n))}}(1),Ai());return d.subscribe(({clientX:f,clientY:p,x:v,y:D})=>{if(this.zone.run(()=>{this.dragStart.next({cancelDrag$:l})}),this.scroller=function T$(n,t){return new A$(n,t)}([this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.defaultView],Object.assign({},this.autoScroll,{autoScroll:()=>!0})),bg(this.renderer,this.element,this.dragActiveClass),this.ghostDragEnabled){const E=this.element.nativeElement.getBoundingClientRect(),w=this.element.nativeElement.cloneNode(!0);if(this.showOriginalElementWhileDragging||this.renderer.setStyle(this.element.nativeElement,"visibility","hidden"),this.ghostElementAppendTo?this.ghostElementAppendTo.appendChild(w):this.element.nativeElement.parentNode.insertBefore(w,this.element.nativeElement.nextSibling),this.ghostElement=w,this.document.body.style.cursor=this.dragCursor,this.setElementStyles(w,{position:"fixed",top:`${E.top}px`,left:`${E.left}px`,width:`${E.width}px`,height:`${E.height}px`,cursor:this.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),this.ghostElementTemplate){const M=this.vcr.createEmbeddedView(this.ghostElementTemplate);w.innerHTML="",M.rootNodes.filter(k=>k instanceof Node).forEach(k=>{w.appendChild(k)}),h.subscribe(()=>{this.vcr.remove(this.vcr.indexOf(M))})}this.zone.run(()=>{this.ghostElementCreated.emit({clientX:f-v,clientY:p-D,element:w})}),h.subscribe(()=>{w.parentElement.removeChild(w),this.ghostElement=null,this.renderer.setStyle(this.element.nativeElement,"visibility","")})}this.draggableHelper.currentDrag.next(a)}),h.pipe($(f=>{const p=l.pipe(function N$(n){return t=>t.lift(new L$(n,t))}(),Tr(1),P(v=>Object.assign({},f,{dragCancelled:v>0})));return l.complete(),p})).subscribe(({x:f,y:p,dragCancelled:v})=>{this.scroller.destroy(),this.zone.run(()=>{this.dragEnd.next({x:f,y:p,dragCancelled:v})}),Fu(this.renderer,this.element,this.dragActiveClass),a.complete()}),qt(c,h).pipe(Tr(1)).subscribe(()=>{requestAnimationFrame(()=>{this.document.head.removeChild(r)})}),u}),Ai());qt(e.pipe(Tr(1),P(i=>[,i])),e.pipe(wg())).pipe(Tn(([i,r])=>!i||i.x!==r.x||i.y!==r.y),P(([i,r])=>r)).subscribe(({x:i,y:r,currentDrag$:s,clientX:o,clientY:a,transformX:l,transformY:c,target:u})=>{this.zone.run(()=>{this.dragging.next({x:i,y:r})}),requestAnimationFrame(()=>{if(this.ghostElement){const d=`translate3d(${l}px, ${c}px, 0px)`;this.setElementStyles(this.ghostElement,{transform:d,"-webkit-transform":d,"-ms-transform":d,"-moz-transform":d,"-o-transform":d})}}),s.next({clientX:o,clientY:a,dropData:this.dropData,target:u})})}ngOnChanges(e){e.dragAxis&&this.checkEventListeners()}ngOnDestroy(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}checkEventListeners(){const e=this.canDrag(),i=Object.keys(this.eventListenerSubscriptions).length>0;e&&!i?this.zone.runOutsideAngular(()=>{this.eventListenerSubscriptions.mousedown=this.renderer.listen(this.element.nativeElement,"mousedown",r=>{this.onMouseDown(r)}),this.eventListenerSubscriptions.mouseup=this.renderer.listen("document","mouseup",r=>{this.onMouseUp(r)}),this.eventListenerSubscriptions.touchstart=this.renderer.listen(this.element.nativeElement,"touchstart",r=>{this.onTouchStart(r)}),this.eventListenerSubscriptions.touchend=this.renderer.listen("document","touchend",r=>{this.onTouchEnd(r)}),this.eventListenerSubscriptions.touchcancel=this.renderer.listen("document","touchcancel",r=>{this.onTouchEnd(r)}),this.eventListenerSubscriptions.mouseenter=this.renderer.listen(this.element.nativeElement,"mouseenter",()=>{this.onMouseEnter()}),this.eventListenerSubscriptions.mouseleave=this.renderer.listen(this.element.nativeElement,"mouseleave",()=>{this.onMouseLeave()})}):!e&&i&&this.unsubscribeEventListeners()}onMouseDown(e){0===e.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",i=>{this.pointerMove$.next({event:i,clientX:i.clientX,clientY:i.clientY})})),this.pointerDown$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}onMouseUp(e){0===e.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}onTouchStart(e){let i,r,s;if((this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&(this.timeLongPress.timerBegin=Date.now(),r=!1,s=this.hasScrollbar(),i=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){const o=nl(this.document,"contextmenu").subscribe(l=>{l.preventDefault()}),a=nl(this.document,"touchmove",{passive:!1}).subscribe(l=>{(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&!r&&s&&(r=this.shouldBeginDrag(e,l,i)),((!this.scrollContainer||!this.scrollContainer.activeLongPressDrag)&&!this.touchStartLongPress||!s||r)&&(l.preventDefault(),this.pointerMove$.next({event:l,clientX:l.targetTouches[0].clientX,clientY:l.targetTouches[0].clientY}))});this.eventListenerSubscriptions.touchmove=()=>{o.unsubscribe(),a.unsubscribe()}}this.pointerDown$.next({event:e,clientX:e.touches[0].clientX,clientY:e.touches[0].clientY})}onTouchEnd(e){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&this.enableScroll()),this.pointerUp$.next({event:e,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY})}onMouseEnter(){this.setCursor(this.dragCursor)}onMouseLeave(){this.setCursor("")}canDrag(){return this.dragAxis.x||this.dragAxis.y}setCursor(e){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",e)}unsubscribeEventListeners(){Object.keys(this.eventListenerSubscriptions).forEach(e=>{this.eventListenerSubscriptions[e](),delete this.eventListenerSubscriptions[e]})}setElementStyles(e,i){Object.keys(i).forEach(r=>{this.renderer.setStyle(e,r,i[r])})}getScrollElement(){return this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.body}getScrollPosition(){return this.scrollContainer?{top:this.scrollContainer.elementRef.nativeElement.scrollTop,left:this.scrollContainer.elementRef.nativeElement.scrollLeft}:{top:window.pageYOffset||this.document.documentElement.scrollTop,left:window.pageXOffset||this.document.documentElement.scrollLeft}}shouldBeginDrag(e,i,r){const s=this.getScrollPosition(),o_top=Math.abs(s.top-r.top),o_left=Math.abs(s.left-r.left),a=Math.abs(i.targetTouches[0].clientX-e.touches[0].clientX)-o_left,l=Math.abs(i.targetTouches[0].clientY-e.touches[0].clientY)-o_top,u=this.touchStartLongPress?this.touchStartLongPress:{delta:this.scrollContainer.longPressConfig.delta,delay:this.scrollContainer.longPressConfig.duration};return(a+l>u.delta||o_top>0||o_left>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=u.delay&&(this.disableScroll(),!0)}enableScroll(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow",""),this.renderer.setStyle(this.document.body,"overflow","")}disableScroll(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow","hidden"),this.renderer.setStyle(this.document.body,"overflow","hidden")}hasScrollbar(){const e=this.getScrollElement();return e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(ln),g(ur),g($e),g(Un),g(y0,8),g(ke))},n.\u0275dir=T({type:n,selectors:[["","mwlDraggable",""]],inputs:{dragAxis:"dragAxis",dragSnapGrid:"dragSnapGrid",ghostDragEnabled:"ghostDragEnabled",showOriginalElementWhileDragging:"showOriginalElementWhileDragging",dragCursor:"dragCursor",autoScroll:"autoScroll",dropData:"dropData",validateDrag:"validateDrag",dragActiveClass:"dragActiveClass",ghostElementAppendTo:"ghostElementAppendTo",ghostElementTemplate:"ghostElementTemplate",touchStartLongPress:"touchStartLongPress"},outputs:{dragPointerDown:"dragPointerDown",dragStart:"dragStart",ghostElementCreated:"ghostElementCreated",dragging:"dragging",dragEnd:"dragEnd"},features:[hn]}),n})();function v0(n,t,e){return n>=e.left&&n<=e.right&&t>=e.top&&t<=e.bottom}let Cg=(()=>{class n{constructor(e,i,r,s,o){this.element=e,this.draggableHelper=i,this.zone=r,this.renderer=s,this.scrollContainer=o,this.dragEnter=new ie,this.dragLeave=new ie,this.dragOver=new ie,this.drop=new ie}ngOnInit(){this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe(e=>{bg(this.renderer,this.element,this.dragActiveClass);const i={updateCache:!0},r=this.renderer.listen(this.scrollContainer?this.scrollContainer.elementRef.nativeElement:"window","scroll",()=>{i.updateCache=!0});let s;const o=e.pipe(P(({clientX:c,clientY:u,dropData:d,target:h})=>{s=d,i.updateCache&&(i.rect=this.element.nativeElement.getBoundingClientRect(),this.scrollContainer&&(i.scrollContainerRect=this.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),i.updateCache=!1);const f=v0(c,u,i.rect),p=!this.validateDrop||this.validateDrop({clientX:c,clientY:u,target:h});return i.scrollContainerRect?f&&p&&v0(c,u,i.scrollContainerRect):f&&p})),a=o.pipe(m0());let l;a.pipe(Tn(c=>c)).subscribe(()=>{l=!0,bg(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.dragEnter.next({dropData:s})})}),o.pipe(Tn(c=>c)).subscribe(()=>{this.zone.run(()=>{this.dragOver.next({dropData:s})})}),a.pipe(wg(),Tn(([c,u])=>c&&!u)).subscribe(()=>{l=!1,Fu(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.dragLeave.next({dropData:s})})}),e.subscribe({complete:()=>{r(),Fu(this.renderer,this.element,this.dragActiveClass),l&&(Fu(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.drop.next({dropData:s})}))}})})}ngOnDestroy(){this.currentDragSubscription&&this.currentDragSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(ur),g($e),g(ln),g(y0,8))},n.\u0275dir=T({type:n,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass",validateDrop:"validateDrop"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}}),n})(),Ru=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({}),n})();class G${constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new U$(t,this.durationSelector))}}class U$ extends C{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=F(e,new Qn(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Eg(n,t=Ja){return function z$(n){return function(e){return e.lift(new G$(n))}}(()=>r0(n,t))}"undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator),Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});let S0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({}),n})();const ez=function(n){return{action:n}};function tz(n,t){if(1&n){const e=Nn();oe(0,"a",5),Le("mwlClick",function(r){const o=Ie(e).$implicit,a=G(2).event;return o.onClick({event:a,sourceEvent:r})})("mwlKeydownEnter",function(r){const o=Ie(e).$implicit,a=G(2).event;return o.onClick({event:a,sourceEvent:r})}),It(1,"calendarA11y"),ye()}if(2&n){const e=t.$implicit;L("ngClass",e.cssClass)("innerHtml",e.label,ql),zt("aria-label",Bi(1,3,gs(6,ez,e),"actionButtonLabel"))}}function nz(n,t){if(1&n&&(oe(0,"span",3),pe(1,tz,2,8,"a",4),ye()),2&n){const e=G(),i=e.event,r=e.trackByActionId;te(1),L("ngForOf",i.actions)("ngForTrackBy",r)}}function iz(n,t){1&n&&pe(0,nz,2,2,"span",2),2&n&&L("ngIf",t.event.actions)}function rz(n,t){}const sz=function(n,t){return{event:n,trackByActionId:t}},zo=function(){return{}};function oz(n,t){if(1&n&&(Xt(0,"span",2),It(1,"calendarEventTitle"),It(2,"calendarA11y")),2&n){const e=t.event;L("innerHTML",Hi(1,2,e.title,t.view,e),ql),zt("aria-hidden",Bi(2,6,Bn(9,zo),"hideEventTitle"))}}function az(n,t){}const lz=function(n,t){return{event:n,view:t}};function cz(n,t){if(1&n&&(oe(0,"div",2),Xt(1,"div",3)(2,"div",4),ye()),2&n){const e=t.contents;L("ngClass","cal-tooltip-"+t.placement),te(2),L("innerHtml",e,ql)}}function uz(n,t){}const dz=function(n,t,e){return{contents:n,placement:t,event:e}},Sg=function(n){return{backgroundColor:n}};function hz(n,t){if(1&n){const e=Nn();oe(0,"mwl-calendar-month-cell",7),Le("mwlClick",function(r){const o=Ie(e).$implicit;return G(2).dayClicked.emit({day:o,sourceEvent:r})})("mwlKeydownEnter",function(r){const o=Ie(e).$implicit;return G(2).dayClicked.emit({day:o,sourceEvent:r})})("highlightDay",function(r){return Ie(e),G(2).toggleDayHighlight(r.event,!0)})("unhighlightDay",function(r){return Ie(e),G(2).toggleDayHighlight(r.event,!1)})("drop",function(r){const o=Ie(e).$implicit;return G(2).eventDropped(o,r.dropData.event,r.dropData.draggedFrom)})("eventClicked",function(r){return Ie(e),G(2).eventClicked.emit({event:r.event,sourceEvent:r.sourceEvent})}),It(1,"calendarA11y"),ye()}if(2&n){const e=t.$implicit,i=G(2);L("ngClass",null==e?null:e.cssClass)("day",e)("openDay",i.openDay)("locale",i.locale)("tooltipPlacement",i.tooltipPlacement)("tooltipAppendToBody",i.tooltipAppendToBody)("tooltipTemplate",i.tooltipTemplate)("tooltipDelay",i.tooltipDelay)("customTemplate",i.cellTemplate)("ngStyle",gs(15,Sg,e.backgroundColor))("clickListenerDisabled",0===i.dayClicked.observers.length),zt("tabindex",Bi(1,12,Bn(17,zo),"monthCellTabIndex"))}}function fz(n,t){if(1&n){const e=Nn();oe(0,"div")(1,"div",4),pe(2,hz,2,18,"mwl-calendar-month-cell",5),It(3,"slice"),ye(),oe(4,"mwl-calendar-open-day-events",6),Le("eventClicked",function(r){return Ie(e),G().eventClicked.emit({event:r.event,sourceEvent:r.sourceEvent})})("drop",function(r){Ie(e);const s=G();return s.eventDropped(s.openDay,r.dropData.event,r.dropData.draggedFrom)}),ye()()}if(2&n){const e=t.$implicit,i=G();te(2),L("ngForOf",Hi(3,9,i.view.days,e,e+i.view.totalDaysVisibleInWeek))("ngForTrackBy",i.trackByDate),te(2),L("locale",i.locale)("isOpen",i.openRowIndex===e)("events",null==i.openDay?null:i.openDay.events)("date",null==i.openDay?null:i.openDay.date)("customTemplate",i.openDayEventsTemplate)("eventTitleTemplate",i.eventTitleTemplate)("eventActionsTemplate",i.eventActionsTemplate)}}function pz(n,t){if(1&n){const e=Nn();oe(0,"div",4),Le("click",function(r){const o=Ie(e).$implicit;return G(2).columnHeaderClicked.emit({isoDayNumber:o.day,sourceEvent:r})}),Ln(1),It(2,"calendarDate"),ye()}if(2&n){const e=t.$implicit,i=G().locale;Qt("cal-past",e.isPast)("cal-today",e.isToday)("cal-future",e.isFuture)("cal-weekend",e.isWeekend),L("ngClass",e.cssClass),te(1),Co(" ",Hi(2,10,e.date,"monthViewColumnHeader",i)," ")}}function gz(n,t){if(1&n&&(oe(0,"div",2),pe(1,pz,3,14,"div",3),ye()),2&n){const e=t.days,i=t.trackByWeekDayHeaderDate;te(1),L("ngForOf",e)("ngForTrackBy",i)}}function mz(n,t){}const yz=function(n,t,e){return{days:n,locale:t,trackByWeekDayHeaderDate:e}};function vz(n,t){if(1&n&&(oe(0,"span",7),Ln(1),ye()),2&n){const e=G().day;te(1),fs(e.badgeTotal)}}const _z=function(n,t){return{event:n,draggedFrom:t}},sl=function(n,t){return{x:n,y:t}},Lu=function(){return{delay:300,delta:30}};function wz(n,t){if(1&n){const e=Nn();oe(0,"div",10),Le("mouseenter",function(){const s=Ie(e).$implicit;return G(2).highlightDay.emit({event:s})})("mouseleave",function(){const s=Ie(e).$implicit;return G(2).unhighlightDay.emit({event:s})})("mwlClick",function(r){const o=Ie(e).$implicit;return G(2).eventClicked.emit({event:o,sourceEvent:r})}),It(1,"calendarEventTitle"),It(2,"calendarA11y"),ye()}if(2&n){const e=t.$implicit,i=G(2),r=i.tooltipPlacement,s=i.tooltipTemplate,o=i.tooltipAppendToBody,a=i.tooltipDelay,l=i.day,c=i.validateDrag;Qt("cal-draggable",e.draggable),L("ngStyle",gs(22,Sg,null==e.color?null:e.color.primary))("ngClass",null==e?null:e.cssClass)("mwlCalendarTooltip",Hi(1,15,e.title,"monthTooltip",e))("tooltipPlacement",r)("tooltipEvent",e)("tooltipTemplate",s)("tooltipAppendToBody",o)("tooltipDelay",a)("dropData",pn(24,_z,e,l))("dragAxis",pn(27,sl,e.draggable,e.draggable))("validateDrag",c)("touchStartLongPress",Bn(30,Lu)),zt("aria-hidden",Bi(2,19,Bn(31,zo),"hideMonthCellEvents"))}}function bz(n,t){if(1&n&&(oe(0,"div",8),pe(1,wz,3,32,"div",9),ye()),2&n){const e=G(),i=e.day,r=e.trackByEventId;te(1),L("ngForOf",i.events)("ngForTrackBy",r)}}const Dz=function(n,t){return{day:n,locale:t}};function Cz(n,t){if(1&n&&(oe(0,"div",2),It(1,"calendarA11y"),oe(2,"span",3),pe(3,vz,2,1,"span",4),oe(4,"span",5),Ln(5),It(6,"calendarDate"),ye()()(),pe(7,bz,2,2,"div",6)),2&n){const e=t.day,i=t.locale;zt("aria-label",Bi(1,4,pn(11,Dz,e,i),"monthCell")),te(3),L("ngIf",e.badgeTotal>0),te(2),fs(Hi(6,7,e.date,"monthViewDayNumber",i)),te(2),L("ngIf",e.events.length>0)}}function Ez(n,t){}const xz=function(n,t,e,i,r,s,o,a,l,c,u,d){return{day:n,openDay:t,locale:e,tooltipPlacement:i,highlightDay:r,unhighlightDay:s,eventClicked:o,tooltipTemplate:a,tooltipAppendToBody:l,tooltipDelay:c,trackByEventId:u,validateDrag:d}},Sz=function(n){return{event:n}},M0=function(n,t){return{event:n,locale:t}};function Mz(n,t){if(1&n){const e=Nn();oe(0,"div",7),Xt(1,"span",8),Ln(2," "),oe(3,"mwl-calendar-event-title",9),Le("mwlClick",function(r){const o=Ie(e).$implicit;return G(2).eventClicked.emit({event:o,sourceEvent:r})})("mwlKeydownEnter",function(r){const o=Ie(e).$implicit;return G(2).eventClicked.emit({event:o,sourceEvent:r})}),It(4,"calendarA11y"),ye(),Ln(5," "),Xt(6,"mwl-calendar-event-actions",10),ye()}if(2&n){const e=t.$implicit,i=G(2).validateDrag,r=G();Qt("cal-draggable",e.draggable),L("ngClass",null==e?null:e.cssClass)("dropData",gs(16,Sz,e))("dragAxis",pn(18,sl,e.draggable,e.draggable))("validateDrag",i)("touchStartLongPress",Bn(21,Lu)),te(1),L("ngStyle",gs(22,Sg,null==e.color?null:e.color.primary)),te(2),L("event",e)("customTemplate",r.eventTitleTemplate),zt("aria-label",Bi(4,13,pn(24,M0,e,r.locale),"eventDescription")),te(3),L("event",e)("customTemplate",r.eventActionsTemplate)}}const A0=function(n,t){return{date:n,locale:t}};function Az(n,t){if(1&n&&(oe(0,"div",3),Xt(1,"span",4),It(2,"calendarA11y"),Xt(3,"span",5),It(4,"calendarA11y"),pe(5,Mz,7,27,"div",6),ye()),2&n){const e=G(),i=e.events,r=e.trackByEventId,s=G();L("@collapse",void 0),te(1),zt("aria-label",Bi(2,5,pn(11,A0,s.date,s.locale),"openDayEventsAlert")),te(2),zt("aria-label",Bi(4,8,pn(14,A0,s.date,s.locale),"openDayEventsLandmark")),te(2),L("ngForOf",i)("ngForTrackBy",r)}}function Tz(n,t){1&n&&pe(0,Az,6,17,"div",2),2&n&&L("ngIf",t.isOpen)}function Iz(n,t){}const kz=function(n,t,e,i,r){return{events:n,eventClicked:t,isOpen:e,trackByEventId:i,validateDrag:r}};let I0=(()=>{let n=class{constructor(){this.trackByActionId=(e,i)=>i.id?i.id:i}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-event-actions"]],inputs:{event:"event",customTemplate:"customTemplate"},decls:3,vars:5,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","cal-event-actions",4,"ngIf"],[1,"cal-event-actions"],["class","cal-event-action","href","javascript:;","tabindex","0","role","button",3,"ngClass","innerHtml","mwlClick","mwlKeydownEnter",4,"ngFor","ngForOf","ngForTrackBy"],["href","javascript:;","tabindex","0","role","button",1,"cal-event-action",3,"ngClass","innerHtml","mwlClick","mwlKeydownEnter"]],template:function(e,i){if(1&e&&(pe(0,iz,1,1,"ng-template",null,0,vi),pe(2,rz,0,0,"ng-template",1)),2&e){const r=fn(1);te(2),L("ngTemplateOutlet",i.customTemplate||r)("ngTemplateOutletContext",pn(2,sz,i.event,i.trackByActionId))}},directives:function(){return[ws,Hr,ai,ks,Hu,Di]},pipes:function(){return[Os]},encapsulation:2}),b([x(),_("design:type",Object)],n.prototype,"event",void 0),b([x(),_("design:type",De)],n.prototype,"customTemplate",void 0),n})(),k0=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-event-title"]],inputs:{event:"event",customTemplate:"customTemplate",view:"view"},decls:3,vars:5,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-event-title",3,"innerHTML"]],template:function(e,i){if(1&e&&(pe(0,oz,3,10,"ng-template",null,0,vi),pe(2,az,0,0,"ng-template",1)),2&e){const r=fn(1);te(2),L("ngTemplateOutlet",i.customTemplate||r)("ngTemplateOutletContext",pn(2,lz,i.event,i.view))}},directives:function(){return[Di]},pipes:function(){return[Ig,Os]},encapsulation:2}),b([x(),_("design:type",Object)],n.prototype,"event",void 0),b([x(),_("design:type",De)],n.prototype,"customTemplate",void 0),b([x(),_("design:type",String)],n.prototype,"view",void 0),n})(),vG=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-tooltip-window"]],inputs:{contents:"contents",placement:"placement",event:"event",customTemplate:"customTemplate"},decls:3,vars:6,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-tooltip",3,"ngClass"],[1,"cal-tooltip-arrow"],[1,"cal-tooltip-inner",3,"innerHtml"]],template:function(e,i){if(1&e&&(pe(0,cz,3,2,"ng-template",null,0,vi),pe(2,uz,0,0,"ng-template",1)),2&e){const r=fn(1);te(2),L("ngTemplateOutlet",i.customTemplate||r)("ngTemplateOutletContext",rf(2,dz,i.contents,i.placement,i.event))}},directives:[ai,Di],encapsulation:2}),b([x(),_("design:type",String)],n.prototype,"contents",void 0),b([x(),_("design:type",String)],n.prototype,"placement",void 0),b([x(),_("design:type",Object)],n.prototype,"event",void 0),b([x(),_("design:type",De)],n.prototype,"customTemplate",void 0),n})(),O0=(()=>{let n=class{constructor(e,i,r,s,o,a){this.elementRef=e,this.injector=i,this.renderer=r,this.viewContainerRef=o,this.document=a,this.placement="auto",this.delay=null,this.cancelTooltipDelay$=new O,this.tooltipFactory=s.resolveComponentFactory(vG)}ngOnChanges(e){this.tooltipRef&&(e.contents||e.customTemplate||e.event)&&(this.tooltipRef.instance.contents=this.contents,this.tooltipRef.instance.customTemplate=this.customTemplate,this.tooltipRef.instance.event=this.event,this.tooltipRef.changeDetectorRef.markForCheck(),this.contents||this.hide())}ngOnDestroy(){this.hide()}onMouseOver(){(null===this.delay?Gi("now"):r0(this.delay)).pipe(vt(this.cancelTooltipDelay$)).subscribe(()=>{this.show()})}onMouseOut(){this.hide()}show(){!this.tooltipRef&&this.contents&&(this.tooltipRef=this.viewContainerRef.createComponent(this.tooltipFactory,0,this.injector,[]),this.tooltipRef.instance.contents=this.contents,this.tooltipRef.instance.customTemplate=this.customTemplate,this.tooltipRef.instance.event=this.event,this.appendToBody&&this.document.body.appendChild(this.tooltipRef.location.nativeElement),requestAnimationFrame(()=>{this.positionTooltip()}))}hide(){this.tooltipRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.tooltipRef.hostView)),this.tooltipRef=null),this.cancelTooltipDelay$.next()}positionTooltip(e=[]){this.tooltipRef&&(this.tooltipRef.changeDetectorRef.detectChanges(),this.tooltipRef.instance.placement=function Wj(n,t,e,i,r){var s=Array.isArray(e)?e:e.split(Uj),o=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=t.classList,l=function(D){var E=D.split("-"),w=E[0],M=E[1],k=[];return r&&(k.push(r+"-"+w),M&&k.push(r+"-"+w+"-"+M),k.forEach(function(j){a.add(j)})),k};r&&o.forEach(function(D){a.remove(r+"-"+D)});var c=s.findIndex(function(D){return"auto"===D});c>=0&&o.forEach(function(D){null==s.find(function(E){return-1!==E.search("^"+D)})&&s.splice(c++,1,D)});var u=t.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";for(var d,h=!1,f=0,p=s;f<p.length;f++){var v=l(d=p[f]);if(n0.positionElements(n,t,d,i)){h=!0;break}r&&v.forEach(function(D){a.remove(D)})}return h||(l(d=s[0]),n0.positionElements(n,t,d,i)),d}(this.elementRef.nativeElement,this.tooltipRef.location.nativeElement.children[0],this.placement,this.appendToBody),-1===e.indexOf(this.tooltipRef.instance.placement)&&this.positionTooltip([...e,this.tooltipRef.instance.placement]))}};return n.\u0275fac=function(e){return new(e||n)(g(de),g(wn),g(ln),g(Cr),g(Un),g(ke))},n.\u0275dir=T({type:n,selectors:[["","mwlCalendarTooltip",""]],hostBindings:function(e,i){1&e&&Le("mouseenter",function(){return i.onMouseOver()})("mouseleave",function(){return i.onMouseOut()})},inputs:{placement:["tooltipPlacement","placement"],delay:["tooltipDelay","delay"],contents:["mwlCalendarTooltip","contents"],customTemplate:["tooltipTemplate","customTemplate"],event:["tooltipEvent","event"],appendToBody:["tooltipAppendToBody","appendToBody"]},features:[hn]}),b([x("mwlCalendarTooltip"),_("design:type",String)],n.prototype,"contents",void 0),b([x("tooltipPlacement"),_("design:type",Object)],n.prototype,"placement",void 0),b([x("tooltipTemplate"),_("design:type",De)],n.prototype,"customTemplate",void 0),b([x("tooltipEvent"),_("design:type",Object)],n.prototype,"event",void 0),b([x("tooltipAppendToBody"),_("design:type",Boolean)],n.prototype,"appendToBody",void 0),b([x("tooltipDelay"),_("design:type",Number)],n.prototype,"delay",void 0),b([Ra("mouseenter"),_("design:type",Function),_("design:paramtypes",[]),_("design:returntype",void 0)],n.prototype,"onMouseOver",null),b([Ra("mouseleave"),_("design:type",Function),_("design:paramtypes",[]),_("design:returntype",void 0)],n.prototype,"onMouseOut",null),n=b([Ho(5,_r(ke)),_("design:paramtypes",[de,wn,ln,Cr,Un,Object])],n),n})();class Dn{}var Qr=(()=>(function(n){n.Month="month",n.Week="week",n.Day="day"}(Qr||(Qr={})),Qr))();const N0=(n,t)=>t.id?t.id:t,Mg=(n,t)=>t.date.toISOString();function Yi(n,t,e,i){let r=0,s=0;const o=e<0?n.subDays:n.addDays;let a=t;for(;s<=Math.abs(e);){a=o(t,r);const l=n.getDay(a);-1===i.indexOf(l)&&s++,r++}return a}function Vu({x:n,y:t}){return Math.abs(n)>1||Math.abs(t)>1}let MG=(()=>{let n=class{constructor(e){this.dateAdapter=e,this.excludeDays=[],this.viewDateChange=new ie}onClick(){const e={day:this.dateAdapter.subDays,week:this.dateAdapter.subWeeks,month:this.dateAdapter.subMonths}[this.view];this.viewDateChange.emit(this.view===Qr.Day?Yi(this.dateAdapter,this.viewDate,-1,this.excludeDays):this.view===Qr.Week&&this.daysInWeek?Yi(this.dateAdapter,this.viewDate,-this.daysInWeek,this.excludeDays):e(this.viewDate,1))}};return n.\u0275fac=function(e){return new(e||n)(g(Dn))},n.\u0275dir=T({type:n,selectors:[["","mwlCalendarPreviousView",""]],hostBindings:function(e,i){1&e&&Le("click",function(){return i.onClick()})},inputs:{excludeDays:"excludeDays",view:"view",viewDate:"viewDate",daysInWeek:"daysInWeek"},outputs:{viewDateChange:"viewDateChange"}}),b([x(),_("design:type",String)],n.prototype,"view",void 0),b([x(),_("design:type",Date)],n.prototype,"viewDate",void 0),b([x(),_("design:type",Array)],n.prototype,"excludeDays",void 0),b([x(),_("design:type",Number)],n.prototype,"daysInWeek",void 0),b([ut(),_("design:type",ie)],n.prototype,"viewDateChange",void 0),b([Ra("click"),_("design:type",Function),_("design:paramtypes",[]),_("design:returntype",void 0)],n.prototype,"onClick",null),n=b([_("design:paramtypes",[Dn])],n),n})(),AG=(()=>{let n=class{constructor(e){this.dateAdapter=e,this.excludeDays=[],this.viewDateChange=new ie}onClick(){const e={day:this.dateAdapter.addDays,week:this.dateAdapter.addWeeks,month:this.dateAdapter.addMonths}[this.view];this.viewDateChange.emit(this.view===Qr.Day?Yi(this.dateAdapter,this.viewDate,1,this.excludeDays):this.view===Qr.Week&&this.daysInWeek?Yi(this.dateAdapter,this.viewDate,this.daysInWeek,this.excludeDays):e(this.viewDate,1))}};return n.\u0275fac=function(e){return new(e||n)(g(Dn))},n.\u0275dir=T({type:n,selectors:[["","mwlCalendarNextView",""]],hostBindings:function(e,i){1&e&&Le("click",function(){return i.onClick()})},inputs:{excludeDays:"excludeDays",view:"view",viewDate:"viewDate",daysInWeek:"daysInWeek"},outputs:{viewDateChange:"viewDateChange"}}),b([x(),_("design:type",String)],n.prototype,"view",void 0),b([x(),_("design:type",Date)],n.prototype,"viewDate",void 0),b([x(),_("design:type",Array)],n.prototype,"excludeDays",void 0),b([x(),_("design:type",Number)],n.prototype,"daysInWeek",void 0),b([ut(),_("design:type",ie)],n.prototype,"viewDateChange",void 0),b([Ra("click"),_("design:type",Function),_("design:paramtypes",[]),_("design:returntype",void 0)],n.prototype,"onClick",null),n=b([_("design:paramtypes",[Dn])],n),n})(),TG=(()=>{let n=class{constructor(e){this.dateAdapter=e,this.viewDateChange=new ie}onClick(){this.viewDateChange.emit(this.dateAdapter.startOfDay(new Date))}};return n.\u0275fac=function(e){return new(e||n)(g(Dn))},n.\u0275dir=T({type:n,selectors:[["","mwlCalendarToday",""]],hostBindings:function(e,i){1&e&&Le("click",function(){return i.onClick()})},inputs:{viewDate:"viewDate"},outputs:{viewDateChange:"viewDateChange"}}),b([x(),_("design:type",Date)],n.prototype,"viewDate",void 0),b([ut(),_("design:type",ie)],n.prototype,"viewDateChange",void 0),b([Ra("click"),_("design:type",Function),_("design:paramtypes",[]),_("design:returntype",void 0)],n.prototype,"onClick",null),n=b([_("design:paramtypes",[Dn])],n),n})(),IG=(()=>{let n=class{constructor(e){this.dateAdapter=e}monthViewColumnHeader({date:e,locale:i}){return un(e,"EEEE",i)}monthViewDayNumber({date:e,locale:i}){return un(e,"d",i)}monthViewTitle({date:e,locale:i}){return un(e,"LLLL y",i)}weekViewColumnHeader({date:e,locale:i}){return un(e,"EEEE",i)}weekViewColumnSubHeader({date:e,locale:i}){return un(e,"MMM d",i)}weekViewTitle({date:e,locale:i,weekStartsOn:r,excludeDays:s,daysInWeek:o}){const{viewStart:a,viewEnd:l}=function Tg(n,t,e,i=[],r){let s=r?n.startOfDay(t):n.startOfWeek(t,{weekStartsOn:e});const o=n.endOfWeek(t,{weekStartsOn:e});for(;i.indexOf(n.getDay(s))>-1&&s<o;)s=n.addDays(s,1);if(r)return{viewStart:s,viewEnd:n.endOfDay(Yi(n,s,r-1,i))};{let a=o;for(;i.indexOf(n.getDay(a))>-1&&a>s;)a=n.subDays(a,1);return{viewStart:s,viewEnd:a}}}(this.dateAdapter,e,r,s,o),c=(u,d)=>un(u,"MMM d"+(d?", yyyy":""),i);return`${c(a,a.getUTCFullYear()!==l.getUTCFullYear())} - ${c(l,!0)}`}weekViewHour({date:e,locale:i}){return un(e,"h a",i)}dayViewHour({date:e,locale:i}){return un(e,"h a",i)}dayViewTitle({date:e,locale:i}){return un(e,"EEEE, MMMM d, y",i)}};return n.\u0275fac=function(e){return new(e||n)(S(Dn))},n.\u0275prov=R({token:n,factory:function(t){return n.\u0275fac(t)}}),n=b([_("design:paramtypes",[Dn])],n),n})(),ol=(()=>{let n=class extends IG{};return n.\u0275fac=function(){let t;return function(i){return(t||(t=se(n)))(i||n)}}(),n.\u0275prov=R({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),al=(()=>{let n=class{constructor(e,i){this.dateFormatter=e,this.locale=i}transform(e,i,r=this.locale,s=0,o=[],a){if(void 0===this.dateFormatter[i]){const l=Object.getOwnPropertyNames(Object.getPrototypeOf(ol.prototype)).filter(c=>"constructor"!==c);throw new Error(`${i} is not a valid date formatter. Can only be one of ${l.join(", ")}`)}return this.dateFormatter[i]({date:e,locale:r,weekStartsOn:s,excludeDays:o,daysInWeek:a})}};return n.\u0275fac=function(e){return new(e||n)(g(ol,16),g(bn,16))},n.\u0275pipe=vn({name:"calendarDate",type:n,pure:!0}),n=b([Ho(1,_r(bn)),_("design:paramtypes",[ol,String])],n),n})();class Bu{month(t,e){return t.title}monthTooltip(t,e){return t.title}week(t,e){return t.title}weekTooltip(t,e){return t.title}day(t,e){return t.title}dayTooltip(t,e){return t.title}}let Ig=(()=>{let n=class{constructor(e){this.calendarEventTitle=e}transform(e,i,r){return this.calendarEventTitle[i](r,e)}};return n.\u0275fac=function(e){return new(e||n)(g(Bu,16))},n.\u0275pipe=vn({name:"calendarEventTitle",type:n,pure:!0}),n=b([_("design:paramtypes",[Bu])],n),n})(),ks=(()=>{let n=class{constructor(e,i,r){this.renderer=e,this.elm=i,this.document=r,this.clickListenerDisabled=!1,this.click=new ie,this.destroy$=new O}ngOnInit(){this.clickListenerDisabled||this.listen().pipe(vt(this.destroy$)).subscribe(e=>{e.stopPropagation(),this.click.emit(e)})}ngOnDestroy(){this.destroy$.next()}listen(){return new Y(e=>this.renderer.listen(this.elm.nativeElement,"click",i=>{e.next(i)}))}};return n.\u0275fac=function(e){return new(e||n)(g(ln),g(de),g(ke))},n.\u0275dir=T({type:n,selectors:[["","mwlClick",""]],inputs:{clickListenerDisabled:"clickListenerDisabled"},outputs:{click:"mwlClick"}}),b([x(),_("design:type",Object)],n.prototype,"clickListenerDisabled",void 0),b([ut("mwlClick"),_("design:type",Object)],n.prototype,"click",void 0),n=b([Ho(2,_r(ke)),_("design:paramtypes",[ln,de,Object])],n),n})(),Hu=(()=>{let n=class{constructor(e,i,r){this.host=e,this.ngZone=i,this.renderer=r,this.keydown=new ie,this.keydownListener=null}ngOnInit(){this.ngZone.runOutsideAngular(()=>{this.keydownListener=this.renderer.listen(this.host.nativeElement,"keydown",e=>{(13===e.keyCode||13===e.which||"Enter"===e.key)&&(e.preventDefault(),e.stopPropagation(),this.ngZone.run(()=>{this.keydown.emit(e)}))})})}ngOnDestroy(){null!==this.keydownListener&&(this.keydownListener(),this.keydownListener=null)}};return n.\u0275fac=function(e){return new(e||n)(g(de),g($e),g(ln))},n.\u0275dir=T({type:n,selectors:[["","mwlKeydownEnter",""]],outputs:{keydown:"mwlKeydownEnter"}}),b([ut("mwlKeydownEnter"),_("design:type",Object)],n.prototype,"keydown",void 0),n=b([_("design:paramtypes",[de,$e,ln])],n),n})(),Go=(()=>{let n=class{constructor(e){this.dateAdapter=e}getMonthView(e){return function a$(n,t){var e=t.events,i=void 0===e?[]:e,r=t.viewDate,s=t.weekStartsOn,o=t.excluded,a=void 0===o?[]:o,l=t.viewStart,c=void 0===l?n.startOfMonth(r):l,u=t.viewEnd,d=void 0===u?n.endOfMonth(r):u,h=t.weekendDays;i||(i=[]);for(var ae,p=n.endOfWeek,v=n.differenceInDays,D=n.startOfDay,E=n.addHours,w=n.endOfDay,M=n.isSameMonth,k=n.getDay,be=(0,n.startOfWeek)(c,{weekStartsOn:s}),Fe=p(d,{weekStartsOn:s}),Ce=tl(n,{events:i,periodStart:be,periodEnd:Fe}),fe=[],Q=function(Ue){var Qe;if(ae?(Qe=D(E(ae,24)),ae.getTime()===Qe.getTime()&&(Qe=D(E(ae,25))),ae=Qe):Qe=ae=be,!a.some(function(Mi){return k(Qe)===Mi})){var Ot=a0(n,{date:Qe,weekendDays:h}),gn=tl(n,{events:Ce,periodStart:D(Qe),periodEnd:w(Qe)});Ot.inMonth=M(Qe,r),Ot.events=gn,Ot.badgeTotal=gn.length,fe.push(Ot)}},N=0;N<v(Fe,be)+1;N++)Q();var je=[],Ge=7-a.length;if(Ge<7)for(N=0;N<fe.length;N+=Ge){var Ki=fe.slice(N,N+Ge);Ki.some(function(Qe){return c<=Qe.date&&Qe.date<d})&&(je=s0(je,Ki))}else je=fe;var le=Math.floor(je.length/Ge),ue=[];for(N=0;N<le;N++)ue.push(N*Ge);return{rowOffsets:ue,totalDaysVisibleInWeek:Ge,days:je,period:{start:je[0].date,end:w(je[je.length-1].date),events:Ce}}}(this.dateAdapter,e)}getWeekViewHeader(e){return hg(this.dateAdapter,e)}getWeekView(e){return function o$(n,t){var e=t.events,i=void 0===e?[]:e,r=t.viewDate,s=t.weekStartsOn,o=t.excluded,a=void 0===o?[]:o,l=t.precision,c=void 0===l?"days":l,u=t.absolutePositionedEvents,d=void 0!==u&&u,h=t.hourSegments,f=t.hourDuration,p=t.dayStart,v=t.dayEnd,D=t.weekendDays,E=t.segmentHeight,w=t.minimumEventHeight,M=t.viewStart,k=void 0===M?n.startOfWeek(r,{weekStartsOn:s}):M,j=t.viewEnd,be=void 0===j?n.endOfWeek(r,{weekStartsOn:s}):j;i||(i=[]);var Ce=n.endOfDay,fe=tl(n,{events:i,periodStart:k=(0,n.startOfDay)(k),periodEnd:be=Ce(be)}),ae=hg(n,{viewDate:r,weekStartsOn:s,excluded:a,weekendDays:D,viewStart:k,viewEnd:be});return{allDayEventRows:r$(n,{events:fe,excluded:a,precision:c,absolutePositionedEvents:d,viewStart:k,viewEnd:be}),period:{events:fe,start:ae[0].date,end:Ce(ae[ae.length-1].date)},hourColumns:s$(n,{events:i,viewDate:r,hourSegments:h,hourDuration:f,dayStart:p,dayEnd:v,weekStartsOn:s,excluded:a,weekendDays:D,segmentHeight:E,viewStart:k,viewEnd:be,minimumEventHeight:w})}}(this.dateAdapter,e)}};return n.\u0275fac=function(e){return new(e||n)(S(Dn))},n.\u0275prov=R({token:n,factory:function(t){return n.\u0275fac(t)}}),n=b([_("design:paramtypes",[Dn])],n),n})(),ll=(()=>{let n=class{constructor(e){this.i18nPlural=e}monthCell({day:e,locale:i}){return e.badgeTotal>0?`\n ${un(e.date,"EEEE MMMM d",i)},\n ${this.i18nPlural.transform(e.badgeTotal,{"=0":"No events","=1":"One event",other:"# events"})},\n click to expand\n `:`${un(e.date,"EEEE MMMM d",i)}`}openDayEventsLandmark({date:e,locale:i}){return`\n Beginning of expanded view for ${un(e,"EEEE MMMM dd",i)}\n `}openDayEventsAlert({date:e,locale:i}){return`${un(e,"EEEE MMMM dd",i)} expanded`}eventDescription({event:e,locale:i}){if(!0===e.allDay)return this.allDayEventDescription({event:e,locale:i});const r=`\n ${un(e.start,"EEEE MMMM dd",i)},\n ${e.title}, from ${un(e.start,"hh:mm a",i)}\n `;return e.end?r+` to ${un(e.end,"hh:mm a",i)}`:r}allDayEventDescription({event:e,locale:i}){const r=`\n ${e.title}, event spans multiple days:\n start time ${un(e.start,"MMMM dd hh:mm a",i)}\n `;return e.end?r+`, stop time ${un(e.end,"MMMM d hh:mm a",i)}`:r+", no stop time"}actionButtonLabel({action:e}){return e.a11yLabel}monthCellTabIndex(){return 0}hideMonthCellEvents(){return!0}hideEventTitle(){return!0}hideWeekHourSegment(){return!0}hideDayHourSegment(){return!0}};return n.\u0275fac=function(e){return new(e||n)(S(Oc))},n.\u0275prov=R({token:n,factory:function(t){return n.\u0275fac(t)}}),n=b([_("design:paramtypes",[Oc])],n),n})(),Os=(()=>{let n=class{constructor(e,i){this.calendarA11y=e,this.locale=i}transform(e,i){if(e.locale=e.locale||this.locale,void 0===this.calendarA11y[i]){const r=Object.getOwnPropertyNames(Object.getPrototypeOf(ll.prototype)).filter(s=>"constructor"!==s);throw new Error(`${i} is not a valid a11y method. Can only be one of ${r.join(", ")}`)}return this.calendarA11y[i](e)}};return n.\u0275fac=function(e){return new(e||n)(g(ll,16),g(bn,16))},n.\u0275pipe=vn({name:"calendarA11y",type:n,pure:!0}),n=b([Ho(1,_r(bn)),_("design:paramtypes",[ll,String])],n),n})();new ne("Moment");var B0,Zr=(()=>(function(n){n.Drag="drag",n.Drop="drop",n.Resize="resize"}(Zr||(Zr={})),Zr))();let dr=B0=class{static forRoot(t,e={}){return{ngModule:B0,providers:[t,e.eventTitleFormatter||Bu,e.dateFormatter||ol,e.utils||Go,e.a11y||ll]}}};dr.\u0275fac=function(t){return new(t||dr)},dr.\u0275mod=Ke({type:dr}),dr.\u0275inj=qe({providers:[Oc],imports:[[ko]]});let kG=(()=>{let n=class{constructor(e,i,r,s){this.cdr=e,this.utils=i,this.dateAdapter=s,this.events=[],this.excludeDays=[],this.activeDayIsOpen=!1,this.tooltipPlacement="auto",this.tooltipAppendToBody=!0,this.tooltipDelay=null,this.beforeViewRender=new ie,this.dayClicked=new ie,this.eventClicked=new ie,this.columnHeaderClicked=new ie,this.eventTimesChanged=new ie,this.trackByRowOffset=(o,a)=>this.view.days.slice(a,this.view.totalDaysVisibleInWeek).map(l=>l.date.toISOString()).join("-"),this.trackByDate=(o,a)=>a.date.toISOString(),this.locale=r}ngOnInit(){this.refresh&&(this.refreshSubscription=this.refresh.subscribe(()=>{this.refreshAll(),this.cdr.markForCheck()}))}ngOnChanges(e){const i=e.viewDate||e.excludeDays||e.weekendDays,r=e.viewDate||e.events||e.excludeDays||e.weekendDays;i&&this.refreshHeader(),e.events&&(n=>{(function u$(n,t){var e=!0;function i(r,s){t(r,s),e=!1}Array.isArray(n)?n.forEach(function(r){r.start?r.start instanceof Date||i(Xr.StartPropertyNotDate,r):i(Xr.StartPropertyMissing,r),r.end&&(r.end instanceof Date||i(Xr.EndPropertyNotDate,r),r.start>r.end&&i(Xr.EndsBeforeStart,r))}):t(Xr.NotArray,n)})(n,(...e)=>console.warn("angular-calendar",...e))})(this.events),r&&this.refreshBody(),(i||r)&&this.emitBeforeViewRender(),(e.activeDayIsOpen||e.viewDate||e.events||e.excludeDays||e.activeDay)&&this.checkActiveDayIsOpen()}ngOnDestroy(){this.refreshSubscription&&this.refreshSubscription.unsubscribe()}toggleDayHighlight(e,i){this.view.days.forEach(r=>{i&&r.events.indexOf(e)>-1?r.backgroundColor=e.color&&e.color.secondary||"#D1E8FF":delete r.backgroundColor})}eventDropped(e,i,r){if(e!==r){const s=this.dateAdapter.getYear(e.date),o=this.dateAdapter.getMonth(e.date),a=this.dateAdapter.getDate(e.date),l=this.dateAdapter.setDate(this.dateAdapter.setMonth(this.dateAdapter.setYear(i.start,s),o),a);let c;if(i.end){const u=this.dateAdapter.differenceInSeconds(l,i.start);c=this.dateAdapter.addSeconds(i.end,u)}this.eventTimesChanged.emit({event:i,newStart:l,newEnd:c,day:e,type:Zr.Drop})}}refreshHeader(){this.columnHeaders=this.utils.getWeekViewHeader({viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,weekendDays:this.weekendDays})}refreshBody(){this.view=this.utils.getMonthView({events:this.events,viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,weekendDays:this.weekendDays})}checkActiveDayIsOpen(){if(!0===this.activeDayIsOpen){const e=this.activeDay||this.viewDate;this.openDay=this.view.days.find(r=>this.dateAdapter.isSameDay(r.date,e));const i=this.view.days.indexOf(this.openDay);this.openRowIndex=Math.floor(i/this.view.totalDaysVisibleInWeek)*this.view.totalDaysVisibleInWeek}else this.openRowIndex=null,this.openDay=null}refreshAll(){this.refreshHeader(),this.refreshBody(),this.emitBeforeViewRender(),this.checkActiveDayIsOpen()}emitBeforeViewRender(){this.columnHeaders&&this.view&&this.beforeViewRender.emit({header:this.columnHeaders,body:this.view.days,period:this.view.period})}};return n.\u0275fac=function(e){return new(e||n)(g(Er),g(Go),g(bn),g(Dn))},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-month-view"]],inputs:{events:"events",excludeDays:"excludeDays",activeDayIsOpen:"activeDayIsOpen",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",tooltipDelay:"tooltipDelay",locale:"locale",viewDate:"viewDate",activeDay:"activeDay",refresh:"refresh",tooltipTemplate:"tooltipTemplate",weekStartsOn:"weekStartsOn",headerTemplate:"headerTemplate",cellTemplate:"cellTemplate",openDayEventsTemplate:"openDayEventsTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",weekendDays:"weekendDays"},outputs:{beforeViewRender:"beforeViewRender",dayClicked:"dayClicked",eventClicked:"eventClicked",columnHeaderClicked:"columnHeaderClicked",eventTimesChanged:"eventTimesChanged"},features:[hn],decls:4,vars:5,consts:[["role","grid",1,"cal-month-view"],[3,"days","locale","customTemplate","columnHeaderClicked"],[1,"cal-days"],[4,"ngFor","ngForOf","ngForTrackBy"],["role","row",1,"cal-cell-row"],["role","gridcell","mwlDroppable","","dragOverClass","cal-drag-over",3,"ngClass","day","openDay","locale","tooltipPlacement","tooltipAppendToBody","tooltipTemplate","tooltipDelay","customTemplate","ngStyle","clickListenerDisabled","mwlClick","mwlKeydownEnter","highlightDay","unhighlightDay","drop","eventClicked",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDroppable","","dragOverClass","cal-drag-over",3,"locale","isOpen","events","date","customTemplate","eventTitleTemplate","eventActionsTemplate","eventClicked","drop"],["role","gridcell","mwlDroppable","","dragOverClass","cal-drag-over",3,"ngClass","day","openDay","locale","tooltipPlacement","tooltipAppendToBody","tooltipTemplate","tooltipDelay","customTemplate","ngStyle","clickListenerDisabled","mwlClick","mwlKeydownEnter","highlightDay","unhighlightDay","drop","eventClicked"]],template:function(e,i){1&e&&(oe(0,"div",0)(1,"mwl-calendar-month-view-header",1),Le("columnHeaderClicked",function(s){return i.columnHeaderClicked.emit(s)}),ye(),oe(2,"div",2),pe(3,fz,5,13,"div",3),ye()()),2&e&&(te(1),L("days",i.columnHeaders)("locale",i.locale)("customTemplate",i.headerTemplate),te(2),L("ngForOf",i.view.rowOffsets)("ngForTrackBy",i.trackByRowOffset))},directives:function(){return[OG,Hr,FG,Cg,ai,bs,ks,Hu,PG]},pipes:function(){return[Os,tD]},encapsulation:2}),b([x(),_("design:type",Date)],n.prototype,"viewDate",void 0),b([x(),_("design:type",Array)],n.prototype,"events",void 0),b([x(),_("design:type",Array)],n.prototype,"excludeDays",void 0),b([x(),_("design:type",Boolean)],n.prototype,"activeDayIsOpen",void 0),b([x(),_("design:type",Date)],n.prototype,"activeDay",void 0),b([x(),_("design:type",O)],n.prototype,"refresh",void 0),b([x(),_("design:type",String)],n.prototype,"locale",void 0),b([x(),_("design:type",Object)],n.prototype,"tooltipPlacement",void 0),b([x(),_("design:type",De)],n.prototype,"tooltipTemplate",void 0),b([x(),_("design:type",Boolean)],n.prototype,"tooltipAppendToBody",void 0),b([x(),_("design:type",Number)],n.prototype,"tooltipDelay",void 0),b([x(),_("design:type",Number)],n.prototype,"weekStartsOn",void 0),b([x(),_("design:type",De)],n.prototype,"headerTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"cellTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"openDayEventsTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"eventTitleTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"eventActionsTemplate",void 0),b([x(),_("design:type",Array)],n.prototype,"weekendDays",void 0),b([ut(),_("design:type",Object)],n.prototype,"beforeViewRender",void 0),b([ut(),_("design:type",Object)],n.prototype,"dayClicked",void 0),b([ut(),_("design:type",Object)],n.prototype,"eventClicked",void 0),b([ut(),_("design:type",Object)],n.prototype,"columnHeaderClicked",void 0),b([ut(),_("design:type",Object)],n.prototype,"eventTimesChanged",void 0),n=b([Ho(2,_r(bn)),_("design:paramtypes",[Er,Go,String,Dn])],n),n})(),OG=(()=>{let n=class{constructor(){this.columnHeaderClicked=new ie,this.trackByWeekDayHeaderDate=Mg}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-month-view-header"]],inputs:{days:"days",locale:"locale",customTemplate:"customTemplate"},outputs:{columnHeaderClicked:"columnHeaderClicked"},decls:3,vars:6,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","row",1,"cal-cell-row","cal-header"],["class","cal-cell","tabindex","0","role","columnheader",3,"cal-past","cal-today","cal-future","cal-weekend","ngClass","click",4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","0","role","columnheader",1,"cal-cell",3,"ngClass","click"]],template:function(e,i){if(1&e&&(pe(0,gz,2,2,"ng-template",null,0,vi),pe(2,mz,0,0,"ng-template",1)),2&e){const r=fn(1);te(2),L("ngTemplateOutlet",i.customTemplate||r)("ngTemplateOutletContext",rf(2,yz,i.days,i.locale,i.trackByWeekDayHeaderDate))}},directives:[Hr,ai,Di],pipes:[al],encapsulation:2}),b([x(),_("design:type",Array)],n.prototype,"days",void 0),b([x(),_("design:type",String)],n.prototype,"locale",void 0),b([x(),_("design:type",De)],n.prototype,"customTemplate",void 0),b([ut(),_("design:type",Object)],n.prototype,"columnHeaderClicked",void 0),n})(),FG=(()=>{let n=class{constructor(){this.highlightDay=new ie,this.unhighlightDay=new ie,this.eventClicked=new ie,this.trackByEventId=N0,this.validateDrag=Vu}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-month-cell"]],hostAttrs:[1,"cal-cell","cal-day-cell"],hostVars:18,hostBindings:function(e,i){2&e&&Qt("cal-past",i.day.isPast)("cal-today",i.day.isToday)("cal-future",i.day.isFuture)("cal-weekend",i.day.isWeekend)("cal-in-month",i.day.inMonth)("cal-out-month",!i.day.inMonth)("cal-has-events",i.day.events.length>0)("cal-open",i.day===i.openDay)("cal-event-highlight",!!i.day.backgroundColor)},inputs:{day:"day",openDay:"openDay",locale:"locale",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",customTemplate:"customTemplate",tooltipTemplate:"tooltipTemplate",tooltipDelay:"tooltipDelay"},outputs:{highlightDay:"highlightDay",unhighlightDay:"unhighlightDay",eventClicked:"eventClicked"},decls:3,vars:15,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-cell-top"],["aria-hidden","true"],["class","cal-day-badge",4,"ngIf"],[1,"cal-day-number"],["class","cal-events",4,"ngIf"],[1,"cal-day-badge"],[1,"cal-events"],["class","cal-event","mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngStyle","ngClass","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","cal-draggable","dropData","dragAxis","validateDrag","touchStartLongPress","mouseenter","mouseleave","mwlClick",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDraggable","","dragActiveClass","cal-drag-active",1,"cal-event",3,"ngStyle","ngClass","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","dropData","dragAxis","validateDrag","touchStartLongPress","mouseenter","mouseleave","mwlClick"]],template:function(e,i){if(1&e&&(pe(0,Cz,8,14,"ng-template",null,0,vi),pe(2,Ez,0,0,"ng-template",1)),2&e){const r=fn(1);te(2),L("ngTemplateOutlet",i.customTemplate||r)("ngTemplateOutletContext",af(2,xz,[i.day,i.openDay,i.locale,i.tooltipPlacement,i.highlightDay,i.unhighlightDay,i.eventClicked,i.tooltipTemplate,i.tooltipAppendToBody,i.tooltipDelay,i.trackByEventId,i.validateDrag]))}},directives:[ws,Hr,Dg,bs,ai,O0,ks,Di],pipes:[Os,al,Ig],encapsulation:2}),b([x(),_("design:type",Object)],n.prototype,"day",void 0),b([x(),_("design:type",Object)],n.prototype,"openDay",void 0),b([x(),_("design:type",String)],n.prototype,"locale",void 0),b([x(),_("design:type",Object)],n.prototype,"tooltipPlacement",void 0),b([x(),_("design:type",Boolean)],n.prototype,"tooltipAppendToBody",void 0),b([x(),_("design:type",De)],n.prototype,"customTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"tooltipTemplate",void 0),b([x(),_("design:type",Number)],n.prototype,"tooltipDelay",void 0),b([ut(),_("design:type",ie)],n.prototype,"highlightDay",void 0),b([ut(),_("design:type",ie)],n.prototype,"unhighlightDay",void 0),b([ut(),_("design:type",Object)],n.prototype,"eventClicked",void 0),n})();const RG=pE("collapse",[ru("void",lr({height:0,overflow:"hidden","padding-top":0,"padding-bottom":0})),ru("*",lr({height:"*",overflow:"hidden","padding-top":"*","padding-bottom":"*"})),su("* => void",iu("150ms ease-out")),su("void => *",iu("150ms ease-in"))]);let PG=(()=>{let n=class{constructor(){this.isOpen=!1,this.eventClicked=new ie,this.trackByEventId=N0,this.validateDrag=Vu}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-open-day-events"]],inputs:{isOpen:"isOpen",locale:"locale",events:"events",customTemplate:"customTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",date:"date"},outputs:{eventClicked:"eventClicked"},decls:3,vars:8,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","cal-open-day-events","role","application",4,"ngIf"],["role","application",1,"cal-open-day-events"],["tabindex","-1","role","alert"],["tabindex","0","role","landmark"],["mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngClass","cal-draggable","dropData","dragAxis","validateDrag","touchStartLongPress",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngClass","dropData","dragAxis","validateDrag","touchStartLongPress"],[1,"cal-event",3,"ngStyle"],["view","month","tabindex","0",3,"event","customTemplate","mwlClick","mwlKeydownEnter"],[3,"event","customTemplate"]],template:function(e,i){if(1&e&&(pe(0,Tz,1,1,"ng-template",null,0,vi),pe(2,Iz,0,0,"ng-template",1)),2&e){const r=fn(1);te(2),L("ngTemplateOutlet",i.customTemplate||r)("ngTemplateOutletContext",sf(2,kz,i.events,i.eventClicked,i.isOpen,i.trackByEventId,i.validateDrag))}},directives:[ws,Hr,Dg,ai,bs,k0,ks,Hu,I0,Di],pipes:[Os],encapsulation:2,data:{animation:[RG]}}),b([x(),_("design:type",String)],n.prototype,"locale",void 0),b([x(),_("design:type",Boolean)],n.prototype,"isOpen",void 0),b([x(),_("design:type",Array)],n.prototype,"events",void 0),b([x(),_("design:type",De)],n.prototype,"customTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"eventTitleTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"eventActionsTemplate",void 0),b([x(),_("design:type",Date)],n.prototype,"date",void 0),b([ut(),_("design:type",Object)],n.prototype,"eventClicked",void 0),n})(),H0=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[ko,Ru,dr],Ru]}),n})(),kg=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[ko,S0,Ru,dr],S0,Ru]}),n})(),j0=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[ko,dr,kg]]}),n})();var $0;let Uo=$0=class{static forRoot(t,e={}){return{ngModule:$0,providers:[t,e.eventTitleFormatter||Bu,e.dateFormatter||ol,e.utils||Go,e.a11y||ll]}}};function Cn(n){if(null===n||!0===n||!1===n)return NaN;var t=Number(n);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Ae(n,t){if(t.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+t.length+" present")}function nt(n){Ae(1,arguments);var t=Object.prototype.toString.call(n);return n instanceof Date||"object"==typeof n&&"[object Date]"===t?new Date(n.getTime()):"number"==typeof n||"[object Number]"===t?new Date(n):(("string"==typeof n||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Og(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t);return isNaN(i)?new Date(NaN):(i&&e.setDate(e.getDate()+i),e)}function Fg(n,t){Ae(2,arguments);var e=nt(n).getTime(),i=Cn(t);return new Date(e+i)}function GG(n,t){Ae(2,arguments);var e=Cn(t);return Fg(n,36e5*e)}function WG(n,t){Ae(2,arguments);var e=Cn(t);return Fg(n,6e4*e)}function YG(n,t){Ae(2,arguments);var e=Cn(t);return Fg(n,1e3*e)}function z0(n){var t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),n.getTime()-t.getTime()}function cl(n){Ae(1,arguments);var t=nt(n);return t.setHours(0,0,0,0),t}function KG(n,t){Ae(2,arguments);var e=cl(n),i=cl(t),r=e.getTime()-z0(e),s=i.getTime()-z0(i);return Math.round((r-s)/864e5)}function G0(n,t){var e=n.getFullYear()-t.getFullYear()||n.getMonth()-t.getMonth()||n.getDate()-t.getDate()||n.getHours()-t.getHours()||n.getMinutes()-t.getMinutes()||n.getSeconds()-t.getSeconds()||n.getMilliseconds()-t.getMilliseconds();return e<0?-1:e>0?1:e}function XG(n,t){Ae(2,arguments);var e=nt(n),i=nt(t),r=G0(e,i),s=Math.abs(KG(e,i));e.setDate(e.getDate()-r*s);var o=Number(G0(e,i)===-r),a=r*(s-o);return 0===a?0:a}function W0(n,t){return Ae(2,arguments),nt(n).getTime()-nt(t).getTime()}Uo.\u0275fac=function(t){return new(t||Uo)},Uo.\u0275mod=Ke({type:Uo}),Uo.\u0275inj=qe({imports:[[dr,H0,kg,j0],dr,H0,kg,j0]}),Math.pow(10,8);var Y0={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(n){return n<0?Math.ceil(n):Math.floor(n)}};function q0(n){return n?Y0[n]:Y0.trunc}function s3(n,t,e){Ae(2,arguments);var i=W0(n,t)/6e4;return q0(null==e?void 0:e.roundingMethod)(i)}function o3(n,t,e){Ae(2,arguments);var i=W0(n,t)/1e3;return q0(null==e?void 0:e.roundingMethod)(i)}function a3(n){Ae(1,arguments);var t=nt(n);return t.setHours(23,59,59,999),t}function l3(n){Ae(1,arguments);var t=nt(n),e=t.getMonth();return t.setFullYear(t.getFullYear(),e+1,0),t.setHours(23,59,59,999),t}var K0={};function X0(){return K0}function c3(n,t){var e,i,r,s,o,a,l,c;Ae(1,arguments);var u=X0(),d=Cn(null!==(e=null!==(i=null!==(r=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t||null===(o=t.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:u.weekStartsOn)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==e?e:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=nt(n),f=h.getDay(),p=6+(f<d?-7:0)-(f-d);return h.setDate(h.getDate()+p),h.setHours(23,59,59,999),h}function u3(n){Ae(1,arguments);var t=nt(n),e=t.getDay();return e}function d3(n){Ae(1,arguments);var t=nt(n),e=t.getMonth();return e}function h3(n,t){Ae(2,arguments);var e=cl(n),i=cl(t);return e.getTime()===i.getTime()}function f3(n,t){Ae(2,arguments);var e=nt(n),i=nt(t);return e.getFullYear()===i.getFullYear()&&e.getMonth()===i.getMonth()}function Q0(n){Ae(1,arguments);var t=nt(n);return t.setMilliseconds(0),t}function p3(n,t){Ae(2,arguments);var e=Q0(n),i=Q0(t);return e.getTime()===i.getTime()}function g3(n){var t,e;if(Ae(1,arguments),n&&"function"==typeof n.forEach)t=n;else{if("object"!=typeof n||null===n)return new Date(NaN);t=Array.prototype.slice.call(n)}return t.forEach(function(i){var r=nt(i);(void 0===e||e<r||isNaN(Number(r)))&&(e=r)}),e||new Date(NaN)}function m3(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t);return e.setHours(i),e}function y3(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t);return e.setMinutes(i),e}function v3(n){Ae(1,arguments);var t=nt(n);return t.setSeconds(0,0),t}function _3(n){Ae(1,arguments);var t=nt(n);return t.setDate(1),t.setHours(0,0,0,0),t}function Z0(n,t){var e,i,r,s,o,a,l,c;Ae(1,arguments);var u=X0(),d=Cn(null!==(e=null!==(i=null!==(r=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t||null===(o=t.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:u.weekStartsOn)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==e?e:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=nt(n),f=h.getDay(),p=(f<d?7:0)+f-d;return h.setDate(h.getDate()-p),h.setHours(0,0,0,0),h}function w3(n){Ae(1,arguments);var t=nt(n),e=t.getHours();return e}function b3(n){Ae(1,arguments);var t=nt(n),e=t.getMinutes();return e}function J0(n,t){Ae(2,arguments);var e=Cn(t),i=7*e;return Og(n,i)}function ex(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t);if(isNaN(i))return new Date(NaN);if(!i)return e;var r=e.getDate(),s=new Date(e.getTime());s.setMonth(e.getMonth()+i+1,0);var o=s.getDate();return r>=o?s:(e.setFullYear(s.getFullYear(),s.getMonth(),r),e)}function C3(n,t){Ae(2,arguments);var e=Cn(t);return Og(n,-e)}function E3(n,t){Ae(2,arguments);var e=Cn(t);return J0(n,-e)}function x3(n,t){Ae(2,arguments);var e=Cn(t);return ex(n,-e)}function ju(n){return Ae(1,arguments),Z0(n,{weekStartsOn:1})}function S3(n){Ae(1,arguments);var t=nt(n),e=t.getFullYear(),i=new Date(0);i.setFullYear(e+1,0,4),i.setHours(0,0,0,0);var r=ju(i),s=new Date(0);s.setFullYear(e,0,4),s.setHours(0,0,0,0);var o=ju(s);return t.getTime()>=r.getTime()?e+1:t.getTime()>=o.getTime()?e:e-1}function M3(n){Ae(1,arguments);var t=S3(n),e=new Date(0);e.setFullYear(t,0,4),e.setHours(0,0,0,0);var i=ju(e);return i}var A3=6048e5;function T3(n){Ae(1,arguments);var t=nt(n),e=ju(t).getTime()-M3(t).getTime();return Math.round(e/A3)+1}function I3(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t);return e.setDate(i),e}function k3(n){Ae(1,arguments);var t=nt(n),e=t.getFullYear(),i=t.getMonth(),r=new Date(0);return r.setFullYear(e,i+1,0),r.setHours(0,0,0,0),r.getDate()}function O3(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t),r=e.getFullYear(),s=e.getDate(),o=new Date(0);o.setFullYear(r,i,15),o.setHours(0,0,0,0);var a=k3(o);return e.setMonth(i,Math.min(s,a)),e}function F3(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t);return isNaN(e.getTime())?new Date(NaN):(e.setFullYear(i),e)}function R3(n){Ae(1,arguments);var t=nt(n),e=t.getDate();return e}function P3(n){return Ae(1,arguments),nt(n).getFullYear()}function N3(){return Su(Su({},function D3(){return{addDays:Og,addHours:GG,addMinutes:WG,addSeconds:YG,differenceInDays:XG,differenceInMinutes:s3,differenceInSeconds:o3,endOfDay:a3,endOfMonth:l3,endOfWeek:c3,getDay:u3,getMonth:d3,isSameDay:h3,isSameMonth:f3,isSameSecond:p3,max:g3,setHours:m3,setMinutes:y3,startOfDay:cl,startOfMinute:v3,startOfMonth:_3,startOfWeek:Z0,getHours:w3,getMinutes:b3}}()),{addWeeks:J0,addMonths:ex,subDays:C3,subWeeks:E3,subMonths:x3,getISOWeek:T3,setDate:I3,setMonth:O3,setYear:F3,getDate:R3,getYear:P3})}let Rg;try{Rg="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Rg=!1}let ul,Fs,Ng,qi=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?jr(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Rg)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(S(_i))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({}),n})();function $u(n){return function L3(){if(null==ul&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ul=!0}))}finally{ul=ul||!1}return ul}()?n:!!n.capture}function V3(){if(null==Fs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Fs=!1,Fs;if("scrollBehavior"in document.documentElement.style)Fs=!0;else{const n=Element.prototype.scrollTo;Fs=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Fs}function Rs(n){return n.composedPath?n.composedPath()[0]:n.target}function Lg(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}function ix(n){return t=>t.lift(new q3(n))}class q3{constructor(t){this.total=t}call(t,e){return e.subscribe(new K3(t,this.total))}}class K3 extends Ve{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}let X3=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Q3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({providers:[X3]}),n})();function Gu(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const sx="cdk-describedby-message-container",ox="cdk-describedby-message",Uu="cdk-describedby-host";let eU=0;const hr=new Map;let ui=null,tU=(()=>{class n{constructor(e){this._document=e}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const s=Vg(i,r);"string"!=typeof i?(ax(i),hr.set(s,{messageElement:i,referenceCount:0})):hr.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,s)||this._addMessageReference(e,s)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const s=Vg(i,r);if(this._isElementDescribedByMessage(e,s)&&this._removeMessageReference(e,s),"string"==typeof i){const o=hr.get(s);o&&0===o.referenceCount&&this._deleteMessageElement(s)}ui&&0===ui.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Uu}]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(Uu);ui&&this._deleteMessagesContainer(),hr.clear()}_createMessageElement(e,i){const r=this._document.createElement("div");ax(r),r.textContent=e,i&&r.setAttribute("role",i),this._createMessagesContainer(),ui.appendChild(r),hr.set(Vg(e,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(e){var i;const r=hr.get(e);null===(i=null==r?void 0:r.messageElement)||void 0===i||i.remove(),hr.delete(e)}_createMessagesContainer(){if(!ui){const e=this._document.getElementById(sx);null==e||e.remove(),ui=this._document.createElement("div"),ui.id=sx,ui.style.visibility="hidden",ui.classList.add("cdk-visually-hidden"),this._document.body.appendChild(ui)}}_deleteMessagesContainer(){ui&&(ui.remove(),ui=null)}_removeCdkDescribedByReferenceIds(e){const i=Gu(e,"aria-describedby").filter(r=>0!=r.indexOf(ox));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=hr.get(i);(function Z3(n,t,e){const i=Gu(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Uu,""),r.referenceCount++}_removeMessageReference(e,i){const r=hr.get(i);r.referenceCount--,function J3(n,t,e){const r=Gu(n,t).filter(s=>s!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Uu)}_isElementDescribedByMessage(e,i){const r=Gu(e,"aria-describedby"),s=hr.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=e.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Vg(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function ax(n){n.id||(n.id=`${ox}-${eU++}`)}function cx(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function ux(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const aU=new ne("cdk-input-modality-detector-options"),lU={ignoreKeys:[18,17,224,91,16]},Yo=$u({passive:!0,capture:!0});let cU=(()=>{class n{constructor(e,i,r,s){this._platform=e,this._mostRecentTarget=null,this._modality=new sp(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Rs(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(cx(o)?"keyboard":"mouse"),this._mostRecentTarget=Rs(o))},this._onTouchstart=o=>{ux(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Rs(o))},this._options=Object.assign(Object.assign({},lU),s),this.modalityDetected=this._modality.pipe(ix(1)),this.modalityChanged=this.modalityDetected.pipe(m0()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Yo),r.addEventListener("mousedown",this._onMousedown,Yo),r.addEventListener("touchstart",this._onTouchstart,Yo)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Yo),document.removeEventListener("mousedown",this._onMousedown,Yo),document.removeEventListener("touchstart",this._onTouchstart,Yo))}}return n.\u0275fac=function(e){return new(e||n)(S(qi),S($e),S(ke),S(aU,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const dU=new ne("cdk-focus-monitor-default-options"),Wu=$u({passive:!0,capture:!0});let hx=(()=>{class n{constructor(e,i,r,s,o){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new O,this._rootNodeFocusAndBlurListener=a=>{const l=Rs(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,i=!1){const r=Po(e);if(!this._platform.isBrowser||1!==r.nodeType)return Gi(null);const s=function H3(n){if(function B3(){if(null==Ng){const n="undefined"!=typeof document?document.head:null;Ng=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Ng}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new O,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Po(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const s=Po(e);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),s=Rs(e);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Wu),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Wu)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(vt(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Wu),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Wu),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,s)=>{(s===e||r.checkChildren&&s.contains(e))&&i.push([s,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(S($e),S(qi),S(cU),S(ke,8),S(dU,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const fx="cdk-high-contrast-black-on-white",px="cdk-high-contrast-white-on-black",Bg="cdk-high-contrast-active";let gx=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Bg),e.remove(fx),e.remove(px),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(Bg),e.add(fx)):2===i&&(e.add(Bg),e.add(px))}}}return n.\u0275fac=function(e){return new(e||n)(S(qi),S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hU=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(S(gx))},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[Pg,Q3]]}),n})();const pU=new ne("mat-sanity-checks",{providedIn:"root",factory:function fU(){return!0}});let Jr=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Lg()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(S(gx),S(pU,8),S(ke))},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[No],No]}),n})();function gU(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Ei(t)}}}function yx(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function mU(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Ei(t)}}}class vU{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const vx={enterDuration:225,exitDuration:150},Hg=$u({passive:!0}),_x=["mousedown","touchstart"],wx=["mouseup","mouseleave","touchend","touchcancel"];class wU{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Po(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},vx),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=i.radius||function DU(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function bU(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new vU(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,r=Object.assign(Object.assign({},vx),t.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Po(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(_x))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(wx),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=cx(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!ux(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,Hg)})})}_removeTriggerEvents(){this._triggerElement&&(_x.forEach(t=>{this._triggerElement.removeEventListener(t,this,Hg)}),this._pointerUpEventsRegistered&&wx.forEach(t=>{this._triggerElement.removeEventListener(t,this,Hg)}))}}const CU=new ne("mat-ripple-global-options");let bx=(()=>{class n{constructor(e,i,r,s,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new wU(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(g(de),g($e),g(qi),g(CU,8),g(xu,8))},n.\u0275dir=T({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&Qt("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),EU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[Jr,Pg],Jr]}),n})();const xU=["mat-button",""],SU=["*"],AU=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],TU=yx(gU(mU(class{constructor(n){this._elementRef=n}})));let IU=(()=>{class n extends TU{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of AU)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(hx),g(xu,8))},n.\u0275cmp=rn({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&$w(bx,5),2&e){let r;jw(r=function zw(){return function _F(n,t){return n[19].queries[t].queryList}(I(),vm())}())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(zt("disabled",i.disabled||null),Qt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[H],attrs:xU,ngContentSelectors:SU,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(Gh(),oe(0,"span",0),Uh(1),ye(),Xt(2,"span",1)(3,"span",2)),2&e&&(te(2),Qt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),L("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[bx],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),kU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[EU,Jr],Jr]}),n})();var hl=Ko(764),OU=Ko(274),FU=Ko(268),Dx=Ko(23);new class PU extends zi{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r<s&&(t=e.shift()));if(this.active=!1,i){for(;++r<s&&(t=e.shift());)t.unsubscribe();throw i}}}(class RU extends Bc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let LU=1;const VU=Promise.resolve(),Yu={};function Cx(n){return n in Yu&&(delete Yu[n],!0)}const Ex={setImmediate(n){const t=LU++;return Yu[t]=!0,VU.then(()=>Cx(t)&&n()),t},clearImmediate(n){Cx(n)}};new class HU extends zi{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r<s&&(t=e.shift()));if(this.active=!1,i){for(;++r<s&&(t=e.shift());)t.unsubscribe();throw i}}}(class BU extends Bc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=Ex.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(Ex.clearImmediate(e),t.scheduled=void 0)}});let xx=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new O,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Y(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Eg(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Gi()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Tn(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Po(i),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>nl(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(S($e),S(qi),S(ke,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Sx=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new O,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Eg(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(S(qi),S($e),S(ke,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({}),n})(),Mx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[No,Pg,jg],No,jg]}),n})();class $g{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Ax extends $g{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class GU extends $g{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class UU extends $g{constructor(t){super(),this.element=t instanceof de?t.nativeElement:t}}class YU extends class WU{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Ax?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof GU?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof UU?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,i,r,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let qU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({}),n})();const Tx=V3();class KU{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=en(-this._previousScrollPosition.left),t.style.top=en(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Tx&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Tx&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class XU{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Ix{enable(){}disable(){}attach(){}}function zg(n,t){return t.some(e=>n.bottom<e.top||n.top>e.bottom||n.right<e.left||n.left>e.right)}function kx(n,t){return t.some(e=>n.top<e.top||n.bottom>e.bottom||n.left<e.left||n.right>e.right)}class QU{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();zg(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let ZU=(()=>{class n{constructor(e,i,r,s){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new Ix,this.close=o=>new XU(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new KU(this._viewportRuler,this._document),this.reposition=o=>new QU(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(e){return new(e||n)(S(xx),S(Sx),S($e),S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class JU{constructor(t){if(this.scrollStrategy=new Ix,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class eW{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}class tW{constructor(t,e,i,r,s,o,a,l,c){this._portalOutlet=t,this._host=e,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new O,this._attachments=new O,this._detachments=new O,this._locationChanges=he.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new O,this._outsidePointerEvents=new O,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Tr(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){var t;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(t=this._host)||void 0===t||t.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=en(this._config.width),t.height=en(this._config.height),t.minWidth=en(this._config.minWidth),t.minHeight=en(this._config.minHeight),t.maxWidth=en(this._config.maxWidth),t.maxHeight=en(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const i=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",i),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const r=Gc(e||[]).filter(s=>!!s);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(vt(qt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.remove(),this._backdropElement===t&&(this._backdropElement=null))}}let Ox=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Lg()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(e),Lg()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(e){return new(e||n)(S(ke),S(qi))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Fx="cdk-overlay-connected-position-bounding-box",nW=/([A-Za-z%]+)$/;class iW{constructor(t,e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new O,this._resizeSubscription=he.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(Fx),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),u=this._getOverlayFit(c,e,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?s.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}if(s.length){let a=null,l=-1;for(const c of s){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ps(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Fx),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,s;if("center"==i.originX)r=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?o:a}return e.left<0&&(r-=e.left),s="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(s-=e.top),{x:r,y:s}}_getOverlayPoint(t,e,i){let r,s;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,i,r){const s=Px(e);let{x:o,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-i.height,p=this._subtractOverflows(s.width,0-o,o+s.width-i.width),v=this._subtractOverflows(s.height,h,f),D=p*v;return{visibleArea:D,isCompletelyWithinViewport:s.width*s.height===D,fitsInViewportVertically:v===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,s=i.right-e.x,o=Rx(this._overlayRef.getConfig().minHeight),a=Rx(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=Px(e),s=this._viewportRect,o=Math.max(t.x+r.width-s.width,0),a=Math.max(t.y+r.height-s.height,0),l=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:t.x<this._viewportMargin?s.left-i.left-t.x:0,d=r.height<=s.height?l||-a:t.y<this._viewportMargin?s.top-i.top-t.y:0,this._previousPushAmount={x:u,y:d},{x:t.x+u,y:t.y+d}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new eW(t,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===e.overlayY)o=t.y,s=i.height-o+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-t.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-t.y+i.top,t.y),p=this._lastBoundingBoxSize.height;s=2*f,o=t.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-p/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const f=Math.min(i.right-t.x+i.left,t.x),p=this._lastBoundingBoxSize.width;u=2*f,d=t.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=en(i.height),r.top=en(i.top),r.bottom=en(i.bottom),r.width=en(i.width),r.left=en(i.left),r.right=en(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=en(s)),o&&(r.maxWidth=en(o))}this._lastBoundingBoxSize=i,Ps(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Ps(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ps(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Ps(i,this._getExactOverlayY(e,t,u)),Ps(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=en(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=en(o.maxWidth):s&&(i.maxWidth="")),Ps(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=en(s.y),r}_getExactOverlayX(t,e,i){let o,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=en(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:kx(t,i),isOriginOutsideView:zg(t,i),isOverlayClipped:kx(e,i),isOverlayOutsideView:zg(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Gc(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof de)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Ps(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function Rx(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(nW);return e&&"px"!==e?null:parseFloat(t)}return n||null}function Px(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Nx="cdk-global-overlay-wrapper";class rW{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Nx),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(Nx),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let sW=(()=>{class n{constructor(e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new rW}flexibleConnectedTo(e){return new iW(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(S(Sx),S(ke),S(qi),S(Ox))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Lx=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),oW=(()=>{class n extends Lx{constructor(e){super(e),this._keydownListener=i=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){r[s]._keydownEvents.next(i);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aW=(()=>{class n extends Lx{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Rs(r)},this._clickListener=r=>{const s=Rs(r),o="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(s)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(e){return new(e||n)(S(ke),S(qi))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lW=0,qu=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new JU(e);return o.direction=o.direction||this._directionality.value,new tW(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+lW++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(yc)),new YU(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(S(ZU),S(Ox),S(Cr),S(sW),S(oW),S(wn),S($e),S(ke),S(Uc),S(Nb),S(aW))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const dW={provide:new ne("cdk-connected-overlay-scroll-strategy"),deps:[qu],useFactory:function uW(n){return()=>n.scrollStrategies.reposition()}};let hW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({providers:[qu,dW],imports:[[No,qU,Mx],Mx]}),n})();class pW{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new gW(t,this.dueTime,this.scheduler))}}class gW extends Ve{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(mW,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function mW(n){n.debouncedNext()}const Vx=new Set;let qo,yW=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):_W}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function vW(n){if(!Vx.has(n))try{qo||(qo=document.createElement("style"),qo.setAttribute("type","text/css"),document.head.appendChild(qo)),qo.sheet&&(qo.sheet.insertRule(`@media ${n} {body{ }}`,0),Vx.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(S(qi))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function _W(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let wW=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new O}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Bx(Gc(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let s=c0(Bx(Gc(e)).map(o=>this._registerQuery(o).observable));return s=cg(s.pipe(Tr(1)),s.pipe(ix(1),function fW(n,t=Ja){return e=>e.lift(new pW(n,t))}(0))),s.pipe(P(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),s={observable:new Y(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Au(i),P(({matches:o})=>({query:e,matches:o})),vt(this._destroySubject)),mql:i};return this._queries.set(e,s),s}}return n.\u0275fac=function(e){return new(e||n)(S(yW),S($e))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Bx(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const DW={tooltipState:pE("state",[ru("initial, void, hidden",lr({opacity:0,transform:"scale(0)"})),ru("visible",lr({transform:"scale(1)"})),su("* => visible",iu("200ms cubic-bezier(0, 0, 0.2, 1)",zH([lr({opacity:0,transform:"scale(0)",offset:0}),lr({opacity:.5,transform:"scale(0.99)",offset:.5}),lr({opacity:1,transform:"scale(1)",offset:1})]))),su("* => hidden",iu("100ms cubic-bezier(0, 0, 0.2, 1)",lr({opacity:0})))])},Hx="tooltip-panel",jx=$u({passive:!0}),$x=new ne("mat-tooltip-scroll-strategy"),SW={provide:$x,deps:[qu],useFactory:function xW(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},MW=new ne("mat-tooltip-default-options",{providedIn:"root",factory:function AW(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let TW=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h,f){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=s,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new O,this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(vt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Ei(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=VD(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=VD(e)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(vt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,jx)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new Ax(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(vt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe(vt(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${Hx}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(vt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(vt(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(vt(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!function Y3(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,r=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),s.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),s.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={originX:"end",originY:"center"});const{x:s,y:o}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:s,originY:o}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:s,y:o}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:s,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Tr(1),vt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:s}=e;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===s?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${Hx}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,jx)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){!function e_(){throw new Error("invalid")}()},n.\u0275dir=T({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),IW=(()=>{class n extends TW{constructor(e,i,r,s,o,a,l,c,u,d,h,f){super(e,i,r,s,o,a,l,c,u,d,h,f),this._tooltipComponent=OW}}return n.\u0275fac=function(e){return new(e||n)(g(qu),g(de),g(xx),g(Un),g($e),g(qi),g(tU),g(hx),g($x),g(Uc,8),g(MW,8),g(ke))},n.\u0275dir=T({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[H]}),n})(),kW=(()=>{class n{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new O}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const i=e.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(e){return new(e||n)(g(Er))},n.\u0275dir=T({type:n}),n})(),OW=(()=>{class n extends kW{constructor(e,i){super(e),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(e){return new(e||n)(g(Er),g(wW))},n.\u0275cmp=rn({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){2&e&&Dr("zoom","visible"===i._visibility?1:null)},features:[H],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,i){if(1&e&&(oe(0,"div",0),Le("@state.start",function(){return i._animationStart()})("@state.done",function(s){return i._animationDone(s)}),It(1,"async"),Ln(2),ye()),2&e){let r;Qt("mat-tooltip-handset",null==(r=function hc(n,t,e){const i=n+20,r=I(),s=Us(r,i);return Oa(r,i)?kw(r,Fn(),t,s.transform,e,s):s.transform(e)}(1,5,i._isHandset))?null:r.matches),L("ngClass",i.tooltipClass)("@state",i._visibility),te(2),fs(i.message)}},directives:[ai],pipes:[qf],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[DW.tooltipState]},changeDetection:0}),n})(),FW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({providers:[SW],imports:[[hU,ko,hW,Jr],Jr,jg]}),n})();class PW{constructor(t){this.selector=t}call(t,e){return e.subscribe(new NW(t,this.selector,this.caught))}}class NW extends C{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new Qn(this);this.add(i);const r=F(e,i);r!==i&&this.add(r)}}}class VW{constructor(t){this.callback=t}call(t,e){return e.subscribe(new BW(t,this.callback))}}class BW extends Ve{constructor(t,e){super(t),this.add(new he(e))}}class jW{}class es{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),s=r.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof es?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new es;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof es?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class $W{encodeKey(t){return zx(t)}encodeValue(t){return zx(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const GW=/%(\d[a-f0-9])/gi,UW={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function zx(n){return encodeURIComponent(n).replace(GW,(t,e)=>{var i;return null!==(i=UW[e])&&void 0!==i?i:t})}function Gx(n){return`${n}`}class ts{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new $W,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function zW(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,s)),t.decodeValue(r.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(s=>{e.push({param:i,value:s,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new ts({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Gx(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(Gx(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class WW{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function Ux(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function Wx(n){return"undefined"!=typeof Blob&&n instanceof Blob}function Yx(n){return"undefined"!=typeof FormData&&n instanceof FormData}class fl{constructor(t,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function YW(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new es),this.context||(this.context=new WW),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new ts,this.urlWithParams=e}serializeBody(){return null===this.body?null:Ux(this.body)||Wx(this.body)||Yx(this.body)||function qW(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof ts?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||Yx(this.body)?null:Wx(this.body)?this.body.type||null:Ux(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ts?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const i=t.method||this.method,r=t.url||this.url,s=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,l=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let c=t.headers||this.headers,u=t.params||this.params;const d=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((h,f)=>h.set(f,t.setHeaders[f]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),u)),new fl(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var En=(()=>((En=En||{})[En.Sent=0]="Sent",En[En.UploadProgress=1]="UploadProgress",En[En.ResponseHeader=2]="ResponseHeader",En[En.DownloadProgress=3]="DownloadProgress",En[En.Response=4]="Response",En[En.User=5]="User",En))();class Gg extends class KW{constructor(t,e=200,i="OK"){this.headers=t.headers||new es,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(t={}){super(t),this.type=En.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Gg({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}function Ug(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Kx=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof fl)s=e;else{let l,c;l=r.headers instanceof es?r.headers:new es(r.headers),r.params&&(c=r.params instanceof ts?r.params:new ts({fromObject:r.params})),s=new fl(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=Gi(s).pipe(function HW(n,t){return $(n,t,1)}(l=>this.handler.handle(l)));if(e instanceof fl||"events"===r.observe)return o;const a=o.pipe(Tn(l=>l instanceof Gg));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(P(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(P(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(P(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(P(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new ts).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Ug(r,i))}post(e,i,r={}){return this.request("POST",e,Ug(r,i))}put(e,i,r={}){return this.request("PUT",e,Ug(r,i))}}return n.\u0275fac=function(e){return new(e||n)(S(jW))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const QW=["*"];let Ku;function pl(n){var t;return(null===(t=function ZW(){if(void 0===Ku&&(Ku=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(Ku=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Ku}())||void 0===t?void 0:t.createHTML(n))||n}function Xx(n){return Error(`Unable to find icon with the name "${n}"`)}function Qx(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Zx(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Ns{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Xu=(()=>{class n{constructor(e,i,r,s){this._httpClient=e,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,s){return this._addSvgIconConfig(e,i,new Ns(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,s){const o=this._sanitizer.sanitize(tt.HTML,r);if(!o)throw Zx(r);const a=pl(o);return this._addSvgIconConfig(e,i,new Ns("",a,s))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new Ns(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const s=this._sanitizer.sanitize(tt.HTML,i);if(!s)throw Zx(i);const o=pl(s);return this._addSvgIconSetConfig(e,new Ns("",o,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(tt.RESOURCE_URL,e);if(!i)throw Qx(e);const r=this._cachedIconsByUrl.get(i);return r?Gi(Qu(r)):this._loadSvgIconFromConfig(new Ns(e,null)).pipe(Ga(s=>this._cachedIconsByUrl.set(i,s)),P(s=>Qu(s)))}getNamedSvgIcon(e,i=""){const r=Jx(i,e);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(e,o):_D(Xx(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Gi(Qu(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(P(i=>Qu(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);if(r)return Gi(r);const s=i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(function RW(n){return function(e){const i=new PW(n),r=e.lift(i);return i.caught=r}}(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(tt.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Gi(null)})));return function oC(...n){if(1===n.length){const t=n[0];if(Dt(t))return Yc(t,null);if(Ft(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Yc(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return Yc(n=1===n.length&&Dt(n[0])?n[0]:n,null).pipe(P(e=>t(...e)))}return Yc(n,null)}(s).pipe(P(()=>{const o=this._extractIconWithNameFromAnySet(e,i);if(!o)throw Xx(e);return o}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,e,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ga(i=>e.svgText=i),P(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Gi(null):this._fetchIcon(e).pipe(Ga(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const s=e.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(pl("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(pl("<svg></svg>")),r=e.attributes;for(let s=0;s<r.length;s++){const{name:o,value:a}=r[s];"id"!==o&&i.setAttribute(o,a)}for(let s=0;s<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[s].cloneNode(!0));return i}_setSvgAttributes(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}_fetchIcon(e){var i;const{url:r,options:s}=e,o=null!==(i=null==s?void 0:s.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function JW(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==r)throw Error(`Cannot fetch icon from URL "${r}".`);const a=this._sanitizer.sanitize(tt.RESOURCE_URL,r);if(!a)throw Qx(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(P(u=>pl(u)),function LW(n){return t=>t.lift(new VW(n))}(()=>this._inProgressUrlFetches.delete(a)),Ai());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(Jx(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;r<this._resolvers.length;r++){const s=this._resolvers[r](i,e);if(s)return t8(s)?new Ns(s.url,null,s.options):new Ns(s,null)}}}return n.\u0275fac=function(e){return new(e||n)(S(Kx,8),S(Vc),S(ke,8),S(Nr))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Qu(n){return n.cloneNode(!0)}function Jx(n,t){return n+":"+t}function t8(n){return!(!n.url||!n.options)}const n8=yx(class{constructor(n){this._elementRef=n}}),i8=new ne("mat-icon-location",{providedIn:"root",factory:function r8(){const n=to(ke),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),eS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],s8=eS.map(n=>`[${n}]`).join(", "),o8=/^url\(['"]?#(.*?)['"]?\)$/;let a8=(()=>{class n extends n8{constructor(e,i,r,s,o){super(e),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=he.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Ei(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=e.querySelectorAll("style");for(let s=0;s<i.length;s++)i[s].textContent+=" ";const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),i&&e.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(s8),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<i.length;s++)eS.forEach(o=>{const a=i[s],l=a.getAttribute(o),c=l?l.match(o8):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Tr(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(Xu),function Ll(n){return function yM(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const s=e[r];if(xm(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(s===t)return e[r+1];r+=2}}}return null}(sn(),n)}("aria-hidden"),g(i8),g(Nr))},n.\u0275cmp=rn({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(zt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),Qt("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[H],ngContentSelectors:QW,decls:1,vars:0,template:function(e,i){1&e&&(Gh(),Uh(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),l8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[Jr],Jr]}),n})();hl.extend(FU),hl.extend(OU);let c8=(()=>{class n{constructor(){this.events=[],this.view=Qr.Month,this.viewDate=new Date,this.activeDayIsOpen=!1,this.calendarEvents=[]}eventClicked({event:e}){var i;null===(i=this.onEventClick)||void 0===i||i.call(this,{id:e.id})}dayClicked({day:e}){var r;null===(r=this.onDayClick)||void 0===r||r.call(this,{date:this.getISOString(e.date)})}viewDateChange(e){}getISOString(e){return e?hl(e).utc(!0).startOf("day").toISOString():null}ngAfterViewInit(){}ngOnChanges(e){var i;this.calendarEvents=null===(i=this.events)||void 0===i?void 0:i.map(r=>({title:r.title,color:{primary:Dx(r.color).toRgbString(),secondary:Dx(r.color).setAlpha(.3).toRgbString()},start:hl(r.start).toDate(),end:hl(r.end).toDate(),id:r.id}))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["drayman-calendar-internal"]],inputs:{events:"events",onEventClick:"onEventClick",onDayClick:"onDayClick"},features:[hn],decls:16,vars:14,consts:[["fxLayout","column",2,"height","100%","background-color","#fff"],["fxLayout","","fxLayoutAlign","start center",2,"height","40px"],["type","button","mat-icon-button","","mwlCalendarPreviousView","","matTooltip","Previous month",3,"view","viewDate","viewDateChange"],["type","button","mat-icon-button","","mwlCalendarToday","","matTooltip","Today's month",3,"viewDate","viewDateChange"],["type","button","mat-icon-button","","mwlCalendarNextView","","matTooltip","Next month",3,"view","viewDate","viewDateChange"],["fxFlex","",2,"font-weight","bolder","text-align","center"],[2,"height","calc(100% - 32px - 40px)"],[2,"height","100%",3,"weekStartsOn","activeDayIsOpen","viewDate","events","eventClicked","dayClicked"]],template:function(e,i){1&e&&(oe(0,"div",0)(1,"div",1)(2,"button",2),Le("viewDateChange",function(s){return i.viewDate=s})("viewDateChange",function(s){return i.viewDateChange(s)}),oe(3,"mat-icon"),Ln(4,"chevron_left"),ye()(),oe(5,"button",3),Le("viewDateChange",function(s){return i.viewDate=s})("viewDateChange",function(s){return i.viewDateChange(s)}),oe(6,"mat-icon"),Ln(7,"today"),ye()(),oe(8,"button",4),Le("viewDateChange",function(s){return i.viewDate=s})("viewDateChange",function(s){return i.viewDateChange(s)}),oe(9,"mat-icon"),Ln(10,"chevron_right"),ye()(),oe(11,"div",5),Ln(12),It(13,"calendarDate"),ye()(),oe(14,"div",6)(15,"mwl-calendar-month-view",7),Le("eventClicked",function(s){return i.eventClicked(s)})("dayClicked",function(s){return i.dayClicked(s)}),ye()()()),2&e&&(te(2),L("view",i.view)("viewDate",i.viewDate),te(3),L("viewDate",i.viewDate),te(3),L("view",i.view)("viewDate",i.viewDate),te(4),Co(" ",Hi(13,10,i.viewDate,i.view+"ViewTitle","en")," "),te(3),L("weekStartsOn",1)("activeDayIsOpen",!1)("viewDate",i.viewDate)("events",i.calendarEvents))},directives:[UD,XD,IU,MG,IW,a8,TG,AG,KD,kG],pipes:[al],styles:['@charset "UTF-8"; .cal-days>div{flex:1} .cal-month-view .cal-header{text-align:center;font-weight:bolder} .cal-month-view .cal-header .cal-cell{padding:5px 0;overflow:hidden;text-overflow:ellipsis;display:block;white-space:nowrap} .cal-month-view .cal-days{display:flex;flex-direction:column;height:100%;border:1px solid;border-bottom:0} .cal-month-view .cal-cell-top{min-height:78px;flex:1} .cal-month-view .cal-cell-row{-js-display:flex;display:flex} .cal-month-view .cal-cell{float:left;flex:1;-js-display:flex;display:flex;flex-direction:column;align-items:stretch} .cal-month-view .cal-cell .cal-event{pointer-events:all!important} .cal-month-view .cal-day-cell{min-height:100px}@media all and (-ms-high-contrast: none){ .cal-month-view .cal-day-cell{display:block}} .cal-month-view .cal-day-cell:not(:last-child){border-right:1px solid} .cal-month-view .cal-days .cal-cell-row{border-bottom:1px solid} .cal-month-view .cal-day-badge{margin-top:18px;margin-left:10px;display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:middle;border-radius:10px} .cal-month-view .cal-day-number{font-size:1.2em;font-weight:400;opacity:.5;margin-top:15px;margin-right:15px;float:right;margin-bottom:10px} .cal-month-view .cal-events{flex:1;align-items:flex-end;margin:3px;line-height:10px;-js-display:flex;display:flex;flex-wrap:wrap} .cal-month-view .cal-event{width:10px;height:10px;border-radius:50%;display:inline-block;margin:2px} .cal-month-view .cal-day-cell.cal-in-month.cal-has-events{cursor:pointer} .cal-month-view .cal-day-cell.cal-out-month .cal-day-number{opacity:.1;cursor:default} .cal-month-view .cal-day-cell.cal-today .cal-day-number{font-size:1.9em} .cal-month-view .cal-open-day-events{padding:15px} .cal-month-view .cal-open-day-events .cal-event{position:relative;top:2px} .cal-month-view .cal-out-month .cal-day-badge, .cal-month-view .cal-out-month .cal-event{opacity:.3} .cal-month-view .cal-draggable{cursor:move} .cal-month-view .cal-drag-active *{pointer-events:none} .cal-month-view .cal-event-title{cursor:pointer} .cal-month-view .cal-event-title:hover{text-decoration:underline} .cal-month-view{background-color:#fff;height:100%} .cal-month-view .cal-cell-row:hover{background-color:#fafafa} .cal-month-view .cal-cell-row .cal-cell:hover, .cal-month-view .cal-cell.cal-has-events.cal-open{background-color:#ededed} .cal-month-view .cal-days{border-color:#e1e1e1} .cal-month-view .cal-day-cell:not(:last-child){border-right-color:#e1e1e1} .cal-month-view .cal-days .cal-cell-row{height:100%;border-bottom-color:#e1e1e1} .cal-month-view .cal-day-badge{background-color:#b94a48;color:#fff} .cal-month-view .cal-event{background-color:#1e90ff;border-color:#d1e8ff;color:#fff} .cal-month-view .cal-day-cell.cal-weekend .cal-day-number{color:#8b0000} .cal-month-view .cal-day-cell.cal-today{background-color:#e8fde7} .cal-month-view .cal-day-cell.cal-drag-over{background-color:#e0e0e0!important} .cal-month-view .cal-open-day-events{color:#fff;background-color:#555;box-shadow:inset 0 0 15px #00000080} .cal-week-view *{box-sizing:border-box} .cal-week-view .cal-day-headers{-js-display:flex;display:flex;padding-left:70px;border:1px solid} .cal-week-view .cal-day-headers .cal-header{flex:1;text-align:center;padding:5px} .cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right:1px solid} .cal-week-view .cal-day-headers .cal-header:first-child{border-left:1px solid} .cal-week-view .cal-day-headers span{font-weight:400;opacity:.5} .cal-week-view .cal-day-column{flex-grow:1;border-left:solid 1px} .cal-week-view .cal-event{font-size:12px;border:1px solid} .cal-week-view .cal-time-label-column{width:70px;height:100%} .cal-week-view .cal-current-time-marker{position:absolute;width:100%;height:2px;z-index:2} .cal-week-view .cal-all-day-events{border:solid 1px;border-top:0;border-bottom-width:3px;padding-top:3px;position:relative} .cal-week-view .cal-all-day-events .cal-day-columns{height:100%;width:100%;-js-display:flex;display:flex;position:absolute;top:0;z-index:0} .cal-week-view .cal-all-day-events .cal-events-row{position:relative;height:31px;margin-left:70px} .cal-week-view .cal-all-day-events .cal-event-container{display:inline-block;position:absolute} .cal-week-view .cal-all-day-events .cal-event-container.resize-active{z-index:1;pointer-events:none} .cal-week-view .cal-all-day-events .cal-event{padding:0 5px;margin-left:2px;margin-right:2px;height:28px;line-height:28px} .cal-week-view .cal-all-day-events .cal-starts-within-week .cal-event{border-top-left-radius:5px;border-bottom-left-radius:5px} .cal-week-view .cal-all-day-events .cal-ends-within-week .cal-event{border-top-right-radius:5px;border-bottom-right-radius:5px} .cal-week-view .cal-all-day-events .cal-time-label-column{-js-display:flex;display:flex;align-items:center;justify-content:center;font-size:14px} .cal-week-view .cal-all-day-events .cal-resize-handle{width:6px;height:100%;cursor:col-resize;position:absolute;top:0} .cal-week-view .cal-all-day-events .cal-resize-handle.cal-resize-handle-after-end{right:0} .cal-week-view .cal-event, .cal-week-view .cal-header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .cal-week-view .cal-drag-active{pointer-events:none;z-index:1} .cal-week-view .cal-drag-active *{pointer-events:none} .cal-week-view .cal-time-events{position:relative;border:solid 1px;border-top:0;-js-display:flex;display:flex} .cal-week-view .cal-time-events .cal-day-columns{-js-display:flex;display:flex;flex-grow:1} .cal-week-view .cal-time-events .cal-day-column{position:relative} .cal-week-view .cal-time-events .cal-events-container{position:relative} .cal-week-view .cal-time-events .cal-event-container{position:absolute;z-index:1} .cal-week-view .cal-time-events .cal-event{width:calc(100% - 2px);height:calc(100% - 2px);margin:1px;padding:0 5px;line-height:25px} .cal-week-view .cal-time-events .cal-resize-handle{width:100%;height:4px;cursor:row-resize;position:absolute} .cal-week-view .cal-time-events .cal-resize-handle.cal-resize-handle-after-end{bottom:0} .cal-week-view .cal-hour-segment{position:relative} .cal-week-view .cal-hour-segment:after{content:"\\a0"} .cal-week-view .cal-event-container:not(.cal-draggable){cursor:pointer} .cal-week-view .cal-draggable{cursor:move} .cal-week-view mwl-calendar-week-view-hour-segment, .cal-week-view .cal-hour-segment{display:block} .cal-week-view .cal-hour:not(:last-child) .cal-hour-segment, .cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment{border-bottom:thin dashed} .cal-week-view .cal-time{font-weight:700;padding-top:5px;width:70px;text-align:center} .cal-week-view .cal-hour-segment.cal-after-hour-start .cal-time{display:none} .cal-week-view .cal-starts-within-day .cal-event{border-top-left-radius:5px;border-top-right-radius:5px} .cal-week-view .cal-ends-within-day .cal-event{border-bottom-left-radius:5px;border-bottom-right-radius:5px} .cal-week-view{background-color:#fff;border-top:solid 1px #e1e1e1} .cal-week-view .cal-day-headers{border-color:#e1e1e1;border-top:0} .cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right-color:#e1e1e1} .cal-week-view .cal-day-headers .cal-header:first-child{border-left-color:#e1e1e1} .cal-week-view .cal-day-headers .cal-header:hover, .cal-week-view .cal-day-headers .cal-drag-over{background-color:#ededed} .cal-week-view .cal-day-column{border-left-color:#e1e1e1} .cal-week-view .cal-event{background-color:#d1e8ff;border-color:#1e90ff;color:#1e90ff} .cal-week-view .cal-all-day-events{border-color:#e1e1e1} .cal-week-view .cal-header.cal-today{background-color:#e8fde7} .cal-week-view .cal-header.cal-weekend span{color:#8b0000} .cal-week-view .cal-time-events{border-color:#e1e1e1} .cal-week-view .cal-time-events .cal-day-columns:not(.cal-resize-active) .cal-hour-segment:hover{background-color:#ededed} .cal-week-view .cal-hour-odd{background-color:#fafafa} .cal-week-view .cal-drag-over .cal-hour-segment{background-color:#ededed} .cal-week-view .cal-hour:not(:last-child) .cal-hour-segment, .cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment{border-bottom-color:#e1e1e1} .cal-week-view .cal-current-time-marker{background-color:#ea4334} .cal-day-view mwl-calendar-week-view-header{display:none} .cal-day-view .cal-events-container{margin-left:70px} .cal-day-view .cal-day-column{border-left:0} .cal-day-view .cal-current-time-marker{margin-left:70px;width:calc(100% - 70px)} .cal-tooltip{position:absolute;z-index:1070;display:block;font-style:normal;font-weight:400;letter-spacing:normal;line-break:auto;line-height:1.5;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;font-size:11px;word-wrap:break-word;opacity:.9} .cal-tooltip.cal-tooltip-top{padding:5px 0;margin-top:-3px} .cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0} .cal-tooltip.cal-tooltip-right{padding:0 5px;margin-left:3px} .cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0} .cal-tooltip.cal-tooltip-bottom{padding:5px 0;margin-top:3px} .cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px} .cal-tooltip.cal-tooltip-left{padding:0 5px;margin-left:-3px} .cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px} .cal-tooltip-inner{max-width:200px;padding:3px 8px;text-align:center;border-radius:.25rem} .cal-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid} .cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-top-color:#000} .cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-right-color:#000} .cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-bottom-color:#000} .cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-left-color:#000} .cal-tooltip-inner{color:#fff;background-color:#000}']}),n})(),u8=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(){const e=function _N(n,t){const e=function hN(n,t){return t.get(Cr).resolveComponentFactory(n).inputs}(n,t.injector),i=t.strategyFactory||new mN(n,t.injector),r=function dN(n){const t={};return n.forEach(({propName:e,templateName:i})=>{t[function oN(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(i)]=e}),t}(e);class s extends vN{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||t.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),e.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(c8,{injector:this.injector});customElements.define("drayman-calendar",e)}}return n.\u0275fac=function(e){return new(e||n)(S(wn))},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({providers:[],imports:[[fD,jj,jH,jB,l8,FW,kU,Uo.forRoot({provide:Dn,useFactory:N3})]]}),n})();(function rR(){bb=!1})(),LP().bootstrapModule(u8).catch(n=>console.error(n))})()})();
1
+ (()=>{var tS={764:function(Wt){Wt.exports=function(){"use strict";var _t="millisecond",We="second",wt="minute",Ee="hour",Dt="day",Ft="week",Lt="month",ee="quarter",he="year",dt="date",_e=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,V=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Ve={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},me=function(re,J,B){var O=String(re);return!O||O.length>=J?re:""+Array(J+1-O.length).join(B)+re},we={s:me,z:function(re){var J=-re.utcOffset(),B=Math.abs(J),O=Math.floor(B/60),X=B%60;return(J<=0?"+":"-")+me(O,2,"0")+":"+me(X,2,"0")},m:function re(J,B){if(J.date()<B.date())return-re(B,J);var O=12*(B.year()-J.year())+(B.month()-J.month()),X=J.clone().add(O,Lt),ce=B-X<0,P=J.clone().add(O+(ce?-1:1),Lt);return+(-(O+(B-X)/(ce?X-P:P-X))||0)},a:function(re){return re<0?Math.ceil(re)||0:Math.floor(re)},p:function(re){return{M:Lt,y:he,w:Ft,d:Dt,D:dt,h:Ee,m:wt,s:We,ms:_t,Q:ee}[re]||String(re||"").toLowerCase().replace(/s$/,"")},u:function(re){return void 0===re}},Ze="en",Ne={};Ne[Ze]=Ve;var Ct=function(re){return re instanceof $t},Yt=function(re,J,B){var O;if(!re)return Ze;if("string"==typeof re)Ne[re]&&(O=re),J&&(Ne[re]=J,O=re);else{var X=re.name;Ne[X]=re,O=X}return!B&&O&&(Ze=O),O||!B&&Ze},rt=function(re,J){if(Ct(re))return re.clone();var B="object"==typeof J?J:{};return B.date=re,B.args=arguments,new $t(B)},Y=we;Y.l=Yt,Y.i=Ct,Y.w=function(re,J){return rt(re,{locale:J.$L,utc:J.$u,x:J.$x,$offset:J.$offset})};var $t=function(){function re(B){this.$L=Yt(B.locale,null,!0),this.parse(B)}var J=re.prototype;return J.parse=function(B){this.$d=function(O){var X=O.date,ce=O.utc;if(null===X)return new Date(NaN);if(Y.u(X))return new Date;if(X instanceof Date)return new Date(X);if("string"==typeof X&&!/Z$/i.test(X)){var P=X.match(_e);if(P){var Je=P[2]-1||0,at=(P[7]||"0").substring(0,3);return ce?new Date(Date.UTC(P[1],Je,P[3]||1,P[4]||0,P[5]||0,P[6]||0,at)):new Date(P[1],Je,P[3]||1,P[4]||0,P[5]||0,P[6]||0,at)}}return new Date(X)}(B),this.$x=B.x||{},this.init()},J.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},J.$utils=function(){return Y},J.isValid=function(){return"Invalid Date"!==this.$d.toString()},J.isSame=function(B,O){var X=rt(B);return this.startOf(O)<=X&&X<=this.endOf(O)},J.isAfter=function(B,O){return rt(B)<this.startOf(O)},J.isBefore=function(B,O){return this.endOf(O)<rt(B)},J.$g=function(B,O,X){return Y.u(B)?this[O]:this.set(X,B)},J.unix=function(){return Math.floor(this.valueOf()/1e3)},J.valueOf=function(){return this.$d.getTime()},J.startOf=function(B,O){var X=this,ce=!!Y.u(O)||O,P=Y.p(B),Je=function(Be,xt){var lt=Y.w(X.$u?Date.UTC(X.$y,xt,Be):new Date(X.$y,xt,Be),X);return ce?lt:lt.endOf(Dt)},at=function(Be,xt){return Y.w(X.toDate()[Be].apply(X.toDate("s"),(ce?[0,0,0,0]:[23,59,59,999]).slice(xt)),X)},it=this.$W,Et=this.$M,tn=this.$D,nn="set"+(this.$u?"UTC":"");switch(P){case he:return ce?Je(1,0):Je(31,11);case Lt:return ce?Je(1,Et):Je(0,Et+1);case Ft:var Yn=this.$locale().weekStart||0,qn=(it<Yn?it+7:it)-Yn;return Je(ce?tn-qn:tn+(6-qn),Et);case Dt:case dt:return at(nn+"Hours",0);case Ee:return at(nn+"Minutes",1);case wt:return at(nn+"Seconds",2);case We:return at(nn+"Milliseconds",3);default:return this.clone()}},J.endOf=function(B){return this.startOf(B,!1)},J.$set=function(B,O){var X,ce=Y.p(B),P="set"+(this.$u?"UTC":""),Je=(X={},X[Dt]=P+"Date",X[dt]=P+"Date",X[Lt]=P+"Month",X[he]=P+"FullYear",X[Ee]=P+"Hours",X[wt]=P+"Minutes",X[We]=P+"Seconds",X[_t]=P+"Milliseconds",X)[ce],at=ce===Dt?this.$D+(O-this.$W):O;if(ce===Lt||ce===he){var it=this.clone().set(dt,1);it.$d[Je](at),it.init(),this.$d=it.set(dt,Math.min(this.$D,it.daysInMonth())).$d}else Je&&this.$d[Je](at);return this.init(),this},J.set=function(B,O){return this.clone().$set(B,O)},J.get=function(B){return this[Y.p(B)]()},J.add=function(B,O){var X,ce=this;B=Number(B);var P=Y.p(O),Je=function(Et){var tn=rt(ce);return Y.w(tn.date(tn.date()+Math.round(Et*B)),ce)};if(P===Lt)return this.set(Lt,this.$M+B);if(P===he)return this.set(he,this.$y+B);if(P===Dt)return Je(1);if(P===Ft)return Je(7);var at=(X={},X[wt]=6e4,X[Ee]=36e5,X[We]=1e3,X)[P]||1,it=this.$d.getTime()+B*at;return Y.w(it,this)},J.subtract=function(B,O){return this.add(-1*B,O)},J.format=function(B){var O=this;if(!this.isValid())return"Invalid Date";var X=B||"YYYY-MM-DDTHH:mm:ssZ",ce=Y.z(this),P=this.$locale(),Je=this.$H,at=this.$m,it=this.$M,Et=P.weekdays,tn=P.months,nn=function(xt,lt,Kn,di){return xt&&(xt[lt]||xt(O,X))||Kn[lt].substr(0,di)},Yn=function(xt){return Y.s(Je%12||12,xt,"0")},qn=P.meridiem||function(xt,lt,Kn){var di=xt<12?"AM":"PM";return Kn?di.toLowerCase():di},Be={YY:String(this.$y).slice(-2),YYYY:this.$y,M:it+1,MM:Y.s(it+1,2,"0"),MMM:nn(P.monthsShort,it,tn,3),MMMM:nn(tn,it),D:this.$D,DD:Y.s(this.$D,2,"0"),d:String(this.$W),dd:nn(P.weekdaysMin,this.$W,Et,2),ddd:nn(P.weekdaysShort,this.$W,Et,3),dddd:Et[this.$W],H:String(Je),HH:Y.s(Je,2,"0"),h:Yn(1),hh:Yn(2),a:qn(Je,at,!0),A:qn(Je,at,!1),m:String(at),mm:Y.s(at,2,"0"),s:String(this.$s),ss:Y.s(this.$s,2,"0"),SSS:Y.s(this.$ms,3,"0"),Z:ce};return X.replace(V,function(xt,lt){return lt||Be[xt]||ce.replace(":","")})},J.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},J.diff=function(B,O,X){var ce,P=Y.p(O),Je=rt(B),at=6e4*(Je.utcOffset()-this.utcOffset()),it=this-Je,Et=Y.m(this,Je);return Et=(ce={},ce[he]=Et/12,ce[Lt]=Et,ce[ee]=Et/3,ce[Ft]=(it-at)/6048e5,ce[Dt]=(it-at)/864e5,ce[Ee]=it/36e5,ce[wt]=it/6e4,ce[We]=it/1e3,ce)[P]||it,X?Et:Y.a(Et)},J.daysInMonth=function(){return this.endOf(Lt).$D},J.$locale=function(){return Ne[this.$L]},J.locale=function(B,O){if(!B)return this.$L;var X=this.clone(),ce=Yt(B,O,!0);return ce&&(X.$L=ce),X},J.clone=function(){return Y.w(this.$d,this)},J.toDate=function(){return new Date(this.valueOf())},J.toJSON=function(){return this.isValid()?this.toISOString():null},J.toISOString=function(){return this.$d.toISOString()},J.toString=function(){return this.$d.toUTCString()},re}(),zn=$t.prototype;return rt.prototype=zn,[["$ms",_t],["$s",We],["$m",wt],["$H",Ee],["$W",Dt],["$M",Lt],["$y",he],["$D",dt]].forEach(function(re){zn[re[1]]=function(J){return this.$g(J,re[0],re[1])}}),rt.extend=function(re,J){return re(J,$t,rt),rt},rt.locale=Yt,rt.isDayjs=Ct,rt.unix=function(re){return rt(1e3*re)},rt.en=Ne[Ze],rt.Ls=Ne,rt.p={},rt}()},274:function(Wt){Wt.exports=function(){"use strict";var _t,We={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Ee=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,Dt=/\d\d/,Ft=/\d\d?/,Lt=/\d*[^\s\d-:/()]+/,ee=function(me){return function(we){this[me]=+we}},he=[/[+-]\d\d:?\d\d/,function(me){var we,Ze;(this.zone||(this.zone={})).offset=0==(Ze=60*(we=me.match(/([+-]|\d\d)/g))[1]+ +we[2])?0:"+"===we[0]?-Ze:Ze}],dt=function(me){var we=_t[me];return we&&(we.indexOf?we:we.s.concat(we.f))},_e=function(me,we){var Ze,Ne=_t.meridiem;if(Ne){for(var Ct=1;Ct<=24;Ct+=1)if(me.indexOf(Ne(Ct,0,we))>-1){Ze=Ct>12;break}}else Ze=me===(we?"pm":"PM");return Ze},V={A:[Lt,function(me){this.afternoon=_e(me,!1)}],a:[Lt,function(me){this.afternoon=_e(me,!0)}],S:[/\d/,function(me){this.milliseconds=100*+me}],SS:[Dt,function(me){this.milliseconds=10*+me}],SSS:[/\d{3}/,function(me){this.milliseconds=+me}],s:[Ft,ee("seconds")],ss:[Ft,ee("seconds")],m:[Ft,ee("minutes")],mm:[Ft,ee("minutes")],H:[Ft,ee("hours")],h:[Ft,ee("hours")],HH:[Ft,ee("hours")],hh:[Ft,ee("hours")],D:[Ft,ee("day")],DD:[Dt,ee("day")],Do:[Lt,function(me){var we=_t.ordinal,Ze=me.match(/\d+/);if(this.day=Ze[0],we)for(var Ne=1;Ne<=31;Ne+=1)we(Ne).replace(/\[|\]/g,"")===me&&(this.day=Ne)}],M:[Ft,ee("month")],MM:[Dt,ee("month")],MMM:[Lt,function(me){var we=dt("months"),Ze=(dt("monthsShort")||we.map(function(Ne){return Ne.substr(0,3)})).indexOf(me)+1;if(Ze<1)throw new Error;this.month=Ze%12||Ze}],MMMM:[Lt,function(me){var we=dt("months").indexOf(me)+1;if(we<1)throw new Error;this.month=we%12||we}],Y:[/[+-]?\d+/,ee("year")],YY:[Dt,function(me){this.year=(me=+me)+(me>68?1900:2e3)}],YYYY:[/\d{4}/,ee("year")],Z:he,ZZ:he},Ve=function(me,we,Ze){try{var Ne=function(Et){for(var tn=(Et=function(me,we){return me.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Ze,Ne,Ct){var Yt=Ct&&Ct.toUpperCase();return Ne||we[Ct]||We[Ct]||we[Yt].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(rt,Y,$t){return Y||$t.slice(1)})})}(Et,_t&&_t.formats)).match(Ee),nn=tn.length,Yn=0;Yn<nn;Yn+=1){var qn=tn[Yn],Be=V[qn],lt=Be&&Be[1];tn[Yn]=lt?{regex:Be&&Be[0],parser:lt}:qn.replace(/^\[|\]$/g,"")}return function(Kn){for(var di={},mn=0,hi=0;mn<nn;mn+=1){var fr=tn[mn];if("string"==typeof fr)hi+=fr.length;else{var Bs=fr.regex,kn=fr.parser,Xn=Kn.substr(hi),pr=Bs.exec(Xn)[0];kn.call(di,pr),Kn=Kn.replace(pr,"")}}return function(Qn){var m=Qn.afternoon;if(void 0!==m){var C=Qn.hours;m?C<12&&(Qn.hours+=12):12===C&&(Qn.hours=0),delete Qn.afternoon}}(di),di}}(we)(me),Ct=Ne.year,Yt=Ne.month,rt=Ne.day,Y=Ne.hours,$t=Ne.minutes,zn=Ne.seconds,re=Ne.milliseconds,J=Ne.zone,B=new Date,O=rt||(Ct||Yt?1:B.getDate()),X=Ct||B.getFullYear(),ce=0;Ct&&!Yt||(ce=Yt>0?Yt-1:B.getMonth());var P=Y||0,Je=$t||0,at=zn||0,it=re||0;return J?new Date(Date.UTC(X,ce,O,P,Je,at,it+60*J.offset*1e3)):Ze?new Date(Date.UTC(X,ce,O,P,Je,at,it)):new Date(X,ce,O,P,Je,at,it)}catch(Et){return new Date("")}};return function(me,we,Ze){Ze.p.customParseFormat=!0;var Ne=we.prototype,Ct=Ne.parse;Ne.parse=function(Yt){var rt=Yt.date,Y=Yt.utc,$t=Yt.args;this.$u=Y;var zn=$t[1];if("string"==typeof zn){var re=!0===$t[2],J=!0===$t[3],B=re||J,O=$t[2];J&&(O=$t[2]),re||(_t=O?Ze.Ls[O]:this.$locale()),this.$d=Ve(rt,zn,Y),this.init(),O&&!0!==O&&(this.$L=this.locale(O).$L),B&&rt!==this.format(zn)&&(this.$d=new Date("")),_t=void 0}else if(zn instanceof Array)for(var X=zn.length,ce=1;ce<=X;ce+=1){$t[1]=zn[ce-1];var P=Ze.apply(this,$t);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}ce===X&&(this.$d=new Date(""))}else Ct.call(this,Yt)}}}()},268:function(Wt){Wt.exports=function(){"use strict";return function(_t,We,wt){var Ee=We.prototype;wt.utc=function(_e){return new We({date:_e,utc:!0,args:arguments})},Ee.utc=function(_e){var V=wt(this.toDate(),{locale:this.$L,utc:!0});return _e?V.add(this.utcOffset(),"minute"):V},Ee.local=function(){return wt(this.toDate(),{locale:this.$L,utc:!1})};var Dt=Ee.parse;Ee.parse=function(_e){_e.utc&&(this.$u=!0),this.$utils().u(_e.$offset)||(this.$offset=_e.$offset),Dt.call(this,_e)};var Ft=Ee.init;Ee.init=function(){if(this.$u){var _e=this.$d;this.$y=_e.getUTCFullYear(),this.$M=_e.getUTCMonth(),this.$D=_e.getUTCDate(),this.$W=_e.getUTCDay(),this.$H=_e.getUTCHours(),this.$m=_e.getUTCMinutes(),this.$s=_e.getUTCSeconds(),this.$ms=_e.getUTCMilliseconds()}else Ft.call(this)};var Lt=Ee.utcOffset;Ee.utcOffset=function(_e,V){var Ve=this.$utils().u;if(Ve(_e))return this.$u?0:Ve(this.$offset)?Lt.call(this):this.$offset;var me=Math.abs(_e)<=16?60*_e:_e,we=this;if(V)return we.$offset=me,we.$u=0===_e,we;if(0!==_e){var Ze=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(we=this.local().add(me+Ze,"minute")).$offset=me,we.$x.$localOffset=Ze}else we=this.utc();return we};var ee=Ee.format;Ee.format=function(_e){return ee.call(this,_e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},Ee.valueOf=function(){var _e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*_e},Ee.isUTC=function(){return!!this.$u},Ee.toISOString=function(){return this.toDate().toISOString()},Ee.toString=function(){return this.toDate().toUTCString()};var he=Ee.toDate;Ee.toDate=function(_e){return"s"===_e&&this.$offset?wt(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():he.call(this)};var dt=Ee.diff;Ee.diff=function(_e,V,Ve){if(this.$u===_e.$u)return dt.call(this,_e,V,Ve);var me=this.local(),we=wt(_e).local();return dt.call(me,we,V,Ve)}}}()},23:(Wt,_t,We)=>{var wt;!function(Ee){var Dt=/^\s+/,Ft=/\s+$/,Lt=0,ee=Ee.round,he=Ee.min,dt=Ee.max,_e=Ee.random;function V(m,C){if(C=C||{},(m=m||"")instanceof V)return m;if(!(this instanceof V))return new V(m,C);var y=function Ve(m){var C={r:0,g:0,b:0},y=1,F=null,$=null,q=null,et=!1,St=!1;return"string"==typeof m&&(m=function pr(m){m=m.replace(Dt,"").replace(Ft,"").toLowerCase();var y,C=!1;if(tn[m])m=tn[m],C=!0;else if("transparent"==m)return{r:0,g:0,b:0,a:0,format:"name"};return(y=kn.rgb.exec(m))?{r:y[1],g:y[2],b:y[3]}:(y=kn.rgba.exec(m))?{r:y[1],g:y[2],b:y[3],a:y[4]}:(y=kn.hsl.exec(m))?{h:y[1],s:y[2],l:y[3]}:(y=kn.hsla.exec(m))?{h:y[1],s:y[2],l:y[3],a:y[4]}:(y=kn.hsv.exec(m))?{h:y[1],s:y[2],v:y[3]}:(y=kn.hsva.exec(m))?{h:y[1],s:y[2],v:y[3],a:y[4]}:(y=kn.hex8.exec(m))?{r:lt(y[1]),g:lt(y[2]),b:lt(y[3]),a:Bs(y[4]),format:C?"name":"hex8"}:(y=kn.hex6.exec(m))?{r:lt(y[1]),g:lt(y[2]),b:lt(y[3]),format:C?"name":"hex"}:(y=kn.hex4.exec(m))?{r:lt(y[1]+""+y[1]),g:lt(y[2]+""+y[2]),b:lt(y[3]+""+y[3]),a:Bs(y[4]+""+y[4]),format:C?"name":"hex8"}:!!(y=kn.hex3.exec(m))&&{r:lt(y[1]+""+y[1]),g:lt(y[2]+""+y[2]),b:lt(y[3]+""+y[3]),format:C?"name":"hex"}}(m)),"object"==typeof m&&(Xn(m.r)&&Xn(m.g)&&Xn(m.b)?(C=function me(m,C,y){return{r:255*Be(m,255),g:255*Be(C,255),b:255*Be(y,255)}}(m.r,m.g,m.b),et=!0,St="%"===String(m.r).substr(-1)?"prgb":"rgb"):Xn(m.h)&&Xn(m.s)&&Xn(m.v)?(F=hi(m.s),$=hi(m.v),C=function Ct(m,C,y){m=6*Be(m,360),C=Be(C,100),y=Be(y,100);var F=Ee.floor(m),$=m-F,q=y*(1-C),et=y*(1-$*C),St=y*(1-(1-$)*C),Mt=F%6;return{r:255*[y,et,q,q,St,y][Mt],g:255*[St,y,y,et,q,q][Mt],b:255*[q,q,St,y,y,et][Mt]}}(m.h,F,$),et=!0,St="hsv"):Xn(m.h)&&Xn(m.s)&&Xn(m.l)&&(F=hi(m.s),q=hi(m.l),C=function Ze(m,C,y){var F,$,q;function et(xn,qt,Gn){return Gn<0&&(Gn+=1),Gn>1&&(Gn-=1),Gn<.16666666666666666?xn+6*(qt-xn)*Gn:Gn<.5?qt:Gn<.6666666666666666?xn+(qt-xn)*(.6666666666666666-Gn)*6:xn}if(m=Be(m,360),C=Be(C,100),y=Be(y,100),0===C)F=$=q=y;else{var St=y<.5?y*(1+C):y+C-y*C,Mt=2*y-St;F=et(Mt,St,m+.3333333333333333),$=et(Mt,St,m),q=et(Mt,St,m-.3333333333333333)}return{r:255*F,g:255*$,b:255*q}}(m.h,F,q),et=!0,St="hsl"),m.hasOwnProperty("a")&&(y=m.a)),y=qn(y),{ok:et,format:m.format||St,r:he(255,dt(C.r,0)),g:he(255,dt(C.g,0)),b:he(255,dt(C.b,0)),a:y}}(m);this._originalInput=m,this._r=y.r,this._g=y.g,this._b=y.b,this._a=y.a,this._roundA=ee(100*this._a)/100,this._format=C.format||y.format,this._gradientType=C.gradientType,this._r<1&&(this._r=ee(this._r)),this._g<1&&(this._g=ee(this._g)),this._b<1&&(this._b=ee(this._b)),this._ok=y.ok,this._tc_id=Lt++}function we(m,C,y){m=Be(m,255),C=Be(C,255),y=Be(y,255);var q,et,F=dt(m,C,y),$=he(m,C,y),St=(F+$)/2;if(F==$)q=et=0;else{var Mt=F-$;switch(et=St>.5?Mt/(2-F-$):Mt/(F+$),F){case m:q=(C-y)/Mt+(C<y?6:0);break;case C:q=(y-m)/Mt+2;break;case y:q=(m-C)/Mt+4}q/=6}return{h:q,s:et,l:St}}function Ne(m,C,y){m=Be(m,255),C=Be(C,255),y=Be(y,255);var q,et,F=dt(m,C,y),$=he(m,C,y),St=F,Mt=F-$;if(et=0===F?0:Mt/F,F==$)q=0;else{switch(F){case m:q=(C-y)/Mt+(C<y?6:0);break;case C:q=(y-m)/Mt+2;break;case y:q=(m-C)/Mt+4}q/=6}return{h:q,s:et,v:St}}function Yt(m,C,y,F){var $=[mn(ee(m).toString(16)),mn(ee(C).toString(16)),mn(ee(y).toString(16))];return F&&$[0].charAt(0)==$[0].charAt(1)&&$[1].charAt(0)==$[1].charAt(1)&&$[2].charAt(0)==$[2].charAt(1)?$[0].charAt(0)+$[1].charAt(0)+$[2].charAt(0):$.join("")}function Y(m,C,y,F){return[mn(fr(F)),mn(ee(m).toString(16)),mn(ee(C).toString(16)),mn(ee(y).toString(16))].join("")}function $t(m,C){C=0===C?0:C||10;var y=V(m).toHsl();return y.s-=C/100,y.s=xt(y.s),V(y)}function zn(m,C){C=0===C?0:C||10;var y=V(m).toHsl();return y.s+=C/100,y.s=xt(y.s),V(y)}function re(m){return V(m).desaturate(100)}function J(m,C){C=0===C?0:C||10;var y=V(m).toHsl();return y.l+=C/100,y.l=xt(y.l),V(y)}function B(m,C){C=0===C?0:C||10;var y=V(m).toRgb();return y.r=dt(0,he(255,y.r-ee(-C/100*255))),y.g=dt(0,he(255,y.g-ee(-C/100*255))),y.b=dt(0,he(255,y.b-ee(-C/100*255))),V(y)}function O(m,C){C=0===C?0:C||10;var y=V(m).toHsl();return y.l-=C/100,y.l=xt(y.l),V(y)}function X(m,C){var y=V(m).toHsl(),F=(y.h+C)%360;return y.h=F<0?360+F:F,V(y)}function ce(m){var C=V(m).toHsl();return C.h=(C.h+180)%360,V(C)}function P(m){var C=V(m).toHsl(),y=C.h;return[V(m),V({h:(y+120)%360,s:C.s,l:C.l}),V({h:(y+240)%360,s:C.s,l:C.l})]}function Je(m){var C=V(m).toHsl(),y=C.h;return[V(m),V({h:(y+90)%360,s:C.s,l:C.l}),V({h:(y+180)%360,s:C.s,l:C.l}),V({h:(y+270)%360,s:C.s,l:C.l})]}function at(m){var C=V(m).toHsl(),y=C.h;return[V(m),V({h:(y+72)%360,s:C.s,l:C.l}),V({h:(y+216)%360,s:C.s,l:C.l})]}function it(m,C,y){C=C||6,y=y||30;var F=V(m).toHsl(),$=360/y,q=[V(m)];for(F.h=(F.h-($*C>>1)+720)%360;--C;)F.h=(F.h+$)%360,q.push(V(F));return q}function Et(m,C){C=C||6;for(var y=V(m).toHsv(),F=y.h,$=y.s,q=y.v,et=[],St=1/C;C--;)et.push(V({h:F,s:$,v:q})),q=(q+St)%1;return et}V.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var m=this.toRgb();return(299*m.r+587*m.g+114*m.b)/1e3},getLuminance:function(){var C,y,F,m=this.toRgb();return y=m.g/255,F=m.b/255,.2126*((C=m.r/255)<=.03928?C/12.92:Ee.pow((C+.055)/1.055,2.4))+.7152*(y<=.03928?y/12.92:Ee.pow((y+.055)/1.055,2.4))+.0722*(F<=.03928?F/12.92:Ee.pow((F+.055)/1.055,2.4))},setAlpha:function(m){return this._a=qn(m),this._roundA=ee(100*this._a)/100,this},toHsv:function(){var m=Ne(this._r,this._g,this._b);return{h:360*m.h,s:m.s,v:m.v,a:this._a}},toHsvString:function(){var m=Ne(this._r,this._g,this._b),C=ee(360*m.h),y=ee(100*m.s),F=ee(100*m.v);return 1==this._a?"hsv("+C+", "+y+"%, "+F+"%)":"hsva("+C+", "+y+"%, "+F+"%, "+this._roundA+")"},toHsl:function(){var m=we(this._r,this._g,this._b);return{h:360*m.h,s:m.s,l:m.l,a:this._a}},toHslString:function(){var m=we(this._r,this._g,this._b),C=ee(360*m.h),y=ee(100*m.s),F=ee(100*m.l);return 1==this._a?"hsl("+C+", "+y+"%, "+F+"%)":"hsla("+C+", "+y+"%, "+F+"%, "+this._roundA+")"},toHex:function(m){return Yt(this._r,this._g,this._b,m)},toHexString:function(m){return"#"+this.toHex(m)},toHex8:function(m){return function rt(m,C,y,F,$){var q=[mn(ee(m).toString(16)),mn(ee(C).toString(16)),mn(ee(y).toString(16)),mn(fr(F))];return $&&q[0].charAt(0)==q[0].charAt(1)&&q[1].charAt(0)==q[1].charAt(1)&&q[2].charAt(0)==q[2].charAt(1)&&q[3].charAt(0)==q[3].charAt(1)?q[0].charAt(0)+q[1].charAt(0)+q[2].charAt(0)+q[3].charAt(0):q.join("")}(this._r,this._g,this._b,this._a,m)},toHex8String:function(m){return"#"+this.toHex8(m)},toRgb:function(){return{r:ee(this._r),g:ee(this._g),b:ee(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+ee(this._r)+", "+ee(this._g)+", "+ee(this._b)+")":"rgba("+ee(this._r)+", "+ee(this._g)+", "+ee(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:ee(100*Be(this._r,255))+"%",g:ee(100*Be(this._g,255))+"%",b:ee(100*Be(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+ee(100*Be(this._r,255))+"%, "+ee(100*Be(this._g,255))+"%, "+ee(100*Be(this._b,255))+"%)":"rgba("+ee(100*Be(this._r,255))+"%, "+ee(100*Be(this._g,255))+"%, "+ee(100*Be(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(nn[Yt(this._r,this._g,this._b,!0)]||!1)},toFilter:function(m){var C="#"+Y(this._r,this._g,this._b,this._a),y=C,F=this._gradientType?"GradientType = 1, ":"";if(m){var $=V(m);y="#"+Y($._r,$._g,$._b,$._a)}return"progid:DXImageTransform.Microsoft.gradient("+F+"startColorstr="+C+",endColorstr="+y+")"},toString:function(m){var C=!!m;m=m||this._format;var y=!1;return!C&&this._a<1&&this._a>=0&&("hex"===m||"hex6"===m||"hex3"===m||"hex4"===m||"hex8"===m||"name"===m)?"name"===m&&0===this._a?this.toName():this.toRgbString():("rgb"===m&&(y=this.toRgbString()),"prgb"===m&&(y=this.toPercentageRgbString()),("hex"===m||"hex6"===m)&&(y=this.toHexString()),"hex3"===m&&(y=this.toHexString(!0)),"hex4"===m&&(y=this.toHex8String(!0)),"hex8"===m&&(y=this.toHex8String()),"name"===m&&(y=this.toName()),"hsl"===m&&(y=this.toHslString()),"hsv"===m&&(y=this.toHsvString()),y||this.toHexString())},clone:function(){return V(this.toString())},_applyModification:function(m,C){var y=m.apply(null,[this].concat([].slice.call(C)));return this._r=y._r,this._g=y._g,this._b=y._b,this.setAlpha(y._a),this},lighten:function(){return this._applyModification(J,arguments)},brighten:function(){return this._applyModification(B,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification($t,arguments)},saturate:function(){return this._applyModification(zn,arguments)},greyscale:function(){return this._applyModification(re,arguments)},spin:function(){return this._applyModification(X,arguments)},_applyCombination:function(m,C){return m.apply(null,[this].concat([].slice.call(C)))},analogous:function(){return this._applyCombination(it,arguments)},complement:function(){return this._applyCombination(ce,arguments)},monochromatic:function(){return this._applyCombination(Et,arguments)},splitcomplement:function(){return this._applyCombination(at,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(Je,arguments)}},V.fromRatio=function(m,C){if("object"==typeof m){var y={};for(var F in m)m.hasOwnProperty(F)&&(y[F]="a"===F?m[F]:hi(m[F]));m=y}return V(m,C)},V.equals=function(m,C){return!(!m||!C)&&V(m).toRgbString()==V(C).toRgbString()},V.random=function(){return V.fromRatio({r:_e(),g:_e(),b:_e()})},V.mix=function(m,C,y){y=0===y?0:y||50;var F=V(m).toRgb(),$=V(C).toRgb(),q=y/100;return V({r:($.r-F.r)*q+F.r,g:($.g-F.g)*q+F.g,b:($.b-F.b)*q+F.b,a:($.a-F.a)*q+F.a})},V.readability=function(m,C){var y=V(m),F=V(C);return(Ee.max(y.getLuminance(),F.getLuminance())+.05)/(Ee.min(y.getLuminance(),F.getLuminance())+.05)},V.isReadable=function(m,C,y){var $,q,F=V.readability(m,C);switch(q=!1,$=function Qn(m){var C,y;return"AA"!==(C=((m=m||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==C&&(C="AA"),"small"!==(y=(m.size||"small").toLowerCase())&&"large"!==y&&(y="small"),{level:C,size:y}}(y),$.level+$.size){case"AAsmall":case"AAAlarge":q=F>=4.5;break;case"AAlarge":q=F>=3;break;case"AAAsmall":q=F>=7}return q},V.mostReadable=function(m,C,y){var q,et,St,Mt,F=null,$=0;et=(y=y||{}).includeFallbackColors,St=y.level,Mt=y.size;for(var xn=0;xn<C.length;xn++)(q=V.readability(m,C[xn]))>$&&($=q,F=V(C[xn]));return V.isReadable(m,F,{level:St,size:Mt})||!et?F:(y.includeFallbackColors=!1,V.mostReadable(m,["#fff","#000"],y))};var tn=V.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},nn=V.hexNames=function Yn(m){var C={};for(var y in m)m.hasOwnProperty(y)&&(C[m[y]]=y);return C}(tn);function qn(m){return m=parseFloat(m),(isNaN(m)||m<0||m>1)&&(m=1),m}function Be(m,C){(function Kn(m){return"string"==typeof m&&-1!=m.indexOf(".")&&1===parseFloat(m)})(m)&&(m="100%");var y=function di(m){return"string"==typeof m&&-1!=m.indexOf("%")}(m);return m=he(C,dt(0,parseFloat(m))),y&&(m=parseInt(m*C,10)/100),Ee.abs(m-C)<1e-6?1:m%C/parseFloat(C)}function xt(m){return he(1,dt(0,m))}function lt(m){return parseInt(m,16)}function mn(m){return 1==m.length?"0"+m:""+m}function hi(m){return m<=1&&(m=100*m+"%"),m}function fr(m){return Ee.round(255*parseFloat(m)).toString(16)}function Bs(m){return lt(m)/255}var y,F,$,kn=(F="[\\s|\\(]+("+(y="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?",$="[\\s|\\(]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?",{CSS_UNIT:new RegExp(y),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+$),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+$),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+$),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Xn(m){return!!kn.CSS_UNIT.exec(m)}Wt.exports?Wt.exports=V:void 0!==(wt=function(){return V}.call(_t,We,_t,Wt))&&(Wt.exports=wt)}(Math)}},Kg={};function Ko(Wt){var _t=Kg[Wt];if(void 0!==_t)return _t.exports;var We=Kg[Wt]={exports:{}};return tS[Wt].call(We.exports,We,We.exports,Ko),We.exports}(()=>{"use strict";function Wt(n){return"function"==typeof n}let _t=!1;const We={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else _t&&console.log("RxJS: Back to a better error behavior. Thank you. <3");_t=n},get useDeprecatedSynchronousErrorHandling(){return _t}};function wt(n){setTimeout(()=>{throw n},0)}const Ee={closed:!0,next(n){},error(n){if(We.useDeprecatedSynchronousErrorHandling)throw n;wt(n)},complete(){}},Dt=Array.isArray||(n=>n&&"number"==typeof n.length);function Ft(n){return null!==n&&"object"==typeof n}const ee=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class he{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof he)e.remove(this);else if(null!==e)for(let o=0;o<e.length;++o)e[o].remove(this);if(Wt(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){t=o instanceof ee?dt(o.errors):[o]}}if(Dt(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(Ft(l))try{l.unsubscribe()}catch(c){t=t||[],c instanceof ee?t=t.concat(dt(c.errors)):t.push(c)}}}if(t)throw new ee(t)}add(t){let e=t;if(!t)return he.EMPTY;switch(typeof t){case"function":e=new he(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof he)){const s=e;e=new he,e._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof he){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[e]:r.push(e),e}remove(t){const e=this._subscriptions;if(e){const i=e.indexOf(t);-1!==i&&e.splice(i,1)}}}var n;function dt(n){return n.reduce((t,e)=>t.concat(e instanceof ee?e.errors:e),[])}he.EMPTY=((n=new he).closed=!0,n);const _e="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Ve extends he{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Ee;break;case 1:if(!t){this.destination=Ee;break}if("object"==typeof t){t instanceof Ve?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new me(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new me(this,t,e,i)}}[_e](){return this}static create(t,e,i){const r=new Ve(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class me extends Ve{constructor(t,e,i,r){super(),this._parentSubscriber=t;let s,o=this;Wt(e)?s=e:e&&(s=e.next,i=e.error,r=e.complete,e!==Ee&&(o=Object.create(e),Wt(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;We.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=We;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):wt(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;wt(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);We.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),We.useDeprecatedSynchronousErrorHandling)throw i;wt(i)}}__tryOrSetError(t,e,i){if(!We.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return We.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(wt(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const Ne="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ct(n){return n}let Y=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:s}=this,o=function Ze(n,t,e){if(n){if(n instanceof Ve)return n;if(n[_e])return n[_e]()}return n||t||e?new Ve(n,t,e):new Ve(Ee)}(e,i,r);if(o.add(s?s.call(o,this.source):this.source||We.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),We.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){We.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function we(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof Ve?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=$t(i))((r,s)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[Ne](){return this}pipe(...e){return 0===e.length?this:function rt(n){return 0===n.length?Ct:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=$t(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=t=>new n(t),n})();function $t(n){if(n||(n=We.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const re=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class J extends he{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class B extends Ve{constructor(t){super(t),this.destination=t}}let O=(()=>{class n extends Y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[_e](){return new B(this)}lift(e){const i=new X(this,this);return i.operator=e,i}next(e){if(this.closed)throw new re;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(e)}}error(e){if(this.closed)throw new re;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new re;this.isStopped=!0;const{observers:e}=this,i=e.length,r=e.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new re;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new re;return this.hasError?(e.error(this.thrownError),he.EMPTY):this.isStopped?(e.complete(),he.EMPTY):(this.observers.push(e),new J(this,e))}asObservable(){const e=new Y;return e.source=this,e}}return n.create=(t,e)=>new X(t,e),n})();class X extends O{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):he.EMPTY}}function ce(n){return n&&"function"==typeof n.schedule}function P(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Je(n,t))}}class Je{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new at(t,this.project,this.thisArg))}}class at extends Ve{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const it=n=>t=>{for(let e=0,i=n.length;e<i&&!t.closed;e++)t.next(n[e]);t.complete()},nn=function tn(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),xt=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function lt(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Kn=n=>{if(n&&"function"==typeof n[Ne])return(n=>t=>{const e=n[Ne]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(xt(n))return it(n);if(lt(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,wt),t))(n);if(n&&"function"==typeof n[nn])return(n=>t=>{const e=n[nn]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${Ft(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function hi(n,t){return new Y(e=>{const i=new he;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function pr(n,t){return t?function Xn(n,t){if(null!=n){if(function Bs(n){return n&&"function"==typeof n[Ne]}(n))return function di(n,t){return new Y(e=>{const i=new he;return i.add(t.schedule(()=>{const r=n[Ne]();i.add(r.subscribe({next(s){i.add(t.schedule(()=>e.next(s)))},error(s){i.add(t.schedule(()=>e.error(s)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(lt(n))return function mn(n,t){return new Y(e=>{const i=new he;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(xt(n))return hi(n,t);if(function kn(n){return n&&"function"==typeof n[nn]}(n)||"string"==typeof n)return function fr(n,t){if(!n)throw new Error("Iterable cannot be null");return new Y(e=>{const i=new he;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[nn](),i.add(t.schedule(function(){if(e.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(s),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof Y?n:new Y(Kn(n))}class Qn extends Ve{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class C extends Ve{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function F(n,t){if(!t.closed)return n instanceof Y?n.subscribe(t):Kn(n)(t)}function $(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe($((r,s)=>pr(n(r,s)).pipe(P((o,a)=>t(r,o,s,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new q(n,e)))}class q{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new et(t,this.project,this.concurrent))}}class et extends C{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(t){const e=new Qn(this),i=this.destination;i.add(e);const r=F(t,e);r!==e&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Mt(n=Number.POSITIVE_INFINITY){return $(Ct,n)}function xn(n,t){return t?hi(n,t):new Y(it(n))}function qt(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return ce(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof Y?n[0]:Mt(t)(xn(n,e))}function Gn(){return function(t){return t.lift(new nS(t))}}class nS{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new iS(t,i),s=e.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class iS extends Ve{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class rS extends Y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,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 he,t.add(this.source.subscribe(new oS(this.getSubject(),this))),t.closed&&(this._connection=null,t=he.EMPTY)),t}refCount(){return Gn()(this)}}const sS=(()=>{const n=rS.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class oS extends B{constructor(t,e){super(t),this.connectable=e}_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 e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class cS{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(t);return s.add(e.subscribe(r)),s}}function uS(){return new O}function Ai(){return n=>Gn()(function lS(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new cS(r,t));const s=Object.create(i,sS);return s.source=i,s.subjectFactory=r,s}}(uS)(n))}function ht(n){for(let t in n)if(n[t]===ht)return t;throw Error("Could not find renamed property on target object.")}function Zu(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function st(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(st).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Ju(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const dS=ht({__forward_ref__:ht});function gt(n){return n.__forward_ref__=gt,n.toString=function(){return st(this())},n}function Re(n){return Xg(n)?n():n}function Xg(n){return"function"==typeof n&&n.hasOwnProperty(dS)&&n.__forward_ref__===gt}class K extends Error{constructor(t,e){super(function ed(n,t){return`NG0${Math.abs(n)}${t?": "+t:""}`}(t,e)),this.code=t}}function xe(n){return"string"==typeof n?n:null==n?"":String(n)}function yn(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():xe(n)}function yl(n,t){const e=t?` in ${t}`:"";throw new K(-201,`No provider for ${yn(n)} found${e}`)}function Jn(n,t){null==n&&function ot(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function R(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}const mS=R;function qe(n){return{providers:n.providers||[],imports:n.imports||[]}}function td(n){return Qg(n,vl)||Qg(n,Jg)}function Qg(n,t){return n.hasOwnProperty(t)?n[t]:null}function Zg(n){return n&&(n.hasOwnProperty(nd)||n.hasOwnProperty(_S))?n[nd]:null}const vl=ht({\u0275prov:ht}),nd=ht({\u0275inj:ht}),Jg=ht({ngInjectableDef:ht}),_S=ht({ngInjectorDef:ht});var Te=(()=>((Te=Te||{})[Te.Default=0]="Default",Te[Te.Host=1]="Host",Te[Te.Self=2]="Self",Te[Te.SkipSelf=4]="SkipSelf",Te[Te.Optional=8]="Optional",Te))();let id;function Ir(n){const t=id;return id=n,t}function em(n,t,e){const i=td(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Te.Optional?null:void 0!==t?t:void yl(st(n),"Injector")}function kr(n){return{toString:n}.toString()}var Ti=(()=>((Ti=Ti||{})[Ti.OnPush=0]="OnPush",Ti[Ti.Default=1]="Default",Ti))(),Ii=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Ii||(Ii={})),Ii))();const bS="undefined"!=typeof globalThis&&globalThis,DS="undefined"!=typeof window&&window,CS="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ct=bS||"undefined"!=typeof global&&global||DS||CS,Hs={},ft=[],_l=ht({\u0275cmp:ht}),rd=ht({\u0275dir:ht}),sd=ht({\u0275pipe:ht}),tm=ht({\u0275mod:ht}),mr=ht({\u0275fac:ht}),Xo=ht({__NG_ELEMENT_ID__:ht});let ES=0;function rn(n){return kr(()=>{const e={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Ti.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||ft,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Ii.Emulated,id:"c",styles:n.styles||ft,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=ES++,i.inputs=sm(n.inputs,e),i.outputs=sm(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(nm):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(im):null,i})}function nm(n){return _n(n)||function Or(n){return n[rd]||null}(n)}function im(n){return function is(n){return n[sd]||null}(n)}const rm={};function Ke(n){return kr(()=>{const t={type:n.type,bootstrap:n.bootstrap||ft,declarations:n.declarations||ft,imports:n.imports||ft,exports:n.exports||ft,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(rm[n.id]=n.type),t})}function sm(n,t){if(null==n)return Hs;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,t&&(t[r]=s)}return e}const T=rn;function vn(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function _n(n){return n[_l]||null}function fi(n,t){const e=n[tm]||null;if(!e&&!0===t)throw new Error(`Type ${st(n)} does not have '\u0275mod' property.`);return e}function Xi(n){return Array.isArray(n)&&"object"==typeof n[1]}function Oi(n){return Array.isArray(n)&&!0===n[1]}function ld(n){return 0!=(8&n.flags)}function Cl(n){return 2==(2&n.flags)}function El(n){return 1==(1&n.flags)}function Fi(n){return null!==n.template}function IS(n){return 0!=(512&n[2])}function as(n,t){return n.hasOwnProperty(mr)?n[mr]:null}class am{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function hn(){return lm}function lm(n){return n.type.prototype.ngOnChanges&&(n.setInput=RS),FS}function FS(){const n=um(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===Hs)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function RS(n,t,e,i){const r=um(n)||function PS(n,t){return n[cm]=t}(n,{previous:Hs,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],l=o[a];s[a]=new am(l&&l.currentValue,t,o===Hs),n[i]=t}hn.ngInherit=!0;const cm="__ngSimpleChanges__";function um(n){return n[cm]||null}let fd;function pd(){return void 0!==fd?fd:"undefined"!=typeof document?document:void 0}function Bt(n){return!!n.listen}const dm={createRenderer:(n,t)=>pd()};function Kt(n){for(;Array.isArray(n);)n=n[0];return n}function xl(n,t){return Kt(t[n])}function ti(n,t){return Kt(t[n.index])}function gd(n,t){return n.data[t]}function Us(n,t){return n[t]}function ni(n,t){const e=t[n];return Xi(e)?e:e[0]}function hm(n){return 4==(4&n[2])}function md(n){return 128==(128&n[2])}function Fr(n,t){return null==t?null:n[t]}function fm(n){n[18]=0}function yd(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const Se={lFrame:Dm(null),bindingsEnabled:!0};function gm(){return Se.bindingsEnabled}function I(){return Se.lFrame.lView}function Xe(){return Se.lFrame.tView}function Ie(n){return Se.lFrame.contextLView=n,n[8]}function sn(){let n=mm();for(;null!==n&&64===n.type;)n=n.parent;return n}function mm(){return Se.lFrame.currentTNode}function Qi(n,t){const e=Se.lFrame;e.currentTNode=n,e.isParent=t}function vd(){return Se.lFrame.isParent}function _d(){Se.lFrame.isParent=!1}function Fn(){const n=Se.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Ws(){return Se.lFrame.bindingIndex++}function ZS(n,t){const e=Se.lFrame;e.bindingIndex=e.bindingRootIndex=n,wd(t)}function wd(n){Se.lFrame.currentDirectiveIndex=n}function _m(){return Se.lFrame.currentQueryIndex}function Dd(n){Se.lFrame.currentQueryIndex=n}function eM(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function wm(n,t,e){if(e&Te.SkipSelf){let r=t,s=n;for(;!(r=r.parent,null!==r||e&Te.Host||(r=eM(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,n=s}const i=Se.lFrame=bm();return i.currentTNode=t,i.lView=n,!0}function Ml(n){const t=bm(),e=n[1];Se.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function bm(){const n=Se.lFrame,t=null===n?null:n.child;return null===t?Dm(n):t}function Dm(n){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:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function Cm(){const n=Se.lFrame;return Se.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Em=Cm;function Al(){const n=Cm();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Rn(){return Se.lFrame.selectedIndex}function Rr(n){Se.lFrame.selectedIndex=n}function Rt(){const n=Se.lFrame;return gd(n.tView,n.selectedIndex)}function Tl(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e<i;e++){const s=n.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-e,o),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-e,l),c&&((n.viewHooks||(n.viewHooks=[])).push(e,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(e,u)}}function Il(n,t,e){xm(n,t,3,e)}function kl(n,t,e,i){(3&n[2])===e&&xm(n,t,e,i)}function Cd(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function xm(n,t,e,i){const s=null!=i?i:-1,o=t.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=i&&a>=i)break}else t[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(cM(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function cM(n,t,e,i){const r=e[i]<0,s=e[i+1],a=n[r?-e[i]:e[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class ta{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ol(n,t,e){const i=Bt(n);let r=0;for(;r<e.length;){const s=e[r];if("number"==typeof s){if(0!==s)break;r++;const o=e[r++],a=e[r++],l=e[r++];i?n.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=s,a=e[++r];xd(o)?i&&n.setProperty(t,o,a):i?n.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function Sm(n){return 3===n||4===n||6===n}function xd(n){return 64===n.charCodeAt(0)}function Fl(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?e=r:0===e||Mm(n,e,r,null,-1===e||2===e?t[++i]:null)}}return n}function Mm(n,t,e,i,r){let s=0,o=n.length;if(-1===t)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===t){o=-1;break}if(a>t){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,t),s=o+1),n.splice(s++,0,e),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function Am(n){return-1!==n}function Ys(n){return 32767&n}function qs(n,t){let e=function pM(n){return n>>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Sd=!0;function Rl(n){const t=Sd;return Sd=n,t}let gM=0;function ia(n,t){const e=Ad(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Md(i.data,n),Md(t,null),Md(i.blueprint,null));const r=Pl(n,t),s=n.injectorIndex;if(Am(r)){const o=Ys(r),a=qs(r,t),l=a[1].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=r,s}function Md(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Ad(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Pl(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Nl(n,t,e){!function mM(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Xo)&&(i=e[Xo]),null==i&&(i=e[Xo]=gM++);const r=255&i;t.data[n+(r>>5)]|=1<<r}(n,t,e)}function km(n,t,e){if(e&Te.Optional)return n;yl(t,"NodeInjector")}function Om(n,t,e,i){if(e&Te.Optional&&void 0===i&&(i=null),0==(e&(Te.Self|Te.Host))){const r=n[9],s=Ir(void 0);try{return r?r.get(t,i,e&Te.Optional):em(t,i,e&Te.Optional)}finally{Ir(s)}}return km(i,t,e)}function Fm(n,t,e,i=Te.Default,r){if(null!==n){const s=function wM(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(Xo)?n[Xo]:void 0;return"number"==typeof t?t>=0?255&t:vM:t}(e);if("function"==typeof s){if(!wm(t,n,i))return i&Te.Host?km(r,e,i):Om(t,e,i,r);try{const o=s(i);if(null!=o||i&Te.Optional)return o;yl(e)}finally{Em()}}else if("number"==typeof s){let o=null,a=Ad(n,t),l=-1,c=i&Te.Host?t[16][6]:null;for((-1===a||i&Te.SkipSelf)&&(l=-1===a?Pl(n,t):t[a+8],-1!==l&&Nm(i,!1)?(o=t[1],a=Ys(l),t=qs(l,t)):a=-1);-1!==a;){const u=t[1];if(Pm(s,a,u.data)){const d=_M(a,t,e,o,i,c);if(d!==Rm)return d}l=t[a+8],-1!==l&&Nm(i,t[1].data[a+8]===c)&&Pm(s,a,t)?(o=u,a=Ys(l),t=qs(l,t)):a=-1}}}return Om(t,e,i,r)}const Rm={};function vM(){return new Ks(sn(),I())}function _M(n,t,e,i,r,s){const o=t[1],a=o.data[n+8],u=Ll(a,o,e,null==i?Cl(a)&&Sd:i!=o&&0!=(3&a.type),r&Te.Host&&s===a);return null!==u?ra(t,o,u,a):Rm}function Ll(n,t,e,i,r){const s=n.providerIndexes,o=t.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&e===p||f>=l&&p.type===e)return f}if(r){const f=o[l];if(f&&Fi(f)&&f.type===e)return l}return null}function ra(n,t,e,i){let r=n[e];const s=t.data;if(function uM(n){return n instanceof ta}(r)){const o=r;o.resolving&&function hS(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new K(-200,`Circular dependency in DI detected for ${n}${e}`)}(yn(s[e]));const a=Rl(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Ir(o.injectImpl):null;wm(n,i,Te.Default);try{r=n[e]=o.factory(void 0,s,n,i),t.firstCreatePass&&e>=i.directiveStart&&function lM(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const o=lm(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==l&&Ir(l),Rl(a),o.resolving=!1,Em()}}return r}function Pm(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function Nm(n,t){return!(n&Te.Self||n&Te.Host&&t)}class Ks{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return Fm(this._tNode,this._lView,t,i,e)}}function se(n){return kr(()=>{const t=n.prototype.constructor,e=t[mr]||Td(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[mr]||Td(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Td(n){return Xg(n)?()=>{const t=Td(Re(n));return t&&t()}:as(n)}const Qs="__parameters__",Zs="__prop__metadata__";function Id(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}function Js(n,t,e){return kr(()=>{const i=Id(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Qs)?l[Qs]:Object.defineProperty(l,Qs,{value:[]})[Qs];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}function kd(n,t,e,i){return kr(()=>{const r=Id(t);function s(...o){if(this instanceof s)return r.apply(this,o),this;const a=new s(...o);return function l(c,u){const d=c.constructor,h=d.hasOwnProperty(Zs)?d[Zs]:Object.defineProperty(d,Zs,{value:{}})[Zs];h[u]=h.hasOwnProperty(u)&&h[u]||[],h[u].unshift(a),i&&i(c,u,...o)}}return e&&(s.prototype=Object.create(e.prototype)),s.prototype.ngMetadataName=n,s.annotationCls=s,s})}class ne{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=R({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}function mi(n,t){void 0===t&&(t=n);for(let e=0;e<n.length;e++){let i=n[e];Array.isArray(i)?(t===n&&(t=n.slice(0,e)),mi(i,t)):t!==n&&t.push(i)}return t}function Zi(n,t){n.forEach(e=>Array.isArray(e)?Zi(e,t):t(e))}function Vm(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Bl(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function aa(n,t){const e=[];for(let i=0;i<n;i++)e.push(t);return e}function ii(n,t,e){let i=eo(n,t);return i>=0?n[1|i]=e:(i=~i,function EM(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function Fd(n,t){const e=eo(n,t);if(e>=0)return n[1|e]}function eo(n,t){return function jm(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<e];if(t===o)return s<<e;o>t?r=s:i=s+1}return~(r<<e)}(n,t,1)}const la={},Pd="__NG_DI_FLAG__",jl="ngTempTokenPath",kM=/\n/gm,zm="__source",FM=ht({provide:String,useValue:ht});let ca;function Gm(n){const t=ca;return ca=n,t}function RM(n,t=Te.Default){if(void 0===ca)throw new K(203,"");return null===ca?em(n,void 0,t):ca.get(n,t&Te.Optional?null:void 0,t)}function S(n,t=Te.Default){return(function wS(){return id}()||RM)(Re(n),t)}const to=S;function Nd(n){const t=[];for(let e=0;e<n.length;e++){const i=Re(n[e]);if(Array.isArray(i)){if(0===i.length)throw new K(900,"");let r,s=Te.Default;for(let o=0;o<i.length;o++){const a=i[o],l=PM(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}t.push(S(r,s))}else t.push(S(i))}return t}function ua(n,t){return n[Pd]=t,n.prototype[Pd]=t,n}function PM(n){return n[Pd]}const _r=ua(Js("Inject",n=>({token:n})),-1),ls=ua(Js("Optional"),8),da=ua(Js("SkipSelf"),4);var ri=(()=>((ri=ri||{})[ri.Important=1]="Important",ri[ri.DashCase=2]="DashCase",ri))();const Zm="__ngContext__";function Mn(n,t){n[Zm]=t}function Bd(n){const t=function fa(n){return n[Zm]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function jd(n,t){return undefined(n,t)}function pa(n){const t=n[3];return Oi(t)?t[3]:t}function $d(n){return sy(n[13])}function zd(n){return sy(n[4])}function sy(n){for(;null!==n&&!Oi(n);)n=n[4];return n}function io(n,t,e,i,r){if(null!=i){let s,o=!1;Oi(i)?s=i:Xi(i)&&(o=!0,i=i[0]);const a=Kt(i);0===n&&null!==e?null==r?dy(t,e,a):cs(t,e,a,r||null,!0):1===n&&null!==e?cs(t,e,a,r||null,!0):2===n?function Xd(n,t,e){const i=zl(n,t);i&&function hA(n,t,e,i){Bt(n)?n.removeChild(t,e,i):t.removeChild(e)}(n,i,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function gA(n,t,e,i,r){const s=e[7];s!==Kt(e)&&io(t,n,i,s,r);for(let a=10;a<e.length;a++){const l=e[a];ga(l[1],l,n,t,i,s)}}(t,n,s,e,r)}}function Ud(n,t,e){if(Bt(n))return n.createElement(t,e);{const i=null!==e?function BS(n){const t=n.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(e):null;return null===i?n.createElement(t):n.createElementNS(i,t)}}function ay(n,t){const e=n[9],i=e.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,yd(r,-1)),e.splice(i,1)}function Wd(n,t){if(n.length<=10)return;const e=10+t,i=n[e];if(i){const r=i[17];null!==r&&r!==n&&ay(r,i),t>0&&(n[e-1][4]=i[4]);const s=Bl(n,10+t);!function rA(n,t){ga(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function ly(n,t){if(!(256&t[2])){const e=t[11];Bt(e)&&e.destroyNode&&ga(n,t,e,3,null,null),function aA(n){let t=n[13];if(!t)return Yd(n[1],n);for(;t;){let e=null;if(Xi(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Xi(t)&&Yd(t[1],t),t=t[3];null===t&&(t=n),Xi(t)&&Yd(t[1],t),e=t&&t[4]}t=e}}(t)}}function Yd(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function dA(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i<e.length;i+=2){const r=t[e[i]];if(!(r instanceof ta)){const s=e[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,t),function uA(n,t){const e=n.cleanup,i=t[7];let r=-1;if(null!==e)for(let s=0;s<e.length-1;s+=2)if("string"==typeof e[s]){const o=e[s+1],a="function"==typeof o?o(t):Kt(t[o]),l=i[r=e[s+2]],c=e[s+3];"boolean"==typeof c?a.removeEventListener(e[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=e[s+1]];e[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();t[7]=null}}(n,t),1===t[1].type&&Bt(t[11])&&t[11].destroy();const e=t[17];if(null!==e&&Oi(t[3])){e!==t[3]&&ay(e,t);const i=t[19];null!==i&&i.detachView(n)}}}function cy(n,t,e){return function uy(n,t,e){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return e[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===Ii.None||r===Ii.Emulated)return null}return ti(i,e)}(n,t.parent,e)}function cs(n,t,e,i,r){Bt(n)?n.insertBefore(t,e,i,r):t.insertBefore(e,i,r)}function dy(n,t,e){Bt(n)?n.appendChild(t,e):t.appendChild(e)}function hy(n,t,e,i,r){null!==i?cs(n,t,e,i,r):dy(n,t,e)}function zl(n,t){return Bt(n)?n.parentNode(t):t.parentNode}function fy(n,t,e){return gy(n,t,e)}let Wl,Yl,gy=function py(n,t,e){return 40&n.type?ti(n,e):null};function Gl(n,t,e,i){const r=cy(n,i,t),s=t[11],a=fy(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)hy(s,r,e[l],a,!1);else hy(s,r,e,a,!1)}function Ul(n,t){if(null!==t){const e=t.type;if(3&e)return ti(t,n);if(4&e)return Kd(-1,n[t.index]);if(8&e){const i=t.child;if(null!==i)return Ul(n,i);{const r=n[t.index];return Oi(r)?Kd(-1,r):Kt(r)}}if(32&e)return jd(t,n)()||Kt(n[t.index]);{const i=yy(n,t);return null!==i?Array.isArray(i)?i[0]:Ul(pa(n[16]),i):Ul(n,t.next)}}return null}function yy(n,t){return null!==t?n[16][6].projection[t.projection]:null}function Kd(n,t){const e=10+n+1;if(e<t.length){const i=t[e],r=i[1].firstChild;if(null!==r)return Ul(i,r)}return t[7]}function Qd(n,t,e,i,r,s,o){for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===t&&(a&&Mn(Kt(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)Qd(n,t,e.child,i,r,s,!1),io(t,n,r,a,s);else if(32&l){const c=jd(e,i);let u;for(;u=c();)io(t,n,r,u,s);io(t,n,r,a,s)}else 16&l?vy(n,t,i,e,r,s):io(t,n,r,a,s);e=o?e.projectionNext:e.next}}function ga(n,t,e,i,r,s){Qd(e,i,n.firstChild,t,r,s,!1)}function vy(n,t,e,i,r,s){const o=e[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)io(t,n,r,l[c],s);else Qd(n,t,l,o[3],r,s,!0)}function _y(n,t,e){Bt(n)?n.setAttribute(t,"style",e):t.style.cssText=e}function Zd(n,t,e){Bt(n)?""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e):t.className=e}function us(n){var t;return(null===(t=function Jd(){if(void 0===Wl&&(Wl=null,ct.trustedTypes))try{Wl=ct.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Wl}())||void 0===t?void 0:t.createHTML(n))||n}function wy(n){var t;return(null===(t=function eh(){if(void 0===Yl&&(Yl=null,ct.trustedTypes))try{Yl=ct.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Yl}())||void 0===t?void 0:t.createHTML(n))||n}class ds{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class wA extends ds{getTypeName(){return"HTML"}}class bA extends ds{getTypeName(){return"Style"}}class DA extends ds{getTypeName(){return"Script"}}class CA extends ds{getTypeName(){return"URL"}}class EA extends ds{getTypeName(){return"ResourceURL"}}function si(n){return n instanceof ds?n.changingThisBreaksApplicationSecurity:n}function Ji(n,t){const e=Cy(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function Cy(n){return n instanceof ds&&n.getTypeName()||null}class IA{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(us(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class kA{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=us(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=us(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const o=e.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&t.removeAttribute(o)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const FA=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,RA=/^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 ma(n){return(n=String(n)).match(FA)||n.match(RA)?n:"unsafe:"+n}function xy(n){return(n=String(n)).split(",").map(t=>ma(t.trim())).join(", ")}function er(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function ya(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const Sy=er("area,br,col,hr,img,wbr"),My=er("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ay=er("rp,rt"),th=ya(Sy,ya(My,er("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")),ya(Ay,er("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")),ya(Ay,My)),nh=er("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ih=er("srcset"),Ty=ya(nh,ih,er("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"),er("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")),PA=er("script,style,template");class NA{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!th.hasOwnProperty(e))return this.sanitizedSomething=!0,!PA.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!Ty.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;nh[a]&&(l=ma(l)),ih[a]&&(l=xy(l)),this.buf.push(" ",o,'="',Iy(l),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();th.hasOwnProperty(e)&&!Sy.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Iy(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&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 e}}const LA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,VA=/([^\#-~ |!])/g;function Iy(n){return n.replace(/&/g,"&amp;").replace(LA,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(VA,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ql;function ky(n,t){let e=null;try{ql=ql||function Ey(n){const t=new kA(n);return function OA(){try{return!!(new window.DOMParser).parseFromString(us(""),"text/html")}catch(n){return!1}}()?new IA(t):t}(n);let i=t?String(t):"";e=ql.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=e.innerHTML,e=ql.getInertBodyElement(i)}while(i!==s);return us((new NA).sanitizeChildren(rh(e)||e))}finally{if(e){const i=rh(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function rh(n){return"content"in n&&function BA(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var tt=(()=>((tt=tt||{})[tt.NONE=0]="NONE",tt[tt.HTML=1]="HTML",tt[tt.STYLE=2]="STYLE",tt[tt.SCRIPT=3]="SCRIPT",tt[tt.URL=4]="URL",tt[tt.RESOURCE_URL=5]="RESOURCE_URL",tt))();function Kl(n){const t=function va(){const n=I();return n&&n[12]}();return t?wy(t.sanitize(tt.HTML,n)||""):Ji(n,"HTML")?wy(si(n)):ky(pd(),xe(n))}function oh(n){return n.ngOriginalError}function KA(n,...t){n.error(...t)}class Nr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=function qA(n){return n&&n.ngErrorLogger||KA}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&oh(t);for(;e&&oh(e);)e=oh(e);return e||null}}const nT=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ct))();function tr(n){return n instanceof Function?n():n}function Py(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}e=r+1}}const Ny="ng-template";function oT(n,t,e){let i=0;for(;i<n.length;){let r=n[i++];if(e&&"class"===r){if(r=n[i],-1!==Py(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function Ly(n){return 4===n.type&&n.value!==Ny}function aT(n,t,e){return t===(4!==n.type||e?n.value:Ny)}function lT(n,t,e){let i=4;const r=n.attrs||[],s=function dT(n){for(let t=0;t<n.length;t++)if(Sm(n[t]))return t;return n.length}(r);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!aT(n,l,e)||""===l&&1===t.length){if(Ri(i))return!1;o=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==n.attrs){if(!oT(n.attrs,c,e)){if(Ri(i))return!1;o=!0}continue}const d=cT(8&i?"class":l,r,Ly(n),e);if(-1===d){if(Ri(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==Py(f,c,0)||2&i&&c!==h){if(Ri(i))return!1;o=!0}}}}else{if(!o&&!Ri(i)&&!Ri(l))return!1;if(o&&Ri(l))continue;o=!1,i=l|1&i}}return Ri(i)||o}function Ri(n){return 0==(1&n)}function cT(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let s=!1;for(;r<t.length;){const o=t[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=t[++r];for(;"string"==typeof a;)a=t[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function hT(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const i=n[e];if("number"==typeof i)return-1;if(i===t)return e;e++}return-1}(t,n)}function Vy(n,t,e=!1){for(let i=0;i<t.length;i++)if(lT(n,t[i],e))return!0;return!1}function fT(n,t){e:for(let e=0;e<t.length;e++){const i=t[e];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function By(n,t){return n?":not("+t.trim()+")":t}function pT(n){let t=n[0],e=1,i=2,r="",s=!1;for(;e<n.length;){let o=n[e];if("string"==typeof o)if(2&i){const a=n[++e];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Ri(o)&&(t+=By(s,r),r=""),i=o,s=s||!Ri(i);e++}return""!==r&&(t+=By(s,r)),t}const Me={};function te(n){Hy(Xe(),I(),Rn()+n,!1)}function Hy(n,t,e,i){if(!i)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&Il(t,s,e)}else{const s=n.preOrderHooks;null!==s&&kl(t,s,0,e)}Rr(e)}function Xl(n,t){return n<<17|t<<2}function Pi(n){return n>>17&32767}function ah(n){return 2|n}function wr(n){return(131068&n)>>2}function lh(n,t){return-131069&n|t<<2}function ch(n){return 1|n}function Qy(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const r=e[i],s=e[i+1];if(-1!==s){const o=n.data[s];Dd(r),o.contentQueries(2,t[s],s)}}}function _a(n,t,e,i,r,s,o,a,l,c){const u=t.blueprint.slice();return u[0]=r,u[2]=140|i,fm(u),u[3]=u[15]=n,u[8]=e,u[10]=o||n&&n[10],u[11]=a||n&&n[11],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==t.type?n[16]:u,u}function so(n,t,e,i,r){let s=n.data[t];if(null===s)s=function vh(n,t,e,i,r){const s=mm(),o=vd(),l=n.data[t]=function OT(n,t,e,i,r,s){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,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,o?s:s&&s.parent,e,t,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,t,e,i,r),function QS(){return Se.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=e,s.value=i,s.attrs=r;const o=function ea(){const n=Se.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Qi(s,!0),s}function oo(n,t,e,i){if(0===e)return-1;const r=t.length;for(let s=0;s<e;s++)t.push(i),n.blueprint.push(i),n.data.push(null);return r}function wa(n,t,e){Ml(t);try{const i=n.viewQuery;null!==i&&Mh(1,i,e);const r=n.template;null!==r&&Zy(n,t,r,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&Qy(n,t),n.staticViewQueries&&Mh(2,n.viewQuery,e);const s=n.components;null!==s&&function TT(n,t){for(let e=0;e<t.length;e++)XT(n,t[e])}(t,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{t[2]&=-5,Al()}}function ao(n,t,e,i){const r=t[2];if(256!=(256&r)){Ml(t);try{fm(t),function ym(n){return Se.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&Zy(n,t,e,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&Il(t,c,null)}else{const c=n.preOrderHooks;null!==c&&kl(t,c,0,null),Cd(t,0)}if(function qT(n){for(let t=$d(n);null!==t;t=zd(t)){if(!t[2])continue;const e=t[9];for(let i=0;i<e.length;i++){const r=e[i],s=r[3];0==(1024&r[2])&&yd(s,1),r[2]|=1024}}}(t),function YT(n){for(let t=$d(n);null!==t;t=zd(t))for(let e=10;e<t.length;e++){const i=t[e],r=i[1];md(i)&&ao(r,i,r.template,i[8])}}(t),null!==n.contentQueries&&Qy(n,t),o){const c=n.contentCheckHooks;null!==c&&Il(t,c)}else{const c=n.contentHooks;null!==c&&kl(t,c,1),Cd(t,1)}!function MT(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)Rr(~r);else{const s=r,o=e[++i],a=e[++i];ZS(o,s),a(2,t[s])}}}finally{Rr(-1)}}(n,t);const a=n.components;null!==a&&function AT(n,t){for(let e=0;e<t.length;e++)KT(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&Mh(2,l,i),o){const c=n.viewCheckHooks;null!==c&&Il(t,c)}else{const c=n.viewHooks;null!==c&&kl(t,c,2),Cd(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[2]&=-73,1024&t[2]&&(t[2]&=-1025,yd(t[3],-1))}finally{Al()}}}function IT(n,t,e,i){const r=t[10],o=hm(t);try{!o&&r.begin&&r.begin(),o&&wa(n,t,i),ao(n,t,e,i)}finally{!o&&r.end&&r.end()}}function Zy(n,t,e,i,r){const s=Rn(),o=2&i;try{Rr(-1),o&&t.length>20&&Hy(n,t,20,!1),e(i,r)}finally{Rr(s)}}function _h(n,t,e){!gm()||(function BT(n,t,e,i){const r=e.directiveStart,s=e.directiveEnd;n.firstCreatePass||ia(e,t),Mn(i,t);const o=e.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Fi(l);c&&GT(t,e,l);const u=ra(t,n,a,e);Mn(u,t),null!==o&&UT(0,a-r,u,l,0,o),c&&(ni(e.index,t)[8]=u)}}(n,t,e,ti(e,t)),128==(128&e.flags)&&function HT(n,t,e){const i=e.directiveStart,r=e.directiveEnd,o=e.index,a=function JS(){return Se.lFrame.currentDirectiveIndex}();try{Rr(o);for(let l=i;l<r;l++){const c=n.data[l],u=t[l];wd(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&av(c,u)}}finally{Rr(-1),wd(a)}}(n,t,e))}function wh(n,t,e=ti){const i=t.localNames;if(null!==i){let r=t.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?e(t,n):n[o];n[r++]=a}}}function ev(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=Jl(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function Jl(n,t,e,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function kT(n,t){const e=[];for(let i=0;i<t;i++)e.push(i<n?null:Me);return e}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,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 o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function iv(n,t,e,i){const r=fv(t);null===e?r.push(i):(r.push(e),n.firstCreatePass&&pv(n).push(i,r.length-1))}function rv(n,t,e){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(t,r):e[i]=[t,r]}return e}function bh(n,t,e,i){let r=!1;if(gm()){const s=function jT(n,t,e){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Vy(e,o.selectors,!1)&&(r||(r=[]),Nl(ia(e,t),n,o.type),Fi(o)?(lv(n,e),r.unshift(o)):r.push(o))}return r}(n,t,e),o=null===i?null:{"":-1};if(null!==s){r=!0,cv(e,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=oo(n,t,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];e.mergedAttrs=Fl(e.mergedAttrs,d.hostAttrs),uv(n,e,t,c,d),zT(c,d,o),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function FT(n,t){const i=t.directiveEnd,r=n.data,s=t.attrs,o=[];let a=null,l=null;for(let c=t.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||Ly(t)?null:WT(d,s);o.push(h),a=rv(d,c,a),l=rv(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=l}(n,e)}o&&function $T(n,t,e){if(t){const i=n.localNames=[];for(let r=0;r<t.length;r+=2){const s=e[t[r+1]];if(null==s)throw new K(-301,!1);i.push(t[r],s)}}}(e,i,o)}return e.mergedAttrs=Fl(e.mergedAttrs,e.attrs),r}function ov(n,t,e,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~t.index;(function VT(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function av(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function lv(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function zT(n,t,e){if(e){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)e[t.exportAs[i]]=n;Fi(t)&&(e[""]=n)}}function cv(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function uv(n,t,e,i,r){n.data[i]=r;const s=r.factory||(r.factory=as(r.type)),o=new ta(s,Fi(r),null);n.blueprint[i]=o,e[i]=o,ov(n,t,0,i,oo(n,e,r.hostVars,Me),r)}function GT(n,t,e){const i=ti(t,n),r=ev(e),s=n[10],o=ec(n,_a(n,r,null,e.onPush?64:16,i,t,s,s.createRenderer(i,e),null,null));n[t.index]=o}function nr(n,t,e,i,r,s){const o=ti(n,t);!function Dh(n,t,e,i,r,s,o){if(null==s)Bt(n)?n.removeAttribute(t,r,e):t.removeAttribute(r);else{const a=null==o?xe(s):o(s,i||"",r);Bt(n)?n.setAttribute(t,r,a,e):e?t.setAttributeNS(e,r,a):t.setAttribute(r,a)}}(t[11],o,s,n.value,e,i,r)}function UT(n,t,e,i,r,s){const o=s[t];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(e,d,c,u):e[u]=d}}}function WT(n,t){let e=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===e&&(e=[]),e.push(r,n[r],t[i+1])),i+=2}else i+=2;else i+=4}return e}function dv(n,t,e,i){return new Array(n,!0,!1,t,null,0,i,e,null,null)}function KT(n,t){const e=ni(t,n);if(md(e)){const i=e[1];80&e[2]?ao(i,e,i.template,e[8]):e[5]>0&&Ch(e)}}function Ch(n){for(let i=$d(n);null!==i;i=zd(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];ao(o,s,o.template,s[8])}else s[5]>0&&Ch(s)}const e=n[1].components;if(null!==e)for(let i=0;i<e.length;i++){const r=ni(e[i],n);md(r)&&r[5]>0&&Ch(r)}}function XT(n,t){const e=ni(t,n),i=e[1];(function QT(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(i,e),wa(i,e,e[8])}function ec(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function Eh(n){for(;n;){n[2]|=64;const t=pa(n);if(IS(n)&&!t)return n;n=t}return null}function hv(n){!function xh(n){for(let t=0;t<n.components.length;t++){const e=n.components[t],i=Bd(e),r=i[1];IT(r,i,r.template,e)}}(n[8])}function Mh(n,t,e){Dd(0),t(n,e)}const JT=(()=>Promise.resolve(null))();function fv(n){return n[7]||(n[7]=[])}function pv(n){return n.cleanup||(n.cleanup=[])}function mv(n,t){const e=n[9],i=e?e.get(Nr,null):null;i&&i.handleError(t)}function yv(n,t,e,i,r){for(let s=0;s<e.length;){const o=e[s++],a=e[s++],l=t[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function br(n,t,e){const i=xl(t,n);!function oy(n,t,e){Bt(n)?n.setValue(t,e):t.textContent=e}(n[11],i,e)}function tc(n,t,e){let i=e?n.styles:null,r=e?n.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const a=t[o];"number"==typeof a?s=a:1==s?r=Ju(r,a):2==s&&(i=Ju(i,a+": "+t[++o]+";"))}e?n.styles=i:n.stylesWithoutHost=i,e?n.classes=r:n.classesWithoutHost=r}const Ah=new ne("INJECTOR",-1);class vv{get(t,e=la){if(e===la){const i=new Error(`NullInjectorError: No provider for ${st(t)}!`);throw i.name="NullInjectorError",i}return e}}const Th=new ne("Set Injector scope."),ba={},nI={};let Ih;function _v(){return void 0===Ih&&(Ih=new vv),Ih}function wv(n,t=null,e=null,i){const r=bv(n,t,e,i);return r._resolveInjectorDefTypes(),r}function bv(n,t=null,e=null,i){return new iI(n,e,t||_v(),i)}class iI{constructor(t,e,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&Zi(e,a=>this.processProvider(a,t,e)),Zi([t],a=>this.processInjectorType(a,[],s)),this.records.set(Ah,lo(void 0,this));const o=this.records.get(Th);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:st(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,e=la,i=Te.Default){this.assertNotDestroyed();const r=Gm(this),s=Ir(void 0);try{if(!(i&Te.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function dI(n){return"function"==typeof n||"object"==typeof n&&n instanceof ne}(t)&&td(t);a=l&&this.injectableDefInScope(l)?lo(kh(t),ba):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&Te.Self?_v():this.parent).get(t,e=i&Te.Optional&&e===la?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[jl]=o[jl]||[]).unshift(st(t)),r)throw o;return function NM(n,t,e,i){const r=n[jl];throw t[zm]&&r.unshift(t[zm]),n.message=function LM(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=st(t);if(Array.isArray(t))r=t.map(st).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):st(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(kM,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[jl]=null,n}(o,t,"R3InjectorError",this.source)}throw o}finally{Ir(s),Gm(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(st(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new K(205,!1)}processInjectorType(t,e,i){if(!(t=Re(t)))return!1;let r=Zg(t);const s=null==r&&t.ngModule||void 0,o=void 0===s?t:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=Zg(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{Zi(r.imports,d=>{this.processInjectorType(d,e,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];Zi(f,p=>this.processProvider(p,h,f||ft))}}this.injectorDefTypes.add(o);const l=as(o)||(()=>new o);this.records.set(o,lo(l,ba));const c=r.providers;if(null!=c&&!a){const u=t;Zi(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let r=co(t=Re(t))?t:Re(t&&t.provide);const s=function sI(n,t,e){return Cv(n)?lo(void 0,n.useValue):lo(function Dv(n,t,e){let i;if(co(n)){const r=Re(n);return as(r)||kh(r)}if(Cv(n))i=()=>Re(n.useValue);else if(function aI(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Nd(n.deps||[]));else if(function oI(n){return!(!n||!n.useExisting)}(n))i=()=>S(Re(n.useExisting));else{const r=Re(n&&(n.useClass||n.provide));if(!function cI(n){return!!n.deps}(n))return as(r)||kh(r);i=()=>new r(...Nd(n.deps))}return i}(n),ba)}(t);if(co(t)||!0!==t.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=lo(void 0,ba,!0),o.factory=()=>Nd(o.multi),this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,s)}hydrate(t,e){return e.value===ba&&(e.value=nI,e.value=e.factory()),"object"==typeof e.value&&e.value&&function uI(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=Re(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function kh(n){const t=td(n),e=null!==t?t.factory:as(n);if(null!==e)return e;if(n instanceof ne)throw new K(204,!1);if(n instanceof Function)return function rI(n){const t=n.length;if(t>0)throw aa(t,"?"),new K(204,!1);const e=function yS(n){const t=n&&(n[vl]||n[Jg]);if(t){const e=function vS(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" 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 "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new K(204,!1)}function lo(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function Cv(n){return null!==n&&"object"==typeof n&&FM in n}function co(n){return"function"==typeof n}let wn=(()=>{class n{static create(e,i){var r;if(Array.isArray(e))return wv({name:""},i,e,"");{const s=null!==(r=e.name)&&void 0!==r?r:"";return wv({name:s},e.parent,e.providers,s)}}}return n.THROW_IF_NOT_FOUND=la,n.NULL=new vv,n.\u0275prov=R({token:n,providedIn:"any",factory:()=>S(Ah)}),n.__NG_ELEMENT_ID__=-1,n})();function _I(n,t){Tl(Bd(n)[1],sn())}function H(n){let t=function Pv(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(Fi(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new K(903,"");r=t.\u0275dir}if(r){if(e){i.push(r);const o=n;o.inputs=Rh(n.inputs),o.declaredInputs=Rh(n.declaredInputs),o.outputs=Rh(n.outputs);const a=r.hostBindings;a&&CI(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&bI(n,l),c&&DI(n,c),Zu(n.inputs,r.inputs),Zu(n.declaredInputs,r.declaredInputs),Zu(n.outputs,r.outputs),Fi(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===H&&(e=!1)}}t=Object.getPrototypeOf(t)}!function wI(n){let t=0,e=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Fl(r.hostAttrs,e=Fl(e,r.hostAttrs))}}(i)}function Rh(n){return n===Hs?{}:n===ft?[]:n}function bI(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function DI(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,s)=>{t(i,r,s),e(i,r,s)}:t}function CI(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let nc=null;function uo(){if(!nc){const n=ct.Symbol;if(n&&n.iterator)nc=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const i=t[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(nc=i)}}}return nc}function Da(n){return!!Ph(n)&&(Array.isArray(n)||!(n instanceof Map)&&uo()in n)}function Ph(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function ir(n,t,e){return n[t]=e}function Ca(n,t){return n[t]}function An(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function hs(n,t,e,i){const r=An(n,t,e);return An(n,t+1,i)||r}function zt(n,t,e,i){const r=I();return An(r,Ws(),t)&&(Xe(),nr(Rt(),r,n,t,e,i)),zt}function pe(n,t,e,i,r,s,o,a){const l=I(),c=Xe(),u=n+20,d=c.firstCreatePass?function II(n,t,e,i,r,s,o,a,l){const c=t.consts,u=so(t,n,4,o||null,Fr(c,a));bh(t,e,u,Fr(c,l)),Tl(t,u);const d=u.tViews=Jl(2,u,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,e,i,r,s,o):c.data[u];Qi(d,!1);const h=l[11].createComment("");Gl(c,l,h,d),Mn(h,l),ec(l,l[u]=dv(h,l,h,d)),El(d)&&_h(c,l,d),null!=o&&wh(l,d,a)}function fn(n){return Us(function XS(){return Se.lFrame.contextLView}(),20+n)}function g(n,t=Te.Default){const e=I();return null===e?S(n,t):Fm(sn(),e,Re(n),t)}function L(n,t,e){const i=I();return An(i,Ws(),t)&&function oi(n,t,e,i,r,s,o,a){const l=ti(t,e);let u,c=t.inputs;!a&&null!=c&&(u=c[i])?(yv(n,e,u,i,r),Cl(t)&&function PT(n,t){const e=ni(t,n);16&e[2]||(e[2]|=64)}(e,t.index)):3&t.type&&(i=function RT(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,t.value||"",i):r,Bt(s)?s.setProperty(l,i,r):xd(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}(Xe(),Rt(),i,n,t,i[11],e,!1),L}function Hh(n,t,e,i,r){const o=r?"class":"style";yv(n,e,t.inputs[o],o,i)}function oe(n,t,e,i){const r=I(),s=Xe(),o=20+n,a=r[11],l=r[o]=Ud(a,t,function aM(){return Se.lFrame.currentNamespace}()),c=s.firstCreatePass?function QI(n,t,e,i,r,s,o){const a=t.consts,c=so(t,n,2,r,Fr(a,s));return bh(t,e,c,Fr(a,o)),null!==c.attrs&&tc(c,c.attrs,!1),null!==c.mergedAttrs&&tc(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,s,r,0,t,e,i):s.data[o];Qi(c,!0);const u=c.mergedAttrs;null!==u&&Ol(a,l,u);const d=c.classes;null!==d&&Zd(a,l,d);const h=c.styles;return null!==h&&_y(a,l,h),64!=(64&c.flags)&&Gl(s,r,l,c),0===function US(){return Se.lFrame.elementDepthCount}()&&Mn(l,r),function WS(){Se.lFrame.elementDepthCount++}(),El(c)&&(_h(s,r,c),function Jy(n,t,e){if(ld(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,e[s],s)}}}(s,c,r)),null!==i&&wh(r,c),oe}function ye(){let n=sn();vd()?_d():(n=n.parent,Qi(n,!1));const t=n;!function YS(){Se.lFrame.elementDepthCount--}();const e=Xe();return e.firstCreatePass&&(Tl(e,n),ld(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function hM(n){return 0!=(16&n.flags)}(t)&&Hh(e,t,I(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function fM(n){return 0!=(32&n.flags)}(t)&&Hh(e,t,I(),t.stylesWithoutHost,!1),ye}function Xt(n,t,e,i){return oe(n,t,e,i),ye(),Xt}function Nn(){return I()}function sc(n){return!!n&&"function"==typeof n.then}function i_(n){return!!n&&"function"==typeof n.subscribe}const r_=i_;function Le(n,t,e,i){const r=I(),s=Xe(),o=sn();return function o_(n,t,e,i,r,s,o,a){const l=El(i),u=n.firstCreatePass&&pv(n),d=t[8],h=fv(t);let f=!0;if(3&i.type||a){const D=ti(i,t),E=a?a(D):D,w=h.length,M=a?k=>a(Kt(k[i.index])):i.index;if(Bt(e)){let k=null;if(!a&&l&&(k=function JI(n,t,e,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===e&&r[s+1]===i){const a=t[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,t,r,i.index)),null!==k)(k.__ngLastListenerFn__||k).__ngNextListenerFn__=s,k.__ngLastListenerFn__=s,f=!1;else{s=zh(i,t,d,s,!1);const j=e.listen(E,r,s);h.push(s,j),u&&u.push(r,M,w,w+1)}}else s=zh(i,t,d,s,!0),E.addEventListener(r,s,o),h.push(s),u&&u.push(r,M,w,o)}else s=zh(i,t,d,s,!1);const p=i.outputs;let v;if(f&&null!==p&&(v=p[r])){const D=v.length;if(D)for(let E=0;E<D;E+=2){const be=t[v[E]][v[E+1]].subscribe(s),Fe=h.length;h.push(s,be),u&&u.push(r,i.index,Fe,-(Fe+1))}}}(s,r,r[11],o,n,t,!!e,i),Le}function a_(n,t,e,i){try{return!1!==e(i)}catch(r){return mv(n,r),!1}}function zh(n,t,e,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?ni(n.index,t):t;0==(32&t[2])&&Eh(a);let l=a_(t,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=a_(t,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function G(n=1){return function tM(n){return(Se.lFrame.contextLView=function nM(n,t){for(;n>0;)t=t[15],n--;return t}(n,Se.lFrame.contextLView))[8]}(n)}function ek(n,t){let e=null;const i=function uT(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r<t.length;r++){const s=t[r];if("*"!==s){if(null===i?Vy(n,s,!0):fT(i,s))return r}else e=r}return e}function Gh(n){const t=I()[16][6];if(!t.projection){const i=t.projection=aa(n?n.length:1,null),r=i.slice();let s=t.child;for(;null!==s;){const o=n?ek(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function Uh(n,t=0,e){const i=I(),r=Xe(),s=so(r,20+n,16,null,e||null);null===s.projection&&(s.projection=t),_d(),64!=(64&s.flags)&&function pA(n,t,e){vy(t[11],0,t,e,cy(n,e,t),fy(e.parent||t[6],e,t))}(r,i,s)}function y_(n,t,e,i,r){const s=n[e+1],o=null===t;let a=i?Pi(s):wr(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];ik(n[a],t)&&(l=!0,n[a+1]=i?ch(u):ah(u)),a=i?Pi(u):wr(u)}l&&(n[e+1]=i?ah(s):ch(s))}function ik(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&eo(n,t)>=0}function Dr(n,t,e){return Li(n,t,e,!1),Dr}function Qt(n,t){return Li(n,t,null,!0),Qt}function Li(n,t,e,i){const r=I(),s=Xe(),o=function vr(n){const t=Se.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}(2);s.firstUpdatePass&&function x_(n,t,e,i){const r=n.data;if(null===r[e+1]){const s=r[Rn()],o=function E_(n,t){return t>=n.expandoStartIndex}(n,e);(function T_(n,t){return 0!=(n.flags&(t?16:32))})(s,i)&&null===t&&!o&&(t=!1),t=function hk(n,t,e,i){const r=function bd(n){const t=Se.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Ea(e=Yh(null,n,t,e,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==r)if(e=Yh(r,n,t,e,i),null===s){let l=function fk(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==wr(i))return n[Pi(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=Yh(null,n,t,l[1],i),l=Ea(l,t.attrs,i),function pk(n,t,e,i){n[Pi(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else s=function gk(n,t,e){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=Ea(i,n[s].hostAttrs,e);return Ea(i,t.attrs,e)}(n,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),e}(r,s,t,i),function tk(n,t,e,i,r,s){let o=s?t.classBindings:t.styleBindings,a=Pi(o),l=wr(o);n[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||eo(d,u)>0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=Pi(n[a+1]);n[i+1]=Xl(h,a),0!==h&&(n[h+1]=lh(n[h+1],i)),n[a+1]=function yT(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=Xl(a,0),0!==a&&(n[a+1]=lh(n[a+1],i)),a=i;else n[i+1]=Xl(l,0),0===a?a=i:n[l+1]=lh(n[l+1],i),l=i;c&&(n[i+1]=ah(n[i+1])),y_(n,u,i,!0),y_(n,u,i,!1),function nk(n,t,e,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&eo(s,t)>=0&&(e[i+1]=ch(e[i+1]))}(t,u,n,i,s),o=Xl(a,l),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,i)}}(s,n,o,i),t!==Me&&An(r,o,t)&&function M_(n,t,e,i,r,s,o,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];oc(function zy(n){return 1==(1&n)}(c)?A_(l,t,e,r,wr(c),o):void 0)||(oc(s)||function $y(n){return 2==(2&n)}(c)&&(s=A_(l,null,e,r,a,o)),function mA(n,t,e,i,r){const s=Bt(n);if(t)r?s?n.addClass(e,i):e.classList.add(i):s?n.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:ri.DashCase;if(null==r)s?n.removeStyle(e,i,o):e.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=ri.Important),s?n.setStyle(e,i,r,o):e.style.setProperty(i,r,a?"important":"")}}}(i,o,xl(Rn(),e),r,s))}(s,s.data[Rn()],r,r[11],n,r[o+1]=function vk(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=st(si(n)))),n}(t,e),i,o)}function Yh(n,t,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(s=t[a],i=Ea(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(e.directiveStylingLast=a),i}function Ea(n,t,e){const i=e?1:2;let r=-1;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),ii(n,o,!!e||t[++s]))}return void 0===n?null:n}function A_(n,t,e,i,r,s){const o=null===t;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Me&&(h=d?ft:void 0);let f=d?Fd(h,i):u===i?h:void 0;if(c&&!oc(f)&&(f=Fd(l,i)),oc(f)&&(a=f,o))return a;const p=n[r+1];r=o?Pi(p):wr(p)}if(null!==t){let l=s?t.residualClasses:t.residualStyles;null!=l&&(a=Fd(l,i))}return a}function oc(n){return void 0!==n}function Ln(n,t=""){const e=I(),i=Xe(),r=n+20,s=i.firstCreatePass?so(i,r,1,t,null):i.data[r],o=e[r]=function Gd(n,t){return Bt(n)?n.createText(t):n.createTextNode(t)}(e[11],t);Gl(i,e,o,s),Qi(s,!1)}function fs(n){return Co("",n,""),fs}function Co(n,t,e){const i=I(),r=function fo(n,t,e,i){return An(n,Ws(),e)?t+xe(e)+i:Me}(i,n,t,e);return r!==Me&&br(i,Rn(),r),Co}const ps=void 0;var Vk=["en",[["a","p"],["AM","PM"],ps],[["AM","PM"],ps,ps],[["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"]],ps,[["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"]],ps,[["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}",ps,"{1} 'at' {0}",ps],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Lk(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Eo={};function Vn(n){const t=function Bk(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=X_(t);if(e)return e;const i=t.split("-")[0];if(e=X_(i),e)return e;if("en"===i)return Vk;throw new Error(`Missing locale data for the locale "${n}".`)}function X_(n){return n in Eo||(Eo[n]=ct.ng&&ct.ng.common&&ct.ng.common.locales&&ct.ng.common.locales[n]),Eo[n]}var U=(()=>((U=U||{})[U.LocaleId=0]="LocaleId",U[U.DayPeriodsFormat=1]="DayPeriodsFormat",U[U.DayPeriodsStandalone=2]="DayPeriodsStandalone",U[U.DaysFormat=3]="DaysFormat",U[U.DaysStandalone=4]="DaysStandalone",U[U.MonthsFormat=5]="MonthsFormat",U[U.MonthsStandalone=6]="MonthsStandalone",U[U.Eras=7]="Eras",U[U.FirstDayOfWeek=8]="FirstDayOfWeek",U[U.WeekendRange=9]="WeekendRange",U[U.DateFormat=10]="DateFormat",U[U.TimeFormat=11]="TimeFormat",U[U.DateTimeFormat=12]="DateTimeFormat",U[U.NumberSymbols=13]="NumberSymbols",U[U.NumberFormats=14]="NumberFormats",U[U.CurrencyCode=15]="CurrencyCode",U[U.CurrencySymbol=16]="CurrencySymbol",U[U.CurrencyName=17]="CurrencyName",U[U.Currencies=18]="Currencies",U[U.Directionality=19]="Directionality",U[U.PluralCase=20]="PluralCase",U[U.ExtraData=21]="ExtraData",U))();const ac="en-US";let Q_=ac;class Dw{}class HO{resolveComponentFactory(t){throw function BO(n){const t=Error(`No component factory found for ${st(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Cr=(()=>{class n{}return n.NULL=new HO,n})();function jO(){return So(sn(),I())}function So(n,t){return new de(ti(n,t))}let de=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=jO,n})();function $O(n){return n instanceof de?n.nativeElement:n}class Ta{}let ln=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function GO(){const n=I(),e=ni(sn().index,n);return function zO(n){return n[11]}(Xi(e)?e:n)}(),n})(),UO=(()=>{class n{}return n.\u0275prov=R({token:n,providedIn:"root",factory:()=>null}),n})();class Br{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const WO=new Br("13.4.0"),ef={};function hc(n,t,e,i,r=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&i.push(Kt(s)),Oi(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&hc(l[1],l,c,i)}const o=e.type;if(8&o)hc(n,t,e.child,i);else if(32&o){const a=jd(e,t);let l;for(;l=a();)i.push(l)}else if(16&o){const a=yy(t,e);if(Array.isArray(a))i.push(...a);else{const l=pa(t[16]);hc(l[1],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}class Ia{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return hc(e,t,e.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(Oi(t)){const e=t[8],i=e?e.indexOf(this):-1;i>-1&&(Wd(t,i),Bl(e,i))}this._attachedToViewContainer=!1}ly(this._lView[1],this._lView)}onDestroy(t){iv(this._lView[1],this._lView,null,t)}markForCheck(){Eh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Sh(n,t,e){const i=t[10];i.begin&&i.begin();try{ao(n,t,n.template,e)}catch(r){throw mv(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new K(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function oA(n,t){ga(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new K(902,"");this._appRef=t}}class YO extends Ia{constructor(t){super(t),this._view=t}detectChanges(){hv(this._view)}checkNoChanges(){}get context(){return null}}class Ew extends Cr{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=_n(t);return new tf(e,this.ngModule)}}function xw(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class tf extends Dw{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function gT(n){return n.map(pT).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return xw(this.componentDef.inputs)}get outputs(){return xw(this.componentDef.outputs)}create(t,e,i,r){const s=(r=r||this.ngModule)?function KO(n,t){return{get:(e,i,r)=>{const s=n.get(e,ef,r);return s!==ef||i===ef?s:t.get(e,i,r)}}}(t,r.injector):t,o=s.get(Ta,dm),a=s.get(UO,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function nv(n,t,e){if(Bt(n))return n.selectRootElement(t,e===Ii.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Ud(o.createRenderer(null,this.componentDef),c,function qO(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function Rv(n,t){return{components:[],scheduler:n||nT,clean:JT,playerHandler:t||null,flags:0}}(),f=Jl(0,null,null,1,0,null,null,null,null,null),p=_a(null,f,h,d,null,null,o,l,a,s);let v,D;Ml(p);try{const E=function Ov(n,t,e,i,r,s){const o=e[1];e[20]=n;const l=so(o,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(tc(l,c,!0),null!==n&&(Ol(r,n,c),null!==l.classes&&Zd(r,n,l.classes),null!==l.styles&&_y(r,n,l.styles)));const u=i.createRenderer(n,t),d=_a(e,ev(t),null,t.onPush?64:16,e[20],l,i,u,s||null,null);return o.firstCreatePass&&(Nl(ia(l,e),o,t.type),lv(o,l),cv(l,e.length,1)),ec(e,d),e[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)Ol(l,u,["ng-version",WO.full]);else{const{attrs:w,classes:M}=function mT(n){const t=[],e=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&t.push(s,n[++i]):8===r&&e.push(s);else{if(!Ri(r))break;r=s}i++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);w&&Ol(l,u,w),M&&M.length>0&&Zd(l,u,M.join(" "))}if(D=gd(f,20),void 0!==e){const w=D.projection=[];for(let M=0;M<this.ngContentSelectors.length;M++){const k=e[M];w.push(null!=k?Array.from(k):null)}}v=function Fv(n,t,e,i,r){const s=e[1],o=function LT(n,t,e){const i=sn();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),uv(n,i,t,oo(n,t,1,null),e));const r=ra(t,n,i.directiveStart,i);Mn(r,t);const s=ti(i,t);return s&&Mn(s,t),r}(s,e,t);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,t)),t.contentQueries){const l=sn();t.contentQueries(1,o,l.directiveStart)}const a=sn();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Rr(a.index),ov(e[1],a,0,a.directiveStart,a.directiveEnd,t),av(t,o)),o}(E,this.componentDef,p,h,[_I]),wa(f,p,null)}finally{Al()}return new QO(this.componentType,v,So(D,p),p,D)}}class QO extends class VO{}{constructor(t,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new YO(r),this.componentType=t}get injector(){return new Ks(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Mo{}const Ao=new Map;class Aw extends Mo{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ew(this);const i=fi(t);this._bootstrapComponents=tr(i.bootstrap),this._r3Injector=bv(t,e,[{provide:Mo,useValue:this},{provide:Cr,useValue:this.componentFactoryResolver}],st(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=wn.THROW_IF_NOT_FOUND,i=Te.Default){return t===wn||t===Mo||t===Ah?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class nf extends class JO{}{constructor(t){super(),this.moduleType=t,null!==fi(t)&&function eF(n){const t=new Set;!function e(i){const r=fi(i,!0),s=r.id;null!==s&&(function Sw(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${st(t)} vs ${st(t.name)}`)}(s,Ao.get(s),i),Ao.set(s,i));const o=tr(r.imports);for(const a of o)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new Aw(this.moduleType,t)}}function Bn(n,t,e){const i=Fn()+n,r=I();return r[i]===Me?ir(r,i,e?t.call(e):t()):Ca(r,i)}function gs(n,t,e,i){return Ow(I(),Fn(),n,t,e,i)}function pn(n,t,e,i,r){return Fw(I(),Fn(),n,t,e,i,r)}function rf(n,t,e,i,r,s){return Rw(I(),Fn(),n,t,e,i,r,s)}function sf(n,t,e,i,r,s,o,a){const l=Fn()+n,c=I(),u=function yi(n,t,e,i,r,s){const o=hs(n,t,e,i);return hs(n,t+2,r,s)||o}(c,l,e,i,r,s);return An(c,l+4,o)||u?ir(c,l+5,a?t.call(a,e,i,r,s,o):t(e,i,r,s,o)):Ca(c,l+5)}function af(n,t,e,i){return function Nw(n,t,e,i,r,s){let o=t+e,a=!1;for(let l=0;l<r.length;l++)An(n,o++,r[l])&&(a=!0);return a?ir(n,o,i.apply(s,r)):ka(n,o)}(I(),Fn(),n,t,e,i)}function ka(n,t){const e=n[t];return e===Me?void 0:e}function Ow(n,t,e,i,r,s){const o=t+e;return An(n,o,r)?ir(n,o+1,s?i.call(s,r):i(r)):ka(n,o+1)}function Fw(n,t,e,i,r,s,o){const a=t+e;return hs(n,a,r,s)?ir(n,a+2,o?i.call(o,r,s):i(r,s)):ka(n,a+2)}function Rw(n,t,e,i,r,s,o,a){const l=t+e;return function ic(n,t,e,i,r){const s=hs(n,t,e,i);return An(n,t+2,r)||s}(n,l,r,s,o)?ir(n,l+3,a?i.call(a,r,s,o):i(r,s,o)):ka(n,l+3)}function It(n,t){const e=Xe();let i;const r=n+20;e.firstCreatePass?(i=function nF(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const s=i.factory||(i.factory=as(i.type)),o=Ir(g);try{const a=Rl(!1),l=s();return Rl(a),function kI(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,I(),r,l),l}finally{Ir(o)}}function Bi(n,t,e,i){const r=n+20,s=I(),o=Us(s,r);return Oa(s,r)?Fw(s,Fn(),t,o.transform,e,i,o):o.transform(e,i)}function Hi(n,t,e,i,r){const s=n+20,o=I(),a=Us(o,s);return Oa(o,s)?Rw(o,Fn(),t,a.transform,e,i,r,a):a.transform(e,i,r)}function Oa(n,t){return n[1].data[t].pure}function lf(n){return t=>{setTimeout(n,void 0,t)}}const ie=class sF extends O{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,s,o;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const d=t;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=lf(l),a&&(a=lf(a)),c&&(c=lf(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof he&&t.add(u),u}};function oF(){return this._results[uo()]()}class cf{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 e=uo(),i=cf.prototype;i[e]||(i[e]=oF)}get changes(){return this._changes||(this._changes=new ie)}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,e){return this._results.reduce(t,e)}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,e){const i=this;i.dirty=!1;const r=mi(t);(this._changesDetected=!function DM(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=t[i];if(e&&(r=e(r),s=e(s)),s!==r)return!1}return!0}(i._results,r,e))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[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 De=(()=>{class n{}return n.__NG_ELEMENT_ID__=cF,n})();const aF=De,lF=class extends aF{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=_a(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(e)),wa(e,i,t),new Ia(i)}};function cF(){return pc(sn(),I())}function pc(n,t){return 4&n.type?new lF(t,n,So(n,t)):null}let Un=(()=>{class n{}return n.__NG_ELEMENT_ID__=uF,n})();function uF(){return Bw(sn(),I())}const dF=Un,Lw=class extends dF{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return So(this._hostTNode,this._hostLView)}get injector(){return new Ks(this._hostTNode,this._hostLView)}get parentInjector(){const t=Pl(this._hostTNode,this._hostLView);if(Am(t)){const e=qs(t,this._hostLView),i=Ys(t);return new Ks(e[1].data[i+8],e)}return new Ks(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Vw(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const r=t.createEmbeddedView(e||{});return this.insert(r,i),r}createComponent(t,e,i,r,s){const o=t&&!function oa(n){return"function"==typeof n}(t);let a;if(o)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?t:new tf(_n(t)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(Mo,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function GS(n){return Oi(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new Lw(d,d[6],d[3]);h.detach(h.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function lA(n,t,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=t),i<s-10?(t[4]=e[r],Vm(e,10+i,t)):(e.push(t),t[4]=null),t[3]=e;const o=t[17];null!==o&&e!==o&&function cA(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=128}(r,i,o,s);const a=Kd(s,o),l=i[11],c=zl(l,o[7]);return null!==c&&function sA(n,t,e,i,r,s){i[0]=r,i[6]=t,ga(n,i,e,1,r,s)}(r,o[6],l,i,c,a),t.attachToViewContainerRef(),Vm(uf(o),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=Vw(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),i=Wd(this._lContainer,e);i&&(Bl(uf(this._lContainer),e),ly(i[1],i))}detach(t){const e=this._adjustIndex(t,-1),i=Wd(this._lContainer,e);return i&&null!=Bl(uf(this._lContainer),e)?new Ia(i):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function Vw(n){return n[8]}function uf(n){return n[8]||(n[8]=[])}function Bw(n,t){let e;const i=t[n.index];if(Oi(i))e=i;else{let r;if(8&n.type)r=Kt(i);else{const s=t[11];r=s.createComment("");const o=ti(n,t);cs(s,zl(s,o),r,function fA(n,t){return Bt(n)?n.nextSibling(t):t.nextSibling}(s,o),!1)}t[n.index]=e=dv(i,t,r,n),ec(t,e)}return new Lw(e,n,t)}class df{constructor(t){this.queryList=t,this.matches=null}clone(){return new df(this.queryList)}setDirty(){this.queryList.setDirty()}}class hf{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let s=0;s<i;s++){const o=e.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new hf(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Yw(t,e).matches&&this.queries[e].setDirty()}}class Hw{constructor(t,e,i=null){this.predicate=t,this.flags=e,this.read=i}}class ff{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,s=this.getByIndex(i).embeddedTView(t,r);s&&(s.indexInDeclarationView=i,null!==e?e.push(s):e=[s])}return null!==e?new ff(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class pf{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new pf(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(t,e,pF(e,s)),this.matchTNodeWithReadOption(t,e,Ll(e,t,s,!1,!1))}else i===De?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Ll(e,t,i,!1,!1))}matchTNodeWithReadOption(t,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===de||r===Un||r===De&&4&e.type)this.addMatch(e.index,-2);else{const s=Ll(e,t,r,!1,!1);null!==s&&this.addMatch(e.index,s)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function pF(n,t){const e=n.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===t)return e[i+1];return null}function mF(n,t,e,i){return-1===e?function gF(n,t){return 11&n.type?So(n,t):4&n.type?pc(n,t):null}(t,n):-2===e?function yF(n,t,e){return e===de?So(t,n):e===De?pc(t,n):e===Un?Bw(t,n):void 0}(n,t,i):ra(n,n[1],e,t)}function jw(n,t,e,i){const r=t[19].queries[i];if(null===r.matches){const s=n.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:mF(t,s[c],o[l+1],e.metadata.read))}r.matches=a}return r.matches}function gf(n,t,e,i){const r=n.queries.getByIndex(e),s=r.matches;if(null!==s){const o=jw(n,t,r,e);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=t[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&gf(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];gf(f[1],f,c,i)}}}}}return i}function $w(n){const t=I(),e=Xe(),i=_m();Dd(i+1);const r=Yw(e,i);if(n.dirty&&hm(t)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?gf(e,t,i,[]):jw(e,t,r,i);n.reset(s,$O),n.notifyOnChanges()}return!0}return!1}function zw(n,t,e){const i=Xe();i.firstCreatePass&&(function Ww(n,t,e){null===n.queries&&(n.queries=new ff),n.queries.track(new pf(t,e))}(i,new Hw(n,t,e),-1),2==(2&t)&&(i.staticViewQueries=!0)),function Uw(n,t,e){const i=new cf(4==(4&e));iv(n,t,i,i.destroy),null===t[19]&&(t[19]=new hf),t[19].queries.push(new df(i))}(i,I(),t)}function Yw(n,t){return n.queries.getByIndex(t)}function vi(n,t){return pc(n,t)}const x=kd("Input",n=>({bindingPropertyName:n})),ut=kd("Output",n=>({bindingPropertyName:n})),Ra=kd("HostListener",(n,t)=>({eventName:n,args:t}));function yc(...n){}const bf=new ne("Application Initializer");let Df=(()=>{class n{constructor(e){this.appInits=e,this.resolve=yc,this.reject=yc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(sc(s))e.push(s);else if(r_(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(S(bf,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Pa=new ne("AppId",{providedIn:"root",factory:function ub(){return`${Cf()}${Cf()}${Cf()}`}});function Cf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const db=new ne("Platform Initializer"),_i=new ne("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),hb=new ne("appBootstrapListener"),bn=new ne("LocaleId",{providedIn:"root",factory:()=>to(bn,Te.Optional|Te.SkipSelf)||function LF(){return"undefined"!=typeof $localize&&$localize.locale||ac}()}),jF=(()=>Promise.resolve(0))();function Ef(n){"undefined"==typeof Zone?jF.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class $e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function $F(){let n=ct.requestAnimationFrame,t=ct.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function UF(n){const t=()=>{!function GF(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(ct,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Sf(n),n.isCheckStableRunning=!0,xf(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Sf(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return fb(n),e.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),pb(n)}},onInvoke:(e,i,r,s,o,a,l)=>{try{return fb(n),e.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),pb(n)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,Sf(n),xf(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if($e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,zF,yc,yc);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const zF={};function xf(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Sf(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function fb(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function pb(n){n._nesting--,xf(n)}class WF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ie,this.onMicrotaskEmpty=new ie,this.onStable=new ie,this.onError=new ie}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}let Mf=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{$e.assertNotInAngularZone(),Ef(()=>{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())Ef(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(S($e))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),YF=(()=>{class n{constructor(){this._applications=new Map,Af.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Af.findTestabilityInTree(this,e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class qF{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let Af=new qF,ms=null;const gb=new ne("AllowMultipleToken"),mb=new ne("PlatformOnDestroy");function yb(n,t,e=[]){const i=`Platform: ${t}`,r=new ne(i);return(s=[])=>{let o=Tf();if(!o||o.injector.get(gb,!1)){const a=[...e,...s,{provide:r,useValue:!0}];n?n(a):function ZF(n){if(ms&&!ms.get(gb,!1))throw new K(400,"");ms=n;const t=n.get(vb),e=n.get(db,null);e&&e.forEach(i=>i())}(function eR(n=[],t){return wn.create({name:t,providers:[{provide:Th,useValue:"platform"},{provide:mb,useValue:()=>ms=null},...n]})}(a,i))}return function JF(n){const t=Tf();if(!t)throw new K(401,"");return t}()}}function Tf(){var n;return null!==(n=null==ms?void 0:ms.get(vb))&&void 0!==n?n:null}let vb=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function tR(n,t){let e;return e="noop"===n?new WF:("zone.js"===n?void 0:n)||new $e({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:$e,useValue:a}];return a.run(()=>{const c=wn.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(Nr,null);if(!d)throw new K(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{If(this._modules,u),h.unsubscribe()})}),function nR(n,t,e){try{const i=e();return sc(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(Df);return h.runInitializers(),h.donePromise.then(()=>(function zk(n){Jn(n,"Expected localeId to be defined"),"string"==typeof n&&(Q_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(bn,ac)||ac),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const r=_b({},i);return function XF(n,t,e){const i=new nf(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(vc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new K(403,"");e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new K(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(mb,null);null==e||e(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(S(wn))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function _b(n,t){return Array.isArray(t)?t.reduce(_b,n):Object.assign(Object.assign({},n),t)}let vc=(()=>{class n{constructor(e,i,r,s){this._zone=e,this._injector=i,this._exceptionHandler=r,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 o=new Y(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new Y(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{$e.assertNotInAngularZone(),Ef(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{$e.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=qt(o,a.pipe(Ai()))}bootstrap(e,i){if(!this._initStatus.done)throw new K(405,"");let r;r=e instanceof Dw?e:this._injector.get(Cr).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const s=function QF(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Mo),a=r.create(wn.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Mf,null),u=c&&a.injector.get(YF);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),If(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new K(101,"");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;If(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(hb,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(S($e),S(wn),S(Nr),S(Df))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function If(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let bb=!0,Er=(()=>{class n{}return n.__NG_ELEMENT_ID__=sR,n})();function sR(n){return function oR(n,t,e){if(Cl(n)&&!e){const i=ni(n.index,t);return new Ia(i,i)}return 47&n.type?new Ia(t[16],t):null}(sn(),I(),16==(16&n))}class Sb{constructor(){}supports(t){return Da(t)}create(t){return new hR(t)}}const dR=(n,t)=>t;class hR{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||dR}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex<Ab(i,r,s)?e:i,a=Ab(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&t(o,a,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Da(t))throw new K(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,s,o,e=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)s=t[a],o=this._trackByFn(a,s),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,o,a),i=!0),e=e._next}else r=0,function TI(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[uo()]();let i;for(;!(i=e.next()).done;)t(i.value)}}(t,a=>{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),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,e,i,r){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,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new fR(e,i),s,r),t}_verifyReinsertion(t,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}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,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Mb),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 e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Mb),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,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class fR{constructor(t,e){this.item=t,this.trackById=e,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 pR{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,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Mb{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new pR,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ab(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+t+r}class Tb{constructor(){}supports(t){return t instanceof Map||Ph(t)}create(){return new gR}}class gR{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 e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Ph(t)))throw new K(900,"")}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;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,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new mR(t);return this._records.set(t,i),i.currentValue=e,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,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,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,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class mR{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 Ib(){return new Na([new Sb])}let Na=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||Ib()),deps:[[n,new da,new ls]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new K(901,"")}}return n.\u0275prov=R({token:n,providedIn:"root",factory:Ib}),n})();function kb(){return new vs([new Tb])}let vs=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||kb()),deps:[[n,new da,new ls]]}}find(e){const i=this.factories.find(s=>s.supports(e));if(i)return i;throw new K(901,"")}}return n.\u0275prov=R({token:n,providedIn:"root",factory:kb}),n})();const _R=yb(null,"core",[]);let wR=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(S(vc))},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({}),n})(),bc=null;function or(){return bc}const ke=new ne("DocumentToken");let La=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:function(){return function ER(){return S(Ob)}()},providedIn:"platform"}),n})(),Ob=(()=>{class n extends La{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return or().getBaseHref(this._doc)}onPopState(e){const i=or().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=or().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,r){Fb()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){Fb()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(S(ke))},n.\u0275prov=R({token:n,factory:function(){return function xR(){return new Ob(S(ke))}()},providedIn:"platform"}),n})();function Fb(){return!!window.history.pushState}function Rb(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function Pb(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function _s(n){return n&&"?"!==n[0]?"?"+n:n}let Pf=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:function(){return function SR(n){const t=S(ke).location;return new AR(S(La),t&&t.origin||"")}()},providedIn:"root"}),n})();const MR=new ne("appBaseHref");let AR=(()=>{class n extends Pf{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Rb(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+_s(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+_s(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+_s(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(S(La),S(MR,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),Nb=(()=>{class n{constructor(e,i){this._subject=new ie,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Pb(Lb(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+_s(i))}normalize(e){return n.stripTrailingSlash(function IR(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,Lb(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._platformStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+_s(i)),r)}replaceState(e,i="",r=null){this._platformStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+_s(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=_s,n.joinWithSlash=Rb,n.stripTrailingSlash=Pb,n.\u0275fac=function(e){return new(e||n)(S(Pf),S(La))},n.\u0275prov=R({token:n,factory:function(){return function TR(){return new Nb(S(Pf),S(La))}()},providedIn:"root"}),n})();function Lb(n){return n.replace(/\/index.html$/,"")}var Zt=(()=>((Zt=Zt||{})[Zt.Zero=0]="Zero",Zt[Zt.One=1]="One",Zt[Zt.Two=2]="Two",Zt[Zt.Few=3]="Few",Zt[Zt.Many=4]="Many",Zt[Zt.Other=5]="Other",Zt))(),Gt=(()=>((Gt=Gt||{})[Gt.Format=0]="Format",Gt[Gt.Standalone=1]="Standalone",Gt))(),ze=(()=>((ze=ze||{})[ze.Narrow=0]="Narrow",ze[ze.Abbreviated=1]="Abbreviated",ze[ze.Wide=2]="Wide",ze[ze.Short=3]="Short",ze))(),Pt=(()=>((Pt=Pt||{})[Pt.Short=0]="Short",Pt[Pt.Medium=1]="Medium",Pt[Pt.Long=2]="Long",Pt[Pt.Full=3]="Full",Pt))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function Dc(n,t){return bi(Vn(n)[U.DateFormat],t)}function Cc(n,t){return bi(Vn(n)[U.TimeFormat],t)}function Ec(n,t){return bi(Vn(n)[U.DateTimeFormat],t)}function wi(n,t){const e=Vn(n),i=e[U.NumberSymbols][t];if(void 0===i){if(t===ge.CurrencyDecimal)return e[U.NumberSymbols][ge.Decimal];if(t===ge.CurrencyGroup)return e[U.NumberSymbols][ge.Group]}return i}const LR=function K_(n){return Vn(n)[U.PluralCase]};function Bb(n){if(!n[U.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[U.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function bi(n,t){for(let e=t;e>-1;e--)if(void 0!==n[e])return n[e];throw new Error("Locale data API: locale data undefined")}function Lf(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const zR=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Va={},GR=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var cn=(()=>((cn=cn||{})[cn.Short=0]="Short",cn[cn.ShortGMT=1]="ShortGMT",cn[cn.Long=2]="Long",cn[cn.Extended=3]="Extended",cn))(),ve=(()=>((ve=ve||{})[ve.FullYear=0]="FullYear",ve[ve.Month=1]="Month",ve[ve.Date=2]="Date",ve[ve.Hours=3]="Hours",ve[ve.Minutes=4]="Minutes",ve[ve.Seconds=5]="Seconds",ve[ve.FractionalSeconds=6]="FractionalSeconds",ve[ve.Day=7]="Day",ve))(),Pe=(()=>((Pe=Pe||{})[Pe.DayPeriods=0]="DayPeriods",Pe[Pe.Days=1]="Days",Pe[Pe.Months=2]="Months",Pe[Pe.Eras=3]="Eras",Pe))();function un(n,t,e,i){let r=function JR(n){if($b(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[r,s=1,o=1]=n.split("-").map(a=>+a);return xc(r,s-1,o)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let i;if(i=n.match(zR))return function e1(n){const t=new Date(0);let e=0,i=0;const r=n[8]?t.setUTCFullYear:t.setFullYear,s=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),i=Number(n[9]+n[11])),r.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));const o=Number(n[4]||0)-e,a=Number(n[5]||0)-i,l=Number(n[6]||0),c=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return s.call(t,o,a,l,c),t}(i)}const t=new Date(n);if(!$b(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=xr(e,t)||t;let a,o=[];for(;t;){if(a=GR.exec(t),!a){o.push(t);break}{o=o.concat(a.slice(1));const u=o.pop();if(!u)break;t=u}}let l=r.getTimezoneOffset();i&&(l=jb(i,l),r=function ZR(n,t,e){const i=e?-1:1,r=n.getTimezoneOffset();return function QR(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,i*(jb(t,r)-r))}(r,i,!0));let c="";return o.forEach(u=>{const d=function XR(n){if(Bf[n])return Bf[n];let t;switch(n){case"G":case"GG":case"GGG":t=yt(Pe.Eras,ze.Abbreviated);break;case"GGGG":t=yt(Pe.Eras,ze.Wide);break;case"GGGGG":t=yt(Pe.Eras,ze.Narrow);break;case"y":t=Jt(ve.FullYear,1,0,!1,!0);break;case"yy":t=Jt(ve.FullYear,2,0,!0,!0);break;case"yyy":t=Jt(ve.FullYear,3,0,!1,!0);break;case"yyyy":t=Jt(ve.FullYear,4,0,!1,!0);break;case"Y":t=Tc(1);break;case"YY":t=Tc(2,!0);break;case"YYY":t=Tc(3);break;case"YYYY":t=Tc(4);break;case"M":case"L":t=Jt(ve.Month,1,1);break;case"MM":case"LL":t=Jt(ve.Month,2,1);break;case"MMM":t=yt(Pe.Months,ze.Abbreviated);break;case"MMMM":t=yt(Pe.Months,ze.Wide);break;case"MMMMM":t=yt(Pe.Months,ze.Narrow);break;case"LLL":t=yt(Pe.Months,ze.Abbreviated,Gt.Standalone);break;case"LLLL":t=yt(Pe.Months,ze.Wide,Gt.Standalone);break;case"LLLLL":t=yt(Pe.Months,ze.Narrow,Gt.Standalone);break;case"w":t=Vf(1);break;case"ww":t=Vf(2);break;case"W":t=Vf(1,!0);break;case"d":t=Jt(ve.Date,1);break;case"dd":t=Jt(ve.Date,2);break;case"c":case"cc":t=Jt(ve.Day,1);break;case"ccc":t=yt(Pe.Days,ze.Abbreviated,Gt.Standalone);break;case"cccc":t=yt(Pe.Days,ze.Wide,Gt.Standalone);break;case"ccccc":t=yt(Pe.Days,ze.Narrow,Gt.Standalone);break;case"cccccc":t=yt(Pe.Days,ze.Short,Gt.Standalone);break;case"E":case"EE":case"EEE":t=yt(Pe.Days,ze.Abbreviated);break;case"EEEE":t=yt(Pe.Days,ze.Wide);break;case"EEEEE":t=yt(Pe.Days,ze.Narrow);break;case"EEEEEE":t=yt(Pe.Days,ze.Short);break;case"a":case"aa":case"aaa":t=yt(Pe.DayPeriods,ze.Abbreviated);break;case"aaaa":t=yt(Pe.DayPeriods,ze.Wide);break;case"aaaaa":t=yt(Pe.DayPeriods,ze.Narrow);break;case"b":case"bb":case"bbb":t=yt(Pe.DayPeriods,ze.Abbreviated,Gt.Standalone,!0);break;case"bbbb":t=yt(Pe.DayPeriods,ze.Wide,Gt.Standalone,!0);break;case"bbbbb":t=yt(Pe.DayPeriods,ze.Narrow,Gt.Standalone,!0);break;case"B":case"BB":case"BBB":t=yt(Pe.DayPeriods,ze.Abbreviated,Gt.Format,!0);break;case"BBBB":t=yt(Pe.DayPeriods,ze.Wide,Gt.Format,!0);break;case"BBBBB":t=yt(Pe.DayPeriods,ze.Narrow,Gt.Format,!0);break;case"h":t=Jt(ve.Hours,1,-12);break;case"hh":t=Jt(ve.Hours,2,-12);break;case"H":t=Jt(ve.Hours,1);break;case"HH":t=Jt(ve.Hours,2);break;case"m":t=Jt(ve.Minutes,1);break;case"mm":t=Jt(ve.Minutes,2);break;case"s":t=Jt(ve.Seconds,1);break;case"ss":t=Jt(ve.Seconds,2);break;case"S":t=Jt(ve.FractionalSeconds,1);break;case"SS":t=Jt(ve.FractionalSeconds,2);break;case"SSS":t=Jt(ve.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Mc(cn.Short);break;case"ZZZZZ":t=Mc(cn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Mc(cn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Mc(cn.Long);break;default:return null}return Bf[n]=t,t}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function xc(n,t,e){const i=new Date(0);return i.setFullYear(n,t,e),i.setHours(0,0,0),i}function xr(n,t){const e=function kR(n){return Vn(n)[U.LocaleId]}(n);if(Va[e]=Va[e]||{},Va[e][t])return Va[e][t];let i="";switch(t){case"shortDate":i=Dc(n,Pt.Short);break;case"mediumDate":i=Dc(n,Pt.Medium);break;case"longDate":i=Dc(n,Pt.Long);break;case"fullDate":i=Dc(n,Pt.Full);break;case"shortTime":i=Cc(n,Pt.Short);break;case"mediumTime":i=Cc(n,Pt.Medium);break;case"longTime":i=Cc(n,Pt.Long);break;case"fullTime":i=Cc(n,Pt.Full);break;case"short":const r=xr(n,"shortTime"),s=xr(n,"shortDate");i=Sc(Ec(n,Pt.Short),[r,s]);break;case"medium":const o=xr(n,"mediumTime"),a=xr(n,"mediumDate");i=Sc(Ec(n,Pt.Medium),[o,a]);break;case"long":const l=xr(n,"longTime"),c=xr(n,"longDate");i=Sc(Ec(n,Pt.Long),[l,c]);break;case"full":const u=xr(n,"fullTime"),d=xr(n,"fullDate");i=Sc(Ec(n,Pt.Full),[u,d])}return i&&(Va[e][t]=i),i}function Sc(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,i){return null!=t&&i in t?t[i]:e})),n}function ji(n,t,e="-",i,r){let s="";(n<0||r&&n<=0)&&(r?n=1-n:(n=-n,s=e));let o=String(n);for(;o.length<t;)o="0"+o;return i&&(o=o.substr(o.length-t)),s+o}function Jt(n,t,e=0,i=!1,r=!1){return function(s,o){let a=function WR(n,t){switch(n){case ve.FullYear:return t.getFullYear();case ve.Month:return t.getMonth();case ve.Date:return t.getDate();case ve.Hours:return t.getHours();case ve.Minutes:return t.getMinutes();case ve.Seconds:return t.getSeconds();case ve.FractionalSeconds:return t.getMilliseconds();case ve.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${n}".`)}}(n,s);if((e>0||a>-e)&&(a+=e),n===ve.Hours)0===a&&-12===e&&(a=12);else if(n===ve.FractionalSeconds)return function UR(n,t){return ji(n,3).substr(0,t)}(a,t);const l=wi(o,ge.MinusSign);return ji(a,t,l,i,r)}}function yt(n,t,e=Gt.Format,i=!1){return function(r,s){return function YR(n,t,e,i,r,s){switch(e){case Pe.Months:return function RR(n,t,e){const i=Vn(n),s=bi([i[U.MonthsFormat],i[U.MonthsStandalone]],t);return bi(s,e)}(t,r,i)[n.getMonth()];case Pe.Days:return function FR(n,t,e){const i=Vn(n),s=bi([i[U.DaysFormat],i[U.DaysStandalone]],t);return bi(s,e)}(t,r,i)[n.getDay()];case Pe.DayPeriods:const o=n.getHours(),a=n.getMinutes();if(s){const c=function VR(n){const t=Vn(n);return Bb(t),(t[U.ExtraData][2]||[]).map(i=>"string"==typeof i?Lf(i):[Lf(i[0]),Lf(i[1])])}(t),u=function BR(n,t,e){const i=Vn(n);Bb(i);const s=bi([i[U.ExtraData][0],i[U.ExtraData][1]],t)||[];return bi(s,e)||[]}(t,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[f,p]=h,v=o>=f.hours&&a>=f.minutes,D=o<p.hours||o===p.hours&&a<p.minutes;if(f.hours<p.hours){if(v&&D)return!0}else if(v||D)return!0}else if(h.hours===o&&h.minutes===a)return!0;return!1});if(-1!==d)return u[d]}return function OR(n,t,e){const i=Vn(n),s=bi([i[U.DayPeriodsFormat],i[U.DayPeriodsStandalone]],t);return bi(s,e)}(t,r,i)[o<12?0:1];case Pe.Eras:return function PR(n,t){return bi(Vn(n)[U.Eras],t)}(t,i)[n.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(r,s,n,t,e,i)}}function Mc(n){return function(t,e,i){const r=-1*i,s=wi(e,ge.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(n){case cn.Short:return(r>=0?"+":"")+ji(o,2,s)+ji(Math.abs(r%60),2,s);case cn.ShortGMT:return"GMT"+(r>=0?"+":"")+ji(o,1,s);case cn.Long:return"GMT"+(r>=0?"+":"")+ji(o,2,s)+":"+ji(Math.abs(r%60),2,s);case cn.Extended:return 0===i?"Z":(r>=0?"+":"")+ji(o,2,s)+":"+ji(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${n}"`)}}}function Hb(n){return xc(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function Vf(n,t=!1){return function(e,i){let r;if(t){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,o=e.getDate();r=1+Math.floor((o+s)/7)}else{const s=Hb(e),o=function KR(n){const t=xc(n,0,1).getDay();return xc(n,0,1+(t<=4?4:11)-t)}(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return ji(r,n,wi(i,ge.MinusSign))}}function Tc(n,t=!1){return function(e,i){return ji(Hb(e).getFullYear(),n,wi(i,ge.MinusSign),t)}}const Bf={};function jb(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function $b(n){return n instanceof Date&&!isNaN(n.valueOf())}let Gf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:function(e){let i=null;return e?i=new e:(r=S(bn),i=new h1(r)),i;var r},providedIn:"root"}),n})();let h1=(()=>{class n extends Gf{constructor(e){super(),this.locale=e}getPluralCategory(e,i){switch(LR(i||this.locale)(e)){case Zt.Zero:return"zero";case Zt.One:return"one";case Zt.Two:return"two";case Zt.Few:return"few";case Zt.Many:return"many";default:return"other"}}}return n.\u0275fac=function(e){return new(e||n)(S(bn))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),ai=(()=>{class n{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Da(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${st(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(g(Na),g(vs),g(de),g(ln))},n.\u0275dir=T({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class g1{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}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 Hr=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new g1(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),Wb(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{Wb(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(g(Un),g(De),g(Na))},n.\u0275dir=T({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function Wb(n,t){n.context.$implicit=t.item}let ws=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new m1,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Yb("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Yb("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(g(Un),g(De))},n.\u0275dir=T({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class m1{constructor(){this.$implicit=null,this.ngIf=null}}function Yb(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${st(t)}'.`)}const qb="browser";function jr(n){return n===qb}function Io(n){return"server"===n}let bs=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,s]=e.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(vs),g(ln))},n.\u0275dir=T({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),Di=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(g(Un))},n.\u0275dir=T({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[hn]}),n})();function $i(n,t){return new K(2100,"")}class q1{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class K1{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}onDestroy(t){}}const X1=new K1,Q1=new q1;let Kf=(()=>{class n{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(sc(e))return X1;if(i_(e))return Q1;throw $i()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(g(Er,16))},n.\u0275pipe=vn({name:"async",type:n,pure:!1}),n})();const rP=/#/g;let Fc=(()=>{class n{constructor(e){this._localization=e}transform(e,i,r){if(null==e)return"";if("object"!=typeof i||null===i)throw $i();return i[function Ub(n,t,e,i){let r=`=${n}`;if(t.indexOf(r)>-1||(r=e.getPluralCategory(n,i),t.indexOf(r)>-1))return r;if(t.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${n}"`)}(e,Object.keys(i),this._localization,r)].replace(rP,e.toString())}}return n.\u0275fac=function(e){return new(e||n)(g(Gf,16))},n.\u0275pipe=vn({name:"i18nPlural",type:n,pure:!0}),n})(),tD=(()=>{class n{transform(e,i,r){if(null==e)return null;if(!this.supports(e))throw $i();return e.slice(i,r)}supports(e){return"string"==typeof e||Array.isArray(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=vn({name:"slice",type:n,pure:!1}),n})(),ko=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({}),n})();class Zf extends class gP extends class CR{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function DR(n){bc||(bc=n)}(new Zf)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function mP(){return ja=ja||document.querySelector("base"),ja?ja.getAttribute("href"):null}();return null==e?null:function yP(n){Rc=Rc||document.createElement("a"),Rc.setAttribute("href",n);const t=Rc.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){ja=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function f1(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}(document.cookie,t)}}let Rc,ja=null;const iD=new ne("TRANSITION_ID"),_P=[{provide:bf,useFactory:function vP(n,t,e){return()=>{e.get(Df).donePromise.then(()=>{const i=or(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[iD,ke,wn],multi:!0}];class Jf{static init(){!function KF(n){Af=n}(new Jf)}addToWindow(t){ct.getAngularTestability=(i,r=!0)=>{const s=t.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},ct.getAllAngularTestabilities=()=>t.getAllTestabilities(),ct.getAllAngularRootElements=()=>t.getAllRootElements(),ct.frameworkStabilizers||(ct.frameworkStabilizers=[]),ct.frameworkStabilizers.push(i=>{const r=ct.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?or().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let wP=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const Pc=new ne("EventManagerPlugins");let Nc=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(S(Pc),S($e))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class rD{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const r=or().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let sD=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),$a=(()=>{class n extends sD{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(oD),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(oD))}}return n.\u0275fac=function(e){return new(e||n)(S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();function oD(n){or().remove(n)}const ep={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/"},tp=/%COMP%/g;function Lc(n,t,e){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?Lc(n,r,e):(r=r.replace(tp,n),e.push(r))}return e}function cD(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Vc=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new np(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Ii.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new SP(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Ii.ShadowDom:return new MP(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Lc(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(S(Nc),S($a),S(Pa))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class np{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(ep[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const s=ep[r];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=ep[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(ri.DashCase|ri.Important)?t.style.setProperty(e,i,r&ri.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&ri.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,cD(i)):this.eventManager.addEventListener(t,e,cD(i))}}class SP extends np{constructor(t,e,i,r){super(t),this.component=i;const s=Lc(r+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr=function CP(n){return"_ngcontent-%COMP%".replace(tp,n)}(r+"-"+i.id),this.hostAttr=function EP(n){return"_nghost-%COMP%".replace(tp,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class MP extends np{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Lc(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let AP=(()=>{class n extends rD{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const dD=["alt","control","meta","shift"],IP={"\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"},hD={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"},kP={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let OP=(()=>{class n extends rD{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>or().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(dD.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(e){let i="",r=function FP(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&hD.hasOwnProperty(t)&&(t=hD[t]))}return IP[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),dD.forEach(s=>{s!=r&&kP[s](e)&&(i+=s+".")}),i+=r,i}static eventCallback(e,i,r){return s=>{n.getEventFullKey(s)===e&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const LP=yb(_R,"browser",[{provide:_i,useValue:qb},{provide:db,useValue:function RP(){Zf.makeCurrent(),Jf.init()},multi:!0},{provide:ke,useFactory:function NP(){return function HS(n){fd=n}(document),document},deps:[]}]),VP=[{provide:Th,useValue:"root"},{provide:Nr,useFactory:function PP(){return new Nr},deps:[]},{provide:Pc,useClass:AP,multi:!0,deps:[ke,$e,_i]},{provide:Pc,useClass:OP,multi:!0,deps:[ke]},{provide:Vc,useClass:Vc,deps:[Nc,$a,Pa]},{provide:Ta,useExisting:Vc},{provide:sD,useExisting:$a},{provide:$a,useClass:$a,deps:[ke]},{provide:Mf,useClass:Mf,deps:[$e]},{provide:Nc,useClass:Nc,deps:[Pc,$e]},{provide:class fP{},useClass:wP,deps:[]}];let fD=(()=>{class n{constructor(e){if(e)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(e){return{ngModule:n,providers:[{provide:Pa,useValue:e.appId},{provide:iD,useExisting:Pa},_P]}}}return n.\u0275fac=function(e){return new(e||n)(S(n,12))},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({providers:VP,imports:[ko,wR]}),n})();"undefined"!=typeof window&&window;let Bc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:function(e){let i=null;return i=e?new(e||n):S(mD),i},providedIn:"root"}),n})(),mD=(()=>{class n extends Bc{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case tt.NONE:return i;case tt.HTML:return Ji(i,"HTML")?si(i):ky(this._doc,String(i)).toString();case tt.STYLE:return Ji(i,"Style")?si(i):i;case tt.SCRIPT:if(Ji(i,"Script"))return si(i);throw new Error("unsafe value used in a script context");case tt.URL:return Cy(i),Ji(i,"URL")?si(i):ma(String(i));case tt.RESOURCE_URL:if(Ji(i,"ResourceURL"))return si(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function xA(n){return new wA(n)}(e)}bypassSecurityTrustStyle(e){return function SA(n){return new bA(n)}(e)}bypassSecurityTrustScript(e){return function MA(n){return new DA(n)}(e)}bypassSecurityTrustUrl(e){return function AA(n){return new CA(n)}(e)}bypassSecurityTrustResourceUrl(e){return function TA(n){return new EA(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(S(ke))},n.\u0275prov=R({token:n,factory:function(e){let i=null;return i=e?new e:function qP(n){return new mD(n.get(ke))}(S(wn)),i},providedIn:"root"}),n})();class KP extends he{constructor(t,e){super()}schedule(t,e=0){return this}}class Hc extends KP{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let yD=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class zi extends yD{constructor(t,e=yD.now){super(t,()=>zi.delegate&&zi.delegate!==this?zi.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return zi.delegate&&zi.delegate!==this?zi.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const ZP=new class QP extends zi{}(class XP extends Hc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}),vD=new Y(n=>n.complete());function rp(n){return n?function JP(n){return new Y(t=>n.schedule(()=>t.complete()))}(n):vD}function Gi(...n){let t=n[n.length-1];return ce(t)?(n.pop(),hi(n,t)):xn(n)}function _D(n,t){return new Y(t?e=>t.schedule(eN,0,{error:n,subscriber:e}):e=>e.error(n))}function eN({error:n,subscriber:t}){t.error(n)}class Ci{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Gi(this.value);case"E":return _D(this.error);case"C":return rp()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new Ci("N",t):Ci.undefinedValueNotification}static createError(t){return new Ci("E",void 0,t)}static createComplete(){return Ci.completeNotification}}Ci.completeNotification=new Ci("C"),Ci.undefinedValueNotification=new Ci("N",void 0);class jc extends Ve{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(jc.dispatch,this.delay,new nN(t,this.destination)))}_next(t){this.scheduleMessage(Ci.createNext(t))}_error(t){this.scheduleMessage(Ci.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Ci.createComplete()),this.unsubscribe()}}class nN{constructor(t,e){this.notification=t,this.destination=e}}class wD extends O{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new iN(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new re;if(this.isStopped||this.hasError?o=he.EMPTY:(this.observers.push(t),o=new J(this,t)),r&&t.add(t=new jc(t,r)),e)for(let a=0;a<s&&!t.closed;a++)t.next(i[a]);else for(let a=0;a<s&&!t.closed;a++)t.next(i[a].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),o}_getNow(){return(this.scheduler||ZP).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(t-r[o].time<i);)o++;return s>e&&(o=Math.max(o,s-e)),o>0&&r.splice(0,o),r}}class iN{constructor(t,e){this.time=t,this.value=e}}function Oo(n,t){return"function"==typeof t?e=>e.pipe(Oo((i,r)=>pr(n(i,r)).pipe(P((s,o)=>t(i,s,r,o))))):e=>e.lift(new rN(n))}class rN{constructor(t){this.project=t}call(t,e){return e.subscribe(new sN(t,this.project))}}class sN extends C{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new Qn(this),r=this.destination;r.add(i),this.innerSubscription=F(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const $c={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if("undefined"==typeof window)return $c.schedule(n,0);if(void 0===window.requestAnimationFrame)return $c.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let sp;function pN(n,t,e){let i=e;return function aN(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((r,s)=>!("*"===r||!function cN(n,t){if(!sp){const e=Element.prototype;sp=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&sp.call(n,t)}(n,r)||(i=s,0))),i}class mN{constructor(t,e){this.componentFactory=e.get(Cr).resolveComponentFactory(t)}create(t){return new yN(this.componentFactory,t)}}class yN{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new wD(1),this.events=this.eventEmitters.pipe(Oo(i=>qt(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get($e),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=$c.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function uN(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=wn.create({providers:[],parent:this.injector}),i=function fN(n,t){const e=n.childNodes,i=t.map(()=>[]);let r=-1;t.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=e.length;s<o;++s){const a=e[s],l=pN(a,t,r);-1!==l&&i[l].push(a)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,t),this.viewChangeDetectorRef=this.componentRef.injector.get(Er),this.implementsOnChanges=function lN(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(vc).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:i,templateName:r})=>t.instance[i].pipe(P(o=>({name:r,value:o}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=$c.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[t];if(i)return void(i.currentValue=e);const r=this.unchangedInputs.has(t),s=r?void 0:this.getInputValue(t);this.inputChanges[t]=new am(s,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class vN extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class op extends O{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new re;return this._value}next(t){super.next(this._value=t)}}function bD(n){for(let t in n){let e=n[t]||"";switch(t){case"display":n.display="flex"===e?["-webkit-flex","flex"]:"inline-flex"===e?["-webkit-inline-flex","inline-flex"]:e;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":n["-webkit-"+t]=e;break;case"flex-direction":e=e||"row",n["-webkit-flex-direction"]=e,n["flex-direction"]=e;break;case"order":n.order=n["-webkit-"+t]=isNaN(+e)?"0":e}}return n}const ap="inline",zc=["row","column","row-reverse","column-reverse"];function DD(n){let[t,e,i]=CD(n);return function bN(n,t=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":t||null}}(t,e,i)}function CD(n){var t;n=null!==(t=null==n?void 0:n.toLowerCase())&&void 0!==t?t:"";let[e,i,r]=n.split(" ");return zc.find(s=>s===e)||(e=zc[0]),i===ap&&(i=r!==ap?r:"",r=ap),[e,wN(i),!!r]}function za(n){let[t]=CD(n);return t.indexOf("row")>-1}function wN(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}function Sr(n,...t){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let e of t)if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);return n}function Tn(n,t){return function(i){return i.lift(new DN(n,t))}}class DN{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new CN(t,this.predicate,this.thisArg))}}class CN extends Ve{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}function zr(){}function Ga(n,t,e){return function(r){return r.lift(new EN(n,t,e))}}class EN{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new xN(t,this.nextOrObserver,this.error,this.complete))}}class xN extends Ve{constructor(t,e,i,r){super(t),this._tapNext=zr,this._tapError=zr,this._tapComplete=zr,this._tapError=i||zr,this._tapComplete=r||zr,Wt(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||zr,this._tapError=e.error||zr,this._tapComplete=e.complete||zr)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const MN={provide:hb,useFactory:function SN(n,t){return()=>{if(jr(t)){const e=Array.from(n.querySelectorAll(`[class*=${ED}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${ED}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(i,"")})}}},deps:[ke,_i],multi:!0},ED="flex-layout-";let lp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({providers:[MN]}),n})();class Ds{constructor(t=!1,e="all",i="",r="",s=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=r,this.priority=s,this.property=""}clone(){return new Ds(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let AN=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,r){const s=this.stylesheet.get(e);s?s.set(i,r):this.stylesheet.set(e,new Map([[i,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){const r=this.stylesheet.get(e);let s="";if(r){const o=r.get(i);("number"==typeof o||"string"==typeof o)&&(s=o+"")}return s}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const cp={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Ui=new ne("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>cp}),Fo=new ne("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),up=new ne("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function xD(n,t){return n=n?n.clone():new Ds,t&&(n.mqAlias=t.alias,n.mediaQuery=t.mediaQuery,n.suffix=t.suffix,n.priority=t.priority),n}class jt{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}let bt=(()=>{class n{constructor(e,i,r,s){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=r,this.layoutConfig=s}applyStyleToElement(e,i,r=null){let s={};"string"==typeof i&&(s[i]=r,i=s),s=this.layoutConfig.disableVendorPrefixes?i:bD(i),this._applyMultiValueStyleToElement(s,e)}applyStyleToElements(e,i=[]){const r=this.layoutConfig.disableVendorPrefixes?e:bD(e);i.forEach(s=>{this._applyMultiValueStyleToElement(r,s)})}getFlowDirection(e){const i="flex-direction";let r=this.lookupStyle(e,i);return[r||"row",this.lookupInlineStyle(e,i)||Io(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,i){var r;return null!==(r=e.getAttribute(i))&&void 0!==r?r:""}lookupInlineStyle(e,i){return jr(this._platformId)?e.style.getPropertyValue(i):function TN(n,t){var e;return null!==(e=SD(n)[t])&&void 0!==e?e:""}(e,i)}lookupStyle(e,i,r=!1){let s="";return e&&((s=this.lookupInlineStyle(e,i))||(jr(this._platformId)?r||(s=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(s=this._serverStylesheet.getStyleForElement(e,i)))),s?s.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(r=>{const s=e[r],o=Array.isArray(s)?s:[s];o.sort();for(let a of o)a=a?a+"":"",jr(this._platformId)||!this._serverModuleLoaded?jr(this._platformId)?i.style.setProperty(r,a):IN(i,r,a):this._serverStylesheet.addStyleToElement(i,r,a)})}}return n.\u0275fac=function(e){return new(e||n)(S(AN),S(Fo),S(_i),S(Ui))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function IN(n,t,e){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=SD(n);i[t]=null!=e?e:"",function kN(n,t){let e="";for(const i in t)t[i]&&(e+=`${i}:${t[i]};`);n.setAttribute("style",e)}(n,i)}function SD(n){const t={},e=n.getAttribute("style");if(e){const i=e.split(/;+/g);for(let r=0;r<i.length;r++){const s=i[r].trim();if(s.length>0){const o=s.indexOf(":");if(-1===o)throw new Error(`Invalid CSS style: ${s}`);t[s.substr(0,o).trim()]=s.substr(o+1).trim()}}}return t}function Ua(n,t){return(t&&t.priority||0)-(n&&n.priority||0)}function ON(n,t){return(n.priority||0)-(t.priority||0)}let dp=(()=>{class n{constructor(e,i,r){this._zone=e,this._platformId=i,this._document=r,this.source=new op(new Ds(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((i,r)=>{i.matches&&e.push(r)}),e}isActive(e){var i;const r=this.registry.get(e);return null!==(i=null==r?void 0:r.matches)&&void 0!==i?i:this.registerQuery(e).some(s=>s.matches)}observe(e,i=!1){if(e&&e.length){const r=this._observable$.pipe(Tn(o=>!i||e.indexOf(o.mediaQuery)>-1));return qt(new Y(o=>{const a=this.registerQuery(e);if(a.length){const l=a.pop();a.forEach(c=>{o.next(c)}),this.source.next(l)}o.complete()}),r)}return this._observable$}registerQuery(e){const i=Array.isArray(e)?e:[e],r=[];return function FN(n,t){const e=n.filter(i=>!MD[i]);if(e.length>0){const i=e.join(", ");try{const r=t.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(t.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${i} {.fx-query-test{ }}\n`)),t.head.appendChild(r),e.forEach(s=>MD[s]=r)}catch(r){console.error(r)}}}(i,this._document),i.forEach(s=>{const o=l=>{this._zone.run(()=>this.source.next(new Ds(l.matches,s)))};let a=this.registry.get(s);a||(a=this.buildMQL(s),a.addListener(o),this.pendingRemoveListenerFns.push(()=>a.removeListener(o)),this.registry.set(s,a)),a.matches&&r.push(new Ds(!0,s))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function RN(n,t){return t&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,jr(this._platformId))}}return n.\u0275fac=function(e){return new(e||n)(S($e),S(_i),S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const MD={},PN=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],AD="(orientation: portrait) and (max-width: 599.98px)",TD="(orientation: landscape) and (max-width: 959.98px)",ID="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",kD="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",OD="(orientation: portrait) and (min-width: 840px)",FD="(orientation: landscape) and (min-width: 1280px)",Mr={HANDSET:`${AD}, ${TD}`,TABLET:`${ID} , ${kD}`,WEB:`${OD}, ${FD} `,HANDSET_PORTRAIT:`${AD}`,TABLET_PORTRAIT:`${ID} `,WEB_PORTRAIT:`${OD}`,HANDSET_LANDSCAPE:`${TD}`,TABLET_LANDSCAPE:`${kD}`,WEB_LANDSCAPE:`${FD}`},NN=[{alias:"handset",priority:2e3,mediaQuery:Mr.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Mr.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Mr.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Mr.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Mr.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Mr.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Mr.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Mr.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Mr.WEB_PORTRAIT,overlapping:!0}],LN=/(\.|-|_)/g;function VN(n){let t=n.length>0?n.charAt(0):"",e=n.length>1?n.slice(1):"";return t.toUpperCase()+e}const $N=new ne("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=to(up),t=to(Ui),e=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r]));return function jN(n,t=[]){const e={};return n.forEach(i=>{e[i.alias]=i}),t.forEach(i=>{e[i.alias]?Sr(e[i.alias],i):e[i.alias]=i}),function HN(n){return n.forEach(t=>{t.suffix||(t.suffix=function BN(n){return n.replace(LN,"|").split("|").map(VN).join("")}(t.alias),t.overlapping=!!t.overlapping)}),n}(Object.keys(e).map(i=>e[i]))}((t.disableDefaultBps?[]:PN).concat(t.addOrientationBps?NN:[]),e)}});let hp=(()=>{class n{constructor(e){this.findByMap=new Map,this.items=[...e].sort(ON)}findByAlias(e){return e?this.findWithPredicate(e,i=>i.alias===e):null}findByQuery(e){return this.findWithPredicate(e,i=>i.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var i;return null!==(i=null==e?void 0:e.suffix)&&void 0!==i?i:""})}findWithPredicate(e,i){var r;let s=this.findByMap.get(e);return s||(s=null!==(r=this.items.find(i))&&void 0!==r?r:null,this.findByMap.set(e,s)),null!=s?s:null}}return n.\u0275fac=function(e){return new(e||n)(S($N))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ro="print",zN={alias:Ro,mediaQuery:Ro,priority:1e3};let GN=(()=>{class n{constructor(e,i,r){this.breakpoints=e,this.layoutConfig=i,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new UN,this.deactivations=[]}withPrintQuery(e){return[...e,Ro]}isPrintEvent(e){return e.mediaQuery.startsWith(Ro)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const i=this.breakpoints.findByQuery(e);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(Ua)}updateEvent(e){var i;let r=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(r=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(i=null==r?void 0:r.mediaQuery)&&void 0!==i?i:""),xD(e,r)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new Ds(!0,Ro))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(r)}interceptEvents(e){return i=>{this.isPrintEvent(i)?i.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(i)),e.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!i.matches){const r=this.breakpoints.findByQuery(i.mediaQuery);if(r){const s=this.formerActivations&&this.formerActivations.includes(r),o=!this.formerActivations&&e.activatedBreakpoints.includes(r);(s||o)&&(this.deactivations.push(r),this.deactivations.sort(Ua))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return n.\u0275fac=function(e){return new(e||n)(S(hp),S(Ui),S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class UN{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(zN),t.sort(Ua),t.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function WN(n){var t;return null!==(t=null==n?void 0:n.mediaQuery.startsWith(Ro))&&void 0!==t&&t}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}let kt=(()=>{class n{constructor(e,i,r){this.matchMedia=e,this.breakpoints=i,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new O,this.observeActivations()}get activatedAlias(){var e,i;return null!==(i=null===(e=this.activatedBreakpoints[0])||void 0===e?void 0:e.alias)&&void 0!==i?i:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const i=this.findByQuery(e.mediaQuery);if(i){e=xD(e,i);const r=this.activatedBreakpoints.indexOf(i);e.matches&&-1===r?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(Ua),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(Ua),this.updateStyles())}}init(e,i,r,s,o=[]){RD(this.updateMap,e,i,r),RD(this.clearMap,e,i,s),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,o)}getValue(e,i,r){const s=this.elementMap.get(e);if(s){const o=void 0!==r?s.get(r):this.getActivatedValues(s,i);if(o)return o.get(i)}}hasValue(e,i){const r=this.elementMap.get(e);if(r){const s=this.getActivatedValues(r,i);if(s)return void 0!==s.get(i)||!1}return!1}setValue(e,i,r,s){var o;let a=this.elementMap.get(e);if(a){const c=(null!==(o=a.get(s))&&void 0!==o?o:new Map).set(i,r);a.set(s,c),this.elementMap.set(e,a)}else a=(new Map).set(s,(new Map).set(i,r)),this.elementMap.set(e,a);const l=this.getValue(e,i);void 0!==l&&this.updateElement(e,i,l)}trackValue(e,i){return this.subject.asObservable().pipe(Tn(r=>r.element===e&&r.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{const r=new Set(this.elementKeyMap.get(i));let s=this.getActivatedValues(e);s&&s.forEach((o,a)=>{this.updateElement(i,a,o),r.delete(a)}),r.forEach(o=>{if(s=this.getActivatedValues(e,o),s){const a=s.get(o);this.updateElement(i,o,a)}else this.clearElement(i,o)})})}clearElement(e,i){const r=this.clearMap.get(e);if(r){const s=r.get(i);s&&(s(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,r){const s=this.updateMap.get(e);if(s){const o=s.get(i);o&&(o(r),this.subject.next({element:e,key:i,value:r}))}}releaseElement(e){const i=this.watcherMap.get(e);i&&(i.forEach(s=>s.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((s,o)=>r.delete(o)),this.elementMap.delete(e))}triggerUpdate(e,i){const r=this.elementMap.get(e);if(r){const s=this.getActivatedValues(r,i);s&&(i?this.updateElement(e,i,s.get(i)):s.forEach((o,a)=>this.updateElement(e,a,o)))}}buildElementKeyMap(e,i){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(i)}watchExtraTriggers(e,i,r){if(r&&r.length){let s=this.watcherMap.get(e);if(s||(s=new Map,this.watcherMap.set(e,s)),!s.get(i)){const a=qt(...r).subscribe(()=>{const l=this.getValue(e,i);this.updateElement(e,i,l)});s.set(i,a)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let s=0;s<this.activatedBreakpoints.length;s++){const a=e.get(this.activatedBreakpoints[s].alias);if(a&&(void 0===i||a.has(i)&&null!=a.get(i)))return a}if(!this._useFallbacks)return;const r=e.get("");return void 0===i||r&&r.has(i)?r:void 0}observeActivations(){const e=this.breakpoints.items.map(i=>i.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(Ga(this.hook.interceptEvents(this)),Tn(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(e){return new(e||n)(S(dp),S(hp),S(GN))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function RD(n,t,e,i){var r;if(void 0!==i){const s=null!==(r=n.get(t))&&void 0!==r?r:new Map;s.set(e,i),n.set(t,s)}}let Nt=(()=>{class n{constructor(e,i,r,s){this.elementRef=e,this.styleBuilder=i,this.styler=r,this.marshal=s,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new O,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(i=>{if(-1!==this.inputs.indexOf(i)){const r=i.split(".").slice(1).join(".");this.setValue(e[i].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,i){const r=this.styleBuilder,s=r.shouldCache;let o=this.styleCache.get(e);(!o||!s)&&(o=r.buildStyles(e,i),s&&this.styleCache.set(e,o)),this.mru=Object.assign({},o),this.applyStyleToElement(o),r.sideEffect(e,o,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){const[r,s]=this.styler.getFlowDirection(e);if(!s&&i){const o=DD(r);this.styler.applyStyleToElements(o,[e])}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,r=this.nativeElement){this.styler.applyStyleToElement(r,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(jt),g(bt),g(kt))},n.\u0275dir=T({type:n,features:[hn]}),n})();function PD(n,t="1",e="1"){let i=[t,e,n],r=n.indexOf("calc");if(r>0){i[2]=ND(n.substring(r).trim());let s=n.substr(0,r).trim().split(" ");2==s.length&&(i[0]=s[0],i[1]=s[1])}else if(0==r)i[2]=ND(n.trim());else{let s=n.split(" ");i=3===s.length?s:[t,e,n]}return i}function ND(n){return n.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function Ei(n){return null!=n&&"false"!=`${n}`}function VD(n,t=0){return function KN(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function Uc(n){return Array.isArray(n)?n:[n]}function en(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Po(n){return n instanceof de?n.nativeElement:n}function vt(n){return t=>t.lift(new XN(n))}class XN{constructor(t){this.notifier=t}call(t,e){const i=new QN(t),r=F(this.notifier,new Qn(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class QN extends C{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}let GD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[lp]]}),n})();const mL=new ne("cdk-dir-doc",{providedIn:"root",factory:function yL(){return to(ke)}}),vL=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Wc=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new ie,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function _L(n){const t=(null==n?void 0:n.toLowerCase())||"";return"auto"===t&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?vL.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(S(mL,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),No=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({}),n})(),wL=(()=>{class n extends jt{buildStyles(e,{display:i}){const r=DD(e);return Object.assign(Object.assign({},r),{display:"none"===i?i:r.display})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=se(n)))(i||n)}}(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const bL=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let DL=(()=>{class n extends Nt{constructor(e,i,r,s,o){super(e,r,i,s),this._config=o,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var i;const s=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(i=WD.get(s))&&void 0!==i?i:new Map,WD.set(s,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:s}),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(bt),g(wL),g(kt),g(Ui))},n.\u0275dir=T({type:n,features:[H]}),n})(),UD=(()=>{class n extends DL{constructor(){super(...arguments),this.inputs=bL}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=se(n)))(i||n)}}(),n.\u0275dir=T({type:n,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[H]}),n})();const WD=new Map;let RL=(()=>{class n extends jt{constructor(e){super(),this.layoutConfig=e}buildStyles(e,i){let[r,s,...o]=e.split(" "),a=o.join(" ");const l=i.direction.indexOf("column")>-1?"column":"row",c=za(l)?"max-width":"max-height",u=za(l)?"min-width":"min-height",d=String(a).indexOf("calc")>-1,h=d||"auto"===a,f=String(a).indexOf("%")>-1&&!d,p=String(a).indexOf("px")>-1||String(a).indexOf("rem")>-1||String(a).indexOf("em")>-1||String(a).indexOf("vw")>-1||String(a).indexOf("vh")>-1;let v=d||p;r="0"==r?0:r,s="0"==s?0:s;const D=!r&&!s;let E={};const w={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(a||""){case"":const M=!1!==this.layoutConfig.useColumnBasisZero;a="row"===l?"0%":M?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,a="auto";break;case"grow":a="100%";break;case"noshrink":s=0,a="auto";break;case"auto":break;case"none":r=0,s=0,a="auto";break;default:!v&&!f&&!isNaN(a)&&(a+="%"),"0%"===a&&(v=!0),"0px"===a&&(a="0%"),E=Sr(w,d?{"flex-grow":r,"flex-shrink":s,"flex-basis":v?a:"100%"}:{flex:`${r} ${s} ${v?a:"100%"}`})}return E.flex||E["flex-grow"]||(E=Sr(w,d?{"flex-grow":r,"flex-shrink":s,"flex-basis":a}:{flex:`${r} ${s} ${a}`})),"0%"!==a&&"0px"!==a&&"0.000000001px"!==a&&"auto"!==a&&(E[u]=D||v&&r?a:null,E[c]=D||!h&&s?a:null),E[u]||E[c]?i.hasWrap&&(E[d?"flex-basis":"flex"]=E[c]?d?E[c]:`${r} ${s} ${E[c]}`:d?E[u]:`${r} ${s} ${E[u]}`):E=Sr(w,d?{"flex-grow":r,"flex-shrink":s,"flex-basis":a}:{flex:`${r} ${s} ${a}`}),Sr(E,{"box-sizing":"border-box"})}}return n.\u0275fac=function(e){return new(e||n)(S(Ui))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const PL=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let NL=(()=>{class n extends Nt{constructor(e,i,r,s,o){super(e,s,i,o),this.layoutConfig=r,this.marshal=o,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(e){this.flexShrink=e||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(e){this.flexGrow=e||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(vt(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(vt(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(e){const r=e.value.split(" ");this.direction=r[0],this.wrap=void 0!==r[1]&&"wrap"===r[1],this.triggerUpdate()}updateWithValue(e){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const r=this.direction,s=r.startsWith("row"),o=this.wrap;s&&o?this.styleCache=BL:s&&!o?this.styleCache=LL:!s&&o?this.styleCache=HL:!s&&!o&&(this.styleCache=VL);const l=PD(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(l.join(" "),{direction:r,hasWrap:o})}triggerReflow(){const e=this.activatedValue;if(void 0!==e){const i=PD(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,i.join(" "))}}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(bt),g(Ui),g(RL),g(kt))},n.\u0275dir=T({type:n,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[H]}),n})(),KD=(()=>{class n extends NL{constructor(){super(...arguments),this.inputs=PL}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=se(n)))(i||n)}}(),n.\u0275dir=T({type:n,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[H]}),n})();const LL=new Map,VL=new Map,BL=new Map,HL=new Map;let cV=(()=>{class n extends jt{buildStyles(e,i){const r={},[s,o]=e.split(" ");switch(s){case"center":r["justify-content"]="center";break;case"space-around":r["justify-content"]="space-around";break;case"space-between":r["justify-content"]="space-between";break;case"space-evenly":r["justify-content"]="space-evenly";break;case"end":case"flex-end":r["justify-content"]="flex-end";break;default:r["justify-content"]="flex-start"}switch(o){case"start":case"flex-start":r["align-items"]=r["align-content"]="flex-start";break;case"center":r["align-items"]=r["align-content"]="center";break;case"end":case"flex-end":r["align-items"]=r["align-content"]="flex-end";break;case"space-between":r["align-content"]="space-between",r["align-items"]="stretch";break;case"space-around":r["align-content"]="space-around",r["align-items"]="stretch";break;case"baseline":r["align-content"]="stretch",r["align-items"]="baseline";break;default:r["align-items"]=r["align-content"]="stretch"}return Sr(r,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":"stretch"===o?za(i.layout)?null:"100%":null,"max-height":"stretch"===o&&za(i.layout)?"100%":null})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=se(n)))(i||n)}}(),n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const uV=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let dV=(()=>{class n extends Nt{constructor(e,i,r,s){super(e,r,i,s),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(vt(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){const i=this.layout||"row",r=this.inline;"row"===i&&r?this.styleCache=mV:"row"!==i||r?"row-reverse"===i&&r?this.styleCache=vV:"row-reverse"!==i||r?"column"===i&&r?this.styleCache=yV:"column"!==i||r?"column-reverse"===i&&r?this.styleCache=_V:"column-reverse"===i&&!r&&(this.styleCache=gV):this.styleCache=fV:this.styleCache=pV:this.styleCache=hV,this.addStyles(e,{layout:i,inline:r})}onLayoutChange(e){const i=e.value.split(" ");this.layout=i[0],this.inline=e.value.includes("inline"),zc.find(r=>r===this.layout)||(this.layout="row"),this.triggerUpdate()}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(bt),g(cV),g(kt))},n.\u0275dir=T({type:n,features:[H]}),n})(),XD=(()=>{class n extends dV{constructor(){super(...arguments),this.inputs=uV}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=se(n)))(i||n)}}(),n.\u0275dir=T({type:n,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[H]}),n})();const hV=new Map,fV=new Map,pV=new Map,gV=new Map,mV=new Map,yV=new Map,vV=new Map,_V=new Map;let QD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[lp,No]]}),n})(),sC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[lp]]}),n})(),jB=(()=>{class n{constructor(e,i){Io(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:n,providers:e.serverLoaded?[{provide:Ui,useValue:Object.assign(Object.assign({},cp),e)},{provide:up,useValue:i,multi:!0},{provide:Fo,useValue:!0}]:[{provide:Ui,useValue:Object.assign(Object.assign({},cp),e)},{provide:up,useValue:i,multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)(S(Fo),S(_i))},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[QD,GD,sC],QD,GD,sC]}),n})();function qc(n,t){return new Y(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=pr(n[a]);let c=!1;e.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>e.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&e.next(t?t.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let KC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({}),n})(),HH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[KC]]}),n})(),jH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[HH]}),n})();class fE{}const Ar="*";function pE(n,t){return{type:7,name:n,definitions:t,options:{}}}function ru(n,t=null){return{type:4,styles:t,timings:n}}function gE(n,t=null){return{type:2,steps:n,options:t}}function lr(n){return{type:6,styles:n,offset:null}}function su(n,t,e){return{type:0,name:n,styles:t,options:e}}function zH(n){return{type:5,steps:n}}function ou(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function mE(n){Promise.resolve(null).then(n)}class Xa{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){mE(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class yE{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const s=this.players.length;0==s?mE(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const Ye=!1;function vE(n){return new K(3e3,Ye)}function E2(){return"undefined"!=typeof window&&void 0!==window.document}function Vp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Yr(n){switch(n.length){case 0:return new Xa;case 1:return n[0];default:return new yE(n)}}function _E(n,t,e,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,f=h&&c||{};Object.keys(u).forEach(p=>{let v=p,D=u[p];if("offset"!==p)switch(v=t.normalizePropertyName(v,o),D){case"!":D=r[p];break;case Ar:D=s[p];break;default:D=t.normalizeStyleValue(p,v,D,o)}f[v]=D}),h||a.push(f),c=f,l=d}),o.length)throw function f2(n){return new K(3502,Ye)}();return a}function Bp(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Hp(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Hp(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Hp(e,"destroy",n)))}}function Hp(n,t,e){const i=e.totalTime,s=jp(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function jp(n,t,e,i,r="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function li(n,t,e){let i;return n instanceof Map?(i=n.get(t),i||n.set(t,i=e)):(i=n[t],i||(i=n[t]=e)),i}function wE(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let $p=(n,t)=>!1,bE=(n,t,e)=>[],DE=null;function zp(n){const t=n.parentNode||n.host;return t===DE?null:t}(Vp()||"undefined"!=typeof Element)&&(E2()?(DE=(()=>document.documentElement)(),$p=(n,t)=>{for(;t;){if(t===n)return!0;t=zp(t)}return!1}):$p=(n,t)=>n.contains(t),bE=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let xs=null,CE=!1;function EE(n){xs||(xs=function S2(){return"undefined"!=typeof document?document.body:null}()||{},CE=!!xs.style&&"WebkitAppearance"in xs.style);let t=!0;return xs.style&&!function x2(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in xs.style,!t&&CE&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in xs.style)),t}const xE=$p,SE=bE;let ME=(()=>{class n{validateStyleProperty(e){return EE(e)}matchesElement(e,i){return!1}containsElement(e,i){return xE(e,i)}getParentElement(e){return zp(e)}query(e,i,r){return SE(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new Xa(r,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})(),Gp=(()=>{class n{}return n.NOOP=new ME,n})();const Up="ng-enter",lu="ng-leave",cu="ng-trigger",uu=".ng-trigger",TE="ng-animating",Wp=".ng-animating";function Ss(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Yp(parseFloat(t[1]),t[2])}function Yp(n,t){return"s"===t?1e3*n:n}function du(n,t,e){return n.hasOwnProperty("duration")?n:function T2(n,t,e){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(vE()),{duration:0,delay:0,easing:""};r=Yp(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Yp(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function GH(){return new K(3100,Ye)}()),a=!0),s<0&&(t.push(function UH(){return new K(3101,Ye)}()),a=!0),a&&t.splice(l,0,vE())}return{duration:r,delay:s,easing:o}}(n,t,e)}function Vo(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function qr(n,t,e={}){if(t)for(let i in n)e[i]=n[i];else Vo(n,e);return e}function kE(n,t,e){return e?t+":"+e+";":""}function OE(n){let t="";for(let e=0;e<n.style.length;e++){const i=n.style.item(e);t+=kE(0,i,n.style.getPropertyValue(i))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=kE(0,O2(e),n.style[e]));n.setAttribute("style",t)}function cr(n,t,e){n.style&&(Object.keys(t).forEach(i=>{const r=Kp(i);e&&!e.hasOwnProperty(i)&&(e[i]=n.style[r]),n.style[r]=t[i]}),Vp()&&OE(n))}function Ms(n,t){n.style&&(Object.keys(t).forEach(e=>{const i=Kp(e);n.style[i]=""}),Vp()&&OE(n))}function Qa(n){return Array.isArray(n)?1==n.length?n[0]:gE(n):n}const qp=new RegExp("{{\\s*(.+?)\\s*}}","g");function FE(n){let t=[];if("string"==typeof n){let e;for(;e=qp.exec(n);)t.push(e[1]);qp.lastIndex=0}return t}function hu(n,t,e){const i=n.toString(),r=i.replace(qp,(s,o)=>{let a=t[o];return t.hasOwnProperty(o)||(e.push(function YH(n){return new K(3003,Ye)}()),a=""),a.toString()});return r==i?n:r}function fu(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const k2=/-+([a-z0-9])/g;function Kp(n){return n.replace(k2,(...t)=>t[1].toUpperCase())}function O2(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ci(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function qH(n){return new K(3004,Ye)}()}}function RE(n,t){return window.getComputedStyle(n)[t]}function V2(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function B2(n,t,e){if(":"==n[0]){const l=function H2(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return t.push(function c2(n){return new K(3016,Ye)}()),"* => *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function l2(n){return new K(3015,Ye)}()),t;const r=i[1],s=i[2],o=i[3];t.push(PE(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&t.push(PE(o,r))}(i,e,t)):e.push(n),e}const yu=new Set(["true","1"]),vu=new Set(["false","0"]);function PE(n,t){const e=yu.has(n)||vu.has(n),i=yu.has(t)||vu.has(t);return(r,s)=>{let o="*"==n||n==r,a="*"==t||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?yu.has(n):vu.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?yu.has(t):vu.has(t)),o&&a}}const j2=new RegExp("s*:selfs*,?","g");function Xp(n,t,e,i){return new $2(n).build(t,e,i)}class $2{constructor(t){this._driver=t}build(t,e,i){const r=new U2(e);this._resetContextStyleTimingState(r);const s=ci(this,Qa(t),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push(function XH(){return new K(3006,Ye)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push(function QH(){return new K(3007,Ye)}())}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(_u(a)){const l=a;Object.keys(l).forEach(c=>{FE(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&(fu(s.values()),e.errors.push(function ZH(n,t){return new K(3008,Ye)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=ci(this,Qa(t.animation),e);return{type:1,matchers:V2(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:As(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>ci(this,i,e)),options:As(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=i;const a=ci(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:As(t.options)}}visitAnimate(t,e){const i=function Y2(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Qp(du(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Qp(0,0,"");return s.dynamic=!0,s.strValue=e,s}const r=du(e,t);return Qp(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:lr({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=lr(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(o=>{"string"==typeof o?o==Ar?i.push(o):e.errors.push(function JH(n){return new K(3002,Ye)}()):i.push(o)}):i.push(t.styles);let r=!1,s=null;return i.forEach(o=>{if(_u(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void e.unsupportedCSSPropertiesFound.add(a);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(e.errors.push(function e2(n,t,e,i,r){return new K(3010,Ye)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),e.options&&function I2(n,t,e){const i=t.params||{},r=FE(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(function WH(n){return new K(3001,Ye)}())})}(o[a],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function t2(){return new K(3011,Ye)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=t.steps.map(E=>{const w=this._makeStyleAst(E,e);let M=null!=w.offset?w.offset:function W2(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(_u(e)&&e.hasOwnProperty("offset")){const i=e;t=parseFloat(i.offset),delete i.offset}});else if(_u(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(w.styles),k=0;return null!=M&&(s++,k=w.offset=M),l=l||k<0||k>1,a=a||k<c,c=k,o.push(k),w});l&&e.errors.push(function n2(){return new K(3012,Ye)}()),a&&e.errors.push(function r2(){return new K(3200,Ye)}());const d=t.steps.length;let h=0;s>0&&s<d?e.errors.push(function s2(){return new K(3202,Ye)}()):0==s&&(h=1/(d-1));const f=d-1,p=e.currentTime,v=e.currentAnimateTimings,D=v.duration;return u.forEach((E,w)=>{const M=h>0?w==f?1:h*w:o[w],k=M*D;e.currentTime=p+v.delay+k,v.duration=k,this._validateStyleAst(E,e),E.offset=M,i.styles.push(E)}),i}visitReference(t,e){return{type:8,animation:ci(this,Qa(t.animation),e),options:As(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:As(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:As(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function z2(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(j2,"")),n=n.replace(/@\*/g,uu).replace(/@\w+/g,e=>uu+"-"+e.substr(1)).replace(/:animating/g,Wp),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,li(e.collectedStyles,e.currentQuerySelector,{});const a=ci(this,Qa(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:As(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function o2(){return new K(3013,Ye)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:du(t.timings,e.errors,!0);return{type:12,animation:ci(this,Qa(t.animation),e),timings:i,options:null}}}class U2{constructor(t){this.errors=t,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 _u(n){return!Array.isArray(n)&&"object"==typeof n}function As(n){return n?(n=Vo(n)).params&&(n.params=function G2(n){return n?Vo(n):null}(n.params)):n={},n}function Qp(n,t,e){return{duration:n,delay:t,easing:e}}function Zp(n,t,e,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class wu{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const X2=new RegExp(":enter","g"),Z2=new RegExp(":leave","g");function Jp(n,t,e,i,r,s={},o={},a,l,c=[]){return(new J2).buildKeyframes(n,t,e,i,r,s,o,a,l,c)}class J2{buildKeyframes(t,e,i,r,s,o,a,l,c,u=[]){c=c||new wu;const d=new eg(t,e,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),ci(this,i,d);const h=d.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let p=h.length-1;p>=0;p--){const v=h[p];if(v.element===e){f=v;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[Zp(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?Ss(i.duration):null,a=null!=i.delay?Ss(i.delay):null;return 0!==o&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),ci(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=bu);const o=Ss(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>ci(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Ss(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),ci(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return du(e.params?hu(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?Ss(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bu);let o=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);s&&d.delayNextStep(s),c===e.element&&(l=d.currentTimeline),ci(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;ci(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const bu={};class eg{constructor(t,e,i,r,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Du(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=Ss(i.duration)),null!=i.delay&&(r.delay=Ss(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=hu(s[a],o,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,s=new eg(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=bu,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new ej(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(X2,"."+this._enterClassName)).replace(Z2,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function a2(n){return new K(3014,Ye)}()),a}}class Du{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Du(this._driver,t,e||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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Ar,this._currentKeyframe[e]=Ar}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},o=function tj(n,t){const e={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(t),i.forEach(s=>{e[s]=Ar})):qr(r,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=hu(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Ar),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=t[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],r=t._styleSummary[e];(!i||r.time>i.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=qr(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?t.add(u):d==Ar&&e.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=t.size?fu(t.values()):[],o=e.size?fu(e.values()):[];if(i){const a=r[0],l=Vo(a);a.offset=0,l.offset=1,r=[a,l]}return Zp(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class ej extends Du{constructor(t,e,i,r,s,o,a=!1){super(t,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,l=qr(t[0],!1);l.offset=0,s.push(l);const c=qr(t[0],!1);c.offset=VE(a),s.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=qr(t[d],!1);h.offset=VE((e+h.offset*i)/o),s.push(h)}i=o,e=0,r="",t=s}return Zp(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function VE(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class tg{}class nj extends tg{normalizePropertyName(t,e){return Kp(t)}normalizeStyleValue(t,e,i,r){let s="";const o=i.toString().trim();if(ij[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function KH(n,t){return new K(3005,Ye)}())}return o+s}}const ij=(()=>function rj(n){const t={};return n.forEach(e=>t[e]=!0),t}("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 BE(n,t,e,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const ng={};class HE{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function sj(n,t,e,i,r){return n.some(s=>s(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){const r=this._stateStyles["*"],s=this._stateStyles[t],o=r?r.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||ng,p=this.buildStyles(i,a&&a.params||ng,d),v=l&&l.params||ng,D=this.buildStyles(r,v,d),E=new Set,w=new Map,M=new Map,k="void"===r,j={params:Object.assign(Object.assign({},h),v)},be=u?[]:Jp(t,e,this.ast.animation,s,o,p,D,j,c,d);let Fe=0;if(be.forEach(fe=>{Fe=Math.max(fe.duration+fe.delay,Fe)}),d.length)return BE(e,this._triggerName,i,r,k,p,D,[],[],w,M,Fe,d);be.forEach(fe=>{const ae=fe.element,Q=li(w,ae,{});fe.preStyleProps.forEach(je=>Q[je]=!0);const N=li(M,ae,{});fe.postStyleProps.forEach(je=>N[je]=!0),ae!==e&&E.add(ae)});const Ce=fu(E.values());return BE(e,this._triggerName,i,r,k,p,D,be,Ce,w,M,Fe)}}class oj{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i={},r=Vo(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=hu(l,r,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class lj{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new oj(r.style,r.options&&r.options.params||{},i)}),jE(this.states,"true","1"),jE(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new HE(t,r,this.states))}),this.fallbackTransition=function cj(n,t,e){return new HE(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function jE(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const uj=new wu;class dj{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],s=Xp(this._driver,e,i,[]);if(i.length)throw function p2(n){return new K(3503,Ye)}();this._animations[t]=s}_buildPlayer(t,e,i){const r=t.element,s=_E(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],s=this._animations[t];let o;const a=new Map;if(s?(o=Jp(this._driver,e,s,Up,lu,{},{},i,uj,r),o.forEach(u=>{const d=li(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function g2(){return new K(3300,Ye)}()),o=[]),r.length)throw function m2(n){return new K(3504,Ye)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,Ar)})});const c=Yr(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw function y2(n){return new K(3301,Ye)}();return e}listen(t,e,i,r){const s=jp(e,"","","");return Bp(this._getPlayer(t),i,s,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const $E="ng-animate-queued",ig="ng-animate-disabled",mj=[],zE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},yj={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},xi="__ng_removed";class rg{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function bj(n){return null!=n?n:null}(i?t.value:t),i){const s=Vo(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Za="void",sg=new rg(Za);class vj{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Si(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.hasOwnProperty(e))throw function v2(n,t){return new K(3302,Ye)}();if(null==i||0==i.length)throw function _2(n){return new K(3303,Ye)}();if(!function Dj(n){return"start"==n||"done"==n}(i))throw function w2(n,t){return new K(3400,Ye)}();const s=li(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};s.push(o);const a=li(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Si(t,cu),Si(t,cu+"-"+e),a[e]=sg),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw function b2(n){return new K(3401,Ye)}();return e}trigger(t,e,i,r=!0){const s=this._getTrigger(e),o=new og(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(Si(t,cu),Si(t,cu+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new rg(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=sg),c.value!==Za&&l.value===c.value){if(!function xj(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const s=e[r];if(!t.hasOwnProperty(s)||n[s]!==t[s])return!1}return!0}(l.params,c.params)){const v=[],D=s.matchStyles(l.value,l.params,v),E=s.matchStyles(c.value,c.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{Ms(t,D),cr(t,E)})}return}const h=li(this._engine.playersByElement,t,[]);h.forEach(v=>{v.namespaceId==this.id&&v.triggerName==e&&v.queued&&v.destroy()});let f=s.matchTransition(l.value,c.value,t,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(Si(t,$E),o.onStart(()=>{Bo(t,$E)})),o.onDone(()=>{let v=this.players.indexOf(o);v>=0&&this.players.splice(v,1);const D=this._engine.playersByElement.get(t);if(D){let E=D.indexOf(o);E>=0&&D.splice(E,1)}}),this.players.push(o),h.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,uu,!0);i.forEach(r=>{if(r[xi])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const s=this._engine.statesByElement.get(t),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(t,l,Za,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),i&&Yr(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||sg,u=new rg(Za),d=new og(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const s=t[xi];(!s||s===zE)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Si(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=jp(s,i.triggerName,i.fromState.value,i.toState.value);l._data=t,Bp(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class _j{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(r,s)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new vj(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,e)){i.splice(a+1,0,t),o=!0;break}o||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&e.add(a)}}}return e}trigger(t,e,i,r){if(Cu(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!Cu(e))return;const s=e[xi];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Si(t,ig)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Bo(t,ig))}removeNode(t,e,i,r){if(Cu(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,s){this.collectedLeaveElements.push(e),e[xi]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,r,s){return Cu(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,uu,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Wp,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Yr(this.players).onDone(()=>t());t()})}processLeaveNode(t){var e;const i=t[xi];if(i&&i.setForRemoval){if(t[xi]=zE,i.namespaceId){this.destroyInnerAnimations(t);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,i.setForRemoval)}(null===(e=t.classList)||void 0===e?void 0:e.contains(ig))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Si(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,t)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Yr(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function D2(n){return new K(3402,Ye)}()}_flushAnimations(t,e){const i=new wu,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(W=>{u.add(W);const le=this.driver.query(W,".ng-animate-queued",!0);for(let ue=0;ue<le.length;ue++)u.add(le[ue])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=WE(h,this.collectedEnterElements),p=new Map;let v=0;f.forEach((W,le)=>{const ue=Up+v++;p.set(le,ue),W.forEach(Ue=>Si(Ue,ue))});const D=[],E=new Set,w=new Set;for(let W=0;W<this.collectedLeaveElements.length;W++){const le=this.collectedLeaveElements[W],ue=le[xi];ue&&ue.setForRemoval&&(D.push(le),E.add(le),ue.hasAnimation?this.driver.query(le,".ng-star-inserted",!0).forEach(Ue=>E.add(Ue)):w.add(le))}const M=new Map,k=WE(h,Array.from(E));k.forEach((W,le)=>{const ue=lu+v++;M.set(le,ue),W.forEach(Ue=>Si(Ue,ue))}),t.push(()=>{f.forEach((W,le)=>{const ue=p.get(le);W.forEach(Ue=>Bo(Ue,ue))}),k.forEach((W,le)=>{const ue=M.get(le);W.forEach(Ue=>Bo(Ue,ue))}),D.forEach(W=>{this.processLeaveNode(W)})});const j=[],be=[];for(let W=this._namespaceList.length-1;W>=0;W--)this._namespaceList[W].drainQueuedTransitions(e).forEach(ue=>{const Ue=ue.player,Qe=ue.element;if(j.push(Ue),this.collectedEnterElements.length){const $n=Qe[xi];if($n&&$n.setForMove){if($n.previousTriggersValues&&$n.previousTriggersValues.has(ue.triggerName)){const Ls=$n.previousTriggersValues.get(ue.triggerName),ns=this.statesByElement.get(ue.element);ns&&ns[ue.triggerName]&&(ns[ue.triggerName].value=Ls)}return void Ue.destroy()}}const Ot=!d||!this.driver.containsElement(d,Qe),gn=M.get(Qe),Mi=p.get(Qe),pt=this._buildInstruction(ue,i,Mi,gn,Ot);if(pt.errors&&pt.errors.length)return void be.push(pt);if(Ot)return Ue.onStart(()=>Ms(Qe,pt.fromStyles)),Ue.onDestroy(()=>cr(Qe,pt.toStyles)),void r.push(Ue);if(ue.isFallbackTransition)return Ue.onStart(()=>Ms(Qe,pt.fromStyles)),Ue.onDestroy(()=>cr(Qe,pt.toStyles)),void r.push(Ue);const ml=[];pt.timelines.forEach($n=>{$n.stretchStartingKeyframe=!0,this.disabledNodes.has($n.element)||ml.push($n)}),pt.timelines=ml,i.append(Qe,pt.timelines),o.push({instruction:pt,player:Ue,element:Qe}),pt.queriedElements.forEach($n=>li(a,$n,[]).push(Ue)),pt.preStyleProps.forEach(($n,Ls)=>{const ns=Object.keys($n);if(ns.length){let Vs=l.get(Ls);Vs||l.set(Ls,Vs=new Set),ns.forEach(qg=>Vs.add(qg))}}),pt.postStyleProps.forEach(($n,Ls)=>{const ns=Object.keys($n);let Vs=c.get(Ls);Vs||c.set(Ls,Vs=new Set),ns.forEach(qg=>Vs.add(qg))})});if(be.length){const W=[];be.forEach(le=>{W.push(function C2(n,t){return new K(3505,Ye)}())}),j.forEach(le=>le.destroy()),this.reportError(W)}const Fe=new Map,Ce=new Map;o.forEach(W=>{const le=W.element;i.has(le)&&(Ce.set(le,le),this._beforeAnimationBuild(W.player.namespaceId,W.instruction,Fe))}),r.forEach(W=>{const le=W.element;this._getPreviousPlayers(le,!1,W.namespaceId,W.triggerName,null).forEach(Ue=>{li(Fe,le,[]).push(Ue),Ue.destroy()})});const fe=D.filter(W=>qE(W,l,c)),ae=new Map;UE(ae,this.driver,w,c,Ar).forEach(W=>{qE(W,l,c)&&fe.push(W)});const N=new Map;f.forEach((W,le)=>{UE(N,this.driver,new Set(W),l,"!")}),fe.forEach(W=>{const le=ae.get(W),ue=N.get(W);ae.set(W,Object.assign(Object.assign({},le),ue))});const je=[],Ge=[],Ki={};o.forEach(W=>{const{element:le,player:ue,instruction:Ue}=W;if(i.has(le)){if(u.has(le))return ue.onDestroy(()=>cr(le,Ue.toStyles)),ue.disabled=!0,ue.overrideTotalTime(Ue.totalTime),void r.push(ue);let Qe=Ki;if(Ce.size>1){let gn=le;const Mi=[];for(;gn=gn.parentNode;){const pt=Ce.get(gn);if(pt){Qe=pt;break}Mi.push(gn)}Mi.forEach(pt=>Ce.set(pt,Qe))}const Ot=this._buildAnimation(ue.namespaceId,Ue,Fe,s,N,ae);if(ue.setRealPlayer(Ot),Qe===Ki)je.push(ue);else{const gn=this.playersByElement.get(Qe);gn&&gn.length&&(ue.parentPlayer=Yr(gn)),r.push(ue)}}else Ms(le,Ue.fromStyles),ue.onDestroy(()=>cr(le,Ue.toStyles)),Ge.push(ue),u.has(le)&&r.push(ue)}),Ge.forEach(W=>{const le=s.get(W.element);if(le&&le.length){const ue=Yr(le);W.setRealPlayer(ue)}}),r.forEach(W=>{W.parentPlayer?W.syncPlayerEvents(W.parentPlayer):W.destroy()});for(let W=0;W<D.length;W++){const le=D[W],ue=le[xi];if(Bo(le,lu),ue&&ue.hasAnimation)continue;let Ue=[];if(a.size){let Ot=a.get(le);Ot&&Ot.length&&Ue.push(...Ot);let gn=this.driver.query(le,Wp,!0);for(let Mi=0;Mi<gn.length;Mi++){let pt=a.get(gn[Mi]);pt&&pt.length&&Ue.push(...pt)}}const Qe=Ue.filter(Ot=>!Ot.destroyed);Qe.length?Cj(this,le,Qe):this.processLeaveNode(le)}return D.length=0,je.forEach(W=>{this.players.push(W),W.onDone(()=>{W.destroy();const le=this.players.indexOf(W);this.players.splice(le,1)}),W.play()}),je}elementContainsData(t,e){let i=!1;const r=e[xi];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const l=!s||s==Za;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,i){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,d=li(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Ms(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,o){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const v=p.element;u.add(v);const D=v[xi];if(D&&D.removedBeforeQueried)return new Xa(p.duration,p.delay);const E=v!==l,w=function Ej(n){const t=[];return YE(n,t),t}((i.get(v)||mj).map(Fe=>Fe.getRealPlayer())).filter(Fe=>!!Fe.element&&Fe.element===v),M=s.get(v),k=o.get(v),j=_E(0,this._normalizer,0,p.keyframes,M,k),be=this._buildPlayer(p,j,w);if(p.subTimeline&&r&&d.add(v),E){const Fe=new og(t,a,v);Fe.setRealPlayer(be),c.push(Fe)}return be});c.forEach(p=>{li(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function wj(n,t,e){let i;if(n instanceof Map){if(i=n.get(t),i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}}else if(i=n[t],i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&delete n[t]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Si(p,TE));const f=Yr(h);return f.onDestroy(()=>{u.forEach(p=>Bo(p,TE)),cr(l,e.toStyles)}),d.forEach(p=>{li(r,p,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Xa(t.duration,t.delay)}}class og{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Xa,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>Bp(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){li(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Cu(n){return n&&1===n.nodeType}function GE(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function UE(n,t,e,i,r){const s=[];e.forEach(l=>s.push(GE(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=t.computeStyle(c,d,r);(!h||0==h.length)&&(c[xi]=yj,o.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>GE(l,s[a++])),o}function WE(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return t.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function Si(n,t){var e;null===(e=n.classList)||void 0===e||e.add(t)}function Bo(n,t){var e;null===(e=n.classList)||void 0===e||e.remove(t)}function Cj(n,t,e){Yr(e).onDone(()=>n.processLeaveNode(t))}function YE(n,t){for(let e=0;e<n.length;e++){const i=n[e];i instanceof yE?YE(i.players,t):t.push(i)}}function qE(n,t,e){const i=e.get(n);if(!i)return!1;let r=t.get(n);return r?i.forEach(s=>r.add(s)):t.set(n,i),e.delete(n),!0}class Eu{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new _j(t,e,i),this._timelineEngine=new dj(t,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=Xp(this._driver,s,l,[]);if(l.length)throw function h2(n,t){return new K(3404,Ye)}();a=function aj(n,t,e){return new lj(n,t,e)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[s,o]=wE(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=wE(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Mj=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&cr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(cr(this._element,this._initialStyles),this._endStyles&&(cr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ms(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ms(this._element,this._endStyles),this._endStyles=null),cr(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ag(n){let t=null;const e=Object.keys(n);for(let i=0;i<e.length;i++){const r=e[i];Aj(r)&&(t=t||{},t[r]=n[r])}return t}function Aj(n){return"display"===n||"position"===n}class KE{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(i=>{"offset"!=i&&(t[i]=this._finished?e[i]:RE(this.element,i))})}this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Tj{validateStyleProperty(t){return EE(t)}matchesElement(t,e){return!1}containsElement(t,e){return xE(t,e)}getParentElement(t){return zp(t)}query(t,e,i){return SE(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(h=>h instanceof KE);(function F2(n,t){return 0===n||0===t})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),e=function R2(n,t,e){const i=Object.keys(e);if(i.length&&t.length){let s=t[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var r=1;r<t.length;r++){let a=t[r];o.forEach(function(l){a[l]=RE(n,l)})}}return t}(t,e=e.map(h=>qr(h,!1)),c);const d=function Sj(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=ag(t[0]),t.length>1&&(i=ag(t[t.length-1]))):t&&(e=ag(t)),e||i?new Mj(n,e,i):null}(t,e);return new KE(t,e,l,d)}}let Ij=(()=>{class n extends fE{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ii.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?gE(e):e;return XE(this._renderer,null,i,"register",[r]),new kj(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(S(Ta),S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class kj extends class $H{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Oj(this._id,t,e||{},this._renderer)}}class Oj{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return XE(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function XE(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const QE="@.disabled";let Fj=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new ZE("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,e,u.name,u)};return i.data.animation.forEach(l),new Rj(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&e<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}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 n.\u0275fac=function(e){return new(e||n)(S(Ta),S(Eu),S($e))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();class ZE{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==QE?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Rj extends ZE{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==QE?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function Pj(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function Nj(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let Lj=(()=>{class n extends Eu{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(S(ke),S(Gp),S(tg))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const Su=new ne("AnimationModuleType"),JE=[{provide:fE,useClass:Ij},{provide:tg,useFactory:function Vj(){return new nj}},{provide:Eu,useClass:Lj},{provide:Ta,useFactory:function Bj(n,t,e){return new Fj(n,t,e)},deps:[Vc,Eu,$e]}],e0=[{provide:Gp,useFactory:()=>new Tj},{provide:Su,useValue:"BrowserAnimations"},...JE],Hj=[{provide:Gp,useClass:ME},{provide:Su,useValue:"NoopAnimations"},...JE];let jj=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?Hj:e0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({providers:e0,imports:[fD]}),n})();var Mu=function(){return Mu=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},Mu.apply(this,arguments)};function b(n,t,e,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(s=(r<3?o(s):r>3?o(t,e,s):o(t,e))||s);return r>3&&s&&Object.defineProperty(t,e,s),s}function Ho(n,t){return function(e,i){t(e,i,n)}}function _(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}var Gj=function(){function n(){}return n.prototype.getAllStyles=function(t){return window.getComputedStyle(t)},n.prototype.getStyle=function(t,e){return this.getAllStyles(t)[e]},n.prototype.isStaticPositioned=function(t){return"static"===(this.getStyle(t,"position")||"static")},n.prototype.offsetParent=function(t){for(var e=t.offsetParent||document.documentElement;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement},n.prototype.position=function(t,e){void 0===e&&(e=!0);var i,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))i={top:(i=t.getBoundingClientRect()).top,bottom:i.bottom,left:i.left,right:i.right,height:i.height,width:i.width};else{var s=this.offsetParent(t);i=this.offset(t,!1),s!==document.documentElement&&(r=this.offset(s,!1)),r.top+=s.clientTop,r.left+=s.clientLeft}return i.top-=r.top,i.bottom-=r.top,i.left-=r.left,i.right-=r.left,e&&(i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i},n.prototype.offset=function(t,e){void 0===e&&(e=!0);var i=t.getBoundingClientRect(),r_top=window.pageYOffset-document.documentElement.clientTop,r_left=window.pageXOffset-document.documentElement.clientLeft,s={height:i.height||t.offsetHeight,width:i.width||t.offsetWidth,top:i.top+r_top,bottom:i.bottom+r_top,left:i.left+r_left,right:i.right+r_left};return e&&(s.height=Math.round(s.height),s.width=Math.round(s.width),s.top=Math.round(s.top),s.bottom=Math.round(s.bottom),s.left=Math.round(s.left),s.right=Math.round(s.right)),s},n.prototype.positionElements=function(t,e,i,r){var s=i.split("-"),o=s[0],a=void 0===o?"top":o,l=s[1],c=void 0===l?"center":l,u=r?this.offset(t,!1):this.position(t,!1),d=this.getAllStyles(e),h=parseFloat(d.marginTop),f=parseFloat(d.marginBottom),p=parseFloat(d.marginLeft),v=parseFloat(d.marginRight),D=0,E=0;switch(a){case"top":D=u.top-(e.offsetHeight+h+f);break;case"bottom":D=u.top+u.height;break;case"left":E=u.left-(e.offsetWidth+p+v);break;case"right":E=u.left+u.width}switch(c){case"top":D=u.top;break;case"bottom":D=u.top+u.height-e.offsetHeight;break;case"left":E=u.left;break;case"right":E=u.left+u.width-e.offsetWidth;break;case"center":"top"===a||"bottom"===a?E=u.left+u.width/2-e.offsetWidth/2:D=u.top+u.height/2-e.offsetHeight/2}e.style.transform="translate("+Math.round(E)+"px, "+Math.round(D)+"px)";var w=e.getBoundingClientRect(),M=document.documentElement,k=window.innerHeight||M.clientHeight,j=window.innerWidth||M.clientWidth;return w.left>=0&&w.top>=0&&w.right<=j&&w.bottom<=k},n}(),Uj=/\s+/,n0=new Gj;const Ja=new zi(Hc);function cg(n){return!Dt(n)&&n-parseFloat(n)+1>=0}function r0(n=0,t,e){let i=-1;return cg(t)?i=Number(t)<1?1:Number(t):ce(t)&&(e=t),ce(e)||(e=Ja),new Y(r=>{const s=cg(n)?n:+n-e.now();return e.schedule(Yj,s,{index:0,period:i,subscriber:r})})}function Yj(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}function ug(...n){return function Xj(){return Mt(1)}()(Gi(...n))}function Tu(...n){const t=n[n.length-1];return ce(t)?(n.pop(),e=>ug(n,e,t)):e=>ug(n,e)}var Wi=function(){return Wi=Object.assign||function(n){for(var t,e=1,i=arguments.length;e<i;e++)for(var r in t=arguments[e])Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},Wi.apply(this,arguments)},s0=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var i=Array(n),r=0;for(t=0;t<e;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,r++)i[r]=s[o];return i},el=(()=>(function(n){n[n.SUNDAY=0]="SUNDAY",n[n.MONDAY=1]="MONDAY",n[n.TUESDAY=2]="TUESDAY",n[n.WEDNESDAY=3]="WEDNESDAY",n[n.THURSDAY=4]="THURSDAY",n[n.FRIDAY=5]="FRIDAY",n[n.SATURDAY=6]="SATURDAY"}(el||(el={})),el))(),Zj=[el.SUNDAY,el.SATURDAY],Kr=86400;function o0(n,t){var e=t.startDate,r=t.excluded,s=t.precision;if(r.length<1)return 0;for(var a=n.getDay,l=n.addDays,c=(0,n.addSeconds)(e,t.seconds-1),u=a(e),d=a(c),h=0,f=e,p=function(){var v=a(f);r.some(function(D){return D===v})&&(h+=function Jj(n,t){var i=t.day,s=t.dayEnd,o=t.startDate,a=t.endDate,l=n.differenceInSeconds,u=n.startOfDay;if("minutes"===t.precision){if(i===t.dayStart)return l((0,n.endOfDay)(o),o)+1;if(i===s)return l(a,u(a))+1}return Kr}(n,{dayStart:u,dayEnd:d,day:v,precision:s,startDate:e,endDate:c})),f=l(f,1)};f<c;)p();return h}function tl(n,t){var i=t.periodStart,r=t.periodEnd;return t.events.filter(function(s){return function n$(n,t){var e=t.event,i=t.periodStart,r=t.periodEnd,s=n.isSameSecond,o=e.start,a=e.end||e.start;return!!(o>i&&o<r||a>i&&a<r||o<i&&a>r||s(o,i)||s(o,r)||s(a,i)||s(a,r))}(n,{event:s,periodStart:i,periodEnd:r})})}function a0(n,t){var e=t.date,i=t.weekendDays,r=void 0===i?Zj:i,o=n.isSameDay,a=n.getDay,l=(0,n.startOfDay)(new Date),c=a(e);return{date:e,day:c,isPast:e<l,isToday:o(e,l),isFuture:e>l,isWeekend:r.indexOf(c)>-1}}function fg(n,t){for(var r=t.excluded,s=void 0===r?[]:r,o=t.weekendDays,a=t.viewStart,l=void 0===a?n.startOfWeek(t.viewDate,{weekStartsOn:t.weekStartsOn}):a,c=t.viewEnd,u=void 0===c?n.addDays(l,7):c,d=n.addDays,h=n.getDay,f=[],p=l;p<u;)s.some(function(v){return h(p)===v})||f.push(a0(n,{date:p,weekendDays:o})),p=d(p,1);return f}function r$(n,t){var e=t.events,i=void 0===e?[]:e,r=t.excluded,s=void 0===r?[]:r,o=t.precision,a=void 0===o?"days":o,l=t.absolutePositionedEvents,c=void 0!==l&&l,u=t.viewStart,d=t.viewEnd;u=n.startOfDay(u),d=n.endOfDay(d);var h=n.differenceInSeconds,f=n.differenceInDays,p=function i$(n,t){for(var i=t.date2,r=t.excluded,s=t.date1,o=0;s<i;)-1===r.indexOf(n.getDay(s))&&o++,s=n.addDays(s,1);return o}(n,{date1:u,date2:d,excluded:s}),v=f(d,u)+1,D=i.filter(function(M){return M.allDay}).map(function(M){var k=function t$(n,t){var e=t.event,i=t.startOfWeek,r=t.excluded,s=t.precision,o=n.differenceInDays,a=n.startOfDay,l=n.differenceInSeconds;if(e.start<i)return 0;var c=0;switch(s){case"days":c=o(a(e.start),i)*Kr;break;case"minutes":c=l(e.start,i)}return c-=o0(n,{startDate:i,seconds:c,excluded:r,precision:s}),Math.abs(c/Kr)}(n,{event:M,startOfWeek:u,excluded:s,precision:a}),j=function e$(n,t){var e=t.event,i=t.offset,s=t.excluded,o=t.precision,a=t.totalDaysInView,c=n.differenceInSeconds,u=n.addDays,d=n.endOfDay,h=n.differenceInDays,f=Kr,p=(0,n.max)([e.start,t.startOfWeekDate]);e.end&&(f="minutes"===o?c(e.end,p):h(u(d(e.end),1),p)*Kr);var v=i*Kr,E=a*Kr;return v+f>E&&(f=E-v),(f-=o0(n,{startDate:p,seconds:f,excluded:s,precision:o}))/Kr}(n,{event:M,offset:k,startOfWeekDate:u,excluded:s,precision:a,totalDaysInView:v});return{event:M,offset:k,span:j}}).filter(function(M){return M.offset<p}).filter(function(M){return M.span>0}).map(function(M){return{event:M.event,offset:M.offset,span:M.span,startsBeforeWeek:M.event.start<u,endsAfterWeek:(M.event.end||M.event.start)>d}}).sort(function(M,k){var j=h(M.event.start,k.event.start);return 0===j?h(k.event.end||k.event.start,M.event.end||M.event.start):j}),E=[],w=[];return D.forEach(function(M,k){if(-1===w.indexOf(M)){w.push(M);var j=M.span+M.offset,be=D.slice(k+1).filter(function(fe){if(fe.offset>=j&&j+fe.span<=v&&-1===w.indexOf(fe)){var ae=fe.offset-j;return c||(fe.offset=ae),j+=fe.span+ae,w.push(fe),!0}}),Fe=s0([M],be),Ce=Fe.filter(function(fe){return fe.event.id}).map(function(fe){return fe.event.id}).join("-");E.push(Wi({row:Fe},Ce?{id:Ce}:{}))}}),E}function s$(n,t){var e=t.events,i=t.viewDate,r=t.hourSegments,s=t.hourDuration,o=t.dayStart,a=t.dayEnd,l=t.weekStartsOn,c=t.excluded,u=t.weekendDays,d=t.segmentHeight,h=t.viewStart,f=t.viewEnd,p=t.minimumEventHeight,v=function c$(n,t){var e=t.viewDate,i=t.hourSegments,r=t.hourDuration,s=t.dayStart,o=t.dayEnd,a=n.setMinutes,l=n.setHours,c=n.startOfDay,u=n.startOfMinute,d=n.endOfDay,h=n.addMinutes,p=n.addDays,v=[],D=a(l(c(e),Ou(s.hour)),Fu(s.minute)),E=a(l(u(d(e)),Ou(o.hour)),Fu(o.minute)),w=(r||60)/i,M=c(e),k=d(e),j=function(Q){return Q};M.getTimezoneOffset()!==k.getTimezoneOffset()&&(M=p(M,1),D=p(D,1),E=p(E,1),j=function(Q){return p(Q,-1)});for(var be=r?1440/r:60,Fe=0;Fe<be;Fe++){for(var Ce=[],fe=0;fe<i;fe++){var ae=h(h(D,Fe*(r||60)),fe*w);ae>=D&&ae<E&&Ce.push({date:j(ae),displayDate:ae,isStart:0===fe})}Ce.length>0&&v.push({segments:Ce})}return v}(n,{viewDate:i,hourSegments:r,hourDuration:s,dayStart:o,dayEnd:a}),D=fg(n,{viewDate:i,weekStartsOn:l,excluded:c,weekendDays:u,viewStart:h,viewEnd:f}),E=n.setHours,w=n.setMinutes,M=n.getHours,k=n.getMinutes;return D.map(function(j){var be=function l$(n,t){var e=t.events,i=t.viewDate,r=t.hourSegments,s=t.dayStart,o=t.dayEnd,a=t.eventWidth,l=t.segmentHeight,c=t.hourDuration,u=t.minimumEventHeight,d=n.setMinutes,h=n.setHours,f=n.startOfDay,p=n.startOfMinute,v=n.endOfDay,D=n.differenceInMinutes,E=d(h(f(i),Ou(s.hour)),Fu(s.minute)),w=d(h(p(v(i)),Ou(o.hour)),Fu(o.minute));w.setSeconds(59,999);var M=[],k=tl(n,{events:e.filter(function(Ce){return!Ce.allDay}),periodStart:E,periodEnd:w}),j=k.sort(function(Ce,fe){return Ce.start.valueOf()-fe.start.valueOf()}).map(function(Ce){var fe=Ce.start,ae=Ce.end||fe,Q=fe<E,N=ae>w,je=r*l/(c||60),Ge=0;if(fe>E){var Ki=fe.getTimezoneOffset(),le=E.getTimezoneOffset()-Ki;Ge+=D(fe,E)+le}Ge*=je,Ge=Math.floor(Ge);var ue=Q?E:fe,Ue=N?w:ae,Qe=ue.getTimezoneOffset()-Ue.getTimezoneOffset(),Ot=D(Ue,ue)+Qe;Ce.end?Ot*=je:Ot=l,u&&Ot<u&&(Ot=u),Ot=Math.floor(Ot);for(var Mi=ku(M,Ge,Ge+Ot),pt=0;Mi.some(function(Yg){return Yg.left===pt});)pt+=a;var ml={event:Ce,height:Ot,width:a,top:Ge,left:pt,startsBeforeDay:Q,endsAfterDay:N};return M.push(ml),ml}),be=Math.max.apply(Math,j.map(function(Ce){return Ce.left+Ce.width})),Fe=tl(n,{events:e.filter(function(Ce){return Ce.allDay}),periodStart:f(E),periodEnd:v(w)});return{events:j,width:be,allDayEvents:Fe,period:{events:k,start:E,end:w}}}(n,{events:e,viewDate:j.date,hourSegments:r,dayStart:o,dayEnd:a,segmentHeight:d,eventWidth:1,hourDuration:s,minimumEventHeight:p}),Fe=v.map(function(ae){var Q=ae.segments.map(function(N){var je=w(E(j.date,M(N.date)),k(N.date));return Wi(Wi({},N),{date:je})});return Wi(Wi({},ae),{segments:Q})});function Ce(ae,Q){var N=Math.max.apply(Math,Q.map(function(Ge){return Ge.left+1})),je=ae.filter(function(Ge){return Ge.left>=N}).filter(function(Ge){return ku(Q,Ge.top,Ge.top+Ge.height).length>0});return je.length>0?Ce(ae,je):N}var fe=be.events.map(function(ae){var N=100/Ce(be.events,ku(be.events,ae.top,ae.top+ae.height));return Wi(Wi({},ae),{left:ae.left*N,width:N})});return{hours:Fe,date:j.date,events:fe.map(function(ae){var Q=ku(fe.filter(function(N){return N.left>ae.left}),ae.top,ae.top+ae.height);return Q.length>0?Wi(Wi({},ae),{width:Math.min.apply(Math,Q.map(function(N){return N.left}))-ae.left}):ae})}})}function ku(n,t,e){return n.filter(function(i){var r=i.top,s=i.top+i.height;return t<s&&s<e||t<r&&r<e||r<=t&&e<=s})}function Ou(n){return Math.max(Math.min(23,n),0)}function Fu(n){return Math.max(Math.min(59,n),0)}var Xr=(()=>(function(n){n.NotArray="Events must be an array",n.StartPropertyMissing="Event is missing the `start` property",n.StartPropertyNotDate="Event `start` property should be a javascript date object. Do `new Date(event.start)` to fix it.",n.EndPropertyNotDate="Event `end` property should be a javascript date object. Do `new Date(event.end)` to fix it.",n.EndsBeforeStart="Event `start` property occurs after the `end`"}(Xr||(Xr={})),Xr))();class d$ extends Ve{notifyNext(t,e,i,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class h$ extends Ve{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function f$(n,t,e,i,r=new h$(n,e,i)){if(!r.closed)return t instanceof Y?t.subscribe(r):Kn(t)(r)}const l0={};function c0(...n){let t,e;return ce(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&Dt(n[0])&&(n=n[0]),xn(n,e).lift(new p$(t))}class p${constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new g$(t,this.resultSelector))}}class g$ extends d${constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(l0),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i<e;i++)this.add(f$(this,t[i],void 0,i))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,i){const r=this.values,o=this.toRespond?r[i]===l0?--this.toRespond:this.toRespond:0;r[i]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function nl(n,t,e,i){return Wt(e)&&(i=e,e=void 0),i?nl(n,t,e).pipe(P(r=>Dt(r)?i(...r):i(r))):new Y(r=>{u0(n,t,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,e)})}function u0(n,t,e,i,r){let s;if(function v$(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(t,e,r),s=()=>o.removeEventListener(t,e,r)}else if(function y$(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(t,e),s=()=>o.off(t,e)}else if(function m$(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(t,e),s=()=>o.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)u0(n[o],t,e,i,r)}i.add(s)}function pg(n,t){return n=function _$(n,t){return void 0===n?void 0===t?n:t:n}(n,t),"function"==typeof n?function(){for(var i=arguments,r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=i[o];return!!n.apply(this,s)}:n?function(){return!0}:function(){return!1}}var gg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n},d0=function(n){return null!=n&&"object"===(void 0===n?"undefined":gg(n))&&1===n.nodeType&&"object"===gg(n.style)&&"object"===gg(n.ownerDocument)};function h0(n,t){if(t=yg(t,!0),!d0(t))return-1;for(var e=0;e<n.length;e++)if(n[e]===t)return e;return-1}function mg(n,t){return-1!==h0(n,t)}function w$(n,t){for(var e=0;e<t.length;e++)mg(n,t[e])||n.push(t[e]);return t}function b$(n){for(var t=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=t[i+1];return w$(n,e=e.map(yg))}function D$(n){for(var t=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=t[i+1];return e.map(yg).reduce(function(r,s){var o=h0(n,s);return-1!==o?r.concat(n.splice(o,1)):r},[])}function yg(n,t){if("string"==typeof n)try{return document.querySelector(n)}catch(e){throw e}if(!d0(n)&&!t)throw new TypeError(n+" is not a DOM element.");return n}function f0(n){if(n===window)return function E$(){var n={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},n);var t={};return Object.defineProperties(t,n),t}();try{var t=n.getBoundingClientRect();return void 0===t.x&&(t.x=t.left,t.y=t.top),t}catch(e){throw new TypeError("Can't call getBoundingClientRect on "+n)}}var t,vg=void 0;"function"!=typeof Object.create?(t=function(){},vg=function(e,i){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");t.prototype=e||{};var r=new t;return t.prototype=null,void 0!==i&&Object.defineProperties(r,i),null===e&&(r.__proto__=null),r}):vg=Object.create;var S$=vg,Ts=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function _g(n,t){t=t||{};for(var e=S$(n),i=0;i<Ts.length;i++)void 0!==t[Ts[i]]&&(e[Ts[i]]=t[Ts[i]]);return e}function wg(n,t){console.log("data ",t),n.data=t||{},n.dispatched="mousemove"}var il=["webkit","moz","ms","o"],rl=function(){if("undefined"==typeof window)return function(){};for(var n=0,t=il.length;n<t&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[il[n]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var e=0;window.requestAnimationFrame=function(i){var r=(new Date).getTime(),s=Math.max(0,16-r-e),o=window.setTimeout(function(){return i(r+s)},s);return e=r+s,o}}return window.requestAnimationFrame.bind(window)}(),jo=function(){if("undefined"==typeof window)return function(){};for(var n=0,t=il.length;n<t&&!window.cancelAnimationFrame;++n)window.cancelAnimationFrame=window[il[n]+"CancelAnimationFrame"]||window[il[n]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}();function A$(n,t){void 0===t&&(t={});var e=this,i=4,r=!1;if("object"!=typeof t.margin){var s=t.margin||-1;this.margin={left:s,right:s,top:s,bottom:s}}else this.margin=t.margin;this.scrollWhenOutside=t.scrollWhenOutside||!1;var o={},a=function C$(n,t){var e=pg((t=t||{}).allowUpdate,!0);return function(r){if(r=r||window.event,n.target=r.target||r.srcElement||r.originalTarget,n.element=this,n.type=r.type,e(r)){if(r.targetTouches)n.x=r.targetTouches[0].clientX,n.y=r.targetTouches[0].clientY,n.pageX=r.targetTouches[0].pageX,n.pageY=r.targetTouches[0].pageY,n.screenX=r.targetTouches[0].screenX,n.screenY=r.targetTouches[0].screenY;else{if(null===r.pageX&&null!==r.clientX){var s=r.target&&r.target.ownerDocument||document,o=s.documentElement,a=s.body;n.pageX=r.clientX+(o&&o.scrollLeft||a&&a.scrollLeft||0)-(o&&o.clientLeft||a&&a.clientLeft||0),n.pageY=r.clientY+(o&&o.scrollTop||a&&a.scrollTop||0)-(o&&o.clientTop||a&&a.clientTop||0)}else n.pageX=r.pageX,n.pageY=r.pageY;n.x=r.clientX,n.y=r.clientY,n.screenX=r.screenX,n.screenY=r.screenY}n.clientX=n.x,n.clientY=n.y}}}(o),l=function M$(n){var t={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null};function e(s){for(var o=0;o<Ts.length;o++)t[Ts[o]]=s[Ts[o]]}return void 0!==n&&n.addEventListener("mousemove",e),{destroy:function r(){n&&n.removeEventListener("mousemove",e,!1),t=null},dispatch:MouseEvent?function(o,a,l){var c=new MouseEvent("mousemove",_g(t,a));return wg(c,l),o.dispatchEvent(c)}:"function"==typeof document.createEvent?function(o,a,l){var c=_g(t,a),u=document.createEvent("MouseEvents");return u.initMouseEvent("mousemove",!0,!0,window,0,c.screenX,c.screenY,c.clientX,c.clientY,c.ctrlKey,c.altKey,c.shiftKey,c.metaKey,c.button,c.relatedTarget),wg(u,l),o.dispatchEvent(u)}:"function"==typeof document.createEventObject?function(o,a,l){var c=document.createEventObject(),u=_g(t,a);for(var d in u)c[d]=u[d];return wg(c,l),o.dispatchEvent(c)}:void 0}}(),c=!1;window.addEventListener("mousemove",a,!1),window.addEventListener("touchmove",a,!1),isNaN(t.maxSpeed)||(i=t.maxSpeed),"object"!=typeof i&&(i={left:i,right:i,top:i,bottom:i}),this.autoScroll=pg(t.autoScroll),this.syncMove=pg(t.syncMove,!1),this.destroy=function(Q){window.removeEventListener("mousemove",a,!1),window.removeEventListener("touchmove",a,!1),window.removeEventListener("mousedown",v,!1),window.removeEventListener("touchstart",v,!1),window.removeEventListener("mouseup",D,!1),window.removeEventListener("touchend",D,!1),window.removeEventListener("pointerup",D,!1),window.removeEventListener("mouseleave",w,!1),window.removeEventListener("mousemove",j,!1),window.removeEventListener("touchmove",j,!1),window.removeEventListener("scroll",p,!0),n=[],Q&&E()},this.add=function(){for(var Q=[],N=arguments.length;N--;)Q[N]=arguments[N];return b$.apply(void 0,[n].concat(Q)),this},this.remove=function(){for(var Q=[],N=arguments.length;N--;)Q[N]=arguments[N];return D$.apply(void 0,[n].concat(Q))};var d,Q,u=null;"[object Array]"!==Object.prototype.toString.call(n)&&(n=[n]),Q=n,n=[],Q.forEach(function(N){N===window?u=window:e.add(N)}),Object.defineProperties(this,{down:{get:function(){return c}},maxSpeed:{get:function(){return i}},point:{get:function(){return o}},scrolling:{get:function(){return r}}});var f,h=null;function p(Q){for(var N=0;N<n.length;N++)if(n[N]===Q.target){r=!0;break}r&&rl(function(){return r=!1})}function v(){c=!0}function D(){c=!1,E()}function E(){jo(f),jo(d)}function w(){c=!1}function k(){for(var Q=null,N=0;N<n.length;N++)p0(o,n[N])&&(Q=n[N]);return Q}function j(Q){if(e.autoScroll()&&!Q.dispatched){var N=Q.target,je=document.body;h&&!p0(o,h)&&(e.scrollWhenOutside||(h=null)),N&&N.parentNode===je?N=k():(N=function M(Q){if(!Q)return null;if(h===Q||mg(n,Q))return Q;for(;Q=Q.parentNode;)if(mg(n,Q))return Q;return null}(N),N||(N=k())),N&&N!==h&&(h=N),u&&(jo(d),d=rl(be)),h&&(jo(f),f=rl(Fe))}}function be(){Ce(u),jo(d),d=rl(be)}function Fe(){!h||(Ce(h),jo(f),f=rl(Fe))}function Ce(Q){var je,Ge,N=f0(Q);je=o.x<N.left+e.margin.left?Math.floor(Math.max(-1,(o.x-N.left)/e.margin.left-1)*e.maxSpeed.left):o.x>N.right-e.margin.right?Math.ceil(Math.min(1,(o.x-N.right)/e.margin.right+1)*e.maxSpeed.right):0,Ge=o.y<N.top+e.margin.top?Math.floor(Math.max(-1,(o.y-N.top)/e.margin.top-1)*e.maxSpeed.top):o.y>N.bottom-e.margin.bottom?Math.ceil(Math.min(1,(o.y-N.bottom)/e.margin.bottom+1)*e.maxSpeed.bottom):0,e.syncMove()&&l.dispatch(Q,{pageX:o.pageX+je,pageY:o.pageY+Ge,clientX:o.x+je,clientY:o.y+Ge}),setTimeout(function(){Ge&&function fe(Q,N){Q===window?window.scrollTo(Q.pageXOffset,Q.pageYOffset+N):Q.scrollTop+=N}(Q,Ge),je&&function ae(Q,N){Q===window?window.scrollTo(Q.pageXOffset+N,Q.pageYOffset):Q.scrollLeft+=N}(Q,je)})}window.addEventListener("mousedown",v,!1),window.addEventListener("touchstart",v,!1),window.addEventListener("mouseup",D,!1),window.addEventListener("touchend",D,!1),window.addEventListener("pointerup",D,!1),window.addEventListener("mousemove",j,!1),window.addEventListener("touchmove",j,!1),window.addEventListener("mouseleave",w,!1),window.addEventListener("scroll",p,!0)}function p0(n,t,e){return e?n.y>e.top&&n.y<e.bottom&&n.x>e.left&&n.x<e.right:function x$(n,t){var e=f0(t);return n.y>e.top&&n.y<e.bottom&&n.x>e.left&&n.x<e.right}(n,t)}const g0=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function Tr(n){return t=>0===n?rp():t.lift(new k$(n))}class k${constructor(t){if(this.total=t,this.total<0)throw new g0}call(t,e){return e.subscribe(new O$(t,this.total))}}class O$ extends Ve{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}class R${constructor(t){if(this.total=t,this.total<0)throw new g0}call(t,e){return e.subscribe(new P$(t,this.total))}}class P$ extends Ve{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,r=this.count++;e.length<i?e.push(t):e[r%i]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<i;s++){const o=e++%i;t.next(r[o])}}t.complete()}}class L${constructor(t,e){this.predicate=t,this.source=e}call(t,e){return e.subscribe(new V$(t,this.predicate,this.source))}}class V$ extends Ve{constructor(t,e,i){super(t),this.predicate=e,this.source=i,this.count=0,this.index=0}_next(t){this.predicate?this._tryPredicate(t):this.count++}_tryPredicate(t){let e;try{e=this.predicate(t,this.index++,this.source)}catch(i){return void this.destination.error(i)}e&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}function bg(){return n=>n.lift(new B$)}class B${call(t,e){return e.subscribe(new H$(t))}}class H$ extends Ve{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}function m0(n,t){return e=>e.lift(new j$(n,t))}class j${constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new $$(t,this.compare,this.keySelector))}}class $$ extends Ve{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}class ur{constructor(){this.currentDrag=new O}}ur.\u0275fac=function(t){return new(t||ur)},ur.\u0275prov=R({token:ur,factory:ur.\u0275fac,providedIn:"root"}),ur.ngInjectableDef=mS({factory:function(){return new ur},token:ur,providedIn:"root"});let y0=(()=>{class n{constructor(e){this.elementRef=e,this.activeLongPressDrag=!1,this.longPressConfig={duration:300,delta:30}}}return n.\u0275fac=function(e){return new(e||n)(g(de))},n.\u0275dir=T({type:n,selectors:[["","mwlDraggableScrollContainer",""]],inputs:{activeLongPressDrag:"activeLongPressDrag",longPressConfig:"longPressConfig"}}),n})();function Dg(n,t,e){e&&e.split(" ").forEach(i=>n.addClass(t.nativeElement,i))}function Ru(n,t,e){e&&e.split(" ").forEach(i=>n.removeClass(t.nativeElement,i))}let Cg=(()=>{class n{constructor(e,i,r,s,o,a,l){this.element=e,this.renderer=i,this.draggableHelper=r,this.zone=s,this.vcr=o,this.scrollContainer=a,this.document=l,this.dragAxis={x:!0,y:!0},this.dragSnapGrid={},this.ghostDragEnabled=!0,this.showOriginalElementWhileDragging=!1,this.dragCursor="",this.autoScroll={margin:20},this.dragPointerDown=new ie,this.dragStart=new ie,this.ghostElementCreated=new ie,this.dragging=new ie,this.dragEnd=new ie,this.pointerDown$=new O,this.pointerMove$=new O,this.pointerUp$=new O,this.eventListenerSubscriptions={},this.destroy$=new O,this.timeLongPress={timerBegin:0,timerEnd:0}}ngOnInit(){this.checkEventListeners();const e=this.pointerDown$.pipe(Tn(()=>this.canDrag()),$(i=>{i.event.stopPropagation&&!this.scrollContainer&&i.event.stopPropagation();const r=this.renderer.createElement("style");this.renderer.setAttribute(r,"type","text/css"),this.renderer.appendChild(r,this.renderer.createText("\n body * {\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n ")),requestAnimationFrame(()=>{this.document.head.appendChild(r)});const s=this.getScrollPosition(),o=new Y(f=>this.renderer.listen(this.scrollContainer?this.scrollContainer.elementRef.nativeElement:"window","scroll",v=>f.next(v))).pipe(Tu(s),P(()=>this.getScrollPosition())),a=new O,l=new wD;this.zone.run(()=>{this.dragPointerDown.next({x:0,y:0})});const c=qt(this.pointerUp$,this.pointerDown$,l,this.destroy$).pipe(Ai()),u=c0([this.pointerMove$,o]).pipe(P(([f,p])=>({currentDrag$:a,transformX:f.clientX-i.clientX,transformY:f.clientY-i.clientY,clientX:f.clientX,clientY:f.clientY,scrollLeft:p.left,scrollTop:p.top,target:f.event.target})),P(f=>(this.dragSnapGrid.x&&(f.transformX=Math.round(f.transformX/this.dragSnapGrid.x)*this.dragSnapGrid.x),this.dragSnapGrid.y&&(f.transformY=Math.round(f.transformY/this.dragSnapGrid.y)*this.dragSnapGrid.y),f)),P(f=>(this.dragAxis.x||(f.transformX=0),this.dragAxis.y||(f.transformY=0),f)),P(f=>Object.assign({},f,{x:f.transformX+(f.scrollLeft-s.left),y:f.transformY+(f.scrollTop-s.top)})),Tn(({x:f,y:p,transformX:v,transformY:D})=>!this.validateDrag||this.validateDrag({x:f,y:p,transform:{x:v,y:D}})),vt(c),Ai()),d=u.pipe(Tr(1),Ai()),h=u.pipe(function F$(n){return function(e){return 0===n?rp():e.lift(new R$(n))}}(1),Ai());return d.subscribe(({clientX:f,clientY:p,x:v,y:D})=>{if(this.zone.run(()=>{this.dragStart.next({cancelDrag$:l})}),this.scroller=function T$(n,t){return new A$(n,t)}([this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.defaultView],Object.assign({},this.autoScroll,{autoScroll:()=>!0})),Dg(this.renderer,this.element,this.dragActiveClass),this.ghostDragEnabled){const E=this.element.nativeElement.getBoundingClientRect(),w=this.element.nativeElement.cloneNode(!0);if(this.showOriginalElementWhileDragging||this.renderer.setStyle(this.element.nativeElement,"visibility","hidden"),this.ghostElementAppendTo?this.ghostElementAppendTo.appendChild(w):this.element.nativeElement.parentNode.insertBefore(w,this.element.nativeElement.nextSibling),this.ghostElement=w,this.document.body.style.cursor=this.dragCursor,this.setElementStyles(w,{position:"fixed",top:`${E.top}px`,left:`${E.left}px`,width:`${E.width}px`,height:`${E.height}px`,cursor:this.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),this.ghostElementTemplate){const M=this.vcr.createEmbeddedView(this.ghostElementTemplate);w.innerHTML="",M.rootNodes.filter(k=>k instanceof Node).forEach(k=>{w.appendChild(k)}),h.subscribe(()=>{this.vcr.remove(this.vcr.indexOf(M))})}this.zone.run(()=>{this.ghostElementCreated.emit({clientX:f-v,clientY:p-D,element:w})}),h.subscribe(()=>{w.parentElement.removeChild(w),this.ghostElement=null,this.renderer.setStyle(this.element.nativeElement,"visibility","")})}this.draggableHelper.currentDrag.next(a)}),h.pipe($(f=>{const p=l.pipe(function N$(n){return t=>t.lift(new L$(n,t))}(),Tr(1),P(v=>Object.assign({},f,{dragCancelled:v>0})));return l.complete(),p})).subscribe(({x:f,y:p,dragCancelled:v})=>{this.scroller.destroy(),this.zone.run(()=>{this.dragEnd.next({x:f,y:p,dragCancelled:v})}),Ru(this.renderer,this.element,this.dragActiveClass),a.complete()}),qt(c,h).pipe(Tr(1)).subscribe(()=>{requestAnimationFrame(()=>{this.document.head.removeChild(r)})}),u}),Ai());qt(e.pipe(Tr(1),P(i=>[,i])),e.pipe(bg())).pipe(Tn(([i,r])=>!i||i.x!==r.x||i.y!==r.y),P(([i,r])=>r)).subscribe(({x:i,y:r,currentDrag$:s,clientX:o,clientY:a,transformX:l,transformY:c,target:u})=>{this.zone.run(()=>{this.dragging.next({x:i,y:r})}),requestAnimationFrame(()=>{if(this.ghostElement){const d=`translate3d(${l}px, ${c}px, 0px)`;this.setElementStyles(this.ghostElement,{transform:d,"-webkit-transform":d,"-ms-transform":d,"-moz-transform":d,"-o-transform":d})}}),s.next({clientX:o,clientY:a,dropData:this.dropData,target:u})})}ngOnChanges(e){e.dragAxis&&this.checkEventListeners()}ngOnDestroy(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}checkEventListeners(){const e=this.canDrag(),i=Object.keys(this.eventListenerSubscriptions).length>0;e&&!i?this.zone.runOutsideAngular(()=>{this.eventListenerSubscriptions.mousedown=this.renderer.listen(this.element.nativeElement,"mousedown",r=>{this.onMouseDown(r)}),this.eventListenerSubscriptions.mouseup=this.renderer.listen("document","mouseup",r=>{this.onMouseUp(r)}),this.eventListenerSubscriptions.touchstart=this.renderer.listen(this.element.nativeElement,"touchstart",r=>{this.onTouchStart(r)}),this.eventListenerSubscriptions.touchend=this.renderer.listen("document","touchend",r=>{this.onTouchEnd(r)}),this.eventListenerSubscriptions.touchcancel=this.renderer.listen("document","touchcancel",r=>{this.onTouchEnd(r)}),this.eventListenerSubscriptions.mouseenter=this.renderer.listen(this.element.nativeElement,"mouseenter",()=>{this.onMouseEnter()}),this.eventListenerSubscriptions.mouseleave=this.renderer.listen(this.element.nativeElement,"mouseleave",()=>{this.onMouseLeave()})}):!e&&i&&this.unsubscribeEventListeners()}onMouseDown(e){0===e.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",i=>{this.pointerMove$.next({event:i,clientX:i.clientX,clientY:i.clientY})})),this.pointerDown$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}onMouseUp(e){0===e.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}onTouchStart(e){let i,r,s;if((this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&(this.timeLongPress.timerBegin=Date.now(),r=!1,s=this.hasScrollbar(),i=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){const o=nl(this.document,"contextmenu").subscribe(l=>{l.preventDefault()}),a=nl(this.document,"touchmove",{passive:!1}).subscribe(l=>{(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&!r&&s&&(r=this.shouldBeginDrag(e,l,i)),((!this.scrollContainer||!this.scrollContainer.activeLongPressDrag)&&!this.touchStartLongPress||!s||r)&&(l.preventDefault(),this.pointerMove$.next({event:l,clientX:l.targetTouches[0].clientX,clientY:l.targetTouches[0].clientY}))});this.eventListenerSubscriptions.touchmove=()=>{o.unsubscribe(),a.unsubscribe()}}this.pointerDown$.next({event:e,clientX:e.touches[0].clientX,clientY:e.touches[0].clientY})}onTouchEnd(e){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&this.enableScroll()),this.pointerUp$.next({event:e,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY})}onMouseEnter(){this.setCursor(this.dragCursor)}onMouseLeave(){this.setCursor("")}canDrag(){return this.dragAxis.x||this.dragAxis.y}setCursor(e){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",e)}unsubscribeEventListeners(){Object.keys(this.eventListenerSubscriptions).forEach(e=>{this.eventListenerSubscriptions[e](),delete this.eventListenerSubscriptions[e]})}setElementStyles(e,i){Object.keys(i).forEach(r=>{this.renderer.setStyle(e,r,i[r])})}getScrollElement(){return this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.body}getScrollPosition(){return this.scrollContainer?{top:this.scrollContainer.elementRef.nativeElement.scrollTop,left:this.scrollContainer.elementRef.nativeElement.scrollLeft}:{top:window.pageYOffset||this.document.documentElement.scrollTop,left:window.pageXOffset||this.document.documentElement.scrollLeft}}shouldBeginDrag(e,i,r){const s=this.getScrollPosition(),o_top=Math.abs(s.top-r.top),o_left=Math.abs(s.left-r.left),a=Math.abs(i.targetTouches[0].clientX-e.touches[0].clientX)-o_left,l=Math.abs(i.targetTouches[0].clientY-e.touches[0].clientY)-o_top,u=this.touchStartLongPress?this.touchStartLongPress:{delta:this.scrollContainer.longPressConfig.delta,delay:this.scrollContainer.longPressConfig.duration};return(a+l>u.delta||o_top>0||o_left>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=u.delay&&(this.disableScroll(),!0)}enableScroll(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow",""),this.renderer.setStyle(this.document.body,"overflow","")}disableScroll(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow","hidden"),this.renderer.setStyle(this.document.body,"overflow","hidden")}hasScrollbar(){const e=this.getScrollElement();return e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(ln),g(ur),g($e),g(Un),g(y0,8),g(ke))},n.\u0275dir=T({type:n,selectors:[["","mwlDraggable",""]],inputs:{dragAxis:"dragAxis",dragSnapGrid:"dragSnapGrid",ghostDragEnabled:"ghostDragEnabled",showOriginalElementWhileDragging:"showOriginalElementWhileDragging",dragCursor:"dragCursor",autoScroll:"autoScroll",dropData:"dropData",validateDrag:"validateDrag",dragActiveClass:"dragActiveClass",ghostElementAppendTo:"ghostElementAppendTo",ghostElementTemplate:"ghostElementTemplate",touchStartLongPress:"touchStartLongPress"},outputs:{dragPointerDown:"dragPointerDown",dragStart:"dragStart",ghostElementCreated:"ghostElementCreated",dragging:"dragging",dragEnd:"dragEnd"},features:[hn]}),n})();function v0(n,t,e){return n>=e.left&&n<=e.right&&t>=e.top&&t<=e.bottom}let Eg=(()=>{class n{constructor(e,i,r,s,o){this.element=e,this.draggableHelper=i,this.zone=r,this.renderer=s,this.scrollContainer=o,this.dragEnter=new ie,this.dragLeave=new ie,this.dragOver=new ie,this.drop=new ie}ngOnInit(){this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe(e=>{Dg(this.renderer,this.element,this.dragActiveClass);const i={updateCache:!0},r=this.renderer.listen(this.scrollContainer?this.scrollContainer.elementRef.nativeElement:"window","scroll",()=>{i.updateCache=!0});let s;const o=e.pipe(P(({clientX:c,clientY:u,dropData:d,target:h})=>{s=d,i.updateCache&&(i.rect=this.element.nativeElement.getBoundingClientRect(),this.scrollContainer&&(i.scrollContainerRect=this.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),i.updateCache=!1);const f=v0(c,u,i.rect),p=!this.validateDrop||this.validateDrop({clientX:c,clientY:u,target:h});return i.scrollContainerRect?f&&p&&v0(c,u,i.scrollContainerRect):f&&p})),a=o.pipe(m0());let l;a.pipe(Tn(c=>c)).subscribe(()=>{l=!0,Dg(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.dragEnter.next({dropData:s})})}),o.pipe(Tn(c=>c)).subscribe(()=>{this.zone.run(()=>{this.dragOver.next({dropData:s})})}),a.pipe(bg(),Tn(([c,u])=>c&&!u)).subscribe(()=>{l=!1,Ru(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.dragLeave.next({dropData:s})})}),e.subscribe({complete:()=>{r(),Ru(this.renderer,this.element,this.dragActiveClass),l&&(Ru(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.drop.next({dropData:s})}))}})})}ngOnDestroy(){this.currentDragSubscription&&this.currentDragSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(ur),g($e),g(ln),g(y0,8))},n.\u0275dir=T({type:n,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass",validateDrop:"validateDrop"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}}),n})(),Pu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({}),n})();class G${constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new U$(t,this.durationSelector))}}class U$ extends C{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=F(e,new Qn(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function xg(n,t=Ja){return function z$(n){return function(e){return e.lift(new G$(n))}}(()=>r0(n,t))}"undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator),Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});let S0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({}),n})();const ez=function(n){return{action:n}};function tz(n,t){if(1&n){const e=Nn();oe(0,"a",5),Le("mwlClick",function(r){const o=Ie(e).$implicit,a=G(2).event;return o.onClick({event:a,sourceEvent:r})})("mwlKeydownEnter",function(r){const o=Ie(e).$implicit,a=G(2).event;return o.onClick({event:a,sourceEvent:r})}),It(1,"calendarA11y"),ye()}if(2&n){const e=t.$implicit;L("ngClass",e.cssClass)("innerHtml",e.label,Kl),zt("aria-label",Bi(1,3,gs(6,ez,e),"actionButtonLabel"))}}function nz(n,t){if(1&n&&(oe(0,"span",3),pe(1,tz,2,8,"a",4),ye()),2&n){const e=G(),i=e.event,r=e.trackByActionId;te(1),L("ngForOf",i.actions)("ngForTrackBy",r)}}function iz(n,t){1&n&&pe(0,nz,2,2,"span",2),2&n&&L("ngIf",t.event.actions)}function rz(n,t){}const sz=function(n,t){return{event:n,trackByActionId:t}},zo=function(){return{}};function oz(n,t){if(1&n&&(Xt(0,"span",2),It(1,"calendarEventTitle"),It(2,"calendarA11y")),2&n){const e=t.event;L("innerHTML",Hi(1,2,e.title,t.view,e),Kl),zt("aria-hidden",Bi(2,6,Bn(9,zo),"hideEventTitle"))}}function az(n,t){}const lz=function(n,t){return{event:n,view:t}};function cz(n,t){if(1&n&&(oe(0,"div",2),Xt(1,"div",3)(2,"div",4),ye()),2&n){const e=t.contents;L("ngClass","cal-tooltip-"+t.placement),te(2),L("innerHtml",e,Kl)}}function uz(n,t){}const dz=function(n,t,e){return{contents:n,placement:t,event:e}},Mg=function(n){return{backgroundColor:n}};function hz(n,t){if(1&n){const e=Nn();oe(0,"mwl-calendar-month-cell",7),Le("mwlClick",function(r){const o=Ie(e).$implicit;return G(2).dayClicked.emit({day:o,sourceEvent:r})})("mwlKeydownEnter",function(r){const o=Ie(e).$implicit;return G(2).dayClicked.emit({day:o,sourceEvent:r})})("highlightDay",function(r){return Ie(e),G(2).toggleDayHighlight(r.event,!0)})("unhighlightDay",function(r){return Ie(e),G(2).toggleDayHighlight(r.event,!1)})("drop",function(r){const o=Ie(e).$implicit;return G(2).eventDropped(o,r.dropData.event,r.dropData.draggedFrom)})("eventClicked",function(r){return Ie(e),G(2).eventClicked.emit({event:r.event,sourceEvent:r.sourceEvent})}),It(1,"calendarA11y"),ye()}if(2&n){const e=t.$implicit,i=G(2);L("ngClass",null==e?null:e.cssClass)("day",e)("openDay",i.openDay)("locale",i.locale)("tooltipPlacement",i.tooltipPlacement)("tooltipAppendToBody",i.tooltipAppendToBody)("tooltipTemplate",i.tooltipTemplate)("tooltipDelay",i.tooltipDelay)("customTemplate",i.cellTemplate)("ngStyle",gs(15,Mg,e.backgroundColor))("clickListenerDisabled",0===i.dayClicked.observers.length),zt("tabindex",Bi(1,12,Bn(17,zo),"monthCellTabIndex"))}}function fz(n,t){if(1&n){const e=Nn();oe(0,"div")(1,"div",4),pe(2,hz,2,18,"mwl-calendar-month-cell",5),It(3,"slice"),ye(),oe(4,"mwl-calendar-open-day-events",6),Le("eventClicked",function(r){return Ie(e),G().eventClicked.emit({event:r.event,sourceEvent:r.sourceEvent})})("drop",function(r){Ie(e);const s=G();return s.eventDropped(s.openDay,r.dropData.event,r.dropData.draggedFrom)}),ye()()}if(2&n){const e=t.$implicit,i=G();te(2),L("ngForOf",Hi(3,9,i.view.days,e,e+i.view.totalDaysVisibleInWeek))("ngForTrackBy",i.trackByDate),te(2),L("locale",i.locale)("isOpen",i.openRowIndex===e)("events",null==i.openDay?null:i.openDay.events)("date",null==i.openDay?null:i.openDay.date)("customTemplate",i.openDayEventsTemplate)("eventTitleTemplate",i.eventTitleTemplate)("eventActionsTemplate",i.eventActionsTemplate)}}function pz(n,t){if(1&n){const e=Nn();oe(0,"div",4),Le("click",function(r){const o=Ie(e).$implicit;return G(2).columnHeaderClicked.emit({isoDayNumber:o.day,sourceEvent:r})}),Ln(1),It(2,"calendarDate"),ye()}if(2&n){const e=t.$implicit,i=G().locale;Qt("cal-past",e.isPast)("cal-today",e.isToday)("cal-future",e.isFuture)("cal-weekend",e.isWeekend),L("ngClass",e.cssClass),te(1),Co(" ",Hi(2,10,e.date,"monthViewColumnHeader",i)," ")}}function gz(n,t){if(1&n&&(oe(0,"div",2),pe(1,pz,3,14,"div",3),ye()),2&n){const e=t.days,i=t.trackByWeekDayHeaderDate;te(1),L("ngForOf",e)("ngForTrackBy",i)}}function mz(n,t){}const yz=function(n,t,e){return{days:n,locale:t,trackByWeekDayHeaderDate:e}};function vz(n,t){if(1&n&&(oe(0,"span",7),Ln(1),ye()),2&n){const e=G().day;te(1),fs(e.badgeTotal)}}const _z=function(n,t){return{event:n,draggedFrom:t}},sl=function(n,t){return{x:n,y:t}},Vu=function(){return{delay:300,delta:30}};function wz(n,t){if(1&n){const e=Nn();oe(0,"div",10),Le("mouseenter",function(){const s=Ie(e).$implicit;return G(2).highlightDay.emit({event:s})})("mouseleave",function(){const s=Ie(e).$implicit;return G(2).unhighlightDay.emit({event:s})})("mwlClick",function(r){const o=Ie(e).$implicit;return G(2).eventClicked.emit({event:o,sourceEvent:r})}),It(1,"calendarEventTitle"),It(2,"calendarA11y"),ye()}if(2&n){const e=t.$implicit,i=G(2),r=i.tooltipPlacement,s=i.tooltipTemplate,o=i.tooltipAppendToBody,a=i.tooltipDelay,l=i.day,c=i.validateDrag;Qt("cal-draggable",e.draggable),L("ngStyle",gs(22,Mg,null==e.color?null:e.color.primary))("ngClass",null==e?null:e.cssClass)("mwlCalendarTooltip",Hi(1,15,e.title,"monthTooltip",e))("tooltipPlacement",r)("tooltipEvent",e)("tooltipTemplate",s)("tooltipAppendToBody",o)("tooltipDelay",a)("dropData",pn(24,_z,e,l))("dragAxis",pn(27,sl,e.draggable,e.draggable))("validateDrag",c)("touchStartLongPress",Bn(30,Vu)),zt("aria-hidden",Bi(2,19,Bn(31,zo),"hideMonthCellEvents"))}}function bz(n,t){if(1&n&&(oe(0,"div",8),pe(1,wz,3,32,"div",9),ye()),2&n){const e=G(),i=e.day,r=e.trackByEventId;te(1),L("ngForOf",i.events)("ngForTrackBy",r)}}const Dz=function(n,t){return{day:n,locale:t}};function Cz(n,t){if(1&n&&(oe(0,"div",2),It(1,"calendarA11y"),oe(2,"span",3),pe(3,vz,2,1,"span",4),oe(4,"span",5),Ln(5),It(6,"calendarDate"),ye()()(),pe(7,bz,2,2,"div",6)),2&n){const e=t.day,i=t.locale;zt("aria-label",Bi(1,4,pn(11,Dz,e,i),"monthCell")),te(3),L("ngIf",e.badgeTotal>0),te(2),fs(Hi(6,7,e.date,"monthViewDayNumber",i)),te(2),L("ngIf",e.events.length>0)}}function Ez(n,t){}const xz=function(n,t,e,i,r,s,o,a,l,c,u,d){return{day:n,openDay:t,locale:e,tooltipPlacement:i,highlightDay:r,unhighlightDay:s,eventClicked:o,tooltipTemplate:a,tooltipAppendToBody:l,tooltipDelay:c,trackByEventId:u,validateDrag:d}},Sz=function(n){return{event:n}},M0=function(n,t){return{event:n,locale:t}};function Mz(n,t){if(1&n){const e=Nn();oe(0,"div",7),Xt(1,"span",8),Ln(2," "),oe(3,"mwl-calendar-event-title",9),Le("mwlClick",function(r){const o=Ie(e).$implicit;return G(2).eventClicked.emit({event:o,sourceEvent:r})})("mwlKeydownEnter",function(r){const o=Ie(e).$implicit;return G(2).eventClicked.emit({event:o,sourceEvent:r})}),It(4,"calendarA11y"),ye(),Ln(5," "),Xt(6,"mwl-calendar-event-actions",10),ye()}if(2&n){const e=t.$implicit,i=G(2).validateDrag,r=G();Qt("cal-draggable",e.draggable),L("ngClass",null==e?null:e.cssClass)("dropData",gs(16,Sz,e))("dragAxis",pn(18,sl,e.draggable,e.draggable))("validateDrag",i)("touchStartLongPress",Bn(21,Vu)),te(1),L("ngStyle",gs(22,Mg,null==e.color?null:e.color.primary)),te(2),L("event",e)("customTemplate",r.eventTitleTemplate),zt("aria-label",Bi(4,13,pn(24,M0,e,r.locale),"eventDescription")),te(3),L("event",e)("customTemplate",r.eventActionsTemplate)}}const A0=function(n,t){return{date:n,locale:t}};function Az(n,t){if(1&n&&(oe(0,"div",3),Xt(1,"span",4),It(2,"calendarA11y"),Xt(3,"span",5),It(4,"calendarA11y"),pe(5,Mz,7,27,"div",6),ye()),2&n){const e=G(),i=e.events,r=e.trackByEventId,s=G();L("@collapse",void 0),te(1),zt("aria-label",Bi(2,5,pn(11,A0,s.date,s.locale),"openDayEventsAlert")),te(2),zt("aria-label",Bi(4,8,pn(14,A0,s.date,s.locale),"openDayEventsLandmark")),te(2),L("ngForOf",i)("ngForTrackBy",r)}}function Tz(n,t){1&n&&pe(0,Az,6,17,"div",2),2&n&&L("ngIf",t.isOpen)}function Iz(n,t){}const kz=function(n,t,e,i,r){return{events:n,eventClicked:t,isOpen:e,trackByEventId:i,validateDrag:r}};let I0=(()=>{let n=class{constructor(){this.trackByActionId=(e,i)=>i.id?i.id:i}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-event-actions"]],inputs:{event:"event",customTemplate:"customTemplate"},decls:3,vars:5,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","cal-event-actions",4,"ngIf"],[1,"cal-event-actions"],["class","cal-event-action","href","javascript:;","tabindex","0","role","button",3,"ngClass","innerHtml","mwlClick","mwlKeydownEnter",4,"ngFor","ngForOf","ngForTrackBy"],["href","javascript:;","tabindex","0","role","button",1,"cal-event-action",3,"ngClass","innerHtml","mwlClick","mwlKeydownEnter"]],template:function(e,i){if(1&e&&(pe(0,iz,1,1,"ng-template",null,0,vi),pe(2,rz,0,0,"ng-template",1)),2&e){const r=fn(1);te(2),L("ngTemplateOutlet",i.customTemplate||r)("ngTemplateOutletContext",pn(2,sz,i.event,i.trackByActionId))}},directives:function(){return[ws,Hr,ai,ks,ju,Di]},pipes:function(){return[Os]},encapsulation:2}),b([x(),_("design:type",Object)],n.prototype,"event",void 0),b([x(),_("design:type",De)],n.prototype,"customTemplate",void 0),n})(),k0=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-event-title"]],inputs:{event:"event",customTemplate:"customTemplate",view:"view"},decls:3,vars:5,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-event-title",3,"innerHTML"]],template:function(e,i){if(1&e&&(pe(0,oz,3,10,"ng-template",null,0,vi),pe(2,az,0,0,"ng-template",1)),2&e){const r=fn(1);te(2),L("ngTemplateOutlet",i.customTemplate||r)("ngTemplateOutletContext",pn(2,lz,i.event,i.view))}},directives:function(){return[Di]},pipes:function(){return[kg,Os]},encapsulation:2}),b([x(),_("design:type",Object)],n.prototype,"event",void 0),b([x(),_("design:type",De)],n.prototype,"customTemplate",void 0),b([x(),_("design:type",String)],n.prototype,"view",void 0),n})(),vG=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-tooltip-window"]],inputs:{contents:"contents",placement:"placement",event:"event",customTemplate:"customTemplate"},decls:3,vars:6,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-tooltip",3,"ngClass"],[1,"cal-tooltip-arrow"],[1,"cal-tooltip-inner",3,"innerHtml"]],template:function(e,i){if(1&e&&(pe(0,cz,3,2,"ng-template",null,0,vi),pe(2,uz,0,0,"ng-template",1)),2&e){const r=fn(1);te(2),L("ngTemplateOutlet",i.customTemplate||r)("ngTemplateOutletContext",rf(2,dz,i.contents,i.placement,i.event))}},directives:[ai,Di],encapsulation:2}),b([x(),_("design:type",String)],n.prototype,"contents",void 0),b([x(),_("design:type",String)],n.prototype,"placement",void 0),b([x(),_("design:type",Object)],n.prototype,"event",void 0),b([x(),_("design:type",De)],n.prototype,"customTemplate",void 0),n})(),O0=(()=>{let n=class{constructor(e,i,r,s,o,a){this.elementRef=e,this.injector=i,this.renderer=r,this.viewContainerRef=o,this.document=a,this.placement="auto",this.delay=null,this.cancelTooltipDelay$=new O,this.tooltipFactory=s.resolveComponentFactory(vG)}ngOnChanges(e){this.tooltipRef&&(e.contents||e.customTemplate||e.event)&&(this.tooltipRef.instance.contents=this.contents,this.tooltipRef.instance.customTemplate=this.customTemplate,this.tooltipRef.instance.event=this.event,this.tooltipRef.changeDetectorRef.markForCheck(),this.contents||this.hide())}ngOnDestroy(){this.hide()}onMouseOver(){(null===this.delay?Gi("now"):r0(this.delay)).pipe(vt(this.cancelTooltipDelay$)).subscribe(()=>{this.show()})}onMouseOut(){this.hide()}show(){!this.tooltipRef&&this.contents&&(this.tooltipRef=this.viewContainerRef.createComponent(this.tooltipFactory,0,this.injector,[]),this.tooltipRef.instance.contents=this.contents,this.tooltipRef.instance.customTemplate=this.customTemplate,this.tooltipRef.instance.event=this.event,this.appendToBody&&this.document.body.appendChild(this.tooltipRef.location.nativeElement),requestAnimationFrame(()=>{this.positionTooltip()}))}hide(){this.tooltipRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.tooltipRef.hostView)),this.tooltipRef=null),this.cancelTooltipDelay$.next()}positionTooltip(e=[]){this.tooltipRef&&(this.tooltipRef.changeDetectorRef.detectChanges(),this.tooltipRef.instance.placement=function Wj(n,t,e,i,r){var s=Array.isArray(e)?e:e.split(Uj),o=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=t.classList,l=function(D){var E=D.split("-"),w=E[0],M=E[1],k=[];return r&&(k.push(r+"-"+w),M&&k.push(r+"-"+w+"-"+M),k.forEach(function(j){a.add(j)})),k};r&&o.forEach(function(D){a.remove(r+"-"+D)});var c=s.findIndex(function(D){return"auto"===D});c>=0&&o.forEach(function(D){null==s.find(function(E){return-1!==E.search("^"+D)})&&s.splice(c++,1,D)});var u=t.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";for(var d,h=!1,f=0,p=s;f<p.length;f++){var v=l(d=p[f]);if(n0.positionElements(n,t,d,i)){h=!0;break}r&&v.forEach(function(D){a.remove(D)})}return h||(l(d=s[0]),n0.positionElements(n,t,d,i)),d}(this.elementRef.nativeElement,this.tooltipRef.location.nativeElement.children[0],this.placement,this.appendToBody),-1===e.indexOf(this.tooltipRef.instance.placement)&&this.positionTooltip([...e,this.tooltipRef.instance.placement]))}};return n.\u0275fac=function(e){return new(e||n)(g(de),g(wn),g(ln),g(Cr),g(Un),g(ke))},n.\u0275dir=T({type:n,selectors:[["","mwlCalendarTooltip",""]],hostBindings:function(e,i){1&e&&Le("mouseenter",function(){return i.onMouseOver()})("mouseleave",function(){return i.onMouseOut()})},inputs:{placement:["tooltipPlacement","placement"],delay:["tooltipDelay","delay"],contents:["mwlCalendarTooltip","contents"],customTemplate:["tooltipTemplate","customTemplate"],event:["tooltipEvent","event"],appendToBody:["tooltipAppendToBody","appendToBody"]},features:[hn]}),b([x("mwlCalendarTooltip"),_("design:type",String)],n.prototype,"contents",void 0),b([x("tooltipPlacement"),_("design:type",Object)],n.prototype,"placement",void 0),b([x("tooltipTemplate"),_("design:type",De)],n.prototype,"customTemplate",void 0),b([x("tooltipEvent"),_("design:type",Object)],n.prototype,"event",void 0),b([x("tooltipAppendToBody"),_("design:type",Boolean)],n.prototype,"appendToBody",void 0),b([x("tooltipDelay"),_("design:type",Number)],n.prototype,"delay",void 0),b([Ra("mouseenter"),_("design:type",Function),_("design:paramtypes",[]),_("design:returntype",void 0)],n.prototype,"onMouseOver",null),b([Ra("mouseleave"),_("design:type",Function),_("design:paramtypes",[]),_("design:returntype",void 0)],n.prototype,"onMouseOut",null),n=b([Ho(5,_r(ke)),_("design:paramtypes",[de,wn,ln,Cr,Un,Object])],n),n})();class Dn{}var Qr=(()=>(function(n){n.Month="month",n.Week="week",n.Day="day"}(Qr||(Qr={})),Qr))();const N0=(n,t)=>t.id?t.id:t,Ag=(n,t)=>t.date.toISOString();function Yi(n,t,e,i){let r=0,s=0;const o=e<0?n.subDays:n.addDays;let a=t;for(;s<=Math.abs(e);){a=o(t,r);const l=n.getDay(a);-1===i.indexOf(l)&&s++,r++}return a}function Bu({x:n,y:t}){return Math.abs(n)>1||Math.abs(t)>1}let MG=(()=>{let n=class{constructor(e){this.dateAdapter=e,this.excludeDays=[],this.viewDateChange=new ie}onClick(){const e={day:this.dateAdapter.subDays,week:this.dateAdapter.subWeeks,month:this.dateAdapter.subMonths}[this.view];this.viewDateChange.emit(this.view===Qr.Day?Yi(this.dateAdapter,this.viewDate,-1,this.excludeDays):this.view===Qr.Week&&this.daysInWeek?Yi(this.dateAdapter,this.viewDate,-this.daysInWeek,this.excludeDays):e(this.viewDate,1))}};return n.\u0275fac=function(e){return new(e||n)(g(Dn))},n.\u0275dir=T({type:n,selectors:[["","mwlCalendarPreviousView",""]],hostBindings:function(e,i){1&e&&Le("click",function(){return i.onClick()})},inputs:{excludeDays:"excludeDays",view:"view",viewDate:"viewDate",daysInWeek:"daysInWeek"},outputs:{viewDateChange:"viewDateChange"}}),b([x(),_("design:type",String)],n.prototype,"view",void 0),b([x(),_("design:type",Date)],n.prototype,"viewDate",void 0),b([x(),_("design:type",Array)],n.prototype,"excludeDays",void 0),b([x(),_("design:type",Number)],n.prototype,"daysInWeek",void 0),b([ut(),_("design:type",ie)],n.prototype,"viewDateChange",void 0),b([Ra("click"),_("design:type",Function),_("design:paramtypes",[]),_("design:returntype",void 0)],n.prototype,"onClick",null),n=b([_("design:paramtypes",[Dn])],n),n})(),AG=(()=>{let n=class{constructor(e){this.dateAdapter=e,this.excludeDays=[],this.viewDateChange=new ie}onClick(){const e={day:this.dateAdapter.addDays,week:this.dateAdapter.addWeeks,month:this.dateAdapter.addMonths}[this.view];this.viewDateChange.emit(this.view===Qr.Day?Yi(this.dateAdapter,this.viewDate,1,this.excludeDays):this.view===Qr.Week&&this.daysInWeek?Yi(this.dateAdapter,this.viewDate,this.daysInWeek,this.excludeDays):e(this.viewDate,1))}};return n.\u0275fac=function(e){return new(e||n)(g(Dn))},n.\u0275dir=T({type:n,selectors:[["","mwlCalendarNextView",""]],hostBindings:function(e,i){1&e&&Le("click",function(){return i.onClick()})},inputs:{excludeDays:"excludeDays",view:"view",viewDate:"viewDate",daysInWeek:"daysInWeek"},outputs:{viewDateChange:"viewDateChange"}}),b([x(),_("design:type",String)],n.prototype,"view",void 0),b([x(),_("design:type",Date)],n.prototype,"viewDate",void 0),b([x(),_("design:type",Array)],n.prototype,"excludeDays",void 0),b([x(),_("design:type",Number)],n.prototype,"daysInWeek",void 0),b([ut(),_("design:type",ie)],n.prototype,"viewDateChange",void 0),b([Ra("click"),_("design:type",Function),_("design:paramtypes",[]),_("design:returntype",void 0)],n.prototype,"onClick",null),n=b([_("design:paramtypes",[Dn])],n),n})(),TG=(()=>{let n=class{constructor(e){this.dateAdapter=e,this.viewDateChange=new ie}onClick(){this.viewDateChange.emit(this.dateAdapter.startOfDay(new Date))}};return n.\u0275fac=function(e){return new(e||n)(g(Dn))},n.\u0275dir=T({type:n,selectors:[["","mwlCalendarToday",""]],hostBindings:function(e,i){1&e&&Le("click",function(){return i.onClick()})},inputs:{viewDate:"viewDate"},outputs:{viewDateChange:"viewDateChange"}}),b([x(),_("design:type",Date)],n.prototype,"viewDate",void 0),b([ut(),_("design:type",ie)],n.prototype,"viewDateChange",void 0),b([Ra("click"),_("design:type",Function),_("design:paramtypes",[]),_("design:returntype",void 0)],n.prototype,"onClick",null),n=b([_("design:paramtypes",[Dn])],n),n})(),IG=(()=>{let n=class{constructor(e){this.dateAdapter=e}monthViewColumnHeader({date:e,locale:i}){return un(e,"EEEE",i)}monthViewDayNumber({date:e,locale:i}){return un(e,"d",i)}monthViewTitle({date:e,locale:i}){return un(e,"LLLL y",i)}weekViewColumnHeader({date:e,locale:i}){return un(e,"EEEE",i)}weekViewColumnSubHeader({date:e,locale:i}){return un(e,"MMM d",i)}weekViewTitle({date:e,locale:i,weekStartsOn:r,excludeDays:s,daysInWeek:o}){const{viewStart:a,viewEnd:l}=function Ig(n,t,e,i=[],r){let s=r?n.startOfDay(t):n.startOfWeek(t,{weekStartsOn:e});const o=n.endOfWeek(t,{weekStartsOn:e});for(;i.indexOf(n.getDay(s))>-1&&s<o;)s=n.addDays(s,1);if(r)return{viewStart:s,viewEnd:n.endOfDay(Yi(n,s,r-1,i))};{let a=o;for(;i.indexOf(n.getDay(a))>-1&&a>s;)a=n.subDays(a,1);return{viewStart:s,viewEnd:a}}}(this.dateAdapter,e,r,s,o),c=(u,d)=>un(u,"MMM d"+(d?", yyyy":""),i);return`${c(a,a.getUTCFullYear()!==l.getUTCFullYear())} - ${c(l,!0)}`}weekViewHour({date:e,locale:i}){return un(e,"h a",i)}dayViewHour({date:e,locale:i}){return un(e,"h a",i)}dayViewTitle({date:e,locale:i}){return un(e,"EEEE, MMMM d, y",i)}};return n.\u0275fac=function(e){return new(e||n)(S(Dn))},n.\u0275prov=R({token:n,factory:function(t){return n.\u0275fac(t)}}),n=b([_("design:paramtypes",[Dn])],n),n})(),ol=(()=>{let n=class extends IG{};return n.\u0275fac=function(){let t;return function(i){return(t||(t=se(n)))(i||n)}}(),n.\u0275prov=R({token:n,factory:function(t){return n.\u0275fac(t)}}),n})(),al=(()=>{let n=class{constructor(e,i){this.dateFormatter=e,this.locale=i}transform(e,i,r=this.locale,s=0,o=[],a){if(void 0===this.dateFormatter[i]){const l=Object.getOwnPropertyNames(Object.getPrototypeOf(ol.prototype)).filter(c=>"constructor"!==c);throw new Error(`${i} is not a valid date formatter. Can only be one of ${l.join(", ")}`)}return this.dateFormatter[i]({date:e,locale:r,weekStartsOn:s,excludeDays:o,daysInWeek:a})}};return n.\u0275fac=function(e){return new(e||n)(g(ol,16),g(bn,16))},n.\u0275pipe=vn({name:"calendarDate",type:n,pure:!0}),n=b([Ho(1,_r(bn)),_("design:paramtypes",[ol,String])],n),n})();class Hu{month(t,e){return t.title}monthTooltip(t,e){return t.title}week(t,e){return t.title}weekTooltip(t,e){return t.title}day(t,e){return t.title}dayTooltip(t,e){return t.title}}let kg=(()=>{let n=class{constructor(e){this.calendarEventTitle=e}transform(e,i,r){return this.calendarEventTitle[i](r,e)}};return n.\u0275fac=function(e){return new(e||n)(g(Hu,16))},n.\u0275pipe=vn({name:"calendarEventTitle",type:n,pure:!0}),n=b([_("design:paramtypes",[Hu])],n),n})(),ks=(()=>{let n=class{constructor(e,i,r){this.renderer=e,this.elm=i,this.document=r,this.clickListenerDisabled=!1,this.click=new ie,this.destroy$=new O}ngOnInit(){this.clickListenerDisabled||this.listen().pipe(vt(this.destroy$)).subscribe(e=>{e.stopPropagation(),this.click.emit(e)})}ngOnDestroy(){this.destroy$.next()}listen(){return new Y(e=>this.renderer.listen(this.elm.nativeElement,"click",i=>{e.next(i)}))}};return n.\u0275fac=function(e){return new(e||n)(g(ln),g(de),g(ke))},n.\u0275dir=T({type:n,selectors:[["","mwlClick",""]],inputs:{clickListenerDisabled:"clickListenerDisabled"},outputs:{click:"mwlClick"}}),b([x(),_("design:type",Object)],n.prototype,"clickListenerDisabled",void 0),b([ut("mwlClick"),_("design:type",Object)],n.prototype,"click",void 0),n=b([Ho(2,_r(ke)),_("design:paramtypes",[ln,de,Object])],n),n})(),ju=(()=>{let n=class{constructor(e,i,r){this.host=e,this.ngZone=i,this.renderer=r,this.keydown=new ie,this.keydownListener=null}ngOnInit(){this.ngZone.runOutsideAngular(()=>{this.keydownListener=this.renderer.listen(this.host.nativeElement,"keydown",e=>{(13===e.keyCode||13===e.which||"Enter"===e.key)&&(e.preventDefault(),e.stopPropagation(),this.ngZone.run(()=>{this.keydown.emit(e)}))})})}ngOnDestroy(){null!==this.keydownListener&&(this.keydownListener(),this.keydownListener=null)}};return n.\u0275fac=function(e){return new(e||n)(g(de),g($e),g(ln))},n.\u0275dir=T({type:n,selectors:[["","mwlKeydownEnter",""]],outputs:{keydown:"mwlKeydownEnter"}}),b([ut("mwlKeydownEnter"),_("design:type",Object)],n.prototype,"keydown",void 0),n=b([_("design:paramtypes",[de,$e,ln])],n),n})(),Go=(()=>{let n=class{constructor(e){this.dateAdapter=e}getMonthView(e){return function a$(n,t){var e=t.events,i=void 0===e?[]:e,r=t.viewDate,s=t.weekStartsOn,o=t.excluded,a=void 0===o?[]:o,l=t.viewStart,c=void 0===l?n.startOfMonth(r):l,u=t.viewEnd,d=void 0===u?n.endOfMonth(r):u,h=t.weekendDays;i||(i=[]);for(var ae,p=n.endOfWeek,v=n.differenceInDays,D=n.startOfDay,E=n.addHours,w=n.endOfDay,M=n.isSameMonth,k=n.getDay,be=(0,n.startOfWeek)(c,{weekStartsOn:s}),Fe=p(d,{weekStartsOn:s}),Ce=tl(n,{events:i,periodStart:be,periodEnd:Fe}),fe=[],Q=function(Ue){var Qe;if(ae?(Qe=D(E(ae,24)),ae.getTime()===Qe.getTime()&&(Qe=D(E(ae,25))),ae=Qe):Qe=ae=be,!a.some(function(Mi){return k(Qe)===Mi})){var Ot=a0(n,{date:Qe,weekendDays:h}),gn=tl(n,{events:Ce,periodStart:D(Qe),periodEnd:w(Qe)});Ot.inMonth=M(Qe,r),Ot.events=gn,Ot.badgeTotal=gn.length,fe.push(Ot)}},N=0;N<v(Fe,be)+1;N++)Q();var je=[],Ge=7-a.length;if(Ge<7)for(N=0;N<fe.length;N+=Ge){var Ki=fe.slice(N,N+Ge);Ki.some(function(Qe){return c<=Qe.date&&Qe.date<d})&&(je=s0(je,Ki))}else je=fe;var le=Math.floor(je.length/Ge),ue=[];for(N=0;N<le;N++)ue.push(N*Ge);return{rowOffsets:ue,totalDaysVisibleInWeek:Ge,days:je,period:{start:je[0].date,end:w(je[je.length-1].date),events:Ce}}}(this.dateAdapter,e)}getWeekViewHeader(e){return fg(this.dateAdapter,e)}getWeekView(e){return function o$(n,t){var e=t.events,i=void 0===e?[]:e,r=t.viewDate,s=t.weekStartsOn,o=t.excluded,a=void 0===o?[]:o,l=t.precision,c=void 0===l?"days":l,u=t.absolutePositionedEvents,d=void 0!==u&&u,h=t.hourSegments,f=t.hourDuration,p=t.dayStart,v=t.dayEnd,D=t.weekendDays,E=t.segmentHeight,w=t.minimumEventHeight,M=t.viewStart,k=void 0===M?n.startOfWeek(r,{weekStartsOn:s}):M,j=t.viewEnd,be=void 0===j?n.endOfWeek(r,{weekStartsOn:s}):j;i||(i=[]);var Ce=n.endOfDay,fe=tl(n,{events:i,periodStart:k=(0,n.startOfDay)(k),periodEnd:be=Ce(be)}),ae=fg(n,{viewDate:r,weekStartsOn:s,excluded:a,weekendDays:D,viewStart:k,viewEnd:be});return{allDayEventRows:r$(n,{events:fe,excluded:a,precision:c,absolutePositionedEvents:d,viewStart:k,viewEnd:be}),period:{events:fe,start:ae[0].date,end:Ce(ae[ae.length-1].date)},hourColumns:s$(n,{events:i,viewDate:r,hourSegments:h,hourDuration:f,dayStart:p,dayEnd:v,weekStartsOn:s,excluded:a,weekendDays:D,segmentHeight:E,viewStart:k,viewEnd:be,minimumEventHeight:w})}}(this.dateAdapter,e)}};return n.\u0275fac=function(e){return new(e||n)(S(Dn))},n.\u0275prov=R({token:n,factory:function(t){return n.\u0275fac(t)}}),n=b([_("design:paramtypes",[Dn])],n),n})(),ll=(()=>{let n=class{constructor(e){this.i18nPlural=e}monthCell({day:e,locale:i}){return e.badgeTotal>0?`\n ${un(e.date,"EEEE MMMM d",i)},\n ${this.i18nPlural.transform(e.badgeTotal,{"=0":"No events","=1":"One event",other:"# events"})},\n click to expand\n `:`${un(e.date,"EEEE MMMM d",i)}`}openDayEventsLandmark({date:e,locale:i}){return`\n Beginning of expanded view for ${un(e,"EEEE MMMM dd",i)}\n `}openDayEventsAlert({date:e,locale:i}){return`${un(e,"EEEE MMMM dd",i)} expanded`}eventDescription({event:e,locale:i}){if(!0===e.allDay)return this.allDayEventDescription({event:e,locale:i});const r=`\n ${un(e.start,"EEEE MMMM dd",i)},\n ${e.title}, from ${un(e.start,"hh:mm a",i)}\n `;return e.end?r+` to ${un(e.end,"hh:mm a",i)}`:r}allDayEventDescription({event:e,locale:i}){const r=`\n ${e.title}, event spans multiple days:\n start time ${un(e.start,"MMMM dd hh:mm a",i)}\n `;return e.end?r+`, stop time ${un(e.end,"MMMM d hh:mm a",i)}`:r+", no stop time"}actionButtonLabel({action:e}){return e.a11yLabel}monthCellTabIndex(){return 0}hideMonthCellEvents(){return!0}hideEventTitle(){return!0}hideWeekHourSegment(){return!0}hideDayHourSegment(){return!0}};return n.\u0275fac=function(e){return new(e||n)(S(Fc))},n.\u0275prov=R({token:n,factory:function(t){return n.\u0275fac(t)}}),n=b([_("design:paramtypes",[Fc])],n),n})(),Os=(()=>{let n=class{constructor(e,i){this.calendarA11y=e,this.locale=i}transform(e,i){if(e.locale=e.locale||this.locale,void 0===this.calendarA11y[i]){const r=Object.getOwnPropertyNames(Object.getPrototypeOf(ll.prototype)).filter(s=>"constructor"!==s);throw new Error(`${i} is not a valid a11y method. Can only be one of ${r.join(", ")}`)}return this.calendarA11y[i](e)}};return n.\u0275fac=function(e){return new(e||n)(g(ll,16),g(bn,16))},n.\u0275pipe=vn({name:"calendarA11y",type:n,pure:!0}),n=b([Ho(1,_r(bn)),_("design:paramtypes",[ll,String])],n),n})();new ne("Moment");var B0,Zr=(()=>(function(n){n.Drag="drag",n.Drop="drop",n.Resize="resize"}(Zr||(Zr={})),Zr))();let dr=B0=class{static forRoot(t,e={}){return{ngModule:B0,providers:[t,e.eventTitleFormatter||Hu,e.dateFormatter||ol,e.utils||Go,e.a11y||ll]}}};dr.\u0275fac=function(t){return new(t||dr)},dr.\u0275mod=Ke({type:dr}),dr.\u0275inj=qe({providers:[Fc],imports:[[ko]]});let kG=(()=>{let n=class{constructor(e,i,r,s){this.cdr=e,this.utils=i,this.dateAdapter=s,this.events=[],this.excludeDays=[],this.activeDayIsOpen=!1,this.tooltipPlacement="auto",this.tooltipAppendToBody=!0,this.tooltipDelay=null,this.beforeViewRender=new ie,this.dayClicked=new ie,this.eventClicked=new ie,this.columnHeaderClicked=new ie,this.eventTimesChanged=new ie,this.trackByRowOffset=(o,a)=>this.view.days.slice(a,this.view.totalDaysVisibleInWeek).map(l=>l.date.toISOString()).join("-"),this.trackByDate=(o,a)=>a.date.toISOString(),this.locale=r}ngOnInit(){this.refresh&&(this.refreshSubscription=this.refresh.subscribe(()=>{this.refreshAll(),this.cdr.markForCheck()}))}ngOnChanges(e){const i=e.viewDate||e.excludeDays||e.weekendDays,r=e.viewDate||e.events||e.excludeDays||e.weekendDays;i&&this.refreshHeader(),e.events&&(n=>{(function u$(n,t){var e=!0;function i(r,s){t(r,s),e=!1}Array.isArray(n)?n.forEach(function(r){r.start?r.start instanceof Date||i(Xr.StartPropertyNotDate,r):i(Xr.StartPropertyMissing,r),r.end&&(r.end instanceof Date||i(Xr.EndPropertyNotDate,r),r.start>r.end&&i(Xr.EndsBeforeStart,r))}):t(Xr.NotArray,n)})(n,(...e)=>console.warn("angular-calendar",...e))})(this.events),r&&this.refreshBody(),(i||r)&&this.emitBeforeViewRender(),(e.activeDayIsOpen||e.viewDate||e.events||e.excludeDays||e.activeDay)&&this.checkActiveDayIsOpen()}ngOnDestroy(){this.refreshSubscription&&this.refreshSubscription.unsubscribe()}toggleDayHighlight(e,i){this.view.days.forEach(r=>{i&&r.events.indexOf(e)>-1?r.backgroundColor=e.color&&e.color.secondary||"#D1E8FF":delete r.backgroundColor})}eventDropped(e,i,r){if(e!==r){const s=this.dateAdapter.getYear(e.date),o=this.dateAdapter.getMonth(e.date),a=this.dateAdapter.getDate(e.date),l=this.dateAdapter.setDate(this.dateAdapter.setMonth(this.dateAdapter.setYear(i.start,s),o),a);let c;if(i.end){const u=this.dateAdapter.differenceInSeconds(l,i.start);c=this.dateAdapter.addSeconds(i.end,u)}this.eventTimesChanged.emit({event:i,newStart:l,newEnd:c,day:e,type:Zr.Drop})}}refreshHeader(){this.columnHeaders=this.utils.getWeekViewHeader({viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,weekendDays:this.weekendDays})}refreshBody(){this.view=this.utils.getMonthView({events:this.events,viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,weekendDays:this.weekendDays})}checkActiveDayIsOpen(){if(!0===this.activeDayIsOpen){const e=this.activeDay||this.viewDate;this.openDay=this.view.days.find(r=>this.dateAdapter.isSameDay(r.date,e));const i=this.view.days.indexOf(this.openDay);this.openRowIndex=Math.floor(i/this.view.totalDaysVisibleInWeek)*this.view.totalDaysVisibleInWeek}else this.openRowIndex=null,this.openDay=null}refreshAll(){this.refreshHeader(),this.refreshBody(),this.emitBeforeViewRender(),this.checkActiveDayIsOpen()}emitBeforeViewRender(){this.columnHeaders&&this.view&&this.beforeViewRender.emit({header:this.columnHeaders,body:this.view.days,period:this.view.period})}};return n.\u0275fac=function(e){return new(e||n)(g(Er),g(Go),g(bn),g(Dn))},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-month-view"]],inputs:{events:"events",excludeDays:"excludeDays",activeDayIsOpen:"activeDayIsOpen",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",tooltipDelay:"tooltipDelay",locale:"locale",viewDate:"viewDate",activeDay:"activeDay",refresh:"refresh",tooltipTemplate:"tooltipTemplate",weekStartsOn:"weekStartsOn",headerTemplate:"headerTemplate",cellTemplate:"cellTemplate",openDayEventsTemplate:"openDayEventsTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",weekendDays:"weekendDays"},outputs:{beforeViewRender:"beforeViewRender",dayClicked:"dayClicked",eventClicked:"eventClicked",columnHeaderClicked:"columnHeaderClicked",eventTimesChanged:"eventTimesChanged"},features:[hn],decls:4,vars:5,consts:[["role","grid",1,"cal-month-view"],[3,"days","locale","customTemplate","columnHeaderClicked"],[1,"cal-days"],[4,"ngFor","ngForOf","ngForTrackBy"],["role","row",1,"cal-cell-row"],["role","gridcell","mwlDroppable","","dragOverClass","cal-drag-over",3,"ngClass","day","openDay","locale","tooltipPlacement","tooltipAppendToBody","tooltipTemplate","tooltipDelay","customTemplate","ngStyle","clickListenerDisabled","mwlClick","mwlKeydownEnter","highlightDay","unhighlightDay","drop","eventClicked",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDroppable","","dragOverClass","cal-drag-over",3,"locale","isOpen","events","date","customTemplate","eventTitleTemplate","eventActionsTemplate","eventClicked","drop"],["role","gridcell","mwlDroppable","","dragOverClass","cal-drag-over",3,"ngClass","day","openDay","locale","tooltipPlacement","tooltipAppendToBody","tooltipTemplate","tooltipDelay","customTemplate","ngStyle","clickListenerDisabled","mwlClick","mwlKeydownEnter","highlightDay","unhighlightDay","drop","eventClicked"]],template:function(e,i){1&e&&(oe(0,"div",0)(1,"mwl-calendar-month-view-header",1),Le("columnHeaderClicked",function(s){return i.columnHeaderClicked.emit(s)}),ye(),oe(2,"div",2),pe(3,fz,5,13,"div",3),ye()()),2&e&&(te(1),L("days",i.columnHeaders)("locale",i.locale)("customTemplate",i.headerTemplate),te(2),L("ngForOf",i.view.rowOffsets)("ngForTrackBy",i.trackByRowOffset))},directives:function(){return[OG,Hr,FG,Eg,ai,bs,ks,ju,PG]},pipes:function(){return[Os,tD]},encapsulation:2}),b([x(),_("design:type",Date)],n.prototype,"viewDate",void 0),b([x(),_("design:type",Array)],n.prototype,"events",void 0),b([x(),_("design:type",Array)],n.prototype,"excludeDays",void 0),b([x(),_("design:type",Boolean)],n.prototype,"activeDayIsOpen",void 0),b([x(),_("design:type",Date)],n.prototype,"activeDay",void 0),b([x(),_("design:type",O)],n.prototype,"refresh",void 0),b([x(),_("design:type",String)],n.prototype,"locale",void 0),b([x(),_("design:type",Object)],n.prototype,"tooltipPlacement",void 0),b([x(),_("design:type",De)],n.prototype,"tooltipTemplate",void 0),b([x(),_("design:type",Boolean)],n.prototype,"tooltipAppendToBody",void 0),b([x(),_("design:type",Number)],n.prototype,"tooltipDelay",void 0),b([x(),_("design:type",Number)],n.prototype,"weekStartsOn",void 0),b([x(),_("design:type",De)],n.prototype,"headerTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"cellTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"openDayEventsTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"eventTitleTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"eventActionsTemplate",void 0),b([x(),_("design:type",Array)],n.prototype,"weekendDays",void 0),b([ut(),_("design:type",Object)],n.prototype,"beforeViewRender",void 0),b([ut(),_("design:type",Object)],n.prototype,"dayClicked",void 0),b([ut(),_("design:type",Object)],n.prototype,"eventClicked",void 0),b([ut(),_("design:type",Object)],n.prototype,"columnHeaderClicked",void 0),b([ut(),_("design:type",Object)],n.prototype,"eventTimesChanged",void 0),n=b([Ho(2,_r(bn)),_("design:paramtypes",[Er,Go,String,Dn])],n),n})(),OG=(()=>{let n=class{constructor(){this.columnHeaderClicked=new ie,this.trackByWeekDayHeaderDate=Ag}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-month-view-header"]],inputs:{days:"days",locale:"locale",customTemplate:"customTemplate"},outputs:{columnHeaderClicked:"columnHeaderClicked"},decls:3,vars:6,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","row",1,"cal-cell-row","cal-header"],["class","cal-cell","tabindex","0","role","columnheader",3,"cal-past","cal-today","cal-future","cal-weekend","ngClass","click",4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","0","role","columnheader",1,"cal-cell",3,"ngClass","click"]],template:function(e,i){if(1&e&&(pe(0,gz,2,2,"ng-template",null,0,vi),pe(2,mz,0,0,"ng-template",1)),2&e){const r=fn(1);te(2),L("ngTemplateOutlet",i.customTemplate||r)("ngTemplateOutletContext",rf(2,yz,i.days,i.locale,i.trackByWeekDayHeaderDate))}},directives:[Hr,ai,Di],pipes:[al],encapsulation:2}),b([x(),_("design:type",Array)],n.prototype,"days",void 0),b([x(),_("design:type",String)],n.prototype,"locale",void 0),b([x(),_("design:type",De)],n.prototype,"customTemplate",void 0),b([ut(),_("design:type",Object)],n.prototype,"columnHeaderClicked",void 0),n})(),FG=(()=>{let n=class{constructor(){this.highlightDay=new ie,this.unhighlightDay=new ie,this.eventClicked=new ie,this.trackByEventId=N0,this.validateDrag=Bu}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-month-cell"]],hostAttrs:[1,"cal-cell","cal-day-cell"],hostVars:18,hostBindings:function(e,i){2&e&&Qt("cal-past",i.day.isPast)("cal-today",i.day.isToday)("cal-future",i.day.isFuture)("cal-weekend",i.day.isWeekend)("cal-in-month",i.day.inMonth)("cal-out-month",!i.day.inMonth)("cal-has-events",i.day.events.length>0)("cal-open",i.day===i.openDay)("cal-event-highlight",!!i.day.backgroundColor)},inputs:{day:"day",openDay:"openDay",locale:"locale",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",customTemplate:"customTemplate",tooltipTemplate:"tooltipTemplate",tooltipDelay:"tooltipDelay"},outputs:{highlightDay:"highlightDay",unhighlightDay:"unhighlightDay",eventClicked:"eventClicked"},decls:3,vars:15,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-cell-top"],["aria-hidden","true"],["class","cal-day-badge",4,"ngIf"],[1,"cal-day-number"],["class","cal-events",4,"ngIf"],[1,"cal-day-badge"],[1,"cal-events"],["class","cal-event","mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngStyle","ngClass","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","cal-draggable","dropData","dragAxis","validateDrag","touchStartLongPress","mouseenter","mouseleave","mwlClick",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDraggable","","dragActiveClass","cal-drag-active",1,"cal-event",3,"ngStyle","ngClass","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","dropData","dragAxis","validateDrag","touchStartLongPress","mouseenter","mouseleave","mwlClick"]],template:function(e,i){if(1&e&&(pe(0,Cz,8,14,"ng-template",null,0,vi),pe(2,Ez,0,0,"ng-template",1)),2&e){const r=fn(1);te(2),L("ngTemplateOutlet",i.customTemplate||r)("ngTemplateOutletContext",af(2,xz,[i.day,i.openDay,i.locale,i.tooltipPlacement,i.highlightDay,i.unhighlightDay,i.eventClicked,i.tooltipTemplate,i.tooltipAppendToBody,i.tooltipDelay,i.trackByEventId,i.validateDrag]))}},directives:[ws,Hr,Cg,bs,ai,O0,ks,Di],pipes:[Os,al,kg],encapsulation:2}),b([x(),_("design:type",Object)],n.prototype,"day",void 0),b([x(),_("design:type",Object)],n.prototype,"openDay",void 0),b([x(),_("design:type",String)],n.prototype,"locale",void 0),b([x(),_("design:type",Object)],n.prototype,"tooltipPlacement",void 0),b([x(),_("design:type",Boolean)],n.prototype,"tooltipAppendToBody",void 0),b([x(),_("design:type",De)],n.prototype,"customTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"tooltipTemplate",void 0),b([x(),_("design:type",Number)],n.prototype,"tooltipDelay",void 0),b([ut(),_("design:type",ie)],n.prototype,"highlightDay",void 0),b([ut(),_("design:type",ie)],n.prototype,"unhighlightDay",void 0),b([ut(),_("design:type",Object)],n.prototype,"eventClicked",void 0),n})();const RG=pE("collapse",[su("void",lr({height:0,overflow:"hidden","padding-top":0,"padding-bottom":0})),su("*",lr({height:"*",overflow:"hidden","padding-top":"*","padding-bottom":"*"})),ou("* => void",ru("150ms ease-out")),ou("void => *",ru("150ms ease-in"))]);let PG=(()=>{let n=class{constructor(){this.isOpen=!1,this.eventClicked=new ie,this.trackByEventId=N0,this.validateDrag=Bu}};return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["mwl-calendar-open-day-events"]],inputs:{isOpen:"isOpen",locale:"locale",events:"events",customTemplate:"customTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",date:"date"},outputs:{eventClicked:"eventClicked"},decls:3,vars:8,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","cal-open-day-events","role","application",4,"ngIf"],["role","application",1,"cal-open-day-events"],["tabindex","-1","role","alert"],["tabindex","0","role","landmark"],["mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngClass","cal-draggable","dropData","dragAxis","validateDrag","touchStartLongPress",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngClass","dropData","dragAxis","validateDrag","touchStartLongPress"],[1,"cal-event",3,"ngStyle"],["view","month","tabindex","0",3,"event","customTemplate","mwlClick","mwlKeydownEnter"],[3,"event","customTemplate"]],template:function(e,i){if(1&e&&(pe(0,Tz,1,1,"ng-template",null,0,vi),pe(2,Iz,0,0,"ng-template",1)),2&e){const r=fn(1);te(2),L("ngTemplateOutlet",i.customTemplate||r)("ngTemplateOutletContext",sf(2,kz,i.events,i.eventClicked,i.isOpen,i.trackByEventId,i.validateDrag))}},directives:[ws,Hr,Cg,ai,bs,k0,ks,ju,I0,Di],pipes:[Os],encapsulation:2,data:{animation:[RG]}}),b([x(),_("design:type",String)],n.prototype,"locale",void 0),b([x(),_("design:type",Boolean)],n.prototype,"isOpen",void 0),b([x(),_("design:type",Array)],n.prototype,"events",void 0),b([x(),_("design:type",De)],n.prototype,"customTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"eventTitleTemplate",void 0),b([x(),_("design:type",De)],n.prototype,"eventActionsTemplate",void 0),b([x(),_("design:type",Date)],n.prototype,"date",void 0),b([ut(),_("design:type",Object)],n.prototype,"eventClicked",void 0),n})(),H0=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[ko,Pu,dr],Pu]}),n})(),Og=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[ko,S0,Pu,dr],S0,Pu]}),n})(),j0=(()=>{let n=class{};return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[ko,dr,Og]]}),n})();var $0;let Uo=$0=class{static forRoot(t,e={}){return{ngModule:$0,providers:[t,e.eventTitleFormatter||Hu,e.dateFormatter||ol,e.utils||Go,e.a11y||ll]}}};function Cn(n){if(null===n||!0===n||!1===n)return NaN;var t=Number(n);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Ae(n,t){if(t.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+t.length+" present")}function nt(n){Ae(1,arguments);var t=Object.prototype.toString.call(n);return n instanceof Date||"object"==typeof n&&"[object Date]"===t?new Date(n.getTime()):"number"==typeof n||"[object Number]"===t?new Date(n):(("string"==typeof n||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Fg(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t);return isNaN(i)?new Date(NaN):(i&&e.setDate(e.getDate()+i),e)}function Rg(n,t){Ae(2,arguments);var e=nt(n).getTime(),i=Cn(t);return new Date(e+i)}function GG(n,t){Ae(2,arguments);var e=Cn(t);return Rg(n,36e5*e)}function WG(n,t){Ae(2,arguments);var e=Cn(t);return Rg(n,6e4*e)}function YG(n,t){Ae(2,arguments);var e=Cn(t);return Rg(n,1e3*e)}function z0(n){var t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),n.getTime()-t.getTime()}function cl(n){Ae(1,arguments);var t=nt(n);return t.setHours(0,0,0,0),t}function KG(n,t){Ae(2,arguments);var e=cl(n),i=cl(t),r=e.getTime()-z0(e),s=i.getTime()-z0(i);return Math.round((r-s)/864e5)}function G0(n,t){var e=n.getFullYear()-t.getFullYear()||n.getMonth()-t.getMonth()||n.getDate()-t.getDate()||n.getHours()-t.getHours()||n.getMinutes()-t.getMinutes()||n.getSeconds()-t.getSeconds()||n.getMilliseconds()-t.getMilliseconds();return e<0?-1:e>0?1:e}function XG(n,t){Ae(2,arguments);var e=nt(n),i=nt(t),r=G0(e,i),s=Math.abs(KG(e,i));e.setDate(e.getDate()-r*s);var o=Number(G0(e,i)===-r),a=r*(s-o);return 0===a?0:a}function W0(n,t){return Ae(2,arguments),nt(n).getTime()-nt(t).getTime()}Uo.\u0275fac=function(t){return new(t||Uo)},Uo.\u0275mod=Ke({type:Uo}),Uo.\u0275inj=qe({imports:[[dr,H0,Og,j0],dr,H0,Og,j0]}),Math.pow(10,8);var Y0={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(n){return n<0?Math.ceil(n):Math.floor(n)}};function q0(n){return n?Y0[n]:Y0.trunc}function s3(n,t,e){Ae(2,arguments);var i=W0(n,t)/6e4;return q0(null==e?void 0:e.roundingMethod)(i)}function o3(n,t,e){Ae(2,arguments);var i=W0(n,t)/1e3;return q0(null==e?void 0:e.roundingMethod)(i)}function a3(n){Ae(1,arguments);var t=nt(n);return t.setHours(23,59,59,999),t}function l3(n){Ae(1,arguments);var t=nt(n),e=t.getMonth();return t.setFullYear(t.getFullYear(),e+1,0),t.setHours(23,59,59,999),t}var K0={};function X0(){return K0}function c3(n,t){var e,i,r,s,o,a,l,c;Ae(1,arguments);var u=X0(),d=Cn(null!==(e=null!==(i=null!==(r=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t||null===(o=t.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:u.weekStartsOn)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==e?e:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=nt(n),f=h.getDay(),p=6+(f<d?-7:0)-(f-d);return h.setDate(h.getDate()+p),h.setHours(23,59,59,999),h}function u3(n){Ae(1,arguments);var t=nt(n),e=t.getDay();return e}function d3(n){Ae(1,arguments);var t=nt(n),e=t.getMonth();return e}function h3(n,t){Ae(2,arguments);var e=cl(n),i=cl(t);return e.getTime()===i.getTime()}function f3(n,t){Ae(2,arguments);var e=nt(n),i=nt(t);return e.getFullYear()===i.getFullYear()&&e.getMonth()===i.getMonth()}function Q0(n){Ae(1,arguments);var t=nt(n);return t.setMilliseconds(0),t}function p3(n,t){Ae(2,arguments);var e=Q0(n),i=Q0(t);return e.getTime()===i.getTime()}function g3(n){var t,e;if(Ae(1,arguments),n&&"function"==typeof n.forEach)t=n;else{if("object"!=typeof n||null===n)return new Date(NaN);t=Array.prototype.slice.call(n)}return t.forEach(function(i){var r=nt(i);(void 0===e||e<r||isNaN(Number(r)))&&(e=r)}),e||new Date(NaN)}function m3(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t);return e.setHours(i),e}function y3(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t);return e.setMinutes(i),e}function v3(n){Ae(1,arguments);var t=nt(n);return t.setSeconds(0,0),t}function _3(n){Ae(1,arguments);var t=nt(n);return t.setDate(1),t.setHours(0,0,0,0),t}function Z0(n,t){var e,i,r,s,o,a,l,c;Ae(1,arguments);var u=X0(),d=Cn(null!==(e=null!==(i=null!==(r=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t||null===(o=t.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==r?r:u.weekStartsOn)&&void 0!==i?i:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==e?e:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=nt(n),f=h.getDay(),p=(f<d?7:0)+f-d;return h.setDate(h.getDate()-p),h.setHours(0,0,0,0),h}function w3(n){Ae(1,arguments);var t=nt(n),e=t.getHours();return e}function b3(n){Ae(1,arguments);var t=nt(n),e=t.getMinutes();return e}function J0(n,t){Ae(2,arguments);var e=Cn(t),i=7*e;return Fg(n,i)}function ex(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t);if(isNaN(i))return new Date(NaN);if(!i)return e;var r=e.getDate(),s=new Date(e.getTime());s.setMonth(e.getMonth()+i+1,0);var o=s.getDate();return r>=o?s:(e.setFullYear(s.getFullYear(),s.getMonth(),r),e)}function C3(n,t){Ae(2,arguments);var e=Cn(t);return Fg(n,-e)}function E3(n,t){Ae(2,arguments);var e=Cn(t);return J0(n,-e)}function x3(n,t){Ae(2,arguments);var e=Cn(t);return ex(n,-e)}function $u(n){return Ae(1,arguments),Z0(n,{weekStartsOn:1})}function S3(n){Ae(1,arguments);var t=nt(n),e=t.getFullYear(),i=new Date(0);i.setFullYear(e+1,0,4),i.setHours(0,0,0,0);var r=$u(i),s=new Date(0);s.setFullYear(e,0,4),s.setHours(0,0,0,0);var o=$u(s);return t.getTime()>=r.getTime()?e+1:t.getTime()>=o.getTime()?e:e-1}function M3(n){Ae(1,arguments);var t=S3(n),e=new Date(0);e.setFullYear(t,0,4),e.setHours(0,0,0,0);var i=$u(e);return i}var A3=6048e5;function T3(n){Ae(1,arguments);var t=nt(n),e=$u(t).getTime()-M3(t).getTime();return Math.round(e/A3)+1}function I3(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t);return e.setDate(i),e}function k3(n){Ae(1,arguments);var t=nt(n),e=t.getFullYear(),i=t.getMonth(),r=new Date(0);return r.setFullYear(e,i+1,0),r.setHours(0,0,0,0),r.getDate()}function O3(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t),r=e.getFullYear(),s=e.getDate(),o=new Date(0);o.setFullYear(r,i,15),o.setHours(0,0,0,0);var a=k3(o);return e.setMonth(i,Math.min(s,a)),e}function F3(n,t){Ae(2,arguments);var e=nt(n),i=Cn(t);return isNaN(e.getTime())?new Date(NaN):(e.setFullYear(i),e)}function R3(n){Ae(1,arguments);var t=nt(n),e=t.getDate();return e}function P3(n){return Ae(1,arguments),nt(n).getFullYear()}function N3(){return Mu(Mu({},function D3(){return{addDays:Fg,addHours:GG,addMinutes:WG,addSeconds:YG,differenceInDays:XG,differenceInMinutes:s3,differenceInSeconds:o3,endOfDay:a3,endOfMonth:l3,endOfWeek:c3,getDay:u3,getMonth:d3,isSameDay:h3,isSameMonth:f3,isSameSecond:p3,max:g3,setHours:m3,setMinutes:y3,startOfDay:cl,startOfMinute:v3,startOfMonth:_3,startOfWeek:Z0,getHours:w3,getMinutes:b3}}()),{addWeeks:J0,addMonths:ex,subDays:C3,subWeeks:E3,subMonths:x3,getISOWeek:T3,setDate:I3,setMonth:O3,setYear:F3,getDate:R3,getYear:P3})}let Pg;try{Pg="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Pg=!1}let ul,Fs,Lg,qi=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?jr(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Pg)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(S(_i))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ng=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({}),n})();function zu(n){return function L3(){if(null==ul&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ul=!0}))}finally{ul=ul||!1}return ul}()?n:!!n.capture}function V3(){if(null==Fs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Fs=!1,Fs;if("scrollBehavior"in document.documentElement.style)Fs=!0;else{const n=Element.prototype.scrollTo;Fs=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Fs}function Rs(n){return n.composedPath?n.composedPath()[0]:n.target}function Vg(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}function ix(n){return t=>t.lift(new q3(n))}class q3{constructor(t){this.total=t}call(t,e){return e.subscribe(new K3(t,this.total))}}class K3 extends Ve{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}let X3=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Q3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({providers:[X3]}),n})();function Uu(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const sx="cdk-describedby-message-container",ox="cdk-describedby-message",Wu="cdk-describedby-host";let eU=0;const hr=new Map;let ui=null,tU=(()=>{class n{constructor(e){this._document=e}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const s=Bg(i,r);"string"!=typeof i?(ax(i),hr.set(s,{messageElement:i,referenceCount:0})):hr.has(s)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,s)||this._addMessageReference(e,s)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const s=Bg(i,r);if(this._isElementDescribedByMessage(e,s)&&this._removeMessageReference(e,s),"string"==typeof i){const o=hr.get(s);o&&0===o.referenceCount&&this._deleteMessageElement(s)}ui&&0===ui.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Wu}]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(Wu);ui&&this._deleteMessagesContainer(),hr.clear()}_createMessageElement(e,i){const r=this._document.createElement("div");ax(r),r.textContent=e,i&&r.setAttribute("role",i),this._createMessagesContainer(),ui.appendChild(r),hr.set(Bg(e,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(e){var i;const r=hr.get(e);null===(i=null==r?void 0:r.messageElement)||void 0===i||i.remove(),hr.delete(e)}_createMessagesContainer(){if(!ui){const e=this._document.getElementById(sx);null==e||e.remove(),ui=this._document.createElement("div"),ui.id=sx,ui.style.visibility="hidden",ui.classList.add("cdk-visually-hidden"),this._document.body.appendChild(ui)}}_deleteMessagesContainer(){ui&&(ui.remove(),ui=null)}_removeCdkDescribedByReferenceIds(e){const i=Uu(e,"aria-describedby").filter(r=>0!=r.indexOf(ox));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=hr.get(i);(function Z3(n,t,e){const i=Uu(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Wu,""),r.referenceCount++}_removeMessageReference(e,i){const r=hr.get(i);r.referenceCount--,function J3(n,t,e){const r=Uu(n,t).filter(s=>s!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Wu)}_isElementDescribedByMessage(e,i){const r=Uu(e,"aria-describedby"),s=hr.get(i),o=s&&s.messageElement.id;return!!o&&-1!=r.indexOf(o)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),s=e.getAttribute("aria-label");return!(!r||s&&s.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Bg(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function ax(n){n.id||(n.id=`${ox}-${eU++}`)}function cx(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function ux(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const aU=new ne("cdk-input-modality-detector-options"),lU={ignoreKeys:[18,17,224,91,16]},Yo=zu({passive:!0,capture:!0});let cU=(()=>{class n{constructor(e,i,r,s){this._platform=e,this._mostRecentTarget=null,this._modality=new op(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Rs(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(cx(o)?"keyboard":"mouse"),this._mostRecentTarget=Rs(o))},this._onTouchstart=o=>{ux(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Rs(o))},this._options=Object.assign(Object.assign({},lU),s),this.modalityDetected=this._modality.pipe(ix(1)),this.modalityChanged=this.modalityDetected.pipe(m0()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Yo),r.addEventListener("mousedown",this._onMousedown,Yo),r.addEventListener("touchstart",this._onTouchstart,Yo)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Yo),document.removeEventListener("mousedown",this._onMousedown,Yo),document.removeEventListener("touchstart",this._onTouchstart,Yo))}}return n.\u0275fac=function(e){return new(e||n)(S(qi),S($e),S(ke),S(aU,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const dU=new ne("cdk-focus-monitor-default-options"),Yu=zu({passive:!0,capture:!0});let hx=(()=>{class n{constructor(e,i,r,s,o){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new O,this._rootNodeFocusAndBlurListener=a=>{const l=Rs(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,i=!1){const r=Po(e);if(!this._platform.isBrowser||1!==r.nodeType)return Gi(null);const s=function H3(n){if(function B3(){if(null==Lg){const n="undefined"!=typeof document?document.head:null;Lg=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Lg}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new O,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Po(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const s=Po(e);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),s=Rs(e);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Yu),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Yu)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(vt(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Yu),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Yu),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,s)=>{(s===e||r.checkChildren&&s.contains(e))&&i.push([s,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(S($e),S(qi),S(cU),S(ke,8),S(dU,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const fx="cdk-high-contrast-black-on-white",px="cdk-high-contrast-white-on-black",Hg="cdk-high-contrast-active";let gx=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Hg),e.remove(fx),e.remove(px),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(Hg),e.add(fx)):2===i&&(e.add(Hg),e.add(px))}}}return n.\u0275fac=function(e){return new(e||n)(S(qi),S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hU=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(S(gx))},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[Ng,Q3]]}),n})();const pU=new ne("mat-sanity-checks",{providedIn:"root",factory:function fU(){return!0}});let Jr=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Vg()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(S(gx),S(pU,8),S(ke))},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[No],No]}),n})();function gU(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Ei(t)}}}function yx(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function mU(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Ei(t)}}}class vU{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const vx={enterDuration:225,exitDuration:150},jg=zu({passive:!0}),_x=["mousedown","touchstart"],wx=["mouseup","mouseleave","touchend","touchcancel"];class wU{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Po(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},vx),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=i.radius||function DU(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function bU(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new vU(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,r=Object.assign(Object.assign({},vx),t.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Po(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(_x))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(wx),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=cx(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!ux(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,jg)})})}_removeTriggerEvents(){this._triggerElement&&(_x.forEach(t=>{this._triggerElement.removeEventListener(t,this,jg)}),this._pointerUpEventsRegistered&&wx.forEach(t=>{this._triggerElement.removeEventListener(t,this,jg)}))}}const CU=new ne("mat-ripple-global-options");let bx=(()=>{class n{constructor(e,i,r,s,o){this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new wU(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(g(de),g($e),g(qi),g(CU,8),g(Su,8))},n.\u0275dir=T({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&Qt("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),EU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[Jr,Ng],Jr]}),n})();const xU=["mat-button",""],SU=["*"],AU=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],TU=yx(gU(mU(class{constructor(n){this._elementRef=n}})));let IU=(()=>{class n extends TU{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of AU)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(hx),g(Su,8))},n.\u0275cmp=rn({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&zw(bx,5),2&e){let r;$w(r=function Gw(){return function _F(n,t){return n[19].queries[t].queryList}(I(),_m())}())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(zt("disabled",i.disabled||null),Qt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[H],attrs:xU,ngContentSelectors:SU,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(Gh(),oe(0,"span",0),Uh(1),ye(),Xt(2,"span",1)(3,"span",2)),2&e&&(te(2),Qt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),L("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[bx],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),kU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[EU,Jr],Jr]}),n})();var hl=Ko(764),OU=Ko(274),FU=Ko(268),Dx=Ko(23);new class PU extends zi{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r<s&&(t=e.shift()));if(this.active=!1,i){for(;++r<s&&(t=e.shift());)t.unsubscribe();throw i}}}(class RU extends Hc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let LU=1;const VU=Promise.resolve(),qu={};function Cx(n){return n in qu&&(delete qu[n],!0)}const Ex={setImmediate(n){const t=LU++;return qu[t]=!0,VU.then(()=>Cx(t)&&n()),t},clearImmediate(n){Cx(n)}};new class HU extends zi{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r<s&&(t=e.shift()));if(this.active=!1,i){for(;++r<s&&(t=e.shift());)t.unsubscribe();throw i}}}(class BU extends Hc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=Ex.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(Ex.clearImmediate(e),t.scheduled=void 0)}});let xx=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new O,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Y(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(xg(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Gi()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Tn(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Po(i),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>nl(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(S($e),S(qi),S(ke,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Sx=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new O,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(xg(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(S(qi),S($e),S(ke,8))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$g=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({}),n})(),Mx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[No,Ng,$g],No,$g]}),n})();class zg{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Ax extends zg{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class GU extends zg{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class UU extends zg{constructor(t){super(),this.element=t instanceof de?t.nativeElement:t}}class YU extends class WU{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Ax?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof GU?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof UU?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,i,r,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let qU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({}),n})();const Tx=V3();class KU{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=en(-this._previousScrollPosition.left),t.style.top=en(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Tx&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Tx&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class XU{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Ix{enable(){}disable(){}attach(){}}function Gg(n,t){return t.some(e=>n.bottom<e.top||n.top>e.bottom||n.right<e.left||n.left>e.right)}function kx(n,t){return t.some(e=>n.top<e.top||n.bottom>e.bottom||n.left<e.left||n.right>e.right)}class QU{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Gg(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let ZU=(()=>{class n{constructor(e,i,r,s){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new Ix,this.close=o=>new XU(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new KU(this._viewportRuler,this._document),this.reposition=o=>new QU(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(e){return new(e||n)(S(xx),S(Sx),S($e),S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class JU{constructor(t){if(this.scrollStrategy=new Ix,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class eW{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}class tW{constructor(t,e,i,r,s,o,a,l,c){this._portalOutlet=t,this._host=e,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new O,this._attachments=new O,this._detachments=new O,this._locationChanges=he.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new O,this._outsidePointerEvents=new O,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Tr(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){var t;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(t=this._host)||void 0===t||t.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=en(this._config.width),t.height=en(this._config.height),t.minWidth=en(this._config.minWidth),t.minHeight=en(this._config.minHeight),t.maxWidth=en(this._config.maxWidth),t.maxHeight=en(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const i=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",i),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const r=Uc(e||[]).filter(s=>!!s);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(vt(qt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.remove(),this._backdropElement===t&&(this._backdropElement=null))}}let Ox=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Vg()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(e),Vg()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(e){return new(e||n)(S(ke),S(qi))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Fx="cdk-overlay-connected-position-bounding-box",nW=/([A-Za-z%]+)$/;class iW{constructor(t,e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new O,this._resizeSubscription=he.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(Fx),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),u=this._getOverlayFit(c,e,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?s.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}if(s.length){let a=null,l=-1;for(const c of s){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ps(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Fx),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,s;if("center"==i.originX)r=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?o:a}return e.left<0&&(r-=e.left),s="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(s-=e.top),{x:r,y:s}}_getOverlayPoint(t,e,i){let r,s;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,i,r){const s=Px(e);let{x:o,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-i.height,p=this._subtractOverflows(s.width,0-o,o+s.width-i.width),v=this._subtractOverflows(s.height,h,f),D=p*v;return{visibleArea:D,isCompletelyWithinViewport:s.width*s.height===D,fitsInViewportVertically:v===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,s=i.right-e.x,o=Rx(this._overlayRef.getConfig().minHeight),a=Rx(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=Px(e),s=this._viewportRect,o=Math.max(t.x+r.width-s.width,0),a=Math.max(t.y+r.height-s.height,0),l=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:t.x<this._viewportMargin?s.left-i.left-t.x:0,d=r.height<=s.height?l||-a:t.y<this._viewportMargin?s.top-i.top-t.y:0,this._previousPushAmount={x:u,y:d},{x:t.x+u,y:t.y+d}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new eW(t,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===e.overlayY)o=t.y,s=i.height-o+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-t.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-t.y+i.top,t.y),p=this._lastBoundingBoxSize.height;s=2*f,o=t.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-p/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const f=Math.min(i.right-t.x+i.left,t.x),p=this._lastBoundingBoxSize.width;u=2*f,d=t.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=en(i.height),r.top=en(i.top),r.bottom=en(i.bottom),r.width=en(i.width),r.left=en(i.left),r.right=en(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=en(s)),o&&(r.maxWidth=en(o))}this._lastBoundingBoxSize=i,Ps(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Ps(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ps(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Ps(i,this._getExactOverlayY(e,t,u)),Ps(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=en(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=en(o.maxWidth):s&&(i.maxWidth="")),Ps(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=en(s.y),r}_getExactOverlayX(t,e,i){let o,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=en(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:kx(t,i),isOriginOutsideView:Gg(t,i),isOverlayClipped:kx(e,i),isOverlayOutsideView:Gg(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Uc(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof de)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Ps(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function Rx(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(nW);return e&&"px"!==e?null:parseFloat(t)}return n||null}function Px(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Nx="cdk-global-overlay-wrapper";class rW{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Nx),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(Nx),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let sW=(()=>{class n{constructor(e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new rW}flexibleConnectedTo(e){return new iW(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(S(Sx),S(ke),S(qi),S(Ox))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Lx=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),oW=(()=>{class n extends Lx{constructor(e){super(e),this._keydownListener=i=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){r[s]._keydownEvents.next(i);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(S(ke))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aW=(()=>{class n extends Lx{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Rs(r)},this._clickListener=r=>{const s=Rs(r),o="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(s)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(e){return new(e||n)(S(ke),S(qi))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lW=0,Ku=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new JU(e);return o.direction=o.direction||this._directionality.value,new tW(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+lW++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(vc)),new YU(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(S(ZU),S(Ox),S(Cr),S(sW),S(oW),S(wn),S($e),S(ke),S(Wc),S(Nb),S(aW))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const dW={provide:new ne("cdk-connected-overlay-scroll-strategy"),deps:[Ku],useFactory:function uW(n){return()=>n.scrollStrategies.reposition()}};let hW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({providers:[Ku,dW],imports:[[No,qU,Mx],Mx]}),n})();class pW{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new gW(t,this.dueTime,this.scheduler))}}class gW extends Ve{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(mW,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function mW(n){n.debouncedNext()}const Vx=new Set;let qo,yW=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):_W}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function vW(n){if(!Vx.has(n))try{qo||(qo=document.createElement("style"),qo.setAttribute("type","text/css"),document.head.appendChild(qo)),qo.sheet&&(qo.sheet.insertRule(`@media ${n} {body{ }}`,0),Vx.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(S(qi))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function _W(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let wW=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new O}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Bx(Uc(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let s=c0(Bx(Uc(e)).map(o=>this._registerQuery(o).observable));return s=ug(s.pipe(Tr(1)),s.pipe(ix(1),function fW(n,t=Ja){return e=>e.lift(new pW(n,t))}(0))),s.pipe(P(o=>{const a={matches:!1,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),s={observable:new Y(o=>{const a=l=>this._zone.run(()=>o.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Tu(i),P(({matches:o})=>({query:e,matches:o})),vt(this._destroySubject)),mql:i};return this._queries.set(e,s),s}}return n.\u0275fac=function(e){return new(e||n)(S(yW),S($e))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Bx(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const DW={tooltipState:pE("state",[su("initial, void, hidden",lr({opacity:0,transform:"scale(0)"})),su("visible",lr({transform:"scale(1)"})),ou("* => visible",ru("200ms cubic-bezier(0, 0, 0.2, 1)",zH([lr({opacity:0,transform:"scale(0)",offset:0}),lr({opacity:.5,transform:"scale(0.99)",offset:.5}),lr({opacity:1,transform:"scale(1)",offset:1})]))),ou("* => hidden",ru("100ms cubic-bezier(0, 0, 0.2, 1)",lr({opacity:0})))])},Hx="tooltip-panel",jx=zu({passive:!0}),$x=new ne("mat-tooltip-scroll-strategy"),SW={provide:$x,deps:[Ku],useFactory:function xW(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},MW=new ne("mat-tooltip-default-options",{providedIn:"root",factory:function AW(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let TW=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h,f){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=s,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new O,this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(vt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Ei(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=VD(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=VD(e)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(vt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,jx)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new Ax(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(vt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe(vt(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${Hx}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(vt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(vt(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(vt(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!function Y3(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,r=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),s.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),s.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={originX:"end",originY:"center"});const{x:s,y:o}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:s,originY:o}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:s,y:o}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:s,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Tr(1),vt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:s}=e;let o;if(o="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===s?"above":"below",o!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${Hx}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,jx)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){!function t_(){throw new Error("invalid")}()},n.\u0275dir=T({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),IW=(()=>{class n extends TW{constructor(e,i,r,s,o,a,l,c,u,d,h,f){super(e,i,r,s,o,a,l,c,u,d,h,f),this._tooltipComponent=OW}}return n.\u0275fac=function(e){return new(e||n)(g(Ku),g(de),g(xx),g(Un),g($e),g(qi),g(tU),g(hx),g($x),g(Wc,8),g(MW,8),g(ke))},n.\u0275dir=T({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[H]}),n})(),kW=(()=>{class n{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new O}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const i=e.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(e){return new(e||n)(g(Er))},n.\u0275dir=T({type:n}),n})(),OW=(()=>{class n extends kW{constructor(e,i){super(e),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(e){return new(e||n)(g(Er),g(wW))},n.\u0275cmp=rn({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){2&e&&Dr("zoom","visible"===i._visibility?1:null)},features:[H],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,i){if(1&e&&(oe(0,"div",0),Le("@state.start",function(){return i._animationStart()})("@state.done",function(s){return i._animationDone(s)}),It(1,"async"),Ln(2),ye()),2&e){let r;Qt("mat-tooltip-handset",null==(r=function fc(n,t,e){const i=n+20,r=I(),s=Us(r,i);return Oa(r,i)?Ow(r,Fn(),t,s.transform,e,s):s.transform(e)}(1,5,i._isHandset))?null:r.matches),L("ngClass",i.tooltipClass)("@state",i._visibility),te(2),fs(i.message)}},directives:[ai],pipes:[Kf],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[DW.tooltipState]},changeDetection:0}),n})(),FW=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({providers:[SW],imports:[[hU,ko,hW,Jr],Jr,$g]}),n})();class PW{constructor(t){this.selector=t}call(t,e){return e.subscribe(new NW(t,this.selector,this.caught))}}class NW extends C{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new Qn(this);this.add(i);const r=F(e,i);r!==i&&this.add(r)}}}class VW{constructor(t){this.callback=t}call(t,e){return e.subscribe(new BW(t,this.callback))}}class BW extends Ve{constructor(t,e){super(t),this.add(new he(e))}}class jW{}class es{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),s=r.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof es?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new es;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof es?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class $W{encodeKey(t){return zx(t)}encodeValue(t){return zx(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const GW=/%(\d[a-f0-9])/gi,UW={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function zx(n){return encodeURIComponent(n).replace(GW,(t,e)=>{var i;return null!==(i=UW[e])&&void 0!==i?i:t})}function Gx(n){return`${n}`}class ts{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new $W,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function zW(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,s)),t.decodeValue(r.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(s=>{e.push({param:i,value:s,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new ts({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Gx(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(Gx(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class WW{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function Ux(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function Wx(n){return"undefined"!=typeof Blob&&n instanceof Blob}function Yx(n){return"undefined"!=typeof FormData&&n instanceof FormData}class fl{constructor(t,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function YW(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new es),this.context||(this.context=new WW),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new ts,this.urlWithParams=e}serializeBody(){return null===this.body?null:Ux(this.body)||Wx(this.body)||Yx(this.body)||function qW(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof ts?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||Yx(this.body)?null:Wx(this.body)?this.body.type||null:Ux(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ts?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const i=t.method||this.method,r=t.url||this.url,s=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,l=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let c=t.headers||this.headers,u=t.params||this.params;const d=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((h,f)=>h.set(f,t.setHeaders[f]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),u)),new fl(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:s,withCredentials:a})}}var En=(()=>((En=En||{})[En.Sent=0]="Sent",En[En.UploadProgress=1]="UploadProgress",En[En.ResponseHeader=2]="ResponseHeader",En[En.DownloadProgress=3]="DownloadProgress",En[En.Response=4]="Response",En[En.User=5]="User",En))();class Ug extends class KW{constructor(t,e=200,i="OK"){this.headers=t.headers||new es,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(t={}){super(t),this.type=En.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ug({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}function Wg(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Kx=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof fl)s=e;else{let l,c;l=r.headers instanceof es?r.headers:new es(r.headers),r.params&&(c=r.params instanceof ts?r.params:new ts({fromObject:r.params})),s=new fl(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=Gi(s).pipe(function HW(n,t){return $(n,t,1)}(l=>this.handler.handle(l)));if(e instanceof fl||"events"===r.observe)return o;const a=o.pipe(Tn(l=>l instanceof Ug));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(P(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(P(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(P(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(P(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new ts).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Wg(r,i))}post(e,i,r={}){return this.request("POST",e,Wg(r,i))}put(e,i,r={}){return this.request("PUT",e,Wg(r,i))}}return n.\u0275fac=function(e){return new(e||n)(S(jW))},n.\u0275prov=R({token:n,factory:n.\u0275fac}),n})();const QW=["*"];let Xu;function pl(n){var t;return(null===(t=function ZW(){if(void 0===Xu&&(Xu=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(Xu=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Xu}())||void 0===t?void 0:t.createHTML(n))||n}function Xx(n){return Error(`Unable to find icon with the name "${n}"`)}function Qx(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Zx(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Ns{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let gl=(()=>{class n{constructor(e,i,r,s){this._httpClient=e,this._sanitizer=i,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,s){return this._addSvgIconConfig(e,i,new Ns(r,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,s){const o=this._sanitizer.sanitize(tt.HTML,r);if(!o)throw Zx(r);const a=pl(o);return this._addSvgIconConfig(e,i,new Ns("",a,s))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new Ns(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const s=this._sanitizer.sanitize(tt.HTML,i);if(!s)throw Zx(i);const o=pl(s);return this._addSvgIconSetConfig(e,new Ns("",o,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(tt.RESOURCE_URL,e);if(!i)throw Qx(e);const r=this._cachedIconsByUrl.get(i);return r?Gi(Qu(r)):this._loadSvgIconFromConfig(new Ns(e,null)).pipe(Ga(s=>this._cachedIconsByUrl.set(i,s)),P(s=>Qu(s)))}getNamedSvgIcon(e,i=""){const r=Jx(i,e);let s=this._svgIconConfigs.get(r);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(i,e),s)return this._svgIconConfigs.set(r,s),this._getSvgFromConfig(s);const o=this._iconSetConfigs.get(i);return o?this._getSvgFromIconSetConfigs(e,o):_D(Xx(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?Gi(Qu(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(P(i=>Qu(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);if(r)return Gi(r);const s=i.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(function RW(n){return function(e){const i=new PW(n),r=e.lift(i);return i.caught=r}}(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(tt.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),Gi(null)})));return function oC(...n){if(1===n.length){const t=n[0];if(Dt(t))return qc(t,null);if(Ft(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return qc(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return qc(n=1===n.length&&Dt(n[0])?n[0]:n,null).pipe(P(e=>t(...e)))}return qc(n,null)}(s).pipe(P(()=>{const o=this._extractIconWithNameFromAnySet(e,i);if(!o)throw Xx(e);return o}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){const o=this._svgElementFromConfig(s),a=this._extractSvgIconFromSet(o,e,s.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ga(i=>e.svgText=i),P(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?Gi(null):this._fetchIcon(e).pipe(Ga(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const s=e.querySelector(`[id="${i}"]`);if(!s)return null;const o=s.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,r);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),r);const a=this._svgElementFromString(pl("<svg></svg>"));return a.appendChild(o),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(pl("<svg></svg>")),r=e.attributes;for(let s=0;s<r.length;s++){const{name:o,value:a}=r[s];"id"!==o&&i.setAttribute(o,a)}for(let s=0;s<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[s].cloneNode(!0));return i}_setSvgAttributes(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}_fetchIcon(e){var i;const{url:r,options:s}=e,o=null!==(i=null==s?void 0:s.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function JW(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==r)throw Error(`Cannot fetch icon from URL "${r}".`);const a=this._sanitizer.sanitize(tt.RESOURCE_URL,r);if(!a)throw Qx(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(P(u=>pl(u)),function LW(n){return t=>t.lift(new VW(n))}(()=>this._inProgressUrlFetches.delete(a)),Ai());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(Jx(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;r<this._resolvers.length;r++){const s=this._resolvers[r](i,e);if(s)return t8(s)?new Ns(s.url,null,s.options):new Ns(s,null)}}}return n.\u0275fac=function(e){return new(e||n)(S(Kx,8),S(Bc),S(ke,8),S(Nr))},n.\u0275prov=R({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Qu(n){return n.cloneNode(!0)}function Jx(n,t){return n+":"+t}function t8(n){return!(!n.url||!n.options)}const n8=yx(class{constructor(n){this._elementRef=n}}),i8=new ne("mat-icon-location",{providedIn:"root",factory:function r8(){const n=to(ke),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),eS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],s8=eS.map(n=>`[${n}]`).join(", "),o8=/^url\(['"]?#(.*?)['"]?\)$/;let a8=(()=>{class n extends n8{constructor(e,i,r,s,o){super(e),this._iconRegistry=i,this._location=s,this._errorHandler=o,this._inline=!1,this._currentIconFetch=he.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Ei(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=e.querySelectorAll("style");for(let s=0;s<i.length;s++)i[s].textContent+=" ";const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),i&&e.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,s)=>{r.forEach(o=>{s.setAttribute(o.name,`url('${e}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(s8),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<i.length;s++)eS.forEach(o=>{const a=i[s],l=a.getAttribute(o),c=l?l.match(o8):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:o,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(Tr(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${s.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(g(de),g(gl),function Vl(n){return function yM(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const s=e[r];if(Sm(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(s===t)return e[r+1];r+=2}}}return null}(sn(),n)}("aria-hidden"),g(i8),g(Nr))},n.\u0275cmp=rn({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(zt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),Qt("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[H],ngContentSelectors:QW,decls:1,vars:0,template:function(e,i){1&e&&(Gh(),Uh(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),l8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({imports:[[Jr],Jr]}),n})();hl.extend(FU),hl.extend(OU);let c8=(()=>{class n{constructor(){this.events=[],this.view=Qr.Month,this.viewDate=new Date,this.activeDayIsOpen=!1,this.calendarEvents=[]}eventClicked({event:e}){var i;null===(i=this.onEventClick)||void 0===i||i.call(this,{id:e.id})}dayClicked({day:e}){var r;null===(r=this.onDayClick)||void 0===r||r.call(this,{date:this.getISOString(e.date)})}viewDateChange(e){}getISOString(e){return e?hl(e).utc(!0).startOf("day").toISOString():null}ngAfterViewInit(){}ngOnChanges(e){var i;this.calendarEvents=null===(i=this.events)||void 0===i?void 0:i.map(r=>({title:r.title,color:{primary:Dx(r.color).toRgbString(),secondary:Dx(r.color).setAlpha(.3).toRgbString()},start:hl(r.start).toDate(),end:hl(r.end).toDate(),id:r.id}))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=rn({type:n,selectors:[["drayman-calendar-internal"]],inputs:{events:"events",onEventClick:"onEventClick",onDayClick:"onDayClick"},features:[hn],decls:16,vars:14,consts:[["fxLayout","column",2,"height","100%","background-color","#fff"],["fxLayout","","fxLayoutAlign","start center",2,"height","40px"],["type","button","mat-icon-button","","mwlCalendarPreviousView","","matTooltip","Previous month",3,"view","viewDate","viewDateChange"],["type","button","mat-icon-button","","mwlCalendarToday","","matTooltip","Today's month",3,"viewDate","viewDateChange"],["type","button","mat-icon-button","","mwlCalendarNextView","","matTooltip","Next month",3,"view","viewDate","viewDateChange"],["fxFlex","",2,"font-weight","bolder","text-align","center"],[2,"height","calc(100% - 32px - 40px)"],[2,"height","100%",3,"weekStartsOn","activeDayIsOpen","viewDate","events","eventClicked","dayClicked"]],template:function(e,i){1&e&&(oe(0,"div",0)(1,"div",1)(2,"button",2),Le("viewDateChange",function(s){return i.viewDate=s})("viewDateChange",function(s){return i.viewDateChange(s)}),oe(3,"mat-icon"),Ln(4,"chevron_left"),ye()(),oe(5,"button",3),Le("viewDateChange",function(s){return i.viewDate=s})("viewDateChange",function(s){return i.viewDateChange(s)}),oe(6,"mat-icon"),Ln(7,"today"),ye()(),oe(8,"button",4),Le("viewDateChange",function(s){return i.viewDate=s})("viewDateChange",function(s){return i.viewDateChange(s)}),oe(9,"mat-icon"),Ln(10,"chevron_right"),ye()(),oe(11,"div",5),Ln(12),It(13,"calendarDate"),ye()(),oe(14,"div",6)(15,"mwl-calendar-month-view",7),Le("eventClicked",function(s){return i.eventClicked(s)})("dayClicked",function(s){return i.dayClicked(s)}),ye()()()),2&e&&(te(2),L("view",i.view)("viewDate",i.viewDate),te(3),L("viewDate",i.viewDate),te(3),L("view",i.view)("viewDate",i.viewDate),te(4),Co(" ",Hi(13,10,i.viewDate,i.view+"ViewTitle","en")," "),te(3),L("weekStartsOn",1)("activeDayIsOpen",!1)("viewDate",i.viewDate)("events",i.calendarEvents))},directives:[UD,XD,IU,MG,IW,a8,TG,AG,KD,kG],pipes:[al],styles:['@charset "UTF-8"; .cal-days>div{flex:1} .cal-month-view .cal-header{text-align:center;font-weight:bolder} .cal-month-view .cal-header .cal-cell{padding:5px 0;overflow:hidden;text-overflow:ellipsis;display:block;white-space:nowrap} .cal-month-view .cal-days{display:flex;flex-direction:column;height:100%;border:1px solid;border-bottom:0} .cal-month-view .cal-cell-top{min-height:78px;flex:1} .cal-month-view .cal-cell-row{-js-display:flex;display:flex} .cal-month-view .cal-cell{float:left;flex:1;-js-display:flex;display:flex;flex-direction:column;align-items:stretch} .cal-month-view .cal-cell .cal-event{pointer-events:all!important} .cal-month-view .cal-day-cell{min-height:100px}@media all and (-ms-high-contrast: none){ .cal-month-view .cal-day-cell{display:block}} .cal-month-view .cal-day-cell:not(:last-child){border-right:1px solid} .cal-month-view .cal-days .cal-cell-row{border-bottom:1px solid} .cal-month-view .cal-day-badge{margin-top:18px;margin-left:10px;display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:middle;border-radius:10px} .cal-month-view .cal-day-number{font-size:1.2em;font-weight:400;opacity:.5;margin-top:15px;margin-right:15px;float:right;margin-bottom:10px} .cal-month-view .cal-events{flex:1;align-items:flex-end;margin:3px;line-height:10px;-js-display:flex;display:flex;flex-wrap:wrap} .cal-month-view .cal-event{width:10px;height:10px;border-radius:50%;display:inline-block;margin:2px} .cal-month-view .cal-day-cell.cal-in-month.cal-has-events{cursor:pointer} .cal-month-view .cal-day-cell.cal-out-month .cal-day-number{opacity:.1;cursor:default} .cal-month-view .cal-day-cell.cal-today .cal-day-number{font-size:1.9em} .cal-month-view .cal-open-day-events{padding:15px} .cal-month-view .cal-open-day-events .cal-event{position:relative;top:2px} .cal-month-view .cal-out-month .cal-day-badge, .cal-month-view .cal-out-month .cal-event{opacity:.3} .cal-month-view .cal-draggable{cursor:move} .cal-month-view .cal-drag-active *{pointer-events:none} .cal-month-view .cal-event-title{cursor:pointer} .cal-month-view .cal-event-title:hover{text-decoration:underline} .cal-month-view{background-color:#fff;height:100%} .cal-month-view .cal-cell-row:hover{background-color:#fafafa} .cal-month-view .cal-cell-row .cal-cell:hover, .cal-month-view .cal-cell.cal-has-events.cal-open{background-color:#ededed} .cal-month-view .cal-days{border-color:#e1e1e1} .cal-month-view .cal-day-cell:not(:last-child){border-right-color:#e1e1e1} .cal-month-view .cal-days .cal-cell-row{height:100%;border-bottom-color:#e1e1e1} .cal-month-view .cal-day-badge{background-color:#b94a48;color:#fff} .cal-month-view .cal-event{background-color:#1e90ff;border-color:#d1e8ff;color:#fff} .cal-month-view .cal-day-cell.cal-weekend .cal-day-number{color:#8b0000} .cal-month-view .cal-day-cell.cal-today{background-color:#e8fde7} .cal-month-view .cal-day-cell.cal-drag-over{background-color:#e0e0e0!important} .cal-month-view .cal-open-day-events{color:#fff;background-color:#555;box-shadow:inset 0 0 15px #00000080} .cal-week-view *{box-sizing:border-box} .cal-week-view .cal-day-headers{-js-display:flex;display:flex;padding-left:70px;border:1px solid} .cal-week-view .cal-day-headers .cal-header{flex:1;text-align:center;padding:5px} .cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right:1px solid} .cal-week-view .cal-day-headers .cal-header:first-child{border-left:1px solid} .cal-week-view .cal-day-headers span{font-weight:400;opacity:.5} .cal-week-view .cal-day-column{flex-grow:1;border-left:solid 1px} .cal-week-view .cal-event{font-size:12px;border:1px solid} .cal-week-view .cal-time-label-column{width:70px;height:100%} .cal-week-view .cal-current-time-marker{position:absolute;width:100%;height:2px;z-index:2} .cal-week-view .cal-all-day-events{border:solid 1px;border-top:0;border-bottom-width:3px;padding-top:3px;position:relative} .cal-week-view .cal-all-day-events .cal-day-columns{height:100%;width:100%;-js-display:flex;display:flex;position:absolute;top:0;z-index:0} .cal-week-view .cal-all-day-events .cal-events-row{position:relative;height:31px;margin-left:70px} .cal-week-view .cal-all-day-events .cal-event-container{display:inline-block;position:absolute} .cal-week-view .cal-all-day-events .cal-event-container.resize-active{z-index:1;pointer-events:none} .cal-week-view .cal-all-day-events .cal-event{padding:0 5px;margin-left:2px;margin-right:2px;height:28px;line-height:28px} .cal-week-view .cal-all-day-events .cal-starts-within-week .cal-event{border-top-left-radius:5px;border-bottom-left-radius:5px} .cal-week-view .cal-all-day-events .cal-ends-within-week .cal-event{border-top-right-radius:5px;border-bottom-right-radius:5px} .cal-week-view .cal-all-day-events .cal-time-label-column{-js-display:flex;display:flex;align-items:center;justify-content:center;font-size:14px} .cal-week-view .cal-all-day-events .cal-resize-handle{width:6px;height:100%;cursor:col-resize;position:absolute;top:0} .cal-week-view .cal-all-day-events .cal-resize-handle.cal-resize-handle-after-end{right:0} .cal-week-view .cal-event, .cal-week-view .cal-header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .cal-week-view .cal-drag-active{pointer-events:none;z-index:1} .cal-week-view .cal-drag-active *{pointer-events:none} .cal-week-view .cal-time-events{position:relative;border:solid 1px;border-top:0;-js-display:flex;display:flex} .cal-week-view .cal-time-events .cal-day-columns{-js-display:flex;display:flex;flex-grow:1} .cal-week-view .cal-time-events .cal-day-column{position:relative} .cal-week-view .cal-time-events .cal-events-container{position:relative} .cal-week-view .cal-time-events .cal-event-container{position:absolute;z-index:1} .cal-week-view .cal-time-events .cal-event{width:calc(100% - 2px);height:calc(100% - 2px);margin:1px;padding:0 5px;line-height:25px} .cal-week-view .cal-time-events .cal-resize-handle{width:100%;height:4px;cursor:row-resize;position:absolute} .cal-week-view .cal-time-events .cal-resize-handle.cal-resize-handle-after-end{bottom:0} .cal-week-view .cal-hour-segment{position:relative} .cal-week-view .cal-hour-segment:after{content:"\\a0"} .cal-week-view .cal-event-container:not(.cal-draggable){cursor:pointer} .cal-week-view .cal-draggable{cursor:move} .cal-week-view mwl-calendar-week-view-hour-segment, .cal-week-view .cal-hour-segment{display:block} .cal-week-view .cal-hour:not(:last-child) .cal-hour-segment, .cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment{border-bottom:thin dashed} .cal-week-view .cal-time{font-weight:700;padding-top:5px;width:70px;text-align:center} .cal-week-view .cal-hour-segment.cal-after-hour-start .cal-time{display:none} .cal-week-view .cal-starts-within-day .cal-event{border-top-left-radius:5px;border-top-right-radius:5px} .cal-week-view .cal-ends-within-day .cal-event{border-bottom-left-radius:5px;border-bottom-right-radius:5px} .cal-week-view{background-color:#fff;border-top:solid 1px #e1e1e1} .cal-week-view .cal-day-headers{border-color:#e1e1e1;border-top:0} .cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right-color:#e1e1e1} .cal-week-view .cal-day-headers .cal-header:first-child{border-left-color:#e1e1e1} .cal-week-view .cal-day-headers .cal-header:hover, .cal-week-view .cal-day-headers .cal-drag-over{background-color:#ededed} .cal-week-view .cal-day-column{border-left-color:#e1e1e1} .cal-week-view .cal-event{background-color:#d1e8ff;border-color:#1e90ff;color:#1e90ff} .cal-week-view .cal-all-day-events{border-color:#e1e1e1} .cal-week-view .cal-header.cal-today{background-color:#e8fde7} .cal-week-view .cal-header.cal-weekend span{color:#8b0000} .cal-week-view .cal-time-events{border-color:#e1e1e1} .cal-week-view .cal-time-events .cal-day-columns:not(.cal-resize-active) .cal-hour-segment:hover{background-color:#ededed} .cal-week-view .cal-hour-odd{background-color:#fafafa} .cal-week-view .cal-drag-over .cal-hour-segment{background-color:#ededed} .cal-week-view .cal-hour:not(:last-child) .cal-hour-segment, .cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment{border-bottom-color:#e1e1e1} .cal-week-view .cal-current-time-marker{background-color:#ea4334} .cal-day-view mwl-calendar-week-view-header{display:none} .cal-day-view .cal-events-container{margin-left:70px} .cal-day-view .cal-day-column{border-left:0} .cal-day-view .cal-current-time-marker{margin-left:70px;width:calc(100% - 70px)} .cal-tooltip{position:absolute;z-index:1070;display:block;font-style:normal;font-weight:400;letter-spacing:normal;line-break:auto;line-height:1.5;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;font-size:11px;word-wrap:break-word;opacity:.9} .cal-tooltip.cal-tooltip-top{padding:5px 0;margin-top:-3px} .cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0} .cal-tooltip.cal-tooltip-right{padding:0 5px;margin-left:3px} .cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0} .cal-tooltip.cal-tooltip-bottom{padding:5px 0;margin-top:3px} .cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px} .cal-tooltip.cal-tooltip-left{padding:0 5px;margin-left:-3px} .cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px} .cal-tooltip-inner{max-width:200px;padding:3px 8px;text-align:center;border-radius:.25rem} .cal-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid} .cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-top-color:#000} .cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-right-color:#000} .cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-bottom-color:#000} .cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-left-color:#000} .cal-tooltip-inner{color:#fff;background-color:#000}']}),n})(),u8=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(){const e=function _N(n,t){const e=function hN(n,t){return t.get(Cr).resolveComponentFactory(n).inputs}(n,t.injector),i=t.strategyFactory||new mN(n,t.injector),r=function dN(n){const t={};return n.forEach(({propName:e,templateName:i})=>{t[function oN(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(i)]=e}),t}(e);class s extends vN{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||t.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),e.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(c8,{injector:this.injector});customElements.define("drayman-calendar",e)}}return n.\u0275fac=function(e){return new(e||n)(S(wn))},n.\u0275mod=Ke({type:n}),n.\u0275inj=qe({providers:[{provide:bf,multi:!0,useFactory:t=>()=>{t.setDefaultFontSetClass("material-symbols-rounded")},deps:[gl]}],imports:[[fD,jj,jH,jB,l8,FW,kU,Uo.forRoot({provide:Dn,useFactory:N3})]]}),n})();(function rR(){bb=!1})(),LP().bootstrapModule(u8).catch(n=>console.error(n))})()})();