var HS=Object.create;var Ef=Object.defineProperty,zS=Object.defineProperties,GS=Object.getOwnPropertyDescriptor,WS=Object.getOwnPropertyDescriptors,ZS=Object.getOwnPropertyNames,jc=Object.getOwnPropertySymbols,qS=Object.getPrototypeOf,Tf=Object.prototype.hasOwnProperty,F0=Object.prototype.propertyIsEnumerable;var k0=(t,e,i)=>e in t?Ef(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,z=(t,e)=>{for(var i in e||={})Tf.call(e,i)&&k0(t,i,e[i]);if(jc)for(var i of jc(e))F0.call(e,i)&&k0(t,i,e[i]);return t},je=(t,e)=>zS(t,WS(e));var YS=(t,e)=>{var i={};for(var n in t)Tf.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&jc)for(var n of jc(t))e.indexOf(n)<0&&F0.call(t,n)&&(i[n]=t[n]);return i};var Ba=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var QS=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ZS(e))!Tf.call(t,r)&&r!==i&&Ef(t,r,{get:()=>e[r],enumerable:!(n=GS(e,r))||n.enumerable});return t};var Er=(t,e,i)=>(i=t!=null?HS(qS(t)):{},QS(e||!t||!t.__esModule?Ef(i,"default",{value:t,enumerable:!0}):i,t));var Lt=(t,e,i)=>new Promise((n,r)=>{var o=d=>{try{c(i.next(d))}catch(f){r(f)}},a=d=>{try{c(i.throw(d))}catch(f){r(f)}},c=d=>d.done?n(d.value):Promise.resolve(d.value).then(o,a);c((i=i.apply(t,e)).next())});var zh=Ba((Cv,Ev)=>{"use strict";(function(t,e){typeof Cv=="object"&&typeof Ev<"u"?Ev.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Cv,function(){"use strict";var t=1e3,e=6e4,i=36e5,n="millisecond",r="second",o="minute",a="hour",c="day",d="week",f="month",m="quarter",v="year",y="date",g="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,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,E={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("_"),ordinal:function(G){var j=["th","st","nd","rd"],R=G%100;return"["+G+(j[(R-20)%10]||j[R]||j[0])+"]"}},M=function(G,j,R){var Z=String(G);return!Z||Z.length>=j?G:""+Array(j+1-Z.length).join(R)+G},V={s:M,z:function(G){var j=-G.utcOffset(),R=Math.abs(j),Z=Math.floor(R/60),O=R%60;return(j<=0?"+":"-")+M(Z,2,"0")+":"+M(O,2,"0")},m:function G(j,R){if(j.date()<R.date())return-G(R,j);var Z=12*(R.year()-j.year())+(R.month()-j.month()),O=j.clone().add(Z,f),J=R-O<0,k=j.clone().add(Z+(J?-1:1),f);return+(-(Z+(R-O)/(J?O-k:k-O))||0)},a:function(G){return G<0?Math.ceil(G)||0:Math.floor(G)},p:function(G){return{M:f,y:v,w:d,d:c,D:y,h:a,m:o,s:r,ms:n,Q:m}[G]||String(G||"").toLowerCase().replace(/s$/,"")},u:function(G){return G===void 0}},W="en",N={};N[W]=E;var $="$isDayjsObject",Y=function(G){return G instanceof pe||!(!G||!G[$])},ie=function G(j,R,Z){var O;if(!j)return W;if(typeof j=="string"){var J=j.toLowerCase();N[J]&&(O=J),R&&(N[J]=R,O=J);var k=j.split("-");if(!O&&k.length>1)return G(k[0])}else{var X=j.name;N[X]=j,O=X}return!Z&&O&&(W=O),O||!Z&&W},K=function(G,j){if(Y(G))return G.clone();var R=typeof j=="object"?j:{};return R.date=G,R.args=arguments,new pe(R)},H=V;H.l=ie,H.i=Y,H.w=function(G,j){return K(G,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var pe=function(){function G(R){this.$L=ie(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[$]=!0}var j=G.prototype;return j.parse=function(R){this.$d=function(Z){var O=Z.date,J=Z.utc;if(O===null)return new Date(NaN);if(H.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var k=O.match(b);if(k){var X=k[2]-1||0,Ee=(k[7]||"0").substring(0,3);return J?new Date(Date.UTC(k[1],X,k[3]||1,k[4]||0,k[5]||0,k[6]||0,Ee)):new Date(k[1],X,k[3]||1,k[4]||0,k[5]||0,k[6]||0,Ee)}}return new Date(O)}(R),this.init()},j.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},j.$utils=function(){return H},j.isValid=function(){return this.$d.toString()!==g},j.isSame=function(R,Z){var O=K(R);return this.startOf(Z)<=O&&O<=this.endOf(Z)},j.isAfter=function(R,Z){return K(R)<this.startOf(Z)},j.isBefore=function(R,Z){return this.endOf(Z)<K(R)},j.$g=function(R,Z,O){return H.u(R)?this[Z]:this.set(O,R)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(R,Z){var O=this,J=!!H.u(Z)||Z,k=H.p(R),X=function(Ft,Ze){var Et=H.w(O.$u?Date.UTC(O.$y,Ze,Ft):new Date(O.$y,Ze,Ft),O);return J?Et:Et.endOf(c)},Ee=function(Ft,Ze){return H.w(O.toDate()[Ft].apply(O.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(Ze)),O)},Oe=this.$W,De=this.$M,we=this.$D,de="set"+(this.$u?"UTC":"");switch(k){case v:return J?X(1,0):X(31,11);case f:return J?X(1,De):X(0,De+1);case d:var Qe=this.$locale().weekStart||0,ft=(Oe<Qe?Oe+7:Oe)-Qe;return X(J?we-ft:we+(6-ft),De);case c:case y:return Ee(de+"Hours",0);case a:return Ee(de+"Minutes",1);case o:return Ee(de+"Seconds",2);case r:return Ee(de+"Milliseconds",3);default:return this.clone()}},j.endOf=function(R){return this.startOf(R,!1)},j.$set=function(R,Z){var O,J=H.p(R),k="set"+(this.$u?"UTC":""),X=(O={},O[c]=k+"Date",O[y]=k+"Date",O[f]=k+"Month",O[v]=k+"FullYear",O[a]=k+"Hours",O[o]=k+"Minutes",O[r]=k+"Seconds",O[n]=k+"Milliseconds",O)[J],Ee=J===c?this.$D+(Z-this.$W):Z;if(J===f||J===v){var Oe=this.clone().set(y,1);Oe.$d[X](Ee),Oe.init(),this.$d=Oe.set(y,Math.min(this.$D,Oe.daysInMonth())).$d}else X&&this.$d[X](Ee);return this.init(),this},j.set=function(R,Z){return this.clone().$set(R,Z)},j.get=function(R){return this[H.p(R)]()},j.add=function(R,Z){var O,J=this;R=Number(R);var k=H.p(Z),X=function(De){var we=K(J);return H.w(we.date(we.date()+Math.round(De*R)),J)};if(k===f)return this.set(f,this.$M+R);if(k===v)return this.set(v,this.$y+R);if(k===c)return X(1);if(k===d)return X(7);var Ee=(O={},O[o]=e,O[a]=i,O[r]=t,O)[k]||1,Oe=this.$d.getTime()+R*Ee;return H.w(Oe,this)},j.subtract=function(R,Z){return this.add(-1*R,Z)},j.format=function(R){var Z=this,O=this.$locale();if(!this.isValid())return O.invalidDate||g;var J=R||"YYYY-MM-DDTHH:mm:ssZ",k=H.z(this),X=this.$H,Ee=this.$m,Oe=this.$M,De=O.weekdays,we=O.months,de=O.meridiem,Qe=function(Ze,Et,tn,pn){return Ze&&(Ze[Et]||Ze(Z,J))||tn[Et].slice(0,pn)},ft=function(Ze){return H.s(X%12||12,Ze,"0")},Ft=de||function(Ze,Et,tn){var pn=Ze<12?"AM":"PM";return tn?pn.toLowerCase():pn};return J.replace(S,function(Ze,Et){return Et||function(tn){switch(tn){case"YY":return String(Z.$y).slice(-2);case"YYYY":return H.s(Z.$y,4,"0");case"M":return Oe+1;case"MM":return H.s(Oe+1,2,"0");case"MMM":return Qe(O.monthsShort,Oe,we,3);case"MMMM":return Qe(we,Oe);case"D":return Z.$D;case"DD":return H.s(Z.$D,2,"0");case"d":return String(Z.$W);case"dd":return Qe(O.weekdaysMin,Z.$W,De,2);case"ddd":return Qe(O.weekdaysShort,Z.$W,De,3);case"dddd":return De[Z.$W];case"H":return String(X);case"HH":return H.s(X,2,"0");case"h":return ft(1);case"hh":return ft(2);case"a":return Ft(X,Ee,!0);case"A":return Ft(X,Ee,!1);case"m":return String(Ee);case"mm":return H.s(Ee,2,"0");case"s":return String(Z.$s);case"ss":return H.s(Z.$s,2,"0");case"SSS":return H.s(Z.$ms,3,"0");case"Z":return k}return null}(Ze)||k.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(R,Z,O){var J,k=this,X=H.p(Z),Ee=K(R),Oe=(Ee.utcOffset()-this.utcOffset())*e,De=this-Ee,we=function(){return H.m(k,Ee)};switch(X){case v:J=we()/12;break;case f:J=we();break;case m:J=we()/3;break;case d:J=(De-Oe)/6048e5;break;case c:J=(De-Oe)/864e5;break;case a:J=De/i;break;case o:J=De/e;break;case r:J=De/t;break;default:J=De}return O?J:H.a(J)},j.daysInMonth=function(){return this.endOf(f).$D},j.$locale=function(){return N[this.$L]},j.locale=function(R,Z){if(!R)return this.$L;var O=this.clone(),J=ie(R,Z,!0);return J&&(O.$L=J),O},j.clone=function(){return H.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()},G}(),We=pe.prototype;return K.prototype=We,[["$ms",n],["$s",r],["$m",o],["$H",a],["$W",c],["$M",f],["$y",v],["$D",y]].forEach(function(G){We[G[1]]=function(j){return this.$g(j,G[0],G[1])}}),K.extend=function(G,j){return G.$i||(G(j,pe,K),G.$i=!0),K},K.locale=ie,K.isDayjs=Y,K.unix=function(G){return K(1e3*G)},K.en=N[W],K.Ls=N,K.p={},K})});var Mv=Ba((Tv,Sv)=>{"use strict";(function(t,e){typeof Tv=="object"&&typeof Sv<"u"?Sv.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=e()})(Tv,function(){"use strict";var t={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"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,n=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,o={},a=function(g){return(g=+g)+(g>68?1900:2e3)},c=function(g){return function(b){this[g]=+b}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var S=b.match(/([+-]|\d\d)/g),E=60*S[1]+(+S[2]||0);return E===0?0:S[0]==="+"?-E:E}(g)}],f=function(g){var b=o[g];return b&&(b.indexOf?b:b.s.concat(b.f))},m=function(g,b){var S,E=o.meridiem;if(E){for(var M=1;M<=24;M+=1)if(g.indexOf(E(M,0,b))>-1){S=M>12;break}}else S=g===(b?"pm":"PM");return S},v={A:[r,function(g){this.afternoon=m(g,!1)}],a:[r,function(g){this.afternoon=m(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[i,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[n,c("seconds")],ss:[n,c("seconds")],m:[n,c("minutes")],mm:[n,c("minutes")],H:[n,c("hours")],h:[n,c("hours")],HH:[n,c("hours")],hh:[n,c("hours")],D:[n,c("day")],DD:[i,c("day")],Do:[r,function(g){var b=o.ordinal,S=g.match(/\d+/);if(this.day=S[0],b)for(var E=1;E<=31;E+=1)b(E).replace(/\[|\]/g,"")===g&&(this.day=E)}],M:[n,c("month")],MM:[i,c("month")],MMM:[r,function(g){var b=f("months"),S=(f("monthsShort")||b.map(function(E){return E.slice(0,3)})).indexOf(g)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[r,function(g){var b=f("months").indexOf(g)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,c("year")],YY:[i,function(g){this.year=a(g)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function y(g){var b,S;b=g,S=o&&o.formats;for(var E=(g=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(ie,K,H){var pe=H&&H.toUpperCase();return K||S[H]||t[H]||S[pe].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(We,G,j){return G||j.slice(1)})})).match(e),M=E.length,V=0;V<M;V+=1){var W=E[V],N=v[W],$=N&&N[0],Y=N&&N[1];E[V]=Y?{regex:$,parser:Y}:W.replace(/^\[|\]$/g,"")}return function(ie){for(var K={},H=0,pe=0;H<M;H+=1){var We=E[H];if(typeof We=="string")pe+=We.length;else{var G=We.regex,j=We.parser,R=ie.slice(pe),Z=G.exec(R)[0];j.call(K,Z),ie=ie.replace(Z,"")}}return function(O){var J=O.afternoon;if(J!==void 0){var k=O.hours;J?k<12&&(O.hours+=12):k===12&&(O.hours=0),delete O.afternoon}}(K),K}}return function(g,b,S){S.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(a=g.parseTwoDigitYear);var E=b.prototype,M=E.parse;E.parse=function(V){var W=V.date,N=V.utc,$=V.args;this.$u=N;var Y=$[1];if(typeof Y=="string"){var ie=$[2]===!0,K=$[3]===!0,H=ie||K,pe=$[2];K&&(pe=$[2]),o=this.$locale(),!ie&&pe&&(o=S.Ls[pe]),this.$d=function(R,Z,O){try{if(["x","X"].indexOf(Z)>-1)return new Date((Z==="X"?1e3:1)*R);var J=y(Z)(R),k=J.year,X=J.month,Ee=J.day,Oe=J.hours,De=J.minutes,we=J.seconds,de=J.milliseconds,Qe=J.zone,ft=new Date,Ft=Ee||(k||X?1:ft.getDate()),Ze=k||ft.getFullYear(),Et=0;k&&!X||(Et=X>0?X-1:ft.getMonth());var tn=Oe||0,pn=De||0,Kr=we||0,er=de||0;return Qe?new Date(Date.UTC(Ze,Et,Ft,tn,pn,Kr,er+60*Qe.offset*1e3)):O?new Date(Date.UTC(Ze,Et,Ft,tn,pn,Kr,er)):new Date(Ze,Et,Ft,tn,pn,Kr,er)}catch{return new Date("")}}(W,Y,N),this.init(),pe&&pe!==!0&&(this.$L=this.locale(pe).$L),H&&W!=this.format(Y)&&(this.$d=new Date("")),o={}}else if(Y instanceof Array)for(var We=Y.length,G=1;G<=We;G+=1){$[1]=Y[G-1];var j=S.apply(this,$);if(j.isValid()){this.$d=j.$d,this.$L=j.$L,this.init();break}G===We&&(this.$d=new Date(""))}else M.call(this,V)}}})});var pT=Ba((Iv,Ov)=>{"use strict";(function(t,e){typeof Iv=="object"&&typeof Ov<"u"?Ov.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_utc=e()})(Iv,function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(n,r,o){var a=r.prototype;o.utc=function(g){var b={date:g,utc:!0,args:arguments};return new r(b)},a.utc=function(g){var b=o(this.toDate(),{locale:this.$L,utc:!0});return g?b.add(this.utcOffset(),t):b},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var c=a.parse;a.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),c.call(this,g)};var d=a.init;a.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else d.call(this)};var f=a.utcOffset;a.utcOffset=function(g,b){var S=this.$utils().u;if(S(g))return this.$u?0:S(this.$offset)?f.call(this):this.$offset;if(typeof g=="string"&&(g=function(W){W===void 0&&(W="");var N=W.match(e);if(!N)return null;var $=(""+N[0]).match(i)||["-",0,0],Y=$[0],ie=60*+$[1]+ +$[2];return ie===0?0:Y==="+"?ie:-ie}(g),g===null))return this;var E=Math.abs(g)<=16?60*g:g,M=this;if(b)return M.$offset=E,M.$u=g===0,M;if(g!==0){var V=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(M=this.local().add(E+V,t)).$offset=E,M.$x.$localOffset=V}else M=this.utc();return M};var m=a.format;a.format=function(g){var b=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,b)},a.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var v=a.toDate;a.toDate=function(g){return g==="s"&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():v.call(this)};var y=a.diff;a.diff=function(g,b,S){if(g&&this.$u===g.$u)return y.call(this,g,b,S);var E=this.local(),M=o(g).local();return y.call(E,M,b,S)}}})});var mT=Ba((Av,Pv)=>{"use strict";(function(t,e){typeof Av=="object"&&typeof Pv<"u"?Pv.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_timezone=e()})(Av,function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(i,n,r){var o,a=function(m,v,y){y===void 0&&(y={});var g=new Date(m),b=function(S,E){E===void 0&&(E={});var M=E.timeZoneName||"short",V=S+"|"+M,W=e[V];return W||(W=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:S,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:M}),e[V]=W),W}(v,y);return b.formatToParts(g)},c=function(m,v){for(var y=a(m,v),g=[],b=0;b<y.length;b+=1){var S=y[b],E=S.type,M=S.value,V=t[E];V>=0&&(g[V]=parseInt(M,10))}var W=g[3],N=W===24?0:W,$=g[0]+"-"+g[1]+"-"+g[2]+" "+N+":"+g[4]+":"+g[5]+":000",Y=+m;return(r.utc($).valueOf()-(Y-=Y%1e3))/6e4},d=n.prototype;d.tz=function(m,v){m===void 0&&(m=o);var y=this.utcOffset(),g=this.toDate(),b=g.toLocaleString("en-US",{timeZone:m}),S=Math.round((g-new Date(b))/1e3/60),E=r(b,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(g.getTimezoneOffset()/15)-S,!0);if(v){var M=E.utcOffset();E=E.add(y-M,"minute")}return E.$x.$timezone=m,E},d.offsetName=function(m){var v=this.$x.$timezone||r.tz.guess(),y=a(this.valueOf(),v,{timeZoneName:m}).find(function(g){return g.type.toLowerCase()==="timezonename"});return y&&y.value};var f=d.startOf;d.startOf=function(m,v){if(!this.$x||!this.$x.$timezone)return f.call(this,m,v);var y=r(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return f.call(y,m,v).tz(this.$x.$timezone,!0)},r.tz=function(m,v,y){var g=y&&v,b=y||v||o,S=c(+r(),b);if(typeof m!="string")return r(m).tz(b);var E=function(N,$,Y){var ie=N-60*$*1e3,K=c(ie,Y);if($===K)return[ie,$];var H=c(ie-=60*(K-$)*1e3,Y);return K===H?[ie,K]:[N-60*Math.min(K,H)*1e3,Math.max(K,H)]}(r.utc(m,g).valueOf(),S,b),M=E[0],V=E[1],W=r(M).utcOffset(V);return W.$x.$timezone=b,W},r.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},r.tz.setDefault=function(m){o=m}}})});var bT=Ba((Zh,wT)=>{"use strict";(function(t,e){typeof Zh=="object"&&typeof wT<"u"?e(Zh):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.leaflet={}))})(Zh,function(t){"use strict";var e="1.9.4";function i(s){var l,u,h,p;for(u=1,h=arguments.length;u<h;u++){p=arguments[u];for(l in p)s[l]=p[l]}return s}var n=Object.create||function(){function s(){}return function(l){return s.prototype=l,new s}}();function r(s,l){var u=Array.prototype.slice;if(s.bind)return s.bind.apply(s,u.call(arguments,1));var h=u.call(arguments,2);return function(){return s.apply(l,h.length?h.concat(u.call(arguments)):arguments)}}var o=0;function a(s){return"_leaflet_id"in s||(s._leaflet_id=++o),s._leaflet_id}function c(s,l,u){var h,p,_,w;return w=function(){h=!1,p&&(_.apply(u,p),p=!1)},_=function(){h?p=arguments:(s.apply(u,arguments),setTimeout(w,l),h=!0)},_}function d(s,l,u){var h=l[1],p=l[0],_=h-p;return s===h&&u?s:((s-p)%_+_)%_+p}function f(){return!1}function m(s,l){if(l===!1)return s;var u=Math.pow(10,l===void 0?6:l);return Math.round(s*u)/u}function v(s){return s.trim?s.trim():s.replace(/^\s+|\s+$/g,"")}function y(s){return v(s).split(/\s+/)}function g(s,l){Object.prototype.hasOwnProperty.call(s,"options")||(s.options=s.options?n(s.options):{});for(var u in l)s.options[u]=l[u];return s.options}function b(s,l,u){var h=[];for(var p in s)h.push(encodeURIComponent(u?p.toUpperCase():p)+"="+encodeURIComponent(s[p]));return(!l||l.indexOf("?")===-1?"?":"&")+h.join("&")}var S=/\{ *([\w_ -]+) *\}/g;function E(s,l){return s.replace(S,function(u,h){var p=l[h];if(p===void 0)throw new Error("No value provided for variable "+u);return typeof p=="function"&&(p=p(l)),p})}var M=Array.isArray||function(s){return Object.prototype.toString.call(s)==="[object Array]"};function V(s,l){for(var u=0;u<s.length;u++)if(s[u]===l)return u;return-1}var W="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function N(s){return window["webkit"+s]||window["moz"+s]||window["ms"+s]}var $=0;function Y(s){var l=+new Date,u=Math.max(0,16-(l-$));return $=l+u,window.setTimeout(s,u)}var ie=window.requestAnimationFrame||N("RequestAnimationFrame")||Y,K=window.cancelAnimationFrame||N("CancelAnimationFrame")||N("CancelRequestAnimationFrame")||function(s){window.clearTimeout(s)};function H(s,l,u){if(u&&ie===Y)s.call(l);else return ie.call(window,r(s,l))}function pe(s){s&&K.call(window,s)}var We={__proto__:null,extend:i,create:n,bind:r,get lastId(){return o},stamp:a,throttle:c,wrapNum:d,falseFn:f,formatNum:m,trim:v,splitWords:y,setOptions:g,getParamString:b,template:E,isArray:M,indexOf:V,emptyImageUrl:W,requestFn:ie,cancelFn:K,requestAnimFrame:H,cancelAnimFrame:pe};function G(){}G.extend=function(s){var l=function(){g(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},u=l.__super__=this.prototype,h=n(u);h.constructor=l,l.prototype=h;for(var p in this)Object.prototype.hasOwnProperty.call(this,p)&&p!=="prototype"&&p!=="__super__"&&(l[p]=this[p]);return s.statics&&i(l,s.statics),s.includes&&(j(s.includes),i.apply(null,[h].concat(s.includes))),i(h,s),delete h.statics,delete h.includes,h.options&&(h.options=u.options?n(u.options):{},i(h.options,s.options)),h._initHooks=[],h.callInitHooks=function(){if(!this._initHooksCalled){u.callInitHooks&&u.callInitHooks.call(this),this._initHooksCalled=!0;for(var _=0,w=h._initHooks.length;_<w;_++)h._initHooks[_].call(this)}},l},G.include=function(s){var l=this.prototype.options;return i(this.prototype,s),s.options&&(this.prototype.options=l,this.mergeOptions(s.options)),this},G.mergeOptions=function(s){return i(this.prototype.options,s),this},G.addInitHook=function(s){var l=Array.prototype.slice.call(arguments,1),u=typeof s=="function"?s:function(){this[s].apply(this,l)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(u),this};function j(s){if(!(typeof L>"u"||!L||!L.Mixin)){s=M(s)?s:[s];for(var l=0;l<s.length;l++)s[l]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var R={on:function(s,l,u){if(typeof s=="object")for(var h in s)this._on(h,s[h],l);else{s=y(s);for(var p=0,_=s.length;p<_;p++)this._on(s[p],l,u)}return this},off:function(s,l,u){if(!arguments.length)delete this._events;else if(typeof s=="object")for(var h in s)this._off(h,s[h],l);else{s=y(s);for(var p=arguments.length===1,_=0,w=s.length;_<w;_++)p?this._off(s[_]):this._off(s[_],l,u)}return this},_on:function(s,l,u,h){if(typeof l!="function"){console.warn("wrong listener type: "+typeof l);return}if(this._listens(s,l,u)===!1){u===this&&(u=void 0);var p={fn:l,ctx:u};h&&(p.once=!0),this._events=this._events||{},this._events[s]=this._events[s]||[],this._events[s].push(p)}},_off:function(s,l,u){var h,p,_;if(this._events&&(h=this._events[s],!!h)){if(arguments.length===1){if(this._firingCount)for(p=0,_=h.length;p<_;p++)h[p].fn=f;delete this._events[s];return}if(typeof l!="function"){console.warn("wrong listener type: "+typeof l);return}var w=this._listens(s,l,u);if(w!==!1){var C=h[w];this._firingCount&&(C.fn=f,this._events[s]=h=h.slice()),h.splice(w,1)}}},fire:function(s,l,u){if(!this.listens(s,u))return this;var h=i({},l,{type:s,target:this,sourceTarget:l&&l.sourceTarget||this});if(this._events){var p=this._events[s];if(p){this._firingCount=this._firingCount+1||1;for(var _=0,w=p.length;_<w;_++){var C=p[_],I=C.fn;C.once&&this.off(s,I,C.ctx),I.call(C.ctx||this,h)}this._firingCount--}}return u&&this._propagateEvent(h),this},listens:function(s,l,u,h){typeof s!="string"&&console.warn('"string" type argument expected');var p=l;typeof l!="function"&&(h=!!l,p=void 0,u=void 0);var _=this._events&&this._events[s];if(_&&_.length&&this._listens(s,p,u)!==!1)return!0;if(h){for(var w in this._eventParents)if(this._eventParents[w].listens(s,l,u,h))return!0}return!1},_listens:function(s,l,u){if(!this._events)return!1;var h=this._events[s]||[];if(!l)return!!h.length;u===this&&(u=void 0);for(var p=0,_=h.length;p<_;p++)if(h[p].fn===l&&h[p].ctx===u)return p;return!1},once:function(s,l,u){if(typeof s=="object")for(var h in s)this._on(h,s[h],l,!0);else{s=y(s);for(var p=0,_=s.length;p<_;p++)this._on(s[p],l,u,!0)}return this},addEventParent:function(s){return this._eventParents=this._eventParents||{},this._eventParents[a(s)]=s,this},removeEventParent:function(s){return this._eventParents&&delete this._eventParents[a(s)],this},_propagateEvent:function(s){for(var l in this._eventParents)this._eventParents[l].fire(s.type,i({layer:s.target,propagatedFrom:s.target},s),!0)}};R.addEventListener=R.on,R.removeEventListener=R.clearAllEventListeners=R.off,R.addOneTimeEventListener=R.once,R.fireEvent=R.fire,R.hasEventListeners=R.listens;var Z=G.extend(R);function O(s,l,u){this.x=u?Math.round(s):s,this.y=u?Math.round(l):l}var J=Math.trunc||function(s){return s>0?Math.floor(s):Math.ceil(s)};O.prototype={clone:function(){return new O(this.x,this.y)},add:function(s){return this.clone()._add(k(s))},_add:function(s){return this.x+=s.x,this.y+=s.y,this},subtract:function(s){return this.clone()._subtract(k(s))},_subtract:function(s){return this.x-=s.x,this.y-=s.y,this},divideBy:function(s){return this.clone()._divideBy(s)},_divideBy:function(s){return this.x/=s,this.y/=s,this},multiplyBy:function(s){return this.clone()._multiplyBy(s)},_multiplyBy:function(s){return this.x*=s,this.y*=s,this},scaleBy:function(s){return new O(this.x*s.x,this.y*s.y)},unscaleBy:function(s){return new O(this.x/s.x,this.y/s.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=J(this.x),this.y=J(this.y),this},distanceTo:function(s){s=k(s);var l=s.x-this.x,u=s.y-this.y;return Math.sqrt(l*l+u*u)},equals:function(s){return s=k(s),s.x===this.x&&s.y===this.y},contains:function(s){return s=k(s),Math.abs(s.x)<=Math.abs(this.x)&&Math.abs(s.y)<=Math.abs(this.y)},toString:function(){return"Point("+m(this.x)+", "+m(this.y)+")"}};function k(s,l,u){return s instanceof O?s:M(s)?new O(s[0],s[1]):s==null?s:typeof s=="object"&&"x"in s&&"y"in s?new O(s.x,s.y):new O(s,l,u)}function X(s,l){if(s)for(var u=l?[s,l]:s,h=0,p=u.length;h<p;h++)this.extend(u[h])}X.prototype={extend:function(s){var l,u;if(!s)return this;if(s instanceof O||typeof s[0]=="number"||"x"in s)l=u=k(s);else if(s=Ee(s),l=s.min,u=s.max,!l||!u)return this;return!this.min&&!this.max?(this.min=l.clone(),this.max=u.clone()):(this.min.x=Math.min(l.x,this.min.x),this.max.x=Math.max(u.x,this.max.x),this.min.y=Math.min(l.y,this.min.y),this.max.y=Math.max(u.y,this.max.y)),this},getCenter:function(s){return k((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,s)},getBottomLeft:function(){return k(this.min.x,this.max.y)},getTopRight:function(){return k(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(s){var l,u;return typeof s[0]=="number"||s instanceof O?s=k(s):s=Ee(s),s instanceof X?(l=s.min,u=s.max):l=u=s,l.x>=this.min.x&&u.x<=this.max.x&&l.y>=this.min.y&&u.y<=this.max.y},intersects:function(s){s=Ee(s);var l=this.min,u=this.max,h=s.min,p=s.max,_=p.x>=l.x&&h.x<=u.x,w=p.y>=l.y&&h.y<=u.y;return _&&w},overlaps:function(s){s=Ee(s);var l=this.min,u=this.max,h=s.min,p=s.max,_=p.x>l.x&&h.x<u.x,w=p.y>l.y&&h.y<u.y;return _&&w},isValid:function(){return!!(this.min&&this.max)},pad:function(s){var l=this.min,u=this.max,h=Math.abs(l.x-u.x)*s,p=Math.abs(l.y-u.y)*s;return Ee(k(l.x-h,l.y-p),k(u.x+h,u.y+p))},equals:function(s){return s?(s=Ee(s),this.min.equals(s.getTopLeft())&&this.max.equals(s.getBottomRight())):!1}};function Ee(s,l){return!s||s instanceof X?s:new X(s,l)}function Oe(s,l){if(s)for(var u=l?[s,l]:s,h=0,p=u.length;h<p;h++)this.extend(u[h])}Oe.prototype={extend:function(s){var l=this._southWest,u=this._northEast,h,p;if(s instanceof we)h=s,p=s;else if(s instanceof Oe){if(h=s._southWest,p=s._northEast,!h||!p)return this}else return s?this.extend(de(s)||De(s)):this;return!l&&!u?(this._southWest=new we(h.lat,h.lng),this._northEast=new we(p.lat,p.lng)):(l.lat=Math.min(h.lat,l.lat),l.lng=Math.min(h.lng,l.lng),u.lat=Math.max(p.lat,u.lat),u.lng=Math.max(p.lng,u.lng)),this},pad:function(s){var l=this._southWest,u=this._northEast,h=Math.abs(l.lat-u.lat)*s,p=Math.abs(l.lng-u.lng)*s;return new Oe(new we(l.lat-h,l.lng-p),new we(u.lat+h,u.lng+p))},getCenter:function(){return new we((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new we(this.getNorth(),this.getWest())},getSouthEast:function(){return new we(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(s){typeof s[0]=="number"||s instanceof we||"lat"in s?s=de(s):s=De(s);var l=this._southWest,u=this._northEast,h,p;return s instanceof Oe?(h=s.getSouthWest(),p=s.getNorthEast()):h=p=s,h.lat>=l.lat&&p.lat<=u.lat&&h.lng>=l.lng&&p.lng<=u.lng},intersects:function(s){s=De(s);var l=this._southWest,u=this._northEast,h=s.getSouthWest(),p=s.getNorthEast(),_=p.lat>=l.lat&&h.lat<=u.lat,w=p.lng>=l.lng&&h.lng<=u.lng;return _&&w},overlaps:function(s){s=De(s);var l=this._southWest,u=this._northEast,h=s.getSouthWest(),p=s.getNorthEast(),_=p.lat>l.lat&&h.lat<u.lat,w=p.lng>l.lng&&h.lng<u.lng;return _&&w},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(s,l){return s?(s=De(s),this._southWest.equals(s.getSouthWest(),l)&&this._northEast.equals(s.getNorthEast(),l)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function De(s,l){return s instanceof Oe?s:new Oe(s,l)}function we(s,l,u){if(isNaN(s)||isNaN(l))throw new Error("Invalid LatLng object: ("+s+", "+l+")");this.lat=+s,this.lng=+l,u!==void 0&&(this.alt=+u)}we.prototype={equals:function(s,l){if(!s)return!1;s=de(s);var u=Math.max(Math.abs(this.lat-s.lat),Math.abs(this.lng-s.lng));return u<=(l===void 0?1e-9:l)},toString:function(s){return"LatLng("+m(this.lat,s)+", "+m(this.lng,s)+")"},distanceTo:function(s){return ft.distance(this,de(s))},wrap:function(){return ft.wrapLatLng(this)},toBounds:function(s){var l=180*s/40075017,u=l/Math.cos(Math.PI/180*this.lat);return De([this.lat-l,this.lng-u],[this.lat+l,this.lng+u])},clone:function(){return new we(this.lat,this.lng,this.alt)}};function de(s,l,u){return s instanceof we?s:M(s)&&typeof s[0]!="object"?s.length===3?new we(s[0],s[1],s[2]):s.length===2?new we(s[0],s[1]):null:s==null?s:typeof s=="object"&&"lat"in s?new we(s.lat,"lng"in s?s.lng:s.lon,s.alt):l===void 0?null:new we(s,l,u)}var Qe={latLngToPoint:function(s,l){var u=this.projection.project(s),h=this.scale(l);return this.transformation._transform(u,h)},pointToLatLng:function(s,l){var u=this.scale(l),h=this.transformation.untransform(s,u);return this.projection.unproject(h)},project:function(s){return this.projection.project(s)},unproject:function(s){return this.projection.unproject(s)},scale:function(s){return 256*Math.pow(2,s)},zoom:function(s){return Math.log(s/256)/Math.LN2},getProjectedBounds:function(s){if(this.infinite)return null;var l=this.projection.bounds,u=this.scale(s),h=this.transformation.transform(l.min,u),p=this.transformation.transform(l.max,u);return new X(h,p)},infinite:!1,wrapLatLng:function(s){var l=this.wrapLng?d(s.lng,this.wrapLng,!0):s.lng,u=this.wrapLat?d(s.lat,this.wrapLat,!0):s.lat,h=s.alt;return new we(u,l,h)},wrapLatLngBounds:function(s){var l=s.getCenter(),u=this.wrapLatLng(l),h=l.lat-u.lat,p=l.lng-u.lng;if(h===0&&p===0)return s;var _=s.getSouthWest(),w=s.getNorthEast(),C=new we(_.lat-h,_.lng-p),I=new we(w.lat-h,w.lng-p);return new Oe(C,I)}},ft=i({},Qe,{wrapLng:[-180,180],R:6371e3,distance:function(s,l){var u=Math.PI/180,h=s.lat*u,p=l.lat*u,_=Math.sin((l.lat-s.lat)*u/2),w=Math.sin((l.lng-s.lng)*u/2),C=_*_+Math.cos(h)*Math.cos(p)*w*w,I=2*Math.atan2(Math.sqrt(C),Math.sqrt(1-C));return this.R*I}}),Ft=6378137,Ze={R:Ft,MAX_LATITUDE:85.0511287798,project:function(s){var l=Math.PI/180,u=this.MAX_LATITUDE,h=Math.max(Math.min(u,s.lat),-u),p=Math.sin(h*l);return new O(this.R*s.lng*l,this.R*Math.log((1+p)/(1-p))/2)},unproject:function(s){var l=180/Math.PI;return new we((2*Math.atan(Math.exp(s.y/this.R))-Math.PI/2)*l,s.x*l/this.R)},bounds:function(){var s=Ft*Math.PI;return new X([-s,-s],[s,s])}()};function Et(s,l,u,h){if(M(s)){this._a=s[0],this._b=s[1],this._c=s[2],this._d=s[3];return}this._a=s,this._b=l,this._c=u,this._d=h}Et.prototype={transform:function(s,l){return this._transform(s.clone(),l)},_transform:function(s,l){return l=l||1,s.x=l*(this._a*s.x+this._b),s.y=l*(this._c*s.y+this._d),s},untransform:function(s,l){return l=l||1,new O((s.x/l-this._b)/this._a,(s.y/l-this._d)/this._c)}};function tn(s,l,u,h){return new Et(s,l,u,h)}var pn=i({},ft,{code:"EPSG:3857",projection:Ze,transformation:function(){var s=.5/(Math.PI*Ze.R);return tn(s,.5,-s,.5)}()}),Kr=i({},pn,{code:"EPSG:900913"});function er(s){return document.createElementNS("http://www.w3.org/2000/svg",s)}function ya(s,l){var u="",h,p,_,w,C,I;for(h=0,_=s.length;h<_;h++){for(C=s[h],p=0,w=C.length;p<w;p++)I=C[p],u+=(p?"L":"M")+I.x+" "+I.y;u+=l?oe.svg?"z":"x":""}return u||"M0 0"}var wa=document.documentElement.style,Xr="ActiveXObject"in window,_c=Xr&&!document.addEventListener,vc="msLaunchUri"in navigator&&!("documentMode"in document),ba=Ei("webkit"),Ci=Ei("android"),eo=Ei("android 2")||Ei("android 3"),yc=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),wc=Ci&&Ei("Google")&&yc<537&&!("AudioNode"in window),to=!!window.opera,Da=!vc&&Ei("chrome"),Ca=Ei("gecko")&&!ba&&!to&&!Xr,bc=!Da&&Ei("safari"),Ea=Ei("phantom"),Rv="OTransition"in wa,ET=navigator.platform.indexOf("Win")===0,kv=Xr&&"transition"in wa,Yh="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!eo,Fv="MozPerspective"in wa,TT=!window.L_DISABLE_3D&&(kv||Yh||Fv)&&!Rv&&!Ea,Ta=typeof orientation<"u"||Ei("mobile"),ST=Ta&&ba,MT=Ta&&Yh,Lv=!window.PointerEvent&&window.MSPointerEvent,Bv=!!(window.PointerEvent||Lv),Vv="ontouchstart"in window||!!window.TouchEvent,xT=!window.L_NO_TOUCH&&(Vv||Bv),IT=Ta&&to,OT=Ta&&Ca,AT=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,PT=function(){var s=!1;try{var l=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("testPassiveEventSupport",f,l),window.removeEventListener("testPassiveEventSupport",f,l)}catch{}return s}(),NT=function(){return!!document.createElement("canvas").getContext}(),Qh=!!(document.createElementNS&&er("svg").createSVGRect),RT=!!Qh&&function(){var s=document.createElement("div");return s.innerHTML="<svg/>",(s.firstChild&&s.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),kT=!Qh&&function(){try{var s=document.createElement("div");s.innerHTML='<v:shape adj="1"/>';var l=s.firstChild;return l.style.behavior="url(#default#VML)",l&&typeof l.adj=="object"}catch{return!1}}(),FT=navigator.platform.indexOf("Mac")===0,LT=navigator.platform.indexOf("Linux")===0;function Ei(s){return navigator.userAgent.toLowerCase().indexOf(s)>=0}var oe={ie:Xr,ielt9:_c,edge:vc,webkit:ba,android:Ci,android23:eo,androidStock:wc,opera:to,chrome:Da,gecko:Ca,safari:bc,phantom:Ea,opera12:Rv,win:ET,ie3d:kv,webkit3d:Yh,gecko3d:Fv,any3d:TT,mobile:Ta,mobileWebkit:ST,mobileWebkit3d:MT,msPointer:Lv,pointer:Bv,touch:xT,touchNative:Vv,mobileOpera:IT,mobileGecko:OT,retina:AT,passiveEvents:PT,canvas:NT,svg:Qh,vml:kT,inlineSvg:RT,mac:FT,linux:LT},jv=oe.msPointer?"MSPointerDown":"pointerdown",$v=oe.msPointer?"MSPointerMove":"pointermove",Uv=oe.msPointer?"MSPointerUp":"pointerup",Hv=oe.msPointer?"MSPointerCancel":"pointercancel",Jh={touchstart:jv,touchmove:$v,touchend:Uv,touchcancel:Hv},zv={touchstart:HT,touchmove:Dc,touchend:Dc,touchcancel:Dc},Jo={},Gv=!1;function BT(s,l,u){return l==="touchstart"&&UT(),zv[l]?(u=zv[l].bind(this,u),s.addEventListener(Jh[l],u,!1),u):(console.warn("wrong event specified:",l),f)}function VT(s,l,u){if(!Jh[l]){console.warn("wrong event specified:",l);return}s.removeEventListener(Jh[l],u,!1)}function jT(s){Jo[s.pointerId]=s}function $T(s){Jo[s.pointerId]&&(Jo[s.pointerId]=s)}function Wv(s){delete Jo[s.pointerId]}function UT(){Gv||(document.addEventListener(jv,jT,!0),document.addEventListener($v,$T,!0),document.addEventListener(Uv,Wv,!0),document.addEventListener(Hv,Wv,!0),Gv=!0)}function Dc(s,l){if(l.pointerType!==(l.MSPOINTER_TYPE_MOUSE||"mouse")){l.touches=[];for(var u in Jo)l.touches.push(Jo[u]);l.changedTouches=[l],s(l)}}function HT(s,l){l.MSPOINTER_TYPE_TOUCH&&l.pointerType===l.MSPOINTER_TYPE_TOUCH&&nn(l),Dc(s,l)}function zT(s){var l={},u,h;for(h in s)u=s[h],l[h]=u&&u.bind?u.bind(s):u;return s=l,l.type="dblclick",l.detail=2,l.isTrusted=!1,l._simulated=!0,l}var GT=200;function WT(s,l){s.addEventListener("dblclick",l);var u=0,h;function p(_){if(_.detail!==1){h=_.detail;return}if(!(_.pointerType==="mouse"||_.sourceCapabilities&&!_.sourceCapabilities.firesTouchEvents)){var w=Jv(_);if(!(w.some(function(I){return I instanceof HTMLLabelElement&&I.attributes.for})&&!w.some(function(I){return I instanceof HTMLInputElement||I instanceof HTMLSelectElement}))){var C=Date.now();C-u<=GT?(h++,h===2&&l(zT(_))):h=1,u=C}}}return s.addEventListener("click",p),{dblclick:l,simDblclick:p}}function ZT(s,l){s.removeEventListener("dblclick",l.dblclick),s.removeEventListener("click",l.simDblclick)}var Kh=Tc(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Sa=Tc(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Zv=Sa==="webkitTransition"||Sa==="OTransition"?Sa+"End":"transitionend";function qv(s){return typeof s=="string"?document.getElementById(s):s}function Ma(s,l){var u=s.style[l]||s.currentStyle&&s.currentStyle[l];if((!u||u==="auto")&&document.defaultView){var h=document.defaultView.getComputedStyle(s,null);u=h?h[l]:null}return u==="auto"?null:u}function Ue(s,l,u){var h=document.createElement(s);return h.className=l||"",u&&u.appendChild(h),h}function _t(s){var l=s.parentNode;l&&l.removeChild(s)}function Cc(s){for(;s.firstChild;)s.removeChild(s.firstChild)}function Ko(s){var l=s.parentNode;l&&l.lastChild!==s&&l.appendChild(s)}function Xo(s){var l=s.parentNode;l&&l.firstChild!==s&&l.insertBefore(s,l.firstChild)}function Xh(s,l){if(s.classList!==void 0)return s.classList.contains(l);var u=Ec(s);return u.length>0&&new RegExp("(^|\\s)"+l+"(\\s|$)").test(u)}function Ie(s,l){if(s.classList!==void 0)for(var u=y(l),h=0,p=u.length;h<p;h++)s.classList.add(u[h]);else if(!Xh(s,l)){var _=Ec(s);ef(s,(_?_+" ":"")+l)}}function Tt(s,l){s.classList!==void 0?s.classList.remove(l):ef(s,v((" "+Ec(s)+" ").replace(" "+l+" "," ")))}function ef(s,l){s.className.baseVal===void 0?s.className=l:s.className.baseVal=l}function Ec(s){return s.correspondingElement&&(s=s.correspondingElement),s.className.baseVal===void 0?s.className:s.className.baseVal}function zn(s,l){"opacity"in s.style?s.style.opacity=l:"filter"in s.style&&qT(s,l)}function qT(s,l){var u=!1,h="DXImageTransform.Microsoft.Alpha";try{u=s.filters.item(h)}catch{if(l===1)return}l=Math.round(l*100),u?(u.Enabled=l!==100,u.Opacity=l):s.style.filter+=" progid:"+h+"(opacity="+l+")"}function Tc(s){for(var l=document.documentElement.style,u=0;u<s.length;u++)if(s[u]in l)return s[u];return!1}function no(s,l,u){var h=l||new O(0,0);s.style[Kh]=(oe.ie3d?"translate("+h.x+"px,"+h.y+"px)":"translate3d("+h.x+"px,"+h.y+"px,0)")+(u?" scale("+u+")":"")}function Mt(s,l){s._leaflet_pos=l,oe.any3d?no(s,l):(s.style.left=l.x+"px",s.style.top=l.y+"px")}function io(s){return s._leaflet_pos||new O(0,0)}var xa,Ia,tf;if("onselectstart"in document)xa=function(){Se(window,"selectstart",nn)},Ia=function(){it(window,"selectstart",nn)};else{var Oa=Tc(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);xa=function(){if(Oa){var s=document.documentElement.style;tf=s[Oa],s[Oa]="none"}},Ia=function(){Oa&&(document.documentElement.style[Oa]=tf,tf=void 0)}}function nf(){Se(window,"dragstart",nn)}function rf(){it(window,"dragstart",nn)}var Sc,of;function sf(s){for(;s.tabIndex===-1;)s=s.parentNode;s.style&&(Mc(),Sc=s,of=s.style.outlineStyle,s.style.outlineStyle="none",Se(window,"keydown",Mc))}function Mc(){Sc&&(Sc.style.outlineStyle=of,Sc=void 0,of=void 0,it(window,"keydown",Mc))}function Yv(s){do s=s.parentNode;while((!s.offsetWidth||!s.offsetHeight)&&s!==document.body);return s}function af(s){var l=s.getBoundingClientRect();return{x:l.width/s.offsetWidth||1,y:l.height/s.offsetHeight||1,boundingClientRect:l}}var YT={__proto__:null,TRANSFORM:Kh,TRANSITION:Sa,TRANSITION_END:Zv,get:qv,getStyle:Ma,create:Ue,remove:_t,empty:Cc,toFront:Ko,toBack:Xo,hasClass:Xh,addClass:Ie,removeClass:Tt,setClass:ef,getClass:Ec,setOpacity:zn,testProp:Tc,setTransform:no,setPosition:Mt,getPosition:io,get disableTextSelection(){return xa},get enableTextSelection(){return Ia},disableImageDrag:nf,enableImageDrag:rf,preventOutline:sf,restoreOutline:Mc,getSizedParentNode:Yv,getScale:af};function Se(s,l,u,h){if(l&&typeof l=="object")for(var p in l)cf(s,p,l[p],u);else{l=y(l);for(var _=0,w=l.length;_<w;_++)cf(s,l[_],u,h)}return this}var Ti="_leaflet_events";function it(s,l,u,h){if(arguments.length===1)Qv(s),delete s[Ti];else if(l&&typeof l=="object")for(var p in l)uf(s,p,l[p],u);else if(l=y(l),arguments.length===2)Qv(s,function(C){return V(l,C)!==-1});else for(var _=0,w=l.length;_<w;_++)uf(s,l[_],u,h);return this}function Qv(s,l){for(var u in s[Ti]){var h=u.split(/\d/)[0];(!l||l(h))&&uf(s,h,null,null,u)}}var lf={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function cf(s,l,u,h){var p=l+a(u)+(h?"_"+a(h):"");if(s[Ti]&&s[Ti][p])return this;var _=function(C){return u.call(h||s,C||window.event)},w=_;!oe.touchNative&&oe.pointer&&l.indexOf("touch")===0?_=BT(s,l,_):oe.touch&&l==="dblclick"?_=WT(s,_):"addEventListener"in s?l==="touchstart"||l==="touchmove"||l==="wheel"||l==="mousewheel"?s.addEventListener(lf[l]||l,_,oe.passiveEvents?{passive:!1}:!1):l==="mouseenter"||l==="mouseleave"?(_=function(C){C=C||window.event,hf(s,C)&&w(C)},s.addEventListener(lf[l],_,!1)):s.addEventListener(l,w,!1):s.attachEvent("on"+l,_),s[Ti]=s[Ti]||{},s[Ti][p]=_}function uf(s,l,u,h,p){p=p||l+a(u)+(h?"_"+a(h):"");var _=s[Ti]&&s[Ti][p];if(!_)return this;!oe.touchNative&&oe.pointer&&l.indexOf("touch")===0?VT(s,l,_):oe.touch&&l==="dblclick"?ZT(s,_):"removeEventListener"in s?s.removeEventListener(lf[l]||l,_,!1):s.detachEvent("on"+l,_),s[Ti][p]=null}function ro(s){return s.stopPropagation?s.stopPropagation():s.originalEvent?s.originalEvent._stopped=!0:s.cancelBubble=!0,this}function df(s){return cf(s,"wheel",ro),this}function Aa(s){return Se(s,"mousedown touchstart dblclick contextmenu",ro),s._leaflet_disable_click=!0,this}function nn(s){return s.preventDefault?s.preventDefault():s.returnValue=!1,this}function oo(s){return nn(s),ro(s),this}function Jv(s){if(s.composedPath)return s.composedPath();for(var l=[],u=s.target;u;)l.push(u),u=u.parentNode;return l}function Kv(s,l){if(!l)return new O(s.clientX,s.clientY);var u=af(l),h=u.boundingClientRect;return new O((s.clientX-h.left)/u.x-l.clientLeft,(s.clientY-h.top)/u.y-l.clientTop)}var QT=oe.linux&&oe.chrome?window.devicePixelRatio:oe.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Xv(s){return oe.edge?s.wheelDeltaY/2:s.deltaY&&s.deltaMode===0?-s.deltaY/QT:s.deltaY&&s.deltaMode===1?-s.deltaY*20:s.deltaY&&s.deltaMode===2?-s.deltaY*60:s.deltaX||s.deltaZ?0:s.wheelDelta?(s.wheelDeltaY||s.wheelDelta)/2:s.detail&&Math.abs(s.detail)<32765?-s.detail*20:s.detail?s.detail/-32765*60:0}function hf(s,l){var u=l.relatedTarget;if(!u)return!0;try{for(;u&&u!==s;)u=u.parentNode}catch{return!1}return u!==s}var JT={__proto__:null,on:Se,off:it,stopPropagation:ro,disableScrollPropagation:df,disableClickPropagation:Aa,preventDefault:nn,stop:oo,getPropagationPath:Jv,getMousePosition:Kv,getWheelDelta:Xv,isExternalTarget:hf,addListener:Se,removeListener:it},e0=Z.extend({run:function(s,l,u,h){this.stop(),this._el=s,this._inProgress=!0,this._duration=u||.25,this._easeOutPower=1/Math.max(h||.5,.2),this._startPos=io(s),this._offset=l.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=H(this._animate,this),this._step()},_step:function(s){var l=+new Date-this._startTime,u=this._duration*1e3;l<u?this._runFrame(this._easeOut(l/u),s):(this._runFrame(1),this._complete())},_runFrame:function(s,l){var u=this._startPos.add(this._offset.multiplyBy(s));l&&u._round(),Mt(this._el,u),this.fire("step")},_complete:function(){pe(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(s){return 1-Math.pow(1-s,this._easeOutPower)}}),ke=Z.extend({options:{crs:pn,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(s,l){l=g(this,l),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(s),this._initLayout(),this._onResize=r(this._onResize,this),this._initEvents(),l.maxBounds&&this.setMaxBounds(l.maxBounds),l.zoom!==void 0&&(this._zoom=this._limitZoom(l.zoom)),l.center&&l.zoom!==void 0&&this.setView(de(l.center),l.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Sa&&oe.any3d&&!oe.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Se(this._proxy,Zv,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(s,l,u){if(l=l===void 0?this._zoom:this._limitZoom(l),s=this._limitCenter(de(s),l,this.options.maxBounds),u=u||{},this._stop(),this._loaded&&!u.reset&&u!==!0){u.animate!==void 0&&(u.zoom=i({animate:u.animate},u.zoom),u.pan=i({animate:u.animate,duration:u.duration},u.pan));var h=this._zoom!==l?this._tryAnimatedZoom&&this._tryAnimatedZoom(s,l,u.zoom):this._tryAnimatedPan(s,u.pan);if(h)return clearTimeout(this._sizeTimer),this}return this._resetView(s,l,u.pan&&u.pan.noMoveStart),this},setZoom:function(s,l){return this._loaded?this.setView(this.getCenter(),s,{zoom:l}):(this._zoom=s,this)},zoomIn:function(s,l){return s=s||(oe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+s,l)},zoomOut:function(s,l){return s=s||(oe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-s,l)},setZoomAround:function(s,l,u){var h=this.getZoomScale(l),p=this.getSize().divideBy(2),_=s instanceof O?s:this.latLngToContainerPoint(s),w=_.subtract(p).multiplyBy(1-1/h),C=this.containerPointToLatLng(p.add(w));return this.setView(C,l,{zoom:u})},_getBoundsCenterZoom:function(s,l){l=l||{},s=s.getBounds?s.getBounds():De(s);var u=k(l.paddingTopLeft||l.padding||[0,0]),h=k(l.paddingBottomRight||l.padding||[0,0]),p=this.getBoundsZoom(s,!1,u.add(h));if(p=typeof l.maxZoom=="number"?Math.min(l.maxZoom,p):p,p===1/0)return{center:s.getCenter(),zoom:p};var _=h.subtract(u).divideBy(2),w=this.project(s.getSouthWest(),p),C=this.project(s.getNorthEast(),p),I=this.unproject(w.add(C).divideBy(2).add(_),p);return{center:I,zoom:p}},fitBounds:function(s,l){if(s=De(s),!s.isValid())throw new Error("Bounds are not valid.");var u=this._getBoundsCenterZoom(s,l);return this.setView(u.center,u.zoom,l)},fitWorld:function(s){return this.fitBounds([[-90,-180],[90,180]],s)},panTo:function(s,l){return this.setView(s,this._zoom,{pan:l})},panBy:function(s,l){if(s=k(s).round(),l=l||{},!s.x&&!s.y)return this.fire("moveend");if(l.animate!==!0&&!this.getSize().contains(s))return this._resetView(this.unproject(this.project(this.getCenter()).add(s)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new e0,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),l.noMoveStart||this.fire("movestart"),l.animate!==!1){Ie(this._mapPane,"leaflet-pan-anim");var u=this._getMapPanePos().subtract(s).round();this._panAnim.run(this._mapPane,u,l.duration||.25,l.easeLinearity)}else this._rawPanBy(s),this.fire("move").fire("moveend");return this},flyTo:function(s,l,u){if(u=u||{},u.animate===!1||!oe.any3d)return this.setView(s,l,u);this._stop();var h=this.project(this.getCenter()),p=this.project(s),_=this.getSize(),w=this._zoom;s=de(s),l=l===void 0?w:l;var C=Math.max(_.x,_.y),I=C*this.getZoomScale(w,l),P=p.distanceTo(h)||1,Q=1.42,me=Q*Q;function Ae(xt){var Vc=xt?-1:1,VS=xt?I:C,jS=I*I-C*C+Vc*me*me*P*P,$S=2*VS*me*P,Cf=jS/$S,R0=Math.sqrt(Cf*Cf+1)-Cf,US=R0<1e-9?-18:Math.log(R0);return US}function yn(xt){return(Math.exp(xt)-Math.exp(-xt))/2}function Wt(xt){return(Math.exp(xt)+Math.exp(-xt))/2}function Wn(xt){return yn(xt)/Wt(xt)}var On=Ae(0);function os(xt){return C*(Wt(On)/Wt(On+Q*xt))}function kS(xt){return C*(Wt(On)*Wn(On+Q*xt)-yn(On))/me}function FS(xt){return 1-Math.pow(1-xt,1.5)}var LS=Date.now(),P0=(Ae(1)-On)/Q,BS=u.duration?1e3*u.duration:1e3*P0*.8;function N0(){var xt=(Date.now()-LS)/BS,Vc=FS(xt)*P0;xt<=1?(this._flyToFrame=H(N0,this),this._move(this.unproject(h.add(p.subtract(h).multiplyBy(kS(Vc)/P)),w),this.getScaleZoom(C/os(Vc),w),{flyTo:!0})):this._move(s,l)._moveEnd(!0)}return this._moveStart(!0,u.noMoveStart),N0.call(this),this},flyToBounds:function(s,l){var u=this._getBoundsCenterZoom(s,l);return this.flyTo(u.center,u.zoom,l)},setMaxBounds:function(s){return s=De(s),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),s.isValid()?(this.options.maxBounds=s,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(s){var l=this.options.minZoom;return this.options.minZoom=s,this._loaded&&l!==s&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(s):this},setMaxZoom:function(s){var l=this.options.maxZoom;return this.options.maxZoom=s,this._loaded&&l!==s&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(s):this},panInsideBounds:function(s,l){this._enforcingBounds=!0;var u=this.getCenter(),h=this._limitCenter(u,this._zoom,De(s));return u.equals(h)||this.panTo(h,l),this._enforcingBounds=!1,this},panInside:function(s,l){l=l||{};var u=k(l.paddingTopLeft||l.padding||[0,0]),h=k(l.paddingBottomRight||l.padding||[0,0]),p=this.project(this.getCenter()),_=this.project(s),w=this.getPixelBounds(),C=Ee([w.min.add(u),w.max.subtract(h)]),I=C.getSize();if(!C.contains(_)){this._enforcingBounds=!0;var P=_.subtract(C.getCenter()),Q=C.extend(_).getSize().subtract(I);p.x+=P.x<0?-Q.x:Q.x,p.y+=P.y<0?-Q.y:Q.y,this.panTo(this.unproject(p),l),this._enforcingBounds=!1}return this},invalidateSize:function(s){if(!this._loaded)return this;s=i({animate:!1,pan:!0},s===!0?{animate:!0}:s);var l=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var u=this.getSize(),h=l.divideBy(2).round(),p=u.divideBy(2).round(),_=h.subtract(p);return!_.x&&!_.y?this:(s.animate&&s.pan?this.panBy(_):(s.pan&&this._rawPanBy(_),this.fire("move"),s.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:l,newSize:u}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(s){if(s=this._locateOptions=i({timeout:1e4,watch:!1},s),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var l=r(this._handleGeolocationResponse,this),u=r(this._handleGeolocationError,this);return s.watch?this._locationWatchId=navigator.geolocation.watchPosition(l,u,s):navigator.geolocation.getCurrentPosition(l,u,s),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(s){if(this._container._leaflet_id){var l=s.code,u=s.message||(l===1?"permission denied":l===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:l,message:"Geolocation error: "+u+"."})}},_handleGeolocationResponse:function(s){if(this._container._leaflet_id){var l=s.coords.latitude,u=s.coords.longitude,h=new we(l,u),p=h.toBounds(s.coords.accuracy*2),_=this._locateOptions;if(_.setView){var w=this.getBoundsZoom(p);this.setView(h,_.maxZoom?Math.min(w,_.maxZoom):w)}var C={latlng:h,bounds:p,timestamp:s.timestamp};for(var I in s.coords)typeof s.coords[I]=="number"&&(C[I]=s.coords[I]);this.fire("locationfound",C)}},addHandler:function(s,l){if(!l)return this;var u=this[s]=new l(this);return this._handlers.push(u),this.options[s]&&u.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),_t(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(pe(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var s;for(s in this._layers)this._layers[s].remove();for(s in this._panes)_t(this._panes[s]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(s,l){var u="leaflet-pane"+(s?" leaflet-"+s.replace("Pane","")+"-pane":""),h=Ue("div",u,l||this._mapPane);return s&&(this._panes[s]=h),h},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var s=this.getPixelBounds(),l=this.unproject(s.getBottomLeft()),u=this.unproject(s.getTopRight());return new Oe(l,u)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(s,l,u){s=De(s),u=k(u||[0,0]);var h=this.getZoom()||0,p=this.getMinZoom(),_=this.getMaxZoom(),w=s.getNorthWest(),C=s.getSouthEast(),I=this.getSize().subtract(u),P=Ee(this.project(C,h),this.project(w,h)).getSize(),Q=oe.any3d?this.options.zoomSnap:1,me=I.x/P.x,Ae=I.y/P.y,yn=l?Math.max(me,Ae):Math.min(me,Ae);return h=this.getScaleZoom(yn,h),Q&&(h=Math.round(h/(Q/100))*(Q/100),h=l?Math.ceil(h/Q)*Q:Math.floor(h/Q)*Q),Math.max(p,Math.min(_,h))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new O(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(s,l){var u=this._getTopLeftPoint(s,l);return new X(u,u.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(s){return this.options.crs.getProjectedBounds(s===void 0?this.getZoom():s)},getPane:function(s){return typeof s=="string"?this._panes[s]:s},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(s,l){var u=this.options.crs;return l=l===void 0?this._zoom:l,u.scale(s)/u.scale(l)},getScaleZoom:function(s,l){var u=this.options.crs;l=l===void 0?this._zoom:l;var h=u.zoom(s*u.scale(l));return isNaN(h)?1/0:h},project:function(s,l){return l=l===void 0?this._zoom:l,this.options.crs.latLngToPoint(de(s),l)},unproject:function(s,l){return l=l===void 0?this._zoom:l,this.options.crs.pointToLatLng(k(s),l)},layerPointToLatLng:function(s){var l=k(s).add(this.getPixelOrigin());return this.unproject(l)},latLngToLayerPoint:function(s){var l=this.project(de(s))._round();return l._subtract(this.getPixelOrigin())},wrapLatLng:function(s){return this.options.crs.wrapLatLng(de(s))},wrapLatLngBounds:function(s){return this.options.crs.wrapLatLngBounds(De(s))},distance:function(s,l){return this.options.crs.distance(de(s),de(l))},containerPointToLayerPoint:function(s){return k(s).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(s){return k(s).add(this._getMapPanePos())},containerPointToLatLng:function(s){var l=this.containerPointToLayerPoint(k(s));return this.layerPointToLatLng(l)},latLngToContainerPoint:function(s){return this.layerPointToContainerPoint(this.latLngToLayerPoint(de(s)))},mouseEventToContainerPoint:function(s){return Kv(s,this._container)},mouseEventToLayerPoint:function(s){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(s))},mouseEventToLatLng:function(s){return this.layerPointToLatLng(this.mouseEventToLayerPoint(s))},_initContainer:function(s){var l=this._container=qv(s);if(l){if(l._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Se(l,"scroll",this._onScroll,this),this._containerId=a(l)},_initLayout:function(){var s=this._container;this._fadeAnimated=this.options.fadeAnimation&&oe.any3d,Ie(s,"leaflet-container"+(oe.touch?" leaflet-touch":"")+(oe.retina?" leaflet-retina":"")+(oe.ielt9?" leaflet-oldie":"")+(oe.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var l=Ma(s,"position");l!=="absolute"&&l!=="relative"&&l!=="fixed"&&l!=="sticky"&&(s.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var s=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Mt(this._mapPane,new O(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Ie(s.markerPane,"leaflet-zoom-hide"),Ie(s.shadowPane,"leaflet-zoom-hide"))},_resetView:function(s,l,u){Mt(this._mapPane,new O(0,0));var h=!this._loaded;this._loaded=!0,l=this._limitZoom(l),this.fire("viewprereset");var p=this._zoom!==l;this._moveStart(p,u)._move(s,l)._moveEnd(p),this.fire("viewreset"),h&&this.fire("load")},_moveStart:function(s,l){return s&&this.fire("zoomstart"),l||this.fire("movestart"),this},_move:function(s,l,u,h){l===void 0&&(l=this._zoom);var p=this._zoom!==l;return this._zoom=l,this._lastCenter=s,this._pixelOrigin=this._getNewPixelOrigin(s),h?u&&u.pinch&&this.fire("zoom",u):((p||u&&u.pinch)&&this.fire("zoom",u),this.fire("move",u)),this},_moveEnd:function(s){return s&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return pe(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(s){Mt(this._mapPane,this._getMapPanePos().subtract(s))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(s){this._targets={},this._targets[a(this._container)]=this;var l=s?it:Se;l(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&l(window,"resize",this._onResize,this),oe.any3d&&this.options.transform3DLimit&&(s?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){pe(this._resizeRequest),this._resizeRequest=H(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var s=this._getMapPanePos();Math.max(Math.abs(s.x),Math.abs(s.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(s,l){for(var u=[],h,p=l==="mouseout"||l==="mouseover",_=s.target||s.srcElement,w=!1;_;){if(h=this._targets[a(_)],h&&(l==="click"||l==="preclick")&&this._draggableMoved(h)){w=!0;break}if(h&&h.listens(l,!0)&&(p&&!hf(_,s)||(u.push(h),p))||_===this._container)break;_=_.parentNode}return!u.length&&!w&&!p&&this.listens(l,!0)&&(u=[this]),u},_isClickDisabled:function(s){for(;s&&s!==this._container;){if(s._leaflet_disable_click)return!0;s=s.parentNode}},_handleDOMEvent:function(s){var l=s.target||s.srcElement;if(!(!this._loaded||l._leaflet_disable_events||s.type==="click"&&this._isClickDisabled(l))){var u=s.type;u==="mousedown"&&sf(l),this._fireDOMEvent(s,u)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(s,l,u){if(s.type==="click"){var h=i({},s);h.type="preclick",this._fireDOMEvent(h,h.type,u)}var p=this._findEventTargets(s,l);if(u){for(var _=[],w=0;w<u.length;w++)u[w].listens(l,!0)&&_.push(u[w]);p=_.concat(p)}if(p.length){l==="contextmenu"&&nn(s);var C=p[0],I={originalEvent:s};if(s.type!=="keypress"&&s.type!=="keydown"&&s.type!=="keyup"){var P=C.getLatLng&&(!C._radius||C._radius<=10);I.containerPoint=P?this.latLngToContainerPoint(C.getLatLng()):this.mouseEventToContainerPoint(s),I.layerPoint=this.containerPointToLayerPoint(I.containerPoint),I.latlng=P?C.getLatLng():this.layerPointToLatLng(I.layerPoint)}for(w=0;w<p.length;w++)if(p[w].fire(l,I,!0),I.originalEvent._stopped||p[w].options.bubblingMouseEvents===!1&&V(this._mouseEvents,l)!==-1)return}},_draggableMoved:function(s){return s=s.dragging&&s.dragging.enabled()?s:this,s.dragging&&s.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var s=0,l=this._handlers.length;s<l;s++)this._handlers[s].disable()},whenReady:function(s,l){return this._loaded?s.call(l||this,{target:this}):this.on("load",s,l),this},_getMapPanePos:function(){return io(this._mapPane)||new O(0,0)},_moved:function(){var s=this._getMapPanePos();return s&&!s.equals([0,0])},_getTopLeftPoint:function(s,l){var u=s&&l!==void 0?this._getNewPixelOrigin(s,l):this.getPixelOrigin();return u.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(s,l){var u=this.getSize()._divideBy(2);return this.project(s,l)._subtract(u)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(s,l,u){var h=this._getNewPixelOrigin(u,l);return this.project(s,l)._subtract(h)},_latLngBoundsToNewLayerBounds:function(s,l,u){var h=this._getNewPixelOrigin(u,l);return Ee([this.project(s.getSouthWest(),l)._subtract(h),this.project(s.getNorthWest(),l)._subtract(h),this.project(s.getSouthEast(),l)._subtract(h),this.project(s.getNorthEast(),l)._subtract(h)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(s){return this.latLngToLayerPoint(s).subtract(this._getCenterLayerPoint())},_limitCenter:function(s,l,u){if(!u)return s;var h=this.project(s,l),p=this.getSize().divideBy(2),_=new X(h.subtract(p),h.add(p)),w=this._getBoundsOffset(_,u,l);return Math.abs(w.x)<=1&&Math.abs(w.y)<=1?s:this.unproject(h.add(w),l)},_limitOffset:function(s,l){if(!l)return s;var u=this.getPixelBounds(),h=new X(u.min.add(s),u.max.add(s));return s.add(this._getBoundsOffset(h,l))},_getBoundsOffset:function(s,l,u){var h=Ee(this.project(l.getNorthEast(),u),this.project(l.getSouthWest(),u)),p=h.min.subtract(s.min),_=h.max.subtract(s.max),w=this._rebound(p.x,-_.x),C=this._rebound(p.y,-_.y);return new O(w,C)},_rebound:function(s,l){return s+l>0?Math.round(s-l)/2:Math.max(0,Math.ceil(s))-Math.max(0,Math.floor(l))},_limitZoom:function(s){var l=this.getMinZoom(),u=this.getMaxZoom(),h=oe.any3d?this.options.zoomSnap:1;return h&&(s=Math.round(s/h)*h),Math.max(l,Math.min(u,s))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Tt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(s,l){var u=this._getCenterOffset(s)._trunc();return(l&&l.animate)!==!0&&!this.getSize().contains(u)?!1:(this.panBy(u,l),!0)},_createAnimProxy:function(){var s=this._proxy=Ue("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(s),this.on("zoomanim",function(l){var u=Kh,h=this._proxy.style[u];no(this._proxy,this.project(l.center,l.zoom),this.getZoomScale(l.zoom,1)),h===this._proxy.style[u]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){_t(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var s=this.getCenter(),l=this.getZoom();no(this._proxy,this.project(s,l),this.getZoomScale(l,1))},_catchTransitionEnd:function(s){this._animatingZoom&&s.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(s,l,u){if(this._animatingZoom)return!0;if(u=u||{},!this._zoomAnimated||u.animate===!1||this._nothingToAnimate()||Math.abs(l-this._zoom)>this.options.zoomAnimationThreshold)return!1;var h=this.getZoomScale(l),p=this._getCenterOffset(s)._divideBy(1-1/h);return u.animate!==!0&&!this.getSize().contains(p)?!1:(H(function(){this._moveStart(!0,u.noMoveStart||!1)._animateZoom(s,l,!0)},this),!0)},_animateZoom:function(s,l,u,h){this._mapPane&&(u&&(this._animatingZoom=!0,this._animateToCenter=s,this._animateToZoom=l,Ie(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:s,zoom:l,noUpdate:h}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Tt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function KT(s,l){return new ke(s,l)}var oi=G.extend({options:{position:"topright"},initialize:function(s){g(this,s)},getPosition:function(){return this.options.position},setPosition:function(s){var l=this._map;return l&&l.removeControl(this),this.options.position=s,l&&l.addControl(this),this},getContainer:function(){return this._container},addTo:function(s){this.remove(),this._map=s;var l=this._container=this.onAdd(s),u=this.getPosition(),h=s._controlCorners[u];return Ie(l,"leaflet-control"),u.indexOf("bottom")!==-1?h.insertBefore(l,h.firstChild):h.appendChild(l),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(_t(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(s){this._map&&s&&s.screenX>0&&s.screenY>0&&this._map.getContainer().focus()}}),Pa=function(s){return new oi(s)};ke.include({addControl:function(s){return s.addTo(this),this},removeControl:function(s){return s.remove(),this},_initControlPos:function(){var s=this._controlCorners={},l="leaflet-",u=this._controlContainer=Ue("div",l+"control-container",this._container);function h(p,_){var w=l+p+" "+l+_;s[p+_]=Ue("div",w,u)}h("top","left"),h("top","right"),h("bottom","left"),h("bottom","right")},_clearControlPos:function(){for(var s in this._controlCorners)_t(this._controlCorners[s]);_t(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var t0=oi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(s,l,u,h){return u<h?-1:h<u?1:0}},initialize:function(s,l,u){g(this,u),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var h in s)this._addLayer(s[h],h);for(h in l)this._addLayer(l[h],h,!0)},onAdd:function(s){this._initLayout(),this._update(),this._map=s,s.on("zoomend",this._checkDisabledLayers,this);for(var l=0;l<this._layers.length;l++)this._layers[l].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(s){return oi.prototype.addTo.call(this,s),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var s=0;s<this._layers.length;s++)this._layers[s].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(s,l){return this._addLayer(s,l),this._map?this._update():this},addOverlay:function(s,l){return this._addLayer(s,l,!0),this._map?this._update():this},removeLayer:function(s){s.off("add remove",this._onLayerChange,this);var l=this._getLayer(a(s));return l&&this._layers.splice(this._layers.indexOf(l),1),this._map?this._update():this},expand:function(){Ie(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var s=this._map.getSize().y-(this._container.offsetTop+50);return s<this._section.clientHeight?(Ie(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=s+"px"):Tt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Tt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var s="leaflet-control-layers",l=this._container=Ue("div",s),u=this.options.collapsed;l.setAttribute("aria-haspopup",!0),Aa(l),df(l);var h=this._section=Ue("section",s+"-list");u&&(this._map.on("click",this.collapse,this),Se(l,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var p=this._layersLink=Ue("a",s+"-toggle",l);p.href="#",p.title="Layers",p.setAttribute("role","button"),Se(p,{keydown:function(_){_.keyCode===13&&this._expandSafely()},click:function(_){nn(_),this._expandSafely()}},this),u||this.expand(),this._baseLayersList=Ue("div",s+"-base",h),this._separator=Ue("div",s+"-separator",h),this._overlaysList=Ue("div",s+"-overlays",h),l.appendChild(h)},_getLayer:function(s){for(var l=0;l<this._layers.length;l++)if(this._layers[l]&&a(this._layers[l].layer)===s)return this._layers[l]},_addLayer:function(s,l,u){this._map&&s.on("add remove",this._onLayerChange,this),this._layers.push({layer:s,name:l,overlay:u}),this.options.sortLayers&&this._layers.sort(r(function(h,p){return this.options.sortFunction(h.layer,p.layer,h.name,p.name)},this)),this.options.autoZIndex&&s.setZIndex&&(this._lastZIndex++,s.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Cc(this._baseLayersList),Cc(this._overlaysList),this._layerControlInputs=[];var s,l,u,h,p=0;for(u=0;u<this._layers.length;u++)h=this._layers[u],this._addItem(h),l=l||h.overlay,s=s||!h.overlay,p+=h.overlay?0:1;return this.options.hideSingleBase&&(s=s&&p>1,this._baseLayersList.style.display=s?"":"none"),this._separator.style.display=l&&s?"":"none",this},_onLayerChange:function(s){this._handlingClick||this._update();var l=this._getLayer(a(s.target)),u=l.overlay?s.type==="add"?"overlayadd":"overlayremove":s.type==="add"?"baselayerchange":null;u&&this._map.fire(u,l)},_createRadioElement:function(s,l){var u='<input type="radio" class="leaflet-control-layers-selector" name="'+s+'"'+(l?' checked="checked"':"")+"/>",h=document.createElement("div");return h.innerHTML=u,h.firstChild},_addItem:function(s){var l=document.createElement("label"),u=this._map.hasLayer(s.layer),h;s.overlay?(h=document.createElement("input"),h.type="checkbox",h.className="leaflet-control-layers-selector",h.defaultChecked=u):h=this._createRadioElement("leaflet-base-layers_"+a(this),u),this._layerControlInputs.push(h),h.layerId=a(s.layer),Se(h,"click",this._onInputClick,this);var p=document.createElement("span");p.innerHTML=" "+s.name;var _=document.createElement("span");l.appendChild(_),_.appendChild(h),_.appendChild(p);var w=s.overlay?this._overlaysList:this._baseLayersList;return w.appendChild(l),this._checkDisabledLayers(),l},_onInputClick:function(){if(!this._preventClick){var s=this._layerControlInputs,l,u,h=[],p=[];this._handlingClick=!0;for(var _=s.length-1;_>=0;_--)l=s[_],u=this._getLayer(l.layerId).layer,l.checked?h.push(u):l.checked||p.push(u);for(_=0;_<p.length;_++)this._map.hasLayer(p[_])&&this._map.removeLayer(p[_]);for(_=0;_<h.length;_++)this._map.hasLayer(h[_])||this._map.addLayer(h[_]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var s=this._layerControlInputs,l,u,h=this._map.getZoom(),p=s.length-1;p>=0;p--)l=s[p],u=this._getLayer(l.layerId).layer,l.disabled=u.options.minZoom!==void 0&&h<u.options.minZoom||u.options.maxZoom!==void 0&&h>u.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var s=this._section;this._preventClick=!0,Se(s,"click",nn),this.expand();var l=this;setTimeout(function(){it(s,"click",nn),l._preventClick=!1})}}),XT=function(s,l,u){return new t0(s,l,u)},ff=oi.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(s){var l="leaflet-control-zoom",u=Ue("div",l+" leaflet-bar"),h=this.options;return this._zoomInButton=this._createButton(h.zoomInText,h.zoomInTitle,l+"-in",u,this._zoomIn),this._zoomOutButton=this._createButton(h.zoomOutText,h.zoomOutTitle,l+"-out",u,this._zoomOut),this._updateDisabled(),s.on("zoomend zoomlevelschange",this._updateDisabled,this),u},onRemove:function(s){s.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(s){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(s.shiftKey?3:1))},_zoomOut:function(s){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(s.shiftKey?3:1))},_createButton:function(s,l,u,h,p){var _=Ue("a",u,h);return _.innerHTML=s,_.href="#",_.title=l,_.setAttribute("role","button"),_.setAttribute("aria-label",l),Aa(_),Se(_,"click",oo),Se(_,"click",p,this),Se(_,"click",this._refocusOnMap,this),_},_updateDisabled:function(){var s=this._map,l="leaflet-disabled";Tt(this._zoomInButton,l),Tt(this._zoomOutButton,l),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||s._zoom===s.getMinZoom())&&(Ie(this._zoomOutButton,l),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||s._zoom===s.getMaxZoom())&&(Ie(this._zoomInButton,l),this._zoomInButton.setAttribute("aria-disabled","true"))}});ke.mergeOptions({zoomControl:!0}),ke.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ff,this.addControl(this.zoomControl))});var eS=function(s){return new ff(s)},n0=oi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(s){var l="leaflet-control-scale",u=Ue("div",l),h=this.options;return this._addScales(h,l+"-line",u),s.on(h.updateWhenIdle?"moveend":"move",this._update,this),s.whenReady(this._update,this),u},onRemove:function(s){s.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(s,l,u){s.metric&&(this._mScale=Ue("div",l,u)),s.imperial&&(this._iScale=Ue("div",l,u))},_update:function(){var s=this._map,l=s.getSize().y/2,u=s.distance(s.containerPointToLatLng([0,l]),s.containerPointToLatLng([this.options.maxWidth,l]));this._updateScales(u)},_updateScales:function(s){this.options.metric&&s&&this._updateMetric(s),this.options.imperial&&s&&this._updateImperial(s)},_updateMetric:function(s){var l=this._getRoundNum(s),u=l<1e3?l+" m":l/1e3+" km";this._updateScale(this._mScale,u,l/s)},_updateImperial:function(s){var l=s*3.2808399,u,h,p;l>5280?(u=l/5280,h=this._getRoundNum(u),this._updateScale(this._iScale,h+" mi",h/u)):(p=this._getRoundNum(l),this._updateScale(this._iScale,p+" ft",p/l))},_updateScale:function(s,l,u){s.style.width=Math.round(this.options.maxWidth*u)+"px",s.innerHTML=l},_getRoundNum:function(s){var l=Math.pow(10,(Math.floor(s)+"").length-1),u=s/l;return u=u>=10?10:u>=5?5:u>=3?3:u>=2?2:1,l*u}}),tS=function(s){return new n0(s)},nS='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',pf=oi.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(oe.inlineSvg?nS+" ":"")+"Leaflet</a>"},initialize:function(s){g(this,s),this._attributions={}},onAdd:function(s){s.attributionControl=this,this._container=Ue("div","leaflet-control-attribution"),Aa(this._container);for(var l in s._layers)s._layers[l].getAttribution&&this.addAttribution(s._layers[l].getAttribution());return this._update(),s.on("layeradd",this._addAttribution,this),this._container},onRemove:function(s){s.off("layeradd",this._addAttribution,this)},_addAttribution:function(s){s.layer.getAttribution&&(this.addAttribution(s.layer.getAttribution()),s.layer.once("remove",function(){this.removeAttribution(s.layer.getAttribution())},this))},setPrefix:function(s){return this.options.prefix=s,this._update(),this},addAttribution:function(s){return s?(this._attributions[s]||(this._attributions[s]=0),this._attributions[s]++,this._update(),this):this},removeAttribution:function(s){return s?(this._attributions[s]&&(this._attributions[s]--,this._update()),this):this},_update:function(){if(this._map){var s=[];for(var l in this._attributions)this._attributions[l]&&s.push(l);var u=[];this.options.prefix&&u.push(this.options.prefix),s.length&&u.push(s.join(", ")),this._container.innerHTML=u.join(' <span aria-hidden="true">|</span> ')}}});ke.mergeOptions({attributionControl:!0}),ke.addInitHook(function(){this.options.attributionControl&&new pf().addTo(this)});var iS=function(s){return new pf(s)};oi.Layers=t0,oi.Zoom=ff,oi.Scale=n0,oi.Attribution=pf,Pa.layers=XT,Pa.zoom=eS,Pa.scale=tS,Pa.attribution=iS;var Si=G.extend({initialize:function(s){this._map=s},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Si.addTo=function(s,l){return s.addHandler(l,this),this};var rS={Events:R},i0=oe.touch?"touchstart mousedown":"mousedown",Dr=Z.extend({options:{clickTolerance:3},initialize:function(s,l,u,h){g(this,h),this._element=s,this._dragStartTarget=l||s,this._preventOutline=u},enable:function(){this._enabled||(Se(this._dragStartTarget,i0,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Dr._dragging===this&&this.finishDrag(!0),it(this._dragStartTarget,i0,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(s){if(this._enabled&&(this._moved=!1,!Xh(this._element,"leaflet-zoom-anim"))){if(s.touches&&s.touches.length!==1){Dr._dragging===this&&this.finishDrag();return}if(!(Dr._dragging||s.shiftKey||s.which!==1&&s.button!==1&&!s.touches)&&(Dr._dragging=this,this._preventOutline&&sf(this._element),nf(),xa(),!this._moving)){this.fire("down");var l=s.touches?s.touches[0]:s,u=Yv(this._element);this._startPoint=new O(l.clientX,l.clientY),this._startPos=io(this._element),this._parentScale=af(u);var h=s.type==="mousedown";Se(document,h?"mousemove":"touchmove",this._onMove,this),Se(document,h?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(s){if(this._enabled){if(s.touches&&s.touches.length>1){this._moved=!0;return}var l=s.touches&&s.touches.length===1?s.touches[0]:s,u=new O(l.clientX,l.clientY)._subtract(this._startPoint);!u.x&&!u.y||Math.abs(u.x)+Math.abs(u.y)<this.options.clickTolerance||(u.x/=this._parentScale.x,u.y/=this._parentScale.y,nn(s),this._moved||(this.fire("dragstart"),this._moved=!0,Ie(document.body,"leaflet-dragging"),this._lastTarget=s.target||s.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Ie(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(u),this._moving=!0,this._lastEvent=s,this._updatePosition())}},_updatePosition:function(){var s={originalEvent:this._lastEvent};this.fire("predrag",s),Mt(this._element,this._newPos),this.fire("drag",s)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(s){Tt(document.body,"leaflet-dragging"),this._lastTarget&&(Tt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),it(document,"mousemove touchmove",this._onMove,this),it(document,"mouseup touchend touchcancel",this._onUp,this),rf(),Ia();var l=this._moved&&this._moving;this._moving=!1,Dr._dragging=!1,l&&this.fire("dragend",{noInertia:s,distance:this._newPos.distanceTo(this._startPos)})}});function r0(s,l,u){var h,p=[1,4,2,8],_,w,C,I,P,Q,me,Ae;for(_=0,Q=s.length;_<Q;_++)s[_]._code=so(s[_],l);for(C=0;C<4;C++){for(me=p[C],h=[],_=0,Q=s.length,w=Q-1;_<Q;w=_++)I=s[_],P=s[w],I._code&me?P._code&me||(Ae=xc(P,I,me,l,u),Ae._code=so(Ae,l),h.push(Ae)):(P._code&me&&(Ae=xc(P,I,me,l,u),Ae._code=so(Ae,l),h.push(Ae)),h.push(I));s=h}return s}function o0(s,l){var u,h,p,_,w,C,I,P,Q;if(!s||s.length===0)throw new Error("latlngs not passed");Gn(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var me=de([0,0]),Ae=De(s),yn=Ae.getNorthWest().distanceTo(Ae.getSouthWest())*Ae.getNorthEast().distanceTo(Ae.getNorthWest());yn<1700&&(me=mf(s));var Wt=s.length,Wn=[];for(u=0;u<Wt;u++){var On=de(s[u]);Wn.push(l.project(de([On.lat-me.lat,On.lng-me.lng])))}for(C=I=P=0,u=0,h=Wt-1;u<Wt;h=u++)p=Wn[u],_=Wn[h],w=p.y*_.x-_.y*p.x,I+=(p.x+_.x)*w,P+=(p.y+_.y)*w,C+=w*3;C===0?Q=Wn[0]:Q=[I/C,P/C];var os=l.unproject(k(Q));return de([os.lat+me.lat,os.lng+me.lng])}function mf(s){for(var l=0,u=0,h=0,p=0;p<s.length;p++){var _=de(s[p]);l+=_.lat,u+=_.lng,h++}return de([l/h,u/h])}var oS={__proto__:null,clipPolygon:r0,polygonCenter:o0,centroid:mf};function s0(s,l){if(!l||!s.length)return s.slice();var u=l*l;return s=lS(s,u),s=aS(s,u),s}function a0(s,l,u){return Math.sqrt(Na(s,l,u,!0))}function sS(s,l,u){return Na(s,l,u)}function aS(s,l){var u=s.length,h=typeof Uint8Array<"u"?Uint8Array:Array,p=new h(u);p[0]=p[u-1]=1,gf(s,p,l,0,u-1);var _,w=[];for(_=0;_<u;_++)p[_]&&w.push(s[_]);return w}function gf(s,l,u,h,p){var _=0,w,C,I;for(C=h+1;C<=p-1;C++)I=Na(s[C],s[h],s[p],!0),I>_&&(w=C,_=I);_>u&&(l[w]=1,gf(s,l,u,h,w),gf(s,l,u,w,p))}function lS(s,l){for(var u=[s[0]],h=1,p=0,_=s.length;h<_;h++)cS(s[h],s[p])>l&&(u.push(s[h]),p=h);return p<_-1&&u.push(s[_-1]),u}var l0;function c0(s,l,u,h,p){var _=h?l0:so(s,u),w=so(l,u),C,I,P;for(l0=w;;){if(!(_|w))return[s,l];if(_&w)return!1;C=_||w,I=xc(s,l,C,u,p),P=so(I,u),C===_?(s=I,_=P):(l=I,w=P)}}function xc(s,l,u,h,p){var _=l.x-s.x,w=l.y-s.y,C=h.min,I=h.max,P,Q;return u&8?(P=s.x+_*(I.y-s.y)/w,Q=I.y):u&4?(P=s.x+_*(C.y-s.y)/w,Q=C.y):u&2?(P=I.x,Q=s.y+w*(I.x-s.x)/_):u&1&&(P=C.x,Q=s.y+w*(C.x-s.x)/_),new O(P,Q,p)}function so(s,l){var u=0;return s.x<l.min.x?u|=1:s.x>l.max.x&&(u|=2),s.y<l.min.y?u|=4:s.y>l.max.y&&(u|=8),u}function cS(s,l){var u=l.x-s.x,h=l.y-s.y;return u*u+h*h}function Na(s,l,u,h){var p=l.x,_=l.y,w=u.x-p,C=u.y-_,I=w*w+C*C,P;return I>0&&(P=((s.x-p)*w+(s.y-_)*C)/I,P>1?(p=u.x,_=u.y):P>0&&(p+=w*P,_+=C*P)),w=s.x-p,C=s.y-_,h?w*w+C*C:new O(p,_)}function Gn(s){return!M(s[0])||typeof s[0][0]!="object"&&typeof s[0][0]<"u"}function u0(s){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Gn(s)}function d0(s,l){var u,h,p,_,w,C,I,P;if(!s||s.length===0)throw new Error("latlngs not passed");Gn(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var Q=de([0,0]),me=De(s),Ae=me.getNorthWest().distanceTo(me.getSouthWest())*me.getNorthEast().distanceTo(me.getNorthWest());Ae<1700&&(Q=mf(s));var yn=s.length,Wt=[];for(u=0;u<yn;u++){var Wn=de(s[u]);Wt.push(l.project(de([Wn.lat-Q.lat,Wn.lng-Q.lng])))}for(u=0,h=0;u<yn-1;u++)h+=Wt[u].distanceTo(Wt[u+1])/2;if(h===0)P=Wt[0];else for(u=0,_=0;u<yn-1;u++)if(w=Wt[u],C=Wt[u+1],p=w.distanceTo(C),_+=p,_>h){I=(_-h)/p,P=[C.x-I*(C.x-w.x),C.y-I*(C.y-w.y)];break}var On=l.unproject(k(P));return de([On.lat+Q.lat,On.lng+Q.lng])}var uS={__proto__:null,simplify:s0,pointToSegmentDistance:a0,closestPointOnSegment:sS,clipSegment:c0,_getEdgeIntersection:xc,_getBitCode:so,_sqClosestPointOnSegment:Na,isFlat:Gn,_flat:u0,polylineCenter:d0},_f={project:function(s){return new O(s.lng,s.lat)},unproject:function(s){return new we(s.y,s.x)},bounds:new X([-180,-90],[180,90])},vf={R:6378137,R_MINOR:6356752314245179e-9,bounds:new X([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(s){var l=Math.PI/180,u=this.R,h=s.lat*l,p=this.R_MINOR/u,_=Math.sqrt(1-p*p),w=_*Math.sin(h),C=Math.tan(Math.PI/4-h/2)/Math.pow((1-w)/(1+w),_/2);return h=-u*Math.log(Math.max(C,1e-10)),new O(s.lng*l*u,h)},unproject:function(s){for(var l=180/Math.PI,u=this.R,h=this.R_MINOR/u,p=Math.sqrt(1-h*h),_=Math.exp(-s.y/u),w=Math.PI/2-2*Math.atan(_),C=0,I=.1,P;C<15&&Math.abs(I)>1e-7;C++)P=p*Math.sin(w),P=Math.pow((1-P)/(1+P),p/2),I=Math.PI/2-2*Math.atan(_*P)-w,w+=I;return new we(w*l,s.x*l/u)}},dS={__proto__:null,LonLat:_f,Mercator:vf,SphericalMercator:Ze},hS=i({},ft,{code:"EPSG:3395",projection:vf,transformation:function(){var s=.5/(Math.PI*vf.R);return tn(s,.5,-s,.5)}()}),h0=i({},ft,{code:"EPSG:4326",projection:_f,transformation:tn(1/180,1,-1/180,.5)}),fS=i({},Qe,{projection:_f,transformation:tn(1,0,-1,0),scale:function(s){return Math.pow(2,s)},zoom:function(s){return Math.log(s)/Math.LN2},distance:function(s,l){var u=l.lng-s.lng,h=l.lat-s.lat;return Math.sqrt(u*u+h*h)},infinite:!0});Qe.Earth=ft,Qe.EPSG3395=hS,Qe.EPSG3857=pn,Qe.EPSG900913=Kr,Qe.EPSG4326=h0,Qe.Simple=fS;var si=Z.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(s){return s.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(s){return s&&s.removeLayer(this),this},getPane:function(s){return this._map.getPane(s?this.options[s]||s:this.options.pane)},addInteractiveTarget:function(s){return this._map._targets[a(s)]=this,this},removeInteractiveTarget:function(s){return delete this._map._targets[a(s)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(s){var l=s.target;if(l.hasLayer(this)){if(this._map=l,this._zoomAnimated=l._zoomAnimated,this.getEvents){var u=this.getEvents();l.on(u,this),this.once("remove",function(){l.off(u,this)},this)}this.onAdd(l),this.fire("add"),l.fire("layeradd",{layer:this})}}});ke.include({addLayer:function(s){if(!s._layerAdd)throw new Error("The provided object is not a Layer.");var l=a(s);return this._layers[l]?this:(this._layers[l]=s,s._mapToAdd=this,s.beforeAdd&&s.beforeAdd(this),this.whenReady(s._layerAdd,s),this)},removeLayer:function(s){var l=a(s);return this._layers[l]?(this._loaded&&s.onRemove(this),delete this._layers[l],this._loaded&&(this.fire("layerremove",{layer:s}),s.fire("remove")),s._map=s._mapToAdd=null,this):this},hasLayer:function(s){return a(s)in this._layers},eachLayer:function(s,l){for(var u in this._layers)s.call(l,this._layers[u]);return this},_addLayers:function(s){s=s?M(s)?s:[s]:[];for(var l=0,u=s.length;l<u;l++)this.addLayer(s[l])},_addZoomLimit:function(s){(!isNaN(s.options.maxZoom)||!isNaN(s.options.minZoom))&&(this._zoomBoundLayers[a(s)]=s,this._updateZoomLevels())},_removeZoomLimit:function(s){var l=a(s);this._zoomBoundLayers[l]&&(delete this._zoomBoundLayers[l],this._updateZoomLevels())},_updateZoomLevels:function(){var s=1/0,l=-1/0,u=this._getZoomSpan();for(var h in this._zoomBoundLayers){var p=this._zoomBoundLayers[h].options;s=p.minZoom===void 0?s:Math.min(s,p.minZoom),l=p.maxZoom===void 0?l:Math.max(l,p.maxZoom)}this._layersMaxZoom=l===-1/0?void 0:l,this._layersMinZoom=s===1/0?void 0:s,u!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var es=si.extend({initialize:function(s,l){g(this,l),this._layers={};var u,h;if(s)for(u=0,h=s.length;u<h;u++)this.addLayer(s[u])},addLayer:function(s){var l=this.getLayerId(s);return this._layers[l]=s,this._map&&this._map.addLayer(s),this},removeLayer:function(s){var l=s in this._layers?s:this.getLayerId(s);return this._map&&this._layers[l]&&this._map.removeLayer(this._layers[l]),delete this._layers[l],this},hasLayer:function(s){var l=typeof s=="number"?s:this.getLayerId(s);return l in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(s){var l=Array.prototype.slice.call(arguments,1),u,h;for(u in this._layers)h=this._layers[u],h[s]&&h[s].apply(h,l);return this},onAdd:function(s){this.eachLayer(s.addLayer,s)},onRemove:function(s){this.eachLayer(s.removeLayer,s)},eachLayer:function(s,l){for(var u in this._layers)s.call(l,this._layers[u]);return this},getLayer:function(s){return this._layers[s]},getLayers:function(){var s=[];return this.eachLayer(s.push,s),s},setZIndex:function(s){return this.invoke("setZIndex",s)},getLayerId:function(s){return a(s)}}),pS=function(s,l){return new es(s,l)},tr=es.extend({addLayer:function(s){return this.hasLayer(s)?this:(s.addEventParent(this),es.prototype.addLayer.call(this,s),this.fire("layeradd",{layer:s}))},removeLayer:function(s){return this.hasLayer(s)?(s in this._layers&&(s=this._layers[s]),s.removeEventParent(this),es.prototype.removeLayer.call(this,s),this.fire("layerremove",{layer:s})):this},setStyle:function(s){return this.invoke("setStyle",s)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var s=new Oe;for(var l in this._layers){var u=this._layers[l];s.extend(u.getBounds?u.getBounds():u.getLatLng())}return s}}),mS=function(s,l){return new tr(s,l)},ts=G.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(s){g(this,s)},createIcon:function(s){return this._createIcon("icon",s)},createShadow:function(s){return this._createIcon("shadow",s)},_createIcon:function(s,l){var u=this._getIconUrl(s);if(!u){if(s==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var h=this._createImg(u,l&&l.tagName==="IMG"?l:null);return this._setIconStyles(h,s),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),h},_setIconStyles:function(s,l){var u=this.options,h=u[l+"Size"];typeof h=="number"&&(h=[h,h]);var p=k(h),_=k(l==="shadow"&&u.shadowAnchor||u.iconAnchor||p&&p.divideBy(2,!0));s.className="leaflet-marker-"+l+" "+(u.className||""),_&&(s.style.marginLeft=-_.x+"px",s.style.marginTop=-_.y+"px"),p&&(s.style.width=p.x+"px",s.style.height=p.y+"px")},_createImg:function(s,l){return l=l||document.createElement("img"),l.src=s,l},_getIconUrl:function(s){return oe.retina&&this.options[s+"RetinaUrl"]||this.options[s+"Url"]}});function gS(s){return new ts(s)}var Ra=ts.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(s){return typeof Ra.imagePath!="string"&&(Ra.imagePath=this._detectIconPath()),(this.options.imagePath||Ra.imagePath)+ts.prototype._getIconUrl.call(this,s)},_stripUrl:function(s){var l=function(u,h,p){var _=h.exec(u);return _&&_[p]};return s=l(s,/^url\((['"])?(.+)\1\)$/,2),s&&l(s,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var s=Ue("div","leaflet-default-icon-path",document.body),l=Ma(s,"background-image")||Ma(s,"backgroundImage");if(document.body.removeChild(s),l=this._stripUrl(l),l)return l;var u=document.querySelector('link[href$="leaflet.css"]');return u?u.href.substring(0,u.href.length-11-1):""}}),f0=Si.extend({initialize:function(s){this._marker=s},addHooks:function(){var s=this._marker._icon;this._draggable||(this._draggable=new Dr(s,s,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Ie(s,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Tt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(s){var l=this._marker,u=l._map,h=this._marker.options.autoPanSpeed,p=this._marker.options.autoPanPadding,_=io(l._icon),w=u.getPixelBounds(),C=u.getPixelOrigin(),I=Ee(w.min._subtract(C).add(p),w.max._subtract(C).subtract(p));if(!I.contains(_)){var P=k((Math.max(I.max.x,_.x)-I.max.x)/(w.max.x-I.max.x)-(Math.min(I.min.x,_.x)-I.min.x)/(w.min.x-I.min.x),(Math.max(I.max.y,_.y)-I.max.y)/(w.max.y-I.max.y)-(Math.min(I.min.y,_.y)-I.min.y)/(w.min.y-I.min.y)).multiplyBy(h);u.panBy(P,{animate:!1}),this._draggable._newPos._add(P),this._draggable._startPos._add(P),Mt(l._icon,this._draggable._newPos),this._onDrag(s),this._panRequest=H(this._adjustPan.bind(this,s))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(s){this._marker.options.autoPan&&(pe(this._panRequest),this._panRequest=H(this._adjustPan.bind(this,s)))},_onDrag:function(s){var l=this._marker,u=l._shadow,h=io(l._icon),p=l._map.layerPointToLatLng(h);u&&Mt(u,h),l._latlng=p,s.latlng=p,s.oldLatLng=this._oldLatLng,l.fire("move",s).fire("drag",s)},_onDragEnd:function(s){pe(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",s)}}),Ic=si.extend({options:{icon:new Ra,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(s,l){g(this,l),this._latlng=de(s)},onAdd:function(s){this._zoomAnimated=this._zoomAnimated&&s.options.markerZoomAnimation,this._zoomAnimated&&s.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(s){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&s.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(s){var l=this._latlng;return this._latlng=de(s),this.update(),this.fire("move",{oldLatLng:l,latlng:this._latlng})},setZIndexOffset:function(s){return this.options.zIndexOffset=s,this.update()},getIcon:function(){return this.options.icon},setIcon:function(s){return this.options.icon=s,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var s=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(s)}return this},_initIcon:function(){var s=this.options,l="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),u=s.icon.createIcon(this._icon),h=!1;u!==this._icon&&(this._icon&&this._removeIcon(),h=!0,s.title&&(u.title=s.title),u.tagName==="IMG"&&(u.alt=s.alt||"")),Ie(u,l),s.keyboard&&(u.tabIndex="0",u.setAttribute("role","button")),this._icon=u,s.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Se(u,"focus",this._panOnFocus,this);var p=s.icon.createShadow(this._shadow),_=!1;p!==this._shadow&&(this._removeShadow(),_=!0),p&&(Ie(p,l),p.alt=""),this._shadow=p,s.opacity<1&&this._updateOpacity(),h&&this.getPane().appendChild(this._icon),this._initInteraction(),p&&_&&this.getPane(s.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&it(this._icon,"focus",this._panOnFocus,this),_t(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&_t(this._shadow),this._shadow=null},_setPos:function(s){this._icon&&Mt(this._icon,s),this._shadow&&Mt(this._shadow,s),this._zIndex=s.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(s){this._icon&&(this._icon.style.zIndex=this._zIndex+s)},_animateZoom:function(s){var l=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center).round();this._setPos(l)},_initInteraction:function(){if(this.options.interactive&&(Ie(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),f0)){var s=this.options.draggable;this.dragging&&(s=this.dragging.enabled(),this.dragging.disable()),this.dragging=new f0(this),s&&this.dragging.enable()}},setOpacity:function(s){return this.options.opacity=s,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var s=this.options.opacity;this._icon&&zn(this._icon,s),this._shadow&&zn(this._shadow,s)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var s=this._map;if(s){var l=this.options.icon.options,u=l.iconSize?k(l.iconSize):k(0,0),h=l.iconAnchor?k(l.iconAnchor):k(0,0);s.panInside(this._latlng,{paddingTopLeft:h,paddingBottomRight:u.subtract(h)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function _S(s,l){return new Ic(s,l)}var Cr=si.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(s){this._renderer=s.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(s){return g(this,s),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&s&&Object.prototype.hasOwnProperty.call(s,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Oc=Cr.extend({options:{fill:!0,radius:10},initialize:function(s,l){g(this,l),this._latlng=de(s),this._radius=this.options.radius},setLatLng:function(s){var l=this._latlng;return this._latlng=de(s),this.redraw(),this.fire("move",{oldLatLng:l,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(s){return this.options.radius=this._radius=s,this.redraw()},getRadius:function(){return this._radius},setStyle:function(s){var l=s&&s.radius||this._radius;return Cr.prototype.setStyle.call(this,s),this.setRadius(l),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var s=this._radius,l=this._radiusY||s,u=this._clickTolerance(),h=[s+u,l+u];this._pxBounds=new X(this._point.subtract(h),this._point.add(h))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(s){return s.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function vS(s,l){return new Oc(s,l)}var yf=Oc.extend({initialize:function(s,l,u){if(typeof l=="number"&&(l=i({},u,{radius:l})),g(this,l),this._latlng=de(s),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(s){return this._mRadius=s,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var s=[this._radius,this._radiusY||this._radius];return new Oe(this._map.layerPointToLatLng(this._point.subtract(s)),this._map.layerPointToLatLng(this._point.add(s)))},setStyle:Cr.prototype.setStyle,_project:function(){var s=this._latlng.lng,l=this._latlng.lat,u=this._map,h=u.options.crs;if(h.distance===ft.distance){var p=Math.PI/180,_=this._mRadius/ft.R/p,w=u.project([l+_,s]),C=u.project([l-_,s]),I=w.add(C).divideBy(2),P=u.unproject(I).lat,Q=Math.acos((Math.cos(_*p)-Math.sin(l*p)*Math.sin(P*p))/(Math.cos(l*p)*Math.cos(P*p)))/p;(isNaN(Q)||Q===0)&&(Q=_/Math.cos(Math.PI/180*l)),this._point=I.subtract(u.getPixelOrigin()),this._radius=isNaN(Q)?0:I.x-u.project([P,s-Q]).x,this._radiusY=I.y-w.y}else{var me=h.unproject(h.project(this._latlng).subtract([this._mRadius,0]));this._point=u.latLngToLayerPoint(this._latlng),this._radius=this._point.x-u.latLngToLayerPoint(me).x}this._updateBounds()}});function yS(s,l,u){return new yf(s,l,u)}var nr=Cr.extend({options:{smoothFactor:1,noClip:!1},initialize:function(s,l){g(this,l),this._setLatLngs(s)},getLatLngs:function(){return this._latlngs},setLatLngs:function(s){return this._setLatLngs(s),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(s){for(var l=1/0,u=null,h=Na,p,_,w=0,C=this._parts.length;w<C;w++)for(var I=this._parts[w],P=1,Q=I.length;P<Q;P++){p=I[P-1],_=I[P];var me=h(s,p,_,!0);me<l&&(l=me,u=h(s,p,_))}return u&&(u.distance=Math.sqrt(l)),u},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return d0(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(s,l){return l=l||this._defaultShape(),s=de(s),l.push(s),this._bounds.extend(s),this.redraw()},_setLatLngs:function(s){this._bounds=new Oe,this._latlngs=this._convertLatLngs(s)},_defaultShape:function(){return Gn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(s){for(var l=[],u=Gn(s),h=0,p=s.length;h<p;h++)u?(l[h]=de(s[h]),this._bounds.extend(l[h])):l[h]=this._convertLatLngs(s[h]);return l},_project:function(){var s=new X;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,s),this._bounds.isValid()&&s.isValid()&&(this._rawPxBounds=s,this._updateBounds())},_updateBounds:function(){var s=this._clickTolerance(),l=new O(s,s);this._rawPxBounds&&(this._pxBounds=new X([this._rawPxBounds.min.subtract(l),this._rawPxBounds.max.add(l)]))},_projectLatlngs:function(s,l,u){var h=s[0]instanceof we,p=s.length,_,w;if(h){for(w=[],_=0;_<p;_++)w[_]=this._map.latLngToLayerPoint(s[_]),u.extend(w[_]);l.push(w)}else for(_=0;_<p;_++)this._projectLatlngs(s[_],l,u)},_clipPoints:function(){var s=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(s))){if(this.options.noClip){this._parts=this._rings;return}var l=this._parts,u,h,p,_,w,C,I;for(u=0,p=0,_=this._rings.length;u<_;u++)for(I=this._rings[u],h=0,w=I.length;h<w-1;h++)C=c0(I[h],I[h+1],s,h,!0),C&&(l[p]=l[p]||[],l[p].push(C[0]),(C[1]!==I[h+1]||h===w-2)&&(l[p].push(C[1]),p++))}},_simplifyPoints:function(){for(var s=this._parts,l=this.options.smoothFactor,u=0,h=s.length;u<h;u++)s[u]=s0(s[u],l)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(s,l){var u,h,p,_,w,C,I=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(s))return!1;for(u=0,_=this._parts.length;u<_;u++)for(C=this._parts[u],h=0,w=C.length,p=w-1;h<w;p=h++)if(!(!l&&h===0)&&a0(s,C[p],C[h])<=I)return!0;return!1}});function wS(s,l){return new nr(s,l)}nr._flat=u0;var ns=nr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return o0(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(s){var l=nr.prototype._convertLatLngs.call(this,s),u=l.length;return u>=2&&l[0]instanceof we&&l[0].equals(l[u-1])&&l.pop(),l},_setLatLngs:function(s){nr.prototype._setLatLngs.call(this,s),Gn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Gn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var s=this._renderer._bounds,l=this.options.weight,u=new O(l,l);if(s=new X(s.min.subtract(u),s.max.add(u)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(s))){if(this.options.noClip){this._parts=this._rings;return}for(var h=0,p=this._rings.length,_;h<p;h++)_=r0(this._rings[h],s,!0),_.length&&this._parts.push(_)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(s){var l=!1,u,h,p,_,w,C,I,P;if(!this._pxBounds||!this._pxBounds.contains(s))return!1;for(_=0,I=this._parts.length;_<I;_++)for(u=this._parts[_],w=0,P=u.length,C=P-1;w<P;C=w++)h=u[w],p=u[C],h.y>s.y!=p.y>s.y&&s.x<(p.x-h.x)*(s.y-h.y)/(p.y-h.y)+h.x&&(l=!l);return l||nr.prototype._containsPoint.call(this,s,!0)}});function bS(s,l){return new ns(s,l)}var ir=tr.extend({initialize:function(s,l){g(this,l),this._layers={},s&&this.addData(s)},addData:function(s){var l=M(s)?s:s.features,u,h,p;if(l){for(u=0,h=l.length;u<h;u++)p=l[u],(p.geometries||p.geometry||p.features||p.coordinates)&&this.addData(p);return this}var _=this.options;if(_.filter&&!_.filter(s))return this;var w=Ac(s,_);return w?(w.feature=Rc(s),w.defaultOptions=w.options,this.resetStyle(w),_.onEachFeature&&_.onEachFeature(s,w),this.addLayer(w)):this},resetStyle:function(s){return s===void 0?this.eachLayer(this.resetStyle,this):(s.options=i({},s.defaultOptions),this._setLayerStyle(s,this.options.style),this)},setStyle:function(s){return this.eachLayer(function(l){this._setLayerStyle(l,s)},this)},_setLayerStyle:function(s,l){s.setStyle&&(typeof l=="function"&&(l=l(s.feature)),s.setStyle(l))}});function Ac(s,l){var u=s.type==="Feature"?s.geometry:s,h=u?u.coordinates:null,p=[],_=l&&l.pointToLayer,w=l&&l.coordsToLatLng||wf,C,I,P,Q;if(!h&&!u)return null;switch(u.type){case"Point":return C=w(h),p0(_,s,C,l);case"MultiPoint":for(P=0,Q=h.length;P<Q;P++)C=w(h[P]),p.push(p0(_,s,C,l));return new tr(p);case"LineString":case"MultiLineString":return I=Pc(h,u.type==="LineString"?0:1,w),new nr(I,l);case"Polygon":case"MultiPolygon":return I=Pc(h,u.type==="Polygon"?1:2,w),new ns(I,l);case"GeometryCollection":for(P=0,Q=u.geometries.length;P<Q;P++){var me=Ac({geometry:u.geometries[P],type:"Feature",properties:s.properties},l);me&&p.push(me)}return new tr(p);case"FeatureCollection":for(P=0,Q=u.features.length;P<Q;P++){var Ae=Ac(u.features[P],l);Ae&&p.push(Ae)}return new tr(p);default:throw new Error("Invalid GeoJSON object.")}}function p0(s,l,u,h){return s?s(l,u):new Ic(u,h&&h.markersInheritOptions&&h)}function wf(s){return new we(s[1],s[0],s[2])}function Pc(s,l,u){for(var h=[],p=0,_=s.length,w;p<_;p++)w=l?Pc(s[p],l-1,u):(u||wf)(s[p]),h.push(w);return h}function bf(s,l){return s=de(s),s.alt!==void 0?[m(s.lng,l),m(s.lat,l),m(s.alt,l)]:[m(s.lng,l),m(s.lat,l)]}function Nc(s,l,u,h){for(var p=[],_=0,w=s.length;_<w;_++)p.push(l?Nc(s[_],Gn(s[_])?0:l-1,u,h):bf(s[_],h));return!l&&u&&p.length>0&&p.push(p[0].slice()),p}function is(s,l){return s.feature?i({},s.feature,{geometry:l}):Rc(l)}function Rc(s){return s.type==="Feature"||s.type==="FeatureCollection"?s:{type:"Feature",properties:{},geometry:s}}var Df={toGeoJSON:function(s){return is(this,{type:"Point",coordinates:bf(this.getLatLng(),s)})}};Ic.include(Df),yf.include(Df),Oc.include(Df),nr.include({toGeoJSON:function(s){var l=!Gn(this._latlngs),u=Nc(this._latlngs,l?1:0,!1,s);return is(this,{type:(l?"Multi":"")+"LineString",coordinates:u})}}),ns.include({toGeoJSON:function(s){var l=!Gn(this._latlngs),u=l&&!Gn(this._latlngs[0]),h=Nc(this._latlngs,u?2:l?1:0,!0,s);return l||(h=[h]),is(this,{type:(u?"Multi":"")+"Polygon",coordinates:h})}}),es.include({toMultiPoint:function(s){var l=[];return this.eachLayer(function(u){l.push(u.toGeoJSON(s).geometry.coordinates)}),is(this,{type:"MultiPoint",coordinates:l})},toGeoJSON:function(s){var l=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(l==="MultiPoint")return this.toMultiPoint(s);var u=l==="GeometryCollection",h=[];return this.eachLayer(function(p){if(p.toGeoJSON){var _=p.toGeoJSON(s);if(u)h.push(_.geometry);else{var w=Rc(_);w.type==="FeatureCollection"?h.push.apply(h,w.features):h.push(w)}}}),u?is(this,{geometries:h,type:"GeometryCollection"}):{type:"FeatureCollection",features:h}}});function m0(s,l){return new ir(s,l)}var DS=m0,kc=si.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(s,l,u){this._url=s,this._bounds=De(l),g(this,u)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Ie(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){_t(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(s){return this.options.opacity=s,this._image&&this._updateOpacity(),this},setStyle:function(s){return s.opacity&&this.setOpacity(s.opacity),this},bringToFront:function(){return this._map&&Ko(this._image),this},bringToBack:function(){return this._map&&Xo(this._image),this},setUrl:function(s){return this._url=s,this._image&&(this._image.src=s),this},setBounds:function(s){return this._bounds=De(s),this._map&&this._reset(),this},getEvents:function(){var s={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var s=this._url.tagName==="IMG",l=this._image=s?this._url:Ue("img");if(Ie(l,"leaflet-image-layer"),this._zoomAnimated&&Ie(l,"leaflet-zoom-animated"),this.options.className&&Ie(l,this.options.className),l.onselectstart=f,l.onmousemove=f,l.onload=r(this.fire,this,"load"),l.onerror=r(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(l.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),s){this._url=l.src;return}l.src=this._url,l.alt=this.options.alt},_animateZoom:function(s){var l=this._map.getZoomScale(s.zoom),u=this._map._latLngBoundsToNewLayerBounds(this._bounds,s.zoom,s.center).min;no(this._image,u,l)},_reset:function(){var s=this._image,l=new X(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),u=l.getSize();Mt(s,l.min),s.style.width=u.x+"px",s.style.height=u.y+"px"},_updateOpacity:function(){zn(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var s=this.options.errorOverlayUrl;s&&this._url!==s&&(this._url=s,this._image.src=s)},getCenter:function(){return this._bounds.getCenter()}}),CS=function(s,l,u){return new kc(s,l,u)},g0=kc.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var s=this._url.tagName==="VIDEO",l=this._image=s?this._url:Ue("video");if(Ie(l,"leaflet-image-layer"),this._zoomAnimated&&Ie(l,"leaflet-zoom-animated"),this.options.className&&Ie(l,this.options.className),l.onselectstart=f,l.onmousemove=f,l.onloadeddata=r(this.fire,this,"load"),s){for(var u=l.getElementsByTagName("source"),h=[],p=0;p<u.length;p++)h.push(u[p].src);this._url=u.length>0?h:[l.src];return}M(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(l.style,"objectFit")&&(l.style.objectFit="fill"),l.autoplay=!!this.options.autoplay,l.loop=!!this.options.loop,l.muted=!!this.options.muted,l.playsInline=!!this.options.playsInline;for(var _=0;_<this._url.length;_++){var w=Ue("source");w.src=this._url[_],l.appendChild(w)}}});function ES(s,l,u){return new g0(s,l,u)}var _0=kc.extend({_initImage:function(){var s=this._image=this._url;Ie(s,"leaflet-image-layer"),this._zoomAnimated&&Ie(s,"leaflet-zoom-animated"),this.options.className&&Ie(s,this.options.className),s.onselectstart=f,s.onmousemove=f}});function TS(s,l,u){return new _0(s,l,u)}var Mi=si.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(s,l){s&&(s instanceof we||M(s))?(this._latlng=de(s),g(this,l)):(g(this,s),this._source=l),this.options.content&&(this._content=this.options.content)},openOn:function(s){return s=arguments.length?s:this._source._map,s.hasLayer(this)||s.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(s){return this._map?this.close():(arguments.length?this._source=s:s=this._source,this._prepareOpen(),this.openOn(s._map)),this},onAdd:function(s){this._zoomAnimated=s._zoomAnimated,this._container||this._initLayout(),s._fadeAnimated&&zn(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),s._fadeAnimated&&zn(this._container,1),this.bringToFront(),this.options.interactive&&(Ie(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(s){s._fadeAnimated?(zn(this._container,0),this._removeTimeout=setTimeout(r(_t,void 0,this._container),200)):_t(this._container),this.options.interactive&&(Tt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(s){return this._latlng=de(s),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(s){return this._content=s,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var s={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Ko(this._container),this},bringToBack:function(){return this._map&&Xo(this._container),this},_prepareOpen:function(s){var l=this._source;if(!l._map)return!1;if(l instanceof tr){l=null;var u=this._source._layers;for(var h in u)if(u[h]._map){l=u[h];break}if(!l)return!1;this._source=l}if(!s)if(l.getCenter)s=l.getCenter();else if(l.getLatLng)s=l.getLatLng();else if(l.getBounds)s=l.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(s),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var s=this._contentNode,l=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof l=="string")s.innerHTML=l;else{for(;s.hasChildNodes();)s.removeChild(s.firstChild);s.appendChild(l)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var s=this._map.latLngToLayerPoint(this._latlng),l=k(this.options.offset),u=this._getAnchor();this._zoomAnimated?Mt(this._container,s.add(u)):l=l.add(s).add(u);var h=this._containerBottom=-l.y,p=this._containerLeft=-Math.round(this._containerWidth/2)+l.x;this._container.style.bottom=h+"px",this._container.style.left=p+"px"}},_getAnchor:function(){return[0,0]}});ke.include({_initOverlay:function(s,l,u,h){var p=l;return p instanceof s||(p=new s(h).setContent(l)),u&&p.setLatLng(u),p}}),si.include({_initOverlay:function(s,l,u,h){var p=u;return p instanceof s?(g(p,h),p._source=this):(p=l&&!h?l:new s(h,this),p.setContent(u)),p}});var Fc=Mi.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(s){return s=arguments.length?s:this._source._map,!s.hasLayer(this)&&s._popup&&s._popup.options.autoClose&&s.removeLayer(s._popup),s._popup=this,Mi.prototype.openOn.call(this,s)},onAdd:function(s){Mi.prototype.onAdd.call(this,s),s.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Cr||this._source.on("preclick",ro))},onRemove:function(s){Mi.prototype.onRemove.call(this,s),s.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Cr||this._source.off("preclick",ro))},getEvents:function(){var s=Mi.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(s.preclick=this.close),this.options.keepInView&&(s.moveend=this._adjustPan),s},_initLayout:function(){var s="leaflet-popup",l=this._container=Ue("div",s+" "+(this.options.className||"")+" leaflet-zoom-animated"),u=this._wrapper=Ue("div",s+"-content-wrapper",l);if(this._contentNode=Ue("div",s+"-content",u),Aa(l),df(this._contentNode),Se(l,"contextmenu",ro),this._tipContainer=Ue("div",s+"-tip-container",l),this._tip=Ue("div",s+"-tip",this._tipContainer),this.options.closeButton){var h=this._closeButton=Ue("a",s+"-close-button",l);h.setAttribute("role","button"),h.setAttribute("aria-label","Close popup"),h.href="#close",h.innerHTML='<span aria-hidden="true">&#215;</span>',Se(h,"click",function(p){nn(p),this.close()},this)}},_updateLayout:function(){var s=this._contentNode,l=s.style;l.width="",l.whiteSpace="nowrap";var u=s.offsetWidth;u=Math.min(u,this.options.maxWidth),u=Math.max(u,this.options.minWidth),l.width=u+1+"px",l.whiteSpace="",l.height="";var h=s.offsetHeight,p=this.options.maxHeight,_="leaflet-popup-scrolled";p&&h>p?(l.height=p+"px",Ie(s,_)):Tt(s,_),this._containerWidth=this._container.offsetWidth},_animateZoom:function(s){var l=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center),u=this._getAnchor();Mt(this._container,l.add(u))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var s=this._map,l=parseInt(Ma(this._container,"marginBottom"),10)||0,u=this._container.offsetHeight+l,h=this._containerWidth,p=new O(this._containerLeft,-u-this._containerBottom);p._add(io(this._container));var _=s.layerPointToContainerPoint(p),w=k(this.options.autoPanPadding),C=k(this.options.autoPanPaddingTopLeft||w),I=k(this.options.autoPanPaddingBottomRight||w),P=s.getSize(),Q=0,me=0;_.x+h+I.x>P.x&&(Q=_.x+h-P.x+I.x),_.x-Q-C.x<0&&(Q=_.x-C.x),_.y+u+I.y>P.y&&(me=_.y+u-P.y+I.y),_.y-me-C.y<0&&(me=_.y-C.y),(Q||me)&&(this.options.keepInView&&(this._autopanning=!0),s.fire("autopanstart").panBy([Q,me]))}},_getAnchor:function(){return k(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),SS=function(s,l){return new Fc(s,l)};ke.mergeOptions({closePopupOnClick:!0}),ke.include({openPopup:function(s,l,u){return this._initOverlay(Fc,s,l,u).openOn(this),this},closePopup:function(s){return s=arguments.length?s:this._popup,s&&s.close(),this}}),si.include({bindPopup:function(s,l){return this._popup=this._initOverlay(Fc,this._popup,s,l),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(s){return this._popup&&(this instanceof tr||(this._popup._source=this),this._popup._prepareOpen(s||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(s){return this._popup&&this._popup.setContent(s),this},getPopup:function(){return this._popup},_openPopup:function(s){if(!(!this._popup||!this._map)){oo(s);var l=s.layer||s.target;if(this._popup._source===l&&!(l instanceof Cr)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(s.latlng);return}this._popup._source=l,this.openPopup(s.latlng)}},_movePopup:function(s){this._popup.setLatLng(s.latlng)},_onKeyPress:function(s){s.originalEvent.keyCode===13&&this._openPopup(s)}});var Lc=Mi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(s){Mi.prototype.onAdd.call(this,s),this.setOpacity(this.options.opacity),s.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(s){Mi.prototype.onRemove.call(this,s),s.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var s=Mi.prototype.getEvents.call(this);return this.options.permanent||(s.preclick=this.close),s},_initLayout:function(){var s="leaflet-tooltip",l=s+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Ue("div",l),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+a(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(s){var l,u,h=this._map,p=this._container,_=h.latLngToContainerPoint(h.getCenter()),w=h.layerPointToContainerPoint(s),C=this.options.direction,I=p.offsetWidth,P=p.offsetHeight,Q=k(this.options.offset),me=this._getAnchor();C==="top"?(l=I/2,u=P):C==="bottom"?(l=I/2,u=0):C==="center"?(l=I/2,u=P/2):C==="right"?(l=0,u=P/2):C==="left"?(l=I,u=P/2):w.x<_.x?(C="right",l=0,u=P/2):(C="left",l=I+(Q.x+me.x)*2,u=P/2),s=s.subtract(k(l,u,!0)).add(Q).add(me),Tt(p,"leaflet-tooltip-right"),Tt(p,"leaflet-tooltip-left"),Tt(p,"leaflet-tooltip-top"),Tt(p,"leaflet-tooltip-bottom"),Ie(p,"leaflet-tooltip-"+C),Mt(p,s)},_updatePosition:function(){var s=this._map.latLngToLayerPoint(this._latlng);this._setPosition(s)},setOpacity:function(s){this.options.opacity=s,this._container&&zn(this._container,s)},_animateZoom:function(s){var l=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center);this._setPosition(l)},_getAnchor:function(){return k(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),MS=function(s,l){return new Lc(s,l)};ke.include({openTooltip:function(s,l,u){return this._initOverlay(Lc,s,l,u).openOn(this),this},closeTooltip:function(s){return s.close(),this}}),si.include({bindTooltip:function(s,l){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Lc,this._tooltip,s,l),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(s){if(!(!s&&this._tooltipHandlersAdded)){var l=s?"off":"on",u={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?u.add=this._openTooltip:(u.mouseover=this._openTooltip,u.mouseout=this.closeTooltip,u.click=this._openTooltip,this._map?this._addFocusListeners():u.add=this._addFocusListeners),this._tooltip.options.sticky&&(u.mousemove=this._moveTooltip),this[l](u),this._tooltipHandlersAdded=!s}},openTooltip:function(s){return this._tooltip&&(this instanceof tr||(this._tooltip._source=this),this._tooltip._prepareOpen(s)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(s){return this._tooltip&&this._tooltip.setContent(s),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(s){var l=typeof s.getElement=="function"&&s.getElement();l&&(Se(l,"focus",function(){this._tooltip._source=s,this.openTooltip()},this),Se(l,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(s){var l=typeof s.getElement=="function"&&s.getElement();l&&l.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(s){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var l=this;this._map.once("moveend",function(){l._openOnceFlag=!1,l._openTooltip(s)});return}this._tooltip._source=s.layer||s.target,this.openTooltip(this._tooltip.options.sticky?s.latlng:void 0)}},_moveTooltip:function(s){var l=s.latlng,u,h;this._tooltip.options.sticky&&s.originalEvent&&(u=this._map.mouseEventToContainerPoint(s.originalEvent),h=this._map.containerPointToLayerPoint(u),l=this._map.layerPointToLatLng(h)),this._tooltip.setLatLng(l)}});var v0=ts.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(s){var l=s&&s.tagName==="DIV"?s:document.createElement("div"),u=this.options;if(u.html instanceof Element?(Cc(l),l.appendChild(u.html)):l.innerHTML=u.html!==!1?u.html:"",u.bgPos){var h=k(u.bgPos);l.style.backgroundPosition=-h.x+"px "+-h.y+"px"}return this._setIconStyles(l,"icon"),l},createShadow:function(){return null}});function xS(s){return new v0(s)}ts.Default=Ra;var ka=si.extend({options:{tileSize:256,opacity:1,updateWhenIdle:oe.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(s){g(this,s)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(s){s._addZoomLimit(this)},onRemove:function(s){this._removeAllTiles(),_t(this._container),s._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Ko(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Xo(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(s){return this.options.opacity=s,this._updateOpacity(),this},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var s=this._clampZoom(this._map.getZoom());s!==this._tileZoom&&(this._tileZoom=s,this._updateLevels()),this._update()}return this},getEvents:function(){var s={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=c(this._onMoveEnd,this.options.updateInterval,this)),s.move=this._onMove),this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},createTile:function(){return document.createElement("div")},getTileSize:function(){var s=this.options.tileSize;return s instanceof O?s:new O(s,s)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(s){for(var l=this.getPane().children,u=-s(-1/0,1/0),h=0,p=l.length,_;h<p;h++)_=l[h].style.zIndex,l[h]!==this._container&&_&&(u=s(u,+_));isFinite(u)&&(this.options.zIndex=u+s(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!oe.ielt9){zn(this._container,this.options.opacity);var s=+new Date,l=!1,u=!1;for(var h in this._tiles){var p=this._tiles[h];if(!(!p.current||!p.loaded)){var _=Math.min(1,(s-p.loaded)/200);zn(p.el,_),_<1?l=!0:(p.active?u=!0:this._onOpaqueTile(p),p.active=!0)}}u&&!this._noPrune&&this._pruneTiles(),l&&(pe(this._fadeFrame),this._fadeFrame=H(this._updateOpacity,this))}},_onOpaqueTile:f,_initContainer:function(){this._container||(this._container=Ue("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var s=this._tileZoom,l=this.options.maxZoom;if(s!==void 0){for(var u in this._levels)u=Number(u),this._levels[u].el.children.length||u===s?(this._levels[u].el.style.zIndex=l-Math.abs(s-u),this._onUpdateLevel(u)):(_t(this._levels[u].el),this._removeTilesAtZoom(u),this._onRemoveLevel(u),delete this._levels[u]);var h=this._levels[s],p=this._map;return h||(h=this._levels[s]={},h.el=Ue("div","leaflet-tile-container leaflet-zoom-animated",this._container),h.el.style.zIndex=l,h.origin=p.project(p.unproject(p.getPixelOrigin()),s).round(),h.zoom=s,this._setZoomTransform(h,p.getCenter(),p.getZoom()),f(h.el.offsetWidth),this._onCreateLevel(h)),this._level=h,h}},_onUpdateLevel:f,_onRemoveLevel:f,_onCreateLevel:f,_pruneTiles:function(){if(this._map){var s,l,u=this._map.getZoom();if(u>this.options.maxZoom||u<this.options.minZoom){this._removeAllTiles();return}for(s in this._tiles)l=this._tiles[s],l.retain=l.current;for(s in this._tiles)if(l=this._tiles[s],l.current&&!l.active){var h=l.coords;this._retainParent(h.x,h.y,h.z,h.z-5)||this._retainChildren(h.x,h.y,h.z,h.z+2)}for(s in this._tiles)this._tiles[s].retain||this._removeTile(s)}},_removeTilesAtZoom:function(s){for(var l in this._tiles)this._tiles[l].coords.z===s&&this._removeTile(l)},_removeAllTiles:function(){for(var s in this._tiles)this._removeTile(s)},_invalidateAll:function(){for(var s in this._levels)_t(this._levels[s].el),this._onRemoveLevel(Number(s)),delete this._levels[s];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(s,l,u,h){var p=Math.floor(s/2),_=Math.floor(l/2),w=u-1,C=new O(+p,+_);C.z=+w;var I=this._tileCoordsToKey(C),P=this._tiles[I];return P&&P.active?(P.retain=!0,!0):(P&&P.loaded&&(P.retain=!0),w>h?this._retainParent(p,_,w,h):!1)},_retainChildren:function(s,l,u,h){for(var p=2*s;p<2*s+2;p++)for(var _=2*l;_<2*l+2;_++){var w=new O(p,_);w.z=u+1;var C=this._tileCoordsToKey(w),I=this._tiles[C];if(I&&I.active){I.retain=!0;continue}else I&&I.loaded&&(I.retain=!0);u+1<h&&this._retainChildren(p,_,u+1,h)}},_resetView:function(s){var l=s&&(s.pinch||s.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),l,l)},_animateZoom:function(s){this._setView(s.center,s.zoom,!0,s.noUpdate)},_clampZoom:function(s){var l=this.options;return l.minNativeZoom!==void 0&&s<l.minNativeZoom?l.minNativeZoom:l.maxNativeZoom!==void 0&&l.maxNativeZoom<s?l.maxNativeZoom:s},_setView:function(s,l,u,h){var p=Math.round(l);this.options.maxZoom!==void 0&&p>this.options.maxZoom||this.options.minZoom!==void 0&&p<this.options.minZoom?p=void 0:p=this._clampZoom(p);var _=this.options.updateWhenZooming&&p!==this._tileZoom;(!h||_)&&(this._tileZoom=p,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),p!==void 0&&this._update(s),u||this._pruneTiles(),this._noPrune=!!u),this._setZoomTransforms(s,l)},_setZoomTransforms:function(s,l){for(var u in this._levels)this._setZoomTransform(this._levels[u],s,l)},_setZoomTransform:function(s,l,u){var h=this._map.getZoomScale(u,s.zoom),p=s.origin.multiplyBy(h).subtract(this._map._getNewPixelOrigin(l,u)).round();oe.any3d?no(s.el,p,h):Mt(s.el,p)},_resetGrid:function(){var s=this._map,l=s.options.crs,u=this._tileSize=this.getTileSize(),h=this._tileZoom,p=this._map.getPixelWorldBounds(this._tileZoom);p&&(this._globalTileRange=this._pxBoundsToTileRange(p)),this._wrapX=l.wrapLng&&!this.options.noWrap&&[Math.floor(s.project([0,l.wrapLng[0]],h).x/u.x),Math.ceil(s.project([0,l.wrapLng[1]],h).x/u.y)],this._wrapY=l.wrapLat&&!this.options.noWrap&&[Math.floor(s.project([l.wrapLat[0],0],h).y/u.x),Math.ceil(s.project([l.wrapLat[1],0],h).y/u.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(s){var l=this._map,u=l._animatingZoom?Math.max(l._animateToZoom,l.getZoom()):l.getZoom(),h=l.getZoomScale(u,this._tileZoom),p=l.project(s,this._tileZoom).floor(),_=l.getSize().divideBy(h*2);return new X(p.subtract(_),p.add(_))},_update:function(s){var l=this._map;if(l){var u=this._clampZoom(l.getZoom());if(s===void 0&&(s=l.getCenter()),this._tileZoom!==void 0){var h=this._getTiledPixelBounds(s),p=this._pxBoundsToTileRange(h),_=p.getCenter(),w=[],C=this.options.keepBuffer,I=new X(p.getBottomLeft().subtract([C,-C]),p.getTopRight().add([C,-C]));if(!(isFinite(p.min.x)&&isFinite(p.min.y)&&isFinite(p.max.x)&&isFinite(p.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var P in this._tiles){var Q=this._tiles[P].coords;(Q.z!==this._tileZoom||!I.contains(new O(Q.x,Q.y)))&&(this._tiles[P].current=!1)}if(Math.abs(u-this._tileZoom)>1){this._setView(s,u);return}for(var me=p.min.y;me<=p.max.y;me++)for(var Ae=p.min.x;Ae<=p.max.x;Ae++){var yn=new O(Ae,me);if(yn.z=this._tileZoom,!!this._isValidTile(yn)){var Wt=this._tiles[this._tileCoordsToKey(yn)];Wt?Wt.current=!0:w.push(yn)}}if(w.sort(function(On,os){return On.distanceTo(_)-os.distanceTo(_)}),w.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Wn=document.createDocumentFragment();for(Ae=0;Ae<w.length;Ae++)this._addTile(w[Ae],Wn);this._level.el.appendChild(Wn)}}}},_isValidTile:function(s){var l=this._map.options.crs;if(!l.infinite){var u=this._globalTileRange;if(!l.wrapLng&&(s.x<u.min.x||s.x>u.max.x)||!l.wrapLat&&(s.y<u.min.y||s.y>u.max.y))return!1}if(!this.options.bounds)return!0;var h=this._tileCoordsToBounds(s);return De(this.options.bounds).overlaps(h)},_keyToBounds:function(s){return this._tileCoordsToBounds(this._keyToTileCoords(s))},_tileCoordsToNwSe:function(s){var l=this._map,u=this.getTileSize(),h=s.scaleBy(u),p=h.add(u),_=l.unproject(h,s.z),w=l.unproject(p,s.z);return[_,w]},_tileCoordsToBounds:function(s){var l=this._tileCoordsToNwSe(s),u=new Oe(l[0],l[1]);return this.options.noWrap||(u=this._map.wrapLatLngBounds(u)),u},_tileCoordsToKey:function(s){return s.x+":"+s.y+":"+s.z},_keyToTileCoords:function(s){var l=s.split(":"),u=new O(+l[0],+l[1]);return u.z=+l[2],u},_removeTile:function(s){var l=this._tiles[s];l&&(_t(l.el),delete this._tiles[s],this.fire("tileunload",{tile:l.el,coords:this._keyToTileCoords(s)}))},_initTile:function(s){Ie(s,"leaflet-tile");var l=this.getTileSize();s.style.width=l.x+"px",s.style.height=l.y+"px",s.onselectstart=f,s.onmousemove=f,oe.ielt9&&this.options.opacity<1&&zn(s,this.options.opacity)},_addTile:function(s,l){var u=this._getTilePos(s),h=this._tileCoordsToKey(s),p=this.createTile(this._wrapCoords(s),r(this._tileReady,this,s));this._initTile(p),this.createTile.length<2&&H(r(this._tileReady,this,s,null,p)),Mt(p,u),this._tiles[h]={el:p,coords:s,current:!0},l.appendChild(p),this.fire("tileloadstart",{tile:p,coords:s})},_tileReady:function(s,l,u){l&&this.fire("tileerror",{error:l,tile:u,coords:s});var h=this._tileCoordsToKey(s);u=this._tiles[h],u&&(u.loaded=+new Date,this._map._fadeAnimated?(zn(u.el,0),pe(this._fadeFrame),this._fadeFrame=H(this._updateOpacity,this)):(u.active=!0,this._pruneTiles()),l||(Ie(u.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:u.el,coords:s})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),oe.ielt9||!this._map._fadeAnimated?H(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(s){return s.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(s){var l=new O(this._wrapX?d(s.x,this._wrapX):s.x,this._wrapY?d(s.y,this._wrapY):s.y);return l.z=s.z,l},_pxBoundsToTileRange:function(s){var l=this.getTileSize();return new X(s.min.unscaleBy(l).floor(),s.max.unscaleBy(l).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var s in this._tiles)if(!this._tiles[s].loaded)return!1;return!0}});function IS(s){return new ka(s)}var rs=ka.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(s,l){this._url=s,l=g(this,l),l.detectRetina&&oe.retina&&l.maxZoom>0?(l.tileSize=Math.floor(l.tileSize/2),l.zoomReverse?(l.zoomOffset--,l.minZoom=Math.min(l.maxZoom,l.minZoom+1)):(l.zoomOffset++,l.maxZoom=Math.max(l.minZoom,l.maxZoom-1)),l.minZoom=Math.max(0,l.minZoom)):l.zoomReverse?l.minZoom=Math.min(l.maxZoom,l.minZoom):l.maxZoom=Math.max(l.minZoom,l.maxZoom),typeof l.subdomains=="string"&&(l.subdomains=l.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(s,l){return this._url===s&&l===void 0&&(l=!0),this._url=s,l||this.redraw(),this},createTile:function(s,l){var u=document.createElement("img");return Se(u,"load",r(this._tileOnLoad,this,l,u)),Se(u,"error",r(this._tileOnError,this,l,u)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(u.referrerPolicy=this.options.referrerPolicy),u.alt="",u.src=this.getTileUrl(s),u},getTileUrl:function(s){var l={r:oe.retina?"@2x":"",s:this._getSubdomain(s),x:s.x,y:s.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var u=this._globalTileRange.max.y-s.y;this.options.tms&&(l.y=u),l["-y"]=u}return E(this._url,i(l,this.options))},_tileOnLoad:function(s,l){oe.ielt9?setTimeout(r(s,this,null,l),0):s(null,l)},_tileOnError:function(s,l,u){var h=this.options.errorTileUrl;h&&l.getAttribute("src")!==h&&(l.src=h),s(u,l)},_onTileRemove:function(s){s.tile.onload=null},_getZoomForUrl:function(){var s=this._tileZoom,l=this.options.maxZoom,u=this.options.zoomReverse,h=this.options.zoomOffset;return u&&(s=l-s),s+h},_getSubdomain:function(s){var l=Math.abs(s.x+s.y)%this.options.subdomains.length;return this.options.subdomains[l]},_abortLoading:function(){var s,l;for(s in this._tiles)if(this._tiles[s].coords.z!==this._tileZoom&&(l=this._tiles[s].el,l.onload=f,l.onerror=f,!l.complete)){l.src=W;var u=this._tiles[s].coords;_t(l),delete this._tiles[s],this.fire("tileabort",{tile:l,coords:u})}},_removeTile:function(s){var l=this._tiles[s];if(l)return l.el.setAttribute("src",W),ka.prototype._removeTile.call(this,s)},_tileReady:function(s,l,u){if(!(!this._map||u&&u.getAttribute("src")===W))return ka.prototype._tileReady.call(this,s,l,u)}});function y0(s,l){return new rs(s,l)}var w0=rs.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(s,l){this._url=s;var u=i({},this.defaultWmsParams);for(var h in l)h in this.options||(u[h]=l[h]);l=g(this,l);var p=l.detectRetina&&oe.retina?2:1,_=this.getTileSize();u.width=_.x*p,u.height=_.y*p,this.wmsParams=u},onAdd:function(s){this._crs=this.options.crs||s.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var l=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[l]=this._crs.code,rs.prototype.onAdd.call(this,s)},getTileUrl:function(s){var l=this._tileCoordsToNwSe(s),u=this._crs,h=Ee(u.project(l[0]),u.project(l[1])),p=h.min,_=h.max,w=(this._wmsVersion>=1.3&&this._crs===h0?[p.y,p.x,_.y,_.x]:[p.x,p.y,_.x,_.y]).join(","),C=rs.prototype.getTileUrl.call(this,s);return C+b(this.wmsParams,C,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+w},setParams:function(s,l){return i(this.wmsParams,s),l||this.redraw(),this}});function OS(s,l){return new w0(s,l)}rs.WMS=w0,y0.wms=OS;var rr=si.extend({options:{padding:.1},initialize:function(s){g(this,s),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Ie(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var s={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(s.zoomanim=this._onAnimZoom),s},_onAnimZoom:function(s){this._updateTransform(s.center,s.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(s,l){var u=this._map.getZoomScale(l,this._zoom),h=this._map.getSize().multiplyBy(.5+this.options.padding),p=this._map.project(this._center,l),_=h.multiplyBy(-u).add(p).subtract(this._map._getNewPixelOrigin(s,l));oe.any3d?no(this._container,_,u):Mt(this._container,_)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var s in this._layers)this._layers[s]._reset()},_onZoomEnd:function(){for(var s in this._layers)this._layers[s]._project()},_updatePaths:function(){for(var s in this._layers)this._layers[s]._update()},_update:function(){var s=this.options.padding,l=this._map.getSize(),u=this._map.containerPointToLayerPoint(l.multiplyBy(-s)).round();this._bounds=new X(u,u.add(l.multiplyBy(1+s*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),b0=rr.extend({options:{tolerance:0},getEvents:function(){var s=rr.prototype.getEvents.call(this);return s.viewprereset=this._onViewPreReset,s},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){rr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var s=this._container=document.createElement("canvas");Se(s,"mousemove",this._onMouseMove,this),Se(s,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Se(s,"mouseout",this._handleMouseOut,this),s._leaflet_disable_events=!0,this._ctx=s.getContext("2d")},_destroyContainer:function(){pe(this._redrawRequest),delete this._ctx,_t(this._container),it(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var s;this._redrawBounds=null;for(var l in this._layers)s=this._layers[l],s._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){rr.prototype._update.call(this);var s=this._bounds,l=this._container,u=s.getSize(),h=oe.retina?2:1;Mt(l,s.min),l.width=h*u.x,l.height=h*u.y,l.style.width=u.x+"px",l.style.height=u.y+"px",oe.retina&&this._ctx.scale(2,2),this._ctx.translate(-s.min.x,-s.min.y),this.fire("update")}},_reset:function(){rr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(s){this._updateDashArray(s),this._layers[a(s)]=s;var l=s._order={layer:s,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=l),this._drawLast=l,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(s){this._requestRedraw(s)},_removePath:function(s){var l=s._order,u=l.next,h=l.prev;u?u.prev=h:this._drawLast=h,h?h.next=u:this._drawFirst=u,delete s._order,delete this._layers[a(s)],this._requestRedraw(s)},_updatePath:function(s){this._extendRedrawBounds(s),s._project(),s._update(),this._requestRedraw(s)},_updateStyle:function(s){this._updateDashArray(s),this._requestRedraw(s)},_updateDashArray:function(s){if(typeof s.options.dashArray=="string"){var l=s.options.dashArray.split(/[, ]+/),u=[],h,p;for(p=0;p<l.length;p++){if(h=Number(l[p]),isNaN(h))return;u.push(h)}s.options._dashArray=u}else s.options._dashArray=s.options.dashArray},_requestRedraw:function(s){this._map&&(this._extendRedrawBounds(s),this._redrawRequest=this._redrawRequest||H(this._redraw,this))},_extendRedrawBounds:function(s){if(s._pxBounds){var l=(s.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new X,this._redrawBounds.extend(s._pxBounds.min.subtract([l,l])),this._redrawBounds.extend(s._pxBounds.max.add([l,l]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var s=this._redrawBounds;if(s){var l=s.getSize();this._ctx.clearRect(s.min.x,s.min.y,l.x,l.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var s,l=this._redrawBounds;if(this._ctx.save(),l){var u=l.getSize();this._ctx.beginPath(),this._ctx.rect(l.min.x,l.min.y,u.x,u.y),this._ctx.clip()}this._drawing=!0;for(var h=this._drawFirst;h;h=h.next)s=h.layer,(!l||s._pxBounds&&s._pxBounds.intersects(l))&&s._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(s,l){if(this._drawing){var u,h,p,_,w=s._parts,C=w.length,I=this._ctx;if(C){for(I.beginPath(),u=0;u<C;u++){for(h=0,p=w[u].length;h<p;h++)_=w[u][h],I[h?"lineTo":"moveTo"](_.x,_.y);l&&I.closePath()}this._fillStroke(I,s)}}},_updateCircle:function(s){if(!(!this._drawing||s._empty())){var l=s._point,u=this._ctx,h=Math.max(Math.round(s._radius),1),p=(Math.max(Math.round(s._radiusY),1)||h)/h;p!==1&&(u.save(),u.scale(1,p)),u.beginPath(),u.arc(l.x,l.y/p,h,0,Math.PI*2,!1),p!==1&&u.restore(),this._fillStroke(u,s)}},_fillStroke:function(s,l){var u=l.options;u.fill&&(s.globalAlpha=u.fillOpacity,s.fillStyle=u.fillColor||u.color,s.fill(u.fillRule||"evenodd")),u.stroke&&u.weight!==0&&(s.setLineDash&&s.setLineDash(l.options&&l.options._dashArray||[]),s.globalAlpha=u.opacity,s.lineWidth=u.weight,s.strokeStyle=u.color,s.lineCap=u.lineCap,s.lineJoin=u.lineJoin,s.stroke())},_onClick:function(s){for(var l=this._map.mouseEventToLayerPoint(s),u,h,p=this._drawFirst;p;p=p.next)u=p.layer,u.options.interactive&&u._containsPoint(l)&&(!(s.type==="click"||s.type==="preclick")||!this._map._draggableMoved(u))&&(h=u);this._fireEvent(h?[h]:!1,s)},_onMouseMove:function(s){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var l=this._map.mouseEventToLayerPoint(s);this._handleMouseHover(s,l)}},_handleMouseOut:function(s){var l=this._hoveredLayer;l&&(Tt(this._container,"leaflet-interactive"),this._fireEvent([l],s,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(s,l){if(!this._mouseHoverThrottled){for(var u,h,p=this._drawFirst;p;p=p.next)u=p.layer,u.options.interactive&&u._containsPoint(l)&&(h=u);h!==this._hoveredLayer&&(this._handleMouseOut(s),h&&(Ie(this._container,"leaflet-interactive"),this._fireEvent([h],s,"mouseover"),this._hoveredLayer=h)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,s),this._mouseHoverThrottled=!0,setTimeout(r(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(s,l,u){this._map._fireDOMEvent(l,u||l.type,s)},_bringToFront:function(s){var l=s._order;if(l){var u=l.next,h=l.prev;if(u)u.prev=h;else return;h?h.next=u:u&&(this._drawFirst=u),l.prev=this._drawLast,this._drawLast.next=l,l.next=null,this._drawLast=l,this._requestRedraw(s)}},_bringToBack:function(s){var l=s._order;if(l){var u=l.next,h=l.prev;if(h)h.next=u;else return;u?u.prev=h:h&&(this._drawLast=h),l.prev=null,l.next=this._drawFirst,this._drawFirst.prev=l,this._drawFirst=l,this._requestRedraw(s)}}});function D0(s){return oe.canvas?new b0(s):null}var Fa=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(s){return document.createElement("<lvml:"+s+' class="lvml">')}}catch{}return function(s){return document.createElement("<"+s+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),AS={_initContainer:function(){this._container=Ue("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(rr.prototype._update.call(this),this.fire("update"))},_initPath:function(s){var l=s._container=Fa("shape");Ie(l,"leaflet-vml-shape "+(this.options.className||"")),l.coordsize="1 1",s._path=Fa("path"),l.appendChild(s._path),this._updateStyle(s),this._layers[a(s)]=s},_addPath:function(s){var l=s._container;this._container.appendChild(l),s.options.interactive&&s.addInteractiveTarget(l)},_removePath:function(s){var l=s._container;_t(l),s.removeInteractiveTarget(l),delete this._layers[a(s)]},_updateStyle:function(s){var l=s._stroke,u=s._fill,h=s.options,p=s._container;p.stroked=!!h.stroke,p.filled=!!h.fill,h.stroke?(l||(l=s._stroke=Fa("stroke")),p.appendChild(l),l.weight=h.weight+"px",l.color=h.color,l.opacity=h.opacity,h.dashArray?l.dashStyle=M(h.dashArray)?h.dashArray.join(" "):h.dashArray.replace(/( *, *)/g," "):l.dashStyle="",l.endcap=h.lineCap.replace("butt","flat"),l.joinstyle=h.lineJoin):l&&(p.removeChild(l),s._stroke=null),h.fill?(u||(u=s._fill=Fa("fill")),p.appendChild(u),u.color=h.fillColor||h.color,u.opacity=h.fillOpacity):u&&(p.removeChild(u),s._fill=null)},_updateCircle:function(s){var l=s._point.round(),u=Math.round(s._radius),h=Math.round(s._radiusY||u);this._setPath(s,s._empty()?"M0 0":"AL "+l.x+","+l.y+" "+u+","+h+" 0,"+65535*360)},_setPath:function(s,l){s._path.v=l},_bringToFront:function(s){Ko(s._container)},_bringToBack:function(s){Xo(s._container)}},Bc=oe.vml?Fa:er,La=rr.extend({_initContainer:function(){this._container=Bc("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Bc("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){_t(this._container),it(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){rr.prototype._update.call(this);var s=this._bounds,l=s.getSize(),u=this._container;(!this._svgSize||!this._svgSize.equals(l))&&(this._svgSize=l,u.setAttribute("width",l.x),u.setAttribute("height",l.y)),Mt(u,s.min),u.setAttribute("viewBox",[s.min.x,s.min.y,l.x,l.y].join(" ")),this.fire("update")}},_initPath:function(s){var l=s._path=Bc("path");s.options.className&&Ie(l,s.options.className),s.options.interactive&&Ie(l,"leaflet-interactive"),this._updateStyle(s),this._layers[a(s)]=s},_addPath:function(s){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(s._path),s.addInteractiveTarget(s._path)},_removePath:function(s){_t(s._path),s.removeInteractiveTarget(s._path),delete this._layers[a(s)]},_updatePath:function(s){s._project(),s._update()},_updateStyle:function(s){var l=s._path,u=s.options;l&&(u.stroke?(l.setAttribute("stroke",u.color),l.setAttribute("stroke-opacity",u.opacity),l.setAttribute("stroke-width",u.weight),l.setAttribute("stroke-linecap",u.lineCap),l.setAttribute("stroke-linejoin",u.lineJoin),u.dashArray?l.setAttribute("stroke-dasharray",u.dashArray):l.removeAttribute("stroke-dasharray"),u.dashOffset?l.setAttribute("stroke-dashoffset",u.dashOffset):l.removeAttribute("stroke-dashoffset")):l.setAttribute("stroke","none"),u.fill?(l.setAttribute("fill",u.fillColor||u.color),l.setAttribute("fill-opacity",u.fillOpacity),l.setAttribute("fill-rule",u.fillRule||"evenodd")):l.setAttribute("fill","none"))},_updatePoly:function(s,l){this._setPath(s,ya(s._parts,l))},_updateCircle:function(s){var l=s._point,u=Math.max(Math.round(s._radius),1),h=Math.max(Math.round(s._radiusY),1)||u,p="a"+u+","+h+" 0 1,0 ",_=s._empty()?"M0 0":"M"+(l.x-u)+","+l.y+p+u*2+",0 "+p+-u*2+",0 ";this._setPath(s,_)},_setPath:function(s,l){s._path.setAttribute("d",l)},_bringToFront:function(s){Ko(s._path)},_bringToBack:function(s){Xo(s._path)}});oe.vml&&La.include(AS);function C0(s){return oe.svg||oe.vml?new La(s):null}ke.include({getRenderer:function(s){var l=s.options.renderer||this._getPaneRenderer(s.options.pane)||this.options.renderer||this._renderer;return l||(l=this._renderer=this._createRenderer()),this.hasLayer(l)||this.addLayer(l),l},_getPaneRenderer:function(s){if(s==="overlayPane"||s===void 0)return!1;var l=this._paneRenderers[s];return l===void 0&&(l=this._createRenderer({pane:s}),this._paneRenderers[s]=l),l},_createRenderer:function(s){return this.options.preferCanvas&&D0(s)||C0(s)}});var E0=ns.extend({initialize:function(s,l){ns.prototype.initialize.call(this,this._boundsToLatLngs(s),l)},setBounds:function(s){return this.setLatLngs(this._boundsToLatLngs(s))},_boundsToLatLngs:function(s){return s=De(s),[s.getSouthWest(),s.getNorthWest(),s.getNorthEast(),s.getSouthEast()]}});function PS(s,l){return new E0(s,l)}La.create=Bc,La.pointsToPath=ya,ir.geometryToLayer=Ac,ir.coordsToLatLng=wf,ir.coordsToLatLngs=Pc,ir.latLngToCoords=bf,ir.latLngsToCoords=Nc,ir.getFeature=is,ir.asFeature=Rc,ke.mergeOptions({boxZoom:!0});var T0=Si.extend({initialize:function(s){this._map=s,this._container=s._container,this._pane=s._panes.overlayPane,this._resetStateTimeout=0,s.on("unload",this._destroy,this)},addHooks:function(){Se(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){it(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){_t(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(s){if(!s.shiftKey||s.which!==1&&s.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),xa(),nf(),this._startPoint=this._map.mouseEventToContainerPoint(s),Se(document,{contextmenu:oo,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(s){this._moved||(this._moved=!0,this._box=Ue("div","leaflet-zoom-box",this._container),Ie(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(s);var l=new X(this._point,this._startPoint),u=l.getSize();Mt(this._box,l.min),this._box.style.width=u.x+"px",this._box.style.height=u.y+"px"},_finish:function(){this._moved&&(_t(this._box),Tt(this._container,"leaflet-crosshair")),Ia(),rf(),it(document,{contextmenu:oo,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(s){if(!(s.which!==1&&s.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var l=new Oe(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(l).fire("boxzoomend",{boxZoomBounds:l})}},_onKeyDown:function(s){s.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ke.addInitHook("addHandler","boxZoom",T0),ke.mergeOptions({doubleClickZoom:!0});var S0=Si.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(s){var l=this._map,u=l.getZoom(),h=l.options.zoomDelta,p=s.originalEvent.shiftKey?u-h:u+h;l.options.doubleClickZoom==="center"?l.setZoom(p):l.setZoomAround(s.containerPoint,p)}});ke.addInitHook("addHandler","doubleClickZoom",S0),ke.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var M0=Si.extend({addHooks:function(){if(!this._draggable){var s=this._map;this._draggable=new Dr(s._mapPane,s._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),s.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),s.on("zoomend",this._onZoomEnd,this),s.whenReady(this._onZoomEnd,this))}Ie(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Tt(this._map._container,"leaflet-grab"),Tt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var s=this._map;if(s._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var l=De(this._map.options.maxBounds);this._offsetLimit=Ee(this._map.latLngToContainerPoint(l.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(l.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;s.fire("movestart").fire("dragstart"),s.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(s){if(this._map.options.inertia){var l=this._lastTime=+new Date,u=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(u),this._times.push(l),this._prunePositions(l)}this._map.fire("move",s).fire("drag",s)},_prunePositions:function(s){for(;this._positions.length>1&&s-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var s=this._map.getSize().divideBy(2),l=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=l.subtract(s).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(s,l){return s-(s-l)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var s=this._draggable._newPos.subtract(this._draggable._startPos),l=this._offsetLimit;s.x<l.min.x&&(s.x=this._viscousLimit(s.x,l.min.x)),s.y<l.min.y&&(s.y=this._viscousLimit(s.y,l.min.y)),s.x>l.max.x&&(s.x=this._viscousLimit(s.x,l.max.x)),s.y>l.max.y&&(s.y=this._viscousLimit(s.y,l.max.y)),this._draggable._newPos=this._draggable._startPos.add(s)}},_onPreDragWrap:function(){var s=this._worldWidth,l=Math.round(s/2),u=this._initialWorldOffset,h=this._draggable._newPos.x,p=(h-l+u)%s+l-u,_=(h+l+u)%s-l-u,w=Math.abs(p+u)<Math.abs(_+u)?p:_;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=w},_onDragEnd:function(s){var l=this._map,u=l.options,h=!u.inertia||s.noInertia||this._times.length<2;if(l.fire("dragend",s),h)l.fire("moveend");else{this._prunePositions(+new Date);var p=this._lastPos.subtract(this._positions[0]),_=(this._lastTime-this._times[0])/1e3,w=u.easeLinearity,C=p.multiplyBy(w/_),I=C.distanceTo([0,0]),P=Math.min(u.inertiaMaxSpeed,I),Q=C.multiplyBy(P/I),me=P/(u.inertiaDeceleration*w),Ae=Q.multiplyBy(-me/2).round();!Ae.x&&!Ae.y?l.fire("moveend"):(Ae=l._limitOffset(Ae,l.options.maxBounds),H(function(){l.panBy(Ae,{duration:me,easeLinearity:w,noMoveStart:!0,animate:!0})}))}}});ke.addInitHook("addHandler","dragging",M0),ke.mergeOptions({keyboard:!0,keyboardPanDelta:80});var x0=Si.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(s){this._map=s,this._setPanDelta(s.options.keyboardPanDelta),this._setZoomDelta(s.options.zoomDelta)},addHooks:function(){var s=this._map._container;s.tabIndex<=0&&(s.tabIndex="0"),Se(s,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),it(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var s=document.body,l=document.documentElement,u=s.scrollTop||l.scrollTop,h=s.scrollLeft||l.scrollLeft;this._map._container.focus(),window.scrollTo(h,u)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(s){var l=this._panKeys={},u=this.keyCodes,h,p;for(h=0,p=u.left.length;h<p;h++)l[u.left[h]]=[-1*s,0];for(h=0,p=u.right.length;h<p;h++)l[u.right[h]]=[s,0];for(h=0,p=u.down.length;h<p;h++)l[u.down[h]]=[0,s];for(h=0,p=u.up.length;h<p;h++)l[u.up[h]]=[0,-1*s]},_setZoomDelta:function(s){var l=this._zoomKeys={},u=this.keyCodes,h,p;for(h=0,p=u.zoomIn.length;h<p;h++)l[u.zoomIn[h]]=s;for(h=0,p=u.zoomOut.length;h<p;h++)l[u.zoomOut[h]]=-s},_addHooks:function(){Se(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){it(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(s){if(!(s.altKey||s.ctrlKey||s.metaKey)){var l=s.keyCode,u=this._map,h;if(l in this._panKeys){if(!u._panAnim||!u._panAnim._inProgress)if(h=this._panKeys[l],s.shiftKey&&(h=k(h).multiplyBy(3)),u.options.maxBounds&&(h=u._limitOffset(k(h),u.options.maxBounds)),u.options.worldCopyJump){var p=u.wrapLatLng(u.unproject(u.project(u.getCenter()).add(h)));u.panTo(p)}else u.panBy(h)}else if(l in this._zoomKeys)u.setZoom(u.getZoom()+(s.shiftKey?3:1)*this._zoomKeys[l]);else if(l===27&&u._popup&&u._popup.options.closeOnEscapeKey)u.closePopup();else return;oo(s)}}});ke.addInitHook("addHandler","keyboard",x0),ke.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var I0=Si.extend({addHooks:function(){Se(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){it(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(s){var l=Xv(s),u=this._map.options.wheelDebounceTime;this._delta+=l,this._lastMousePos=this._map.mouseEventToContainerPoint(s),this._startTime||(this._startTime=+new Date);var h=Math.max(u-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(r(this._performZoom,this),h),oo(s)},_performZoom:function(){var s=this._map,l=s.getZoom(),u=this._map.options.zoomSnap||0;s._stop();var h=this._delta/(this._map.options.wheelPxPerZoomLevel*4),p=4*Math.log(2/(1+Math.exp(-Math.abs(h))))/Math.LN2,_=u?Math.ceil(p/u)*u:p,w=s._limitZoom(l+(this._delta>0?_:-_))-l;this._delta=0,this._startTime=null,w&&(s.options.scrollWheelZoom==="center"?s.setZoom(l+w):s.setZoomAround(this._lastMousePos,l+w))}});ke.addInitHook("addHandler","scrollWheelZoom",I0);var NS=600;ke.mergeOptions({tapHold:oe.touchNative&&oe.safari&&oe.mobile,tapTolerance:15});var O0=Si.extend({addHooks:function(){Se(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){it(this._map._container,"touchstart",this._onDown,this)},_onDown:function(s){if(clearTimeout(this._holdTimeout),s.touches.length===1){var l=s.touches[0];this._startPos=this._newPos=new O(l.clientX,l.clientY),this._holdTimeout=setTimeout(r(function(){this._cancel(),this._isTapValid()&&(Se(document,"touchend",nn),Se(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",l))},this),NS),Se(document,"touchend touchcancel contextmenu",this._cancel,this),Se(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function s(){it(document,"touchend",nn),it(document,"touchend touchcancel",s)},_cancel:function(){clearTimeout(this._holdTimeout),it(document,"touchend touchcancel contextmenu",this._cancel,this),it(document,"touchmove",this._onMove,this)},_onMove:function(s){var l=s.touches[0];this._newPos=new O(l.clientX,l.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(s,l){var u=new MouseEvent(s,{bubbles:!0,cancelable:!0,view:window,screenX:l.screenX,screenY:l.screenY,clientX:l.clientX,clientY:l.clientY});u._simulated=!0,l.target.dispatchEvent(u)}});ke.addInitHook("addHandler","tapHold",O0),ke.mergeOptions({touchZoom:oe.touch,bounceAtZoomLimits:!0});var A0=Si.extend({addHooks:function(){Ie(this._map._container,"leaflet-touch-zoom"),Se(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Tt(this._map._container,"leaflet-touch-zoom"),it(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(s){var l=this._map;if(!(!s.touches||s.touches.length!==2||l._animatingZoom||this._zooming)){var u=l.mouseEventToContainerPoint(s.touches[0]),h=l.mouseEventToContainerPoint(s.touches[1]);this._centerPoint=l.getSize()._divideBy(2),this._startLatLng=l.containerPointToLatLng(this._centerPoint),l.options.touchZoom!=="center"&&(this._pinchStartLatLng=l.containerPointToLatLng(u.add(h)._divideBy(2))),this._startDist=u.distanceTo(h),this._startZoom=l.getZoom(),this._moved=!1,this._zooming=!0,l._stop(),Se(document,"touchmove",this._onTouchMove,this),Se(document,"touchend touchcancel",this._onTouchEnd,this),nn(s)}},_onTouchMove:function(s){if(!(!s.touches||s.touches.length!==2||!this._zooming)){var l=this._map,u=l.mouseEventToContainerPoint(s.touches[0]),h=l.mouseEventToContainerPoint(s.touches[1]),p=u.distanceTo(h)/this._startDist;if(this._zoom=l.getScaleZoom(p,this._startZoom),!l.options.bounceAtZoomLimits&&(this._zoom<l.getMinZoom()&&p<1||this._zoom>l.getMaxZoom()&&p>1)&&(this._zoom=l._limitZoom(this._zoom)),l.options.touchZoom==="center"){if(this._center=this._startLatLng,p===1)return}else{var _=u._add(h)._divideBy(2)._subtract(this._centerPoint);if(p===1&&_.x===0&&_.y===0)return;this._center=l.unproject(l.project(this._pinchStartLatLng,this._zoom).subtract(_),this._zoom)}this._moved||(l._moveStart(!0,!1),this._moved=!0),pe(this._animRequest);var w=r(l._move,l,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=H(w,this,!0),nn(s)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,pe(this._animRequest),it(document,"touchmove",this._onTouchMove,this),it(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});ke.addInitHook("addHandler","touchZoom",A0),ke.BoxZoom=T0,ke.DoubleClickZoom=S0,ke.Drag=M0,ke.Keyboard=x0,ke.ScrollWheelZoom=I0,ke.TapHold=O0,ke.TouchZoom=A0,t.Bounds=X,t.Browser=oe,t.CRS=Qe,t.Canvas=b0,t.Circle=yf,t.CircleMarker=Oc,t.Class=G,t.Control=oi,t.DivIcon=v0,t.DivOverlay=Mi,t.DomEvent=JT,t.DomUtil=YT,t.Draggable=Dr,t.Evented=Z,t.FeatureGroup=tr,t.GeoJSON=ir,t.GridLayer=ka,t.Handler=Si,t.Icon=ts,t.ImageOverlay=kc,t.LatLng=we,t.LatLngBounds=Oe,t.Layer=si,t.LayerGroup=es,t.LineUtil=uS,t.Map=ke,t.Marker=Ic,t.Mixin=rS,t.Path=Cr,t.Point=O,t.PolyUtil=oS,t.Polygon=ns,t.Polyline=nr,t.Popup=Fc,t.PosAnimation=e0,t.Projection=dS,t.Rectangle=E0,t.Renderer=rr,t.SVG=La,t.SVGOverlay=_0,t.TileLayer=rs,t.Tooltip=Lc,t.Transformation=Et,t.Util=We,t.VideoOverlay=g0,t.bind=r,t.bounds=Ee,t.canvas=D0,t.circle=yS,t.circleMarker=vS,t.control=Pa,t.divIcon=xS,t.extend=i,t.featureGroup=mS,t.geoJSON=m0,t.geoJson=DS,t.gridLayer=IS,t.icon=gS,t.imageOverlay=CS,t.latLng=de,t.latLngBounds=De,t.layerGroup=pS,t.map=KT,t.marker=_S,t.point=k,t.polygon=bS,t.polyline=wS,t.popup=SS,t.rectangle=PS,t.setOptions=g,t.stamp=a,t.svg=C0,t.svgOverlay=TS,t.tileLayer=y0,t.tooltip=MS,t.transformation=tn,t.version=e,t.videoOverlay=ES;var RS=window.L;t.noConflict=function(){return window.L=RS,this},window.L=t})});function JS(t,e){return Object.is(t,e)}var Zt=null,$c=!1,Uc=1,as=Symbol("SIGNAL");function Bt(t){let e=Zt;return Zt=t,e}var Sf={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function L0(t){if($c)throw new Error("");if(Zt===null)return;Zt.consumerOnSignalRead(t);let e=Zt.nextProducerIndex++;if(ss(Zt),e<Zt.producerNode.length&&Zt.producerNode[e]!==t&&Va(Zt)){let i=Zt.producerNode[e];Hc(i,Zt.producerIndexOfThis[e])}Zt.producerNode[e]!==t&&(Zt.producerNode[e]=t,Zt.producerIndexOfThis[e]=Va(Zt)?H0(t,Zt,e):0),Zt.producerLastReadVersion[e]=t.version}function KS(){Uc++}function XS(t){if(!(Va(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Uc)){if(!t.producerMustRecompute(t)&&!Mf(t)){t.dirty=!1,t.lastCleanEpoch=Uc;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Uc}}function B0(t){if(t.liveConsumerNode===void 0)return;let e=$c;$c=!0;try{for(let i of t.liveConsumerNode)i.dirty||eM(i)}finally{$c=e}}function V0(){return Zt?.consumerAllowSignalWrites!==!1}function eM(t){t.dirty=!0,B0(t),t.consumerMarkedDirty?.(t)}function j0(t){return t&&(t.nextProducerIndex=0),Bt(t)}function $0(t,e){if(Bt(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Va(t))for(let i=t.nextProducerIndex;i<t.producerNode.length;i++)Hc(t.producerNode[i],t.producerIndexOfThis[i]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Mf(t){ss(t);for(let e=0;e<t.producerNode.length;e++){let i=t.producerNode[e],n=t.producerLastReadVersion[e];if(n!==i.version||(XS(i),n!==i.version))return!0}return!1}function U0(t){if(ss(t),Va(t))for(let e=0;e<t.producerNode.length;e++)Hc(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function H0(t,e,i){if(z0(t),ss(t),t.liveConsumerNode.length===0)for(let n=0;n<t.producerNode.length;n++)t.producerIndexOfThis[n]=H0(t.producerNode[n],t,n);return t.liveConsumerIndexOfThis.push(i),t.liveConsumerNode.push(e)-1}function Hc(t,e){if(z0(t),ss(t),t.liveConsumerNode.length===1)for(let n=0;n<t.producerNode.length;n++)Hc(t.producerNode[n],t.producerIndexOfThis[n]);let i=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[i],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[i],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let n=t.liveConsumerIndexOfThis[e],r=t.liveConsumerNode[e];ss(r),r.producerIndexOfThis[n]=e}}function Va(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function ss(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function z0(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function tM(){throw new Error}var G0=tM;function W0(){G0()}function Z0(t){G0=t}var nM=null;function q0(t){let e=Object.create(Q0);e.value=t;let i=()=>(L0(e),e.value);return i[as]=e,i}function xf(t,e){V0()||W0(),t.equal(t.value,e)||(t.value=e,iM(t))}function Y0(t,e){V0()||W0(),xf(t,e(t.value))}var Q0=je(z({},Sf),{equal:JS,value:void 0});function iM(t){t.version++,KS(),B0(t),nM?.()}function ce(t){return typeof t=="function"}function ls(t){let i=t(n=>{Error.call(n),n.stack=new Error().stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}var zc=ls(t=>function(i){t(this),this.message=i?`${i.length} errors occurred during unsubscription:
${i.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
  `)}`:"",this.name="UnsubscriptionError",this.errors=i});function ao(t,e){if(t){let i=t.indexOf(e);0<=i&&t.splice(i,1)}}var vt=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(let o of i)o.remove(this);else i.remove(this);let{initialTeardown:n}=this;if(ce(n))try{n()}catch(o){e=o instanceof zc?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{J0(o)}catch(a){e=e??[],a instanceof zc?e=[...e,...a.errors]:e.push(a)}}if(e)throw new zc(e)}}add(e){var i;if(e&&e!==this)if(this.closed)J0(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(i=this._finalizers)!==null&&i!==void 0?i:[]).push(e)}}_hasParent(e){let{_parentage:i}=this;return i===e||Array.isArray(i)&&i.includes(e)}_addParent(e){let{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(e),i):i?[i,e]:e}_removeParent(e){let{_parentage:i}=this;i===e?this._parentage=null:Array.isArray(i)&&ao(i,e)}remove(e){let{_finalizers:i}=this;i&&ao(i,e),e instanceof t&&e._removeParent(this)}};vt.EMPTY=(()=>{let t=new vt;return t.closed=!0,t})();var If=vt.EMPTY;function Gc(t){return t instanceof vt||t&&"closed"in t&&ce(t.remove)&&ce(t.add)&&ce(t.unsubscribe)}function J0(t){ce(t)?t():t.unsubscribe()}var ai={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var cs={setTimeout(t,e,...i){let{delegate:n}=cs;return n?.setTimeout?n.setTimeout(t,e,...i):setTimeout(t,e,...i)},clearTimeout(t){let{delegate:e}=cs;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Wc(t){cs.setTimeout(()=>{let{onUnhandledError:e}=ai;if(e)e(t);else throw t})}function li(){}var K0=Of("C",void 0,void 0);function X0(t){return Of("E",void 0,t)}function ey(t){return Of("N",t,void 0)}function Of(t,e,i){return{kind:t,value:e,error:i}}var lo=null;function us(t){if(ai.useDeprecatedSynchronousErrorHandling){let e=!lo;if(e&&(lo={errorThrown:!1,error:null}),t(),e){let{errorThrown:i,error:n}=lo;if(lo=null,i)throw n}}else t()}function ty(t){ai.useDeprecatedSynchronousErrorHandling&&lo&&(lo.errorThrown=!0,lo.error=t)}var co=class extends vt{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Gc(e)&&e.add(this)):this.destination=sM}static create(e,i,n){return new Tr(e,i,n)}next(e){this.isStopped?Pf(ey(e),this):this._next(e)}error(e){this.isStopped?Pf(X0(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Pf(K0,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},rM=Function.prototype.bind;function Af(t,e){return rM.call(t,e)}var Nf=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:i}=this;if(i.next)try{i.next(e)}catch(n){Zc(n)}}error(e){let{partialObserver:i}=this;if(i.error)try{i.error(e)}catch(n){Zc(n)}else Zc(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(i){Zc(i)}}},Tr=class extends co{constructor(e,i,n){super();let r;if(ce(e)||!e)r={next:e??void 0,error:i??void 0,complete:n??void 0};else{let o;this&&ai.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&Af(e.next,o),error:e.error&&Af(e.error,o),complete:e.complete&&Af(e.complete,o)}):r=e}this.destination=new Nf(r)}};function Zc(t){ai.useDeprecatedSynchronousErrorHandling?ty(t):Wc(t)}function oM(t){throw t}function Pf(t,e){let{onStoppedNotification:i}=ai;i&&cs.setTimeout(()=>i(t,e))}var sM={closed:!0,next:li,error:oM,complete:li};var ds=typeof Symbol=="function"&&Symbol.observable||"@@observable";function rn(t){return t}function Rf(...t){return kf(t)}function kf(t){return t.length===0?rn:t.length===1?t[0]:function(i){return t.reduce((n,r)=>r(n),i)}}var ge=(()=>{class t{constructor(i){i&&(this._subscribe=i)}lift(i){let n=new t;return n.source=this,n.operator=i,n}subscribe(i,n,r){let o=lM(i)?i:new Tr(i,n,r);return us(()=>{let{operator:a,source:c}=this;o.add(a?a.call(o,c):c?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(i){try{return this._subscribe(i)}catch(n){i.error(n)}}forEach(i,n){return n=ny(n),new n((r,o)=>{let a=new Tr({next:c=>{try{i(c)}catch(d){o(d),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(i){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(i)}[ds](){return this}pipe(...i){return kf(i)(this)}toPromise(i){return i=ny(i),new i((n,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>n(o))})}}return t.create=e=>new t(e),t})();function ny(t){var e;return(e=t??ai.Promise)!==null&&e!==void 0?e:Promise}function aM(t){return t&&ce(t.next)&&ce(t.error)&&ce(t.complete)}function lM(t){return t&&t instanceof co||aM(t)&&Gc(t)}function Ff(t){return ce(t?.lift)}function Me(t){return e=>{if(Ff(e))return e.lift(function(i){try{return t(i,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function _e(t,e,i,n,r){return new Lf(t,e,i,n,r)}var Lf=class extends co{constructor(e,i,n,r,o,a){super(e),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=i?function(c){try{i(c)}catch(d){e.error(d)}}:super._next,this._error=r?function(c){try{r(c)}catch(d){e.error(d)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:i}=this;super.unsubscribe(),!i&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function hs(){return Me((t,e)=>{let i=null;t._refCount++;let n=_e(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){i=null;return}let r=t._connection,o=i;i=null,r&&(!o||r===o)&&r.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(i=t.connect())})}var fs=class extends ge{constructor(e,i){super(),this.source=e,this.subjectFactory=i,this._subject=null,this._refCount=0,this._connection=null,Ff(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new vt;let i=this.getSubject();e.add(this.source.subscribe(_e(i,void 0,()=>{this._teardown(),i.complete()},n=>{this._teardown(),i.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=vt.EMPTY)}return e}refCount(){return hs()(this)}};var ps={schedule(t){let e=requestAnimationFrame,i=cancelAnimationFrame,{delegate:n}=ps;n&&(e=n.requestAnimationFrame,i=n.cancelAnimationFrame);let r=e(o=>{i=void 0,t(o)});return new vt(()=>i?.(r))},requestAnimationFrame(...t){let{delegate:e}=ps;return(e?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=ps;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var iy=ls(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var He=(()=>{class t extends ge{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){let n=new qc(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new iy}next(i){us(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(i)}})}error(i){us(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=i;let{observers:n}=this;for(;n.length;)n.shift().error(i)}})}complete(){us(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:i}=this;for(;i.length;)i.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var i;return((i=this.observers)===null||i===void 0?void 0:i.length)>0}_trySubscribe(i){return this._throwIfClosed(),super._trySubscribe(i)}_subscribe(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)}_innerSubscribe(i){let{hasError:n,isStopped:r,observers:o}=this;return n||r?If:(this.currentObservers=null,o.push(i),new vt(()=>{this.currentObservers=null,ao(o,i)}))}_checkFinalizedStatuses(i){let{hasError:n,thrownError:r,isStopped:o}=this;n?i.error(r):o&&i.complete()}asObservable(){let i=new ge;return i.source=this,i}}return t.create=(e,i)=>new qc(e,i),t})(),qc=class extends He{constructor(e,i){super(),this.destination=e,this.source=i}next(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,e)}error(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,e)}complete(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)}_subscribe(e){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&n!==void 0?n:If}};var qe=class extends He{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let i=super._subscribe(e);return!i.closed&&e.next(this._value),i}getValue(){let{hasError:e,thrownError:i,_value:n}=this;if(e)throw i;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var ja={now(){return(ja.delegate||Date).now()},delegate:void 0};var ms=class extends He{constructor(e=1/0,i=1/0,n=ja){super(),this._bufferSize=e,this._windowTime=i,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=i===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,i)}next(e){let{isStopped:i,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;i||(n.push(e),!r&&n.push(o.now()+a)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let i=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:r}=this,o=r.slice();for(let a=0;a<o.length&&!e.closed;a+=n?1:2)e.next(o[a]);return this._checkFinalizedStatuses(e),i}_trimBuffer(){let{_bufferSize:e,_timestampProvider:i,_buffer:n,_infiniteTimeWindow:r}=this,o=(r?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!r){let a=i.now(),c=0;for(let d=1;d<n.length&&n[d]<=a;d+=2)c=d;c&&n.splice(0,c+1)}}};var Yc=class extends vt{constructor(e,i){super()}schedule(e,i=0){return this}};var $a={setInterval(t,e,...i){let{delegate:n}=$a;return n?.setInterval?n.setInterval(t,e,...i):setInterval(t,e,...i)},clearInterval(t){let{delegate:e}=$a;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var gs=class extends Yc{constructor(e,i){super(e,i),this.scheduler=e,this.work=i,this.pending=!1}schedule(e,i=0){var n;if(this.closed)return this;this.state=e;let r=this.id,o=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(o,r,i)),this.pending=!0,this.delay=i,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,i),this}requestAsyncId(e,i,n=0){return $a.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,i,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return i;i!=null&&$a.clearInterval(i)}execute(e,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,i);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,i){let n=!1,r;try{this.work(e)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:e,scheduler:i}=this,{actions:n}=i;this.work=this.state=this.scheduler=null,this.pending=!1,ao(n,this),e!=null&&(this.id=this.recycleAsyncId(i,e,null)),this.delay=null,super.unsubscribe()}}};var _s=class t{constructor(e,i=t.now){this.schedulerActionCtor=e,this.now=i}schedule(e,i=0,n){return new this.schedulerActionCtor(this,e).schedule(n,i)}};_s.now=ja.now;var vs=class extends _s{constructor(e,i=_s.now){super(e,i),this.actions=[],this._active=!1}flush(e){let{actions:i}=this;if(this._active){i.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=i.shift());if(this._active=!1,n){for(;e=i.shift();)e.unsubscribe();throw n}}};var Ua=new vs(gs),ry=Ua;var Qc=class extends gs{constructor(e,i){super(e,i),this.scheduler=e,this.work=i}requestAsyncId(e,i,n=0){return n!==null&&n>0?super.requestAsyncId(e,i,n):(e.actions.push(this),e._scheduled||(e._scheduled=ps.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,i,n=0){var r;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(e,i,n);let{actions:o}=e;i!=null&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==i&&(ps.cancelAnimationFrame(i),e._scheduled=void 0)}};var Jc=class extends vs{flush(e){this._active=!0;let i=this._scheduled;this._scheduled=void 0;let{actions:n}=this,r;e=e||n.shift();do if(r=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===i&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===i&&n.shift();)e.unsubscribe();throw r}}};var Ha=new Jc(Qc);var qt=new ge(t=>t.complete());function Kc(t){return t&&ce(t.schedule)}function Bf(t){return t[t.length-1]}function Sr(t){return ce(Bf(t))?t.pop():void 0}function xi(t){return Kc(Bf(t))?t.pop():void 0}function oy(t,e){return typeof Bf(t)=="number"?t.pop():e}function ay(t,e,i,n){function r(o){return o instanceof i?o:new i(function(a){a(o)})}return new(i||(i=Promise))(function(o,a){function c(m){try{f(n.next(m))}catch(v){a(v)}}function d(m){try{f(n.throw(m))}catch(v){a(v)}}function f(m){m.done?o(m.value):r(m.value).then(c,d)}f((n=n.apply(t,e||[])).next())})}function sy(t){var e=typeof Symbol=="function"&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function uo(t){return this instanceof uo?(this.v=t,this):new uo(t)}function ly(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(t,e||[]),r,o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(y){n[y]&&(r[y]=function(g){return new Promise(function(b,S){o.push([y,g,b,S])>1||c(y,g)})})}function c(y,g){try{d(n[y](g))}catch(b){v(o[0][3],b)}}function d(y){y.value instanceof uo?Promise.resolve(y.value.v).then(f,m):v(o[0][2],y)}function f(y){c("next",y)}function m(y){c("throw",y)}function v(y,g){y(g),o.shift(),o.length&&c(o[0][0],o[0][1])}}function cy(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],i;return e?e.call(t):(t=typeof sy=="function"?sy(t):t[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(o){i[o]=t[o]&&function(a){return new Promise(function(c,d){a=t[o](a),r(c,d,a.done,a.value)})}}function r(o,a,c,d){Promise.resolve(d).then(function(f){o({value:f,done:c})},a)}}var ys=t=>t&&typeof t.length=="number"&&typeof t!="function";function Xc(t){return ce(t?.then)}function eu(t){return ce(t[ds])}function tu(t){return Symbol.asyncIterator&&ce(t?.[Symbol.asyncIterator])}function nu(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function cM(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var iu=cM();function ru(t){return ce(t?.[iu])}function ou(t){return ly(this,arguments,function*(){let i=t.getReader();try{for(;;){let{value:n,done:r}=yield uo(i.read());if(r)return yield uo(void 0);yield yield uo(n)}}finally{i.releaseLock()}})}function su(t){return ce(t?.getReader)}function $e(t){if(t instanceof ge)return t;if(t!=null){if(eu(t))return uM(t);if(ys(t))return dM(t);if(Xc(t))return hM(t);if(tu(t))return uy(t);if(ru(t))return fM(t);if(su(t))return pM(t)}throw nu(t)}function uM(t){return new ge(e=>{let i=t[ds]();if(ce(i.subscribe))return i.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function dM(t){return new ge(e=>{for(let i=0;i<t.length&&!e.closed;i++)e.next(t[i]);e.complete()})}function hM(t){return new ge(e=>{t.then(i=>{e.closed||(e.next(i),e.complete())},i=>e.error(i)).then(null,Wc)})}function fM(t){return new ge(e=>{for(let i of t)if(e.next(i),e.closed)return;e.complete()})}function uy(t){return new ge(e=>{mM(t,e).catch(i=>e.error(i))})}function pM(t){return uy(ou(t))}function mM(t,e){var i,n,r,o;return ay(this,void 0,void 0,function*(){try{for(i=cy(t);n=yield i.next(),!n.done;){let a=n.value;if(e.next(a),e.closed)return}}catch(a){r={error:a}}finally{try{n&&!n.done&&(o=i.return)&&(yield o.call(i))}finally{if(r)throw r.error}}e.complete()})}function An(t,e,i,n=0,r=!1){let o=e.schedule(function(){i(),r?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!r)return o}function au(t,e=0){return Me((i,n)=>{i.subscribe(_e(n,r=>An(n,t,()=>n.next(r),e),()=>An(n,t,()=>n.complete(),e),r=>An(n,t,()=>n.error(r),e)))})}function lu(t,e=0){return Me((i,n)=>{n.add(t.schedule(()=>i.subscribe(n),e))})}function dy(t,e){return $e(t).pipe(lu(e),au(e))}function hy(t,e){return $e(t).pipe(lu(e),au(e))}function fy(t,e){return new ge(i=>{let n=0;return e.schedule(function(){n===t.length?i.complete():(i.next(t[n++]),i.closed||this.schedule())})})}function py(t,e){return new ge(i=>{let n;return An(i,e,()=>{n=t[iu](),An(i,e,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(a){i.error(a);return}o?i.complete():i.next(r)},0,!0)}),()=>ce(n?.return)&&n.return()})}function cu(t,e){if(!t)throw new Error("Iterable cannot be null");return new ge(i=>{An(i,e,()=>{let n=t[Symbol.asyncIterator]();An(i,e,()=>{n.next().then(r=>{r.done?i.complete():i.next(r.value)})},0,!0)})})}function my(t,e){return cu(ou(t),e)}function gy(t,e){if(t!=null){if(eu(t))return dy(t,e);if(ys(t))return fy(t,e);if(Xc(t))return hy(t,e);if(tu(t))return cu(t,e);if(ru(t))return py(t,e);if(su(t))return my(t,e)}throw nu(t)}function Je(t,e){return e?gy(t,e):$e(t)}function te(...t){let e=xi(t);return Je(t,e)}function ws(t,e){let i=ce(t)?t:()=>t,n=r=>r.error(i());return new ge(e?r=>e.schedule(n,0,r):n)}function Vf(t){return!!t&&(t instanceof ge||ce(t.lift)&&ce(t.subscribe))}var ci=ls(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function jf(t,e){let i=typeof e=="object";return new Promise((n,r)=>{let o=new Tr({next:a=>{n(a),o.unsubscribe()},error:r,complete:()=>{i?n(e.defaultValue):r(new ci)}});t.subscribe(o)})}function _y(t){return t instanceof Date&&!isNaN(t)}function se(t,e){return Me((i,n)=>{let r=0;i.subscribe(_e(n,o=>{n.next(t.call(e,o,r++))}))})}var{isArray:gM}=Array;function _M(t,e){return gM(e)?t(...e):t(e)}function bs(t){return se(e=>_M(t,e))}var{isArray:vM}=Array,{getPrototypeOf:yM,prototype:wM,keys:bM}=Object;function uu(t){if(t.length===1){let e=t[0];if(vM(e))return{args:e,keys:null};if(DM(e)){let i=bM(e);return{args:i.map(n=>e[n]),keys:i}}}return{args:t,keys:null}}function DM(t){return t&&typeof t=="object"&&yM(t)===wM}function du(t,e){return t.reduce((i,n,r)=>(i[n]=e[r],i),{})}function Ii(...t){let e=xi(t),i=Sr(t),{args:n,keys:r}=uu(t);if(n.length===0)return Je([],e);let o=new ge(CM(n,e,r?a=>du(r,a):rn));return i?o.pipe(bs(i)):o}function CM(t,e,i=rn){return n=>{vy(e,()=>{let{length:r}=t,o=new Array(r),a=r,c=r;for(let d=0;d<r;d++)vy(e,()=>{let f=Je(t[d],e),m=!1;f.subscribe(_e(n,v=>{o[d]=v,m||(m=!0,c--),c||n.next(i(o.slice()))},()=>{--a||n.complete()}))},n)},n)}}function vy(t,e,i){t?An(i,t,e):e()}function yy(t,e,i,n,r,o,a,c){let d=[],f=0,m=0,v=!1,y=()=>{v&&!d.length&&!f&&e.complete()},g=S=>f<n?b(S):d.push(S),b=S=>{o&&e.next(S),f++;let E=!1;$e(i(S,m++)).subscribe(_e(e,M=>{r?.(M),o?g(M):e.next(M)},()=>{E=!0},void 0,()=>{if(E)try{for(f--;d.length&&f<n;){let M=d.shift();a?An(e,a,()=>b(M)):b(M)}y()}catch(M){e.error(M)}}))};return t.subscribe(_e(e,g,()=>{v=!0,y()})),()=>{c?.()}}function rt(t,e,i=1/0){return ce(e)?rt((n,r)=>se((o,a)=>e(n,o,r,a))($e(t(n,r))),i):(typeof e=="number"&&(i=e),Me((n,r)=>yy(n,r,t,i)))}function Oi(t=1/0){return rt(rn,t)}function wy(){return Oi(1)}function Ai(...t){return wy()(Je(t,xi(t)))}function hu(t){return new ge(e=>{$e(t()).subscribe(e)})}function $f(...t){let e=Sr(t),{args:i,keys:n}=uu(t),r=new ge(o=>{let{length:a}=i;if(!a){o.complete();return}let c=new Array(a),d=a,f=a;for(let m=0;m<a;m++){let v=!1;$e(i[m]).subscribe(_e(o,y=>{v||(v=!0,f--),c[m]=y},()=>d--,void 0,()=>{(!d||!v)&&(f||o.next(n?du(n,c):c),o.complete())}))}});return e?r.pipe(bs(e)):r}var EM=["addListener","removeListener"],TM=["addEventListener","removeEventListener"],SM=["on","off"];function Vt(t,e,i,n){if(ce(i)&&(n=i,i=void 0),n)return Vt(t,e,i).pipe(bs(n));let[r,o]=IM(t)?TM.map(a=>c=>t[a](e,c,i)):MM(t)?EM.map(by(t,e)):xM(t)?SM.map(by(t,e)):[];if(!r&&ys(t))return rt(a=>Vt(a,e,i))($e(t));if(!r)throw new TypeError("Invalid event target");return new ge(a=>{let c=(...d)=>a.next(1<d.length?d:d[0]);return r(c),()=>o(c)})}function by(t,e){return i=>n=>t[i](e,n)}function MM(t){return ce(t.addListener)&&ce(t.removeListener)}function xM(t){return ce(t.on)&&ce(t.off)}function IM(t){return ce(t.addEventListener)&&ce(t.removeEventListener)}function Mr(t=0,e,i=ry){let n=-1;return e!=null&&(Kc(e)?i=e:n=e),new ge(r=>{let o=_y(t)?+t-i.now():t;o<0&&(o=0);let a=0;return i.schedule(function(){r.closed||(r.next(a++),0<=n?this.schedule(void 0,n):r.complete())},o)})}function Uf(t=0,e=Ua){return t<0&&(t=0),Mr(t,t,e)}function Hf(...t){let e=xi(t),i=oy(t,1/0),n=t;return n.length?n.length===1?$e(n[0]):Oi(i)(Je(n,e)):qt}var zf=new ge(li);var{isArray:OM}=Array;function fu(t){return t.length===1&&OM(t[0])?t[0]:t}function ot(t,e){return Me((i,n)=>{let r=0;i.subscribe(_e(n,o=>t.call(e,o,r++)&&n.next(o)))})}function pu(...t){return t=fu(t),t.length===1?$e(t[0]):new ge(AM(t))}function AM(t){return e=>{let i=[];for(let n=0;i&&!e.closed&&n<t.length;n++)i.push($e(t[n]).subscribe(_e(e,r=>{if(i){for(let o=0;o<i.length;o++)o!==n&&i[o].unsubscribe();i=null}e.next(r)})))}}function Ds(...t){let e=Sr(t),i=fu(t);return i.length?new ge(n=>{let r=i.map(()=>[]),o=i.map(()=>!1);n.add(()=>{r=o=null});for(let a=0;!n.closed&&a<i.length;a++)$e(i[a]).subscribe(_e(n,c=>{if(r[a].push(c),r.every(d=>d.length)){let d=r.map(f=>f.shift());n.next(e?e(...d):d),r.some((f,m)=>!f.length&&o[m])&&n.complete()}},()=>{o[a]=!0,!r[a].length&&n.complete()}));return()=>{r=o=null}}):qt}function Pi(t){return Me((e,i)=>{let n=null,r=!1,o;n=e.subscribe(_e(i,void 0,void 0,a=>{o=$e(t(a,Pi(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(i)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(i))})}function Dy(t,e,i,n,r){return(o,a)=>{let c=i,d=e,f=0;o.subscribe(_e(a,m=>{let v=f++;d=c?t(d,m,v):(c=!0,m),n&&a.next(d)},r&&(()=>{c&&a.next(d),a.complete()})))}}function or(t,e){return ce(e)?rt(t,e,1):rt(t,1)}function xr(t){return Me((e,i)=>{let n=!1;e.subscribe(_e(i,r=>{n=!0,i.next(r)},()=>{n||i.next(t),i.complete()}))})}function ut(t){return t<=0?()=>qt:Me((e,i)=>{let n=0;e.subscribe(_e(i,r=>{++n<=t&&(i.next(r),t<=n&&i.complete())}))})}function Cy(){return Me((t,e)=>{t.subscribe(_e(e,li))})}function za(t){return se(()=>t)}function Gf(t,e){return e?i=>Ai(e.pipe(ut(1),Cy()),i.pipe(Gf(t))):rt((i,n)=>$e(t(i,n)).pipe(ut(1),za(i)))}function Wf(t,e=Ua){let i=Mr(t,e);return Gf(()=>i)}function ho(t,e=rn){return t=t??PM,Me((i,n)=>{let r,o=!0;i.subscribe(_e(n,a=>{let c=e(a);(o||!t(r,c))&&(o=!1,r=c,n.next(a))}))})}function PM(t,e){return t===e}function mu(t=NM){return Me((e,i)=>{let n=!1;e.subscribe(_e(i,r=>{n=!0,i.next(r)},()=>n?i.complete():i.error(t())))})}function NM(){return new ci}function Cs(...t){return e=>Ai(e,te(...t))}function Ir(t){return Me((e,i)=>{try{e.subscribe(i)}finally{i.add(t)}})}function Ni(t,e){let i=arguments.length>=2;return n=>n.pipe(t?ot((r,o)=>t(r,o,n)):rn,ut(1),i?xr(e):mu(()=>new ci))}function Es(t){return t<=0?()=>qt:Me((e,i)=>{let n=[];e.subscribe(_e(i,r=>{n.push(r),t<n.length&&n.shift()},()=>{for(let r of n)i.next(r);i.complete()},void 0,()=>{n=null}))})}function Zf(t,e){let i=arguments.length>=2;return n=>n.pipe(t?ot((r,o)=>t(r,o,n)):rn,Es(1),i?xr(e):mu(()=>new ci))}function qf(t,e){return Me(Dy(t,e,arguments.length>=2,!0))}function Ga(t){return ot((e,i)=>t<=i)}function Ts(...t){let e=xi(t);return Me((i,n)=>{(e?Ai(t,i,e):Ai(t,i)).subscribe(n)})}function It(t,e){return Me((i,n)=>{let r=null,o=0,a=!1,c=()=>a&&!r&&n.complete();i.subscribe(_e(n,d=>{r?.unsubscribe();let f=0,m=o++;$e(t(d,m)).subscribe(r=_e(n,v=>n.next(e?e(d,v,m,f++):v),()=>{r=null,c()}))},()=>{a=!0,c()}))})}function pt(t){return Me((e,i)=>{$e(t).subscribe(_e(i,()=>i.complete(),li)),!i.closed&&e.subscribe(i)})}function Yf(t,e=!1){return Me((i,n)=>{let r=0;i.subscribe(_e(n,o=>{let a=t(o,r++);(a||e)&&n.next(o),!a&&n.complete()}))})}function yt(t,e,i){let n=ce(t)||e||i?{next:t,error:e,complete:i}:t;return n?Me((r,o)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let c=!0;r.subscribe(_e(o,d=>{var f;(f=n.next)===null||f===void 0||f.call(n,d),o.next(d)},()=>{var d;c=!1,(d=n.complete)===null||d===void 0||d.call(n),o.complete()},d=>{var f;c=!1,(f=n.error)===null||f===void 0||f.call(n,d),o.error(d)},()=>{var d,f;c&&((d=n.unsubscribe)===null||d===void 0||d.call(n)),(f=n.finalize)===null||f===void 0||f.call(n)}))}):rn}function Wa(...t){let e=Sr(t);return Me((i,n)=>{let r=t.length,o=new Array(r),a=t.map(()=>!1),c=!1;for(let d=0;d<r;d++)$e(t[d]).subscribe(_e(n,f=>{o[d]=f,!c&&!a[d]&&(a[d]=!0,(c=a.every(rn))&&(a=null))},li));i.subscribe(_e(n,d=>{if(c){let f=[d,...o];n.next(e?e(...f):f)}}))})}var f1="https://g.co/ng/security#xss",ne=class extends Error{constructor(e,i){super(Yu(e,i)),this.code=e}};function Yu(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function et(t){for(let e in t)if(t[e]===et)return e;throw Error("Could not find renamed property on target object.")}function RM(t,e){for(let i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function Dn(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Dn).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let i=e.indexOf(`
`);return i===-1?e:e.substring(0,i)}function pp(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var kM=et({__forward_ref__:et});function jt(t){return t.__forward_ref__=jt,t.toString=function(){return Dn(this())},t}function wn(t){return p1(t)?t():t}function p1(t){return typeof t=="function"&&t.hasOwnProperty(kM)&&t.__forward_ref__===jt}function m1(t){return t&&!!t.\u0275providers}var FM=et({\u0275cmp:et}),LM=et({\u0275dir:et}),BM=et({\u0275pipe:et}),VM=et({\u0275mod:et}),xu=et({\u0275fac:et}),Za=et({__NG_ELEMENT_ID__:et}),Ey=et({__NG_ENV_ID__:et});function Fi(t){return typeof t=="string"?t:t==null?"":String(t)}function jM(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Fi(t)}function $M(t,e){let i=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new ne(-200,t)}function ym(t,e){throw new ne(-201,!1)}function UM(t,e,i){t!=e&&wm(i,t,e,"==")}function wm(t,e,i,n){throw new Error(`ASSERTION ERROR: ${t}`+(n==null?"":` [Expected=> ${i} ${n} ${e} <=Actual]`))}function F(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Ot(t){return{providers:t.providers||[],imports:t.imports||[]}}function Qu(t){return Ty(t,_1)||Ty(t,v1)}function g1(t){return Qu(t)!==null}function Ty(t,e){return t.hasOwnProperty(e)?t[e]:null}function HM(t){let e=t&&(t[_1]||t[v1]);return e||null}function Sy(t){return t&&(t.hasOwnProperty(My)||t.hasOwnProperty(zM))?t[My]:null}var _1=et({\u0275prov:et}),My=et({\u0275inj:et}),v1=et({ngInjectableDef:et}),zM=et({ngInjectorDef:et}),Pe=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Pe||{}),mp;function y1(){return mp}function Pn(t){let e=mp;return mp=t,e}function w1(t,e,i){let n=Qu(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(i&Pe.Optional)return null;if(e!==void 0)return e;ym(t,"Injector")}var Vn=globalThis;var le=class{constructor(e,i){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof i=="number"?this.__NG_ELEMENT_ID__=i:i!==void 0&&(this.\u0275prov=F({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};var GM={},Ja=GM,gp="__NG_DI_FLAG__",Iu="ngTempTokenPath",WM="ngTokenPath",ZM=/\n/gm,qM="\u0275",xy="__source",Os;function YM(){return Os}function Or(t){let e=Os;return Os=t,e}function QM(t,e=Pe.Default){if(Os===void 0)throw new ne(-203,!1);return Os===null?w1(t,void 0,e):Os.get(t,e&Pe.Optional?null:void 0,e)}function re(t,e=Pe.Default){return(y1()||QM)(wn(t),e)}function D(t,e=Pe.Default){return re(t,Ju(e))}function Ju(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function _p(t){let e=[];for(let i=0;i<t.length;i++){let n=wn(t[i]);if(Array.isArray(n)){if(n.length===0)throw new ne(900,!1);let r,o=Pe.Default;for(let a=0;a<n.length;a++){let c=n[a],d=JM(c);typeof d=="number"?d===-1?r=c.token:o|=d:r=c}e.push(re(r,o))}else e.push(re(n))}return e}function b1(t,e){return t[gp]=e,t.prototype[gp]=e,t}function JM(t){return t[gp]}function KM(t,e,i,n){let r=t[Iu];throw e[xy]&&r.unshift(e[xy]),t.message=XM(`
`+t.message,r,i,n),t[WM]=r,t[Iu]=null,t}function XM(t,e,i,n=null){t=t&&t.charAt(0)===`
`&&t.charAt(1)==qM?t.slice(2):t;let r=Dn(e);if(Array.isArray(e))r=e.map(Dn).join(" -> ");else if(typeof e=="object"){let o=[];for(let a in e)if(e.hasOwnProperty(a)){let c=e[a];o.push(a+":"+(typeof c=="string"?JSON.stringify(c):Dn(c)))}r=`{${o.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${t.replace(ZM,`
  `)}`}function dl(t){return{toString:t}.toString()}var D1=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(D1||{}),Bi=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Bi||{}),Ps={},bn=[],st=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(st||{});function C1(t,e,i){let n=t.length;for(;;){let r=t.indexOf(e,i);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=e.length;if(r+o===n||t.charCodeAt(r+o)<=32)return r}i=r+1}}function vp(t,e,i){let n=0;for(;n<i.length;){let r=i[n];if(typeof r=="number"){if(r!==0)break;n++;let o=i[n++],a=i[n++],c=i[n++];t.setAttribute(e,a,c,o)}else{let o=r,a=i[++n];ex(o)?t.setProperty(e,o,a):t.setAttribute(e,o,a),n++}}return n}function E1(t){return t===3||t===4||t===6}function ex(t){return t.charCodeAt(0)===64}function Ka(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let i=-1;for(let n=0;n<e.length;n++){let r=e[n];typeof r=="number"?i=r:i===0||(i===-1||i===2?Iy(t,i,r,null,e[++n]):Iy(t,i,r,null,null))}}return t}function Iy(t,e,i,n,r){let o=0,a=t.length;if(e===-1)a=-1;else for(;o<t.length;){let c=t[o++];if(typeof c=="number"){if(c===e){a=-1;break}else if(c>e){a=o-1;break}}}for(;o<t.length;){let c=t[o];if(typeof c=="number")break;if(c===i){if(n===null){r!==null&&(t[o+1]=r);return}else if(n===t[o+1]){t[o+2]=r;return}}o++,n!==null&&o++,r!==null&&o++}a!==-1&&(t.splice(a,0,e),o=a+1),t.splice(o++,0,i),n!==null&&t.splice(o++,0,n),r!==null&&t.splice(o++,0,r)}var T1="ng-template";function tx(t,e,i){let n=0,r=!0;for(;n<t.length;){let o=t[n++];if(typeof o=="string"&&r){let a=t[n++];if(i&&o==="class"&&C1(a.toLowerCase(),e,0)!==-1)return!0}else if(o===1){for(;n<t.length&&typeof(o=t[n++])=="string";)if(o.toLowerCase()===e)return!0;return!1}else typeof o=="number"&&(r=!1)}return!1}function S1(t){return t.type===4&&t.value!==T1}function nx(t,e,i){let n=t.type===4&&!i?T1:t.value;return e===n}function ix(t,e,i){let n=4,r=t.attrs||[],o=sx(r),a=!1;for(let c=0;c<e.length;c++){let d=e[c];if(typeof d=="number"){if(!a&&!ui(n)&&!ui(d))return!1;if(a&&ui(d))continue;a=!1,n=d|n&1;continue}if(!a)if(n&4){if(n=2|n&1,d!==""&&!nx(t,d,i)||d===""&&e.length===1){if(ui(n))return!1;a=!0}}else{let f=n&8?d:e[++c];if(n&8&&t.attrs!==null){if(!tx(t.attrs,f,i)){if(ui(n))return!1;a=!0}continue}let m=n&8?"class":d,v=rx(m,r,S1(t),i);if(v===-1){if(ui(n))return!1;a=!0;continue}if(f!==""){let y;v>o?y="":y=r[v+1].toLowerCase();let g=n&8?y:null;if(g&&C1(g,f,0)!==-1||n&2&&f!==y){if(ui(n))return!1;a=!0}}}}return ui(n)||a}function ui(t){return(t&1)===0}function rx(t,e,i,n){if(e===null)return-1;let r=0;if(n||!i){let o=!1;for(;r<e.length;){let a=e[r];if(a===t)return r;if(a===3||a===6)o=!0;else if(a===1||a===2){let c=e[++r];for(;typeof c=="string";)c=e[++r];continue}else{if(a===4)break;if(a===0){r+=4;continue}}r+=o?1:2}return-1}else return ax(e,t)}function M1(t,e,i=!1){for(let n=0;n<e.length;n++)if(ix(t,e[n],i))return!0;return!1}function ox(t){let e=t.attrs;if(e!=null){let i=e.indexOf(5);if(!(i&1))return e[i+1]}return null}function sx(t){for(let e=0;e<t.length;e++){let i=t[e];if(E1(i))return e}return t.length}function ax(t,e){let i=t.indexOf(4);if(i>-1)for(i++;i<t.length;){let n=t[i];if(typeof n=="number")return-1;if(n===e)return i;i++}return-1}function lx(t,e){e:for(let i=0;i<e.length;i++){let n=e[i];if(t.length===n.length){for(let r=0;r<t.length;r++)if(t[r]!==n[r])continue e;return!0}}return!1}function Oy(t,e){return t?":not("+e.trim()+")":e}function cx(t){let e=t[0],i=1,n=2,r="",o=!1;for(;i<t.length;){let a=t[i];if(typeof a=="string")if(n&2){let c=t[++i];r+="["+a+(c.length>0?'="'+c+'"':"")+"]"}else n&8?r+="."+a:n&4&&(r+=" "+a);else r!==""&&!ui(a)&&(e+=Oy(o,r),r=""),n=a,o=o||!ui(n);i++}return r!==""&&(e+=Oy(o,r)),e}function ux(t){return t.map(cx).join(",")}function dx(t){let e=[],i=[],n=1,r=2;for(;n<t.length;){let o=t[n];if(typeof o=="string")r===2?o!==""&&e.push(o,t[++n]):r===8&&i.push(o);else{if(!ui(r))break;r=o}n++}return{attrs:e,classes:i}}function bt(t){return dl(()=>{let e=O1(t),i=je(z({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===D1.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Bi.Emulated,styles:t.styles||bn,_:null,schemas:t.schemas||null,tView:null,id:""});A1(i);let n=t.dependencies;return i.directiveDefs=Py(n,!1),i.pipeDefs=Py(n,!0),i.id=px(i),i})}function hx(t){return fi(t)||bm(t)}function fx(t){return t!==null}function At(t){return dl(()=>({type:t.type,bootstrap:t.bootstrap||bn,declarations:t.declarations||bn,imports:t.imports||bn,exports:t.exports||bn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Ay(t,e){if(t==null)return Ps;let i={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o,a,c=st.None;Array.isArray(r)?(c=r[0],o=r[1],a=r[2]??o):(o=r,a=r),e?(i[o]=c!==st.None?[n,c]:n,e[o]=a):i[o]=n}return i}function fe(t){return dl(()=>{let e=O1(t);return A1(e),e})}function js(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function fi(t){return t[FM]||null}function bm(t){return t[LM]||null}function Dm(t){return t[BM]||null}function x1(t){let e=fi(t)||bm(t)||Dm(t);return e!==null?e.standalone:!1}function I1(t,e){let i=t[VM]||null;if(!i&&e===!0)throw new Error(`Type ${Dn(t)} does not have '\u0275mod' property.`);return i}function O1(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Ps,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||bn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ay(t.inputs,e),outputs:Ay(t.outputs),debugInfo:null}}function A1(t){t.features?.forEach(e=>e(t))}function Py(t,e){if(!t)return null;let i=e?Dm:hx;return()=>(typeof t=="function"?t():t).map(n=>i(n)).filter(fx)}function px(t){let e=0,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of i)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,"c"+e}var lr=0,ue=1,he=2,Yt=3,hi=4,Fn=5,Ns=6,Xa=7,sn=8,Pr=9,ar=10,Ke=11,el=12,Ny=13,$s=14,Rn=15,hl=16,Ss=17,Li=18,Ku=19,P1=20,Ar=21,Qf=22,_o=23,wt=25,N1=1;var vo=7,Ou=8,Rs=9,mn=10,Cm=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Cm||{});function mo(t){return Array.isArray(t)&&typeof t[N1]=="object"}function cr(t){return Array.isArray(t)&&t[N1]===!0}function Em(t){return(t.flags&4)!==0}function Xu(t){return t.componentOffset>-1}function ed(t){return(t.flags&1)===1}function Nr(t){return!!t.template}function mx(t){return(t[he]&512)!==0}function gx(t){return(t[he]&256)===256}function yo(t,e){let i=t.hasOwnProperty(xu);return i?t[xu]:null}var yp=class{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}};function R1(t,e,i,n){e!==null?e.applyValueToInputSignal(e,n):t[i]=n}function dt(){return k1}function k1(t){return t.type.prototype.ngOnChanges&&(t.setInput=vx),_x}dt.ngInherit=!0;function _x(){let t=L1(this),e=t?.current;if(e){let i=t.previous;if(i===Ps)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function vx(t,e,i,n,r){let o=this.declaredInputs[n],a=L1(t)||yx(t,{previous:Ps,current:null}),c=a.current||(a.current={}),d=a.previous,f=d[o];c[o]=new yp(f&&f.currentValue,i,d===Ps),R1(t,e,r,i)}var F1="__ngSimpleChanges__";function L1(t){return t[F1]||null}function yx(t,e){return t[F1]=e}var Ry=null;var Ri=function(t,e,i){Ry?.(t,e,i)},B1="svg",wx="math",bx=!1;function Dx(){return bx}function Zn(t){for(;Array.isArray(t);)t=t[lr];return t}function td(t,e){return Zn(e[t])}function qn(t,e){return Zn(e[t.index])}function fl(t,e){return t.data[e]}function Tm(t,e){return t[e]}function kr(t,e){let i=e[t];return mo(i)?i:i[lr]}function Cx(t){return(t[he]&4)===4}function Sm(t){return(t[he]&128)===128}function Ex(t){return cr(t[Yt])}function wo(t,e){return e==null?null:t[e]}function V1(t){t[Ss]=0}function Tx(t){t[he]&1024||(t[he]|=1024,Sm(t)&&tl(t))}function Sx(t,e){for(;t>0;)e=e[$s],t--;return e}function Mm(t){return!!(t[he]&9216||t[_o]?.dirty)}function wp(t){Mm(t)?tl(t):t[he]&64&&(Dx()?(t[he]|=1024,tl(t)):t[ar].changeDetectionScheduler?.notify())}function tl(t){t[ar].changeDetectionScheduler?.notify();let e=nl(t);for(;e!==null&&!(e[he]&8192||(e[he]|=8192,!Sm(e)));)e=nl(e)}function xm(t,e){if((t[he]&256)===256)throw new ne(911,!1);t[Ar]===null&&(t[Ar]=[]),t[Ar].push(e)}function j1(t,e){if(t[Ar]===null)return;let i=t[Ar].indexOf(e);i!==-1&&t[Ar].splice(i,1)}function nl(t){let e=t[Yt];return cr(e)?e[Yt]:e}var Te={lFrame:q1(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Mx(){return Te.lFrame.elementDepthCount}function xx(){Te.lFrame.elementDepthCount++}function Ix(){Te.lFrame.elementDepthCount--}function $1(){return Te.bindingsEnabled}function U1(){return Te.skipHydrationRootTNode!==null}function Ox(t){return Te.skipHydrationRootTNode===t}function Ax(){Te.skipHydrationRootTNode=null}function ye(){return Te.lFrame.lView}function mt(){return Te.lFrame.tView}function Fe(t){return Te.lFrame.contextLView=t,t[sn]}function Le(t){return Te.lFrame.contextLView=null,t}function gn(){let t=H1();for(;t!==null&&t.type===64;)t=t.parent;return t}function H1(){return Te.lFrame.currentTNode}function il(){let t=Te.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Vi(t,e){let i=Te.lFrame;i.currentTNode=t,i.isParent=e}function Im(){return Te.lFrame.isParent}function Om(){Te.lFrame.isParent=!1}function Px(){return Te.lFrame.contextLView}function pl(){let t=Te.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Am(){return Te.lFrame.bindingIndex}function Nx(t){return Te.lFrame.bindingIndex=t}function Fr(){return Te.lFrame.bindingIndex++}function nd(t){let e=Te.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function Rx(){return Te.lFrame.inI18n}function z1(t){Te.lFrame.inI18n=t}function kx(t,e){let i=Te.lFrame;i.bindingIndex=i.bindingRootIndex=t,bp(e)}function Fx(){return Te.lFrame.currentDirectiveIndex}function bp(t){Te.lFrame.currentDirectiveIndex=t}function Lx(t){let e=Te.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function G1(){return Te.lFrame.currentQueryIndex}function Pm(t){Te.lFrame.currentQueryIndex=t}function Bx(t){let e=t[ue];return e.type===2?e.declTNode:e.type===1?t[Fn]:null}function W1(t,e,i){if(i&Pe.SkipSelf){let r=e,o=t;for(;r=r.parent,r===null&&!(i&Pe.Host);)if(r=Bx(o),r===null||(o=o[$s],r.type&10))break;if(r===null)return!1;e=r,t=o}let n=Te.lFrame=Z1();return n.currentTNode=e,n.lView=t,!0}function Nm(t){let e=Z1(),i=t[ue];Te.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function Z1(){let t=Te.lFrame,e=t===null?null:t.child;return e===null?q1(t):e}function q1(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Y1(){let t=Te.lFrame;return Te.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Q1=Y1;function Rm(){let t=Y1();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Vx(t){return(Te.lFrame.contextLView=Sx(t,Te.lFrame.contextLView))[sn]}function Hi(){return Te.lFrame.selectedIndex}function bo(t){Te.lFrame.selectedIndex=t}function ml(){let t=Te.lFrame;return fl(t.tView,t.selectedIndex)}function an(){Te.lFrame.currentNamespace=B1}function ln(){jx()}function jx(){Te.lFrame.currentNamespace=null}function $x(){return Te.lFrame.currentNamespace}var J1=!0;function id(){return J1}function rd(t){J1=t}function Ux(t,e,i){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(n){let a=k1(e);(i.preOrderHooks??=[]).push(t,a),(i.preOrderCheckHooks??=[]).push(t,a)}r&&(i.preOrderHooks??=[]).push(0-t,r),o&&((i.preOrderHooks??=[]).push(t,o),(i.preOrderCheckHooks??=[]).push(t,o))}function od(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i<n;i++){let o=t.data[i].type.prototype,{ngAfterContentInit:a,ngAfterContentChecked:c,ngAfterViewInit:d,ngAfterViewChecked:f,ngOnDestroy:m}=o;a&&(t.contentHooks??=[]).push(-i,a),c&&((t.contentHooks??=[]).push(i,c),(t.contentCheckHooks??=[]).push(i,c)),d&&(t.viewHooks??=[]).push(-i,d),f&&((t.viewHooks??=[]).push(i,f),(t.viewCheckHooks??=[]).push(i,f)),m!=null&&(t.destroyHooks??=[]).push(i,m)}}function bu(t,e,i){K1(t,e,3,i)}function Du(t,e,i,n){(t[he]&3)===i&&K1(t,e,i,n)}function Jf(t,e){let i=t[he];(i&3)===e&&(i&=16383,i+=1,t[he]=i)}function K1(t,e,i,n){let r=n!==void 0?t[Ss]&65535:0,o=n??-1,a=e.length-1,c=0;for(let d=r;d<a;d++)if(typeof e[d+1]=="number"){if(c=e[d],n!=null&&c>=n)break}else e[d]<0&&(t[Ss]+=65536),(c<o||o==-1)&&(Hx(t,i,e,d),t[Ss]=(t[Ss]&4294901760)+d+2),d++}function ky(t,e){Ri(4,t,e);let i=Bt(null);try{e.call(t)}finally{Bt(i),Ri(5,t,e)}}function Hx(t,e,i,n){let r=i[n]<0,o=i[n+1],a=r?-i[n]:i[n],c=t[a];r?t[he]>>14<t[Ss]>>16&&(t[he]&3)===e&&(t[he]+=16384,ky(c,o)):ky(c,o)}var As=-1,Do=class{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}};function zx(t){return t instanceof Do}function Gx(t){return(t.flags&8)!==0}function Wx(t){return(t.flags&16)!==0}function X1(t){return t!==As}function Au(t){return t&32767}function Zx(t){return t>>16}function Pu(t,e){let i=Zx(t),n=e;for(;i>0;)n=n[$s],i--;return n}var Dp=!0;function Nu(t){let e=Dp;return Dp=t,e}var qx=256,ew=qx-1,tw=5,Yx=0,ki={};function Qx(t,e,i){let n;typeof i=="string"?n=i.charCodeAt(0)||0:i.hasOwnProperty(Za)&&(n=i[Za]),n==null&&(n=i[Za]=Yx++);let r=n&ew,o=1<<r;e.data[t+(r>>tw)]|=o}function Ru(t,e){let i=nw(t,e);if(i!==-1)return i;let n=e[ue];n.firstCreatePass&&(t.injectorIndex=e.length,Kf(n.data,t),Kf(e,null),Kf(n.blueprint,null));let r=km(t,e),o=t.injectorIndex;if(X1(r)){let a=Au(r),c=Pu(r,e),d=c[ue].data;for(let f=0;f<8;f++)e[o+f]=c[a+f]|d[a+f]}return e[o+8]=r,o}function Kf(t,e){t.push(0,0,0,0,0,0,0,0,e)}function nw(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function km(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let i=0,n=null,r=e;for(;r!==null;){if(n=aw(r),n===null)return As;if(i++,r=r[$s],n.injectorIndex!==-1)return n.injectorIndex|i<<16}return As}function Cp(t,e,i){Qx(t,e,i)}function Jx(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let i=t.attrs;if(i){let n=i.length,r=0;for(;r<n;){let o=i[r];if(E1(o))break;if(o===0)r=r+2;else if(typeof o=="number")for(r++;r<n&&typeof i[r]=="string";)r++;else{if(o===e)return i[r+1];r=r+2}}}return null}function iw(t,e,i){if(i&Pe.Optional||t!==void 0)return t;ym(e,"NodeInjector")}function rw(t,e,i,n){if(i&Pe.Optional&&n===void 0&&(n=null),!(i&(Pe.Self|Pe.Host))){let r=t[Pr],o=Pn(void 0);try{return r?r.get(e,n,i&Pe.Optional):w1(e,n,i&Pe.Optional)}finally{Pn(o)}}return iw(n,e,i)}function ow(t,e,i,n=Pe.Default,r){if(t!==null){if(e[he]&2048&&!(n&Pe.Self)){let a=tI(t,e,i,n,ki);if(a!==ki)return a}let o=sw(t,e,i,n,ki);if(o!==ki)return o}return rw(e,i,n,r)}function sw(t,e,i,n,r){let o=Xx(i);if(typeof o=="function"){if(!W1(e,t,n))return n&Pe.Host?iw(r,i,n):rw(e,i,n,r);try{let a;if(a=o(n),a==null&&!(n&Pe.Optional))ym(i);else return a}finally{Q1()}}else if(typeof o=="number"){let a=null,c=nw(t,e),d=As,f=n&Pe.Host?e[Rn][Fn]:null;for((c===-1||n&Pe.SkipSelf)&&(d=c===-1?km(t,e):e[c+8],d===As||!Ly(n,!1)?c=-1:(a=e[ue],c=Au(d),e=Pu(d,e)));c!==-1;){let m=e[ue];if(Fy(o,c,m.data)){let v=Kx(c,e,i,a,n,f);if(v!==ki)return v}d=e[c+8],d!==As&&Ly(n,e[ue].data[c+8]===f)&&Fy(o,c,e)?(a=m,c=Au(d),e=Pu(d,e)):c=-1}}return r}function Kx(t,e,i,n,r,o){let a=e[ue],c=a.data[t+8],d=n==null?Xu(c)&&Dp:n!=a&&(c.type&3)!==0,f=r&Pe.Host&&o===c,m=Cu(c,a,i,d,f);return m!==null?Co(e,a,m,c):ki}function Cu(t,e,i,n,r){let o=t.providerIndexes,a=e.data,c=o&1048575,d=t.directiveStart,f=t.directiveEnd,m=o>>20,v=n?c:c+m,y=r?c+m:f;for(let g=v;g<y;g++){let b=a[g];if(g<d&&i===b||g>=d&&b.type===i)return g}if(r){let g=a[d];if(g&&Nr(g)&&g.type===i)return d}return null}function Co(t,e,i,n){let r=t[i],o=e.data;if(zx(r)){let a=r;a.resolving&&$M(jM(o[i]));let c=Nu(a.canSeeViewProviders);a.resolving=!0;let d,f=a.injectImpl?Pn(a.injectImpl):null,m=W1(t,n,Pe.Default);try{r=t[i]=a.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&Ux(i,o[i],e)}finally{f!==null&&Pn(f),Nu(c),a.resolving=!1,Q1()}}return r}function Xx(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Za)?t[Za]:void 0;return typeof e=="number"?e>=0?e&ew:eI:e}function Fy(t,e,i){let n=1<<t;return!!(i[e+(t>>tw)]&n)}function Ly(t,e){return!(t&Pe.Self)&&!(t&Pe.Host&&e)}var go=class{constructor(e,i){this._tNode=e,this._lView=i}get(e,i,n){return ow(this._tNode,this._lView,e,Ju(n),i)}};function eI(){return new go(gn(),ye())}function Pt(t){return dl(()=>{let e=t.prototype.constructor,i=e[xu]||Ep(e),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let o=r[xu]||Ep(r);if(o&&o!==i)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Ep(t){return p1(t)?()=>{let e=Ep(wn(t));return e&&e()}:yo(t)}function tI(t,e,i,n,r){let o=t,a=e;for(;o!==null&&a!==null&&a[he]&2048&&!(a[he]&512);){let c=sw(o,a,i,n|Pe.Self,ki);if(c!==ki)return c;let d=o.parent;if(!d){let f=a[P1];if(f){let m=f.get(i,ki,n);if(m!==ki)return m}d=aw(a),a=a[$s]}o=d}return r}function aw(t){let e=t[ue],i=e.type;return i===2?e.declTNode:i===1?t[Fn]:null}function Lr(t){return Jx(gn(),t)}var gu="__parameters__";function nI(t){return function(...i){if(t){let n=t(...i);for(let r in n)this[r]=n[r]}}}function lw(t,e,i){return dl(()=>{let n=nI(e);function r(...o){if(this instanceof r)return n.apply(this,o),this;let a=new r(...o);return c.annotation=a,c;function c(d,f,m){let v=d.hasOwnProperty(gu)?d[gu]:Object.defineProperty(d,gu,{value:[]})[gu];for(;v.length<=m;)v.push(null);return(v[m]=v[m]||[]).push(a),d}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}function iI(t){return typeof t=="function"}function rI(t,e,i){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],o=e[n];if(i&&(r=i(r),o=i(o)),o!==r)return!1}return!0}function oI(t){return t.flat(Number.POSITIVE_INFINITY)}function Fm(t,e){t.forEach(i=>Array.isArray(i)?Fm(i,e):e(i))}function cw(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function ku(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function sI(t,e){let i=[];for(let n=0;n<t;n++)i.push(e);return i}function aI(t,e,i,n){let r=t.length;if(r==e)t.push(i,n);else if(r===1)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;){let o=r-2;t[r]=t[o],r--}t[e]=i,t[e+1]=n}}function Lm(t,e,i){let n=gl(t,e);return n>=0?t[n|1]=i:(n=~n,aI(t,n,e,i)),n}function Xf(t,e){let i=gl(t,e);if(i>=0)return t[i|1]}function gl(t,e){return lI(t,e,1)}function lI(t,e,i){let n=0,r=t.length>>i;for(;r!==n;){let o=n+(r-n>>1),a=t[o<<i];if(e===a)return o<<i;a>e?r=o:n=o+1}return~(r<<i)}var sd=b1(lw("Optional"),8);var Bm=b1(lw("SkipSelf"),4);var ks=new le(""),uw=new le("",-1),dw=new le(""),Fu=class{get(e,i=Ja){if(i===Ja){let n=new Error(`NullInjectorError: No provider for ${Dn(e)}!`);throw n.name="NullInjectorError",n}return i}};function Us(t){return{\u0275providers:t}}function cI(...t){return{\u0275providers:hw(!0,t),\u0275fromNgModule:!0}}function hw(t,...e){let i=[],n=new Set,r,o=a=>{i.push(a)};return Fm(e,a=>{let c=a;Tp(c,o,[],n)&&(r||=[],r.push(c))}),r!==void 0&&fw(r,o),i}function fw(t,e){for(let i=0;i<t.length;i++){let{ngModule:n,providers:r}=t[i];Vm(r,o=>{e(o,n)})}}function Tp(t,e,i,n){if(t=wn(t),!t)return!1;let r=null,o=Sy(t),a=!o&&fi(t);if(!o&&!a){let d=t.ngModule;if(o=Sy(d),o)r=d;else return!1}else{if(a&&!a.standalone)return!1;r=t}let c=n.has(r);if(a){if(c)return!1;if(n.add(r),a.dependencies){let d=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let f of d)Tp(f,e,i,n)}}else if(o){if(o.imports!=null&&!c){n.add(r);let f;try{Fm(o.imports,m=>{Tp(m,e,i,n)&&(f||=[],f.push(m))})}finally{}f!==void 0&&fw(f,e)}if(!c){let f=yo(r)||(()=>new r);e({provide:r,useFactory:f,deps:bn},r),e({provide:dw,useValue:r,multi:!0},r),e({provide:ks,useValue:()=>re(r),multi:!0},r)}let d=o.providers;if(d!=null&&!c){let f=t;Vm(d,m=>{e(m,f)})}}else return!1;return r!==t&&t.providers!==void 0}function Vm(t,e){for(let i of t)m1(i)&&(i=i.\u0275providers),Array.isArray(i)?Vm(i,e):e(i)}var uI=et({provide:String,useValue:et});function pw(t){return t!==null&&typeof t=="object"&&uI in t}function dI(t){return!!(t&&t.useExisting)}function hI(t){return!!(t&&t.useFactory)}function Fs(t){return typeof t=="function"}function fI(t){return!!t.useClass}var ad=new le(""),Eu={},pI={},ep;function ld(){return ep===void 0&&(ep=new Fu),ep}var Qt=class{},rl=class extends Qt{get destroyed(){return this._destroyed}constructor(e,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Mp(e,a=>this.processProvider(a)),this.records.set(uw,Ms(void 0,this)),r.has("environment")&&this.records.set(Qt,Ms(void 0,this));let o=this.records.get(ad);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(dw,bn,Pe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let i=Or(this),n=Pn(void 0),r;try{return e()}finally{Or(i),Pn(n)}}get(e,i=Ja,n=Pe.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Ey))return e[Ey](this);n=Ju(n);let r,o=Or(this),a=Pn(void 0);try{if(!(n&Pe.SkipSelf)){let d=this.records.get(e);if(d===void 0){let f=yI(e)&&Qu(e);f&&this.injectableDefInScope(f)?d=Ms(Sp(e),Eu):d=null,this.records.set(e,d)}if(d!=null)return this.hydrate(e,d)}let c=n&Pe.Self?ld():this.parent;return i=n&Pe.Optional&&i===Ja?null:i,c.get(e,i)}catch(c){if(c.name==="NullInjectorError"){if((c[Iu]=c[Iu]||[]).unshift(Dn(e)),o)throw c;return KM(c,e,"R3InjectorError",this.source)}else throw c}finally{Pn(a),Or(o)}}resolveInjectorInitializers(){let e=Or(this),i=Pn(void 0),n;try{let r=this.get(ks,bn,Pe.Self);for(let o of r)o()}finally{Or(e),Pn(i)}}toString(){let e=[],i=this.records;for(let n of i.keys())e.push(Dn(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ne(205,!1)}processProvider(e){e=wn(e);let i=Fs(e)?e:wn(e&&e.provide),n=gI(e);if(!Fs(e)&&e.multi===!0){let r=this.records.get(i);r||(r=Ms(void 0,Eu,!0),r.factory=()=>_p(r.multi),this.records.set(i,r)),i=e,r.multi.push(e)}this.records.set(i,n)}hydrate(e,i){return i.value===Eu&&(i.value=pI,i.value=i.factory()),typeof i.value=="object"&&i.value&&vI(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}injectableDefInScope(e){if(!e.providedIn)return!1;let i=wn(e.providedIn);return typeof i=="string"?i==="any"||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){let i=this._onDestroyHooks.indexOf(e);i!==-1&&this._onDestroyHooks.splice(i,1)}};function Sp(t){let e=Qu(t),i=e!==null?e.factory:yo(t);if(i!==null)return i;if(t instanceof le)throw new ne(204,!1);if(t instanceof Function)return mI(t);throw new ne(204,!1)}function mI(t){if(t.length>0)throw new ne(204,!1);let i=HM(t);return i!==null?()=>i.factory(t):()=>new t}function gI(t){if(pw(t))return Ms(void 0,t.useValue);{let e=mw(t);return Ms(e,Eu)}}function mw(t,e,i){let n;if(Fs(t)){let r=wn(t);return yo(r)||Sp(r)}else if(pw(t))n=()=>wn(t.useValue);else if(hI(t))n=()=>t.useFactory(..._p(t.deps||[]));else if(dI(t))n=()=>re(wn(t.useExisting));else{let r=wn(t&&(t.useClass||t.provide));if(_I(t))n=()=>new r(..._p(t.deps));else return yo(r)||Sp(r)}return n}function Ms(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function _I(t){return!!t.deps}function vI(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function yI(t){return typeof t=="function"||typeof t=="object"&&t instanceof le}function Mp(t,e){for(let i of t)Array.isArray(i)?Mp(i,e):i&&m1(i)?Mp(i.\u0275providers,e):e(i)}function zi(t,e){t instanceof rl&&t.assertNotDestroyed();let i,n=Or(t),r=Pn(void 0);try{return e()}finally{Or(n),Pn(r)}}function jm(t){if(!y1()&&!YM())throw new ne(-203,!1)}function By(t,e=null,i=null,n){let r=gw(t,e,i,n);return r.resolveInjectorInitializers(),r}function gw(t,e=null,i=null,n,r=new Set){let o=[i||bn,cI(t)];return n=n||(typeof t=="object"?void 0:Dn(t)),new rl(o,e||ld(),n||null,r)}var cn=(()=>{let e=class e{static create(n,r){if(Array.isArray(n))return By({name:""},r,n,"");{let o=n.name??"";return By({name:o},n.parent,n.providers,o)}}};e.THROW_IF_NOT_FOUND=Ja,e.NULL=new Fu,e.\u0275prov=F({token:e,providedIn:"any",factory:()=>re(uw)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();var xp;function _w(t){xp=t}function vw(){if(xp!==void 0)return xp;if(typeof document<"u")return document;throw new ne(210,!1)}var $m=new le("",{providedIn:"root",factory:()=>wI}),wI="ng",Um=new le(""),Yn=new le("",{providedIn:"platform",factory:()=>"unknown"});var Hm=new le("",{providedIn:"root",factory:()=>vw().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function yw(t){return t instanceof Function?t():t}function ww(t){return(t??D(cn)).get(Yn)==="browser"}function bI(t){wm("Must never be called in production mode");let i=t[Rn][sn];return i&&i.constructor?fi(i.constructor):null}function DI(t){wm("Must never be called in production mode");let i=bI(t)?.type?.name;return i?` (used in the '${i}' component template)`:""}function bw(t){return(t.flags&128)===128}var ji=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(ji||{}),CI=/^>|^->|<!--|-->|--!>|<!-$/g,EI=/(<|>)/g,TI="\u200B$1\u200B";function SI(t){return t.replace(CI,e=>e.replace(EI,TI))}var Dw=new Map,MI=0;function xI(){return MI++}function II(t){Dw.set(t[Ku],t)}function OI(t){Dw.delete(t[Ku])}var Vy="__ngContext__";function $i(t,e){mo(e)?(t[Vy]=e[Ku],II(e)):t[Vy]=e}var Ip;function zm(t,e){return Ip(t,e)}function AI(t){Ip===void 0&&(Ip=t())}function xs(t,e,i,n,r){if(n!=null){let o,a=!1;cr(n)?o=n:mo(n)&&(a=!0,n=n[lr]);let c=Zn(n);t===0&&i!==null?r==null?Iw(e,i,c):Eo(e,i,c,r||null,!0):t===1&&i!==null?Eo(e,i,c,r||null,!0):t===2?kw(e,c,a):t===3&&e.destroyNode(c),o!=null&&UI(e,t,o,i,r)}}function Gm(t,e){return t.createText(e)}function Cw(t,e,i){t.setValue(e,i)}function Ew(t,e){return t.createComment(SI(e))}function Wm(t,e,i){return t.createElement(e,i)}function PI(t,e){Tw(t,e),e[lr]=null,e[Fn]=null}function NI(t,e,i,n,r,o){n[lr]=r,n[Fn]=e,hd(t,n,i,1,r,o)}function Tw(t,e){hd(t,e,e[Ke],2,null,null)}function RI(t){let e=t[el];if(!e)return tp(t[ue],t);for(;e;){let i=null;if(mo(e))i=e[el];else{let n=e[mn];n&&(i=n)}if(!i){for(;e&&!e[hi]&&e!==t;)mo(e)&&tp(e[ue],e),e=e[Yt];e===null&&(e=t),mo(e)&&tp(e[ue],e),i=e&&e[hi]}e=i}}function kI(t,e,i,n){let r=mn+n,o=i.length;n>0&&(i[r-1][hi]=e),n<o-mn?(e[hi]=i[r],cw(i,mn+n,e)):(i.push(e),e[hi]=null),e[Yt]=i;let a=e[hl];a!==null&&i!==a&&FI(a,e);let c=e[Li];c!==null&&c.insertView(t),wp(e),e[he]|=128}function FI(t,e){let i=t[Rs],r=e[Yt][Yt][Rn];e[Rn]!==r&&(t[he]|=Cm.HasTransplantedViews),i===null?t[Rs]=[e]:i.push(e)}function Sw(t,e){let i=t[Rs],n=i.indexOf(e);i.splice(n,1)}function ol(t,e){if(t.length<=mn)return;let i=mn+e,n=t[i];if(n){let r=n[hl];r!==null&&r!==t&&Sw(r,n),e>0&&(t[i-1][hi]=n[hi]);let o=ku(t,mn+e);PI(n[ue],n);let a=o[Li];a!==null&&a.detachView(o[ue]),n[Yt]=null,n[hi]=null,n[he]&=-129}return n}function cd(t,e){if(!(e[he]&256)){let i=e[Ke];i.destroyNode&&hd(t,e,i,3,null,null),RI(e)}}function tp(t,e){if(!(e[he]&256)){e[he]&=-129,e[he]|=256,e[_o]&&U0(e[_o]),BI(t,e),LI(t,e),e[ue].type===1&&e[Ke].destroy();let i=e[hl];if(i!==null&&cr(e[Yt])){i!==e[Yt]&&Sw(i,e);let n=e[Li];n!==null&&n.detachView(t)}OI(e)}}function LI(t,e){let i=t.cleanup,n=e[Xa];if(i!==null)for(let o=0;o<i.length-1;o+=2)if(typeof i[o]=="string"){let a=i[o+3];a>=0?n[a]():n[-a].unsubscribe(),o+=2}else{let a=n[i[o+1]];i[o].call(a)}n!==null&&(e[Xa]=null);let r=e[Ar];if(r!==null){e[Ar]=null;for(let o=0;o<r.length;o++){let a=r[o];a()}}}function BI(t,e){let i;if(t!=null&&(i=t.destroyHooks)!=null)for(let n=0;n<i.length;n+=2){let r=e[i[n]];if(!(r instanceof Do)){let o=i[n+1];if(Array.isArray(o))for(let a=0;a<o.length;a+=2){let c=r[o[a]],d=o[a+1];Ri(4,c,d);try{d.call(c)}finally{Ri(5,c,d)}}else{Ri(4,r,o);try{o.call(r)}finally{Ri(5,r,o)}}}}}function Mw(t,e,i){return xw(t,e.parent,i)}function xw(t,e,i){let n=e;for(;n!==null&&n.type&40;)e=n,n=e.parent;if(n===null)return i[lr];{let{componentOffset:r}=n;if(r>-1){let{encapsulation:o}=t.data[n.directiveStart+r];if(o===Bi.None||o===Bi.Emulated)return null}return qn(n,i)}}function Eo(t,e,i,n,r){t.insertBefore(e,i,n,r)}function Iw(t,e,i){t.appendChild(e,i)}function jy(t,e,i,n,r){n!==null?Eo(t,e,i,n,r):Iw(t,e,i)}function VI(t,e,i,n){t.removeChild(e,i,n)}function ud(t,e){return t.parentNode(e)}function jI(t,e){return t.nextSibling(e)}function Ow(t,e,i){return Pw(t,e,i)}function Aw(t,e,i){return t.type&40?qn(t,i):null}var Pw=Aw,Op;function Nw(t,e){Pw=t,Op=e}function dd(t,e,i,n){let r=Mw(t,n,e),o=e[Ke],a=n.parent||e[Fn],c=Ow(a,n,e);if(r!=null)if(Array.isArray(i))for(let d=0;d<i.length;d++)jy(o,r,i[d],c,!1);else jy(o,r,i,c,!1);Op!==void 0&&Op(o,n,e,i,r)}function Tu(t,e){if(e!==null){let i=e.type;if(i&3)return qn(e,t);if(i&4)return Ap(-1,t[e.index]);if(i&8){let n=e.child;if(n!==null)return Tu(t,n);{let r=t[e.index];return cr(r)?Ap(-1,r):Zn(r)}}else{if(i&32)return zm(e,t)()||Zn(t[e.index]);{let n=Rw(t,e);if(n!==null){if(Array.isArray(n))return n[0];let r=nl(t[Rn]);return Tu(r,n)}else return Tu(t,e.next)}}}return null}function Rw(t,e){if(e!==null){let n=t[Rn][Fn],r=e.projection;return n.projection[r]}return null}function Ap(t,e){let i=mn+t+1;if(i<e.length){let n=e[i],r=n[ue].firstChild;if(r!==null)return Tu(n,r)}return e[vo]}function kw(t,e,i){let n=ud(t,e);n&&VI(t,n,e,i)}function Zm(t,e,i,n,r,o,a){for(;i!=null;){let c=n[i.index],d=i.type;if(a&&e===0&&(c&&$i(Zn(c),n),i.flags|=2),(i.flags&32)!==32)if(d&8)Zm(t,e,i.child,n,r,o,!1),xs(e,t,r,c,o);else if(d&32){let f=zm(i,n),m;for(;m=f();)xs(e,t,r,m,o);xs(e,t,r,c,o)}else d&16?Fw(t,e,n,i,r,o):xs(e,t,r,c,o);i=a?i.projectionNext:i.next}}function hd(t,e,i,n,r,o){Zm(i,n,t.firstChild,e,r,o,!1)}function $I(t,e,i){let n=e[Ke],r=Mw(t,i,e),o=i.parent||e[Fn],a=Ow(o,i,e);Fw(n,0,e,i,r,a)}function Fw(t,e,i,n,r,o){let a=i[Rn],d=a[Fn].projection[n.projection];if(Array.isArray(d))for(let f=0;f<d.length;f++){let m=d[f];xs(e,t,r,m,o)}else{let f=d,m=a[Yt];bw(n)&&(f.flags|=128),Zm(t,e,f,m,r,o,!0)}}function UI(t,e,i,n,r){let o=i[vo],a=Zn(i);o!==a&&xs(e,t,n,o,r);for(let c=mn;c<i.length;c++){let d=i[c];hd(d[ue],d,t,e,n,o)}}function HI(t,e,i,n,r){if(e)r?t.addClass(i,n):t.removeClass(i,n);else{let o=n.indexOf("-")===-1?void 0:ji.DashCase;r==null?t.removeStyle(i,n,o):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=ji.Important),t.setStyle(i,n,r,o))}}function zI(t,e,i){t.setAttribute(e,"style",i)}function Lw(t,e,i){i===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",i)}function Bw(t,e,i){let{mergedAttrs:n,classes:r,styles:o}=i;n!==null&&vp(t,e,n),r!==null&&Lw(t,e,r),o!==null&&zI(t,e,o)}var _u;function GI(){if(_u===void 0&&(_u=null,Vn.trustedTypes))try{_u=Vn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return _u}function qm(t){return GI()?.createHTML(t)||t}var vu;function WI(){if(vu===void 0&&(vu=null,Vn.trustedTypes))try{vu=Vn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return vu}function $y(t){return WI()?.createScriptURL(t)||t}var Lu=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${f1})`}};function Hs(t){return t instanceof Lu?t.changingThisBreaksApplicationSecurity:t}function Ym(t,e){let i=ZI(t);if(i!=null&&i!==e){if(i==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${i} (see ${f1})`)}return i===e}function ZI(t){return t instanceof Lu&&t.getTypeName()||null}function qI(t){let e=new Np(t);return YI()?new Pp(e):e}var Pp=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let i=new window.DOMParser().parseFromString(qm(e),"text/html").body;return i===null?this.inertDocumentHelper.getInertBodyElement(e):(i.removeChild(i.firstChild),i)}catch{return null}}},Np=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let i=this.inertDocument.createElement("template");return i.innerHTML=qm(e),i}};function YI(){try{return!!new window.DOMParser().parseFromString(qm(""),"text/html")}catch{return!1}}var QI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Qm(t){return t=String(t),t.match(QI)?t:"unsafe:"+t}function Br(t){let e={};for(let i of t.split(","))e[i]=!0;return e}function _l(...t){let e={};for(let i of t)for(let n in i)i.hasOwnProperty(n)&&(e[n]=!0);return e}var JI=Br("area,br,col,hr,img,wbr"),Vw=Br("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),jw=Br("rp,rt"),KI=_l(jw,Vw),XI=_l(Vw,Br("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")),eO=_l(jw,Br("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")),tO=_l(JI,XI,eO,KI),$w=Br("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),nO=Br("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),iO=Br("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"),rO=_l($w,nO,iO);function oO(t){return"content"in t&&sO(t)?t.content:null}function sO(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var fd=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(fd||{});function xo(t){let e=Hw();return e?e.sanitize(fd.URL,t)||"":Ym(t,"URL")?Hs(t):Qm(Fi(t))}function aO(t){let e=Hw();if(e)return $y(e.sanitize(fd.RESOURCE_URL,t)||"");if(Ym(t,"ResourceURL"))return $y(Hs(t));throw new ne(904,!1)}function lO(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?aO:xo}function Uw(t,e,i){return lO(e,i)(t)}function Hw(){let t=ye();return t&&t[ar].sanitizer}var Rp=class{};var cO="h",uO="b";var dO=()=>null;function Jm(t,e,i=!1){return dO(t,e,i)}var kp=class{},Bu=class{};function hO(t){let e=Error(`No component factory found for ${Dn(t)}.`);return e[fO]=t,e}var fO="ngComponent";var Fp=class{resolveComponentFactory(e){throw hO(e)}},pd=(()=>{let e=class e{};e.NULL=new Fp;let t=e;return t})();function pO(){return zs(gn(),ye())}function zs(t,e){return new Ne(qn(t,e))}var Ne=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=pO;let t=e;return t})();function mO(t){return t instanceof Ne?t.nativeElement:t}var sl=class{},Cn=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>gO();let t=e;return t})();function gO(){let t=ye(),e=gn(),i=kr(e.index,t);return(mo(i)?i:t)[Ke]}var _O=(()=>{let e=class e{};e.\u0275prov=F({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),np={};function Km(t,e){let i=q0(t),n=i[as];return e?.equal&&(n.equal=e.equal),i.set=r=>xf(n,r),i.update=r=>Y0(n,r),i.asReadonly=vO.bind(i),i}function vO(){let t=this[as];if(t.readonlyFn===void 0){let e=()=>this();e[as]=t,t.readonlyFn=e}return t.readonlyFn}function zw(t){return t!==null&&(typeof t=="function"||typeof t=="object")}var Lp=class{constructor(){}supports(e){return e instanceof Map||zw(e)}create(){return new Bp}},Bp=class{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 this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(e){let i;for(i=this._mapHead;i!==null;i=i._next)e(i)}forEachPreviousItem(e){let i;for(i=this._previousMapHead;i!==null;i=i._nextPrevious)e(i)}forEachChangedItem(e){let i;for(i=this._changesHead;i!==null;i=i._nextChanged)e(i)}forEachAddedItem(e){let i;for(i=this._additionsHead;i!==null;i=i._nextAdded)e(i)}forEachRemovedItem(e){let i;for(i=this._removalsHead;i!==null;i=i._nextRemoved)e(i)}diff(e){if(!e)e=new Map;else if(!(e instanceof Map||zw(e)))throw new ne(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i=this._mapHead;if(this._appendAfter=null,this._forEach(e,(n,r)=>{if(i&&i.key===r)this._maybeAddToChanges(i,n),this._appendAfter=i,i=i._next;else{let o=this._getOrCreateRecordForKey(r,n);i=this._insertBeforeOrAppend(i,o)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let n=i;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,i){if(e){let n=e._prev;return i._next=e,i._prev=n,e._prev=i,n&&(n._next=i),e===this._mapHead&&(this._mapHead=i),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(e,i){if(this._records.has(e)){let r=this._records.get(e);this._maybeAddToChanges(r,i);let o=r._prev,a=r._next;return o&&(o._next=a),a&&(a._prev=o),r._next=null,r._prev=null,r}let n=new Vp(e);return this._records.set(e,n),n.currentValue=i,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,i){Object.is(i,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=i,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,i){e instanceof Map?e.forEach(i):Object.keys(e).forEach(n=>i(e[n],n))}},Vp=class{constructor(e){this.key=e,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 Uy(){return new Xm([new Lp])}var Xm=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Uy()),deps:[[e,new Bm,new sd]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new ne(901,!1)}};e.\u0275prov=F({token:e,providedIn:"root",factory:Uy});let t=e;return t})();function Vu(t,e,i,n,r=!1){for(;i!==null;){let o=e[i.index];o!==null&&n.push(Zn(o)),cr(o)&&yO(o,n);let a=i.type;if(a&8)Vu(t,e,i.child,n);else if(a&32){let c=zm(i,e),d;for(;d=c();)n.push(d)}else if(a&16){let c=Rw(e,i);if(Array.isArray(c))n.push(...c);else{let d=nl(e[Rn]);Vu(d[ue],d,c,n,!0)}}i=r?i.projectionNext:i.next}return n}function yO(t,e){for(let i=mn;i<t.length;i++){let n=t[i],r=n[ue].firstChild;r!==null&&Vu(n[ue],n,r,e)}t[vo]!==t[lr]&&e.push(t[vo])}var Gw=[];function wO(t){return t[_o]??bO(t)}function bO(t){let e=Gw.pop()??Object.create(CO);return e.lView=t,e}function DO(t){t.lView[_o]!==t&&(t.lView=null,Gw.push(t))}var CO=je(z({},Sf),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{tl(t.lView)},consumerOnSignalRead(){this.lView[_o]=this}});function Ww(t){return qw(t[el])}function Zw(t){return qw(t[hi])}function qw(t){for(;t!==null&&!cr(t);)t=t[hi];return t}var EO="ngOriginalError";function ip(t){return t[EO]}var Ui=class{constructor(){this._console=console}handleError(e){let i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&ip(e);for(;i&&ip(i);)i=ip(i);return i||null}},Yw=new le("",{providedIn:"root",factory:()=>D(Ui).handleError.bind(void 0)});var Qw=!1,TO=new le("",{providedIn:"root",factory:()=>Qw});var En={};function A(t=1){Jw(mt(),ye(),Hi()+t,!1)}function Jw(t,e,i,n){if(!n)if((e[he]&3)===3){let o=t.preOrderCheckHooks;o!==null&&bu(e,o,i)}else{let o=t.preOrderHooks;o!==null&&Du(e,o,0,i)}bo(i)}function q(t,e=Pe.Default){let i=ye();if(i===null)return re(t,e);let n=gn();return ow(n,i,wn(t),e)}function Kw(){let t="invalid";throw new Error(t)}function Xw(t,e,i,n,r,o){let a=Bt(null);try{let c=null;r&st.SignalBased&&(c=e[n][as]),c!==null&&c.transformFn!==void 0&&(o=c.transformFn(o)),r&st.HasDecoratorInputTransform&&(o=t.inputTransforms[n].call(e,o)),t.setInput!==null?t.setInput(e,c,o,i,n):R1(e,c,n,o)}finally{Bt(a)}}function SO(t,e){let i=t.hostBindingOpCodes;if(i!==null)try{for(let n=0;n<i.length;n++){let r=i[n];if(r<0)bo(~r);else{let o=r,a=i[++n],c=i[++n];kx(a,o);let d=e[o];c(2,d)}}}finally{bo(-1)}}function md(t,e,i,n,r,o,a,c,d,f,m){let v=e.blueprint.slice();return v[lr]=r,v[he]=n|4|128|8|64,(f!==null||t&&t[he]&2048)&&(v[he]|=2048),V1(v),v[Yt]=v[$s]=t,v[sn]=i,v[ar]=a||t&&t[ar],v[Ke]=c||t&&t[Ke],v[Pr]=d||t&&t[Pr]||null,v[Fn]=o,v[Ku]=xI(),v[Ns]=m,v[P1]=f,v[Rn]=e.type==2?t[Rn]:v,v}function Gs(t,e,i,n,r){let o=t.data[e];if(o===null)o=eg(t,e,i,n,r),Rx()&&(o.flags|=32);else if(o.type&64){o.type=i,o.value=n,o.attrs=r;let a=il();o.injectorIndex=a===null?-1:a.injectorIndex}return Vi(o,!0),o}function eg(t,e,i,n,r){let o=H1(),a=Im(),c=a?o:o&&o.parent,d=t.data[e]=PO(t,c,i,e,n,r);return t.firstChild===null&&(t.firstChild=d),o!==null&&(a?o.child==null&&d.parent!==null&&(o.child=d):o.next===null&&(o.next=d,d.prev=o)),d}function vl(t,e,i,n){if(i===0)return-1;let r=e.length;for(let o=0;o<i;o++)e.push(n),t.blueprint.push(n),t.data.push(null);return r}function eb(t,e,i,n,r){let o=Hi(),a=n&2;try{bo(-1),a&&e.length>wt&&Jw(t,e,wt,!1),Ri(a?2:0,r),i(n,r)}finally{bo(o),Ri(a?3:1,r)}}function tg(t,e,i){if(Em(e)){let n=Bt(null);try{let r=e.directiveStart,o=e.directiveEnd;for(let a=r;a<o;a++){let c=t.data[a];c.contentQueries&&c.contentQueries(1,i[a],a)}}finally{Bt(n)}}}function ng(t,e,i){$1()&&(BO(t,e,i,qn(i,e)),(i.flags&64)===64&&ib(t,e,i))}function ig(t,e,i=qn){let n=e.localNames;if(n!==null){let r=e.index+1;for(let o=0;o<n.length;o+=2){let a=n[o+1],c=a===-1?i(e,t):t[a];t[r++]=c}}}function tb(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=rg(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function rg(t,e,i,n,r,o,a,c,d,f,m){let v=wt+n,y=v+r,g=MO(v,y),b=typeof f=="function"?f():f;return g[ue]={type:t,blueprint:g,template:i,queries:null,viewQuery:c,declTNode:e,data:g.slice().fill(null,v),bindingStartIndex:v,expandoStartIndex:y,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:typeof o=="function"?o():o,pipeRegistry:typeof a=="function"?a():a,firstChild:null,schemas:d,consts:b,incompleteFirstPass:!1,ssrId:m}}function MO(t,e){let i=[];for(let n=0;n<e;n++)i.push(n<t?null:En);return i}function xO(t,e,i,n){let o=n.get(TO,Qw)||i===Bi.ShadowDom,a=t.selectRootElement(e,o);return IO(a),a}function IO(t){OO(t)}var OO=()=>null;function AO(t,e,i,n){let r=sb(e);r.push(i),t.firstCreatePass&&ab(t).push(n,r.length-1)}function PO(t,e,i,n,r,o){let a=e?e.injectorIndex:-1,c=0;return U1()&&(c|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:c,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Hy(t,e,i,n,r){for(let o in e){if(!e.hasOwnProperty(o))continue;let a=e[o];if(a===void 0)continue;n??={};let c,d=st.None;Array.isArray(a)?(c=a[0],d=a[1]):c=a;let f=o;if(r!==null){if(!r.hasOwnProperty(o))continue;f=r[o]}t===0?zy(n,i,f,c,d):zy(n,i,f,c)}return n}function zy(t,e,i,n,r){let o;t.hasOwnProperty(i)?(o=t[i]).push(e,n):o=t[i]=[e,n],r!==void 0&&o.push(r)}function NO(t,e,i){let n=e.directiveStart,r=e.directiveEnd,o=t.data,a=e.attrs,c=[],d=null,f=null;for(let m=n;m<r;m++){let v=o[m],y=i?i.get(v):null,g=y?y.inputs:null,b=y?y.outputs:null;d=Hy(0,v.inputs,m,d,g),f=Hy(1,v.outputs,m,f,b);let S=d!==null&&a!==null&&!S1(e)?qO(d,m,a):null;c.push(S)}d!==null&&(d.hasOwnProperty("class")&&(e.flags|=8),d.hasOwnProperty("style")&&(e.flags|=16)),e.initialInputs=c,e.inputs=d,e.outputs=f}function RO(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function gd(t,e,i,n,r,o,a,c){let d=qn(e,i),f=e.inputs,m;!c&&f!=null&&(m=f[n])?(ag(t,i,m,n,r),Xu(e)&&kO(i,e.index)):e.type&3?(n=RO(n),r=a!=null?a(r,e.value||"",n):r,o.setProperty(d,n,r)):e.type&12}function kO(t,e){let i=kr(e,t);i[he]&16||(i[he]|=64)}function og(t,e,i,n){if($1()){let r=n===null?null:{"":-1},o=jO(t,i),a,c;o===null?a=c=null:[a,c]=o,a!==null&&nb(t,e,i,a,r,c),r&&$O(i,n,r)}i.mergedAttrs=Ka(i.mergedAttrs,i.attrs)}function nb(t,e,i,n,r,o){for(let f=0;f<n.length;f++)Cp(Ru(i,e),t,n[f].type);HO(i,t.data.length,n.length);for(let f=0;f<n.length;f++){let m=n[f];m.providersResolver&&m.providersResolver(m)}let a=!1,c=!1,d=vl(t,e,n.length,null);for(let f=0;f<n.length;f++){let m=n[f];i.mergedAttrs=Ka(i.mergedAttrs,m.hostAttrs),zO(t,i,e,d,m),UO(d,m,r),m.contentQueries!==null&&(i.flags|=4),(m.hostBindings!==null||m.hostAttrs!==null||m.hostVars!==0)&&(i.flags|=64);let v=m.type.prototype;!a&&(v.ngOnChanges||v.ngOnInit||v.ngDoCheck)&&((t.preOrderHooks??=[]).push(i.index),a=!0),!c&&(v.ngOnChanges||v.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(i.index),c=!0),d++}NO(t,i,o)}function FO(t,e,i,n,r){let o=r.hostBindings;if(o){let a=t.hostBindingOpCodes;a===null&&(a=t.hostBindingOpCodes=[]);let c=~e.index;LO(a)!=c&&a.push(c),a.push(i,n,o)}}function LO(t){let e=t.length;for(;e>0;){let i=t[--e];if(typeof i=="number"&&i<0)return i}return 0}function BO(t,e,i,n){let r=i.directiveStart,o=i.directiveEnd;Xu(i)&&GO(e,i,t.data[r+i.componentOffset]),t.firstCreatePass||Ru(i,e),$i(n,e);let a=i.initialInputs;for(let c=r;c<o;c++){let d=t.data[c],f=Co(e,t,c,i);if($i(f,e),a!==null&&ZO(e,c-r,f,d,i,a),Nr(d)){let m=kr(i.index,e);m[sn]=Co(e,t,c,i)}}}function ib(t,e,i){let n=i.directiveStart,r=i.directiveEnd,o=i.index,a=Fx();try{bo(o);for(let c=n;c<r;c++){let d=t.data[c],f=e[c];bp(c),(d.hostBindings!==null||d.hostVars!==0||d.hostAttrs!==null)&&VO(d,f)}}finally{bo(-1),bp(a)}}function VO(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function jO(t,e){let i=t.directiveRegistry,n=null,r=null;if(i)for(let o=0;o<i.length;o++){let a=i[o];if(M1(e,a.selectors,!1))if(n||(n=[]),Nr(a))if(a.findHostDirectiveDefs!==null){let c=[];r=r||new Map,a.findHostDirectiveDefs(a,c,r),n.unshift(...c,a);let d=c.length;jp(t,e,d)}else n.unshift(a),jp(t,e,0);else r=r||new Map,a.findHostDirectiveDefs?.(a,n,r),n.push(a)}return n===null?null:[n,r]}function jp(t,e,i){e.componentOffset=i,(t.components??=[]).push(e.index)}function $O(t,e,i){if(e){let n=t.localNames=[];for(let r=0;r<e.length;r+=2){let o=i[e[r+1]];if(o==null)throw new ne(-301,!1);n.push(e[r],o)}}}function UO(t,e,i){if(i){if(e.exportAs)for(let n=0;n<e.exportAs.length;n++)i[e.exportAs[n]]=t;Nr(e)&&(i[""]=t)}}function HO(t,e,i){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+i,t.providerIndexes=e}function zO(t,e,i,n,r){t.data[n]=r;let o=r.factory||(r.factory=yo(r.type,!0)),a=new Do(o,Nr(r),q);t.blueprint[n]=a,i[n]=a,FO(t,e,n,vl(t,i,r.hostVars,En),r)}function GO(t,e,i){let n=qn(e,t),r=tb(i),o=t[ar].rendererFactory,a=16;i.signals?a=4096:i.onPush&&(a=64);let c=_d(t,md(t,r,null,a,n,e,null,o.createRenderer(n,i),null,null,null));t[e.index]=c}function WO(t,e,i,n,r,o){let a=qn(t,e);sg(e[Ke],a,o,t.value,i,n,r)}function sg(t,e,i,n,r,o,a){if(o==null)t.removeAttribute(e,r,i);else{let c=a==null?Fi(o):a(o,n||"",r);t.setAttribute(e,r,c,i)}}function ZO(t,e,i,n,r,o){let a=o[e];if(a!==null)for(let c=0;c<a.length;){let d=a[c++],f=a[c++],m=a[c++],v=a[c++];Xw(n,i,d,f,m,v)}}function qO(t,e,i){let n=null,r=0;for(;r<i.length;){let o=i[r];if(o===0){r+=4;continue}else if(o===5){r+=2;continue}if(typeof o=="number")break;if(t.hasOwnProperty(o)){n===null&&(n=[]);let a=t[o];for(let c=0;c<a.length;c+=3)if(a[c]===e){n.push(o,a[c+1],a[c+2],i[r+1]);break}}r+=2}return n}function rb(t,e,i,n){return[t,!0,0,e,null,n,null,i,null,null]}function ob(t,e){let i=t.contentQueries;if(i!==null){let n=Bt(null);try{for(let r=0;r<i.length;r+=2){let o=i[r],a=i[r+1];if(a!==-1){let c=t.data[a];Pm(o),c.contentQueries(2,e[a],a)}}}finally{Bt(n)}}}function _d(t,e){return t[el]?t[Ny][hi]=e:t[el]=e,t[Ny]=e,e}function $p(t,e,i){Pm(0);let n=Bt(null);try{e(t,i)}finally{Bt(n)}}function sb(t){return t[Xa]||(t[Xa]=[])}function ab(t){return t.cleanup||(t.cleanup=[])}function vd(t,e){let i=t[Pr],n=i?i.get(Ui,null):null;n&&n.handleError(e)}function ag(t,e,i,n,r){for(let o=0;o<i.length;){let a=i[o++],c=i[o++],d=i[o++],f=e[a],m=t.data[a];Xw(m,f,n,c,d,r)}}function lg(t,e,i){let n=td(e,t);Cw(t[Ke],n,i)}var lb=100;function cb(t,e=!0,i=0){let n=t[ar],r=n.rendererFactory,o=!1;o||r.begin?.();try{YO(t,i)}catch(a){throw e&&vd(t,a),a}finally{o||(r.end?.(),n.inlineEffectRunner?.flush())}}function YO(t,e){Up(t,e);let i=0;for(;Mm(t);){if(i===lb)throw new ne(103,!1);i++,Up(t,1)}}function QO(t,e,i,n){let r=e[he];if((r&256)===256)return;let o=!1;!o&&e[ar].inlineEffectRunner?.flush(),Nm(e);let a=null,c=null;!o&&JO(t)&&(c=wO(e),a=j0(c));try{V1(e),Nx(t.bindingStartIndex),i!==null&&eb(t,e,i,2,n);let d=(r&3)===3;if(!o)if(d){let v=t.preOrderCheckHooks;v!==null&&bu(e,v,null)}else{let v=t.preOrderHooks;v!==null&&Du(e,v,0,null),Jf(e,0)}if(KO(e),ub(e,0),t.contentQueries!==null&&ob(t,e),!o)if(d){let v=t.contentCheckHooks;v!==null&&bu(e,v)}else{let v=t.contentHooks;v!==null&&Du(e,v,1),Jf(e,1)}SO(t,e);let f=t.components;f!==null&&hb(e,f,0);let m=t.viewQuery;if(m!==null&&$p(2,m,n),!o)if(d){let v=t.viewCheckHooks;v!==null&&bu(e,v)}else{let v=t.viewHooks;v!==null&&Du(e,v,2),Jf(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Qf]){for(let v of e[Qf])v();e[Qf]=null}o||(e[he]&=-73)}catch(d){throw tl(e),d}finally{c!==null&&($0(c,a),DO(c)),Rm()}}function JO(t){return t.type!==2}function ub(t,e){for(let i=Ww(t);i!==null;i=Zw(i))for(let n=mn;n<i.length;n++){let r=i[n];db(r,e)}}function KO(t){for(let e=Ww(t);e!==null;e=Zw(e)){if(!(e[he]&Cm.HasTransplantedViews))continue;let i=e[Rs];for(let n=0;n<i.length;n++){let r=i[n],o=r[Yt];Tx(r)}}}function XO(t,e,i){let n=kr(e,t);db(n,i)}function db(t,e){Sm(t)&&Up(t,e)}function Up(t,e){let n=t[ue],r=t[he],o=t[_o],a=!!(e===0&&r&16);if(a||=!!(r&64&&e===0),a||=!!(r&1024),a||=!!(o?.dirty&&Mf(o)),o&&(o.dirty=!1),t[he]&=-9217,a)QO(n,t,n.template,t[sn]);else if(r&8192){ub(t,1);let c=n.components;c!==null&&hb(t,c,1)}}function hb(t,e,i){for(let n=0;n<e.length;n++)XO(t,e[n],i)}function yd(t){for(t[ar].changeDetectionScheduler?.notify();t;){t[he]|=64;let e=nl(t);if(mx(t)&&!e)return t;t=e}return null}var To=class{get rootNodes(){let e=this._lView,i=e[ue];return Vu(i,e,i.firstChild,[])}constructor(e,i,n=!0){this._lView=e,this._cdRefInjectingView=i,this.notifyErrorHandler=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[sn]}set context(e){this._lView[sn]=e}get destroyed(){return(this._lView[he]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[Yt];if(cr(e)){let i=e[Ou],n=i?i.indexOf(this):-1;n>-1&&(ol(e,n),ku(i,n))}this._attachedToViewContainer=!1}cd(this._lView[ue],this._lView)}onDestroy(e){xm(this._lView,e)}markForCheck(){yd(this._cdRefInjectingView||this._lView)}detach(){this._lView[he]&=-129}reattach(){wp(this._lView),this._lView[he]|=128}detectChanges(){this._lView[he]|=1024,cb(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ne(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Tw(this._lView[ue],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new ne(902,!1);this._appRef=e,wp(this._lView)}},Tn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=eA;let t=e;return t})();function eA(t){return tA(gn(),ye(),(t&16)===16)}function tA(t,e,i){if(Xu(t)&&!i){let n=kr(t.index,e);return new To(n,n)}else if(t.type&47){let n=e[Rn];return new To(n,e)}return null}var Vr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=nA,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Hp=class extends Vr{constructor(e){super(),this._lView=e}onDestroy(e){return xm(this._lView,e),()=>j1(this._lView,e)}};function nA(){return new Hp(ye())}var Gy=new Set;function Io(t){Gy.has(t)||(Gy.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var zp=class extends He{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,i,n){let r=e,o=i||(()=>null),a=n;if(e&&typeof e=="object"){let d=e;r=d.next?.bind(d),o=d.error?.bind(d),a=d.complete?.bind(d)}this.__isAsync&&(o=rp(o),r&&(r=rp(r)),a&&(a=rp(a)));let c=super.subscribe({next:r,error:o,complete:a});return e instanceof vt&&e.add(c),c}};function rp(t){return e=>{setTimeout(t,void 0,e)}}var ve=zp;function Wy(...t){}function iA(){let t=typeof Vn.requestAnimationFrame=="function",e=Vn[t?"requestAnimationFrame":"setTimeout"],i=Vn[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&i){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let r=i[Zone.__symbol__("OriginalDelegate")];r&&(i=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:i}}var Re=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ve(!1),this.onMicrotaskEmpty=new ve(!1),this.onStable=new ve(!1),this.onError=new ve(!1),typeof Zone>"u")throw new ne(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=iA().nativeRequestAnimationFrame,sA(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new ne(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new ne(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,r){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,e,rA,Wy,Wy);try{return o.runTask(a,i,n)}finally{o.cancelTask(a)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}},rA={};function cg(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function oA(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Vn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Gp(t),t.isCheckStableRunning=!0,cg(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Gp(t))}function sA(t){let e=()=>{oA(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,n,r,o,a,c)=>{if(aA(c))return i.invokeTask(r,o,a,c);try{return Zy(t),i.invokeTask(r,o,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),qy(t)}},onInvoke:(i,n,r,o,a,c,d)=>{try{return Zy(t),i.invoke(r,o,a,c,d)}finally{t.shouldCoalesceRunChangeDetection&&e(),qy(t)}},onHasTask:(i,n,r,o)=>{i.hasTask(r,o),n===r&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,Gp(t),cg(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(i,n,r,o)=>(i.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function Gp(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Zy(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function qy(t){t._nesting--,cg(t)}function aA(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}var Is=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Is||{}),lA={destroy(){}};function ug(t,e){!e&&jm(ug);let i=e?.injector??D(cn);if(!ww(i))return lA;Io("NgAfterNextRender");let n=i.get(dg),r=n.handler??=new Zp,o=e?.phase??Is.MixedReadWrite,a=()=>{r.unregister(d),c()},c=i.get(Vr).onDestroy(a),d=new Wp(i,o,()=>{a(),t()});return r.register(d),{destroy:a}}var Wp=class{constructor(e,i,n){this.phase=i,this.callbackFn=n,this.zone=e.get(Re),this.errorHandler=e.get(Ui,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},Zp=class{constructor(){this.executingCallbacks=!1,this.buckets={[Is.EarlyRead]:new Set,[Is.Write]:new Set,[Is.MixedReadWrite]:new Set,[Is.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let i of e)i.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},dg=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let r of n)r();this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=F({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function cA(t,e){let i=kr(e,t),n=i[ue];uA(n,i);let r=i[lr];r!==null&&i[Ns]===null&&(i[Ns]=Jm(r,i[Pr])),hg(n,i,i[sn])}function uA(t,e){for(let i=e.length;i<t.blueprint.length;i++)e.push(t.blueprint[i])}function hg(t,e,i){Nm(e);try{let n=t.viewQuery;n!==null&&$p(1,n,i);let r=t.template;r!==null&&eb(t,e,r,1,i),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&ob(t,e),t.staticViewQueries&&$p(2,t.viewQuery,i);let o=t.components;o!==null&&dA(e,o)}catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{e[he]&=-5,Rm()}}function dA(t,e){for(let i=0;i<e.length;i++)cA(t,e[i])}function ju(t,e,i){let n=i?t.styles:null,r=i?t.classes:null,o=0;if(e!==null)for(let a=0;a<e.length;a++){let c=e[a];if(typeof c=="number")o=c;else if(o==1)r=pp(r,c);else if(o==2){let d=c,f=e[++a];n=pp(n,d+": "+f+";")}}i?t.styles=n:t.stylesWithoutHost=n,i?t.classes=r:t.classesWithoutHost=r}var $u=class extends pd{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let i=fi(e);return new So(i,this.ngModule)}};function Yy(t){let e=[];for(let i in t){if(!t.hasOwnProperty(i))continue;let n=t[i];n!==void 0&&e.push({propName:Array.isArray(n)?n[0]:n,templateName:i})}return e}function hA(t){let e=t.toLowerCase();return e==="svg"?B1:e==="math"?wx:null}var qp=class{constructor(e,i){this.injector=e,this.parentInjector=i}get(e,i,n){n=Ju(n);let r=this.injector.get(e,np,n);return r!==np||i===np?r:this.parentInjector.get(e,i,n)}},So=class extends Bu{get inputs(){let e=this.componentDef,i=e.inputTransforms,n=Yy(e.inputs);if(i!==null)for(let r of n)i.hasOwnProperty(r.propName)&&(r.transform=i[r.propName]);return n}get outputs(){return Yy(this.componentDef.outputs)}constructor(e,i){super(),this.componentDef=e,this.ngModule=i,this.componentType=e.type,this.selector=ux(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!i}create(e,i,n,r){r=r||this.ngModule;let o=r instanceof Qt?r:r?.injector;o&&this.componentDef.getStandaloneInjector!==null&&(o=this.componentDef.getStandaloneInjector(o)||o);let a=o?new qp(e,o):e,c=a.get(sl,null);if(c===null)throw new ne(407,!1);let d=a.get(_O,null),f=a.get(dg,null),m=a.get(Rp,null),v={rendererFactory:c,sanitizer:d,inlineEffectRunner:null,afterRenderEventManager:f,changeDetectionScheduler:m},y=c.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",b=n?xO(y,n,this.componentDef.encapsulation,a):Wm(y,g,hA(g)),S=512;this.componentDef.signals?S|=4096:this.componentDef.onPush||(S|=16);let E=null;b!==null&&(E=Jm(b,a,!0));let M=rg(0,null,null,1,0,null,null,null,null,null,null),V=md(null,M,null,S,null,null,v,y,a,null,E);Nm(V);let W,N;try{let $=this.componentDef,Y,ie=null;$.findHostDirectiveDefs?(Y=[],ie=new Map,$.findHostDirectiveDefs($,Y,ie),Y.push($)):Y=[$];let K=fA(V,b),H=pA(K,b,$,Y,V,v,y);N=fl(M,wt),b&&_A(y,$,b,n),i!==void 0&&vA(N,this.ngContentSelectors,i),W=gA(H,$,Y,ie,V,[yA]),hg(M,V,null)}finally{Rm()}return new Yp(this.componentType,W,zs(N,V),V,N)}},Yp=class extends kp{constructor(e,i,n,r,o){super(),this.location=n,this._rootLView=r,this._tNode=o,this.previousInputValues=null,this.instance=i,this.hostView=this.changeDetectorRef=new To(r,void 0,!1),this.componentType=e}setInput(e,i){let n=this._tNode.inputs,r;if(n!==null&&(r=n[e])){if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),i))return;let o=this._rootLView;ag(o[ue],o,r,e,i),this.previousInputValues.set(e,i);let a=kr(this._tNode.index,o);yd(a)}}get injector(){return new go(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function fA(t,e){let i=t[ue],n=wt;return t[n]=e,Gs(i,n,2,"#host",null)}function pA(t,e,i,n,r,o,a){let c=r[ue];mA(n,t,e,a);let d=null;e!==null&&(d=Jm(e,r[Pr]));let f=o.rendererFactory.createRenderer(e,i),m=16;i.signals?m=4096:i.onPush&&(m=64);let v=md(r,tb(i),null,m,r[t.index],t,o,f,null,null,d);return c.firstCreatePass&&jp(c,t,n.length-1),_d(r,v),r[t.index]=v}function mA(t,e,i,n){for(let r of t)e.mergedAttrs=Ka(e.mergedAttrs,r.hostAttrs);e.mergedAttrs!==null&&(ju(e,e.mergedAttrs,!0),i!==null&&Bw(n,i,e))}function gA(t,e,i,n,r,o){let a=gn(),c=r[ue],d=qn(a,r);nb(c,r,a,i,null,n);for(let m=0;m<i.length;m++){let v=a.directiveStart+m,y=Co(r,c,v,a);$i(y,r)}ib(c,r,a),d&&$i(d,r);let f=Co(r,c,a.directiveStart+a.componentOffset,a);if(t[sn]=r[sn]=f,o!==null)for(let m of o)m(f,e);return tg(c,a,t),f}function _A(t,e,i,n){if(n)vp(t,i,["ng-version","17.1.3"]);else{let{attrs:r,classes:o}=dx(e.selectors[0]);r&&vp(t,i,r),o&&o.length>0&&Lw(t,i,o.join(" "))}}function vA(t,e,i){let n=t.projection=[];for(let r=0;r<e.length;r++){let o=i[r];n.push(o!=null?Array.from(o):null)}}function yA(){let t=gn();od(ye()[ue],t)}function wA(t){return Object.getPrototypeOf(t.prototype).constructor}function $t(t){let e=wA(t.type),i=!0,n=[t];for(;e;){let r;if(Nr(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new ne(903,!1);r=e.\u0275dir}if(r){if(i){n.push(r);let a=t;a.inputs=yu(t.inputs),a.inputTransforms=yu(t.inputTransforms),a.declaredInputs=yu(t.declaredInputs),a.outputs=yu(t.outputs);let c=r.hostBindings;c&&TA(t,c);let d=r.viewQuery,f=r.contentQueries;if(d&&CA(t,d),f&&EA(t,f),bA(t,r),RM(t.outputs,r.outputs),Nr(r)&&r.data.animation){let m=t.data;m.animation=(m.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let a=0;a<o.length;a++){let c=o[a];c&&c.ngInherit&&c(t),c===$t&&(i=!1)}}e=Object.getPrototypeOf(e)}DA(n)}function bA(t,e){for(let i in e.inputs){if(!e.inputs.hasOwnProperty(i)||t.inputs.hasOwnProperty(i))continue;let n=e.inputs[i];if(n!==void 0&&(t.inputs[i]=n,t.declaredInputs[i]=e.declaredInputs[i],e.inputTransforms!==null)){let r=Array.isArray(n)?n[0]:n;if(!e.inputTransforms.hasOwnProperty(r))continue;t.inputTransforms??={},t.inputTransforms[r]=e.inputTransforms[r]}}}function DA(t){let e=0,i=null;for(let n=t.length-1;n>=0;n--){let r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=Ka(r.hostAttrs,i=Ka(i,r.hostAttrs))}}function yu(t){return t===Ps?{}:t===bn?[]:t}function CA(t,e){let i=t.viewQuery;i?t.viewQuery=(n,r)=>{e(n,r),i(n,r)}:t.viewQuery=e}function EA(t,e){let i=t.contentQueries;i?t.contentQueries=(n,r,o)=>{e(n,r,o),i(n,r,o)}:t.contentQueries=e}function TA(t,e){let i=t.hostBindings;i?t.hostBindings=(n,r)=>{e(n,r),i(n,r)}:t.hostBindings=e}function fg(t){let e=t.inputConfig,i={};for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];Array.isArray(r)&&r[3]&&(i[n]=r[3])}t.inputTransforms=i}var J8=new RegExp(`^(\\d+)*(${uO}|${cO})*(.*)`);var SA=()=>null;function Ls(t,e){return SA(t,e)}function yl(t,e,i,n){let r=e.tView,a=t[he]&4096?4096:16,c=md(t,r,i,a,null,e,null,null,null,n?.injector??null,n?.dehydratedView??null),d=t[e.index];c[hl]=d;let f=t[Li];return f!==null&&(c[Li]=f.createEmbeddedView(r)),hg(r,c,i),c}function fb(t,e){let i=mn+e;if(i<t.length)return t[i]}function Bs(t,e){return!e||e.firstChild===null||bw(t)}function wl(t,e,i,n=!0){let r=e[ue];if(kI(r,e,t,i),n){let a=Ap(i,t),c=e[Ke],d=ud(c,t[vo]);d!==null&&NI(r,t[Fn],c,e,d,a)}let o=e[Ns];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function pg(t,e){let i=ol(t,e);return i!==void 0&&cd(i[ue],i),i}var pi=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=MA;let t=e;return t})();function MA(){let t=gn();return mb(t,ye())}var xA=pi,pb=class extends xA{constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return zs(this._hostTNode,this._hostLView)}get injector(){return new go(this._hostTNode,this._hostLView)}get parentInjector(){let e=km(this._hostTNode,this._hostLView);if(X1(e)){let i=Pu(e,this._hostLView),n=Au(e),r=i[ue].data[n+8];return new go(r,i)}else return new go(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let i=Qy(this._lContainer);return i!==null&&i[e]||null}get length(){return this._lContainer.length-mn}createEmbeddedView(e,i,n){let r,o;typeof n=="number"?r=n:n!=null&&(r=n.index,o=n.injector);let a=Ls(this._lContainer,e.ssrId),c=e.createEmbeddedViewImpl(i||{},o,a);return this.insertImpl(c,r,Bs(this._hostTNode,a)),c}createComponent(e,i,n,r,o){let a=e&&!iI(e),c;if(a)c=i;else{let b=i||{};c=b.index,n=b.injector,r=b.projectableNodes,o=b.environmentInjector||b.ngModuleRef}let d=a?e:new So(fi(e)),f=n||this.parentInjector;if(!o&&d.ngModule==null){let S=(a?f:this.parentInjector).get(Qt,null);S&&(o=S)}let m=fi(d.componentType??{}),v=Ls(this._lContainer,m?.id??null),y=v?.firstChild??null,g=d.create(f,r,y,o);return this.insertImpl(g.hostView,c,Bs(this._hostTNode,v)),g}insert(e,i){return this.insertImpl(e,i,!0)}insertImpl(e,i,n){let r=e._lView;if(Ex(r)){let c=this.indexOf(e);if(c!==-1)this.detach(c);else{let d=r[Yt],f=new pb(d,d[Fn],d[Yt]);f.detach(f.indexOf(e))}}let o=this._adjustIndex(i),a=this._lContainer;return wl(a,r,o,n),e.attachToViewContainerRef(),cw(op(a),o,e),e}move(e,i){return this.insert(e,i)}indexOf(e){let i=Qy(this._lContainer);return i!==null?i.indexOf(e):-1}remove(e){let i=this._adjustIndex(e,-1),n=ol(this._lContainer,i);n&&(ku(op(this._lContainer),i),cd(n[ue],n))}detach(e){let i=this._adjustIndex(e,-1),n=ol(this._lContainer,i);return n&&ku(op(this._lContainer),i)!=null?new To(n):null}_adjustIndex(e,i=0){return e??this.length+i}};function Qy(t){return t[Ou]}function op(t){return t[Ou]||(t[Ou]=[])}function mb(t,e){let i,n=e[t.index];return cr(n)?i=n:(i=rb(n,e,null,t),e[t.index]=i,_d(e,i)),OA(i,e,t,n),new pb(i,t,e)}function IA(t,e){let i=t[Ke],n=i.createComment(""),r=qn(e,t),o=ud(i,r);return Eo(i,o,n,jI(i,r),!1),n}var OA=PA,AA=()=>!1;function gb(t,e,i){return AA(t,e,i)}function PA(t,e,i,n){if(t[vo])return;let r;i.type&8?r=Zn(n):r=IA(e,i),t[vo]=r}var Rr=class{},al=class{};var Qp=class extends Rr{constructor(e,i,n){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new $u(this);let r=I1(e);this._bootstrapComponents=yw(r.bootstrap),this._r3Injector=gw(e,i,[{provide:Rr,useValue:this},{provide:pd,useValue:this.componentFactoryResolver},...n],Dn(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Jp=class extends al{constructor(e){super(),this.moduleType=e}create(e){return new Qp(this.moduleType,e,[])}};var Uu=class extends Rr{constructor(e){super(),this.componentFactoryResolver=new $u(this),this.instance=null;let i=new rl([...e.providers,{provide:Rr,useValue:this},{provide:pd,useValue:this.componentFactoryResolver}],e.parent||ld(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function wd(t,e,i=null){return new Uu({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}var Oo=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new qe(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function bd(t,e,i){return t[e]=i}function NA(t,e){return t[e]}function kn(t,e,i){let n=t[e];return Object.is(n,i)?!1:(t[e]=i,!0)}function ll(t,e,i,n){let r=kn(t,e,i);return kn(t,e+1,n)||r}function RA(t,e,i,n,r){let o=ll(t,e,i,n);return kn(t,e+2,r)||o}function kA(t,e,i,n,r,o){let a=ll(t,e,i,n);return ll(t,e+2,r,o)||a}function FA(t,e,i,n,r,o,a,c,d){let f=e.consts,m=Gs(e,t,4,a||null,wo(f,c));og(e,i,m,wo(f,d)),od(e,m);let v=m.tView=rg(2,m,n,r,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,f,null);return e.queries!==null&&(e.queries.template(e,m),v.queries=e.queries.embeddedTView(m)),m}function be(t,e,i,n,r,o,a,c){let d=ye(),f=mt(),m=t+wt,v=f.firstCreatePass?FA(m,f,d,e,i,n,r,o,a):f.data[m];Vi(v,!1);let y=LA(f,d,v,t);id()&&dd(f,d,y,v),$i(y,d);let g=rb(y,d,y,v);return d[m]=g,_d(d,g),gb(g,v,d),ed(v)&&ng(f,d,v),a!=null&&ig(d,v,c),be}var LA=BA;function BA(t,e,i,n){return rd(!0),e[Ke].createComment("")}var Nn=function(t){return t[t.NOT_STARTED=0]="NOT_STARTED",t[t.IN_PROGRESS=1]="IN_PROGRESS",t[t.COMPLETE=2]="COMPLETE",t[t.FAILED=3]="FAILED",t}(Nn||{}),Jy=0,VA=1,on=function(t){return t[t.Placeholder=0]="Placeholder",t[t.Loading=1]="Loading",t[t.Complete=2]="Complete",t[t.Error=3]="Error",t}(on||{}),Hu=function(t){return t[t.Initial=-1]="Initial",t}(Hu||{}),jA=0,mg=1;var _b=4,vb=5,yb=function(t){return t[t.Manual=0]="Manual",t[t.Playthrough=1]="Playthrough",t}(yb||{});function $A(t,e,i){let n=t===1?vb:_b;e[n]===null&&(e[n]=[]),e[n].push(i)}function Kp(t,e){let i=t===1?vb:_b,n=e[i];if(n!==null){for(let r of n)r();e[i]=null}}function wb(t){Kp(1,t),Kp(0,t)}function Dd(t){return t+1}function Cd(t,e){let i=t[ue],n=Dd(e.index);return t[n]}function UA(t,e,i){let n=t[ue],r=Dd(e);t[r]=i}function gg(t,e){let i=Dd(e.index);return t.data[i]}function HA(t,e,i){let n=Dd(e);t.data[n]=i}function zA(t,e,i){let n=e[ue],r=gg(n,i);switch(t){case on.Complete:return r.primaryTmplIndex;case on.Loading:return r.loadingTmplIndex;case on.Error:return r.errorTmplIndex;case on.Placeholder:return r.placeholderTmplIndex;default:return null}}function Ky(t,e){return e===on.Placeholder?t.placeholderBlockConfig?.[Jy]??null:e===on.Loading?t.loadingBlockConfig?.[Jy]??null:null}function GA(t){return t.loadingBlockConfig?.[VA]??null}function Xy(t,e){if(!t||t.length===0)return e;let i=new Set(t);for(let n of e)i.add(n);return t.length===i.size?t:Array.from(i)}function WA(t,e){let i=e.primaryTmplIndex+wt;return fl(t,i)}var ZA=new le("");function qA(t){return t.get(ZA,null,{optional:!0})?.behavior===yb.Manual?!1:ww(t)}var YA=null;function Ed(t,e,i,n,r,o,a,c,d){let f=ye(),m=mt(),v=t+wt;if(be(t,null,0,0),m.firstCreatePass){Io("NgDefer");let E={primaryTmplIndex:e,loadingTmplIndex:n??null,placeholderTmplIndex:r??null,errorTmplIndex:o??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:i??null,loadingState:Nn.NOT_STARTED,loadingPromise:null};d?.(m,E,c,a),HA(m,v,E)}let y=gn(),g=f[v];gb(g,y,f);let b=[null,Hu.Initial,null,null,null,null];UA(f,v,b);let S=()=>wb(b);$A(0,b,()=>j1(f,S)),xm(f,S)}function Td(t){let e=ye(),i=Fr();if(kn(e,i,t)){let n=Bt(null);try{let r=!!t,o=ml(),c=Cd(e,o)[mg];r===!1&&c===Hu.Initial?KA(e,o):r===!0&&(c===Hu.Initial||c===on.Placeholder)&&XA(e,o)}finally{Bt(n)}}}function po(t,e,i,n=!1){let r=i[Yt],o=r[ue];if(gx(r))return;let a=Cd(r,e),c=a[mg];if(e1(c,t)&&e1(a[jA]??-1,t)){let d=gg(o,e),m=!n&&(GA(d)!==null||Ky(d,on.Loading)!==null||Ky(d,on.Placeholder))?YA:QA;try{m(t,a,i,e,r)}catch(v){vd(r,v)}}}function QA(t,e,i,n,r){let o=zA(t,r,n);if(o!==null){e[mg]=t;let a=r[ue],c=o+wt,d=fl(a,c),f=0;pg(i,f);let m=Ls(i,d.tView.ssrId),v=yl(r,d,null,{dehydratedView:m});wl(i,v,f,Bs(d,m)),yd(v)}}function e1(t,e){return t<e}function JA(t,e,i){let n=e[Pr],r=e[ue];if(t.loadingState!==Nn.NOT_STARTED)return;let o=Cd(e,i),a=WA(r,t);t.loadingState=Nn.IN_PROGRESS,Kp(1,o);let c=t.dependencyResolverFn,d=n.get(Oo),f=d.add();if(!c){t.loadingPromise=Promise.resolve().then(()=>{t.loadingPromise=null,t.loadingState=Nn.COMPLETE,d.remove(f)});return}t.loadingPromise=Promise.allSettled(c()).then(m=>{let v=!1,y=[],g=[];for(let b of m)if(b.status==="fulfilled"){let S=b.value,E=fi(S)||bm(S);if(E)y.push(E);else{let M=Dm(S);M&&g.push(M)}}else{v=!0;break}if(t.loadingPromise=null,d.remove(f),v){if(t.loadingState=Nn.FAILED,t.errorTmplIndex===null){let b=DI(e),S=new ne(750,!1);vd(e,S)}}else{t.loadingState=Nn.COMPLETE;let b=a.tView;y.length>0&&(b.directiveRegistry=Xy(b.directiveRegistry,y)),g.length>0&&(b.pipeRegistry=Xy(b.pipeRegistry,g))}})}function KA(t,e){let i=t[e.index];po(on.Placeholder,e,i)}function t1(t,e,i){t.loadingPromise.then(()=>{t.loadingState===Nn.COMPLETE?po(on.Complete,e,i):t.loadingState===Nn.FAILED&&po(on.Error,e,i)})}function XA(t,e){let i=t[ue],n=t[e.index],r=t[Pr];if(!qA(r))return;let o=Cd(t,e),a=gg(i,e);switch(wb(o),a.loadingState){case Nn.NOT_STARTED:po(on.Loading,e,n),JA(a,t,e),a.loadingState===Nn.IN_PROGRESS&&t1(a,e,n);break;case Nn.IN_PROGRESS:po(on.Loading,e,n),t1(a,e,n);break;case Nn.COMPLETE:po(on.Complete,e,n);break;case Nn.FAILED:po(on.Error,e,n);break;default:}}function ht(t,e,i,n){let r=ye(),o=Fr();if(kn(r,o,e)){let a=mt(),c=ml();WO(c,r,t,e,i,n)}return ht}function bb(t,e,i,n){return kn(t,Fr(),i)?e+Fi(i)+n:En}function eP(t,e,i,n,r,o){let a=Am(),c=ll(t,a,i,r);return nd(2),c?e+Fi(i)+n+Fi(r)+o:En}function tP(t,e,i,n,r,o,a,c){let d=Am(),f=RA(t,d,i,r,a);return nd(3),f?e+Fi(i)+n+Fi(r)+o+Fi(a)+c:En}function wu(t,e){return t<<17|e<<2}function Mo(t){return t>>17&32767}function nP(t){return(t&2)==2}function iP(t,e){return t&131071|e<<17}function Xp(t){return t|2}function Vs(t){return(t&131068)>>2}function sp(t,e){return t&-131069|e<<2}function rP(t){return(t&1)===1}function em(t){return t|1}function oP(t,e,i,n,r,o){let a=o?e.classBindings:e.styleBindings,c=Mo(a),d=Vs(a);t[n]=i;let f=!1,m;if(Array.isArray(i)){let v=i;m=v[1],(m===null||gl(v,m)>0)&&(f=!0)}else m=i;if(r)if(d!==0){let y=Mo(t[c+1]);t[n+1]=wu(y,c),y!==0&&(t[y+1]=sp(t[y+1],n)),t[c+1]=iP(t[c+1],n)}else t[n+1]=wu(c,0),c!==0&&(t[c+1]=sp(t[c+1],n)),c=n;else t[n+1]=wu(d,0),c===0?c=n:t[d+1]=sp(t[d+1],n),d=n;f&&(t[n+1]=Xp(t[n+1])),n1(t,m,n,!0),n1(t,m,n,!1),sP(e,m,t,n,o),a=wu(c,d),o?e.classBindings=a:e.styleBindings=a}function sP(t,e,i,n,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&gl(o,e)>=0&&(i[n+1]=em(i[n+1]))}function n1(t,e,i,n){let r=t[i+1],o=e===null,a=n?Mo(r):Vs(r),c=!1;for(;a!==0&&(c===!1||o);){let d=t[a],f=t[a+1];aP(d,e)&&(c=!0,t[a+1]=n?em(f):Xp(f)),a=n?Mo(f):Vs(f)}c&&(t[i+1]=n?Xp(r):em(r))}function aP(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?gl(t,e)>=0:!1}var di={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function lP(t){return t.substring(di.key,di.keyEnd)}function cP(t){return uP(t),Db(t,Cb(t,0,di.textEnd))}function Db(t,e){let i=di.textEnd;return i===e?-1:(e=di.keyEnd=dP(t,di.key=e,i),Cb(t,e,i))}function uP(t){di.key=0,di.keyEnd=0,di.value=0,di.valueEnd=0,di.textEnd=t.length}function Cb(t,e,i){for(;e<i&&t.charCodeAt(e)<=32;)e++;return e}function dP(t,e,i){for(;e<i&&t.charCodeAt(e)>32;)e++;return e}function ee(t,e,i){let n=ye(),r=Fr();if(kn(n,r,e)){let o=mt(),a=ml();gd(o,a,n,t,e,n[Ke],i,!1)}return ee}function tm(t,e,i,n,r){let o=e.inputs,a=r?"class":"style";ag(t,i,o[a],a,n)}function Sd(t,e,i){return Eb(t,e,i,!1),Sd}function Xe(t,e){return Eb(t,e,null,!0),Xe}function bl(t){fP(yP,hP,t,!0)}function hP(t,e){for(let i=cP(e);i>=0;i=Db(e,i))Lm(t,lP(e),!0)}function Eb(t,e,i,n){let r=ye(),o=mt(),a=nd(2);if(o.firstUpdatePass&&Sb(o,t,a,n),e!==En&&kn(r,a,e)){let c=o.data[Hi()];Mb(o,c,r,r[Ke],t,r[a+1]=bP(e,i),n,a)}}function fP(t,e,i,n){let r=mt(),o=nd(2);r.firstUpdatePass&&Sb(r,null,o,n);let a=ye();if(i!==En&&kn(a,o,i)){let c=r.data[Hi()];if(xb(c,n)&&!Tb(r,o)){let d=n?c.classesWithoutHost:c.stylesWithoutHost;d!==null&&(i=pp(d,i||"")),tm(r,c,a,i,n)}else wP(r,c,a,a[Ke],a[o+1],a[o+1]=vP(t,e,i),n,o)}}function Tb(t,e){return e>=t.expandoStartIndex}function Sb(t,e,i,n){let r=t.data;if(r[i+1]===null){let o=r[Hi()],a=Tb(t,i);xb(o,n)&&e===null&&!a&&(e=!1),e=pP(r,o,e,n),oP(r,o,e,i,a,n)}}function pP(t,e,i,n){let r=Lx(t),o=n?e.residualClasses:e.residualStyles;if(r===null)(n?e.classBindings:e.styleBindings)===0&&(i=ap(null,t,e,i,n),i=cl(i,e.attrs,n),o=null);else{let a=e.directiveStylingLast;if(a===-1||t[a]!==r)if(i=ap(r,t,e,i,n),o===null){let d=mP(t,e,n);d!==void 0&&Array.isArray(d)&&(d=ap(null,t,e,d[1],n),d=cl(d,e.attrs,n),gP(t,e,n,d))}else o=_P(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),i}function mP(t,e,i){let n=i?e.classBindings:e.styleBindings;if(Vs(n)!==0)return t[Mo(n)]}function gP(t,e,i,n){let r=i?e.classBindings:e.styleBindings;t[Mo(r)]=n}function _P(t,e,i){let n,r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<r;o++){let a=t[o].hostAttrs;n=cl(n,a,i)}return cl(n,e.attrs,i)}function ap(t,e,i,n,r){let o=null,a=i.directiveEnd,c=i.directiveStylingLast;for(c===-1?c=i.directiveStart:c++;c<a&&(o=e[c],n=cl(n,o.hostAttrs,r),o!==t);)c++;return t!==null&&(i.directiveStylingLast=c),n}function cl(t,e,i){let n=i?1:2,r=-1;if(e!==null)for(let o=0;o<e.length;o++){let a=e[o];typeof a=="number"?r=a:r===n&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),Lm(t,a,i?!0:e[++o]))}return t===void 0?null:t}function vP(t,e,i){if(i==null||i==="")return bn;let n=[],r=Hs(i);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(n,r[o],!0);else if(typeof r=="object")for(let o in r)r.hasOwnProperty(o)&&t(n,o,r[o]);else typeof r=="string"&&e(n,r);return n}function yP(t,e,i){let n=String(e);n!==""&&!n.includes(" ")&&Lm(t,n,i)}function wP(t,e,i,n,r,o,a,c){r===En&&(r=bn);let d=0,f=0,m=0<r.length?r[0]:null,v=0<o.length?o[0]:null;for(;m!==null||v!==null;){let y=d<r.length?r[d+1]:void 0,g=f<o.length?o[f+1]:void 0,b=null,S;m===v?(d+=2,f+=2,y!==g&&(b=v,S=g)):v===null||m!==null&&m<v?(d+=2,b=m):(f+=2,b=v,S=g),b!==null&&Mb(t,e,i,n,b,S,a,c),m=d<r.length?r[d]:null,v=f<o.length?o[f]:null}}function Mb(t,e,i,n,r,o,a,c){if(!(e.type&3))return;let d=t.data,f=d[c+1],m=rP(f)?i1(d,e,i,r,Vs(f),a):void 0;if(!zu(m)){zu(o)||nP(f)&&(o=i1(d,null,i,r,c,a));let v=td(Hi(),i);HI(n,a,v,r,o)}}function i1(t,e,i,n,r,o){let a=e===null,c;for(;r>0;){let d=t[r],f=Array.isArray(d),m=f?d[1]:d,v=m===null,y=i[r+1];y===En&&(y=v?bn:void 0);let g=v?Xf(y,n):m===n?y:void 0;if(f&&!zu(g)&&(g=Xf(d,n)),zu(g)&&(c=g,a))return c;let b=t[r+1];r=a?Mo(b):Vs(b)}if(e!==null){let d=o?e.residualClasses:e.residualStyles;d!=null&&(c=Xf(d,n))}return c}function zu(t){return t!==void 0}function bP(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Dn(Hs(t)))),t}function xb(t,e){return(t.flags&(e?8:16))!==0}var nm=class{destroy(e){}updateValue(e,i){}swap(e,i){let n=Math.min(e,i),r=Math.max(e,i),o=this.detach(r);if(r-n>1){let a=this.detach(n);this.attach(n,o),this.attach(r,a)}else this.attach(n,o)}move(e,i){this.attach(i,this.detach(e))}};function lp(t,e,i,n,r){return t===i&&Object.is(e,n)?1:Object.is(r(t,e),r(i,n))?-1:0}function DP(t,e,i){let n,r,o=0,a=t.length-1;if(Array.isArray(e)){let c=e.length-1;for(;o<=a&&o<=c;){let d=t.at(o),f=e[o],m=lp(o,d,o,f,i);if(m!==0){m<0&&t.updateValue(o,f),o++;continue}let v=t.at(a),y=e[c],g=lp(a,v,c,y,i);if(g!==0){g<0&&t.updateValue(a,y),a--,c--;continue}let b=i(o,d),S=i(a,v),E=i(o,f);if(Object.is(E,S)){let M=i(c,y);Object.is(M,b)?(t.swap(o,a),t.updateValue(a,y),c--,a--):t.move(a,o),t.updateValue(o,f),o++;continue}if(n??=new Gu,r??=o1(t,o,a,i),im(t,n,o,E))t.updateValue(o,f),o++,a++;else if(r.has(E))n.set(b,t.detach(o)),a--;else{let M=t.create(o,e[o]);t.attach(o,M),o++,a++}}for(;o<=c;)r1(t,n,i,o,e[o]),o++}else if(e!=null){let c=e[Symbol.iterator](),d=c.next();for(;!d.done&&o<=a;){let f=t.at(o),m=d.value,v=lp(o,f,o,m,i);if(v!==0)v<0&&t.updateValue(o,m),o++,d=c.next();else{n??=new Gu,r??=o1(t,o,a,i);let y=i(o,m);if(im(t,n,o,y))t.updateValue(o,m),o++,a++,d=c.next();else if(!r.has(y))t.attach(o,t.create(o,m)),o++,a++,d=c.next();else{let g=i(o,f);n.set(g,t.detach(o)),a--}}}for(;!d.done;)r1(t,n,i,t.length,d.value),d=c.next()}for(;o<=a;)t.destroy(t.detach(a--));n?.forEach(c=>{t.destroy(c)})}function im(t,e,i,n){return e!==void 0&&e.has(n)?(t.attach(i,e.get(n)),e.delete(n),!0):!1}function r1(t,e,i,n,r){if(im(t,e,n,i(n,r)))t.updateValue(n,r);else{let o=t.create(n,r);t.attach(n,o)}}function o1(t,e,i,n){let r=new Set;for(let o=e;o<=i;o++)r.add(n(o,t.at(o)));return r}var Gu=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let i=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(i)?(this.kvMap.set(e,this._vMap.get(i)),this._vMap.delete(i)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,i){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,i)}else this.kvMap.set(e,i)}forEach(e){for(let[i,n]of this.kvMap)if(e(n,i),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,i)}}};function Be(t,e,i){Io("NgControlFlow");let n=ye(),r=Fr(),o=am(n,wt+t),a=0;if(kn(n,r,e)){let c=Bt(null);try{if(pg(o,a),e!==-1){let d=lm(n[ue],wt+e),f=Ls(o,d.tView.ssrId),m=yl(n,d,i,{dehydratedView:f});wl(o,m,a,Bs(d,f))}}finally{Bt(c)}}else{let c=fb(o,a);c!==void 0&&(c[sn]=i)}}var rm=class{constructor(e,i,n){this.lContainer=e,this.$implicit=i,this.$index=n}get $count(){return this.lContainer.length-mn}};function _g(t){return t}function Qn(t,e){return e}var om=class{constructor(e,i,n){this.hasEmptyBlock=e,this.trackByFn=i,this.liveCollection=n}};function Sn(t,e,i,n,r,o,a,c,d,f,m,v,y){Io("NgControlFlow");let g=d!==void 0,b=ye(),S=c?a.bind(b[Rn][sn]):a,E=new om(g,S);b[wt+t]=E,be(t+1,e,i,n,r,o),g&&be(t+2,d,f,m,v,y)}var sm=class extends nm{constructor(e,i,n){super(),this.lContainer=e,this.hostLView=i,this.templateTNode=n,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-mn}at(e){return this.getLView(e)[sn].$implicit}attach(e,i){let n=i[Ns];this.needsIndexUpdate||=e!==this.length,wl(this.lContainer,i,e,Bs(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,CP(this.lContainer,e)}create(e,i){let n=Ls(this.lContainer,this.templateTNode.tView.ssrId);return yl(this.hostLView,this.templateTNode,new rm(this.lContainer,i,e),{dehydratedView:n})}destroy(e){cd(e[ue],e)}updateValue(e,i){this.getLView(e)[sn].$implicit=i}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[sn].$index=e}getLView(e){return EP(this.lContainer,e)}};function Mn(t){let e=Bt(null),i=Hi();try{let n=ye(),r=n[ue],o=n[i];if(o.liveCollection===void 0){let c=i+1,d=am(n,c),f=lm(r,c);o.liveCollection=new sm(d,n,f)}else o.liveCollection.reset();let a=o.liveCollection;if(DP(a,t,o.trackByFn),a.updateIndexes(),o.hasEmptyBlock){let c=Fr(),d=a.length===0;if(kn(n,c,d)){let f=i+2,m=am(n,f);if(d){let v=lm(r,f),y=Ls(m,v.tView.ssrId),g=yl(n,v,void 0,{dehydratedView:y});wl(m,g,0,Bs(v,y))}else pg(m,0)}}}finally{Bt(e)}}function am(t,e){return t[e]}function CP(t,e){return ol(t,e)}function EP(t,e){return fb(t,e)}function lm(t,e){return fl(t,e)}function TP(t,e,i,n,r,o){let a=e.consts,c=wo(a,r),d=Gs(e,t,2,n,c);return og(e,i,d,wo(a,o)),d.attrs!==null&&ju(d,d.attrs,!1),d.mergedAttrs!==null&&ju(d,d.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,d),d}function T(t,e,i,n){let r=ye(),o=mt(),a=wt+t,c=r[Ke],d=o.firstCreatePass?TP(a,o,r,e,i,n):o.data[a],f=SP(o,r,d,c,e,t);r[a]=f;let m=ed(d);return Vi(d,!0),Bw(c,f,d),(d.flags&32)!==32&&id()&&dd(o,r,f,d),Mx()===0&&$i(f,r),xx(),m&&(ng(o,r,d),tg(o,d,r)),n!==null&&ig(r,d),T}function x(){let t=gn();Im()?Om():(t=t.parent,Vi(t,!1));let e=t;Ox(e)&&Ax(),Ix();let i=mt();return i.firstCreatePass&&(od(i,t),Em(t)&&i.queries.elementEnd(t)),e.classesWithoutHost!=null&&Gx(e)&&tm(i,e,ye(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&Wx(e)&&tm(i,e,ye(),e.stylesWithoutHost,!1),x}function Ce(t,e,i,n){return T(t,e,i,n),x(),Ce}var SP=(t,e,i,n,r,o)=>(rd(!0),Wm(n,r,$x()));function MP(t,e,i,n,r){let o=e.consts,a=wo(o,n),c=Gs(e,t,8,"ng-container",a);a!==null&&ju(c,a,!0);let d=wo(o,r);return og(e,i,c,d),e.queries!==null&&e.queries.elementStart(e,c),c}function vg(t,e,i){let n=ye(),r=mt(),o=t+wt,a=r.firstCreatePass?MP(o,r,n,e,i):r.data[o];Vi(a,!0);let c=xP(r,n,a,t);return n[o]=c,id()&&dd(r,n,c,a),$i(c,n),ed(a)&&(ng(r,n,a),tg(r,a,n)),i!=null&&ig(n,a),vg}function yg(){let t=gn(),e=mt();return Im()?Om():(t=t.parent,Vi(t,!1)),e.firstCreatePass&&(od(e,t),Em(t)&&e.queries.elementEnd(t)),yg}function wg(t,e,i){return vg(t,e,i),yg(),wg}var xP=(t,e,i,n)=>(rd(!0),Ew(e[Ke],""));function Dt(){return ye()}function Ao(t,e,i){let n=ye(),r=Fr();if(kn(n,r,e)){let o=mt(),a=ml();gd(o,a,n,t,e,n[Ke],i,!0)}return Ao}var fo=void 0;function IP(t){let e=t,i=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&n===0?1:5}var OP=["en",[["a","p"],["AM","PM"],fo],[["AM","PM"],fo,fo],[["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"]],fo,[["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"]],fo,[["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}",fo,"{1} 'at' {0}",fo],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",IP],cp={};function $n(t){let e=AP(t),i=s1(e);if(i)return i;let n=e.split("-")[0];if(i=s1(n),i)return i;if(n==="en")return OP;throw new ne(701,!1)}function Ib(t){return $n(t)[Ct.PluralCase]}function s1(t){return t in cp||(cp[t]=Vn.ng&&Vn.ng.common&&Vn.ng.common.locales&&Vn.ng.common.locales[t]),cp[t]}var Ct=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(Ct||{});function AP(t){return t.toLowerCase().replace(/_/g,"-")}var PP=["zero","one","two","few","many"];function NP(t,e){let i=Ib(e)(parseInt(t,10)),n=PP[i];return n!==void 0?n:"other"}var Wu="en-US";var Ob={marker:"element"},Ab={marker:"ICU"},sr=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}(sr||{}),Pb=Wu;function RP(t){typeof t=="string"&&(Pb=t.toLowerCase().replace(/_/g,"-"))}function kP(){return Pb}function Nb(t,e,i){let n=e.insertBeforeIndex,r=Array.isArray(n)?n[0]:n;return r===null?Aw(t,e,i):Zn(i[r])}function Rb(t,e,i,n,r){let o=e.insertBeforeIndex;if(Array.isArray(o)){let a=n,c=null;if(e.type&3||(c=a,a=r),a!==null&&e.componentOffset===-1)for(let d=1;d<o.length;d++){let f=i[o[d]];Eo(t,a,f,c,!1)}}}function kb(t,e){if(t.push(e),t.length>1)for(let i=t.length-2;i>=0;i--){let n=t[i];Fb(n)||FP(n,e)&&LP(n)===null&&BP(n,e.index)}}function Fb(t){return!(t.type&64)}function FP(t,e){return Fb(e)||t.index>e.index}function LP(t){let e=t.insertBeforeIndex;return Array.isArray(e)?e[0]:e}function BP(t,e){let i=t.insertBeforeIndex;Array.isArray(i)?i[0]=e:(Nw(Nb,Rb),t.insertBeforeIndex=e)}function qa(t,e){let i=t.data[e];return i===null||typeof i=="string"?null:i.hasOwnProperty("currentCaseLViewIndex")?i:i.value}function VP(t,e,i){let n=t.data[e];n===null?t.data[e]=i:n.value=i}function jP(t,e){let i=t.insertBeforeIndex;i===null?(Nw(Nb,Rb),i=t.insertBeforeIndex=[null,e]):(UM(Array.isArray(i),!0,"Expecting array here"),i.push(e))}function $P(t,e,i){let n=eg(t,i,64,null,null);return kb(e,n),n}function Md(t,e){let i=e[t.currentCaseLViewIndex];return i===null?i:i<0?~i:i}function UP(t){return t>>>17}function HP(t){return(t&131070)>>>1}function zP(t,e,i){return t|e<<17|i<<1}var ul=0,Ya=0;function GP(t){t&&(ul=ul|1<<Math.min(Ya,31)),Ya++}function WP(t,e,i){if(Ya>0){let n=t.data[i],r=Array.isArray(n)?n:n.update,o=Am()-Ya-1;Bb(t,e,r,o,ul)}ul=0,Ya=0}function ZP(t,e,i,n){let r=t[Ke];for(let o=0;o<e.length;o++){let a=e[o++],c=e[o],d=(a&sr.COMMENT)===sr.COMMENT,f=(a&sr.APPEND_EAGERLY)===sr.APPEND_EAGERLY,m=a>>>sr.SHIFT,v=t[m];v===null&&(v=t[m]=d?r.createComment(c):Gm(r,c)),f&&i!==null&&Eo(r,i,v,n,!1)}}function Lb(t,e,i,n){let r=i[Ke],o=null,a;for(let c=0;c<e.length;c++){let d=e[c];if(typeof d=="string"){let f=e[++c];i[f]===null&&(i[f]=Gm(r,d))}else if(typeof d=="number")switch(d&1){case 0:let f=UP(d);o===null&&(o=f,a=ud(r,n));let m,v;if(f===o?(m=n,v=a):(m=null,v=Zn(i[f])),v!==null){let S=HP(d),E=i[S];Eo(r,v,E,m,!1);let M=qa(t,S);if(M!==null&&typeof M=="object"){let V=Md(M,i);V!==null&&Lb(t,M.create[V],i,i[M.anchorIdx])}}break;case 1:let y=d>>>1,g=e[++c],b=e[++c];sg(r,td(y,i),null,null,g,b,null);break;default:}else switch(d){case Ab:let f=e[++c],m=e[++c];if(i[m]===null){let g=i[m]=Ew(r,f);$i(g,i)}break;case Ob:let v=e[++c],y=e[++c];if(i[y]===null){let g=i[y]=Wm(r,v,null);$i(g,i)}break;default:}}}function Bb(t,e,i,n,r){for(let o=0;o<i.length;o++){let a=i[o],c=i[++o];if(a&r){let d="";for(let f=o+1;f<=o+c;f++){let m=i[f];if(typeof m=="string")d+=m;else if(typeof m=="number")if(m<0)d+=Fi(e[n-m]);else{let v=m>>>2;switch(m&3){case 1:let y=i[++f],g=i[++f],b=t.data[v];typeof b=="string"?sg(e[Ke],e[v],null,b,y,d,g):gd(t,b,e,y,d,e[Ke],g,!1);break;case 0:let S=e[v];S!==null&&Cw(e[Ke],S,d);break;case 2:qP(t,qa(t,v),e,d);break;case 3:a1(t,qa(t,v),n,e);break}}}}else{let d=i[o+1];if(d>0&&(d&3)===3){let f=d>>>2,m=qa(t,f);e[m.currentCaseLViewIndex]<0&&a1(t,m,n,e)}}o+=c}}function a1(t,e,i,n){let r=n[e.currentCaseLViewIndex];if(r!==null){let o=ul;r<0&&(r=n[e.currentCaseLViewIndex]=~r,o=-1),Bb(t,n,e.update[r],i,o)}}function qP(t,e,i,n){let r=YP(e,n);if(Md(e,i)!==r&&(Vb(t,e,i),i[e.currentCaseLViewIndex]=r===null?null:~r,r!==null)){let a=i[e.anchorIdx];a&&Lb(t,e.create[r],i,a)}}function Vb(t,e,i){let n=Md(e,i);if(n!==null){let r=e.remove[n];for(let o=0;o<r.length;o++){let a=r[o];if(a>0){let c=td(a,i);c!==null&&kw(i[Ke],c)}else Vb(t,qa(t,~a),i)}}}function YP(t,e){let i=t.cases.indexOf(e);if(i===-1)switch(t.type){case 1:{let n=NP(e,kP());i=t.cases.indexOf(n),i===-1&&n!=="other"&&(i=t.cases.indexOf("other"));break}case 0:{i=t.cases.indexOf("other");break}}return i===-1?null:i}function QP(){let t=[],e=-1,i,n;function r(c,d){for(i=d;t.length;)t.pop();return o(c.value,d),a}function o(c,d){e=0;let f=Md(c,d);f!==null?n=c.remove[f]:n=bn}function a(){if(e<n.length){let c=n[e++];if(c>0)return i[c];{t.push(e,n);let d=~c,f=i[ue].data[d];return o(f,i),a()}}else return t.length===0?null:(n=t.pop(),e=t.pop(),a())}return r}var Zu=/�(\d+):?\d*�/gi;var JP=/�(\d+)�/,jb=/^\s*(�\d+:?\d*�)\s*,\s*(select|plural)\s*,/,Qa="\uFFFD",KP=/�\/?\*(\d+:\d+)�/gi,XP=/�(\/?[#*]\d+):?\d*�/gi,eN=/\uE500/g;function tN(t){return t.replace(eN," ")}function nN(t,e,i,n,r,o){let a=il(),c=[],d=[],f=[[]];r=oN(r,o);let m=tN(r).split(XP);for(let v=0;v<m.length;v++){let y=m[v];if(v&1){let g=y.charCodeAt(0)===47,b=y.charCodeAt(g?1:0),S=wt+Number.parseInt(y.substring(g?2:1));if(g)f.shift(),Vi(il(),!1);else{let E=$P(t,f[0],S);f.unshift([]),Vi(E,!0)}}else{let g=cm(y);for(let b=0;b<g.length;b++){let S=g[b];if(b&1){let E=S;if(typeof E!="object")throw new Error(`Unable to parse ICU expression in "${r}" message.`);let V=$b(t,a,f[0],i,c,"",!0).index;Hb(t,i,d,e,E,V)}else{let E=S;E!==""&&iN(t,a,f[0],c,d,i,E)}}}}t.data[n]={create:c,update:d}}function $b(t,e,i,n,r,o,a){let c=vl(t,n,1,null),d=c<<sr.SHIFT,f=il();e===f&&(f=null),f===null&&(d|=sr.APPEND_EAGERLY),a&&(d|=sr.COMMENT,AI(QP)),r.push(d,o===null?"":o);let m=eg(t,c,a?32:1,o===null?"":o,null);kb(i,m);let v=m.index;return Vi(m,!1),f!==null&&e!==f&&jP(f,v),m}function iN(t,e,i,n,r,o,a){let c=a.match(Zu),d=$b(t,e,i,o,n,c?null:a,!1);c&&Su(r,a,d.index,null,0,null)}function Su(t,e,i,n,r,o){let a=t.length,c=a+1;t.push(null,null);let d=a+2,f=e.split(Zu),m=0;for(let v=0;v<f.length;v++){let y=f[v];if(v&1){let g=r+parseInt(y,10);t.push(-1-g),m=m|Ub(g)}else y!==""&&t.push(y)}return t.push(i<<2|(n?1:0)),n&&t.push(n,o),t[a]=m,t[c]=t.length-d,m}function Ub(t){return 1<<Math.min(t,31)}function rN(t){return t===-1}function l1(t){let e,i="",n=0,r=!1,o;for(;(e=KP.exec(t))!==null;)r?e[0]===`${Qa}/*${o}${Qa}`&&(n=e.index,r=!1):(i+=t.substring(n,e.index+e[0].length),o=e[1],r=!0);return i+=t.slice(n),i}function oN(t,e){if(rN(e))return l1(t);{let i=t.indexOf(`:${e}${Qa}`)+2+e.toString().length,n=t.search(new RegExp(`${Qa}\\/\\*\\d+:${e}${Qa}`));return l1(t.substring(i,n))}}function Hb(t,e,i,n,r,o){let a=0,c={type:r.type,currentCaseLViewIndex:vl(t,e,1,null),anchorIdx:o,cases:[],create:[],remove:[],update:[]};cN(i,r,o),VP(t,o,c);let d=r.values;for(let f=0;f<d.length;f++){let m=d[f],v=[];for(let y=0;y<m.length;y++){let g=m[y];if(typeof g!="string"){let b=v.push(g)-1;m[y]=`<!--\uFFFD${b}\uFFFD-->`}}a=aN(t,c,e,i,n,r.cases[f],m.join(""),v)|a}a&&uN(i,a,o)}function sN(t){let e=[],i=[],n=1,r=0;t=t.replace(jb,function(a,c,d){return d==="select"?n=0:n=1,r=parseInt(c.slice(1),10),""});let o=cm(t);for(let a=0;a<o.length;){let c=o[a++].trim();n===1&&(c=c.replace(/\s*(?:=)?(\w+)\s*/,"$1")),c.length&&e.push(c);let d=cm(o[a++]);e.length>i.length&&i.push(d)}return{type:n,mainBinding:r,cases:e,values:i}}function cm(t){if(!t)return[];let e=0,i=[],n=[],r=/[{}]/g;r.lastIndex=0;let o;for(;o=r.exec(t);){let c=o.index;if(o[0]=="}"){if(i.pop(),i.length==0){let d=t.substring(e,c);jb.test(d)?n.push(sN(d)):n.push(d),e=c+1}}else{if(i.length==0){let d=t.substring(e,c);n.push(d),e=c+1}i.push("{")}}let a=t.substring(e);return n.push(a),n}function aN(t,e,i,n,r,o,a,c){let d=[],f=[],m=[];e.cases.push(o),e.create.push(d),e.remove.push(f),e.update.push(m);let y=qI(vw()).getInertBodyElement(a),g=oO(y)||y;return g?zb(t,e,i,n,d,f,m,g,r,c,0):0}function zb(t,e,i,n,r,o,a,c,d,f,m){let v=0,y=c.firstChild;for(;y;){let g=vl(t,i,1,null);switch(y.nodeType){case Node.ELEMENT_NODE:let b=y,S=b.tagName.toLowerCase();if(tO.hasOwnProperty(S)){up(r,Ob,S,d,g),t.data[g]=S;let W=b.attributes;for(let N=0;N<W.length;N++){let $=W.item(N),Y=$.name.toLowerCase();!!$.value.match(Zu)?rO.hasOwnProperty(Y)&&($w[Y]?Su(a,$.value,g,$.name,0,Qm):Su(a,$.value,g,$.name,0,null)):dN(r,g,$)}v=zb(t,e,i,n,r,o,a,y,g,f,m+1)|v,c1(o,g,m)}break;case Node.TEXT_NODE:let E=y.textContent||"",M=E.match(Zu);up(r,null,M?"":E,d,g),c1(o,g,m),M&&(v=Su(a,E,g,null,0,null)|v);break;case Node.COMMENT_NODE:let V=JP.exec(y.textContent||"");if(V){let W=parseInt(V[1],10),N=f[W];up(r,Ab,"",d,g),Hb(t,i,n,d,N,g),lN(o,g,m)}break}y=y.nextSibling}return v}function c1(t,e,i){i===0&&t.push(e)}function lN(t,e,i){i===0&&(t.push(~e),t.push(e))}function cN(t,e,i){t.push(Ub(e.mainBinding),2,-1-e.mainBinding,i<<2|2)}function uN(t,e,i){t.push(e,1,i<<2|3)}function up(t,e,i,n,r){e!==null&&t.push(e),t.push(i,r,zP(0,n,r))}function dN(t,e,i){t.push(e<<1|1,i.name,i.value)}function hN(t,e,i=-1){let n=mt(),r=ye(),o=wt+t,a=wo(n.consts,e),c=il();if(n.firstCreatePass&&nN(n,c===null?0:c.index,r,o,a,i),n.type===2){let y=r[Rn];y[he]|=32}else r[he]|=32;let d=n.data[o],f=c===r[Fn]?null:c,m=xw(n,f,r),v=c&&c.type&8?r[c.index]:null;ZP(r,d.create,m,v),z1(!0)}function fN(){z1(!1)}function xd(t,e,i){hN(t,e,i),fN()}function bg(t){let e=ye();return GP(kn(e,Fr(),t)),bg}function Gb(t){WP(mt(),ye(),t+wt)}function Po(t){return!!t&&typeof t.then=="function"}function Wb(t){return!!t&&typeof t.subscribe=="function"}function ae(t,e,i,n){let r=ye(),o=mt(),a=gn();return mN(o,r,r[Ke],a,t,e,n),ae}function pN(t,e,i,n){let r=t.cleanup;if(r!=null)for(let o=0;o<r.length-1;o+=2){let a=r[o];if(a===i&&r[o+1]===n){let c=e[Xa],d=r[o+2];return c.length>d?c[d]:null}typeof a=="string"&&(o+=2)}return null}function mN(t,e,i,n,r,o,a){let c=ed(n),f=t.firstCreatePass&&ab(t),m=e[sn],v=sb(e),y=!0;if(n.type&3||a){let S=qn(n,e),E=a?a(S):S,M=v.length,V=a?N=>a(Zn(N[n.index])):n.index,W=null;if(!a&&c&&(W=pN(t,e,r,n.index)),W!==null){let N=W.__ngLastListenerFn__||W;N.__ngNextListenerFn__=o,W.__ngLastListenerFn__=o,y=!1}else{o=d1(n,e,m,o,!1);let N=i.listen(E,r,o);v.push(o,N),f&&f.push(r,V,M,M+1)}}else o=d1(n,e,m,o,!1);let g=n.outputs,b;if(y&&g!==null&&(b=g[r])){let S=b.length;if(S)for(let E=0;E<S;E+=2){let M=b[E],V=b[E+1],$=e[M][V].subscribe(o),Y=v.length;v.push(o,$),f&&f.push(r,n.index,Y,-(Y+1))}}}function u1(t,e,i,n){try{return Ri(6,e,i),i(n)!==!1}catch(r){return vd(t,r),!1}finally{Ri(7,e,i)}}function d1(t,e,i,n,r){return function o(a){if(a===Function)return n;let c=t.componentOffset>-1?kr(t.index,e):e;yd(c);let d=u1(e,i,n,a),f=o.__ngNextListenerFn__;for(;f;)d=u1(e,i,f,a)&&d,f=f.__ngNextListenerFn__;return r&&d===!1&&a.preventDefault(),d}}function U(t=1){return Vx(t)}function gN(t,e){let i=null,n=ox(t);for(let r=0;r<e.length;r++){let o=e[r];if(o==="*"){i=r;continue}if(n===null?M1(t,o,!0):lx(n,o))return r}return i}function Ws(t){let e=ye()[Rn][Fn];if(!e.projection){let i=t?t.length:1,n=e.projection=sI(i,null),r=n.slice(),o=e.child;for(;o!==null;){let a=t?gN(o,t):0;a!==null&&(r[a]?r[a].projectionNext=o:n[a]=o,r[a]=o),o=o.next}}}function No(t,e=0,i){let n=ye(),r=mt(),o=Gs(r,wt+t,16,null,i||null);o.projection===null&&(o.projection=e),Om(),(!n[Ns]||U1())&&(o.flags&32)!==32&&$I(r,n,o)}function _N(t,e,i,n,r){let o=ye(),a=bb(o,e,i,n);if(a!==En){let c=mt(),d=ml();gd(c,d,o,t,a,o[Ke],r,!1)}return _N}function vN(){return this._results[Symbol.iterator]()}var um=class t{get changes(){return this._changes??=new ve}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let i=t.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=vN)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,i){return this._results.reduce(e,i)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,i){this.dirty=!1;let n=oI(e);(this._changesDetected=!rI(this._results,n,i))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}},jn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=bN;let t=e;return t})(),yN=jn,wN=class extends yN{constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){let r=yl(this._declarationLView,this._declarationTContainer,e,{injector:i,dehydratedView:n});return new To(r)}};function bN(){return Id(gn(),ye())}function Id(t,e){return t.type&4?new wN(e,t,zs(t,e)):null}var dm=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},hm=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let i=e.queries;if(i!==null){let n=e.contentQueries!==null?e.contentQueries[0]:i.length,r=[];for(let o=0;o<n;o++){let a=i.getByIndex(o),c=this.queries[a.indexInDeclarationView];r.push(c.clone())}return new t(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let i=0;i<this.queries.length;i++)Qb(e,i).matches!==null&&this.queries[i].setDirty()}},qu=class{constructor(e,i,n=null){this.predicate=e,this.flags=i,this.read=n}},fm=class t{constructor(e=[]){this.queries=e}elementStart(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,i)}elementEnd(e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(e)}embeddedTView(e){let i=null;for(let n=0;n<this.length;n++){let r=i!==null?i.length:0,o=this.getByIndex(n).embeddedTView(e,r);o&&(o.indexInDeclarationView=n,i!==null?i.push(o):i=[o])}return i!==null?new t(i):null}template(e,i){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,i)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},pm=class t{constructor(e,i=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(e,i){this.isApplyingToNode(i)&&this.matchTNode(e,i)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,i){this.elementStart(e,i)}embeddedTView(e,i){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,i),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let i=this._declarationNodeIndex,n=e.parent;for(;n!==null&&n.type&8&&n.index!==i;)n=n.parent;return i===(n!==null?n.index:-1)}return this._appliesToNextNode}matchTNode(e,i){let n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){let o=n[r];this.matchTNodeWithReadOption(e,i,DN(i,o)),this.matchTNodeWithReadOption(e,i,Cu(i,e,o,!1,!1))}else n===jn?i.type&4&&this.matchTNodeWithReadOption(e,i,-1):this.matchTNodeWithReadOption(e,i,Cu(i,e,n,!1,!1))}matchTNodeWithReadOption(e,i,n){if(n!==null){let r=this.metadata.read;if(r!==null)if(r===Ne||r===pi||r===jn&&i.type&4)this.addMatch(i.index,-2);else{let o=Cu(i,e,r,!1,!1);o!==null&&this.addMatch(i.index,o)}else this.addMatch(i.index,n)}}addMatch(e,i){this.matches===null?this.matches=[e,i]:this.matches.push(e,i)}};function DN(t,e){let i=t.localNames;if(i!==null){for(let n=0;n<i.length;n+=2)if(i[n]===e)return i[n+1]}return null}function CN(t,e){return t.type&11?zs(t,e):t.type&4?Id(t,e):null}function EN(t,e,i,n){return i===-1?CN(e,t):i===-2?TN(t,e,n):Co(t,t[ue],i,e)}function TN(t,e,i){if(i===Ne)return zs(e,t);if(i===jn)return Id(e,t);if(i===pi)return mb(e,t)}function Zb(t,e,i,n){let r=e[Li].queries[n];if(r.matches===null){let o=t.data,a=i.matches,c=[];for(let d=0;d<a.length;d+=2){let f=a[d];if(f<0)c.push(null);else{let m=o[f];c.push(EN(e,m,a[d+1],i.metadata.read))}}r.matches=c}return r.matches}function mm(t,e,i,n){let r=t.queries.getByIndex(i),o=r.matches;if(o!==null){let a=Zb(t,e,r,i);for(let c=0;c<o.length;c+=2){let d=o[c];if(d>0)n.push(a[c/2]);else{let f=o[c+1],m=e[-d];for(let v=mn;v<m.length;v++){let y=m[v];y[hl]===y[Yt]&&mm(y[ue],y,f,n)}if(m[Rs]!==null){let v=m[Rs];for(let y=0;y<v.length;y++){let g=v[y];mm(g[ue],g,f,n)}}}}}return n}function SN(t,e){return t[Li].queries[e].queryList}function qb(t,e,i){let n=new um((i&4)===4);AO(t,e,n,n.destroy),e[Li]===null&&(e[Li]=new hm),e[Li].queries.push(new dm(n))}function Yb(t,e,i){t.queries===null&&(t.queries=new fm),t.queries.track(new pm(e,i))}function MN(t,e){let i=t.contentQueries||(t.contentQueries=[]),n=i.length?i[i.length-1]:-1;e!==n&&i.push(t.queries.length-1,e)}function Qb(t,e){return t.queries.getByIndex(e)}function un(t,e,i,n){let r=mt();if(r.firstCreatePass){let o=gn();Yb(r,new qu(e,i,n),o.index),MN(r,t),(i&2)===2&&(r.staticContentQueries=!0)}qb(r,ye(),i)}function Gi(t,e,i){let n=mt();n.firstCreatePass&&(Yb(n,new qu(t,e,i),-1),(e&2)===2&&(n.staticViewQueries=!0)),qb(n,ye(),e)}function at(t){let e=ye(),i=mt(),n=G1();Pm(n+1);let r=Qb(i,n);if(t.dirty&&Cx(e)===((r.metadata.flags&2)===2)){if(r.matches===null)t.reset([]);else{let o=r.crossesNgTemplate?mm(i,e,n,[]):Zb(i,e,r,n);t.reset(o,mO),t.notifyOnChanges()}return!0}return!1}function lt(){return SN(ye(),G1())}function xN(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}function _n(t){let e=Px();return Tm(e,wt+t)}function B(t,e=""){let i=ye(),n=mt(),r=t+wt,o=n.firstCreatePass?Gs(n,r,1,e,null):n.data[r],a=IN(n,i,o,e,t);i[r]=a,id()&&dd(n,i,a,o),Vi(o,!1)}var IN=(t,e,i,n,r)=>(rd(!0),Gm(e[Ke],n));function Ut(t){return vn("",t,""),Ut}function vn(t,e,i){let n=ye(),r=bb(n,t,e,i);return r!==En&&lg(n,Hi(),r),vn}function Dg(t,e,i,n,r){let o=ye(),a=eP(o,t,e,i,n,r);return a!==En&&lg(o,Hi(),a),Dg}function Cg(t,e,i,n,r,o,a){let c=ye(),d=tP(c,t,e,i,n,r,o,a);return d!==En&&lg(c,Hi(),d),Cg}function ON(t,e,i){let n=mt();if(n.firstCreatePass){let r=Nr(t);gm(i,n.data,n.blueprint,r,!0),gm(e,n.data,n.blueprint,r,!1)}}function gm(t,e,i,n,r){if(t=wn(t),Array.isArray(t))for(let o=0;o<t.length;o++)gm(t[o],e,i,n,r);else{let o=mt(),a=ye(),c=gn(),d=Fs(t)?t:wn(t.provide),f=mw(t),m=c.providerIndexes&1048575,v=c.directiveStart,y=c.providerIndexes>>20;if(Fs(t)||!t.multi){let g=new Do(f,r,q),b=hp(d,e,r?m:m+y,v);b===-1?(Cp(Ru(c,a),o,d),dp(o,t,e.length),e.push(d),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),i.push(g),a.push(g)):(i[b]=g,a[b]=g)}else{let g=hp(d,e,m+y,v),b=hp(d,e,m,m+y),S=g>=0&&i[g],E=b>=0&&i[b];if(r&&!E||!r&&!S){Cp(Ru(c,a),o,d);let M=NN(r?PN:AN,i.length,r,n,f);!r&&E&&(i[b].providerFactory=M),dp(o,t,e.length,0),e.push(d),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),i.push(M),a.push(M)}else{let M=Jb(i[r?b:g],f,!r&&n);dp(o,t,g>-1?g:b,M)}!r&&n&&E&&i[b].componentProviders++}}}function dp(t,e,i,n){let r=Fs(e),o=fI(e);if(r||o){let d=(o?wn(e.useClass):e).prototype.ngOnDestroy;if(d){let f=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){let m=f.indexOf(i);m===-1?f.push(i,[n,d]):f[m+1].push(n,d)}else f.push(i,d)}}}function Jb(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function hp(t,e,i,n){for(let r=i;r<n;r++)if(e[r]===t)return r;return-1}function AN(t,e,i,n){return _m(this.multi,[])}function PN(t,e,i,n){let r=this.multi,o;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Co(i,i[ue],this.providerFactory.index,n);o=c.slice(0,a),_m(r,o);for(let d=a;d<c.length;d++)o.push(c[d])}else o=[],_m(r,o);return o}function _m(t,e){for(let i=0;i<t.length;i++){let n=t[i];e.push(n())}return e}function NN(t,e,i,n,r){let o=new Do(t,i,q);return o.multi=[],o.index=e,o.componentProviders=0,Jb(o,r,n&&!i),o}function Nt(t,e=[]){return i=>{i.providersResolver=(n,r)=>ON(n,r?r(t):t,e)}}var RN=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=hw(!1,n.type),o=r.length>0?wd([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=F({token:e,providedIn:"environment",factory:()=>new e(re(Qt))});let t=e;return t})();function xn(t){Io("NgStandalone"),t.getStandaloneInjector=e=>e.get(RN).getOrCreateStandaloneInjector(t)}function eG(t,e,i){let n=pl()+t,r=ye();return r[n]===En?bd(r,n,i?e.call(i):e()):NA(r,n)}function ur(t,e,i,n){return Xb(ye(),pl(),t,e,i,n)}function Kb(t,e,i,n,r,o,a){return FN(ye(),pl(),t,e,i,n,r,o,a)}function Eg(t,e){let i=t[e];return i===En?void 0:i}function Xb(t,e,i,n,r,o){let a=e+i;return kn(t,a,r)?bd(t,a+1,o?n.call(o,r):n(r)):Eg(t,a+1)}function kN(t,e,i,n,r,o,a){let c=e+i;return ll(t,c,r,o)?bd(t,c+2,a?n.call(a,r,o):n(r,o)):Eg(t,c+2)}function FN(t,e,i,n,r,o,a,c,d){let f=e+i;return kA(t,f,r,o,a,c)?bd(t,f+4,d?n.call(d,r,o,a,c):n(r,o,a,c)):Eg(t,f+4)}function Jn(t,e){let i=mt(),n,r=t+wt;i.firstCreatePass?(n=LN(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks??=[]).push(r,n.onDestroy)):n=i.data[r];let o=n.factory||(n.factory=yo(n.type,!0)),a,c=Pn(q);try{let d=Nu(!1),f=o();return Nu(d),xN(i,ye(),r,f),f}finally{Pn(c)}}function LN(t,e){if(e)for(let i=e.length-1;i>=0;i--){let n=e[i];if(t===n.name)return n}}function BN(t,e,i){let n=t+wt,r=ye(),o=Tm(r,n);return eD(r,n)?Xb(r,pl(),e,o.transform,i,o):o.transform(i)}function mi(t,e,i,n){let r=t+wt,o=ye(),a=Tm(o,r);return eD(o,r)?kN(o,pl(),e,a.transform,i,n,a):a.transform(i,n)}function eD(t,e){return t[ue].data[e].pure}function gi(t,e){return Id(t,e)}var Od=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),vm=class{constructor(e,i){this.ngModuleFactory=e,this.componentFactories=i}},Ad=(()=>{let e=class e{compileModuleSync(n){return new Jp(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=I1(n),a=yw(o.declarations).reduce((c,d)=>{let f=fi(d);return f&&c.push(new So(f)),c},[]);return new vm(r,a)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var tD=new le("");var Pd=new le(""),nD=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=D(Pd,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let a=o();if(Po(a))n.push(a);else if(Wb(a)){let c=new Promise((d,f)=>{a.subscribe({complete:d,error:f})});n.push(c)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Dl=new le("");function VN(){Z0(()=>{throw new ne(600,!1)})}function jN(t){return t.isBoundToModule}function $N(t,e,i){try{let n=i();return Po(n)?n.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var dr=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=D(Yw),this.afterRenderEffectManager=D(dg),this.componentTypes=[],this.components=[],this.isStable=D(Oo).hasPendingTasks.pipe(se(n=>!n)),this._injector=D(Qt)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Bu;if(!this._injector.get(nD).done){let g=!o&&x1(n),b=!1;throw new ne(405,b)}let c;o?c=n:c=this._injector.get(pd).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let d=jN(c)?void 0:this._injector.get(Rr),f=r||c.selector,m=c.create(cn.NULL,[],f,d),v=m.location.nativeElement,y=m.injector.get(tD,null);return y?.registerApplication(v),m.onDestroy(()=>{this.detachView(m.hostView),fp(this.components,m),y?.unregisterApplication(v)}),this._loadComponent(m),m}tick(){if(this._runningTick)throw new ne(101,!1);try{this._runningTick=!0,this.detectChangesInAttachedViews()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}detectChangesInAttachedViews(){let n=0;do{if(n===lb)throw new ne(103,!1);let r=n===0;for(let{_lView:o,notifyErrorHandler:a}of this._views)!r&&!h1(o)||this.detectChangesInView(o,a,r);this.afterRenderEffectManager.execute(),n++}while(this._views.some(({_lView:r})=>h1(r)))}detectChangesInView(n,r,o){let a;o?(a=0,n[he]|=1024):n[he]&64?a=0:a=1,cb(n,r,a)}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;fp(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Dl,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>fp(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new ne(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function fp(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function h1(t){return Mm(t)}var UN=(()=>{let e=class e{constructor(){this.zone=D(Re),this.applicationRef=D(dr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function HN(t){return[{provide:Re,useFactory:t},{provide:ks,multi:!0,useFactory:()=>{let e=D(UN,{optional:!0});return()=>e.initialize()}},{provide:ks,multi:!0,useFactory:()=>{let e=D(ZN);return()=>{e.initialize()}}},{provide:Yw,useFactory:zN}]}function zN(){let t=D(Re),e=D(Ui);return i=>t.runOutsideAngular(()=>e.handleError(i))}function GN(t){let e=HN(()=>new Re(WN(t)));return Us([[],e])}function WN(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var ZN=(()=>{let e=class e{constructor(){this.subscription=new vt,this.initialized=!1,this.zone=D(Re),this.pendingTasks=D(Oo)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Re.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Re.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function qN(){return typeof $localize<"u"&&$localize.locale||Wu}var Cl=new le("",{providedIn:"root",factory:()=>D(Cl,Pe.Optional|Pe.SkipSelf)||qN()});var iD=new le("");var Mu=null;function YN(t=[],e){return cn.create({name:e,providers:[{provide:ad,useValue:"platform"},{provide:iD,useValue:new Set([()=>Mu=null])},...t]})}function QN(t=[]){if(Mu)return Mu;let e=YN(t);return Mu=e,VN(),JN(e),e}function JN(t){t.get(Um,null)?.forEach(i=>i())}function rD(t){try{let{rootComponent:e,appProviders:i,platformProviders:n}=t,r=QN(n),o=[GN(),...i||[]],c=new Uu({providers:o,parent:r,debugName:"",runEnvironmentInitializers:!1}).injector,d=c.get(Re);return d.run(()=>{c.resolveInjectorInitializers();let f=c.get(Ui,null),m;d.runOutsideAngular(()=>{m=d.onError.subscribe({next:g=>{f.handleError(g)}})});let v=()=>c.destroy(),y=r.get(iD);return y.add(v),c.onDestroy(()=>{m.unsubscribe(),y.delete(v)}),$N(f,d,()=>{let g=c.get(nD);return g.runInitializers(),g.donePromise.then(()=>{let b=c.get(Cl,Wu);RP(b||Wu);let S=c.get(dr);return e!==void 0&&S.bootstrap(e),S})})})}catch(e){return Promise.reject(e)}}function Ro(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Nd(t,e){let i=fi(t),n=e.elementInjector||ld();return new So(i).create(n,e.projectableNodes,e.hostElement,e.environmentInjector)}function oD(t){let e=fi(t);if(!e)return null;let i=new So(e);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var dD=null;function Wi(){return dD}function hD(t){dD??=t}var Ud=class{},tt=new le(""),Ng=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:()=>D(XN),providedIn:"platform"});let t=e;return t})(),fD=new le(""),XN=(()=>{let e=class e extends Ng{constructor(){super(),this._doc=D(tt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Wi().getBaseHref(this._doc)}onPopState(n){let r=Wi().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Wi().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Rg(t,e){if(t.length==0)return e;if(e.length==0)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,i==2?t+e.substring(1):i==1?t+e:t+"/"+e}function sD(t){let e=t.match(/#|\?|$/),i=e&&e.index||t.length,n=i-(t[i-1]==="/"?1:0);return t.slice(0,n)+t.slice(i)}function fr(t){return t&&t[0]!=="?"?"?"+t:t}var gr=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:()=>D(kg),providedIn:"root"});let t=e;return t})(),pD=new le(""),kg=(()=>{let e=class e extends gr{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??D(tt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Rg(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+fr(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,a){let c=this.prepareExternalUrl(o+fr(a));this._platformLocation.pushState(n,r,c)}replaceState(n,r,o,a){let c=this.prepareExternalUrl(o+fr(a));this._platformLocation.replaceState(n,r,c)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(r){return new(r||e)(re(Ng),re(pD,8))},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),mD=(()=>{let e=class e extends gr{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=Rg(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,a){let c=this.prepareExternalUrl(o+fr(a));c.length==0&&(c=this._platformLocation.pathname),this._platformLocation.pushState(n,r,c)}replaceState(n,r,o,a){let c=this.prepareExternalUrl(o+fr(a));c.length==0&&(c=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,c)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(r){return new(r||e)(re(Ng),re(pD,8))},e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})(),jr=(()=>{let e=class e{constructor(n){this._subject=new ve,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=nR(sD(aD(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+fr(r))}normalize(n){return e.stripTrailingSlash(tR(this._basePath,aD(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+fr(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+fr(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}};e.normalizeQueryParams=fr,e.joinWithSlash=Rg,e.stripTrailingSlash=sD,e.\u0275fac=function(r){return new(r||e)(re(gr))},e.\u0275prov=F({token:e,factory:()=>eR(),providedIn:"root"});let t=e;return t})();function eR(){return new jr(re(gr))}function tR(t,e){if(!t||!e.startsWith(t))return e;let i=e.substring(t.length);return i===""||["/",";","?","#"].includes(i[0])?i:e}function aD(t){return t.replace(/\/index.html$/,"")}function nR(t){if(new RegExp("^(https?:)?//").test(t)){let[,i]=t.split(/\/\/[^\/]+/);return i}return t}var Ht=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Ht||{}),Ve=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(Ve||{}),Un=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(Un||{}),pr=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t.Infinity=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}(pr||{});function iR(t){return $n(t)[Ct.LocaleId]}function gD(t,e,i){let n=$n(t),r=[n[Ct.DayPeriodsFormat],n[Ct.DayPeriodsStandalone]],o=Kn(r,e);return Kn(o,i)}function Fg(t,e,i){let n=$n(t),r=[n[Ct.DaysFormat],n[Ct.DaysStandalone]],o=Kn(r,e);return Kn(o,i)}function zd(t,e,i){let n=$n(t),r=[n[Ct.MonthsFormat],n[Ct.MonthsStandalone]],o=Kn(r,e);return Kn(o,i)}function rR(t,e){let n=$n(t)[Ct.Eras];return Kn(n,e)}function Rd(t,e){let i=$n(t);return Kn(i[Ct.DateFormat],e)}function kd(t,e){let i=$n(t);return Kn(i[Ct.TimeFormat],e)}function Fd(t,e){let n=$n(t)[Ct.DateTimeFormat];return Kn(n,e)}function Gd(t,e){let i=$n(t),n=i[Ct.NumberSymbols][e];if(typeof n>"u"){if(e===pr.CurrencyDecimal)return i[Ct.NumberSymbols][pr.Decimal];if(e===pr.CurrencyGroup)return i[Ct.NumberSymbols][pr.Group]}return n}function _D(t){if(!t[Ct.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Ct.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function oR(t){let e=$n(t);return _D(e),(e[Ct.ExtraData][2]||[]).map(n=>typeof n=="string"?Tg(n):[Tg(n[0]),Tg(n[1])])}function sR(t,e,i){let n=$n(t);_D(n);let r=[n[Ct.ExtraData][0],n[Ct.ExtraData][1]],o=Kn(r,e)||[];return Kn(o,i)||[]}function Kn(t,e){for(let i=e;i>-1;i--)if(typeof t[i]<"u")return t[i];throw new Error("Locale data API: locale data undefined")}function Tg(t){let[e,i]=t.split(":");return{hours:+e,minutes:+i}}var aR=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ld={},lR=/((?:[^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]*)/,mr=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(mr||{}),Ge=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(Ge||{}),ze=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(ze||{});function vD(t,e,i,n){let r=_R(t);e=hr(i,e)||e;let a=[],c;for(;e;)if(c=lR.exec(e),c){a=a.concat(c.slice(1));let m=a.pop();if(!m)break;e=m}else{a.push(e);break}let d=r.getTimezoneOffset();n&&(d=wD(n,d),r=gR(r,n,!0));let f="";return a.forEach(m=>{let v=pR(m);f+=v?v(r,i,d):m==="''"?"'":m.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),f}function Hd(t,e,i){let n=new Date(0);return n.setFullYear(t,e,i),n.setHours(0,0,0),n}function hr(t,e){let i=iR(t);if(Ld[i]??={},Ld[i][e])return Ld[i][e];let n="";switch(e){case"shortDate":n=Rd(t,Un.Short);break;case"mediumDate":n=Rd(t,Un.Medium);break;case"longDate":n=Rd(t,Un.Long);break;case"fullDate":n=Rd(t,Un.Full);break;case"shortTime":n=kd(t,Un.Short);break;case"mediumTime":n=kd(t,Un.Medium);break;case"longTime":n=kd(t,Un.Long);break;case"fullTime":n=kd(t,Un.Full);break;case"short":let r=hr(t,"shortTime"),o=hr(t,"shortDate");n=Bd(Fd(t,Un.Short),[r,o]);break;case"medium":let a=hr(t,"mediumTime"),c=hr(t,"mediumDate");n=Bd(Fd(t,Un.Medium),[a,c]);break;case"long":let d=hr(t,"longTime"),f=hr(t,"longDate");n=Bd(Fd(t,Un.Long),[d,f]);break;case"full":let m=hr(t,"fullTime"),v=hr(t,"fullDate");n=Bd(Fd(t,Un.Full),[m,v]);break}return n&&(Ld[i][e]=n),n}function Bd(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(i,n){return e!=null&&n in e?e[n]:i})),t}function _i(t,e,i="-",n,r){let o="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,o=i));let a=String(t);for(;a.length<e;)a="0"+a;return n&&(a=a.slice(a.length-e)),o+a}function cR(t,e){return _i(t,3).substring(0,e)}function Rt(t,e,i=0,n=!1,r=!1){return function(o,a){let c=uR(t,o);if((i>0||c>-i)&&(c+=i),t===Ge.Hours)c===0&&i===-12&&(c=12);else if(t===Ge.FractionalSeconds)return cR(c,e);let d=Gd(a,pr.MinusSign);return _i(c,e,d,n,r)}}function uR(t,e){switch(t){case Ge.FullYear:return e.getFullYear();case Ge.Month:return e.getMonth();case Ge.Date:return e.getDate();case Ge.Hours:return e.getHours();case Ge.Minutes:return e.getMinutes();case Ge.Seconds:return e.getSeconds();case Ge.FractionalSeconds:return e.getMilliseconds();case Ge.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function ct(t,e,i=Ht.Format,n=!1){return function(r,o){return dR(r,o,t,e,i,n)}}function dR(t,e,i,n,r,o){switch(i){case ze.Months:return zd(e,r,n)[t.getMonth()];case ze.Days:return Fg(e,r,n)[t.getDay()];case ze.DayPeriods:let a=t.getHours(),c=t.getMinutes();if(o){let f=oR(e),m=sR(e,r,n),v=f.findIndex(y=>{if(Array.isArray(y)){let[g,b]=y,S=a>=g.hours&&c>=g.minutes,E=a<b.hours||a===b.hours&&c<b.minutes;if(g.hours<b.hours){if(S&&E)return!0}else if(S||E)return!0}else if(y.hours===a&&y.minutes===c)return!0;return!1});if(v!==-1)return m[v]}return gD(e,r,n)[a<12?0:1];case ze.Eras:return rR(e,n)[t.getFullYear()<=0?0:1];default:let d=i;throw new Error(`unexpected translation type ${d}`)}}function Vd(t){return function(e,i,n){let r=-1*n,o=Gd(i,pr.MinusSign),a=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case mr.Short:return(r>=0?"+":"")+_i(a,2,o)+_i(Math.abs(r%60),2,o);case mr.ShortGMT:return"GMT"+(r>=0?"+":"")+_i(a,1,o);case mr.Long:return"GMT"+(r>=0?"+":"")+_i(a,2,o)+":"+_i(Math.abs(r%60),2,o);case mr.Extended:return n===0?"Z":(r>=0?"+":"")+_i(a,2,o)+":"+_i(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}var hR=0,$d=4;function fR(t){let e=Hd(t,hR,1).getDay();return Hd(t,0,1+(e<=$d?$d:$d+7)-e)}function yD(t){let e=t.getDay(),i=e===0?-3:$d-e;return Hd(t.getFullYear(),t.getMonth(),t.getDate()+i)}function Sg(t,e=!1){return function(i,n){let r;if(e){let o=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,a=i.getDate();r=1+Math.floor((a+o)/7)}else{let o=yD(i),a=fR(o.getFullYear()),c=o.getTime()-a.getTime();r=1+Math.round(c/6048e5)}return _i(r,t,Gd(n,pr.MinusSign))}}function jd(t,e=!1){return function(i,n){let o=yD(i).getFullYear();return _i(o,t,Gd(n,pr.MinusSign),e)}}var Mg={};function pR(t){if(Mg[t])return Mg[t];let e;switch(t){case"G":case"GG":case"GGG":e=ct(ze.Eras,Ve.Abbreviated);break;case"GGGG":e=ct(ze.Eras,Ve.Wide);break;case"GGGGG":e=ct(ze.Eras,Ve.Narrow);break;case"y":e=Rt(Ge.FullYear,1,0,!1,!0);break;case"yy":e=Rt(Ge.FullYear,2,0,!0,!0);break;case"yyy":e=Rt(Ge.FullYear,3,0,!1,!0);break;case"yyyy":e=Rt(Ge.FullYear,4,0,!1,!0);break;case"Y":e=jd(1);break;case"YY":e=jd(2,!0);break;case"YYY":e=jd(3);break;case"YYYY":e=jd(4);break;case"M":case"L":e=Rt(Ge.Month,1,1);break;case"MM":case"LL":e=Rt(Ge.Month,2,1);break;case"MMM":e=ct(ze.Months,Ve.Abbreviated);break;case"MMMM":e=ct(ze.Months,Ve.Wide);break;case"MMMMM":e=ct(ze.Months,Ve.Narrow);break;case"LLL":e=ct(ze.Months,Ve.Abbreviated,Ht.Standalone);break;case"LLLL":e=ct(ze.Months,Ve.Wide,Ht.Standalone);break;case"LLLLL":e=ct(ze.Months,Ve.Narrow,Ht.Standalone);break;case"w":e=Sg(1);break;case"ww":e=Sg(2);break;case"W":e=Sg(1,!0);break;case"d":e=Rt(Ge.Date,1);break;case"dd":e=Rt(Ge.Date,2);break;case"c":case"cc":e=Rt(Ge.Day,1);break;case"ccc":e=ct(ze.Days,Ve.Abbreviated,Ht.Standalone);break;case"cccc":e=ct(ze.Days,Ve.Wide,Ht.Standalone);break;case"ccccc":e=ct(ze.Days,Ve.Narrow,Ht.Standalone);break;case"cccccc":e=ct(ze.Days,Ve.Short,Ht.Standalone);break;case"E":case"EE":case"EEE":e=ct(ze.Days,Ve.Abbreviated);break;case"EEEE":e=ct(ze.Days,Ve.Wide);break;case"EEEEE":e=ct(ze.Days,Ve.Narrow);break;case"EEEEEE":e=ct(ze.Days,Ve.Short);break;case"a":case"aa":case"aaa":e=ct(ze.DayPeriods,Ve.Abbreviated);break;case"aaaa":e=ct(ze.DayPeriods,Ve.Wide);break;case"aaaaa":e=ct(ze.DayPeriods,Ve.Narrow);break;case"b":case"bb":case"bbb":e=ct(ze.DayPeriods,Ve.Abbreviated,Ht.Standalone,!0);break;case"bbbb":e=ct(ze.DayPeriods,Ve.Wide,Ht.Standalone,!0);break;case"bbbbb":e=ct(ze.DayPeriods,Ve.Narrow,Ht.Standalone,!0);break;case"B":case"BB":case"BBB":e=ct(ze.DayPeriods,Ve.Abbreviated,Ht.Format,!0);break;case"BBBB":e=ct(ze.DayPeriods,Ve.Wide,Ht.Format,!0);break;case"BBBBB":e=ct(ze.DayPeriods,Ve.Narrow,Ht.Format,!0);break;case"h":e=Rt(Ge.Hours,1,-12);break;case"hh":e=Rt(Ge.Hours,2,-12);break;case"H":e=Rt(Ge.Hours,1);break;case"HH":e=Rt(Ge.Hours,2);break;case"m":e=Rt(Ge.Minutes,1);break;case"mm":e=Rt(Ge.Minutes,2);break;case"s":e=Rt(Ge.Seconds,1);break;case"ss":e=Rt(Ge.Seconds,2);break;case"S":e=Rt(Ge.FractionalSeconds,1);break;case"SS":e=Rt(Ge.FractionalSeconds,2);break;case"SSS":e=Rt(Ge.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Vd(mr.Short);break;case"ZZZZZ":e=Vd(mr.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Vd(mr.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Vd(mr.Long);break;default:return null}return Mg[t]=e,e}function wD(t,e){t=t.replace(/:/g,"");let i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function mR(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function gR(t,e,i){let n=i?-1:1,r=t.getTimezoneOffset(),o=wD(e,r);return mR(t,n*(o-r))}function _R(t){if(lD(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[r,o=1,a=1]=t.split("-").map(c=>+c);return Hd(r,o-1,a)}let i=parseFloat(t);if(!isNaN(t-i))return new Date(i);let n;if(n=t.match(aR))return vR(n)}let e=new Date(t);if(!lD(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function vR(t){let e=new Date(0),i=0,n=0,r=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let a=Number(t[4]||0)-i,c=Number(t[5]||0)-n,d=Number(t[6]||0),f=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(e,a,c,d,f),e}function lD(t){return t instanceof Date&&!isNaN(t.valueOf())}function Wd(t,e){e=encodeURIComponent(e);for(let i of t.split(";")){let n=i.indexOf("="),[r,o]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}var xg=/\s+/,cD=[],qs=(()=>{let e=class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=cD,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(xg):cD}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(xg):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(xg).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(r){return new(r||e)(q(Ne),q(Cn))},e.\u0275dir=fe({type:e,selectors:[["","ngClass",""]],inputs:{klass:[st.None,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var bD=(()=>{let e=class e{constructor(n,r){this._viewContainer=n,this._context=new Ig,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){uD("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){uD("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(q(pi),q(jn))},e.\u0275dir=fe({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Ig=class{constructor(){this.$implicit=null,this.ngIf=null}};function uD(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Dn(e)}'.`)}var DD=(()=>{let e=class e{constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[o,a]=n.split("."),c=o.indexOf("-")===-1?void 0:ji.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,a?`${r}${a}`:r,c):this._renderer.removeStyle(this._ngEl.nativeElement,o,c)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}};e.\u0275fac=function(r){return new(r||e)(q(Ne),q(Xm),q(Cn))},e.\u0275dir=fe({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),ko=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}};e.\u0275fac=function(r){return new(r||e)(q(pi))},e.\u0275dir=fe({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[dt]});let t=e;return t})();function yR(t,e){return new ne(2100,!1)}var wG=(()=>{let e=class e{transform(n){if(n==null)return null;if(typeof n!="string")throw yR(e,n);return n.toUpperCase()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=js({name:"uppercase",type:e,pure:!0,standalone:!0});let t=e;return t})();var Lg=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=At({type:e}),e.\u0275inj=Ot({});let t=e;return t})(),Bg="browser",wR="server";function Vg(t){return t===Bg}function jg(t){return t===wR}var CD=(()=>{let e=class e{};e.\u0275prov=F({token:e,providedIn:"root",factory:()=>Vg(D(Yn))?new Og(D(tt),window):new Ag});let t=e;return t})(),Og=class{constructor(e,i){this.document=e,this.window=i,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let i=bR(this.document,e);i&&(this.scrollToElement(i),i.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let i=e.getBoundingClientRect(),n=i.left+this.window.pageXOffset,r=i.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}};function bR(t,e){let i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let o=r.shadowRoot;if(o){let a=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(a)return a}r=n.nextNode()}}return null}var Ag=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Zs=class{};var Sl=class{},qd=class{},Fo=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
`).forEach(i=>{let n=i.indexOf(":");if(n>0){let r=i.slice(0,n),o=r.toLowerCase(),a=i.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,i);let r=(e.op==="a"?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":let o=e.value;if(!o)this.headers.delete(i),this.normalizedNames.delete(i);else{let a=this.headers.get(i);if(!a)return;a=a.filter(c=>o.indexOf(c)===-1),a.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,a)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(o=>o.toString()),r=e.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}};var Ug=class{encodeKey(e){return ED(e)}encodeValue(e){return ED(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function ER(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,c]=o==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],d=i.get(a)||[];d.push(c),i.set(a,d)}),i}var TR=/%(\d[a-f0-9])/gi,SR={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ED(t){return encodeURIComponent(t).replace(TR,(e,i)=>SR[i]??e)}function Zd(t){return`${t}`}var $r=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Ug,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=ER(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let n=e.fromObject[i],r=Array.isArray(n)?n.map(Zd):[Zd(n)];this.map.set(i,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(n=>{let r=e[n];Array.isArray(r)?r.forEach(o=>{i.push({param:n,value:o,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(Zd(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],r=n.indexOf(Zd(e.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Hg=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function MR(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function TD(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function SD(t){return typeof Blob<"u"&&t instanceof Blob}function MD(t){return typeof FormData<"u"&&t instanceof FormData}function xR(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Tl=class t{constructor(e,i,n,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(MR(this.method)||r?(this.body=n!==void 0?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Fo,this.context??=new Hg,!this.params)this.params=new $r,this.urlWithParams=i;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=i;else{let c=i.indexOf("?"),d=c===-1?"?":c<i.length-1?"&":"";this.urlWithParams=i+d+a}}}serializeBody(){return this.body===null?null:TD(this.body)||SD(this.body)||MD(this.body)||xR(this.body)||typeof this.body=="string"?this.body:this.body instanceof $r?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||MD(this.body)?null:SD(this.body)?this.body.type||null:TD(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof $r?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let i=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,o=e.body!==void 0?e.body:this.body,a=e.withCredentials!==void 0?e.withCredentials:this.withCredentials,c=e.reportProgress!==void 0?e.reportProgress:this.reportProgress,d=e.headers||this.headers,f=e.params||this.params,m=e.context??this.context;return e.setHeaders!==void 0&&(d=Object.keys(e.setHeaders).reduce((v,y)=>v.set(y,e.setHeaders[y]),d)),e.setParams&&(f=Object.keys(e.setParams).reduce((v,y)=>v.set(y,e.setParams[y]),f)),new t(i,n,o,{params:f,headers:d,context:m,reportProgress:c,responseType:r,withCredentials:a})}},Ys=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Ys||{}),Ml=class{constructor(e,i=Jd.Ok,n="OK"){this.headers=e.headers||new Fo,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},zg=class t extends Ml{constructor(e={}){super(e),this.type=Ys.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Yd=class t extends Ml{constructor(e={}){super(e),this.type=Ys.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Qd=class extends Ml{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Jd=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(Jd||{});function $g(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Lo=(()=>{let e=class e{constructor(n){this.handler=n}request(n,r,o={}){let a;if(n instanceof Tl)a=n;else{let f;o.headers instanceof Fo?f=o.headers:f=new Fo(o.headers);let m;o.params&&(o.params instanceof $r?m=o.params:m=new $r({fromObject:o.params})),a=new Tl(n,r,o.body!==void 0?o.body:null,{headers:f,context:o.context,params:m,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let c=te(a).pipe(or(f=>this.handler.handle(f)));if(n instanceof Tl||o.observe==="events")return c;let d=c.pipe(ot(f=>f instanceof Yd));switch(o.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return d.pipe(se(f=>{if(f.body!==null&&!(f.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return f.body}));case"blob":return d.pipe(se(f=>{if(f.body!==null&&!(f.body instanceof Blob))throw new Error("Response is not a Blob.");return f.body}));case"text":return d.pipe(se(f=>{if(f.body!==null&&typeof f.body!="string")throw new Error("Response is not a string.");return f.body}));case"json":default:return d.pipe(se(f=>f.body))}case"response":return d;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new $r().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,$g(o,r))}post(n,r,o={}){return this.request("POST",n,$g(o,r))}put(n,r,o={}){return this.request("PUT",n,$g(o,r))}};e.\u0275fac=function(r){return new(r||e)(re(Sl))},e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})();function IR(t,e){return e(t)}function OR(t,e,i){return(n,r)=>zi(i,()=>e(n,o=>t(o,r)))}var OD=new le(""),AR=new le(""),PR=new le("");var xD=(()=>{let e=class e extends Sl{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=D(Oo);let o=D(PR,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(OD),...this.injector.get(AR,[])]));this.chain=o.reduceRight((a,c)=>OR(a,c,this.injector),IR)}let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Ir(()=>this.pendingTasks.remove(r)))}};e.\u0275fac=function(r){return new(r||e)(re(qd),re(Qt))},e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})();var NR=/^\)\]\}',?\n/;function RR(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var ID=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new ne(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Je(r.\u0275loadImpl()):te(null)).pipe(It(()=>new ge(a=>{let c=r.build();if(c.open(n.method,n.urlWithParams),n.withCredentials&&(c.withCredentials=!0),n.headers.forEach((E,M)=>c.setRequestHeader(E,M.join(","))),n.headers.has("Accept")||c.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let E=n.detectContentTypeHeader();E!==null&&c.setRequestHeader("Content-Type",E)}if(n.responseType){let E=n.responseType.toLowerCase();c.responseType=E!=="json"?E:"text"}let d=n.serializeBody(),f=null,m=()=>{if(f!==null)return f;let E=c.statusText||"OK",M=new Fo(c.getAllResponseHeaders()),V=RR(c)||n.url;return f=new zg({headers:M,status:c.status,statusText:E,url:V}),f},v=()=>{let{headers:E,status:M,statusText:V,url:W}=m(),N=null;M!==Jd.NoContent&&(N=typeof c.response>"u"?c.responseText:c.response),M===0&&(M=N?Jd.Ok:0);let $=M>=200&&M<300;if(n.responseType==="json"&&typeof N=="string"){let Y=N;N=N.replace(NR,"");try{N=N!==""?JSON.parse(N):null}catch(ie){N=Y,$&&($=!1,N={error:ie,text:N})}}$?(a.next(new Yd({body:N,headers:E,status:M,statusText:V,url:W||void 0})),a.complete()):a.error(new Qd({error:N,headers:E,status:M,statusText:V,url:W||void 0}))},y=E=>{let{url:M}=m(),V=new Qd({error:E,status:c.status||0,statusText:c.statusText||"Unknown Error",url:M||void 0});a.error(V)},g=!1,b=E=>{g||(a.next(m()),g=!0);let M={type:Ys.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(M.total=E.total),n.responseType==="text"&&c.responseText&&(M.partialText=c.responseText),a.next(M)},S=E=>{let M={type:Ys.UploadProgress,loaded:E.loaded};E.lengthComputable&&(M.total=E.total),a.next(M)};return c.addEventListener("load",v),c.addEventListener("error",y),c.addEventListener("timeout",y),c.addEventListener("abort",y),n.reportProgress&&(c.addEventListener("progress",b),d!==null&&c.upload&&c.upload.addEventListener("progress",S)),c.send(d),a.next({type:Ys.Sent}),()=>{c.removeEventListener("error",y),c.removeEventListener("abort",y),c.removeEventListener("load",v),c.removeEventListener("timeout",y),n.reportProgress&&(c.removeEventListener("progress",b),d!==null&&c.upload&&c.upload.removeEventListener("progress",S)),c.readyState!==c.DONE&&c.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(re(Zs))},e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})(),AD=new le(""),kR="XSRF-TOKEN",FR=new le("",{providedIn:"root",factory:()=>kR}),LR="X-XSRF-TOKEN",BR=new le("",{providedIn:"root",factory:()=>LR}),Kd=class{},VR=(()=>{let e=class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Wd(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(re(tt),re(Yn),re(FR))},e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})();function jR(t,e){let i=t.url.toLowerCase();if(!D(AD)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=D(Kd).getToken(),r=D(BR);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}function NG(...t){let e=[Lo,ID,xD,{provide:Sl,useExisting:xD},{provide:qd,useExisting:ID},{provide:OD,useValue:jR,multi:!0},{provide:AD,useValue:!0},{provide:Kd,useClass:VR}];for(let i of t)e.push(...i.\u0275providers);return Us(e)}var Zg=class extends Ud{constructor(){super(...arguments),this.supportsDOMEvents=!0}},qg=class t extends Zg{static makeCurrent(){hD(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=$R();return i==null?null:UR(i)}resetBaseElement(){xl=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Wd(document.cookie,e)}},xl=null;function $R(){return xl=xl||document.querySelector("base"),xl?xl.getAttribute("href"):null}function UR(t){return new URL(t,document.baseURI).pathname}var HR=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})(),Yg=new le(""),FD=(()=>{let e=class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(a=>a.supports(n)),!r)throw new ne(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(re(Yg),re(Re))},e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})(),Xd=class{constructor(e){this._doc=e}},Gg="ng-app-id",LD=(()=>{let e=class e{constructor(n,r,o,a={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=jg(a),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Gg}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let a=o.get(n);return a.usage+=r,a.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,a=o?.get(r);if(a?.parentNode===n)return o.delete(r),a.removeAttribute(Gg),a;{let c=this.doc.createElement("style");return this.nonce&&c.setAttribute("nonce",this.nonce),c.textContent=r,this.platformIsServer&&c.setAttribute(Gg,this.appId),n.appendChild(c),c}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),a=this.styleRef,c=a.get(r)?.elements;c?c.push(o):a.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(re(tt),re($m),re(Hm,8),re(Yn))},e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})(),Wg={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/"},Jg=/%COMP%/g,BD="%COMP%",zR=`_nghost-${BD}`,GR=`_ngcontent-${BD}`,WR=!0,ZR=new le("",{providedIn:"root",factory:()=>WR});function qR(t){return GR.replace(Jg,t)}function YR(t){return zR.replace(Jg,t)}function VD(t,e){return e.map(i=>i.replace(Jg,t))}var ND=(()=>{let e=class e{constructor(n,r,o,a,c,d,f,m=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=a,this.doc=c,this.platformId=d,this.ngZone=f,this.nonce=m,this.rendererByCompId=new Map,this.platformIsServer=jg(d),this.defaultRenderer=new Il(n,c,f,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Bi.ShadowDom&&(r=je(z({},r),{encapsulation:Bi.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof eh?o.applyToHost(n):o instanceof Ol&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,a=o.get(r.id);if(!a){let c=this.doc,d=this.ngZone,f=this.eventManager,m=this.sharedStylesHost,v=this.removeStylesOnCompDestroy,y=this.platformIsServer;switch(r.encapsulation){case Bi.Emulated:a=new eh(f,m,r,this.appId,v,c,d,y);break;case Bi.ShadowDom:return new Qg(f,m,n,r,c,d,this.nonce,y);default:a=new Ol(f,m,r,v,c,d,y);break}o.set(r.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(re(FD),re(LD),re($m),re(ZR),re(tt),re(Yn),re(Re),re(Hm))},e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})(),Il=class{constructor(e,i,n,r){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(Wg[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(RD(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(RD(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new ne(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,r){if(r){i=r+":"+i;let o=Wg[r];o?e.setAttributeNS(o,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=Wg[n];r?e.removeAttributeNS(r,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,r){r&(ji.DashCase|ji.Important)?e.style.setProperty(i,n,r&ji.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&ji.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=Wi().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function RD(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Qg=class extends Il{constructor(e,i,n,r,o,a,c,d){super(e,o,a,d),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let f=VD(r.id,r.styles);for(let m of f){let v=document.createElement("style");c&&v.setAttribute("nonce",c),v.textContent=m,this.shadowRoot.appendChild(v)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ol=class extends Il{constructor(e,i,n,r,o,a,c,d){super(e,o,a,c),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=d?VD(d,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},eh=class extends Ol{constructor(e,i,n,r,o,a,c,d){let f=r+"-"+n.id;super(e,i,n,o,a,c,d,f),this.contentAttr=qR(f),this.hostAttr=YR(f)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},QR=(()=>{let e=class e extends Xd{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}};e.\u0275fac=function(r){return new(r||e)(re(tt))},e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})(),kD=["alt","control","meta","shift"],JR={"\b":"Backspace","	":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},KR={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},XR=(()=>{let e=class e extends Xd{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let a=e.parseEventName(r),c=e.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wi().onAndCancel(n,a.domEventName,c))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let a=e._normalizeKey(r.pop()),c="",d=r.indexOf("code");if(d>-1&&(r.splice(d,1),c="code."),kD.forEach(m=>{let v=r.indexOf(m);v>-1&&(r.splice(v,1),c+=m+".")}),c+=a,r.length!=0||a.length===0)return null;let f={};return f.domEventName=o,f.fullKey=c,f}static matchEventFullKeyCode(n,r){let o=JR[n.key]||n.key,a="";return r.indexOf("code.")>-1&&(o=n.code,a="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),kD.forEach(c=>{if(c!==o){let d=KR[c];d(n)&&(a+=c+".")}}),a+=o,a===r)}static eventCallback(n,r,o){return a=>{e.matchEventFullKeyCode(a,n)&&o.runGuarded(()=>r(a))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(r){return new(r||e)(re(tt))},e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})();function n6(t,e){return rD(z({rootComponent:t},ek(e)))}function ek(t){return{appProviders:[...ok,...t?.providers??[]],platformProviders:rk}}function tk(){qg.makeCurrent()}function nk(){return new Ui}function ik(){return _w(document),document}var rk=[{provide:Yn,useValue:Bg},{provide:Um,useValue:tk,multi:!0},{provide:tt,useFactory:ik,deps:[]}];var ok=[{provide:ad,useValue:"root"},{provide:Ui,useFactory:nk,deps:[]},{provide:Yg,useClass:QR,multi:!0,deps:[tt,Re,Yn]},{provide:Yg,useClass:XR,multi:!0,deps:[tt]},ND,LD,FD,{provide:sl,useExisting:ND},{provide:Zs,useClass:HR,deps:[]},[]];var i6=(()=>{let e=class e{constructor(n){this._doc=n,this._dom=Wi()}addTag(n,r=!1){return n?this._getOrCreateElement(n,r):null}addTags(n,r=!1){return n?n.reduce((o,a)=>(a&&o.push(this._getOrCreateElement(a,r)),o),[]):[]}getTag(n){return n&&this._doc.querySelector(`meta[${n}]`)||null}getTags(n){if(!n)return[];let r=this._doc.querySelectorAll(`meta[${n}]`);return r?[].slice.call(r):[]}updateTag(n,r){if(!n)return null;r=r||this._parseSelector(n);let o=this.getTag(r);return o?this._setMetaElementAttributes(n,o):this._getOrCreateElement(n,!0)}removeTag(n){this.removeTagElement(this.getTag(n))}removeTagElement(n){n&&this._dom.remove(n)}_getOrCreateElement(n,r=!1){if(!r){let c=this._parseSelector(n),d=this.getTags(c).filter(f=>this._containsAttributes(n,f))[0];if(d!==void 0)return d}let o=this._dom.createElement("meta");return this._setMetaElementAttributes(n,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(n,r){return Object.keys(n).forEach(o=>r.setAttribute(this._getMetaKeyMap(o),n[o])),r}_parseSelector(n){let r=n.name?"name":"property";return`${r}="${n[r]}"`}_containsAttributes(n,r){return Object.keys(n).every(o=>r.getAttribute(this._getMetaKeyMap(o))===n[o])}_getMetaKeyMap(n){return sk[n]||n}};e.\u0275fac=function(r){return new(r||e)(re(tt))},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),sk={httpEquiv:"http-equiv"},jD=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(r){return new(r||e)(re(tt))},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var JD=(()=>{let e=class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(r){return new(r||e)(q(Cn),q(Ne))},e.\u0275dir=fe({type:e});let t=e;return t})(),Ks=(()=>{let e=class e extends JD{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275dir=fe({type:e,features:[$t]});let t=e;return t})(),vi=new le(""),lk={provide:vi,useExisting:jt(()=>ck),multi:!0},ck=(()=>{let e=class e extends Ks{writeValue(n){this.setProperty("checked",n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275dir=fe({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){r&1&&ae("change",function(c){return o.onChange(c.target.checked)})("blur",function(){return o.onTouched()})},features:[Nt([lk]),$t]});let t=e;return t})(),uk={provide:vi,useExisting:jt(()=>ch),multi:!0};function dk(){let t=Wi()?Wi().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var hk=new le(""),ch=(()=>{let e=class e extends JD{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!dk())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(r){return new(r||e)(q(Cn),q(Ne),q(hk,8))},e.\u0275dir=fe({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&ae("input",function(c){return o._handleInput(c.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(c){return o._compositionEnd(c.target.value)})},features:[Nt([uk]),$t]});let t=e;return t})();function Ur(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function KD(t){return t!=null&&typeof t.length=="number"}var Vo=new le(""),n_=new le(""),fk=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,$D=class{static min(e){return XD(e)}static max(e){return eC(e)}static required(e){return pk(e)}static requiredTrue(e){return mk(e)}static email(e){return gk(e)}static minLength(e){return _k(e)}static maxLength(e){return vk(e)}static pattern(e){return yk(e)}static nullValidator(e){return nh(e)}static compose(e){return sC(e)}static composeAsync(e){return lC(e)}};function XD(t){return e=>{if(Ur(e.value)||Ur(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i<t?{min:{min:t,actual:e.value}}:null}}function eC(t){return e=>{if(Ur(e.value)||Ur(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}function pk(t){return Ur(t.value)?{required:!0}:null}function mk(t){return t.value===!0?null:{required:!0}}function gk(t){return Ur(t.value)||fk.test(t.value)?null:{email:!0}}function _k(t){return e=>Ur(e.value)||!KD(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}function vk(t){return e=>KD(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function yk(t){if(!t)return nh;let e,i;return typeof t=="string"?(i="",t.charAt(0)!=="^"&&(i+="^"),i+=t,t.charAt(t.length-1)!=="$"&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),n=>{if(Ur(n.value))return null;let r=n.value;return e.test(r)?null:{pattern:{requiredPattern:i,actualValue:r}}}}function nh(t){return null}function tC(t){return t!=null}function nC(t){return Po(t)?Je(t):t}function iC(t){let e={};return t.forEach(i=>{e=i!=null?z(z({},e),i):e}),Object.keys(e).length===0?null:e}function rC(t,e){return e.map(i=>i(t))}function wk(t){return!t.validate}function oC(t){return t.map(e=>wk(e)?e:i=>e.validate(i))}function sC(t){if(!t)return null;let e=t.filter(tC);return e.length==0?null:function(i){return iC(rC(i,e))}}function aC(t){return t!=null?sC(oC(t)):null}function lC(t){if(!t)return null;let e=t.filter(tC);return e.length==0?null:function(i){let n=rC(i,e).map(nC);return $f(n).pipe(se(iC))}}function cC(t){return t!=null?lC(oC(t)):null}function UD(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function uC(t){return t._rawValidators}function dC(t){return t._rawAsyncValidators}function Kg(t){return t?Array.isArray(t)?t:[t]:[]}function ih(t,e){return Array.isArray(t)?t.includes(e):t===e}function HD(t,e){let i=Kg(e);return Kg(t).forEach(r=>{ih(i,r)||i.push(r)}),i}function zD(t,e){return Kg(e).filter(i=>!ih(t,i))}var rh=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=aC(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=cC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},Bo=class extends rh{get formDirective(){return null}get path(){return null}},Hr=class extends rh{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},oh=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},bk={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},w6=je(z({},bk),{"[class.ng-submitted]":"isSubmitted"}),hC=(()=>{let e=class e extends oh{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(q(Hr,2))},e.\u0275dir=fe({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Xe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[$t]});let t=e;return t})(),b6=(()=>{let e=class e extends oh{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(q(Bo,10))},e.\u0275dir=fe({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&Xe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[$t]});let t=e;return t})();var Al="VALID",th="INVALID",Qs="PENDING",Pl="DISABLED";function i_(t){return(uh(t)?t.validators:t)||null}function Dk(t){return Array.isArray(t)?aC(t):t||null}function r_(t,e){return(uh(e)?e.asyncValidators:t)||null}function Ck(t){return Array.isArray(t)?cC(t):t||null}function uh(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function fC(t,e,i){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new ne(1e3,"");if(!n[i])throw new ne(1001,"")}function pC(t,e,i){t._forEachChild((n,r)=>{if(i[r]===void 0)throw new ne(1002,"")})}var Js=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Al}get invalid(){return this.status===th}get pending(){return this.status==Qs}get disabled(){return this.status===Pl}get enabled(){return this.status!==Pl}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(HD(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(HD(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(zD(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(zD(e,this._rawAsyncValidators))}hasValidator(e){return ih(this._rawValidators,e)}hasAsyncValidator(e){return ih(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(i=>{i.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Qs,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Pl,this.errors=null,this._forEachChild(n=>{n.disable(je(z({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(je(z({},e),{skipPristineCheck:i})),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Al,this._forEachChild(n=>{n.enable(je(z({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(je(z({},e),{skipPristineCheck:i})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Al||this.status===Qs)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Pl:Al}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Qs,this._hasOwnPendingAsyncValidator=!0;let i=nC(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new ve,this.statusChanges=new ve}_calculateStatus(){return this._allControlsDisabled()?Pl:this.errors?th:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Qs)?Qs:this._anyControlsHaveStatus(th)?th:Al}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){uh(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=Dk(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=Ck(this._rawAsyncValidators)}},sh=class extends Js{constructor(e,i,n){super(i_(i),r_(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,i){return this.controls[e]?this.controls[e]:(this.controls[e]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(e,i,n={}){this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(e,i,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],i&&this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,i={}){pC(this,!0,e),Object.keys(e).forEach(n=>{fC(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(Object.keys(e).forEach(n=>{let r=this.controls[n];r&&r.patchValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e={},i={}){this._forEachChild((n,r)=>{n.reset(e?e[r]:null,{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i),this._updateTouched(i),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(e,i,n)=>(e[n]=i.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(i,n)=>n._syncPendingControls()?!0:i);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(i=>{let n=this.controls[i];n&&e(n,i)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[i,n]of Object.entries(this.controls))if(this.contains(i)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(i,n,r)=>((n.enabled||this.disabled)&&(i[r]=n.value),i))}_reduceChildren(e,i){let n=e;return this._forEachChild((r,o)=>{n=i(n,r,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Xg=class extends sh{};var Rl=new le("CallSetDisabledState",{providedIn:"root",factory:()=>kl}),kl="always";function mC(t,e){return[...e.path,t]}function e_(t,e,i=kl){o_(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),Tk(t,e),Mk(t,e),Sk(t,e),Ek(t,e)}function GD(t,e,i=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),lh(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function ah(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function Ek(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function o_(t,e){let i=uC(t);e.validator!==null?t.setValidators(UD(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=dC(t);e.asyncValidator!==null?t.setAsyncValidators(UD(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();ah(e._rawValidators,r),ah(e._rawAsyncValidators,r)}function lh(t,e){let i=!1;if(t!==null){if(e.validator!==null){let r=uC(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==e.validator);o.length!==r.length&&(i=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let r=dC(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==e.asyncValidator);o.length!==r.length&&(i=!0,t.setAsyncValidators(o))}}}let n=()=>{};return ah(e._rawValidators,n),ah(e._rawAsyncValidators,n),i}function Tk(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&gC(t,e)})}function Sk(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&gC(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function gC(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Mk(t,e){let i=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function xk(t,e){t==null,o_(t,e)}function Ik(t,e){return lh(t,e)}function _C(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function Ok(t){return Object.getPrototypeOf(t.constructor)===Ks}function Ak(t,e){t._syncPendingControls(),e.forEach(i=>{let n=i.control;n.updateOn==="submit"&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function vC(t,e){if(!e)return null;Array.isArray(e);let i,n,r;return e.forEach(o=>{o.constructor===ch?i=o:Ok(o)?n=o:r=o}),r||n||i||null}function Pk(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function WD(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function ZD(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Nl=class extends Js{constructor(e=null,i,n){super(i_(i),r_(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),uh(i)&&(i.nonNullable||i.initialValueIsDefault)&&(ZD(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){WD(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){WD(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){ZD(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var Nk=t=>t instanceof Nl;var Rk={provide:Hr,useExisting:jt(()=>s_)},qD=Promise.resolve(),s_=(()=>{let e=class e extends Hr{constructor(n,r,o,a,c,d){super(),this._changeDetectorRef=c,this.callSetDisabledState=d,this.control=new Nl,this._registered=!1,this.name="",this.update=new ve,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=vC(this,a)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),_C(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){e_(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){qD.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Ro(r);qD.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?mC(n,this._parent):[n]}};e.\u0275fac=function(r){return new(r||e)(q(Bo,9),q(Vo,10),q(n_,10),q(vi,10),q(Tn,8),q(Rl,8))},e.\u0275dir=fe({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[st.None,"disabled","isDisabled"],model:[st.None,"ngModel","model"],options:[st.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Nt([Rk]),$t,dt]});let t=e;return t})(),C6=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=fe({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),kk={provide:vi,useExisting:jt(()=>Fk),multi:!0},Fk=(()=>{let e=class e extends Ks{writeValue(n){let r=n??"";this.setProperty("value",r)}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275dir=fe({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){r&1&&ae("input",function(c){return o.onChange(c.target.value)})("blur",function(){return o.onTouched()})},features:[Nt([kk]),$t]});let t=e;return t})(),Lk={provide:vi,useExisting:jt(()=>Vk),multi:!0};var Bk=(()=>{let e=class e{constructor(){this._accessors=[]}add(n,r){this._accessors.push([n,r])}remove(n){for(let r=this._accessors.length-1;r>=0;--r)if(this._accessors[r][1]===n){this._accessors.splice(r,1);return}}select(n){this._accessors.forEach(r=>{this._isSameGroup(r,n)&&r[1]!==n&&r[1].fireUncheck(n.value)})}_isSameGroup(n,r){return n[0].control?n[0]._parent===r._control._parent&&n[1].name===r.name:!1}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Vk=(()=>{let e=class e extends Ks{constructor(n,r,o,a){super(n,r),this._registry=o,this._injector=a,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=D(Rl,{optional:!0})??kl}ngOnInit(){this._control=this._injector.get(Hr),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(n){this._state=n===this.value,this.setProperty("checked",this._state)}registerOnChange(n){this._fn=n,this.onChange=()=>{n(this.value),this._registry.select(this)}}setDisabledState(n){(this.setDisabledStateFired||n||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",n),this.setDisabledStateFired=!0}fireUncheck(n){this.writeValue(n)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}};e.\u0275fac=function(r){return new(r||e)(q(Cn),q(Ne),q(Bk),q(cn))},e.\u0275dir=fe({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(r,o){r&1&&ae("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Nt([Lk]),$t]});let t=e;return t})();var yC=new le("");var jk={provide:Bo,useExisting:jt(()=>$k)},$k=(()=>{let e=class e extends Bo{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ve,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(lh(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return e_(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){GD(n.control||null,n,!1),Pk(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this.submitted=!0,Ak(this.form,this.directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(GD(r||null,n),Nk(o)&&(e_(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);xk(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&Ik(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){o_(this.form,this),this._oldForm&&lh(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(q(Vo,10),q(n_,10),q(Rl,8))},e.\u0275dir=fe({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&ae("submit",function(c){return o.onSubmit(c)})("reset",function(){return o.onReset()})},inputs:{form:[st.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Nt([jk]),$t,dt]});let t=e;return t})();var Uk={provide:Hr,useExisting:jt(()=>Hk)},Hk=(()=>{let e=class e extends Hr{set isDisabled(n){}constructor(n,r,o,a,c){super(),this._ngModelWarningConfig=c,this._added=!1,this.name=null,this.update=new ve,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=vC(this,a)}ngOnChanges(n){this._added||this._setUpControl(),_C(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return mC(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(q(Bo,13),q(Vo,10),q(n_,10),q(vi,10),q(yC,8))},e.\u0275dir=fe({type:e,selectors:[["","formControlName",""]],inputs:{name:[st.None,"formControlName","name"],isDisabled:[st.None,"disabled","isDisabled"],model:[st.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Nt([Uk]),$t,dt]});let t=e;return t})(),zk={provide:vi,useExisting:jt(()=>bC),multi:!0};function wC(t,e){return t==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function Gk(t){return t.split(":")[0]}var bC=(()=>{let e=class e extends Ks{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let r=this._getOptionId(n),o=wC(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=Gk(n);return this._optionMap.has(r)?this._optionMap.get(r):n}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275dir=fe({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&ae("change",function(c){return o.onChange(c.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[Nt([zk]),$t]});let t=e;return t})(),DC=(()=>{let e=class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(wC(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(r){return new(r||e)(q(Ne),q(Cn),q(bC,9))},e.\u0275dir=fe({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),Wk={provide:vi,useExisting:jt(()=>CC),multi:!0};function YD(t,e){return t==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function Zk(t){return t.split(":")[0]}var CC=(()=>{let e=class e extends Ks{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let r;if(Array.isArray(n)){let o=n.map(a=>this._getOptionId(a));r=(a,c)=>{a._setSelected(o.indexOf(c.toString())>-1)}}else r=(o,a)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],a=r.selectedOptions;if(a!==void 0){let c=a;for(let d=0;d<c.length;d++){let f=c[d],m=this._getOptionValue(f.value);o.push(m)}}else{let c=r.options;for(let d=0;d<c.length;d++){let f=c[d];if(f.selected){let m=this._getOptionValue(f.value);o.push(m)}}}this.value=o,n(o)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=Zk(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275dir=fe({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&ae("change",function(c){return o.onChange(c.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[Nt([Wk]),$t]});let t=e;return t})(),EC=(()=>{let e=class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(YD(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(YD(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(r){return new(r||e)(q(Ne),q(Cn),q(CC,9))},e.\u0275dir=fe({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})();function TC(t){return typeof t=="number"?t:parseFloat(t)}var SC=(()=>{let e=class e{constructor(){this._validator=nh}ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):nh,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=fe({type:e,features:[dt]});let t=e;return t})(),qk={provide:Vo,useExisting:jt(()=>Yk),multi:!0},Yk=(()=>{let e=class e extends SC{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=n=>TC(n),this.createValidator=n=>eC(n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275dir=fe({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&ht("max",o._enabled?o.max:null)},inputs:{max:"max"},features:[Nt([qk]),$t]});let t=e;return t})(),Qk={provide:Vo,useExisting:jt(()=>Jk),multi:!0},Jk=(()=>{let e=class e extends SC{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=n=>TC(n),this.createValidator=n=>XD(n)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275dir=fe({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&ht("min",o._enabled?o.min:null)},inputs:{min:"min"},features:[Nt([Qk]),$t]});let t=e;return t})();var MC=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=At({type:e}),e.\u0275inj=Ot({});let t=e;return t})(),t_=class extends Js{constructor(e,i,n){super(i_(i),r_(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,i={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}insert(e,i,n={}){this.controls.splice(e,0,i),this._registerControl(i),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,i={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:i.emitEvent})}setControl(e,i,n={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),i&&(this.controls.splice(r,0,i),this._registerControl(i)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,i={}){pC(this,!1,e),e.forEach((n,r)=>{fC(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(e.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e=[],i={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i),this._updateTouched(i),this.updateValueAndValidity(i)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(i=>i._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((i,n)=>n._syncPendingControls()?!0:i,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((i,n)=>{e(i,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(i=>i.enabled&&e(i))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function QD(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var Kk=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let n=new e;return n.useNonNullable=!0,n}group(n,r=null){let o=this._reduceControls(n),a={};return QD(r)?a=r:r!==null&&(a.validators=r.validator,a.asyncValidators=r.asyncValidator),new sh(o,a)}record(n,r=null){let o=this._reduceControls(n);return new Xg(o,r)}control(n,r,o){let a={};return this.useNonNullable?(QD(r)?a=r:(a.validators=r,a.asyncValidators=o),new Nl(n,je(z({},a),{nonNullable:!0}))):new Nl(n,r,o)}array(n,r,o){let a=n.map(c=>this._createControl(c));return new t_(a,r,o)}_reduceControls(n){let r={};return Object.keys(n).forEach(o=>{r[o]=this._createControl(n[o])}),r}_createControl(n){if(n instanceof Nl)return n;if(n instanceof Js)return n;if(Array.isArray(n)){let r=n[0],o=n.length>1?n[1]:null,a=n.length>2?n[2]:null;return this.control(r,o,a)}else return this.control(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var E6=(()=>{let e=class e extends Kk{group(n,r=null){return super.group(n,r)}control(n,r,o){return super.control(n,r,o)}array(n,r,o){return super.array(n,r,o)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var xC=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Rl,useValue:n.callSetDisabledState??kl}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=At({type:e}),e.\u0275inj=Ot({imports:[MC]});let t=e;return t})(),IC=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:yC,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Rl,useValue:n.callSetDisabledState??kl}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=At({type:e}),e.\u0275inj=Ot({imports:[MC]});let t=e;return t})();function zr(t){t||(jm(zr),t=D(Vr));let e=new ge(i=>t.onDestroy(i.next.bind(i)));return i=>i.pipe(pt(e))}var kt="top",dn="bottom",Jt="right",zt="left",dh="auto",Gr=[kt,dn,Jt,zt],_r="start",jo="end",OC="clippingParents",hh="viewport",Xs="popper",AC="reference",a_=Gr.reduce(function(t,e){return t.concat([e+"-"+_r,e+"-"+jo])},[]),fh=[].concat(Gr,[dh]).reduce(function(t,e){return t.concat([e,e+"-"+_r,e+"-"+jo])},[]),eF="beforeRead",tF="read",nF="afterRead",iF="beforeMain",rF="main",oF="afterMain",sF="beforeWrite",aF="write",lF="afterWrite",PC=[eF,tF,nF,iF,rF,oF,sF,aF,lF];function Kt(t){return t?(t.nodeName||"").toLowerCase():null}function gt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Xn(t){var e=gt(t).Element;return t instanceof e||t instanceof Element}function Gt(t){var e=gt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function ea(t){if(typeof ShadowRoot>"u")return!1;var e=gt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function cF(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var n=e.styles[i]||{},r=e.attributes[i]||{},o=e.elements[i];!Gt(o)||!Kt(o)||(Object.assign(o.style,n),Object.keys(r).forEach(function(a){var c=r[a];c===!1?o.removeAttribute(a):o.setAttribute(a,c===!0?"":c)}))})}function uF(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(n){var r=e.elements[n],o=e.attributes[n]||{},a=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:i[n]),c=a.reduce(function(d,f){return d[f]="",d},{});!Gt(r)||!Kt(r)||(Object.assign(r.style,c),Object.keys(o).forEach(function(d){r.removeAttribute(d)}))})}}var NC={name:"applyStyles",enabled:!0,phase:"write",fn:cF,effect:uF,requires:["computeStyles"]};function Xt(t){return t.split("-")[0]}var yi=Math.max,$o=Math.min,vr=Math.round;function ta(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Fl(){return!/^((?!chrome|android).)*safari/i.test(ta())}function ei(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var n=t.getBoundingClientRect(),r=1,o=1;e&&Gt(t)&&(r=t.offsetWidth>0&&vr(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&vr(n.height)/t.offsetHeight||1);var a=Xn(t)?gt(t):window,c=a.visualViewport,d=!Fl()&&i,f=(n.left+(d&&c?c.offsetLeft:0))/r,m=(n.top+(d&&c?c.offsetTop:0))/o,v=n.width/r,y=n.height/o;return{width:v,height:y,top:m,right:f+v,bottom:m+y,left:f,x:f,y:m}}function Uo(t){var e=ei(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Ll(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&ea(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function In(t){return gt(t).getComputedStyle(t)}function l_(t){return["table","td","th"].indexOf(Kt(t))>=0}function hn(t){return((Xn(t)?t.ownerDocument:t.document)||window.document).documentElement}function yr(t){return Kt(t)==="html"?t:t.assignedSlot||t.parentNode||(ea(t)?t.host:null)||hn(t)}function RC(t){return!Gt(t)||In(t).position==="fixed"?null:t.offsetParent}function dF(t){var e=/firefox/i.test(ta()),i=/Trident/i.test(ta());if(i&&Gt(t)){var n=In(t);if(n.position==="fixed")return null}var r=yr(t);for(ea(r)&&(r=r.host);Gt(r)&&["html","body"].indexOf(Kt(r))<0;){var o=In(r);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return r;r=r.parentNode}return null}function wi(t){for(var e=gt(t),i=RC(t);i&&l_(i)&&In(i).position==="static";)i=RC(i);return i&&(Kt(i)==="html"||Kt(i)==="body"&&In(i).position==="static")?e:i||dF(t)||e}function Ho(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function zo(t,e,i){return yi(t,$o(e,i))}function kC(t,e,i){var n=zo(t,e,i);return n>i?i:n}function Bl(){return{top:0,right:0,bottom:0,left:0}}function Vl(t){return Object.assign({},Bl(),t)}function jl(t,e){return e.reduce(function(i,n){return i[n]=t,i},{})}var hF=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,Vl(typeof e!="number"?e:jl(e,Gr))};function fF(t){var e,i=t.state,n=t.name,r=t.options,o=i.elements.arrow,a=i.modifiersData.popperOffsets,c=Xt(i.placement),d=Ho(c),f=[zt,Jt].indexOf(c)>=0,m=f?"height":"width";if(!(!o||!a)){var v=hF(r.padding,i),y=Uo(o),g=d==="y"?kt:zt,b=d==="y"?dn:Jt,S=i.rects.reference[m]+i.rects.reference[d]-a[d]-i.rects.popper[m],E=a[d]-i.rects.reference[d],M=wi(o),V=M?d==="y"?M.clientHeight||0:M.clientWidth||0:0,W=S/2-E/2,N=v[g],$=V-y[m]-v[b],Y=V/2-y[m]/2+W,ie=zo(N,Y,$),K=d;i.modifiersData[n]=(e={},e[K]=ie,e.centerOffset=ie-Y,e)}}function pF(t){var e=t.state,i=t.options,n=i.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||Ll(e.elements.popper,r)&&(e.elements.arrow=r))}var c_={name:"arrow",enabled:!0,phase:"main",fn:fF,effect:pF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ti(t){return t.split("-")[1]}var mF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gF(t,e){var i=t.x,n=t.y,r=e.devicePixelRatio||1;return{x:vr(i*r)/r||0,y:vr(n*r)/r||0}}function FC(t){var e,i=t.popper,n=t.popperRect,r=t.placement,o=t.variation,a=t.offsets,c=t.position,d=t.gpuAcceleration,f=t.adaptive,m=t.roundOffsets,v=t.isFixed,y=a.x,g=y===void 0?0:y,b=a.y,S=b===void 0?0:b,E=typeof m=="function"?m({x:g,y:S}):{x:g,y:S};g=E.x,S=E.y;var M=a.hasOwnProperty("x"),V=a.hasOwnProperty("y"),W=zt,N=kt,$=window;if(f){var Y=wi(i),ie="clientHeight",K="clientWidth";if(Y===gt(i)&&(Y=hn(i),In(Y).position!=="static"&&c==="absolute"&&(ie="scrollHeight",K="scrollWidth")),Y=Y,r===kt||(r===zt||r===Jt)&&o===jo){N=dn;var H=v&&Y===$&&$.visualViewport?$.visualViewport.height:Y[ie];S-=H-n.height,S*=d?1:-1}if(r===zt||(r===kt||r===dn)&&o===jo){W=Jt;var pe=v&&Y===$&&$.visualViewport?$.visualViewport.width:Y[K];g-=pe-n.width,g*=d?1:-1}}var We=Object.assign({position:c},f&&mF),G=m===!0?gF({x:g,y:S},gt(i)):{x:g,y:S};if(g=G.x,S=G.y,d){var j;return Object.assign({},We,(j={},j[N]=V?"0":"",j[W]=M?"0":"",j.transform=($.devicePixelRatio||1)<=1?"translate("+g+"px, "+S+"px)":"translate3d("+g+"px, "+S+"px, 0)",j))}return Object.assign({},We,(e={},e[N]=V?S+"px":"",e[W]=M?g+"px":"",e.transform="",e))}function _F(t){var e=t.state,i=t.options,n=i.gpuAcceleration,r=n===void 0?!0:n,o=i.adaptive,a=o===void 0?!0:o,c=i.roundOffsets,d=c===void 0?!0:c,f={placement:Xt(e.placement),variation:ti(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,FC(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:d})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,FC(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var LC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_F,data:{}};var ph={passive:!0};function vF(t){var e=t.state,i=t.instance,n=t.options,r=n.scroll,o=r===void 0?!0:r,a=n.resize,c=a===void 0?!0:a,d=gt(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&f.forEach(function(m){m.addEventListener("scroll",i.update,ph)}),c&&d.addEventListener("resize",i.update,ph),function(){o&&f.forEach(function(m){m.removeEventListener("scroll",i.update,ph)}),c&&d.removeEventListener("resize",i.update,ph)}}var BC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vF,data:{}};var yF={left:"right",right:"left",bottom:"top",top:"bottom"};function na(t){return t.replace(/left|right|bottom|top/g,function(e){return yF[e]})}var wF={start:"end",end:"start"};function mh(t){return t.replace(/start|end/g,function(e){return wF[e]})}function Go(t){var e=gt(t),i=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:i,scrollTop:n}}function Wo(t){return ei(hn(t)).left+Go(t).scrollLeft}function u_(t,e){var i=gt(t),n=hn(t),r=i.visualViewport,o=n.clientWidth,a=n.clientHeight,c=0,d=0;if(r){o=r.width,a=r.height;var f=Fl();(f||!f&&e==="fixed")&&(c=r.offsetLeft,d=r.offsetTop)}return{width:o,height:a,x:c+Wo(t),y:d}}function d_(t){var e,i=hn(t),n=Go(t),r=(e=t.ownerDocument)==null?void 0:e.body,o=yi(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=yi(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),c=-n.scrollLeft+Wo(t),d=-n.scrollTop;return In(r||i).direction==="rtl"&&(c+=yi(i.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:c,y:d}}function Zo(t){var e=In(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function gh(t){return["html","body","#document"].indexOf(Kt(t))>=0?t.ownerDocument.body:Gt(t)&&Zo(t)?t:gh(yr(t))}function Wr(t,e){var i;e===void 0&&(e=[]);var n=gh(t),r=n===((i=t.ownerDocument)==null?void 0:i.body),o=gt(n),a=r?[o].concat(o.visualViewport||[],Zo(n)?n:[]):n,c=e.concat(a);return r?c:c.concat(Wr(yr(a)))}function ia(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function bF(t,e){var i=ei(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function VC(t,e,i){return e===hh?ia(u_(t,i)):Xn(e)?bF(e,i):ia(d_(hn(t)))}function DF(t){var e=Wr(yr(t)),i=["absolute","fixed"].indexOf(In(t).position)>=0,n=i&&Gt(t)?wi(t):t;return Xn(n)?e.filter(function(r){return Xn(r)&&Ll(r,n)&&Kt(r)!=="body"}):[]}function h_(t,e,i,n){var r=e==="clippingParents"?DF(t):[].concat(e),o=[].concat(r,[i]),a=o[0],c=o.reduce(function(d,f){var m=VC(t,f,n);return d.top=yi(m.top,d.top),d.right=$o(m.right,d.right),d.bottom=$o(m.bottom,d.bottom),d.left=yi(m.left,d.left),d},VC(t,a,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function $l(t){var e=t.reference,i=t.element,n=t.placement,r=n?Xt(n):null,o=n?ti(n):null,a=e.x+e.width/2-i.width/2,c=e.y+e.height/2-i.height/2,d;switch(r){case kt:d={x:a,y:e.y-i.height};break;case dn:d={x:a,y:e.y+e.height};break;case Jt:d={x:e.x+e.width,y:c};break;case zt:d={x:e.x-i.width,y:c};break;default:d={x:e.x,y:e.y}}var f=r?Ho(r):null;if(f!=null){var m=f==="y"?"height":"width";switch(o){case _r:d[f]=d[f]-(e[m]/2-i[m]/2);break;case jo:d[f]=d[f]+(e[m]/2-i[m]/2);break;default:}}return d}function Zr(t,e){e===void 0&&(e={});var i=e,n=i.placement,r=n===void 0?t.placement:n,o=i.strategy,a=o===void 0?t.strategy:o,c=i.boundary,d=c===void 0?OC:c,f=i.rootBoundary,m=f===void 0?hh:f,v=i.elementContext,y=v===void 0?Xs:v,g=i.altBoundary,b=g===void 0?!1:g,S=i.padding,E=S===void 0?0:S,M=Vl(typeof E!="number"?E:jl(E,Gr)),V=y===Xs?AC:Xs,W=t.rects.popper,N=t.elements[b?V:y],$=h_(Xn(N)?N:N.contextElement||hn(t.elements.popper),d,m,a),Y=ei(t.elements.reference),ie=$l({reference:Y,element:W,strategy:"absolute",placement:r}),K=ia(Object.assign({},W,ie)),H=y===Xs?K:Y,pe={top:$.top-H.top+M.top,bottom:H.bottom-$.bottom+M.bottom,left:$.left-H.left+M.left,right:H.right-$.right+M.right},We=t.modifiersData.offset;if(y===Xs&&We){var G=We[r];Object.keys(pe).forEach(function(j){var R=[Jt,dn].indexOf(j)>=0?1:-1,Z=[kt,dn].indexOf(j)>=0?"y":"x";pe[j]+=G[Z]*R})}return pe}function f_(t,e){e===void 0&&(e={});var i=e,n=i.placement,r=i.boundary,o=i.rootBoundary,a=i.padding,c=i.flipVariations,d=i.allowedAutoPlacements,f=d===void 0?fh:d,m=ti(n),v=m?c?a_:a_.filter(function(b){return ti(b)===m}):Gr,y=v.filter(function(b){return f.indexOf(b)>=0});y.length===0&&(y=v);var g=y.reduce(function(b,S){return b[S]=Zr(t,{placement:S,boundary:r,rootBoundary:o,padding:a})[Xt(S)],b},{});return Object.keys(g).sort(function(b,S){return g[b]-g[S]})}function CF(t){if(Xt(t)===dh)return[];var e=na(t);return[mh(t),e,mh(e)]}function EF(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=i.mainAxis,o=r===void 0?!0:r,a=i.altAxis,c=a===void 0?!0:a,d=i.fallbackPlacements,f=i.padding,m=i.boundary,v=i.rootBoundary,y=i.altBoundary,g=i.flipVariations,b=g===void 0?!0:g,S=i.allowedAutoPlacements,E=e.options.placement,M=Xt(E),V=M===E,W=d||(V||!b?[na(E)]:CF(E)),N=[E].concat(W).reduce(function(de,Qe){return de.concat(Xt(Qe)===dh?f_(e,{placement:Qe,boundary:m,rootBoundary:v,padding:f,flipVariations:b,allowedAutoPlacements:S}):Qe)},[]),$=e.rects.reference,Y=e.rects.popper,ie=new Map,K=!0,H=N[0],pe=0;pe<N.length;pe++){var We=N[pe],G=Xt(We),j=ti(We)===_r,R=[kt,dn].indexOf(G)>=0,Z=R?"width":"height",O=Zr(e,{placement:We,boundary:m,rootBoundary:v,altBoundary:y,padding:f}),J=R?j?Jt:zt:j?dn:kt;$[Z]>Y[Z]&&(J=na(J));var k=na(J),X=[];if(o&&X.push(O[G]<=0),c&&X.push(O[J]<=0,O[k]<=0),X.every(function(de){return de})){H=We,K=!1;break}ie.set(We,X)}if(K)for(var Ee=b?3:1,Oe=function(Qe){var ft=N.find(function(Ft){var Ze=ie.get(Ft);if(Ze)return Ze.slice(0,Qe).every(function(Et){return Et})});if(ft)return H=ft,"break"},De=Ee;De>0;De--){var we=Oe(De);if(we==="break")break}e.placement!==H&&(e.modifiersData[n]._skip=!0,e.placement=H,e.reset=!0)}}var p_={name:"flip",enabled:!0,phase:"main",fn:EF,requiresIfExists:["offset"],data:{_skip:!1}};function TF(t,e,i){var n=Xt(t),r=[zt,kt].indexOf(n)>=0?-1:1,o=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,a=o[0],c=o[1];return a=a||0,c=(c||0)*r,[zt,Jt].indexOf(n)>=0?{x:c,y:a}:{x:a,y:c}}function SF(t){var e=t.state,i=t.options,n=t.name,r=i.offset,o=r===void 0?[0,0]:r,a=fh.reduce(function(m,v){return m[v]=TF(v,e.rects,o),m},{}),c=a[e.placement],d=c.x,f=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=f),e.modifiersData[n]=a}var m_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:SF};function MF(t){var e=t.state,i=t.name;e.modifiersData[i]=$l({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var jC={name:"popperOffsets",enabled:!0,phase:"read",fn:MF,data:{}};function g_(t){return t==="x"?"y":"x"}function xF(t){var e=t.state,i=t.options,n=t.name,r=i.mainAxis,o=r===void 0?!0:r,a=i.altAxis,c=a===void 0?!1:a,d=i.boundary,f=i.rootBoundary,m=i.altBoundary,v=i.padding,y=i.tether,g=y===void 0?!0:y,b=i.tetherOffset,S=b===void 0?0:b,E=Zr(e,{boundary:d,rootBoundary:f,padding:v,altBoundary:m}),M=Xt(e.placement),V=ti(e.placement),W=!V,N=Ho(M),$=g_(N),Y=e.modifiersData.popperOffsets,ie=e.rects.reference,K=e.rects.popper,H=typeof S=="function"?S(Object.assign({},e.rects,{placement:e.placement})):S,pe=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),We=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,G={x:0,y:0};if(Y){if(o){var j,R=N==="y"?kt:zt,Z=N==="y"?dn:Jt,O=N==="y"?"height":"width",J=Y[N],k=J+E[R],X=J-E[Z],Ee=g?-K[O]/2:0,Oe=V===_r?ie[O]:K[O],De=V===_r?-K[O]:-ie[O],we=e.elements.arrow,de=g&&we?Uo(we):{width:0,height:0},Qe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Bl(),ft=Qe[R],Ft=Qe[Z],Ze=zo(0,ie[O],de[O]),Et=W?ie[O]/2-Ee-Ze-ft-pe.mainAxis:Oe-Ze-ft-pe.mainAxis,tn=W?-ie[O]/2+Ee+Ze+Ft+pe.mainAxis:De+Ze+Ft+pe.mainAxis,pn=e.elements.arrow&&wi(e.elements.arrow),Kr=pn?N==="y"?pn.clientTop||0:pn.clientLeft||0:0,er=(j=We?.[N])!=null?j:0,ya=J+Et-er-Kr,wa=J+tn-er,Xr=zo(g?$o(k,ya):k,J,g?yi(X,wa):X);Y[N]=Xr,G[N]=Xr-J}if(c){var _c,vc=N==="x"?kt:zt,ba=N==="x"?dn:Jt,Ci=Y[$],eo=$==="y"?"height":"width",yc=Ci+E[vc],wc=Ci-E[ba],to=[kt,zt].indexOf(M)!==-1,Da=(_c=We?.[$])!=null?_c:0,Ca=to?yc:Ci-ie[eo]-K[eo]-Da+pe.altAxis,bc=to?Ci+ie[eo]+K[eo]-Da-pe.altAxis:wc,Ea=g&&to?kC(Ca,Ci,bc):zo(g?Ca:yc,Ci,g?bc:wc);Y[$]=Ea,G[$]=Ea-Ci}e.modifiersData[n]=G}}var __={name:"preventOverflow",enabled:!0,phase:"main",fn:xF,requiresIfExists:["offset"]};function v_(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function y_(t){return t===gt(t)||!Gt(t)?Go(t):v_(t)}function IF(t){var e=t.getBoundingClientRect(),i=vr(e.width)/t.offsetWidth||1,n=vr(e.height)/t.offsetHeight||1;return i!==1||n!==1}function w_(t,e,i){i===void 0&&(i=!1);var n=Gt(e),r=Gt(e)&&IF(e),o=hn(e),a=ei(t,r,i),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(n||!n&&!i)&&((Kt(e)!=="body"||Zo(o))&&(c=y_(e)),Gt(e)?(d=ei(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):o&&(d.x=Wo(o))),{x:a.left+c.scrollLeft-d.x,y:a.top+c.scrollTop-d.y,width:a.width,height:a.height}}function OF(t){var e=new Map,i=new Set,n=[];t.forEach(function(o){e.set(o.name,o)});function r(o){i.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(c){if(!i.has(c)){var d=e.get(c);d&&r(d)}}),n.push(o)}return t.forEach(function(o){i.has(o.name)||r(o)}),n}function b_(t){var e=OF(t);return PC.reduce(function(i,n){return i.concat(e.filter(function(r){return r.phase===n}))},[])}function D_(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function C_(t){var e=t.reduce(function(i,n){var r=i[n.name];return i[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,i},{});return Object.keys(e).map(function(i){return e[i]})}var $C={placement:"bottom",modifiers:[],strategy:"absolute"};function UC(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function HC(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,n=i===void 0?[]:i,r=e.defaultOptions,o=r===void 0?$C:r;return function(c,d,f){f===void 0&&(f=o);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},$C,o),modifiersData:{},elements:{reference:c,popper:d},attributes:{},styles:{}},v=[],y=!1,g={state:m,setOptions:function(M){var V=typeof M=="function"?M(m.options):M;S(),m.options=Object.assign({},o,m.options,V),m.scrollParents={reference:Xn(c)?Wr(c):c.contextElement?Wr(c.contextElement):[],popper:Wr(d)};var W=b_(C_([].concat(n,m.options.modifiers)));return m.orderedModifiers=W.filter(function(N){return N.enabled}),b(),g.update()},forceUpdate:function(){if(!y){var M=m.elements,V=M.reference,W=M.popper;if(UC(V,W)){m.rects={reference:w_(V,wi(W),m.options.strategy==="fixed"),popper:Uo(W)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(pe){return m.modifiersData[pe.name]=Object.assign({},pe.data)});for(var N=0;N<m.orderedModifiers.length;N++){if(m.reset===!0){m.reset=!1,N=-1;continue}var $=m.orderedModifiers[N],Y=$.fn,ie=$.options,K=ie===void 0?{}:ie,H=$.name;typeof Y=="function"&&(m=Y({state:m,options:K,name:H,instance:g})||m)}}}},update:D_(function(){return new Promise(function(E){g.forceUpdate(),E(m)})}),destroy:function(){S(),y=!0}};if(!UC(c,d))return g;g.setOptions(f).then(function(E){!y&&f.onFirstUpdate&&f.onFirstUpdate(E)});function b(){m.orderedModifiers.forEach(function(E){var M=E.name,V=E.options,W=V===void 0?{}:V,N=E.effect;if(typeof N=="function"){var $=N({state:m,name:M,instance:g,options:W}),Y=function(){};v.push($||Y)}})}function S(){v.forEach(function(E){return E()}),v=[]}return g}}var AF=[BC,jC,LC,NC],E_=HC({defaultModifiers:AF});var A_=["*"];function PF(t,e){if(t&1){let i=Dt();T(0,"button",2),ae("click",function(){let o=Fe(i).$implicit,a=U();return a.focus(),Le(a.select(o.id,a.NgbSlideEventSource.INDICATOR))}),x()}if(t&2){let i=e.$implicit,n=U();Xe("active",i.id===n.activeId),ht("aria-labelledby","slide-"+i.id)("aria-controls","slide-"+i.id)("aria-selected",i.id===n.activeId)}}function NF(t,e){}function RF(t,e){if(t&1&&(T(0,"div",3)(1,"span",4),xd(2,5),x(),be(3,NF,0,0,"ng-template",6),x()),t&2){let i=e.$implicit,n=e.$index,r=e.$count;ee("id","slide-"+i.id),A(2),bg(n+1)(r),Gb(2),A(),ee("ngTemplateOutlet",i.templateRef)}}function kF(t,e){if(t&1){let i=Dt();T(0,"button",7),ae("click",function(){Fe(i);let r=U();return Le(r.arrowLeft())}),Ce(1,"span",8),T(2,"span",9),xd(3,10),x()(),T(4,"button",11),ae("click",function(){Fe(i);let r=U();return Le(r.arrowRight())}),Ce(5,"span",12),T(6,"span",9),xd(7,13),x()()}if(t&2){let i=U();ht("aria-labelledby",i.id+"-previous"),A(2),ee("id",i.id+"-previous"),A(2),ht("aria-labelledby",i.id+"-next"),A(2),ee("id",i.id+"-next")}}var FF=["ngbDatepickerDayView",""],LF=["month"],BF=["year"];function VF(t,e){if(t&1&&(T(0,"option",4),B(1),x()),t&2){let i=e.$implicit,n=U();ee("value",i),ht("aria-label",n.i18n.getMonthFullName(i,n.date.year)),A(),Ut(n.i18n.getMonthShortName(i,n.date.year))}}function jF(t,e){if(t&1&&(T(0,"option",4),B(1),x()),t&2){let i=e.$implicit,n=U();ee("value",i),A(),Ut(n.i18n.getYearNumerals(i))}}function $F(t,e){if(t&1){let i=Dt();T(0,"ngb-datepicker-navigation-select",6),ae("select",function(r){Fe(i);let o=U();return Le(o.select.emit(r))}),x()}if(t&2){let i=U();ee("date",i.date)("disabled",i.disabled)("months",i.selectBoxes.months)("years",i.selectBoxes.years)}}function UF(t,e){t&1&&Ce(0,"div",9)}function HF(t,e){t&1&&Ce(0,"div",9)}function zF(t,e){if(t&1&&(be(0,UF,1,0,"div",7),T(1,"div",8),B(2),x(),be(3,HF,1,0,"div",7)),t&2){let i=e.$implicit,n=e.$index,r=U(2);Be(0,n>0?0:-1),A(2),vn(" ",r.i18n.getMonthLabel(i.firstDate)," "),A(),Be(3,n!==r.months.length-1?3:-1)}}function GF(t,e){if(t&1&&Sn(0,zF,4,3,null,null,Qn),t&2){let i=U();Mn(i.months)}}function WF(t,e){if(t&1&&(T(0,"div",3),B(1),x()),t&2){let i=U(2);A(),Ut(i.i18n.getWeekLabel())}}function ZF(t,e){if(t&1&&(T(0,"div",4),B(1),x()),t&2){let i=e.$implicit;A(),Ut(i)}}function qF(t,e){if(t&1&&(T(0,"div",1),be(1,WF,2,1,"div",2),Sn(2,ZF,2,1,"div",5,Qn),x()),t&2){let i=U();A(),Be(1,i.datepicker.showWeekNumbers?1:-1),A(),Mn(i.viewModel.weekdays)}}function YF(t,e){if(t&1&&(T(0,"div",9),B(1),x()),t&2){let i=U(2).$implicit,n=U();A(),Ut(n.i18n.getWeekNumerals(i.number))}}function QF(t,e){}function JF(t,e){if(t&1&&be(0,QF,0,0,"ng-template",11),t&2){let i=U().$implicit,n=U(3);ee("ngTemplateOutlet",n.datepicker.dayTemplate)("ngTemplateOutletContext",i.context)}}function KF(t,e){if(t&1){let i=Dt();T(0,"div",10),ae("click",function(r){let a=Fe(i).$implicit;return U(3).doSelect(a),Le(r.preventDefault())}),be(1,JF,1,2,null,11),x()}if(t&2){let i=e.$implicit;Xe("disabled",i.context.disabled)("hidden",i.hidden)("ngb-dp-today",i.context.today),ee("tabindex",i.tabindex),ht("aria-label",i.ariaLabel),A(),Be(1,i.hidden?-1:1)}}function XF(t,e){if(t&1&&(T(0,"div",7),be(1,YF,2,1,"div",8),Sn(2,KF,2,9,"div",12,Qn),x()),t&2){let i=U().$implicit,n=U();A(),Be(1,n.datepicker.showWeekNumbers?1:-1),A(),Mn(i.days)}}function eL(t,e){if(t&1&&be(0,XF,4,1,"div",6),t&2){let i=e.$implicit;Be(0,i.collapsed?-1:0)}}var tL=["defaultDayTemplate"],nL=["content"];function iL(t,e){if(t&1&&Ce(0,"div",8),t&2){let i=e.date,n=e.currentMonth,r=e.selected,o=e.disabled,a=e.focused;ee("date",i)("currentMonth",n)("selected",r)("disabled",o)("focused",a)}}function rL(t,e){if(t&1&&(T(0,"div",12),B(1),x()),t&2){let i=U().$implicit,n=U(2);A(),vn(" ",n.i18n.getMonthLabel(i.firstDate)," ")}}function oL(t,e){if(t&1&&(T(0,"div",9),be(1,rL,2,1,"div",10),Ce(2,"ngb-datepicker-month",11),x()),t&2){let i=e.$implicit,n=U(2);A(),Be(1,n.navigation==="none"||n.displayMonths>1&&n.navigation==="select"?1:-1),A(),ee("month",i.firstDate)}}function sL(t,e){if(t&1&&Sn(0,oL,3,2,"div",13,Qn),t&2){let i=U();Mn(i.model.months)}}function aL(t,e){if(t&1){let i=Dt();T(0,"ngb-datepicker-navigation",14),ae("navigate",function(r){Fe(i);let o=U();return Le(o.onNavigateEvent(r))})("select",function(r){Fe(i);let o=U();return Le(o.onNavigateDateSelect(r))}),x()}if(t&2){let i=U();ee("date",i.model.firstDate)("months",i.model.months)("disabled",i.model.disabled)("showSelect",i.model.navigation==="select")("prevDisabled",i.model.prevDisabled)("nextDisabled",i.model.nextDisabled)("selectBoxes",i.model.selectBoxes)}}function lL(t,e){}function cL(t,e){}var uL=t=>({$implicit:t}),dL=["dialog"];function hL(t,e){if(t&1&&(T(0,"strong",3),B(1),x()),t&2){let i=U();A(),Ut(i.header)}}function fL(t,e){}function pL(t,e){if(t&1){let i=Dt();T(0,"div",4),be(1,fL,0,0,"ng-template",5),T(2,"button",6),ae("click",function(){Fe(i);let r=U();return Le(r.hide())}),x()()}if(t&2){let i=U(),n=_n(1);A(),ee("ngTemplateOutlet",i.contentHeaderTpl||n)}}var QC={animation:!0,transitionTimerDelayMs:5},aa=(()=>{let e=class e{constructor(){this.animation=QC.animation}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function mL(t){let{transitionDelay:e,transitionDuration:i}=window.getComputedStyle(t),n=parseFloat(e),r=parseFloat(i);return(n+r)*1e3}function bi(t){return parseInt(`${t}`,10)}function zl(t){return typeof t=="string"}function wr(t){return!isNaN(bi(t))}function Ln(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function qo(t){return t!=null}function gL(t){return t&&t.then}function zC(t){return wr(t)?`0${t}`.slice(-2):""}function _L(t,e){return!e||typeof t.closest>"u"?null:t.closest(e)}function Wl(t){return(t||document.body).getBoundingClientRect()}function vL(t){return e=>new ge(i=>{let n=a=>t.run(()=>i.next(a)),r=a=>t.run(()=>i.error(a)),o=()=>t.run(()=>i.complete());return e.subscribe({next:n,error:r,complete:o})})}function JC(t=document){let e=t?.activeElement;return e?e.shadowRoot?JC(e.shadowRoot):e:null}var yL=()=>{},{transitionTimerDelayMs:wL}=QC,Ul=new Map,Bn=(t,e,i,n)=>{let r=n.context||{},o=Ul.get(e);if(o)switch(n.runningTransition){case"continue":return qt;case"stop":t.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),Ul.delete(e)}let a=i(e,n.animation,r)||yL;if(!n.animation||window.getComputedStyle(e).transitionProperty==="none")return t.run(()=>a()),te(void 0).pipe(vL(t));let c=new He,d=new He,f=c.pipe(Cs(!0));Ul.set(e,{transition$:c,complete:()=>{d.next(),d.complete()},context:r});let m=mL(e);return t.runOutsideAngular(()=>{let v=Vt(e,"transitionend").pipe(pt(f),ot(({target:g})=>g===e)),y=Mr(m+wL).pipe(pt(f));pu(y,v,d).pipe(pt(f)).subscribe(()=>{Ul.delete(e),t.run(()=>{a(),c.next(),c.complete()})})}),c.asObservable()},bL=t=>{Ul.get(t)?.complete()};function DL(t,e){if(typeof navigator>"u")return"0px";let{classList:i}=t,n=i.contains("show");n||i.add("show"),t.style[e]="";let r=t.getBoundingClientRect()[e]+"px";return n||i.remove("show"),r}var CL=(t,e,i)=>{let{direction:n,maxSize:r,dimension:o}=i,{classList:a}=t;function c(){a.add("collapse"),n==="show"?a.add("show"):a.remove("show")}if(!e){c();return}return r||(r=DL(t,o),i.maxSize=r,t.style[o]=n!=="show"?r:"0px",a.remove("collapse"),a.remove("collapsing"),a.remove("show"),Wl(t),a.add("collapsing")),t.style[o]=n==="show"?r:"0px",()=>{c(),a.remove("collapsing"),t.style[o]=""}},EL=(()=>{let e=class e{constructor(){this._ngbConfig=D(aa),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),KC=(()=>{let e=class e{constructor(){this._config=D(EL),this._element=D(Ne),this._zone=D(Re),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new ve,this.horizontal=this._config.horizontal,this.shown=new ve,this.hidden=new ve}set collapsed(n){this._isCollapsed!==n&&(this._isCollapsed=n,this._afterInit&&this._runTransitionWithEvents(n,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(n=this._isCollapsed){this.collapsed=!n,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(n,r){return Bn(this._zone,this._element.nativeElement,CL,{animation:r,runningTransition:"stop",context:{direction:n?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(n,r){this._runTransition(n,r).subscribe(()=>{n?this.hidden.emit():this.shown.emit()})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=fe({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(r,o){r&2&&Xe("collapse-horizontal",o.horizontal)},inputs:{animation:"animation",collapsed:[st.None,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],standalone:!0});let t=e;return t})();var TL=(()=>{let e=class e{constructor(){this._ngbConfig=D(aa),this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ra=function(t){return t.START="start",t.END="end",t}(ra||{}),XC=({classList:t})=>t.contains("carousel-item-start")||t.contains("carousel-item-end"),Gl=t=>{t.remove("carousel-item-start"),t.remove("carousel-item-end")},wh=t=>{Gl(t),t.remove("carousel-item-prev"),t.remove("carousel-item-next")},SL=(t,e,{direction:i})=>{let{classList:n}=t;if(!e){Gl(n),wh(n),n.add("active");return}return XC(t)?Gl(n):(n.add("carousel-item-"+(i===ra.START?"next":"prev")),Wl(t),n.add("carousel-item-"+i)),()=>{wh(n),n.add("active")}},ML=(t,e,{direction:i})=>{let{classList:n}=t;if(!e){Gl(n),wh(n),n.remove("active");return}return XC(t)?Gl(n):n.add("carousel-item-"+i),()=>{wh(n),n.remove("active")}},xL=0,IL=0,OL=(()=>{let e=class e{constructor(){this.templateRef=D(jn),this.id=`ngb-slide-${xL++}`,this.slid=new ve}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=fe({type:e,selectors:[["ng-template","ngbSlide",""]],inputs:{id:"id"},outputs:{slid:"slid"},standalone:!0});let t=e;return t})(),qZ=(()=>{let e=class e{constructor(){this.NgbSlideEventSource=Hl,this._config=D(TL),this._platformId=D(Yn),this._ngZone=D(Re),this._cd=D(Tn),this._container=D(Ne),this._destroyRef=D(Vr),this._interval$=new qe(this._config.interval),this._mouseHover$=new qe(!1),this._focused$=new qe(!1),this._pauseOnHover$=new qe(this._config.pauseOnHover),this._pauseOnFocus$=new qe(this._config.pauseOnFocus),this._pause$=new qe(!1),this._wrap$=new qe(this._config.wrap),this.id=`ngb-carousel-${IL++}`,this.animation=this._config.animation,this.keyboard=this._config.keyboard,this.showNavigationArrows=this._config.showNavigationArrows,this.showNavigationIndicators=this._config.showNavigationIndicators,this.slide=new ve,this.slid=new ve,this._transitionIds=null}set interval(n){this._interval$.next(n)}get interval(){return this._interval$.value}set wrap(n){this._wrap$.next(n)}get wrap(){return this._wrap$.value}set pauseOnHover(n){this._pauseOnHover$.next(n)}get pauseOnHover(){return this._pauseOnHover$.value}set pauseOnFocus(n){this._pauseOnFocus$.next(n)}get pauseOnFocus(){return this._pauseOnFocus$.value}set mouseHover(n){this._mouseHover$.next(n)}get mouseHover(){return this._mouseHover$.value}set focused(n){this._focused$.next(n)}get focused(){return this._focused$.value}arrowLeft(){this.focus(),this.prev(Hl.ARROW_LEFT)}arrowRight(){this.focus(),this.next(Hl.ARROW_RIGHT)}ngAfterContentInit(){Vg(this._platformId)&&this._ngZone.runOutsideAngular(()=>{let n=Ii([this.slide.pipe(se(r=>r.current),Ts(this.activeId)),this._wrap$,this.slides.changes.pipe(Ts(null))]).pipe(se(([r,o])=>{let a=this.slides.toArray(),c=this._getSlideIdxById(r);return o?a.length>1:c<a.length-1}),ho());Ii([this._pause$,this._pauseOnHover$,this._mouseHover$,this._pauseOnFocus$,this._focused$,this._interval$,n]).pipe(se(([r,o,a,c,d,f,m])=>r||o&&a||c&&d||!m?0:f),ho(),It(r=>r>0?Mr(r,r):zf),zr(this._destroyRef)).subscribe(()=>this._ngZone.run(()=>this.next(Hl.TIMER)))}),this.slides.changes.pipe(zr(this._destroyRef)).subscribe(()=>{this._transitionIds?.forEach(n=>bL(this._getSlideElement(n))),this._transitionIds=null,this._cd.markForCheck(),this._ngZone.onStable.pipe(ut(1)).subscribe(()=>{for(let{id:n}of this.slides){let r=this._getSlideElement(n);n===this.activeId?r.classList.add("active"):r.classList.remove("active")}})})}ngAfterContentChecked(){let n=this._getSlideById(this.activeId);this.activeId=n?n.id:this.slides.length?this.slides.first.id:""}ngAfterViewInit(){if(this.activeId){let n=this._getSlideElement(this.activeId);n&&n.classList.add("active")}}select(n,r){this._cycleToSelected(n,this._getSlideEventDirection(this.activeId,n),r)}prev(n){this._cycleToSelected(this._getPrevSlide(this.activeId),ra.END,n)}next(n){this._cycleToSelected(this._getNextSlide(this.activeId),ra.START,n)}pause(){this._pause$.next(!0)}cycle(){this._pause$.next(!1)}focus(){this._container.nativeElement.focus()}_cycleToSelected(n,r,o){let a=this._transitionIds;if(a&&(a[0]!==n||a[1]!==this.activeId))return;let c=this._getSlideById(n);if(c&&c.id!==this.activeId){this._transitionIds=[this.activeId,n],this.slide.emit({prev:this.activeId,current:c.id,direction:r,paused:this._pause$.value,source:o});let d={animation:this.animation,runningTransition:"stop",context:{direction:r}},f=[],m=this._getSlideById(this.activeId);if(m){let b=Bn(this._ngZone,this._getSlideElement(m.id),ML,d);b.subscribe(()=>{m.slid.emit({isShown:!1,direction:r,source:o})}),f.push(b)}let v=this.activeId;this.activeId=c.id;let y=this._getSlideById(this.activeId),g=Bn(this._ngZone,this._getSlideElement(c.id),SL,d);g.subscribe(()=>{y?.slid.emit({isShown:!0,direction:r,source:o})}),f.push(g),Ds(...f).pipe(ut(1)).subscribe(()=>{this._transitionIds=null,this.slid.emit({prev:v,current:c.id,direction:r,paused:this._pause$.value,source:o})})}this._cd.markForCheck()}_getSlideEventDirection(n,r){let o=this._getSlideIdxById(n),a=this._getSlideIdxById(r);return o>a?ra.END:ra.START}_getSlideById(n){return this.slides.find(r=>r.id===n)||null}_getSlideIdxById(n){let r=this._getSlideById(n);return r!=null?this.slides.toArray().indexOf(r):-1}_getNextSlide(n){let r=this.slides.toArray(),o=this._getSlideIdxById(n);return o===r.length-1?this.wrap?r[0].id:r[r.length-1].id:r[o+1].id}_getPrevSlide(n){let r=this.slides.toArray(),o=this._getSlideIdxById(n);return o===0?this.wrap?r[r.length-1].id:r[0].id:r[o-1].id}_getSlideElement(n){return this._container.nativeElement.querySelector(`#slide-${n}`)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=bt({type:e,selectors:[["ngb-carousel"]],contentQueries:function(r,o,a){if(r&1&&un(a,OL,4),r&2){let c;at(c=lt())&&(o.slides=c)}},hostAttrs:["tabIndex","0",1,"carousel","slide"],hostVars:3,hostBindings:function(r,o){r&1&&ae("keydown.arrowLeft",function(){return o.keyboard&&o.arrowLeft()})("keydown.arrowRight",function(){return o.keyboard&&o.arrowRight()})("mouseenter",function(){return o.mouseHover=!0})("mouseleave",function(){return o.mouseHover=!1})("focusin",function(){return o.focused=!0})("focusout",function(){return o.focused=!1}),r&2&&(ht("aria-activedescendant","slide-"+o.activeId),Sd("display","block"))},inputs:{animation:"animation",activeId:"activeId",interval:"interval",wrap:"wrap",keyboard:"keyboard",pauseOnHover:"pauseOnHover",pauseOnFocus:"pauseOnFocus",showNavigationArrows:"showNavigationArrows",showNavigationIndicators:"showNavigationIndicators"},outputs:{slide:"slide",slid:"slid"},exportAs:["ngbCarousel"],standalone:!0,features:[xn],decls:7,vars:3,consts:()=>{let n;n=$localize`:Currently selected slide number read by screen reader@@ngb.carousel.slide-number: Slide ${"\uFFFD0\uFFFD"}:INTERPOLATION: of ${"\uFFFD1\uFFFD"}:INTERPOLATION_1: `;let r;r=$localize`:@@ngb.carousel.previous:Previous`;let o;return o=$localize`:@@ngb.carousel.next:Next`,[["role","tablist",1,"carousel-indicators"],[1,"carousel-inner"],["type","button","data-bs-target","","role","tab",3,"click"],["role","tabpanel",1,"carousel-item",3,"id"],[1,"visually-hidden"],n,[3,"ngTemplateOutlet"],["type","button",1,"carousel-control-prev",3,"click"],["aria-hidden","true",1,"carousel-control-prev-icon"],[1,"visually-hidden",3,"id"],r,["type","button",1,"carousel-control-next",3,"click"],["aria-hidden","true",1,"carousel-control-next-icon"],o,["type","button","data-bs-target","","role","tab",3,"active"],["class","carousel-item","role","tabpanel",3,"id"]]},template:function(r,o){r&1&&(T(0,"div",0),Sn(1,PF,1,5,"button",14,Qn),x(),T(3,"div",1),Sn(4,RF,4,4,"div",15,Qn),x(),be(6,kF,8,4)),r&2&&(Xe("visually-hidden",!o.showNavigationIndicators),A(),Mn(o.slides),A(3),Mn(o.slides),A(2),Be(6,o.showNavigationArrows?6:-1))},dependencies:[ko],encapsulation:2,changeDetection:0});let t=e;return t})(),Hl=function(t){return t.TIMER="timer",t.ARROW_LEFT="arrowLeft",t.ARROW_RIGHT="arrowRight",t.INDICATOR="indicator",t}(Hl||{}),YZ=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=At({type:e}),e.\u0275inj=Ot({});let t=e;return t})(),eE=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=At({type:e}),e.\u0275inj=Ot({});let t=e;return t})(),fn=class t{static from(e){return e instanceof t?e:e?new t(e.year,e.month,e.day):null}constructor(e,i,n){this.year=Ln(e)?e:null,this.month=Ln(i)?i:null,this.day=Ln(n)?n:null}equals(e){return e!=null&&this.year===e.year&&this.month===e.month&&this.day===e.day}before(e){return e?this.year===e.year?this.month===e.month?this.day===e.day?!1:this.day<e.day:this.month<e.month:this.year<e.year:!1}after(e){return e?this.year===e.year?this.month===e.month?this.day===e.day?!1:this.day>e.day:this.month>e.month:this.year>e.year:!1}};function GC(t){return new fn(t.getFullYear(),t.getMonth()+1,t.getDate())}function _h(t){let e=new Date(t.year,t.month-1,t.day,12);return isNaN(e.getTime())||e.setFullYear(t.year),e}function AL(){return new PL}var la=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:()=>AL(),providedIn:"root"});let t=e;return t})(),PL=(()=>{let e=class e extends la{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(n,r="d",o=1){let a=_h(n),c=!0,d=a.getMonth();switch(r){case"y":a.setFullYear(a.getFullYear()+o);break;case"m":d+=o,a.setMonth(d),d=d%12,d<0&&(d=d+12);break;case"d":a.setDate(a.getDate()+o),c=!1;break;default:return n}return c&&a.getMonth()!==d&&a.setDate(0),GC(a)}getPrev(n,r="d",o=1){return this.getNext(n,r,-o)}getWeekday(n){let o=_h(n).getDay();return o===0?7:o}getWeekNumber(n,r){r===7&&(r=0);let o=(11-r)%7,a=n[o],c=_h(a);c.setDate(c.getDate()+4-(c.getDay()||7));let d=c.getTime();return c.setMonth(0),c.setDate(1),Math.floor(Math.round((d-c.getTime())/864e5)/7)+1}getToday(){return GC(new Date)}isValid(n){if(!n||!Ln(n.year)||!Ln(n.month)||!Ln(n.day)||n.year===0)return!1;let r=_h(n);return!isNaN(r.getTime())&&r.getFullYear()===n.year&&r.getMonth()+1===n.month&&r.getDate()===n.day}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})();function oa(t,e){return!NL(t,e)}function tE(t,e){return!t&&!e?!1:!t||!e?!0:t.year!==e.year||t.month!==e.month}function NL(t,e){return!t&&!e||!!t&&!!e&&t.equals(e)}function RL(t,e){if(e&&t&&e.before(t))throw new Error(`'maxDate' ${e} should be greater than 'minDate' ${t}`)}function vh(t,e,i){return t&&e&&t.before(e)?e:t&&i&&t.after(i)?i:t||null}function T_(t,e){let{minDate:i,maxDate:n,disabled:r,markDisabled:o}=e;return!(t==null||r||o&&o(t,{year:t.year,month:t.month})||i&&t.before(i)||n&&t.after(n))}function kL(t,e,i,n){if(!e)return[];let r=t.getMonths(e.year);if(i&&e.year===i.year){let o=r.findIndex(a=>a===i.month);r=r.slice(o)}if(n&&e.year===n.year){let o=r.findIndex(a=>a===n.month);r=r.slice(0,o+1)}return r}function FL(t,e,i){if(!t)return[];let n=e?Math.max(e.year,t.year-500):t.year-10,o=(i?Math.min(i.year,t.year+500):t.year+10)-n+1,a=Array(o);for(let c=0;c<o;c++)a[c]=n+c;return a}function LL(t,e,i){let n=Object.assign(t.getNext(e,"m"),{day:1});return i!=null&&n.after(i)}function BL(t,e,i){let n=Object.assign(t.getPrev(e,"m"),{day:1});return i!=null&&(n.year===i.year&&n.month<i.month||n.year<i.year&&i.month===1)}function VL(t,e,i,n,r){let{displayMonths:o,months:a}=i,c=a.splice(0,a.length);return Array.from({length:o},(f,m)=>{let v=Object.assign(t.getNext(e,"m",m),{day:1});if(a[m]=null,!r){let y=c.findIndex(g=>g.firstDate.equals(v));y!==-1&&(a[m]=c.splice(y,1)[0])}return v}).forEach((f,m)=>{a[m]===null&&(a[m]=jL(t,f,i,n,c.shift()||{}))}),a}function jL(t,e,i,n,r={}){let{dayTemplateData:o,minDate:a,maxDate:c,firstDayOfWeek:d,markDisabled:f,outsideDays:m,weekdayWidth:v,weekdaysVisible:y}=i,g=t.getToday();r.firstDate=null,r.lastDate=null,r.number=e.month,r.year=e.year,r.weeks=r.weeks||[],r.weekdays=r.weekdays||[],e=$L(t,e,d),y||(r.weekdays.length=0);for(let b=0;b<t.getWeeksPerMonth();b++){let S=r.weeks[b];S||(S=r.weeks[b]={number:0,days:[],collapsed:!0});let E=S.days;for(let M=0;M<t.getDaysPerWeek();M++){b===0&&y&&(r.weekdays[M]=n.getWeekdayLabel(t.getWeekday(e),v));let V=new fn(e.year,e.month,e.day),W=t.getNext(V),N=n.getDayAriaLabel(V),$=!!(a&&V.before(a)||c&&V.after(c));!$&&f&&($=f(V,{month:r.number,year:r.year}));let Y=V.equals(g),ie=o?o(V,{month:r.number,year:r.year}):void 0;r.firstDate===null&&V.month===r.number&&(r.firstDate=V),V.month===r.number&&W.month!==r.number&&(r.lastDate=V);let K=E[M];K||(K=E[M]={}),K.date=V,K.context=Object.assign(K.context||{},{$implicit:V,date:V,data:ie,currentMonth:r.number,currentYear:r.year,disabled:$,focused:!1,selected:!1,today:Y}),K.tabindex=-1,K.ariaLabel=N,K.hidden=!1,e=W}S.number=t.getWeekNumber(E.map(M=>M.date),d),S.collapsed=m==="collapsed"&&E[0].date.month!==r.number&&E[E.length-1].date.month!==r.number}return r}function $L(t,e,i){let n=t.getDaysPerWeek(),r=new fn(e.year,e.month,1),o=t.getWeekday(r)%n;return t.getPrev(r,"d",(n+o-i)%n)}var Zi=(()=>{let e=class e{getMonthLabel(n){return`${this.getMonthFullName(n.month,n.year)} ${this.getYearNumerals(n.year)}`}getDayNumerals(n){return`${n.day}`}getWeekNumerals(n){return`${n}`}getYearNumerals(n){return`${n}`}getWeekLabel(){return""}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:()=>new UL,providedIn:"root"});let t=e;return t})(),UL=(()=>{let e=class e extends Zi{constructor(){super(...arguments),this._locale=D(Cl),this._monthsShort=zd(this._locale,Ht.Standalone,Ve.Abbreviated),this._monthsFull=zd(this._locale,Ht.Standalone,Ve.Wide)}getWeekdayLabel(n,r){let o=Fg(this._locale,Ht.Standalone,r===void 0?Ve.Short:r);return o.map((c,d)=>o[(d+1)%7])[n-1]||""}getMonthShortName(n){return this._monthsShort[n-1]||""}getMonthFullName(n){return this._monthsFull[n-1]||""}getDayAriaLabel(n){let r=new Date(n.year,n.month-1,n.day);return vD(r,"fullDate",this._locale)}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})(),S_=(()=>{let e=class e{constructor(){this._VALIDATORS={dayTemplateData:n=>{if(this._state.dayTemplateData!==n)return{dayTemplateData:n}},displayMonths:n=>{if(n=bi(n),Ln(n)&&n>0&&this._state.displayMonths!==n)return{displayMonths:n}},disabled:n=>{if(this._state.disabled!==n)return{disabled:n}},firstDayOfWeek:n=>{if(n=bi(n),Ln(n)&&n>=0&&this._state.firstDayOfWeek!==n)return{firstDayOfWeek:n}},focusVisible:n=>{if(this._state.focusVisible!==n&&!this._state.disabled)return{focusVisible:n}},markDisabled:n=>{if(this._state.markDisabled!==n)return{markDisabled:n}},maxDate:n=>{let r=this.toValidDate(n,null);if(oa(this._state.maxDate,r))return{maxDate:r}},minDate:n=>{let r=this.toValidDate(n,null);if(oa(this._state.minDate,r))return{minDate:r}},navigation:n=>{if(this._state.navigation!==n)return{navigation:n}},outsideDays:n=>{if(this._state.outsideDays!==n)return{outsideDays:n}},weekdays:n=>{let r=n===!0||n===!1?Ve.Short:n,o=n===!0||n===!1?n:!0;if(this._state.weekdayWidth!==r||this._state.weekdaysVisible!==o)return{weekdayWidth:r,weekdaysVisible:o}}},this._calendar=D(la),this._i18n=D(Zi),this._model$=new He,this._dateSelect$=new He,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:Ve.Short,weekdaysVisible:!0}}get model$(){return this._model$.pipe(ot(n=>n.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(ot(n=>n!==null))}set(n){let r=Object.keys(n).map(o=>this._VALIDATORS[o](n[o])).reduce((o,a)=>z(z({},o),a),{});Object.keys(r).length>0&&this._nextState(r)}focus(n){let r=this.toValidDate(n,null);r!=null&&!this._state.disabled&&oa(this._state.focusDate,r)&&this._nextState({focusDate:n})}focusSelect(){T_(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(n){let r=this.toValidDate(n,this._calendar.getToday());r!=null&&!this._state.disabled&&(!this._state.firstDate||tE(this._state.firstDate,r))&&this._nextState({firstDate:r})}select(n,r={}){let o=this.toValidDate(n,null);o!=null&&!this._state.disabled&&(oa(this._state.selectedDate,o)&&this._nextState({selectedDate:o}),r.emitEvent&&T_(o,this._state)&&this._dateSelect$.next(o))}toValidDate(n,r){let o=fn.from(n);return r===void 0&&(r=this._calendar.getToday()),this._calendar.isValid(o)?o:r}getMonth(n){for(let r of this._state.months)if(n.month===r.number&&n.year===r.year)return r;throw new Error(`month ${n.month} of year ${n.year} not found`)}_nextState(n){let r=this._updateState(n);this._patchContexts(r),this._state=r,this._model$.next(this._state)}_patchContexts(n){let{months:r,displayMonths:o,selectedDate:a,focusDate:c,focusVisible:d,disabled:f,outsideDays:m}=n;n.months.forEach(v=>{v.weeks.forEach(y=>{y.days.forEach(g=>{c&&(g.context.focused=c.equals(g.date)&&d),g.tabindex=!f&&c&&g.date.equals(c)&&c.month===v.number?0:-1,f===!0&&(g.context.disabled=!0),a!==void 0&&(g.context.selected=a!==null&&a.equals(g.date)),v.number!==g.date.month&&(g.hidden=m==="hidden"||m==="collapsed"||o>1&&g.date.after(r[0].firstDate)&&g.date.before(r[o-1].lastDate))})})})}_updateState(n){let r=Object.assign({},this._state,n),o=r.firstDate;if(("minDate"in n||"maxDate"in n)&&(RL(r.minDate,r.maxDate),r.focusDate=vh(r.focusDate,r.minDate,r.maxDate),r.firstDate=vh(r.firstDate,r.minDate,r.maxDate),o=r.focusDate),"disabled"in n&&(r.focusVisible=!1),"selectedDate"in n&&this._state.months.length===0&&(o=r.selectedDate),"focusVisible"in n||"focusDate"in n&&(r.focusDate=vh(r.focusDate,r.minDate,r.maxDate),o=r.focusDate,r.months.length!==0&&r.focusDate&&!r.focusDate.before(r.firstDate)&&!r.focusDate.after(r.lastDate)))return r;if("firstDate"in n&&(r.firstDate=vh(r.firstDate,r.minDate,r.maxDate),o=r.firstDate),o){let a="dayTemplateData"in n||"firstDayOfWeek"in n||"markDisabled"in n||"minDate"in n||"maxDate"in n||"disabled"in n||"outsideDays"in n||"weekdaysVisible"in n,c=VL(this._calendar,o,r,this._i18n,a);r.months=c,r.firstDate=c[0].firstDate,r.lastDate=c[c.length-1].lastDate,"selectedDate"in n&&!T_(r.selectedDate,r)&&(r.selectedDate=null),"firstDate"in n&&(!r.focusDate||r.focusDate.before(r.firstDate)||r.focusDate.after(r.lastDate))&&(r.focusDate=o);let d=!this._state.firstDate||this._state.firstDate.year!==r.firstDate.year,f=!this._state.firstDate||this._state.firstDate.month!==r.firstDate.month;r.navigation==="select"?(("minDate"in n||"maxDate"in n||r.selectBoxes.years.length===0||d)&&(r.selectBoxes.years=FL(r.firstDate,r.minDate,r.maxDate)),("minDate"in n||"maxDate"in n||r.selectBoxes.months.length===0||d)&&(r.selectBoxes.months=kL(this._calendar,r.firstDate,r.minDate,r.maxDate))):r.selectBoxes={years:[],months:[]},(r.navigation==="arrows"||r.navigation==="select")&&(f||d||"minDate"in n||"maxDate"in n||"disabled"in n)&&(r.prevDisabled=r.disabled||BL(this._calendar,r.firstDate,r.minDate),r.nextDisabled=r.disabled||LL(this._calendar,r.lastDate,r.maxDate))}return r}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})(),bh=function(t){return t[t.PREV=0]="PREV",t[t.NEXT=1]="NEXT",t}(bh||{}),P_=(()=>{let e=class e{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays=Ve.Short}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function HL(){return new zL}var N_=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:()=>HL(),providedIn:"root"});let t=e;return t})(),zL=(()=>{let e=class e extends N_{fromModel(n){return n&&Ln(n.year)&&Ln(n.month)&&Ln(n.day)?{year:n.year,month:n.month,day:n.day}:null}toModel(n){return n&&Ln(n.year)&&Ln(n.month)&&Ln(n.day)?{year:n.year,month:n.month,day:n.day}:null}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})(),nt=function(t){return t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",t}(nt||{}),GL=(()=>{let e=class e{processKey(n,r){let{state:o,calendar:a}=r;switch(n.which){case nt.PageUp:r.focusDate(a.getPrev(o.focusedDate,n.shiftKey?"y":"m",1));break;case nt.PageDown:r.focusDate(a.getNext(o.focusedDate,n.shiftKey?"y":"m",1));break;case nt.End:r.focusDate(n.shiftKey?o.maxDate:o.lastDate);break;case nt.Home:r.focusDate(n.shiftKey?o.minDate:o.firstDate);break;case nt.ArrowLeft:r.focusDate(a.getPrev(o.focusedDate,"d",1));break;case nt.ArrowUp:r.focusDate(a.getPrev(o.focusedDate,"d",a.getDaysPerWeek()));break;case nt.ArrowRight:r.focusDate(a.getNext(o.focusedDate,"d",1));break;case nt.ArrowDown:r.focusDate(a.getNext(o.focusedDate,"d",a.getDaysPerWeek()));break;case nt.Enter:case nt.Space:r.focusSelect();break;default:return}n.preventDefault(),n.stopPropagation()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),WL=(()=>{let e=class e{constructor(){this.i18n=D(Zi)}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=bt({type:e,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(r,o){r&2&&Xe("bg-primary",o.selected)("text-white",o.selected)("text-muted",o.isMuted())("outside",o.isMuted())("active",o.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},standalone:!0,features:[xn],attrs:FF,decls:1,vars:1,template:function(r,o){r&1&&B(0),r&2&&Ut(o.i18n.getDayNumerals(o.date))},styles:[`[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView]:hover:not(.bg-primary),[ngbDatepickerDayView].active:not(.bg-primary){background-color:var(--bs-tertiary-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5}
`],encapsulation:2,changeDetection:0});let t=e;return t})(),ZL=(()=>{let e=class e{constructor(){this._month=-1,this._year=-1,this.i18n=D(Zi),this.select=new ve}changeMonth(n){this.select.emit(new fn(this.date.year,bi(n),1))}changeYear(n){this.select.emit(new fn(bi(n),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this.monthSelect.nativeElement.value=`${this._month}`),this.date.year!==this._year&&(this._year=this.date.year,this.yearSelect.nativeElement.value=`${this._year}`))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=bt({type:e,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(r,o){if(r&1&&(Gi(LF,7,Ne),Gi(BF,7,Ne)),r&2){let a;at(a=lt())&&(o.monthSelect=a.first),at(a=lt())&&(o.yearSelect=a.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},standalone:!0,features:[xn],decls:8,vars:2,consts:()=>{let n;n=$localize`:@@ngb.datepicker.select-month:Select month`;let r;r=$localize`:@@ngb.datepicker.select-month:Select month`;let o;o=$localize`:@@ngb.datepicker.select-year:Select year`;let a;return a=$localize`:@@ngb.datepicker.select-year:Select year`,[["aria-label",n,"title",r,1,"form-select",3,"disabled","change"],["month",""],["aria-label",o,"title",a,1,"form-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(r,o){r&1&&(T(0,"select",0,1),ae("change",function(c){return o.changeMonth(c.target.value)}),Sn(2,VF,2,3,"option",4,Qn),x(),T(4,"select",2,3),ae("change",function(c){return o.changeYear(c.target.value)}),Sn(6,jF,2,2,"option",4,Qn),x()),r&2&&(ee("disabled",o.disabled),A(2),Mn(o.months),A(2),ee("disabled",o.disabled),A(2),Mn(o.years))},styles:[`ngb-datepicker-navigation-select>.form-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.form-select:focus{z-index:1}ngb-datepicker-navigation-select>.form-select::-ms-value{background-color:transparent!important}
`],encapsulation:2,changeDetection:0});let t=e;return t})(),qL=(()=>{let e=class e{constructor(){this.navigation=bh,this.i18n=D(Zi),this.months=[],this.navigate=new ve,this.select=new ve}onClickPrev(n){n.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(n){n.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=bt({type:e,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},standalone:!0,features:[xn],decls:8,vars:4,consts:()=>{let n;n=$localize`:@@ngb.datepicker.previous-month:Previous month`;let r;r=$localize`:@@ngb.datepicker.previous-month:Previous month`;let o;o=$localize`:@@ngb.datepicker.next-month:Next month`;let a;return a=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow","ngb-dp-arrow-prev"],["type","button","aria-label",n,"title",r,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years"],[1,"ngb-dp-arrow","ngb-dp-arrow-next"],["type","button","aria-label",o,"title",a,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["class","ngb-dp-arrow"],[1,"ngb-dp-month-name"],[1,"ngb-dp-arrow"]]},template:function(r,o){r&1&&(T(0,"div",0)(1,"button",1),ae("click",function(c){return o.onClickPrev(c)}),Ce(2,"span",2),x()(),be(3,$F,1,4,"ngb-datepicker-navigation-select",3)(4,GF,2,0),T(5,"div",4)(6,"button",5),ae("click",function(c){return o.onClickNext(c)}),Ce(7,"span",2),x()()),r&2&&(A(),ee("disabled",o.prevDisabled),A(2),Be(3,o.showSelect?3:-1),A(),Be(4,o.showSelect?-1:4),A(2),ee("disabled",o.nextDisabled))},dependencies:[ZL],styles:[`ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow-next{justify-content:flex-end}.ngb-dp-arrow-next .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}
`],encapsulation:2,changeDetection:0});let t=e;return t})(),YL=(()=>{let e=class e{constructor(){this.templateRef=D(jn)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=fe({type:e,selectors:[["ng-template","ngbDatepickerContent",""]],standalone:!0});let t=e;return t})(),QL=(()=>{let e=class e{constructor(){this._keyboardService=D(GL),this._service=D(S_),this.i18n=D(Zi),this.datepicker=D(nE)}set month(n){this.viewModel=this._service.getMonth(n)}onKeyDown(n){this._keyboardService.processKey(n,this.datepicker)}doSelect(n){!n.context.disabled&&!n.hidden&&this.datepicker.onDateSelect(n.date)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=bt({type:e,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(r,o){r&1&&ae("keydown",function(c){return o.onKeyDown(c)})},inputs:{month:"month"},standalone:!0,features:[xn],decls:3,vars:1,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek small"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-weekday small","role","columnheader"],["class","ngb-dp-week","role","row"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today"]],template:function(r,o){r&1&&(be(0,qF,4,1,"div",0),Sn(1,eL,1,1,null,null,Qn)),r&2&&(Be(0,o.viewModel.weekdays.length>0?0:-1),A(),Mn(o.viewModel.weeks))},dependencies:[ko],styles:[`ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:var(--bs-info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid var(--bs-border-color);border-radius:0;background-color:var(--bs-tertiary-bg)}.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}
`],encapsulation:2});let t=e;return t})(),nE=(()=>{let e=class e{constructor(){this.injector=D(cn),this._service=D(S_),this._calendar=D(la),this._i18n=D(Zi),this._config=D(P_),this._nativeElement=D(Ne).nativeElement,this._ngbDateAdapter=D(N_),this._ngZone=D(Re),this._destroyRef=D(Vr),this._controlValue=null,this._publicState={},this.dayTemplate=this._config.dayTemplate,this.dayTemplateData=this._config.dayTemplateData,this.displayMonths=this._config.displayMonths,this.firstDayOfWeek=this._config.firstDayOfWeek,this.footerTemplate=this._config.footerTemplate,this.markDisabled=this._config.markDisabled,this.maxDate=this._config.maxDate,this.minDate=this._config.minDate,this.navigation=this._config.navigation,this.outsideDays=this._config.outsideDays,this.showWeekNumbers=this._config.showWeekNumbers,this.startDate=this._config.startDate,this.weekdays=this._config.weekdays,this.navigate=new ve,this.dateSelect=new ve,this.onChange=r=>{},this.onTouched=()=>{};let n=D(Tn);this._service.dateSelect$.pipe(zr()).subscribe(r=>{this.dateSelect.emit(r)}),this._service.model$.pipe(zr()).subscribe(r=>{let o=r.firstDate,a=this.model?this.model.firstDate:null;this._publicState={maxDate:r.maxDate,minDate:r.minDate,firstDate:r.firstDate,lastDate:r.lastDate,focusedDate:r.focusDate,months:r.months.map(v=>v.firstDate)};let c=!1;if(!o.equals(a)&&(this.navigate.emit({current:a?{year:a.year,month:a.month}:null,next:{year:o.year,month:o.month},preventDefault:()=>c=!0}),c&&a!==null)){this._service.open(a);return}let d=r.selectedDate,f=r.focusDate,m=this.model?this.model.focusDate:null;this.model=r,oa(d,this._controlValue)&&(this._controlValue=d,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(d))),oa(f,m)&&m&&r.focusVisible&&this.focus(),n.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}get i18n(){return this._i18n}focusDate(n){this._service.focus(fn.from(n))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(ut(1)).subscribe(()=>this._nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]')?.focus())}navigateTo(n){this._service.open(fn.from(n?n.day?n:je(z({},n),{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{let n=Vt(this._contentEl.nativeElement,"focusin"),r=Vt(this._contentEl.nativeElement,"focusout");Hf(n,r).pipe(ot(o=>{let a=o.target,c=o.relatedTarget;return!(a?.classList.contains("ngb-dp-day")&&c?.classList.contains("ngb-dp-day")&&this._nativeElement.contains(a)&&this._nativeElement.contains(c))}),zr(this._destroyRef)).subscribe(({type:o})=>this._ngZone.run(()=>this._service.set({focusVisible:o==="focusin"})))})}ngOnInit(){if(this.model===void 0){let n={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(r=>n[r]=this[r]),this._service.set(n),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(n){let r={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(o=>o in n).forEach(o=>r[o]=this[o]),this._service.set(r),"startDate"in n){let{currentValue:o,previousValue:a}=n.startDate;tE(a,o)&&this.navigateTo(this.startDate)}}onDateSelect(n){this._service.focus(n),this._service.select(n,{emitEvent:!0})}onNavigateDateSelect(n){this._service.open(n)}onNavigateEvent(n){switch(n){case bh.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case bh.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1));break}}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this._service.set({disabled:n})}writeValue(n){this._controlValue=fn.from(this._ngbDateAdapter.fromModel(n)),this._service.select(this._controlValue)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=bt({type:e,selectors:[["ngb-datepicker"]],contentQueries:function(r,o,a){if(r&1&&un(a,YL,7),r&2){let c;at(c=lt())&&(o.contentTemplateFromContent=c.first)}},viewQuery:function(r,o){if(r&1&&(Gi(tL,7),Gi(nL,7)),r&2){let a;at(a=lt())&&(o._defaultDayTemplate=a.first),at(a=lt())&&(o._contentEl=a.first)}},hostVars:2,hostBindings:function(r,o){r&2&&Xe("disabled",o.model.disabled)},inputs:{contentTemplate:"contentTemplate",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],standalone:!0,features:[Nt([{provide:vi,useExisting:jt(()=>e),multi:!0},S_]),dt,xn],decls:10,vars:9,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],[1,"ngb-dp-month"],["class","ngb-dp-month-name"],[3,"month"],[1,"ngb-dp-month-name"],["class","ngb-dp-month"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(r,o){if(r&1&&(be(0,iL,1,5,"ng-template",null,0,gi)(2,sL,2,0,"ng-template",null,1,gi),T(4,"div",2),be(5,aL,1,7,"ngb-datepicker-navigation",3),x(),T(6,"div",4,5),be(8,lL,0,0,"ng-template",6),x(),be(9,cL,0,0,"ng-template",7)),r&2){let a=_n(3);A(5),Be(5,o.navigation!=="none"?5:-1),A(),Xe("ngb-dp-months",!o.contentTemplate),A(2),ee("ngTemplateOutlet",o.contentTemplate||(o.contentTemplateFromContent==null?null:o.contentTemplateFromContent.templateRef)||a)("ngTemplateOutletContext",ur(7,uL,o))("ngTemplateOutletInjector",o.injector),A(),ee("ngTemplateOutlet",o.footerTemplate)}},dependencies:[ko,WL,QL,qL],styles:[`ngb-datepicker{border:1px solid var(--bs-border-color);border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}ngb-datepicker.disabled .ngb-dp-weekday,ngb-datepicker.disabled .ngb-dp-week-number,ngb-datepicker.disabled .ngb-dp-month-name{color:var(--bs-text-muted)}.ngb-dp-body{z-index:1055}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:var(--bs-tertiary-bg)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:var(--bs-tertiary-bg)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}
`],encapsulation:2,changeDetection:0});let t=e;return t})(),yh=(t,e)=>e?e.some(i=>i.contains(t)):!1,WC=(t,e)=>!e||_L(t,e)!=null,JL=(()=>{let t=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,e=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(t()||e()):!1})(),KL=t=>JL?()=>setTimeout(()=>t(),100):t;function R_(t,e,i,n,r,o,a,c){i&&t.runOutsideAngular(KL(()=>{let d=y=>{let g=y.target;return y.button===2||yh(g,a)?!1:i==="inside"?yh(g,o)&&WC(g,c):i==="outside"?!yh(g,o):WC(g,c)||!yh(g,o)},f=Vt(e,"keydown").pipe(pt(r),ot(y=>y.which===nt.Escape),yt(y=>y.preventDefault())),m=Vt(e,"mousedown").pipe(se(d),pt(r)),v=Vt(e,"mouseup").pipe(Wa(m),ot(([y,g])=>g),Wf(0),pt(r));pu([f.pipe(se(y=>0)),v.pipe(se(y=>1))]).subscribe(y=>t.run(()=>n(y)))}))}var iE=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function rE(t){let e=Array.from(t.querySelectorAll(iE)).filter(i=>i.tabIndex!==-1);return[e[0],e[e.length-1]]}var oE=(t,e,i,n=!1)=>{t.runOutsideAngular(()=>{let r=Vt(e,"focusin").pipe(pt(i),se(o=>o.target));Vt(e,"keydown").pipe(pt(i),ot(o=>o.which===nt.Tab),Wa(r)).subscribe(([o,a])=>{let[c,d]=rE(e);(a===c||a===e)&&o.shiftKey&&(d.focus(),o.preventDefault()),a===d&&!o.shiftKey&&(c.focus(),o.preventDefault())}),n&&Vt(e,"click").pipe(pt(i),Wa(r),se(o=>o[1])).subscribe(o=>o.focus())})},XL=(()=>{let e=class e{constructor(){this._element=D(tt).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),e2=/\s+/,t2=/  +/gi,n2={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]};function i2(t,e){let[i,n]=n2[t];return e&&n||i}var r2=/^left/,o2=/^right/,s2=/^start/,a2=/^end/;function l2(t,e){let[i,n]=e.split("-"),r=i.replace(r2,"start").replace(o2,"end"),o=[r];if(n){let a=n;(i==="left"||i==="right")&&(a=a.replace(s2,"top").replace(a2,"bottom")),o.push(`${r}-${a}`)}return t&&(o=o.map(a=>`${t}-${a}`)),o.join(" ")}function ZC({placement:t,baseClass:e},i){let n=Array.isArray(t)?t:t.split(e2),r=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],o=n.findIndex(f=>f==="auto");o>=0&&r.forEach(function(f){n.find(m=>m.search("^"+f)!==-1)==null&&n.splice(o++,1,f)});let a=n.map(f=>i2(f,i.isRTL()));return{placement:a.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!e,phase:"write",fn({state:f}){let m=new RegExp(e+"(-[a-z]+)*","gi"),v=f.elements.popper,y=f.placement,g=v.className;g=g.replace(m,""),g+=` ${l2(e,y)}`,g=g.trim().replace(t2," "),v.className=g}},p_,__,c_,{enabled:!0,name:"flip",options:{fallbackPlacements:a}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function qC(t){return t}function k_(){let t=D(XL),e=null;return{createPopper(i){if(!e){let r=(i.updatePopperOptions||qC)(ZC(i,t));e=E_(i.hostElement,i.targetElement,r)}},update(){e&&e.update()},setOptions(i){if(e){let r=(i.updatePopperOptions||qC)(ZC(i,t));e.setOptions(r)}},destroy(){e&&(e.destroy(),e=null)}}}function c2(){return new u2}var ca=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:()=>c2(),providedIn:"root"});let t=e;return t})(),u2=(()=>{let e=class e extends ca{parse(n){if(n!=null){let r=n.trim().split("-");if(r.length===1&&wr(r[0]))return{year:bi(r[0]),month:null,day:null};if(r.length===2&&wr(r[0])&&wr(r[1]))return{year:bi(r[0]),month:bi(r[1]),day:null};if(r.length===3&&wr(r[0])&&wr(r[1])&&wr(r[2]))return{year:bi(r[0]),month:bi(r[1]),day:bi(r[2])}}return null}format(n){return n?`${n.year}-${wr(n.month)?zC(n.month):""}-${wr(n.day)?zC(n.day):""}`:""}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})(),YC=(()=>{let e=class e extends P_{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=n=>n,this.restoreFocus=!0}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function F_(t){return e=>(e.modifiers.push(m_,{name:"offset",options:{offset:()=>t}}),e)}var sE=(()=>{let e=class e{constructor(){this._parserFormatter=D(ca),this._elRef=D(Ne),this._vcRef=D(pi),this._ngZone=D(Re),this._calendar=D(la),this._dateAdapter=D(N_),this._document=D(tt),this._changeDetector=D(Tn),this._config=D(YC),this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this._positioning=k_(),this._destroyCloseHandlers$=new He,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.positionTarget=this._config.positionTarget,this.dateSelect=new ve,this.navigate=new ve,this.closed=new ve,this._onChange=n=>{},this._onTouched=()=>{},this._validatorChange=()=>{}}get disabled(){return this._disabled}set disabled(n){this._disabled=n===""||n&&n!=="false",this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}registerOnChange(n){this._onChange=n}registerOnTouched(n){this._onTouched=n}registerOnValidatorChange(n){this._validatorChange=n}setDisabledState(n){this.disabled=n}validate(n){let{value:r}=n;if(r!=null){let o=this._fromDateStruct(this._dateAdapter.fromModel(r));if(!o)return{ngbDate:{invalid:r}};if(this.minDate&&o.before(fn.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:r}}};if(this.maxDate&&o.after(fn.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:r}}}}return null}writeValue(n){this._model=this._fromDateStruct(this._dateAdapter.fromModel(n)),this._writeModelValue(this._model)}manualDateChange(n,r=!1){let o=n!==this._inputValue;o&&(this._inputValue=n,this._model=this._fromDateStruct(this._parserFormatter.parse(n))),(o||!r)&&this._onChange(this._model?this._dateAdapter.toModel(this._model):n===""?null:n),r&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){this._cRef=this._vcRef.createComponent(nE),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(r=>{this.writeValue(r),this._onChange(r),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),this.container==="body"&&this._document.querySelector(this.container)?.appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,oE(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),setTimeout(()=>this._cRef?.instance.focus());let n;if(zl(this.positionTarget)?n=this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?n=this.positionTarget:n=this._elRef.nativeElement,this.positionTarget&&!n)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");this._ngZone.runOutsideAngular(()=>{this._cRef&&n&&(this._positioning.createPopper({hostElement:n,targetElement:this._cRef.location.nativeElement,placement:this.placement,appendToBody:this.container==="body",updatePopperOptions:r=>this.popperOptions(F_([0,2])(r))}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update()))}),this._setCloseHandlers()}}close(){if(this.isOpen()){this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.closed.emit(),this._changeDetector.markForCheck();let n=this._elWithFocus;zl(this.restoreFocus)?n=this._document.querySelector(this.restoreFocus):this.restoreFocus!==void 0&&(n=this.restoreFocus),n&&n.focus?n.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(n){this.isOpen()&&this._cRef.instance.navigateTo(n)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(n){if((n.minDate||n.maxDate)&&(this._validatorChange(),this.isOpen()&&(n.minDate&&this._cRef.setInput("minDate",this.minDate),n.maxDate&&this._cRef.setInput("maxDate",this.maxDate))),n.datepickerClass){let{currentValue:r,previousValue:o}=n.datepickerClass;this._applyPopupClass(r,o)}n.autoClose&&this.isOpen()&&this._setCloseHandlers()}ngOnDestroy(){this.close()}_applyDatepickerInputs(n){["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekNumbers","weekdays"].forEach(r=>{this[r]!==void 0&&n.setInput(r,this[r])}),n.setInput("startDate",this.startDate||this._model)}_applyPopupClass(n,r){let o=this._cRef?.location.nativeElement;o&&(n&&o.classList.add(n),r&&o.classList.remove(r))}_applyPopupStyling(n){n.classList.add("dropdown-menu","show"),this.container==="body"&&n.classList.add("ngb-dp-body"),this._applyPopupClass(this.datepickerClass)}_subscribeForDatepickerOutputs(n){n.navigate.subscribe(r=>this.navigate.emit(r)),n.dateSelect.subscribe(r=>{this.dateSelect.emit(r),(this.autoClose===!0||this.autoClose==="inside")&&this.close()})}_writeModelValue(n){let r=this._parserFormatter.format(n);this._inputValue=r,this._elRef.nativeElement.value=r,this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(n)),this._onTouched())}_fromDateStruct(n){let r=n?new fn(n.year,n.month,n.day):null;return this._calendar.isValid(r)?r:null}_setCloseHandlers(){this._destroyCloseHandlers$.next(),R_(this._ngZone,this._document,this.autoClose,()=>this.close(),this._destroyCloseHandlers$,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=fe({type:e,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(r,o){r&1&&ae("input",function(c){return o.manualDateChange(c.target.value)})("change",function(c){return o.manualDateChange(c.target.value,!0)})("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),r&2&&Ao("disabled",o.disabled)},inputs:{autoClose:"autoClose",contentTemplate:"contentTemplate",datepickerClass:"datepickerClass",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",popperOptions:"popperOptions",restoreFocus:"restoreFocus",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget",weekdays:"weekdays",disabled:"disabled"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],standalone:!0,features:[Nt([{provide:vi,useExisting:jt(()=>e),multi:!0},{provide:Vo,useExisting:jt(()=>e),multi:!0},{provide:P_,useExisting:YC}]),dt]});let t=e;return t})();var QZ=new Date(1882,10,12),JZ=new Date(2174,10,25);var KZ=1e3*60*60*24;var L_=1080,d2=24*L_,h2=12*L_+793,XZ=29*d2+h2,eq=11*L_+204;var aE=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=At({type:e}),e.\u0275inj=Ot({});let t=e;return t})(),f2=(()=>{let e=class e{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=n=>n,this.container=null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),lE=(()=>{let e=class e{constructor(){this._disabled=!1,this.nativeElement=D(Ne).nativeElement,this.tabindex=0}set disabled(n){this._disabled=n===""||n===!0}get disabled(){return this._disabled}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=fe({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(r,o){r&2&&(Ao("tabIndex",o.disabled?-1:o.tabindex),Xe("disabled",o.disabled))},inputs:{tabindex:"tabindex",disabled:"disabled"},standalone:!0});let t=e;return t})(),tq=(()=>{let e=class e{constructor(){this.item=D(lE)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=fe({type:e,selectors:[["button","ngbDropdownItem",""]],hostVars:1,hostBindings:function(r,o){r&2&&Ao("disabled",o.item.disabled)},standalone:!0});let t=e;return t})(),p2=(()=>{let e=class e{constructor(){this.dropdown=D(cE),this.nativeElement=D(Ne).nativeElement}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=fe({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(r,o,a){if(r&1&&un(a,lE,4),r&2){let c;at(c=lt())&&(o.menuItems=c)}},hostVars:4,hostBindings:function(r,o){r&1&&ae("keydown.ArrowUp",function(c){return o.dropdown.onKeyDown(c)})("keydown.ArrowDown",function(c){return o.dropdown.onKeyDown(c)})("keydown.Home",function(c){return o.dropdown.onKeyDown(c)})("keydown.End",function(c){return o.dropdown.onKeyDown(c)})("keydown.Enter",function(c){return o.dropdown.onKeyDown(c)})("keydown.Space",function(c){return o.dropdown.onKeyDown(c)})("keydown.Tab",function(c){return o.dropdown.onKeyDown(c)})("keydown.Shift.Tab",function(c){return o.dropdown.onKeyDown(c)}),r&2&&Xe("dropdown-menu",!0)("show",o.dropdown.isOpen())},standalone:!0});let t=e;return t})(),M_=(()=>{let e=class e{constructor(){this.dropdown=D(cE),this.nativeElement=D(Ne).nativeElement}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=fe({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(r,o){r&2&&(ht("aria-expanded",o.dropdown.isOpen()),Xe("show",o.dropdown.isOpen()))},standalone:!0});let t=e;return t})(),nq=(()=>{let e=class e extends M_{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275dir=fe({type:e,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(r,o){r&1&&ae("click",function(){return o.dropdown.toggle()})("keydown.ArrowUp",function(c){return o.dropdown.onKeyDown(c)})("keydown.ArrowDown",function(c){return o.dropdown.onKeyDown(c)})("keydown.Home",function(c){return o.dropdown.onKeyDown(c)})("keydown.End",function(c){return o.dropdown.onKeyDown(c)})("keydown.Tab",function(c){return o.dropdown.onKeyDown(c)})("keydown.Shift.Tab",function(c){return o.dropdown.onKeyDown(c)}),r&2&&(ht("aria-expanded",o.dropdown.isOpen()),Xe("show",o.dropdown.isOpen()))},standalone:!0,features:[Nt([{provide:M_,useExisting:jt(()=>e)}]),$t]});let t=e;return t})(),cE=(()=>{let e=class e{constructor(){this._changeDetector=D(Tn),this._config=D(f2),this._document=D(tt),this._ngZone=D(Re),this._nativeElement=D(Ne).nativeElement,this._destroyCloseHandlers$=new He,this._bodyContainer=null,this._positioning=k_(),this.autoClose=this._config.autoClose,this._open=!1,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.openChange=new ve}ngOnInit(){this.display||(this.display=this._nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){this._ngZone.onStable.pipe(ut(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(n){if(n.container&&this._open&&this._applyContainer(this.container),n.placement&&!n.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:this.container==="body"}),this._applyPlacementClasses()),n.dropdownClass){let{currentValue:r,previousValue:o}=n.dropdownClass;this._applyCustomDropdownClass(r,o)}n.autoClose&&this._open&&(this.autoClose=n.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),this.display==="dynamic"&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:this.container==="body",updatePopperOptions:n=>this.popperOptions(F_([0,2])(n))}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),R_(this._ngZone,this._document,this.autoClose,n=>{this.close(),n===0&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(n){let r=n.which,o=this._getMenuElements(),a=-1,c=null,d=this._isEventFromToggle(n);if(!d&&o.length&&o.forEach((f,m)=>{f.contains(n.target)&&(c=f),f===JC(this._document)&&(a=m)}),r===nt.Space||r===nt.Enter){c&&(this.autoClose===!0||this.autoClose==="inside")&&Vt(c,"click").pipe(ut(1)).subscribe(()=>this.close());return}if(r===nt.Tab){if(n.target&&this.isOpen()&&this.autoClose)if(this._anchor.nativeElement===n.target){this.container==="body"&&!n.shiftKey?(this._menu.nativeElement.setAttribute("tabindex","0"),this._menu.nativeElement.focus(),this._menu.nativeElement.removeAttribute("tabindex")):n.shiftKey&&this.close();return}else if(this.container==="body"){let f=this._menu.nativeElement.querySelectorAll(iE);n.shiftKey&&n.target===f[0]?(this._anchor.nativeElement.focus(),n.preventDefault()):!n.shiftKey&&n.target===f[f.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else Vt(n.target,"focusout").pipe(ut(1)).subscribe(({relatedTarget:f})=>{this._nativeElement.contains(f)||this.close()});return}if(d||c){if(this.open(),o.length){switch(r){case nt.ArrowDown:a=Math.min(a+1,o.length-1);break;case nt.ArrowUp:if(this._isDropup()&&a===-1){a=o.length-1;break}a=Math.max(a-1,0);break;case nt.Home:a=0;break;case nt.End:a=o.length-1;break}o[a].focus()}n.preventDefault()}}_isDropup(){return this._nativeElement.classList.contains("dropup")}_isEventFromToggle(n){return this._anchor.nativeElement.contains(n.target)}_getMenuElements(){return this._menu?this._menu.menuItems.filter(({disabled:n})=>!n).map(({nativeElement:n})=>n):[]}_positionMenu(){let n=this._menu;this.isOpen()&&n&&(this.display==="dynamic"?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(n){return Array.isArray(n)?n[0]:n.split(" ")[0]}_resetContainer(){this._menu&&this._nativeElement.appendChild(this._menu.nativeElement),this._bodyContainer&&(this._document.body.removeChild(this._bodyContainer),this._bodyContainer=null)}_applyContainer(n=null){if(this._resetContainer(),n==="body"){let r=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||this._document.createElement("div");o.style.position="absolute",r.style.position="static",o.style.zIndex="1055",o.appendChild(r),this._document.body.appendChild(o)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(n,r){let o=this.container==="body"?this._bodyContainer:this._nativeElement;o&&(r&&o.classList.remove(r),n&&o.classList.add(n))}_applyPlacementClasses(n){if(this._menu){n||(n=this._getFirstPlacement(this.placement)),this._nativeElement.classList.remove("dropup","dropdown"),this.display==="static"?this._menu.nativeElement.setAttribute("data-bs-popper","static"):this._menu.nativeElement.removeAttribute("data-bs-popper");let r=n.search("^top")!==-1?"dropup":"dropdown";this._nativeElement.classList.add(r),this._bodyContainer&&(this._bodyContainer.classList.remove("dropup","dropdown"),this._bodyContainer.classList.add(r))}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=fe({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(r,o,a){if(r&1&&(un(a,p2,5),un(a,M_,5)),r&2){let c;at(c=lt())&&(o._menu=c.first),at(c=lt())&&(o._anchor=c.first)}},hostVars:2,hostBindings:function(r,o){r&2&&Xe("show",o.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:[st.None,"open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[dt]});let t=e;return t})();var iq=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=At({type:e}),e.\u0275inj=Ot({});let t=e;return t})(),m2=(()=>{let e=class e{constructor(){this._ngbConfig=D(aa),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),br=class{constructor(e,i,n){this.nodes=e,this.viewRef=i,this.componentRef=n}},x_=class{constructor(e){this._componentType=e,this._windowRef=null,this._contentRef=null,this._document=D(tt),this._applicationRef=D(dr),this._injector=D(cn),this._viewContainerRef=D(pi),this._ngZone=D(Re)}open(e,i,n=!1){this._windowRef||(this._contentRef=this._getContentRef(e,i),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));let{nativeElement:r}=this._windowRef.location,o=this._ngZone.onStable.pipe(ut(1),rt(()=>Bn(this._ngZone,r,({classList:a})=>a.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:o}}close(e=!1){return this._windowRef?Bn(this._ngZone,this._windowRef.location.nativeElement,({classList:i})=>i.remove("show"),{animation:e,runningTransition:"stop"}).pipe(yt(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):te(void 0)}_getContentRef(e,i){if(e)if(e instanceof jn){let n=e.createEmbeddedView(i);return this._applicationRef.attachView(n),new br([n.rootNodes],n)}else return new br([[this._document.createTextNode(`${e}`)]]);else return new br([])}},g2=(()=>{let e=class e{constructor(){this._document=D(tt)}hide(){let n=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),r=this._document.body,o=r.style,{overflow:a,paddingRight:c}=o;if(n>0){let d=parseFloat(window.getComputedStyle(r).paddingRight);o.paddingRight=`${d+n}px`}return o.overflow="hidden",()=>{n>0&&(o.paddingRight=c),o.overflow=a}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_2=(()=>{let e=class e{constructor(){this._nativeElement=D(Ne).nativeElement,this._zone=D(Re)}ngOnInit(){this._zone.onStable.asObservable().pipe(ut(1)).subscribe(()=>{Bn(this._zone,this._nativeElement,(n,r)=>{r&&Wl(n),n.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Bn(this._zone,this._nativeElement,({classList:n})=>n.remove("show"),{animation:this.animation,runningTransition:"stop"})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=bt({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(r,o){r&2&&(bl("modal-backdrop"+(o.backdropClass?" "+o.backdropClass:"")),Xe("show",!o.animation)("fade",o.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[xn],decls:0,vars:0,template:function(r,o){},encapsulation:2});let t=e;return t})(),sa=class{update(e){}close(e){}dismiss(e){}},v2=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],y2=["animation","backdropClass"],I_=class{_applyWindowOptions(e,i){v2.forEach(n=>{qo(i[n])&&(e[n]=i[n])})}_applyBackdropOptions(e,i){y2.forEach(n=>{qo(i[n])&&(e[n]=i[n])})}update(e){this._applyWindowOptions(this._windowCmptRef.instance,e),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,e)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(pt(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(pt(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(e,i,n,r){this._windowCmptRef=e,this._contentRef=i,this._backdropCmptRef=n,this._beforeDismiss=r,this._closed=new He,this._dismissed=new He,this._hidden=new He,e.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,a)=>{this._resolve=o,this._reject=a}),this.result.then(null,()=>{})}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(e);else{let i=this._beforeDismiss();gL(i)?i.then(n=>{n!==!1&&this._dismiss(e)},()=>{}):i!==!1&&this._dismiss(e)}}_removeModalElements(){let e=this._windowCmptRef.instance.hide(),i=this._backdropCmptRef?this._backdropCmptRef.instance.hide():te(void 0);e.subscribe(()=>{let{nativeElement:n}=this._windowCmptRef.location;n.parentNode.removeChild(n),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),i.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:n}=this._backdropCmptRef.location;n.parentNode.removeChild(n),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Ds(e,i).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},O_=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}(O_||{}),w2=(()=>{let e=class e{constructor(){this._document=D(tt),this._elRef=D(Ne),this._zone=D(Re),this._closed$=new He,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new ve,this.shown=new He,this.hidden=new He}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":zl(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(n){this.dismissEvent.emit(n)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(ut(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:n}=this._elRef,r={animation:this.animation,runningTransition:"stop"},o=Bn(this._zone,n,()=>n.classList.remove("show"),r),a=Bn(this._zone,this._dialogEl.nativeElement,()=>{},r),c=Ds(o,a);return c.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),c}_show(){let n={animation:this.animation,runningTransition:"continue"},r=Bn(this._zone,this._elRef.nativeElement,(a,c)=>{c&&Wl(a),a.classList.add("show")},n),o=Bn(this._zone,this._dialogEl.nativeElement,()=>{},n);Ds(r,o).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:n}=this._elRef;this._zone.runOutsideAngular(()=>{Vt(n,"keydown").pipe(pt(this._closed$),ot(o=>o.which===nt.Escape)).subscribe(o=>{this.keyboard?requestAnimationFrame(()=>{o.defaultPrevented||this._zone.run(()=>this.dismiss(O_.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let r=!1;Vt(this._dialogEl.nativeElement,"mousedown").pipe(pt(this._closed$),yt(()=>r=!1),It(()=>Vt(n,"mouseup").pipe(pt(this._closed$),ut(1))),ot(({target:o})=>n===o)).subscribe(()=>{r=!0}),Vt(n,"click").pipe(pt(this._closed$)).subscribe(({target:o})=>{n===o&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!r&&this._zone.run(()=>this.dismiss(O_.BACKDROP_CLICK))),r=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:n}=this._elRef;if(!n.contains(document.activeElement)){let r=n.querySelector("[ngbAutofocus]"),o=rE(n)[0];(r||o||n).focus()}}_restoreFocus(){let n=this._document.body,r=this._elWithFocus,o;r&&r.focus&&n.contains(r)?o=r:o=n,this._zone.runOutsideAngular(()=>{setTimeout(()=>o.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&Bn(this._zone,this._elRef.nativeElement,({classList:n})=>(n.add("modal-static"),()=>n.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=bt({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(r,o){if(r&1&&Gi(dL,7),r&2){let a;at(a=lt())&&(o._dialogEl=a.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(r,o){r&2&&(ht("aria-modal",!0)("aria-labelledby",o.ariaLabelledBy)("aria-describedby",o.ariaDescribedBy),bl("modal d-block"+(o.windowClass?" "+o.windowClass:"")),Xe("fade",o.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[xn],ngContentSelectors:A_,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(r,o){r&1&&(Ws(),T(0,"div",0,1)(2,"div",2),No(3),x()()),r&2&&bl("modal-dialog"+(o.size?" modal-"+o.size:"")+(o.centered?" modal-dialog-centered":"")+o.fullscreenClass+(o.scrollable?" modal-dialog-scrollable":"")+(o.modalDialogClass?" "+o.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}
`],encapsulation:2});let t=e;return t})(),b2=(()=>{let e=class e{constructor(){this._applicationRef=D(dr),this._injector=D(cn),this._environmentInjector=D(Qt),this._document=D(tt),this._scrollBar=D(g2),this._activeWindowCmptHasChanged=new He,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new ve;let n=D(Re);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let r=this._windowCmpts[this._windowCmpts.length-1];oE(n,r.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(r.location.nativeElement)}})}_restoreScrollBar(){let n=this._scrollBarRestoreFn;n&&(this._scrollBarRestoreFn=null,n())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(n,r,o){let a=o.container instanceof HTMLElement?o.container:qo(o.container)?this._document.querySelector(o.container):this._document.body;if(!a)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let c=new sa;n=o.injector||n;let d=n.get(Qt,null)||this._environmentInjector,f=this._getContentRef(n,d,r,c,o),m=o.backdrop!==!1?this._attachBackdrop(a):void 0,v=this._attachWindowComponent(a,f.nodes),y=new I_(v,f,m,o.beforeDismiss);return this._registerModalRef(y),this._registerWindowCmpt(v),y.hidden.pipe(ut(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),c.close=g=>{y.close(g)},c.dismiss=g=>{y.dismiss(g)},c.update=g=>{y.update(g)},y.update(o),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),m&&m.instance&&m.changeDetectorRef.detectChanges(),v.changeDetectorRef.detectChanges(),y}get activeInstances(){return this._activeInstances}dismissAll(n){this._modalRefs.forEach(r=>r.dismiss(n))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(n){let r=Nd(_2,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(r.hostView),n.appendChild(r.location.nativeElement),r}_attachWindowComponent(n,r){let o=Nd(w2,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:r});return this._applicationRef.attachView(o.hostView),n.appendChild(o.location.nativeElement),o}_getContentRef(n,r,o,a,c){return o?o instanceof jn?this._createFromTemplateRef(o,a):zl(o)?this._createFromString(o):this._createFromComponent(n,r,o,a,c):new br([])}_createFromTemplateRef(n,r){let o={$implicit:r,close(c){r.close(c)},dismiss(c){r.dismiss(c)}},a=n.createEmbeddedView(o);return this._applicationRef.attachView(a),new br([a.rootNodes],a)}_createFromString(n){let r=this._document.createTextNode(`${n}`);return new br([[r]])}_createFromComponent(n,r,o,a,c){let d=cn.create({providers:[{provide:sa,useValue:a}],parent:n}),f=Nd(o,{environmentInjector:r,elementInjector:d}),m=f.location.nativeElement;return c.scrollable&&m.classList.add("component-host-scrollable"),this._applicationRef.attachView(f.hostView),new br([[m]],f.hostView,f)}_setAriaHidden(n){let r=n.parentElement;r&&n!==this._document.body&&(Array.from(r.children).forEach(o=>{o!==n&&o.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}),this._setAriaHidden(r))}_revertAriaHidden(){this._ariaHiddenValues.forEach((n,r)=>{n?r.setAttribute("aria-hidden",n):r.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(n){let r=()=>{let o=this._modalRefs.indexOf(n);o>-1&&(this._modalRefs.splice(o,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(n),this._activeInstances.emit(this._modalRefs),n.result.then(r,r)}_registerWindowCmpt(n){this._windowCmpts.push(n),this._activeWindowCmptHasChanged.next(),n.onDestroy(()=>{let r=this._windowCmpts.indexOf(n);r>-1&&(this._windowCmpts.splice(r,1),this._activeWindowCmptHasChanged.next())})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),uE=(()=>{let e=class e{constructor(){this._injector=D(cn),this._modalStack=D(b2),this._config=D(m2)}open(n,r={}){let o=z(je(z({},this._config),{animation:this._config.animation}),r);return this._modalStack.open(this._injector,n,o)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(n){this._modalStack.dismissAll(n)}hasOpenModals(){return this._modalStack.hasOpenModals()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var D2=(()=>{let e=class e{constructor(){this._ngbConfig=D(aa),this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),dE=t=>qo(t)&&t!=="",C2=0,E2=(()=>{let e=class e{constructor(){this.templateRef=D(jn)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=fe({type:e,selectors:[["ng-template","ngbNavContent",""]],standalone:!0});let t=e;return t})(),hE=(()=>{let e=class e{constructor(n){this.role=n,this.nav=D(Zl)}};e.\u0275fac=function(r){return new(r||e)(Lr("role"))},e.\u0275dir=fe({type:e,selectors:[["","ngbNavItem","",5,"ng-container"]],hostVars:1,hostBindings:function(r,o){r&2&&ht("role",o.role?o.role:o.nav.roles?"presentation":void 0)},standalone:!0});let t=e;return t})(),Dh=(()=>{let e=class e{constructor(){this._nav=D(Zl),this._nativeElement=D(Ne).nativeElement,this.disabled=!1,this.shown=new ve,this.hidden=new ve}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){qo(this.domId)||(this.domId=`ngb-nav-${C2++}`)}get active(){return this._nav.activeId===this.id}get id(){return dE(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(qo(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}isNgContainer(){return this._nativeElement.nodeType===Node.COMMENT_NODE}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=fe({type:e,selectors:[["","ngbNavItem",""]],contentQueries:function(r,o,a){if(r&1&&un(a,E2,4),r&2){let c;at(c=lt())&&(o.contentTpls=c)}},hostVars:2,hostBindings:function(r,o){r&2&&Xe("nav-item",!0)},inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:[st.None,"ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"],standalone:!0});let t=e;return t})(),Zl=(()=>{let e=class e{constructor(n){this.role=n,this._config=D(D2),this._cd=D(Tn),this._document=D(tt),this._nativeElement=D(Ne).nativeElement,this.destroyRef=D(Vr),this._navigatingWithKeyboard=!1,this.activeIdChange=new ve,this.animation=this._config.animation,this.destroyOnHide=this._config.destroyOnHide,this.orientation=this._config.orientation,this.roles=this._config.roles,this.keyboard=this._config.keyboard,this.shown=new ve,this.hidden=new ve,this.navItemChange$=new He,this.navChange=new ve}click(n){n.disabled||this._updateActiveId(n.id)}onFocusout({relatedTarget:n}){this._nativeElement.contains(n)||(this._navigatingWithKeyboard=!1)}onKeyDown(n){if(this.roles!=="tablist"||!this.keyboard)return;let r=n.which,o=this.links.filter(d=>!d.navItem.disabled),{length:a}=o,c=-1;if(o.forEach((d,f)=>{d.nativeElement===this._document.activeElement&&(c=f)}),a){switch(r){case nt.ArrowUp:case nt.ArrowLeft:c=(c-1+a)%a;break;case nt.ArrowRight:case nt.ArrowDown:c=(c+1)%a;break;case nt.Home:c=0;break;case nt.End:c=a-1;break}this.keyboard==="changeWithArrows"&&this.select(o[c].navItem.id),o[c].nativeElement.focus(),this._navigatingWithKeyboard=!0,n.preventDefault()}}select(n){this._updateActiveId(n,!1)}ngAfterContentInit(){if(!qo(this.activeId)){let n=this.items.first?this.items.first.id:null;dE(n)&&(this._updateActiveId(n,!1),this._cd.detectChanges())}this.items.changes.pipe(zr(this.destroyRef)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:n}){n&&!n.firstChange&&this._notifyItemChanged(n.currentValue)}_updateActiveId(n,r=!0){if(this.activeId!==n){let o=!1;r&&this.navChange.emit({activeId:this.activeId,nextId:n,preventDefault:()=>{o=!0}}),o||(this.activeId=n,this.activeIdChange.emit(n),this._notifyItemChanged(n))}}_notifyItemChanged(n){this.navItemChange$.next(this._getItemById(n))}_getItemById(n){return this.items&&this.items.find(r=>r.id===n)||null}};e.\u0275fac=function(r){return new(r||e)(Lr("role"))},e.\u0275dir=fe({type:e,selectors:[["","ngbNav",""]],contentQueries:function(r,o,a){if(r&1&&(un(a,Dh,4),un(a,Ch,5)),r&2){let c;at(c=lt())&&(o.items=c),at(c=lt())&&(o.links=c)}},hostVars:6,hostBindings:function(r,o){r&1&&ae("keydown.arrowLeft",function(c){return o.onKeyDown(c)})("keydown.arrowRight",function(c){return o.onKeyDown(c)})("keydown.arrowDown",function(c){return o.onKeyDown(c)})("keydown.arrowUp",function(c){return o.onKeyDown(c)})("keydown.Home",function(c){return o.onKeyDown(c)})("keydown.End",function(c){return o.onKeyDown(c)})("focusout",function(c){return o.onFocusout(c)}),r&2&&(ht("aria-orientation",o.orientation==="vertical"&&o.roles==="tablist"?"vertical":void 0)("role",o.role?o.role:o.roles?"tablist":void 0),Xe("nav",!0)("flex-column",o.orientation==="vertical"))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],standalone:!0,features:[dt]});let t=e;return t})(),Ch=(()=>{let e=class e{constructor(n){this.role=n,this.navItem=D(Dh),this.nav=D(Zl),this.nativeElement=D(Ne).nativeElement}get tabindex(){return this.nav.keyboard===!1?this.navItem.disabled?-1:void 0:this.nav._navigatingWithKeyboard||this.navItem.disabled||!this.navItem.active?-1:void 0}};e.\u0275fac=function(r){return new(r||e)(Lr("role"))},e.\u0275dir=fe({type:e,selectors:[["","ngbNavLink",""]],hostVars:14,hostBindings:function(r,o){r&2&&(Ao("id",o.navItem.domId),ht("role",o.role?o.role:o.nav.roles?"tab":void 0)("tabindex",o.tabindex)("aria-controls",o.navItem.isPanelInDom()?o.navItem.panelDomId:null)("aria-selected",o.navItem.active)("aria-disabled",o.navItem.disabled),Xe("nav-link",!0)("nav-item",o.navItem.isNgContainer())("active",o.navItem.active)("disabled",o.navItem.disabled))},standalone:!0});let t=e;return t})();var fE=(()=>{let e=class e extends Ch{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275dir=fe({type:e,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostBindings:function(r,o){r&1&&ae("click",function(c){return o.nav.click(o.navItem),c.preventDefault()})},standalone:!0,features:[$t]});let t=e;return t})();var pE=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=At({type:e}),e.\u0275inj=Ot({});let t=e;return t})();var T2={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};function S2(t){let e=(t||"").trim();if(e.length===0)return[];let i=e.split(/\s+/).map(r=>r.split(":")).map(r=>T2[r[0]]||r),n=i.filter(r=>r.includes("manual"));if(n.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(n.length===1&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return n.length?[]:i}function M2(t,e,i,n,r,o=0,a=0){let c=S2(e);if(c.length===0)return()=>{};let d=new Set,f=[],m;function v(g,b){t.addEventListener(g,b),f.push(()=>t.removeEventListener(g,b))}function y(g,b){clearTimeout(m),b>0?m=setTimeout(g,b):g()}for(let[g,b]of c)b?(v(g,()=>{d.add(g),y(()=>d.size>0&&n(),o)}),v(b,()=>{d.delete(g),y(()=>d.size===0&&r(),a)})):v(g,()=>i()?y(r,a):y(n,o));return()=>f.forEach(g=>g())}var x2=(()=>{let e=class e{constructor(){this._ngbConfig=D(aa),this.autohide=!0,this.delay=5e3,this.ariaLive="polite"}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),I2=(t,e)=>{let{classList:i}=t;if(e)i.add("fade");else{i.add("show");return}return Wl(t),i.add("show","showing"),()=>{i.remove("showing")}},O2=({classList:t})=>(t.add("showing"),()=>{t.remove("show","showing")}),A2=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=fe({type:e,selectors:[["","ngbToastHeader",""]],standalone:!0});let t=e;return t})(),rq=(()=>{let e=class e{constructor(n){this.ariaLive=n,this._config=D(x2),this._zone=D(Re),this._element=D(Ne),this.animation=this._config.animation,this.delay=this._config.delay,this.autohide=this._config.autohide,this.contentHeaderTpl=null,this.shown=new ve,this.hidden=new ve,this.ariaLive??=this._config.ariaLive}ngAfterContentInit(){this._zone.onStable.asObservable().pipe(ut(1)).subscribe(()=>{this._init(),this.show()})}ngOnChanges(n){"autohide"in n&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();let n=Bn(this._zone,this._element.nativeElement,O2,{animation:this.animation,runningTransition:"stop"});return n.subscribe(()=>{this.hidden.emit()}),n}show(){let n=Bn(this._zone,this._element.nativeElement,I2,{animation:this.animation,runningTransition:"continue"});return n.subscribe(()=>{this.shown.emit()}),n}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}};e.\u0275fac=function(r){return new(r||e)(Lr("aria-live"))},e.\u0275cmp=bt({type:e,selectors:[["ngb-toast"]],contentQueries:function(r,o,a){if(r&1&&un(a,A2,7,jn),r&2){let c;at(c=lt())&&(o.contentHeaderTpl=c.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(r,o){r&2&&(ht("aria-live",o.ariaLive),Xe("fade",o.animation))},inputs:{animation:"animation",delay:"delay",autohide:"autohide",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],standalone:!0,features:[dt,xn],ngContentSelectors:A_,decls:5,vars:1,consts:()=>{let n;return n=$localize`:@@ngb.toast.close-aria:Close`,[["headerTpl",""],["class","toast-header"],[1,"toast-body"],[1,"me-auto"],[1,"toast-header"],[3,"ngTemplateOutlet"],["type","button","aria-label",n,1,"btn-close",3,"click"]]},template:function(r,o){r&1&&(Ws(),be(0,hL,2,1,"ng-template",null,0,gi)(2,pL,3,1,"div",1),T(3,"div",2),No(4),x()),r&2&&(A(2),Be(2,o.contentHeaderTpl||o.header?2:-1))},dependencies:[ko],styles:[`ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}
`],encapsulation:2});let t=e;return t})(),oq=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=At({type:e}),e.\u0275inj=Ot({});let t=e;return t})(),P2=(()=>{let e=class e{constructor(){this._ngbConfig=D(aa),this.autoClose=!0,this.placement="auto",this.popperOptions=n=>n,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),N2=0,R2=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=bt({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(r,o){r&2&&(Ao("id",o.id),bl("tooltip"+(o.tooltipClass?" "+o.tooltipClass:"")),Xe("fade",o.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[xn],ngContentSelectors:A_,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(r,o){r&1&&(Ws(),Ce(0,"div",0),T(1,"div",1),No(2),x())},styles:[`ngb-tooltip-window{pointer-events:none;position:absolute}ngb-tooltip-window .tooltip-inner{pointer-events:auto}ngb-tooltip-window.bs-tooltip-top,ngb-tooltip-window.bs-tooltip-bottom{padding-left:0;padding-right:0}ngb-tooltip-window.bs-tooltip-start,ngb-tooltip-window.bs-tooltip-end{padding-top:0;padding-bottom:0}
`],encapsulation:2,changeDetection:0});let t=e;return t})(),mE=(()=>{let e=class e{constructor(){this._config=D(P2),this.animation=this._config.animation,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.triggers=this._config.triggers,this.container=this._config.container,this.disableTooltip=this._config.disableTooltip,this.tooltipClass=this._config.tooltipClass,this.openDelay=this._config.openDelay,this.closeDelay=this._config.closeDelay,this.shown=new ve,this.hidden=new ve,this._nativeElement=D(Ne).nativeElement,this._ngZone=D(Re),this._document=D(tt),this._changeDetector=D(Tn),this._ngbTooltipWindowId=`ngb-tooltip-${N2++}`,this._popupService=new x_(R2),this._windowRef=null,this._positioning=k_()}set ngbTooltip(n){this._ngbTooltip=n,!n&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(n){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){let{windowRef:r,transition$:o}=this._popupService.open(this._ngbTooltip,n??this.tooltipContext,this.animation);this._windowRef=r,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._getPositionTargetElement().setAttribute("aria-describedby",this._ngbTooltipWindowId),this.container==="body"&&this._document.body.appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:this.container==="body",baseClass:"bs-tooltip",updatePopperOptions:a=>this.popperOptions(F_([0,6])(a))}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),R_(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement],[this._nativeElement]),o.subscribe(()=>this.shown.emit())}}close(n=this.animation){this._windowRef!=null&&(this._getPositionTargetElement().removeAttribute("aria-describedby"),this._popupService.close(n).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return this._windowRef!=null}ngOnInit(){this._unregisterListenersFn=M2(this._nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:n}){n&&this.isOpen()&&this._windowRef.setInput("tooltipClass",n.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(zl(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=fe({type:e,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],standalone:!0,features:[dt]});let t=e;return t})(),gE=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=At({type:e}),e.\u0275inj=Ot({});let t=e;return t})();var sq=new le("live announcer delay",{providedIn:"root",factory:()=>100});var qi={production:!0,apiUrl:"/api",graphQLUrl:"",graphQLApiKey:""};Object.assign(qi,{graphQLUrl:"https://vgsq5e345rbslkzskqx6efewsu.appsync-api.us-east-1.amazonaws.com/graphql",graphQLApiKey:"da2-dauvp6fdtngv3p55rt7buu6r2e"});var _E=(()=>{let e=class e{constructor(n){this.http=n}get(n,r){return Lt(this,null,function*(){let o=`${qi.apiUrl}${n}`;return new Promise((a,c)=>{this.http.get(o,r).subscribe({next:d=>a(d),error:d=>c(d)})})})}post(n,r){return Lt(this,null,function*(){let o=`${qi.apiUrl}${n}`;return new Promise((a,c)=>{this.http.post(o,r).subscribe({next:d=>a(d),error:d=>c(d)})})})}put(n,r){return Lt(this,null,function*(){let o=`${qi.apiUrl}${n}`;return new Promise((a,c)=>{this.http.put(o,r).subscribe({next:d=>a(d),error:d=>c(d)})})})}delete(n){return Lt(this,null,function*(){let r=`${qi.apiUrl}${n}`;return new Promise((o,a)=>{this.http.delete(r).subscribe({next:c=>o(c),error:c=>a(c)})})})}};e.\u0275fac=function(r){return new(r||e)(re(Lo))},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var vE=(()=>{let e=class e extends _E{constructor(n){super(n)}getLatestSeismic(){return Lt(this,null,function*(){return yield this.get("/ultimo-sismo")})}getSeismicByCode(n){return Lt(this,null,function*(){return yield this.get(`/ultimo-sismo/sismo/${n}`)})}listSeismic(){return Lt(this,null,function*(){return yield this.get("/ultimo-sismo/sismos")})}listSeismicByYear(n){return Lt(this,null,function*(){return yield this.get(`/ultimo-sismo/ajaxb/${n}`)})}homeReport(){return Lt(this,null,function*(){return yield this.get("/ultimo-sismo/inicio")})}downloadData(n){return Lt(this,null,function*(){let r=yield this.get("/ultimo-sismo/descargar-datos",{params:n,responseType:"arraybuffer",headers:{"Content-Disposition":"attachment; filename=IGP_datos_sismicos.xlsx","Content-Type":"application/vnd.ms-excel"}}),o=new Blob([r],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),a=URL.createObjectURL(o);window.open(a,"_blank")})}getMaps(n,r){return Lt(this,null,function*(){let o=[{prop:"mapa_sismicidad",image:"sismo.png"},{prop:"mapa_aceleracion_teorica",image:"pga.png"},{prop:"mapa_intensidades_teoricas",image:"intensity.jpg"},{prop:"mapa_aceleracion",image:"pga.jpg"},{prop:"mapa_psuedoaceleracion",image:"ipsa.gif"},{prop:"mapa_velocidades",image:"pgv.jpg"}],a={},c=o.map((d,f)=>jf(this.http.get(`https://www.igp.gob.pe/mapas-tematicos/${n}/${r}/${d.image}`).pipe(Pi(m=>(console.warn(`Este reporte no posee '${d.prop}'`),te(je(z({},d),{image:m.status===200?m.url:void 0})))))));try{return(yield Promise.all(c)).forEach(f=>{a[f.prop]=f.image}),a}catch(d){throw d}})}};e.\u0275fac=function(r){return new(r||e)(re(Lo))},e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})();var yE=(()=>{let e=class e{constructor(){this.$currentBreadcrumb=Km([""])}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"any"});let t=e;return t})();var Yi=function(t){return t[t.original=0]="original",t[t.asc=1]="asc",t[t.desc=2]="desc",t}(Yi||{});var L2=["tBody"];function B2(t,e){if(t&1){let i=Dt();T(0,"div",6)(1,"div",7)(2,"label",8),B(3,"Mostrar"),x(),T(4,"div")(5,"select",9),ae("change",function(r){Fe(i);let o=U();return Le(o.onChangeOffest(r))}),T(6,"option",10),B(7,"10"),x(),T(8,"option",11),B(9,"25"),x(),T(10,"option",12),B(11,"50"),x(),T(12,"option",13),B(13,"100"),x()()()(),T(14,"div",14)(15,"label",15),B(16,"Buscar"),x(),T(17,"div")(18,"input",16),ae("ngModelChange",function(r){Fe(i);let o=U();return Le(o.search=r)})("input",function(){Fe(i);let r=U();return Le(r.onSearch())}),x()()()()}if(t&2){let i=U();A(18),ee("ngModel",i.search)}}var V2=(t,e,i,n)=>({cursor:t,maxWidth:e,width:i,minWidth:n});function j2(t,e){if(t&1){let i=Dt();T(0,"th",17),ae("click",function(){let o=Fe(i).$implicit,a=U();return Le(a.sortColumn(o))}),T(1,"div",18)(2,"span",19),B(3),x(),Ce(4,"span",20),x()()}if(t&2){let i=e.$implicit,n=U();ee("ngStyle",Kb(3,V2,i.sort?"pointer":"default",i.width,i.width,i.width)),A(3),vn(" ",i.title,""),A(),ee("ngClass",i.sort&&n.sortClass(i))}}function $2(t,e){if(t&1&&(T(0,"tr")(1,"td",21),B(2,"Cargando..."),x()()),t&2){let i=U();A(),ee("colSpan",i.header.length)}}var U2=t=>({$implicit:t});function H2(t,e){if(t&1&&(T(0,"tr",22),wg(1,23),x()),t&2){let i=e.$implicit,n=U(3);A(),ee("ngTemplateOutlet",n.bodyTemplateRef)("ngTemplateOutletContext",ur(2,U2,i))}}function z2(t,e){if(t&1&&Sn(0,H2,2,4,"tr",24,_g),t&2){let i=U(2);Mn(i.dataFiltered)}}function G2(t,e){if(t&1&&(T(0,"tr")(1,"td",21),B(2," No se encontraron reportes sismicos para el mes seleccionado. "),x()()),t&2){let i=U(2);A(),ee("colSpan",i.header.length)}}function W2(t,e){if(t&1&&be(0,z2,2,0)(1,G2,3,1),t&2){let i=U();Be(0,i.dataFiltered.length?0:1)}}function Z2(t,e){if(t&1&&B(0),t&2){let i=U(2);vn(" (filtrado de un total de ",i.totalData," registros) ")}}function q2(t,e){if(t&1){let i=Dt();T(0,"div",25)(1,"div",26),B(2),be(3,Z2,1,1),x(),T(4,"div",26)(5,"div",27)(6,"button",28),ae("click",function(){Fe(i);let r=U();return Le(r.prev())}),B(7," Anterior "),x(),T(8,"button",28),ae("click",function(){Fe(i);let r=U();return Le(r.next())}),B(9," Siguiente "),x()()()()}if(t&2){let i=U();A(2),Cg(" Registros del ",i.page*i.offset+1," al ",i.page*i.offset+i.dataFiltered.length," de un total de ",i.search?i.dataSearching.length:i.data.length," "),A(),Be(3,i.showTotalCount||i.search?3:-1),A(3),ee("disabled",i.page===0),A(2),ee("disabled",i.page>=i.maxPage||i.offset*(i.page===0?1:i.page+1)>=(i.search?i.dataSearching.length:i.data.length))}}var wq=(()=>{let e=class e{constructor(){this.header=[],this.data=[],this.totalData=0,this.dataLoading=!1,this.onlyInformative=!1,this.offset=10,this.showTotalCount=!1,this.sort=!1,this.dataFiltered=[],this.dataSearching=[],this.dataSorted=[],this._copyDataSorted=[],this.page=0,this.search=""}ngOnInit(){}ngOnChanges(n){n.data.currentValue&&(this.verifyColumns(),this.data=n.data.currentValue,this.maxPage=this.data.length/this.offset,this.dataFiltered=[],this.offset=10,this.header.forEach(r=>{typeof r.sorted=="number"&&r.sorted!==Yi.original&&this.sortByType(n.data.currentValue,r.serverPropName,r.sort,r.sorted)}),this.onSearch())}filter(){let n=this.dataSorted.length?this.dataSorted:this.search?this.dataSearching:this.data;this.dataFiltered=[...n].slice((this.page===0?0:this.page)*this.offset,(this.page===0?1:this.page+1)*this.offset)}onChangeOffest(n){this.page=0,this.offset=n.target.value,this.maxPage=(this.search?this.dataSearching:this.data).length/this.offset,this.filter()}next(){this.page++,this.filter()}prev(){this.page--,this.filter()}onSearch(){this.page=0;let n=this.search.trim().toLocaleLowerCase();if(!n){this.dataSorted.length&&(this.dataSorted=this._copyDataSorted),this.filter();return}let r=this.data.filter(o=>{for(let a of this.header){let c=o[a.serverPropName];if((typeof c=="string"||typeof c=="number")&&(typeof c=="number"?c.toString():c).toLocaleLowerCase().includes(n))return!0}return!1});this.dataSearching=r,this.dataSorted.length&&this.header.forEach(o=>{typeof o.sorted=="number"&&o.sorted!==Yi.original&&this.sortByType(r,o.serverPropName,o.sort,o.sorted)}),this.maxPage=this.dataSearching.length/this.offset,this.filter()}sortColumn(n){if(n.sort){if(n.sorted+=1,n.sorted>Yi.desc){this.page=0,n.sorted=Yi.original,this.dataSorted=[],this.filter();return}this.header.forEach(r=>{n!=r&&(r.sorted=Yi.original)}),this.page=0,this.sortByType(this.search?this.dataSearching:this.data,n.serverPropName,n.sort,n.sorted)}}sortByType(n,r,o,a){this.dataSorted=n.slice().sort((c,d)=>{let f=(()=>{switch(o){case"string":return c[r].localeCompare(d[r]);case"number":return c[r]-d[r];case"date":return new Date(c[r]).getTime()-new Date(d[r]).getTime();default:throw new Error("Tipo de ordenaci\xF3n no v\xE1lido")}})();return a===Yi.asc?f:-f}),this._copyDataSorted=this.dataSorted,this.filter()}verifyColumns(){this.data.length&&this.header.forEach(n=>{if(n.sort&&!n.serverPropName)throw new Error(`La columna '${n.title}' no cumple con las propiedades requeridas para utilizar 'sort'`);if(n.serverPropName&&!(n.serverPropName in this.data[0]))throw new Error(`La columna '${n.serverPropName}' especificada no existe en los datos proporcionados.`);if(!n.sort&&n.defaultSorted)throw new Error(`La columna '${n.title}' no cumple con las propiedades requeridas para utilizar 'defaultSorted'`);if(n.sort&&this.header.filter(r=>r.defaultSorted).length>=2)throw new Error("No puedes ordenar 2 columnas a la vez");if(!(typeof n.sorted=="number"&&n.sorted!==Yi.original)){if(n.defaultSorted){n.sorted=n.defaultSorted;return}n.sorted=Yi.original}})}sortClass(n){return`sort-class-${n.sorted}`}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=bt({type:e,selectors:[["app-table"]],contentQueries:function(r,o,a){if(r&1&&un(a,L2,5),r&2){let c;at(c=lt())&&(o.bodyTemplateRef=c.first)}},inputs:{header:"header",data:"data",totalData:"totalData",dataLoading:"dataLoading",onlyInformative:"onlyInformative",offset:"offset",showTotalCount:"showTotalCount",sort:"sort"},features:[dt],decls:12,vars:3,consts:[["class","row mb-3"],[1,"w-100"],[1,"table-responsive"],[1,"table","table-hover","table-bordered","table-light","border-white","w-100"],[1,"bg-primario","text-white","align-middle"],["class","row justify-content-center justify-content-lg-between align-items-center mt-3"],[1,"row","mb-3"],[1,"col-6","d-flex","gap-2","align-items-center"],["for","show"],["id","show","aria-label","Seleccionar a\xF1o",1,"form-select","form-select-sm",3,"change"],["value","10","selected",""],["value","25"],["value","50"],["value","100"],[1,"col-6","d-flex","gap-2","align-items-center","justify-content-end"],["for","search"],["type","search","id","search",1,"form-control","form-select-sm",3,"ngModel","ngModelChange","input"],[1,"text-wrap","text-center",3,"ngStyle","click"],[1,"d-flex","w-100","gap-2","align-items-center","justify-content-lg-between"],[1,"d-flex","text-white","flex-fill","justify-content-center"],[3,"ngClass"],[1,"text-center",3,"colSpan"],[1,"text-center","align-middle"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","text-center align-middle"],[1,"row","justify-content-center","justify-content-lg-between","align-items-center","mt-3"],[1,"col-auto"],["role","group","aria-label","Basic example",1,"btn-group","btn-group-sm"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],["class","text-wrap text-center",3,"ngStyle"]],template:function(r,o){r&1&&(be(0,B2,19,1,"div",0),T(1,"div",1)(2,"div",2)(3,"table",3)(4,"thead",4)(5,"tr"),Sn(6,j2,5,8,"th",29,_g),x()(),T(8,"tbody"),be(9,$2,3,1,"tr")(10,W2,2,1),x()()()(),be(11,q2,10,6,"div",5)),r&2&&(Be(0,o.onlyInformative?-1:0),A(6),Mn(o.header),A(3),Be(9,o.dataLoading?9:10),A(2),Be(11,o.onlyInformative?-1:11))},dependencies:[qs,ko,DD,DC,EC,ch,hC,s_],styles:['@charset "UTF-8";thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{background:var(--primario)}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{border-width:2px}.sort-class-0[_ngcontent-%COMP%], .sort-class-1[_ngcontent-%COMP%], .sort-class-2[_ngcontent-%COMP%]{color:#fff}.sort-class-0[_ngcontent-%COMP%]:before{opacity:.5;content:"\\2193";left:0}.sort-class-0[_ngcontent-%COMP%]:after{opacity:.5;content:"\\2191";right:0}.sort-class-1[_ngcontent-%COMP%]:before{opacity:1;content:"\\2193";left:0}.sort-class-1[_ngcontent-%COMP%]:after{opacity:.5;content:"\\2191";right:0}.sort-class-2[_ngcontent-%COMP%]:before{opacity:.5;content:"\\2193";left:0}.sort-class-2[_ngcontent-%COMP%]:after{opacity:1;content:"\\2191";right:0}']});let t=e;return t})();var xe="primary",cc=Symbol("RouteTitle"),H_=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function pa(t){return new H_(t)}function Y2(t,e,i){let n=i.path.split("/");if(n.length>t.length||i.pathMatch==="full"&&(e.hasChildren()||n.length<t.length))return null;let r={};for(let o=0;o<n.length;o++){let a=n[o],c=t[o];if(a.startsWith(":"))r[a.substring(1)]=c;else if(a!==c.path)return null}return{consumed:t.slice(0,n.length),posParams:r}}function Q2(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(!Qi(t[i],e[i]))return!1;return!0}function Qi(t,e){let i=t?z_(t):void 0,n=e?z_(e):void 0;if(!i||!n||i.length!=n.length)return!1;let r;for(let o=0;o<i.length;o++)if(r=i[o],!xE(t[r],e[r]))return!1;return!0}function z_(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function xE(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;let i=[...t].sort(),n=[...e].sort();return i.every((r,o)=>n[o]===r)}else return t===e}function IE(t){return t.length>0?t[t.length-1]:null}function Jr(t){return Vf(t)?t:Po(t)?Je(Promise.resolve(t)):te(t)}var J2={exact:AE,subset:PE},OE={exact:K2,subset:X2,ignored:()=>!0};function wE(t,e,i){return J2[i.paths](t.root,e.root,i.matrixParams)&&OE[i.queryParams](t.queryParams,e.queryParams)&&!(i.fragment==="exact"&&t.fragment!==e.fragment)}function K2(t,e){return Qi(t,e)}function AE(t,e,i){if(!Qo(t.segments,e.segments)||!Sh(t.segments,e.segments,i)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!AE(t.children[n],e.children[n],i))return!1;return!0}function X2(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>xE(t[i],e[i]))}function PE(t,e,i){return NE(t,e,e.segments,i)}function NE(t,e,i,n){if(t.segments.length>i.length){let r=t.segments.slice(0,i.length);return!(!Qo(r,i)||e.hasChildren()||!Sh(r,i,n))}else if(t.segments.length===i.length){if(!Qo(t.segments,i)||!Sh(t.segments,i,n))return!1;for(let r in e.children)if(!t.children[r]||!PE(t.children[r],e.children[r],n))return!1;return!0}else{let r=i.slice(0,t.segments.length),o=i.slice(t.segments.length);return!Qo(t.segments,r)||!Sh(t.segments,r,n)||!t.children[xe]?!1:NE(t.children[xe],e,o,n)}}function Sh(t,e,i){return e.every((n,r)=>OE[i](t[r].parameters,n.parameters))}var qr=class{constructor(e=new Ye([],{}),i={},n=null){this.root=e,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap??=pa(this.queryParams),this._queryParamMap}toString(){return nB.serialize(this)}},Ye=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Mh(this)}},Yo=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=pa(this.parameters),this._parameterMap}toString(){return kE(this)}};function eB(t,e){return Qo(t,e)&&t.every((i,n)=>Qi(i.parameters,e[n].parameters))}function Qo(t,e){return t.length!==e.length?!1:t.every((i,n)=>i.path===e[n].path)}function tB(t,e){let i=[];return Object.entries(t.children).forEach(([n,r])=>{n===xe&&(i=i.concat(e(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==xe&&(i=i.concat(e(r,n)))}),i}var uc=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:()=>new ec,providedIn:"root"});let t=e;return t})(),ec=class{parse(e){let i=new W_(e);return new qr(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${ql(e.root,!0)}`,n=oB(e.queryParams),r=typeof e.fragment=="string"?`#${iB(e.fragment)}`:"";return`${i}${n}${r}`}},nB=new ec;function Mh(t){return t.segments.map(e=>kE(e)).join("/")}function ql(t,e){if(!t.hasChildren())return Mh(t);if(e){let i=t.children[xe]?ql(t.children[xe],!1):"",n=[];return Object.entries(t.children).forEach(([r,o])=>{r!==xe&&n.push(`${r}:${ql(o,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}else{let i=tB(t,(n,r)=>r===xe?[ql(t.children[xe],!1)]:[`${r}:${ql(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[xe]!=null?`${Mh(t)}/${i[0]}`:`${Mh(t)}/(${i.join("//")})`}}function RE(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Eh(t){return RE(t).replace(/%3B/gi,";")}function iB(t){return encodeURI(t)}function G_(t){return RE(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xh(t){return decodeURIComponent(t)}function bE(t){return xh(t.replace(/\+/g,"%20"))}function kE(t){return`${G_(t.path)}${rB(t.parameters)}`}function rB(t){return Object.entries(t).map(([e,i])=>`;${G_(e)}=${G_(i)}`).join("")}function oB(t){let e=Object.entries(t).map(([i,n])=>Array.isArray(n)?n.map(r=>`${Eh(i)}=${Eh(r)}`).join("&"):`${Eh(i)}=${Eh(n)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var sB=/^[^\/()?;#]+/;function V_(t){let e=t.match(sB);return e?e[0]:""}var aB=/^[^\/()?;=#]+/;function lB(t){let e=t.match(aB);return e?e[0]:""}var cB=/^[^=?&#]+/;function uB(t){let e=t.match(cB);return e?e[0]:""}var dB=/^[^&#]+/;function hB(t){let e=t.match(dB);return e?e[0]:""}var W_=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ye([],{}):new Ye([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(n[xe]=new Ye(e,i)),n}parseSegment(){let e=V_(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new ne(4009,!1);return this.capture(e),new Yo(xh(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=lB(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let r=V_(this.remaining);r&&(n=r,this.capture(n))}e[xh(i)]=xh(n)}parseQueryParam(e){let i=uB(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let a=hB(this.remaining);a&&(n=a,this.capture(n))}let r=bE(i),o=bE(n);if(e.hasOwnProperty(r)){let a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=V_(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new ne(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=xe);let a=this.parseChildren();i[o]=Object.keys(a).length===1?a[xe]:new Ye([],a),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new ne(4011,!1)}};function FE(t){return t.segments.length>0?new Ye([],{[xe]:t}):t}function LE(t){let e={};for(let[n,r]of Object.entries(t.children)){let o=LE(r);if(n===xe&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))e[a]=c;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let i=new Ye(t.segments,e);return fB(i)}function fB(t){if(t.numberOfChildren===1&&t.children[xe]){let e=t.children[xe];return new Ye(t.segments.concat(e.segments),e.children)}return t}function ma(t){return t instanceof qr}function pB(t,e,i=null,n=null){let r=BE(t);return VE(r,e,i,n)}function BE(t){let e;function i(o){let a={};for(let d of o.children){let f=i(d);a[d.outlet]=f}let c=new Ye(o.url,a);return o===t&&(e=c),c}let n=i(t.root),r=FE(n);return e??r}function VE(t,e,i,n){let r=t;for(;r.parent;)r=r.parent;if(e.length===0)return j_(r,r,r,i,n);let o=mB(e);if(o.toRoot())return j_(r,r,new Ye([],{}),i,n);let a=gB(o,r,t),c=a.processChildren?Jl(a.segmentGroup,a.index,o.commands):$E(a.segmentGroup,a.index,o.commands);return j_(r,a.segmentGroup,c,i,n)}function Ih(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function tc(t){return typeof t=="object"&&t!=null&&t.outlets}function j_(t,e,i,n,r){let o={};n&&Object.entries(n).forEach(([d,f])=>{o[d]=Array.isArray(f)?f.map(m=>`${m}`):`${f}`});let a;t===e?a=i:a=jE(t,e,i);let c=FE(LE(a));return new qr(c,o,r)}function jE(t,e,i){let n={};return Object.entries(t.children).forEach(([r,o])=>{o===e?n[r]=i:n[r]=jE(o,e,i)}),new Ye(t.segments,n)}var Oh=class{constructor(e,i,n){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&Ih(n[0]))throw new ne(4003,!1);let r=n.find(tc);if(r&&r!==IE(n))throw new ne(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function mB(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Oh(!0,0,t);let e=0,i=!1,n=t.reduce((r,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([d,f])=>{c[d]=typeof f=="string"?f.split("/"):f}),[...r,{outlets:c}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:a===0?(o.split("/").forEach((c,d)=>{d==0&&c==="."||(d==0&&c===""?i=!0:c===".."?e++:c!=""&&r.push(c))}),r):[...r,o]},[]);return new Oh(i,e,n)}var ha=class{constructor(e,i,n){this.segmentGroup=e,this.processChildren=i,this.index=n}};function gB(t,e,i){if(t.isAbsolute)return new ha(e,!0,0);if(!i)return new ha(e,!1,NaN);if(i.parent===null)return new ha(i,!0,0);let n=Ih(t.commands[0])?0:1,r=i.segments.length-1+n;return _B(i,r,t.numberOfDoubleDots)}function _B(t,e,i){let n=t,r=e,o=i;for(;o>r;){if(o-=r,n=n.parent,!n)throw new ne(4005,!1);r=n.segments.length}return new ha(n,!1,r-o)}function vB(t){return tc(t[0])?t[0].outlets:{[xe]:t}}function $E(t,e,i){if(t??=new Ye([],{}),t.segments.length===0&&t.hasChildren())return Jl(t,e,i);let n=yB(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new Ye(t.segments.slice(0,n.pathIndex),{});return o.children[xe]=new Ye(t.segments.slice(n.pathIndex),t.children),Jl(o,0,r)}else return n.match&&r.length===0?new Ye(t.segments,{}):n.match&&!t.hasChildren()?Z_(t,e,i):n.match?Jl(t,0,r):Z_(t,e,i)}function Jl(t,e,i){if(i.length===0)return new Ye(t.segments,{});{let n=vB(i),r={};if(Object.keys(n).some(o=>o!==xe)&&t.children[xe]&&t.numberOfChildren===1&&t.children[xe].segments.length===0){let o=Jl(t.children[xe],e,i);return new Ye(t.segments,o.children)}return Object.entries(n).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[o]=$E(t.children[o],e,a))}),Object.entries(t.children).forEach(([o,a])=>{n[o]===void 0&&(r[o]=a)}),new Ye(t.segments,r)}}function yB(t,e,i){let n=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(n>=i.length)return o;let a=t.segments[r],c=i[n];if(tc(c))break;let d=`${c}`,f=n<i.length-1?i[n+1]:null;if(r>0&&d===void 0)break;if(d&&f&&typeof f=="object"&&f.outlets===void 0){if(!CE(d,f,a))return o;n+=2}else{if(!CE(d,{},a))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function Z_(t,e,i){let n=t.segments.slice(0,e),r=0;for(;r<i.length;){let o=i[r];if(tc(o)){let d=wB(o.outlets);return new Ye(n,d)}if(r===0&&Ih(i[0])){let d=t.segments[e];n.push(new Yo(d.path,DE(i[0]))),r++;continue}let a=tc(o)?o.outlets[xe]:`${o}`,c=r<i.length-1?i[r+1]:null;a&&c&&Ih(c)?(n.push(new Yo(a,DE(c))),r+=2):(n.push(new Yo(a,{})),r++)}return new Ye(n,{})}function wB(t){let e={};return Object.entries(t).forEach(([i,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(e[i]=Z_(new Ye([],{}),0,n))}),e}function DE(t){let e={};return Object.entries(t).forEach(([i,n])=>e[i]=`${n}`),e}function CE(t,e,i){return t==i.path&&Qi(e,i.parameters)}var Kl="imperative",en=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(en||{}),ii=class{constructor(e,i){this.id=e,this.url=i}},ga=class extends ii{constructor(e,i,n="imperative",r=null){super(e,i),this.type=en.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Di=class extends ii{constructor(e,i,n){super(e,i),this.urlAfterRedirects=n,this.type=en.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ni=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(ni||{}),Ah=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Ah||{}),Yr=class extends ii{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=en.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Qr=class extends ii{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=en.NavigationSkipped}},nc=class extends ii{constructor(e,i,n,r){super(e,i),this.error=n,this.target=r,this.type=en.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ph=class extends ii{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=en.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},q_=class extends ii{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=en.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Y_=class extends ii{constructor(e,i,n,r,o){super(e,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=en.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Q_=class extends ii{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=en.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},J_=class extends ii{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=en.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},K_=class{constructor(e){this.route=e,this.type=en.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},X_=class{constructor(e){this.route=e,this.type=en.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ev=class{constructor(e){this.snapshot=e,this.type=en.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},tv=class{constructor(e){this.snapshot=e,this.type=en.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nv=class{constructor(e){this.snapshot=e,this.type=en.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},iv=class{constructor(e){this.snapshot=e,this.type=en.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Nh=class{constructor(e,i,n){this.routerEvent=e,this.position=i,this.anchor=n,this.type=en.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},ic=class{},rc=class{constructor(e){this.url=e}};var rv=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new dc,this.attachRef=null}},dc=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new rv,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Rh=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=ov(e,this._root);return i?i.children.map(n=>n.value):[]}firstChild(e){let i=ov(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=sv(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return sv(e,this._root).map(i=>i.value)}};function ov(t,e){if(t===e.value)return e;for(let i of e.children){let n=ov(t,i);if(n)return n}return null}function sv(t,e){if(t===e.value)return[e];for(let i of e.children){let n=sv(t,i);if(n.length)return n.unshift(e),n}return[]}var Hn=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function da(t){let e={};return t&&t.children.forEach(i=>e[i.value.outlet]=i),e}var kh=class extends Rh{constructor(e,i){super(e),this.snapshot=i,gv(this,e)}toString(){return this.snapshot.toString()}};function UE(t){let e=bB(t),i=new qe([new Yo("",{})]),n=new qe({}),r=new qe({}),o=new qe({}),a=new qe(""),c=new Ji(i,n,o,a,r,xe,t,e.root);return c.snapshot=e.root,new kh(new Hn(c,[]),e)}function bB(t){let e={},i={},n={},r="",o=new oc([],e,n,r,i,xe,t,null,{});return new Fh("",new Hn(o,[]))}var Ji=class{constructor(e,i,n,r,o,a,c,d){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=d,this.title=this.dataSubject?.pipe(se(f=>f[cc]))??te(void 0),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(se(e=>pa(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(se(e=>pa(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function mv(t,e,i="emptyOnly"){let n,{routeConfig:r}=t;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:z(z({},e.params),t.params),data:z(z({},e.data),t.data),resolve:z(z(z(z({},t.data),e.data),r?.data),t._resolvedData)}:n={params:z({},t.params),data:z({},t.data),resolve:z(z({},t.data),t._resolvedData??{})},r&&zE(r)&&(n.resolve[cc]=r.title),n}var oc=class{get title(){return this.data?.[cc]}constructor(e,i,n,r,o,a,c,d,f){this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=c,this.routeConfig=d,this._resolve=f}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=pa(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=pa(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},Fh=class extends Rh{constructor(e,i){super(i),this.url=e,gv(this,i)}toString(){return HE(this._root)}};function gv(t,e){e.value._routerState=t,e.children.forEach(i=>gv(t,i))}function HE(t){let e=t.children.length>0?` { ${t.children.map(HE).join(", ")} } `:"";return`${t.value}${e}`}function $_(t){if(t.snapshot){let e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,Qi(e.queryParams,i.queryParams)||t.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&t.fragmentSubject.next(i.fragment),Qi(e.params,i.params)||t.paramsSubject.next(i.params),Q2(e.url,i.url)||t.urlSubject.next(i.url),Qi(e.data,i.data)||t.dataSubject.next(i.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function av(t,e){let i=Qi(t.params,e.params)&&eB(t.url,e.url),n=!t.parent!=!e.parent;return i&&!n&&(!t.parent||av(t.parent,e.parent))}function zE(t){return typeof t.title=="string"||t.title===null}var DB=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=xe,this.activateEvents=new ve,this.deactivateEvents=new ve,this.attachEvents=new ve,this.detachEvents=new ve,this.parentContexts=D(dc),this.location=D(pi),this.changeDetector=D(Tn),this.environmentInjector=D(Qt),this.inputBinder=D($h,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ne(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ne(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ne(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new ne(4013,!1);this._activatedRoute=n;let o=this.location,c=n.snapshot.component,d=this.parentContexts.getOrCreateContext(this.name).children,f=new lv(n,d,o.injector);this.activated=o.createComponent(c,{index:o.length,injector:f,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=fe({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[dt]});let t=e;return t})(),lv=class{constructor(e,i,n){this.route=e,this.childContexts=i,this.parent=n}get(e,i){return e===Ji?this.route:e===dc?this.childContexts:this.parent.get(e,i)}},$h=new le(""),EE=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:r}=n,o=Ii([r.queryParams,r.params,r.data]).pipe(It(([a,c,d],f)=>(d=z(z(z({},a),c),d),f===0?te(d):Promise.resolve(d)))).subscribe(a=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let c=oD(r.component);if(!c){this.unsubscribeFromRouteData(n);return}for(let{templateName:d}of c.inputs)n.activatedComponentRef.setInput(d,a[d])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})();function CB(t,e,i){let n=sc(t,e._root,i?i._root:void 0);return new kh(n,e)}function sc(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){let n=i.value;n._futureSnapshot=e.value;let r=EB(t,e,i);return new Hn(n,r)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=e.value,a.children=e.children.map(c=>sc(t,c)),a}}let n=TB(e.value),r=e.children.map(o=>sc(t,o));return new Hn(n,r)}}function EB(t,e,i){return e.children.map(n=>{for(let r of i.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return sc(t,n,r);return sc(t,n)})}function TB(t){return new Ji(new qe(t.url),new qe(t.params),new qe(t.queryParams),new qe(t.fragment),new qe(t.data),t.outlet,t.component,t)}var GE="ngNavigationCancelingError";function WE(t,e){let{redirectTo:i,navigationBehaviorOptions:n}=ma(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=ZE(!1,ni.Redirect);return r.url=i,r.navigationBehaviorOptions=n,r}function ZE(t,e){let i=new Error(`NavigationCancelingError: ${t||""}`);return i[GE]=!0,i.cancellationCode=e,i}function SB(t){return qE(t)&&ma(t.url)}function qE(t){return!!t&&t[GE]}var MB=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=bt({type:e,selectors:[["ng-component"]],standalone:!0,features:[xn],decls:1,vars:0,template:function(r,o){r&1&&Ce(0,"router-outlet")},dependencies:[DB],encapsulation:2});let t=e;return t})();function xB(t,e){return t.providers&&!t._injector&&(t._injector=wd(t.providers,e,`Route: ${t.path}`)),t._injector??e}function _v(t){let e=t.children&&t.children.map(_v),i=e?je(z({},t),{children:e}):z({},t);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==xe&&(i.component=MB),i}function Ki(t){return t.outlet||xe}function IB(t,e){let i=t.filter(n=>Ki(n)===e);return i.push(...t.filter(n=>Ki(n)!==e)),i}function hc(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var OB=(t,e,i,n)=>se(r=>(new cv(e,r.targetRouterState,r.currentRouterState,i,n).activate(t),r)),cv=class{constructor(e,i,n,r,o){this.routeReuseStrategy=e,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(e){let i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,e),$_(this.futureState.root),this.activateChildRoutes(i,n,e)}deactivateChildRoutes(e,i,n){let r=da(i);e.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,r[a],n),delete r[a]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,i,n){let r=e.value,o=i?i.value:null;if(r===o)if(r.component){let a=n.getContext(r.outlet);a&&this.deactivateChildRoutes(e,i,a.children)}else this.deactivateChildRoutes(e,i,n);else o&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,o=da(e);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);if(n&&n.outlet){let a=n.outlet.detach(),c=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:a,route:e,contexts:c})}}deactivateRouteAndOutlet(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,o=da(e);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,i,n){let r=da(i);e.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new iv(o.value.snapshot))}),e.children.length&&this.forwardEvent(new tv(e.value.snapshot))}activateRoutes(e,i,n){let r=e.value,o=i?i.value:null;if($_(r),r===o)if(r.component){let a=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,a.children)}else this.activateChildRoutes(e,i,n);else if(r.component){let a=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let c=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),$_(c.route.value),this.activateChildRoutes(e,null,a.children)}else{let c=hc(r.snapshot);a.attachRef=null,a.route=r,a.injector=c,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}},Lh=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},fa=class{constructor(e,i){this.component=e,this.route=i}};function AB(t,e,i){let n=t._root,r=e?e._root:null;return Yl(n,r,i,[n.value])}function PB(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function va(t,e){let i=Symbol(),n=e.get(t,i);return n===i?typeof t=="function"&&!g1(t)?t:e.get(t):n}function Yl(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=da(e);return t.children.forEach(a=>{NB(a,o[a.value.outlet],i,n.concat([a.value]),r),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,c])=>Xl(c,i.getContext(a),r)),r}function NB(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=e?e.value:null,c=i?i.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let d=RB(a,o,o.routeConfig.runGuardsAndResolvers);d?r.canActivateChecks.push(new Lh(n)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Yl(t,e,c?c.children:null,n,r):Yl(t,e,i,n,r),d&&c&&c.outlet&&c.outlet.isActivated&&r.canDeactivateChecks.push(new fa(c.outlet.component,a))}else a&&Xl(e,c,r),r.canActivateChecks.push(new Lh(n)),o.component?Yl(t,null,c?c.children:null,n,r):Yl(t,null,i,n,r);return r}function RB(t,e,i){if(typeof i=="function")return i(t,e);switch(i){case"pathParamsChange":return!Qo(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Qo(t.url,e.url)||!Qi(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!av(t,e)||!Qi(t.queryParams,e.queryParams);case"paramsChange":default:return!av(t,e)}}function Xl(t,e,i){let n=da(t),r=t.value;Object.entries(n).forEach(([o,a])=>{r.component?e?Xl(a,e.children.getContext(o),i):Xl(a,null,i):Xl(a,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new fa(e.outlet.component,r)):i.canDeactivateChecks.push(new fa(null,r)):i.canDeactivateChecks.push(new fa(null,r))}function fc(t){return typeof t=="function"}function kB(t){return typeof t=="boolean"}function FB(t){return t&&fc(t.canLoad)}function LB(t){return t&&fc(t.canActivate)}function BB(t){return t&&fc(t.canActivateChild)}function VB(t){return t&&fc(t.canDeactivate)}function jB(t){return t&&fc(t.canMatch)}function YE(t){return t instanceof ci||t?.name==="EmptyError"}var Th=Symbol("INITIAL_VALUE");function _a(){return It(t=>Ii(t.map(e=>e.pipe(ut(1),Ts(Th)))).pipe(se(e=>{for(let i of e)if(i!==!0){if(i===Th)return Th;if(i===!1||i instanceof qr)return i}return!0}),ot(e=>e!==Th),ut(1)))}function $B(t,e){return rt(i=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=i;return a.length===0&&o.length===0?te(je(z({},i),{guardsResult:!0})):UB(a,n,r,t).pipe(rt(c=>c&&kB(c)?HB(n,o,t,e):te(c)),se(c=>je(z({},i),{guardsResult:c})))})}function UB(t,e,i,n){return Je(t).pipe(rt(r=>qB(r.component,r.route,i,e,n)),Ni(r=>r!==!0,!0))}function HB(t,e,i,n){return Je(e).pipe(or(r=>Ai(GB(r.route.parent,n),zB(r.route,n),ZB(t,r.path,i),WB(t,r.route,i))),Ni(r=>r!==!0,!0))}function zB(t,e){return t!==null&&e&&e(new nv(t)),te(!0)}function GB(t,e){return t!==null&&e&&e(new ev(t)),te(!0)}function WB(t,e,i){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return te(!0);let r=n.map(o=>hu(()=>{let a=hc(e)??i,c=va(o,a),d=LB(c)?c.canActivate(e,t):zi(a,()=>c(e,t));return Jr(d).pipe(Ni())}));return te(r).pipe(_a())}function ZB(t,e,i){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(a=>PB(a)).filter(a=>a!==null).map(a=>hu(()=>{let c=a.guards.map(d=>{let f=hc(a.node)??i,m=va(d,f),v=BB(m)?m.canActivateChild(n,t):zi(f,()=>m(n,t));return Jr(v).pipe(Ni())});return te(c).pipe(_a())}));return te(o).pipe(_a())}function qB(t,e,i,n,r){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return te(!0);let a=o.map(c=>{let d=hc(e)??r,f=va(c,d),m=VB(f)?f.canDeactivate(t,e,i,n):zi(d,()=>f(t,e,i,n));return Jr(m).pipe(Ni())});return te(a).pipe(_a())}function YB(t,e,i,n){let r=e.canLoad;if(r===void 0||r.length===0)return te(!0);let o=r.map(a=>{let c=va(a,t),d=FB(c)?c.canLoad(e,i):zi(t,()=>c(e,i));return Jr(d)});return te(o).pipe(_a(),QE(n))}function QE(t){return Rf(yt(e=>{if(ma(e))throw WE(t,e)}),se(e=>e===!0))}function QB(t,e,i,n){let r=e.canMatch;if(!r||r.length===0)return te(!0);let o=r.map(a=>{let c=va(a,t),d=jB(c)?c.canMatch(e,i):zi(t,()=>c(e,i));return Jr(d)});return te(o).pipe(_a(),QE(n))}var ac=class{constructor(e){this.segmentGroup=e||null}},Bh=class extends Error{constructor(e){super(),this.urlTree=e}};function ua(t){return ws(new ac(t))}function JB(t){return ws(new ne(4e3,!1))}function KB(t){return ws(ZE(!1,ni.GuardRejected))}var uv=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return te(n);if(r.numberOfChildren>1||!r.children[xe])return JB(e.redirectTo);r=r.children[xe]}}applyRedirectCommands(e,i,n){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,n);if(i.startsWith("/"))throw new Bh(r);return r}applyRedirectCreateUrlTree(e,i,n,r){let o=this.createSegmentGroup(e,i.root,n,r);return new qr(o,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let n={};return Object.entries(e).forEach(([r,o])=>{if(typeof o=="string"&&o.startsWith(":")){let c=o.substring(1);n[r]=i[c]}else n[r]=o}),n}createSegmentGroup(e,i,n,r){let o=this.createSegments(e,i.segments,n,r),a={};return Object.entries(i.children).forEach(([c,d])=>{a[c]=this.createSegmentGroup(e,d,n,r)}),new Ye(o,a)}createSegments(e,i,n,r){return i.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,r):this.findOrReturn(o,n))}findPosParam(e,i,n){let r=n[i.path.substring(1)];if(!r)throw new ne(4001,!1);return r}findOrReturn(e,i){let n=0;for(let r of i){if(r.path===e.path)return i.splice(n),r;n++}return e}},dv={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function XB(t,e,i,n,r){let o=vv(t,e,i);return o.matched?(n=xB(e,n),QB(n,e,i,r).pipe(se(a=>a===!0?o:z({},dv)))):te(o)}function vv(t,e,i){if(e.path==="**")return eV(i);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||i.length>0)?z({},dv):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||Y2)(i,t,e);if(!r)return z({},dv);let o={};Object.entries(r.posParams??{}).forEach(([c,d])=>{o[c]=d.path});let a=r.consumed.length>0?z(z({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function eV(t){return{matched:!0,parameters:t.length>0?IE(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function TE(t,e,i,n){return i.length>0&&iV(t,i,n)?{segmentGroup:new Ye(e,nV(n,new Ye(i,t.children))),slicedSegments:[]}:i.length===0&&rV(t,i,n)?{segmentGroup:new Ye(t.segments,tV(t,i,n,t.children)),slicedSegments:i}:{segmentGroup:new Ye(t.segments,t.children),slicedSegments:i}}function tV(t,e,i,n){let r={};for(let o of i)if(Uh(t,e,o)&&!n[Ki(o)]){let a=new Ye([],{});r[Ki(o)]=a}return z(z({},n),r)}function nV(t,e){let i={};i[xe]=e;for(let n of t)if(n.path===""&&Ki(n)!==xe){let r=new Ye([],{});i[Ki(n)]=r}return i}function iV(t,e,i){return i.some(n=>Uh(t,e,n)&&Ki(n)!==xe)}function rV(t,e,i){return i.some(n=>Uh(t,e,n))}function Uh(t,e,i){return(t.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function oV(t,e,i,n){return Ki(t)!==n&&(n===xe||!Uh(e,i,t))?!1:vv(e,t,i).matched}function sV(t,e,i){return e.length===0&&!t.children[i]}var hv=class{};function aV(t,e,i,n,r,o,a="emptyOnly"){return new fv(t,e,i,n,r,a,o).recognize()}var lV=31,fv=class{constructor(e,i,n,r,o,a,c){this.injector=e,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.applyRedirects=new uv(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new ne(4002,`'${e.segmentGroup}'`)}recognize(){let e=TE(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(se(i=>{let n=new oc([],Object.freeze({}),Object.freeze(z({},this.urlTree.queryParams)),this.urlTree.fragment,{},xe,this.rootComponentType,null,{}),r=new Hn(n,i),o=new Fh("",r),a=pB(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(o._root,null),{state:o,tree:a}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,xe).pipe(Pi(n=>{if(n instanceof Bh)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ac?this.noMatchError(n):n}))}inheritParamsAndData(e,i){let n=e.value,r=mv(n,i,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(e,i,n,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,i,n):this.processSegment(e,i,n,n.segments,r,!0).pipe(se(o=>o instanceof Hn?[o]:[]))}processChildren(e,i,n){let r=[];for(let o of Object.keys(n.children))o==="primary"?r.unshift(o):r.push(o);return Je(r).pipe(or(o=>{let a=n.children[o],c=IB(i,o);return this.processSegmentGroup(e,c,a,o)}),qf((o,a)=>(o.push(...a),o)),xr(null),Zf(),rt(o=>{if(o===null)return ua(n);let a=JE(o);return cV(a),te(a)}))}processSegment(e,i,n,r,o,a){return Je(i).pipe(or(c=>this.processSegmentAgainstRoute(c._injector??e,i,c,n,r,o,a).pipe(Pi(d=>{if(d instanceof ac)return te(null);throw d}))),Ni(c=>!!c),Pi(c=>{if(YE(c))return sV(n,r,o)?te(new hv):ua(n);throw c}))}processSegmentAgainstRoute(e,i,n,r,o,a,c){return oV(n,r,o,a)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,n,o,a):this.allowRedirects&&c?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,n,o,a):ua(r):ua(r)}expandSegmentAgainstRouteUsingRedirect(e,i,n,r,o,a){let{matched:c,consumedSegments:d,positionalParamSegments:f,remainingSegments:m}=vv(i,r,o);if(!c)return ua(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>lV&&(this.allowRedirects=!1));let v=this.applyRedirects.applyRedirectCommands(d,r.redirectTo,f);return this.applyRedirects.lineralizeSegments(r,v).pipe(rt(y=>this.processSegment(e,n,i,y.concat(m),a,!1)))}matchSegmentAgainstRoute(e,i,n,r,o){let a=XB(i,n,r,e,this.urlSerializer);return n.path==="**"&&(i.children={}),a.pipe(It(c=>c.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe(It(({routes:d})=>{let f=n._loadedInjector??e,{consumedSegments:m,remainingSegments:v,parameters:y}=c,g=new oc(m,y,Object.freeze(z({},this.urlTree.queryParams)),this.urlTree.fragment,dV(n),Ki(n),n.component??n._loadedComponent??null,n,hV(n)),{segmentGroup:b,slicedSegments:S}=TE(i,m,v,d);if(S.length===0&&b.hasChildren())return this.processChildren(f,d,b).pipe(se(M=>M===null?null:new Hn(g,M)));if(d.length===0&&S.length===0)return te(new Hn(g,[]));let E=Ki(n)===o;return this.processSegment(f,d,b,S,E?xe:o,!0).pipe(se(M=>new Hn(g,M instanceof Hn?[M]:[])))}))):ua(i)))}getChildConfig(e,i,n){return i.children?te({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?te({routes:i._loadedRoutes,injector:i._loadedInjector}):YB(e,i,n,this.urlSerializer).pipe(rt(r=>r?this.configLoader.loadChildren(e,i).pipe(yt(o=>{i._loadedRoutes=o.routes,i._loadedInjector=o.injector})):KB(i))):te({routes:[],injector:e})}};function cV(t){t.sort((e,i)=>e.value.outlet===xe?-1:i.value.outlet===xe?1:e.value.outlet.localeCompare(i.value.outlet))}function uV(t){let e=t.value.routeConfig;return e&&e.path===""}function JE(t){let e=[],i=new Set;for(let n of t){if(!uV(n)){e.push(n);continue}let r=e.find(o=>n.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...n.children),i.add(r)):e.push(n)}for(let n of i){let r=JE(n.children);e.push(new Hn(n.value,r))}return e.filter(n=>!i.has(n))}function dV(t){return t.data||{}}function hV(t){return t.resolve||{}}function fV(t,e,i,n,r,o){return rt(a=>aV(t,e,i,n,a.extractedUrl,r,o).pipe(se(({state:c,tree:d})=>je(z({},a),{targetSnapshot:c,urlAfterRedirects:d}))))}function pV(t,e){return rt(i=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return te(i);let o=new Set(r.map(d=>d.route)),a=new Set;for(let d of o)if(!a.has(d))for(let f of KE(d))a.add(f);let c=0;return Je(a).pipe(or(d=>o.has(d)?mV(d,n,t,e):(d.data=mv(d,d.parent,t).resolve,te(void 0))),yt(()=>c++),Es(1),rt(d=>c===a.size?te(i):qt))})}function KE(t){let e=t.children.map(i=>KE(i)).flat();return[t,...e]}function mV(t,e,i,n){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!zE(r)&&(o[cc]=r.title),gV(o,t,e,n).pipe(se(a=>(t._resolvedData=a,t.data=mv(t,t.parent,i).resolve,null)))}function gV(t,e,i,n){let r=z_(t);if(r.length===0)return te({});let o={};return Je(r).pipe(rt(a=>_V(t[a],e,i,n).pipe(Ni(),yt(c=>{o[a]=c}))),Es(1),za(o),Pi(a=>YE(a)?qt:ws(a)))}function _V(t,e,i,n){let r=hc(e)??n,o=va(t,r),a=o.resolve?o.resolve(e,i):zi(r,()=>o(e,i));return Jr(a)}function U_(t){return It(e=>{let i=t(e);return i?Je(i).pipe(se(()=>e)):te(e)})}var XE=(()=>{let e=class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(a=>a.outlet===xe);return r}getResolvedTitleForRoute(n){return n.data[cc]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:()=>D(vV),providedIn:"root"});let t=e;return t})(),vV=(()=>{let e=class e extends XE{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(re(jD))},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),pc=new le("",{providedIn:"root",factory:()=>({})}),lc=new le(""),yv=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=D(Ad)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return te(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Jr(n.loadComponent()).pipe(se(eT),yt(a=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a}),Ir(()=>{this.componentLoaders.delete(n)})),o=new fs(r,()=>new He).pipe(hs());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return te({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let a=yV(r,this.compiler,n,this.onLoadEndListener).pipe(Ir(()=>{this.childrenLoaders.delete(r)})),c=new fs(a,()=>new He).pipe(hs());return this.childrenLoaders.set(r,c),c}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function yV(t,e,i,n){return Jr(t.loadChildren()).pipe(se(eT),rt(r=>r instanceof al||Array.isArray(r)?te(r):Je(e.compileModuleAsync(r))),se(r=>{n&&n(t);let o,a,c=!1;return Array.isArray(r)?(a=r,c=!0):(o=r.create(i).injector,a=o.get(lc,[],{optional:!0,self:!0}).flat()),{routes:a.map(_v),injector:o}}))}function wV(t){return t&&typeof t=="object"&&"default"in t}function eT(t){return wV(t)?t.default:t}var wv=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:()=>D(bV),providedIn:"root"});let t=e;return t})(),bV=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),tT=new le(""),nT=new le("");function DV(t,e,i){let n=t.get(nT),r=t.get(tt);return t.get(Re).runOutsideAngular(()=>{if(!r.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,Promise.resolve();let o,a=new Promise(f=>{o=f}),c=r.startViewTransition(()=>(o(),CV(t))),{onViewTransitionCreated:d}=n;return d&&zi(t,()=>d({transition:c,from:e,to:i})),a})}function CV(t){return new Promise(e=>{ug(e,{injector:t})})}var bv=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new He,this.transitionAbortSubject=new He,this.configLoader=D(yv),this.environmentInjector=D(Qt),this.urlSerializer=D(uc),this.rootContexts=D(dc),this.location=D(jr),this.inputBindingEnabled=D($h,{optional:!0})!==null,this.titleStrategy=D(XE),this.options=D(pc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=D(wv),this.createViewTransition=D(tT,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>te(void 0),this.rootComponentType=null;let n=o=>this.events.next(new K_(o)),r=o=>this.events.next(new X_(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(je(z(z({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new qe({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Kl,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ot(a=>a.id!==0),se(a=>je(z({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),It(a=>{this.currentTransition=a;let c=!1,d=!1;return te(a).pipe(yt(f=>{this.currentNavigation={id:f.id,initialUrl:f.rawUrl,extractedUrl:f.extractedUrl,trigger:f.source,extras:f.extras,previousNavigation:this.lastSuccessfulNavigation?je(z({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),It(f=>{let m=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=f.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!m&&v!=="reload"){let y="";return this.events.next(new Qr(f.id,this.urlSerializer.serialize(f.rawUrl),y,Ah.IgnoredSameUrlNavigation)),f.resolve(null),qt}if(this.urlHandlingStrategy.shouldProcessUrl(f.rawUrl))return te(f).pipe(It(y=>{let g=this.transitions?.getValue();return this.events.next(new ga(y.id,this.urlSerializer.serialize(y.extractedUrl),y.source,y.restoredState)),g!==this.transitions?.getValue()?qt:Promise.resolve(y)}),fV(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),yt(y=>{a.targetSnapshot=y.targetSnapshot,a.urlAfterRedirects=y.urlAfterRedirects,this.currentNavigation=je(z({},this.currentNavigation),{finalUrl:y.urlAfterRedirects});let g=new Ph(y.id,this.urlSerializer.serialize(y.extractedUrl),this.urlSerializer.serialize(y.urlAfterRedirects),y.targetSnapshot);this.events.next(g)}));if(m&&this.urlHandlingStrategy.shouldProcessUrl(f.currentRawUrl)){let{id:y,extractedUrl:g,source:b,restoredState:S,extras:E}=f,M=new ga(y,this.urlSerializer.serialize(g),b,S);this.events.next(M);let V=UE(this.rootComponentType).snapshot;return this.currentTransition=a=je(z({},f),{targetSnapshot:V,urlAfterRedirects:g,extras:je(z({},E),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=g,te(a)}else{let y="";return this.events.next(new Qr(f.id,this.urlSerializer.serialize(f.extractedUrl),y,Ah.IgnoredByUrlHandlingStrategy)),f.resolve(null),qt}}),yt(f=>{let m=new q_(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(m)}),se(f=>(this.currentTransition=a=je(z({},f),{guards:AB(f.targetSnapshot,f.currentSnapshot,this.rootContexts)}),a)),$B(this.environmentInjector,f=>this.events.next(f)),yt(f=>{if(a.guardsResult=f.guardsResult,ma(f.guardsResult))throw WE(this.urlSerializer,f.guardsResult);let m=new Y_(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot,!!f.guardsResult);this.events.next(m)}),ot(f=>f.guardsResult?!0:(this.cancelNavigationTransition(f,"",ni.GuardRejected),!1)),U_(f=>{if(f.guards.canActivateChecks.length)return te(f).pipe(yt(m=>{let v=new Q_(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(v)}),It(m=>{let v=!1;return te(m).pipe(pV(this.paramsInheritanceStrategy,this.environmentInjector),yt({next:()=>v=!0,complete:()=>{v||this.cancelNavigationTransition(m,"",ni.NoDataFromResolver)}}))}),yt(m=>{let v=new J_(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(v)}))}),U_(f=>{let m=v=>{let y=[];v.routeConfig?.loadComponent&&!v.routeConfig._loadedComponent&&y.push(this.configLoader.loadComponent(v.routeConfig).pipe(yt(g=>{v.component=g}),se(()=>{})));for(let g of v.children)y.push(...m(g));return y};return Ii(m(f.targetSnapshot.root)).pipe(xr(null),ut(1))}),U_(()=>this.afterPreactivation()),It(()=>{let{currentSnapshot:f,targetSnapshot:m}=a,v=this.createViewTransition?.(this.environmentInjector,f.root,m.root);return v?Je(v).pipe(se(()=>a)):te(a)}),se(f=>{let m=CB(n.routeReuseStrategy,f.targetSnapshot,f.currentRouterState);return this.currentTransition=a=je(z({},f),{targetRouterState:m}),this.currentNavigation.targetRouterState=m,a}),yt(()=>{this.events.next(new ic)}),OB(this.rootContexts,n.routeReuseStrategy,f=>this.events.next(f),this.inputBindingEnabled),ut(1),yt({next:f=>{c=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Di(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects))),this.titleStrategy?.updateTitle(f.targetRouterState.snapshot),f.resolve(!0)},complete:()=>{c=!0}}),pt(this.transitionAbortSubject.pipe(yt(f=>{throw f}))),Ir(()=>{!c&&!d&&this.cancelNavigationTransition(a,"",ni.SupersededByNewNavigation),this.currentNavigation?.id===a.id&&(this.currentNavigation=null)}),Pi(f=>{if(d=!0,qE(f))this.events.next(new Yr(a.id,this.urlSerializer.serialize(a.extractedUrl),f.message,f.cancellationCode)),SB(f)?this.events.next(new rc(f.url)):a.resolve(!1);else{this.events.next(new nc(a.id,this.urlSerializer.serialize(a.extractedUrl),f,a.targetSnapshot??void 0));try{a.resolve(n.errorHandler(f))}catch(m){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(m)}}return qt}))}))}cancelNavigationTransition(n,r,o){let a=new Yr(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(a),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function EV(t){return t!==Kl}var TV=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:()=>D(SV),providedIn:"root"});let t=e;return t})(),pv=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},SV=(()=>{let e=class e extends pv{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),iT=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:()=>D(MV),providedIn:"root"});let t=e;return t})(),MV=(()=>{let e=class e extends iT{constructor(){super(...arguments),this.location=D(jr),this.urlSerializer=D(uc),this.options=D(pc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=D(wv),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new qr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=UE(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof ga)this.stateMemento=this.createStateMemento();else if(n instanceof Qr)this.rawUrlTree=r.initialUrl;else if(n instanceof Ph){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(o,r)}}else n instanceof ic?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof Yr&&(n.code===ni.GuardRejected||n.code===ni.NoDataFromResolver)?this.restoreHistory(r):n instanceof nc?this.restoreHistory(r,!0):n instanceof Di&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let a=this.browserPageId,c=z(z({},r.extras.state),this.generateNgRouterState(r.id,a));this.location.replaceState(o,"",c)}else{let a=z(z({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",a)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,a=this.currentPageId-o;a!==0?this.location.historyGo(a):this.currentUrlTree===n.finalUrl&&a===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Pt(e)))(o||e)}})(),e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ql=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Ql||{});function rT(t,e){t.events.pipe(ot(i=>i instanceof Di||i instanceof Yr||i instanceof nc||i instanceof Qr),se(i=>i instanceof Di||i instanceof Qr?Ql.COMPLETE:(i instanceof Yr?i.code===ni.Redirect||i.code===ni.SupersededByNewNavigation:!1)?Ql.REDIRECTING:Ql.FAILED),ot(i=>i!==Ql.REDIRECTING),ut(1)).subscribe(()=>{e()})}function xV(t){throw t}var IV={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},OV={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Xi=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=D(Od),this.stateManager=D(iT),this.options=D(pc,{optional:!0})||{},this.pendingTasks=D(Oo),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=D(bv),this.urlSerializer=D(uc),this.location=D(jr),this.urlHandlingStrategy=D(wv),this._events=new He,this.errorHandler=this.options.errorHandler||xV,this.navigated=!1,this.routeReuseStrategy=D(TV),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=D(lc,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!D($h,{optional:!0}),this.eventsSubscription=new vt,this.isNgZoneEnabled=D(Re)instanceof Re&&Re.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(o!==null&&a!==null){if(this.stateManager.handleRouterEvent(r,a),r instanceof Yr&&r.code!==ni.Redirect&&r.code!==ni.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Di)this.navigated=!0;else if(r instanceof rc){let c=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),d={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||EV(o.source)};this.scheduleNavigation(c,Kl,null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}PV(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Kl,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let a={replaceUrl:!0},c=o?.navigationId?o:null;if(o){let f=z({},o);delete f.navigationId,delete f.\u0275routerPageId,Object.keys(f).length!==0&&(a.state=f)}let d=this.parseUrl(n);this.scheduleNavigation(d,r,c,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(_v),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:a,fragment:c,queryParamsHandling:d,preserveFragment:f}=r,m=f?this.currentUrlTree.fragment:c,v=null;switch(d){case"merge":v=z(z({},this.currentUrlTree.queryParams),a);break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=a||null}v!==null&&(v=this.removeEmptyProps(v));let y;try{let g=o?o.snapshot:this.routerState.snapshot.root;y=BE(g)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),y=this.currentUrlTree.root}return VE(y,n,v,m??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=ma(n)?n:this.parseUrl(n),a=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(a,Kl,null,r)}navigate(n,r={skipLocationChange:!1}){return AV(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=z({},IV):r===!1?o=z({},OV):o=r,ma(n))return wE(this.currentUrlTree,n,o);let a=this.parseUrl(n);return wE(this.currentUrlTree,a,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,a])=>(a!=null&&(r[o]=a),r),{})}scheduleNavigation(n,r,o,a,c){if(this.disposed)return Promise.resolve(!1);let d,f,m;c?(d=c.resolve,f=c.reject,m=c.promise):m=new Promise((y,g)=>{d=y,f=g});let v=this.pendingTasks.add();return rT(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(v))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:a,resolve:d,reject:f,promise:m,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),m.catch(y=>Promise.reject(y))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function AV(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new ne(4008,!1)}function PV(t){return!(t instanceof ic)&&!(t instanceof rc)}var Vh=(()=>{let e=class e{constructor(n,r,o,a,c,d){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=a,this.el=c,this.locationStrategy=d,this.href=null,this.commands=null,this.onChanges=new He,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let f=c.nativeElement.tagName?.toLowerCase();this.isAnchorElement=f==="a"||f==="area",this.isAnchorElement?this.subscription=n.events.subscribe(m=>{m instanceof Di&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,a,c){let d=this.urlTree;if(d===null||this.isAnchorElement&&(n!==0||r||o||a||c||typeof this.target=="string"&&this.target!="_self"))return!0;let f={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(d,f),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:Uw(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let o=this.renderer,a=this.el.nativeElement;r!==null?o.setAttribute(a,n,r):o.removeAttribute(a,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(r){return new(r||e)(q(Xi),q(Ji),Lr("tabindex"),q(Cn),q(Ne),q(gr))},e.\u0275dir=fe({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&ae("click",function(c){return o.onClick(c.button,c.ctrlKey,c.shiftKey,c.altKey,c.metaKey)}),r&2&&ht("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[st.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Ro],skipLocationChange:[st.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Ro],replaceUrl:[st.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Ro],routerLink:"routerLink"},standalone:!0,features:[fg,dt]});let t=e;return t})(),Bq=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,r,o,a,c){this.router=n,this.element=r,this.renderer=o,this.cdr=a,this.link=c,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ve,this.routerEventsSubscription=n.events.subscribe(d=>{d instanceof Di&&this.update()})}ngAfterContentInit(){te(this.links.changes,te(null)).pipe(Oi()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Je(n).pipe(Oi()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(n))})}isLinkActive(n){let r=NV(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let a=o.urlTree;return a?n.isActive(a,r):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(r){return new(r||e)(q(Xi),q(Ne),q(Cn),q(Tn),q(Vh,8))},e.\u0275dir=fe({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,a){if(r&1&&un(a,Vh,5),r&2){let c;at(c=lt())&&(o.links=c)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[dt]});let t=e;return t})();function NV(t){return!!t.paths}var jh=class{};var RV=(()=>{let e=class e{constructor(n,r,o,a,c){this.router=n,this.injector=o,this.preloadingStrategy=a,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe(ot(n=>n instanceof Di),or(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let o=[];for(let a of r){a.providers&&!a._injector&&(a._injector=wd(a.providers,n,`Route: ${a.path}`));let c=a._injector??n,d=a._loadedInjector??c;(a.loadChildren&&!a._loadedRoutes&&a.canLoad===void 0||a.loadComponent&&!a._loadedComponent)&&o.push(this.preloadConfig(c,a)),(a.children||a._loadedRoutes)&&o.push(this.processRoutes(d,a.children??a._loadedRoutes))}return Je(o).pipe(Oi())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(n,r):o=te(null);let a=o.pipe(rt(c=>c===null?te(void 0):(r._loadedRoutes=c.routes,r._loadedInjector=c.injector,this.processRoutes(c.injector??n,c.routes))));if(r.loadComponent&&!r._loadedComponent){let c=this.loader.loadComponent(r);return Je([a,c]).pipe(Oi())}else return a})}};e.\u0275fac=function(r){return new(r||e)(re(Xi),re(Ad),re(Qt),re(jh),re(yv))},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),oT=new le(""),kV=(()=>{let e=class e{constructor(n,r,o,a,c={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=a,this.options=c,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},c.scrollPositionRestoration||="disabled",c.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof ga?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Di?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Qr&&n.code===Ah.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Nh&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Nh(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(r){Kw()},e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})();function Vq(t,...e){return Us([{provide:lc,multi:!0,useValue:t},[],{provide:Ji,useFactory:sT,deps:[Xi]},{provide:Dl,multi:!0,useFactory:aT},e.map(i=>i.\u0275providers)])}function sT(t){return t.routerState.root}function mc(t,e){return{\u0275kind:t,\u0275providers:e}}function aT(){let t=D(cn);return e=>{let i=t.get(dr);if(e!==i.components[0])return;let n=t.get(Xi),r=t.get(lT);t.get(Dv)===1&&n.initialNavigation(),t.get(cT,null,Pe.Optional)?.setUpPreloading(),t.get(oT,null,Pe.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var lT=new le("",{factory:()=>new He}),Dv=new le("",{providedIn:"root",factory:()=>1});function FV(){return mc(2,[{provide:Dv,useValue:0},{provide:Pd,multi:!0,deps:[cn],useFactory:e=>{let i=e.get(fD,Promise.resolve());return()=>i.then(()=>new Promise(n=>{let r=e.get(Xi),o=e.get(lT);rT(r,()=>{n(!0)}),e.get(bv).afterPreactivation=()=>(n(!0),o.closed?te(void 0):o),r.initialNavigation()}))}}])}function LV(){return mc(3,[{provide:Pd,multi:!0,useFactory:()=>{let e=D(Xi);return()=>{e.setUpLocationChangeListener()}}},{provide:Dv,useValue:2}])}var cT=new le("");function BV(t){return mc(0,[{provide:cT,useExisting:RV},{provide:jh,useExisting:t}])}function VV(){return mc(8,[EE,{provide:$h,useExisting:EE}])}function jV(t){let e=[{provide:tT,useValue:DV},{provide:nT,useValue:z({skipNextTransition:!!t?.skipInitialTransition},t)}];return mc(9,e)}var SE=new le("ROUTER_FORROOT_GUARD"),$V=[jr,{provide:uc,useClass:ec},Xi,dc,{provide:Ji,useFactory:sT,deps:[Xi]},yv,[]],uT=(()=>{let e=class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[$V,[],{provide:lc,multi:!0,useValue:n},{provide:SE,useFactory:GV,deps:[[Xi,new sd,new Bm]]},{provide:pc,useValue:r||{}},r?.useHash?HV():zV(),UV(),r?.preloadingStrategy?BV(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?WV(r):[],r?.bindToComponentInputs?VV().\u0275providers:[],r?.enableViewTransitions?jV().\u0275providers:[],ZV()]}}static forChild(n){return{ngModule:e,providers:[{provide:lc,multi:!0,useValue:n}]}}};e.\u0275fac=function(r){return new(r||e)(re(SE,8))},e.\u0275mod=At({type:e}),e.\u0275inj=Ot({});let t=e;return t})();function UV(){return{provide:oT,useFactory:()=>{let t=D(CD),e=D(Re),i=D(pc),n=D(bv),r=D(uc);return i.scrollOffset&&t.setOffset(i.scrollOffset),new kV(r,n,t,e,i)}}}function HV(){return{provide:gr,useClass:mD}}function zV(){return{provide:gr,useClass:kg}}function GV(t){return"guarded"}function WV(t){return[t.initialNavigation==="disabled"?LV().\u0275providers:[],t.initialNavigation==="enabledBlocking"?FV().\u0275providers:[]]}var ME=new le("");function ZV(){return[{provide:ME,useFactory:aT},{provide:Dl,multi:!0,useExisting:ME}]}var YV=["navContainer"],QV=["navSubtabs"];function JV(t,e){if(t&1&&(T(0,"a",9),B(1),x()),t&2){let i=U().$implicit;ee("href",i.path,xo)("download",i.download),A(),Ut(i.name)}}function KV(t,e){if(t&1&&(T(0,"a",11),B(1),x()),t&2){let i=U(2).$implicit;Xe("active",!0),A(),Ut(i.name)}}function XV(t,e){if(t&1&&(T(0,"a",12),B(1),x()),t&2){let i=U(2).$implicit;ee("routerLink",i.path),A(),Ut(i.name)}}function ej(t,e){if(t&1&&be(0,KV,2,3,"a",10)(1,XV,2,2),t&2){let i=U().$implicit,n=U();Be(0,n.active==i.path?0:1)}}function tj(t,e){if(t&1&&(T(0,"li",8),be(1,JV,2,3,"a",9)(2,ej,2,1),x()),t&2){let i=e.$implicit;ee("ngbNavItem",i.path),A(),Be(1,i.download?1:2)}}var nj=["*",[["","expandContent",""]]],ij=["*","[expandContent]"],$q=(()=>{let e=class e{constructor(n,r,o){this.route=n,this.breadcrumbService=r,this.location=o,this.tabs=[],this.active=""}ngOnInit(){this.changeActivateTab()}changeActivateTab(){let n=this.location.path(!1);this.tabs.forEach(r=>{r.path===n&&(this.breadcrumbService.$currentBreadcrumb.set(r.breadcrumb??[r.name]),this.active=r.path)}),window.scroll({top:0,left:0,behavior:"smooth"})}};e.\u0275fac=function(r){return new(r||e)(q(Ji),q(yE),q(jr))},e.\u0275cmp=bt({type:e,selectors:[["app-sidebar-nav"]],contentQueries:function(r,o,a){if(r&1&&(un(a,YV,5),un(a,QV,5)),r&2){let c;at(c=lt())&&(o.navContainerRef=c.first),at(c=lt())&&(o.navSubtabsRef=c.first)}},inputs:{tabs:"tabs"},ngContentSelectors:ij,decls:14,vars:1,consts:[[1,"container","mt-2","mb-5"],[1,"row"],[1,"col-lg-9","col-12"],[1,"flex-fill","pt-xl-5","pt-lg-5","pt-md-2","pt-2","pb-3"],[1,"col-lg-3","col-sm-12"],[1,"d-flex","flex-column","sticky-top",2,"top","30px"],[1,"pt-xl-5","pt-lg-5","pt-md-2","pt-2","pb-3"],["ngbNav","","orientation","vertical",1,"nav-pills","flex-column",3,"activeId"],[2,"list-style","disc outside none","display","list-item","margin-left","1em",3,"ngbNavItem"],[3,"href","download"],["ngbNavLink","",3,"active"],["ngbNavLink",""],["ngbNavLink","",3,"routerLink"],["style",`
              list-style: disc outside none;
              display: list-item;
              margin-left: 1em;
            `,3,"ngbNavItem"]],template:function(r,o){r&1&&(Ws(nj),T(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),No(4),x()(),T(5,"div",4)(6,"div",5)(7,"h5",6),B(8,"En esta secci\xF3n"),x(),T(9,"ul",7),Sn(10,tj,3,2,"li",13,Qn),x(),Ce(12,"br"),No(13,1),x()()()()),r&2&&(A(9),ee("activeId",o.active),A(),Mn(o.tabs))},dependencies:[Zl,Dh,hE,fE,Ch,Vh],styles:["a[_ngcontent-%COMP%]:hover{color:var(--primario)}"]});let t=e;return t})();var Hh=(()=>{let e=class e{transform(n,r){return n?n<4.5?`${r}-green text-white`:n>=4.5&&n<6?`${r}-yellow text-dark`:`${r}-red text-white`:`${r}-grey text-dark`}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=js({name:"seismicClass",type:e,pure:!0});let t=e;return t})();var Wh=Er(zh()),hT=Er(Mv());var Gh=(()=>{let e=class e{constructor(){this.http=D(Lo)}icon(n){return this.http.get(`assets/icons/${n}.svg`)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var sj=["datepicker"];function aj(t,e){if(t&1){let i=Dt();T(0,"span",18),ae("mouseenter",function(){let o=Fe(i).$implicit,a=U();return Le(a.hoveredDate=o)})("mouseleave",function(){Fe(i);let r=U();return Le(r.hoveredDate=null)}),B(1),x()}if(t&2){let i=e.$implicit,n=e.focused,r=U();Xe("focused",n)("range",r.isRange(i))("faded",r.isHovered(i)||r.isInside(i)),A(),vn(" ",i.day," ")}}var lj=t=>({year:t,month:1,day:1}),cj=t=>({year:t,month:12,day:31});Wh.default.extend(hT.default);var dT={es:{weekdays:["Lu","Ma","Mi","Ju","Vi","Sa","Do"],months:["Ene","Feb","Mar","Abr","Mar","Jun","Jul","Ago","Sep","Oct","Nov","Dic"]}},fT=(()=>{let e=class e{constructor(){this.language="es"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})(),uj=(()=>{let e=class e extends Zi{constructor(n){super(),this._i18n=n}getWeekdayLabel(n,r){return""}getWeekdayShortName(n){return dT[this._i18n.language].weekdays[n-1]}getMonthShortName(n){return dT[this._i18n.language].months[n-1]}getMonthFullName(n){return this.getMonthShortName(n)}getDayAriaLabel(n){return`${n.day}-${n.month}-${n.year}`}};e.\u0275fac=function(r){return new(r||e)(re(fT))},e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})(),xv=class extends ca{constructor(){super(...arguments),this.DT_FORMAT="DD-MM-YYYY"}parse(e){if(e){e=e.trim();let i=(0,Wh.default)(e,this.DT_FORMAT)}return null}format(e){if(!e)return"";let i=(0,Wh.default)(`${e.year}/${e.month}/${e.day}`);return i.isValid()?i.format(this.DT_FORMAT):""}},Xq=(()=>{let e=class e{constructor(n){this.iconService=n,this.rangeYears=[],this.onChange=new ve,this.calendar=D(la),this.formatter=D(ca),this.hoveredDate=null,this.fromDate=null,this.toDate=null}ngOnChanges(n){n.rangeYears.currentValue&&(this.fromDate={year:this.rangeYears[0],month:1,day:1},this.toDate=null)}onDateSelection(n){if(!this.fromDate&&!this.toDate)this.fromDate=n,this.onChange.emit({from:void 0,to:void 0});else if(this.fromDate&&!this.toDate&&n&&n.after(this.fromDate)){this.toDate=n;let r=o=>o>9?o:"0"+o;this.onChange.emit({from:`${this.fromDate.year}-${r(this.fromDate.month)}-${r(this.fromDate.day)}`,to:`${this.toDate.year}-${r(this.toDate.month)}-${r(this.toDate.day)}`}),this.datepicker.close()}else this.toDate=null,this.fromDate=n,this.onChange.emit({from:void 0,to:void 0})}isHovered(n){return this.fromDate&&!this.toDate&&this.hoveredDate&&n.after(this.fromDate)&&n.before(this.hoveredDate)}isInside(n){return this.toDate&&n.after(this.fromDate)&&n.before(this.toDate)}isRange(n){return n.equals(this.fromDate)||this.toDate&&n.equals(this.toDate)||this.isInside(n)||this.isHovered(n)}validateInput(n,r){let o=this.formatter.parse(r);return o&&this.calendar.isValid(fn.from(o))?fn.from(o):n}};e.\u0275fac=function(r){return new(r||e)(q(Gh))},e.\u0275cmp=bt({type:e,selectors:[["app-datepicker"]],viewQuery:function(r,o){if(r&1&&Gi(sj,5),r&2){let a;at(a=lt())&&(o.datepicker=a.first)}},inputs:{rangeYears:"rangeYears"},outputs:{onChange:"onChange"},features:[Nt([fT,{provide:ca,useValue:new xv},{provide:Zi,useClass:uj}]),dt],decls:30,vars:12,consts:[[1,"col-12","position-relative"],[1,"dp-hidden","position-absolute"],[1,"input-group"],["name","datepicker","ngbDatepicker","","outsideDays","hidden","tabindex","-1",1,"form-control",3,"minDate","maxDate","autoClose","displayMonths","dayTemplate","startDate","dateSelect"],["datepicker","ngbDatepicker"],["t",""],[1,"row"],[1,"col-6"],[1,"w-100"],["for","basic-url",1,"form-label"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16",1,"bi","bi-calendar-week"],["d","M11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm-3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm-5 3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5z"],["d","M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z"],["placeholder","dd-mm-yyyy","name","dpFromDate","disabled","",1,"form-control",3,"value","input"],["dpFromDate",""],["placeholder","dd-mm-yyyy","name","dpToDate","disabled","",1,"form-control",3,"value","input"],["dpToDate",""],[1,"custom-day",3,"mouseenter","mouseleave"]],template:function(r,o){if(r&1){let a=Dt();T(0,"div",0)(1,"div",1)(2,"div",2)(3,"input",3,4),ae("dateSelect",function(d){return o.onDateSelection(d)}),x(),be(5,aj,2,7,"ng-template",null,5,gi),x()(),T(7,"div",6)(8,"div",7)(9,"div",8)(10,"label",9),B(11,"Periodo inicio"),x(),T(12,"div",2)(13,"button",10),ae("click",function(){Fe(a);let d=_n(4);return Le(d.toggle())}),an(),T(14,"svg",11),Ce(15,"path",12)(16,"path",13),x()(),ln(),T(17,"input",14,15),ae("input",function(){Fe(a);let d=_n(18);return Le(o.fromDate=o.validateInput(o.fromDate,d.value))}),x()()()(),T(19,"div",7)(20,"div",8)(21,"label",9),B(22,"Periodo fin"),x(),T(23,"div",2)(24,"button",10),ae("click",function(){Fe(a);let d=_n(4);return Le(d.toggle())}),an(),T(25,"svg",11),Ce(26,"path",12)(27,"path",13),x()(),ln(),T(28,"input",16,17),ae("input",function(){Fe(a);let d=_n(29);return Le(o.toDate=o.validateInput(o.toDate,d.value))}),x()()()()()()}if(r&2){let a=_n(6);A(3),ee("minDate",ur(8,lj,o.rangeYears[0]))("maxDate",ur(10,cj,o.rangeYears[1]))("autoClose","outside")("displayMonths",2)("dayTemplate",a)("startDate",o.fromDate),A(14),ee("value",o.formatter.format(o.fromDate)),A(11),ee("value",o.formatter.format(o.toDate))}},dependencies:[sE],styles:[".dp-hidden[_ngcontent-%COMP%]{width:0;margin:0;border:none;padding:0;top:30px}.dp-hidden[_ngcontent-%COMP%] > .input-group[_ngcontent-%COMP%] > .form-control[_ngcontent-%COMP%]{width:0;margin:0;border:none;padding:0;bottom:0}.custom-day[_ngcontent-%COMP%]{text-align:center;padding:.185rem .25rem;display:inline-block;height:2rem;width:2rem}.custom-day.focused[_ngcontent-%COMP%]{background-color:#e6e6e6}.custom-day.range[_ngcontent-%COMP%], .custom-day[_ngcontent-%COMP%]:hover{background-color:#0275d8;color:#fff}.custom-day.faded[_ngcontent-%COMP%]{background-color:#0275d880}"]});let t=e;return t})();var gc=Er(zh()),gT=Er(Mv()),_T=Er(pT()),vT=Er(mT());gc.default.extend(_T.default);gc.default.extend(vT.default);gc.default.extend(gT.default);var yT=(()=>{let e=class e{transform(n,r="DD/MM/YYYY"){return gc.default.tz(n,Intl.DateTimeFormat().resolvedOptions().timeZone).format(r)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=js({name:"dateFormat",type:e,pure:!0});let t=e;return t})();var ri=Er(bT());var DT=(()=>{let e=class e{constructor(){this.activeModal=D(sa),this.title="",this.map=""}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=bt({type:e,selectors:[["app-map-preview"]],inputs:{title:"title",map:"map"},standalone:!0,features:[xn],decls:7,vars:3,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"w-100",3,"src","alt"]],template:function(r,o){r&1&&(T(0,"div",0)(1,"h4",1)(2,"h1"),B(3),x()(),T(4,"button",2),ae("click",function(){return o.activeModal.dismiss()}),x()(),T(5,"div",3),Ce(6,"img",4),x()),r&2&&(A(3),vn(" ",o.title," "),A(3),ee("src",o.map,xo)("alt",o.title))},styles:[".modal-title[_ngcontent-%COMP%]{text-transform:uppercase!important;color:var(--primario)}"]});let t=e;return t})();var Nv=Er(zh());var CT=(()=>{let e=class e{constructor(){this.seismic=new qe(void 0),this.graphQLUrl=qi.graphQLUrl,this.graphQLUrl=this.graphQLUrl.replace("https://","").split("/")[0];let n=this.getWebsocketUrl();this.ws=new WebSocket(n,["graphql-ws"]),this.ws.addEventListener("open",()=>{this.ws.send(JSON.stringify({type:"connection_init"}))}),this.ws.addEventListener("message",r=>{let o=JSON.parse(r.data);switch(o.type){case"connection_ack":this.startSubscription();break;case"error":console.error(o);break;case"data":let a=JSON.parse(o.payload.data.subscribeToMessages.message);this.seismic.next(a);break}})}encodeAppSyncCredentials(){let n={host:this.graphQLUrl,"x-api-key":qi.graphQLApiKey};return window.btoa(JSON.stringify(n))}getWebsocketUrl(){let n=this.encodeAppSyncCredentials(),r=window.btoa(JSON.stringify({}));return`wss://${this.graphQLUrl.replace("appsync-api","appsync-realtime-api")}/graphql?header=${n}&payload=${r}`}startSubscription(){let n={id:window.crypto.randomUUID(),type:"start",payload:{data:JSON.stringify({query:`subscription GetMessagesSub {
                  subscribeToMessages {
                      message
                  }
              }`}),extensions:{authorization:{"x-api-key":qi.graphQLApiKey,host:this.graphQLUrl}}}};this.ws.send(JSON.stringify(n))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var fj=["alarm"],pj=()=>[qs,bD,mE,KC,Hh,yT],mj=()=>[qs,Hh],gj=()=>[qs,Hh];function _j(t,e){t&1&&B(0," SIMULACRO ")}function vj(t,e){t&1&&B(0," \xDALTIMO SISMO ")}function yj(t,e){if(t&1&&(T(0,"h2",52),be(1,_j,1,0)(2,vj,1,0),x()),t&2){let i=U(2);ee("ngClass",i.realtimeAlarm&&i.seismic.tipo_evento==="S"||!i.realtimeAlarm&&i.seismic.simulacro?"text-green fs-3":""),A(),Be(1,i.realtimeAlarm&&i.seismic.tipo_evento==="S"||!i.realtimeAlarm&&i.seismic.simulacro?1:2)}}function wj(t,e){if(t&1&&(T(0,"span",6),B(1),x()),t&2){let i=U(2);A(),vn("IGP/CENSIS/RS ",i.loading?"...":i.isLastSeismic?i.seismic.codigo:i.seismic.codigos,"")}}function bj(t,e){if(t&1&&(T(0,"div",53),Jn(1,"seismicClass"),T(2,"strong"),B(3,"M "),Ce(4,"br"),T(5,"span"),B(6),x()()()),t&2){let i=U(2);ee("ngClass",mi(1,2,i.seismic.magnitud,"bg")),A(6),Ut(i.seismic.magnitud)}}function Dj(t,e){t&1&&(T(0,"b"),B(1,"Fecha y hora local"),x(),T(2,"p",54),B(3," Indica el d\xEDa, mes y a\xF1o de ocurrencia del sismo y la hora local (Per\xFA) de ocurrencia del sismo (hora:minuto:segundo). Para la hora universal (UTC) debe sumarse 5 horas. Es posible que esta suma derive en el cambio del d\xEDa de ocurrencia del sismo "),x())}function Cj(t,e){if(t&1&&(an(),ln(),T(0,"span"),B(1),Jn(2,"dateFormat"),x()),t&2){let i=U(2);A(),Ut(mi(2,1,i.seismic.fecha_hora,"DD/MM/YYYY HH:mm:ss"))}}function Ej(t,e){if(t&1&&(an(),ln(),T(0,"span"),B(1),x()),t&2){let i=U(2);A(),Ut(i.seismicDate(i.seismic))}}function Tj(t,e){t&1&&(T(0,"b"),B(1,"Latitud y Longitud (\xBA)"),x(),T(2,"p",54),B(3," La latitud, nos indica la distancia angular entre la l\xEDnea ecuatorial y un punto cualquiera sobre la Tierra. Define una de las coordenadas en grados del epicentro. La longitud, indica la distancia angular entre un punto cualquiera sobre la superficie de la Tierra y el meridiano que se tome como 0\xB0. Define una de las coordenadas en grados del epicentro. "),x())}function Sj(t,e){t&1&&(T(0,"b"),B(1,"Profundidad"),x(),T(2,"p",54),B(3," Define la profundidad por debajo de la superficie de la Tierra en la cual se encuentra el foco s\xEDsmico o inicio de la ruptura. Valor expresado en kil\xF3metros. "),x())}function Mj(t,e){t&1&&(T(0,"b"),B(1,"Intensidad"),x(),T(2,"p",54),B(3," Define la intensidad de sacudimiento del suelo en base a la percepci\xF3n de las personas, da\xF1os estructurales observados y cambios en la naturaleza. La escala utilizada es la de Mercalli Modificada. Los valores son dados en n\xFAmeros romanos para las localidades en las cuales se lleg\xF3 a evaluar la intensidad "),x())}function xj(t,e){if(t&1){let i=Dt();T(0,"button",55),ae("click",function(){Fe(i),U();let r=_n(96),o=U();return r.toggle(),Le(o.collapseCompletedReport=!0)}),B(1," Ver reporte acelerom\xE9trico "),x()}}function Ij(t,e){if(t&1){let i=Dt();T(0,"div",57)(1,"div",58)(2,"div",59)(3,"div",60)(4,"div",61),an(),T(5,"svg",62)(6,"g"),Ce(7,"path",14),x()()(),ln(),T(8,"div",63)(9,"p",64),B(10,"Mapa de sismicidad"),x()()(),T(11,"span",65)(12,"button",66),ae("click",function(){Fe(i);let r=U(3);return Le(r.viewMap("Mapa de simicidad",r.maps.mapa_sismicidad))}),Jn(13,"seismicClass"),B(14," Ver mapa "),x()()()()()}if(t&2){let i=U(3);A(12),ee("ngClass",mi(13,1,i.seismic.magnitud,"btn"))}}function Oj(t,e){if(t&1){let i=Dt();T(0,"div",57)(1,"div",58)(2,"div",59)(3,"div",60)(4,"div",61),an(),T(5,"svg",62)(6,"g"),Ce(7,"path",14),x()()(),ln(),T(8,"div",63)(9,"p",64),B(10," Mapa de aceleraci\xF3n te\xF3rica (cm/seg\xB2) "),x()()(),T(11,"span",65)(12,"button",66),ae("click",function(){Fe(i);let r=U(3);return Le(r.viewMap(" Mapa de aceleraci\xF3n te\xF3rica (cm/seg\xB2)",r.maps.mapa_aceleracion_teorica))}),Jn(13,"seismicClass"),B(14," Ver mapa "),x()()()()()}if(t&2){let i=U(3);A(12),ee("ngClass",mi(13,1,i.seismic.magnitud,"btn"))}}function Aj(t,e){if(t&1){let i=Dt();T(0,"div",57)(1,"div",58)(2,"div",59)(3,"div",60)(4,"div",61),an(),T(5,"svg",62)(6,"g"),Ce(7,"path",14),x()()(),ln(),T(8,"div",63)(9,"p",64),B(10,"Mapa de intensidades te\xF3ricas"),x()()(),T(11,"span",65)(12,"button",66),ae("click",function(){Fe(i);let r=U(3);return Le(r.viewMap("Intensidades te\xF3ricas",r.maps.mapa_intensidades_teoricas))}),Jn(13,"seismicClass"),B(14," Ver mapa "),x()()()()()}if(t&2){let i=U(3);A(12),ee("ngClass",mi(13,1,i.seismic.magnitud,"btn"))}}function Pj(t,e){if(t&1){let i=Dt();T(0,"div",57)(1,"div",58)(2,"div",59)(3,"div",60)(4,"div",61),an(),T(5,"svg",62)(6,"g"),Ce(7,"path",14),x()()(),ln(),T(8,"div",63)(9,"p",64),B(10,"Mapa de Pseudo Aceleraci\xF3n"),x()()(),T(11,"span",65)(12,"button",66),ae("click",function(){Fe(i);let r=U(3);return Le(r.viewMap("Pseudo aceleraci\xF3n",r.maps.mapa_psuedoaceleracion))}),Jn(13,"seismicClass"),B(14," Ver mapa "),x()()()()()}if(t&2){let i=U(3);A(12),ee("ngClass",mi(13,1,i.seismic.magnitud,"btn"))}}function Nj(t,e){if(t&1){let i=Dt();T(0,"div",57)(1,"div",58)(2,"div",59)(3,"div",60)(4,"div",61),an(),T(5,"svg",62)(6,"g"),Ce(7,"path",14),x()()(),ln(),T(8,"div",63)(9,"p",64),B(10,"Mapa de Aceleraci\xF3n (PGA)"),x()()(),T(11,"span",65)(12,"button",66),ae("click",function(){Fe(i);let r=U(3);return Le(r.viewMap("Aceleraci\xF3n m\xE1xima (PGA)",r.maps.mapa_aceleracion))}),Jn(13,"seismicClass"),B(14," Ver mapa "),x()()()()()}if(t&2){let i=U(3);A(12),ee("ngClass",mi(13,1,i.seismic.magnitud,"btn"))}}function Rj(t,e){if(t&1){let i=Dt();T(0,"div",57)(1,"div",58)(2,"div",59)(3,"div",60)(4,"div",61),an(),T(5,"svg",62)(6,"g"),Ce(7,"path",14),x()()(),ln(),T(8,"div",63)(9,"p",64),B(10,"Mapa de velocidades"),x()()(),T(11,"span",65)(12,"button",66),ae("click",function(){Fe(i);let r=U(3);return Le(r.viewMap("Aceleraci\xF3n m\xE1xima (PGA)",r.maps.mapa_velocidades))}),Jn(13,"seismicClass"),B(14," Ver mapa "),x()()()()()}if(t&2){let i=U(3);A(12),ee("ngClass",mi(13,1,i.seismic.magnitud,"btn"))}}function kj(t,e){if(t&1&&be(0,Ij,15,4,"div",56)(1,Oj,15,4,"div",56)(2,Aj,15,4,"div",56)(3,Pj,15,4,"div",56)(4,Nj,15,4,"div",56)(5,Rj,15,4,"div",56),t&2){let i=U(2);Be(0,i.maps.mapa_sismicidad?0:-1),A(),Be(1,i.maps.mapa_aceleracion_teorica?1:-1),A(),Be(2,i.maps.mapa_intensidades_teoricas?2:-1),A(),Be(3,i.maps.mapa_psuedoaceleracion?3:-1),A(),Be(4,i.maps.mapa_aceleracion?4:-1),A(),Be(5,i.maps.mapa_velocidades?5:-1)}}function Fj(t,e){t&1&&B(0," cargando... ")}var Lj=t=>({"text-dark":t});function Bj(t,e){if(t&1){let i=Dt();T(0,"div",0)(1,"div",1)(2,"div",2),be(3,yj,3,2,"h2",3),T(4,"p"),B(5," El CENSIS obtiene sus datos de la Red S\xEDsmica Nacional "),T(6,"a",4),B(7,"(DS-0017-2018-MINAM)"),x(),B(8,", conformada e integrada por una serie de sensores de velocidad, aceleraci\xF3n y desplazamiento distribuidos en todo el pa\xEDs. "),x(),T(9,"div",5)(10,"p",6)(11,"b"),B(12,"Rango de alerta: "),x()(),T(13,"ul",7)(14,"li"),Ce(15,"span",8),B(16," < M4.5"),x(),T(17,"li"),Ce(18,"span",9),B(19," de M4.5 a M6.0"),x(),T(20,"li"),Ce(21,"span",10),B(22," \u2265 M6.0"),x()()(),T(23,"h5",11)(24,"div",12),an(),T(25,"svg",13)(26,"g"),Ce(27,"path",14),x()(),ln(),T(28,"span",15),B(29," Reporte de evento:"),x(),be(30,wj,2,1,"span",16),x()(),T(31,"div",17),Jn(32,"seismicClass"),T(33,"div",18),Jn(34,"seismicClass"),be(35,bj,7,5),Ed(36,35,mj),T(38,"p",19)(39,"b"),B(40,"Referencia:"),x(),Ce(41,"br"),T(42,"span"),B(43),x()()(),T(44,"div",20)(45,"div",21)(46,"div",22),Ce(47,"div",23),x(),T(48,"div",24)(49,"p")(50,"b",6)(51,"span",25),be(52,Dj,4,0,"ng-template",null,26,gi),an(),T(54,"svg",27),Ce(55,"path",28),x()(),B(56," Fecha y hora local: "),x(),be(57,Cj,3,4,"span",29)(58,Ej,2,1,"span",29),x(),ln(),T(59,"p")(60,"b",6)(61,"span",25),be(62,Tj,4,0,"ng-template",null,30,gi),an(),T(64,"svg",27),Ce(65,"path",28),x()(),B(66," Latitud y Longitud (\xBA): "),x(),ln(),T(67,"span"),B(68),x()()(),T(69,"div",31)(70,"p")(71,"b",6)(72,"span",25),be(73,Sj,4,0,"ng-template",null,32,gi),an(),T(75,"svg",27),Ce(76,"path",28),x()(),B(77," Profundidad: "),x(),ln(),T(78,"span"),B(79),x()(),T(80,"p")(81,"b",6)(82,"span",25),be(83,Mj,4,0,"ng-template",null,33,gi),an(),T(85,"svg",27),Ce(86,"path",28),x()(),B(87," Intensidad: "),x(),ln(),T(88,"span"),B(89),x()()(),T(90,"div",34)(91,"button",35),ae("click",function(){Fe(i);let r=_n(100),o=U();return r.toggle(),Le(o.collapseAccelerometricReport=!0)}),B(92),x(),be(93,xj,2,0,"button",36),x()(),Ce(94,"hr",6),T(95,"div",37,38),ae("ngbCollapseChange",function(r){Fe(i);let o=U();return Le(o.collapseAccelerometricReport=r)}),T(97,"a",39),B(98," Descargar reporte acelerom\xE9trico "),x()(),T(99,"div",37,40),ae("ngbCollapseChange",function(r){Fe(i);let o=U();return Le(o.collapseCompletedReport=r)}),T(101,"div")(102,"h5",41)(103,"span")(104,"b"),B(105," Mapas tem\xE1ticos"),x()()(),T(106,"p",42),B(107,"Mapas generados sobre el evento s\xEDsmico"),x(),T(108,"div",43),be(109,kj,6,6)(110,Fj,1,0),Ed(111,109,gj,110),x()()()()(),T(113,"div",44)(114,"div",45),B(115,"A tener en cuenta que:"),x(),T(116,"div",46)(117,"div",47)(118,"b"),B(119,"Tsunamis"),x(),Ce(120,"br"),B(121,"\xA1Sismos con epicentros en el mar y magnitudes mayores a 7, pueden generar tsunamis! "),x(),T(122,"div",48)(123,"b"),B(124,"Predicci\xF3n s\xEDsmica"),x(),Ce(125,"br"),B(126,"\xA1Cuidado con la informaci\xF3n falsa en redes sociales! Los sismos no se pueden predecir. "),T(127,"a",49),B(128,"(Conoce m\xE1s)"),x()(),Ce(129,"audio",50,51),x()()()()()}if(t&2){let i=_n(53),n=_n(63),r=_n(74),o=_n(84),a=U(),c,d;A(3),Be(3,a.isLastSeismic?3:-1),A(27),Be(30,a.realtimeAlarm&&a.seismic.tipo_evento!=="S"||!a.realtimeAlarm?30:-1),A(),ee("ngClass",mi(32,34,a.seismic.magnitud,"border")),A(2),ee("ngClass",mi(34,37,a.seismic.magnitud,"bg")),A(3),Td(!a.loading),A(2),ee("ngClass",ur(40,Lj,((c=a.seismic.magnitud)!==null&&c!==void 0?c:0)>=4.5&&((c=a.seismic.magnitud)!==null&&c!==void 0?c:0)<6)),A(5),Ut(a.seismic.referencia),A(8),ee("ngbTooltip",i)("disableTooltip",a.isLastSeismic),A(3),ht("fill",a.isLastSeismic?"#000":"#0099ff"),A(3),ee("ngIf",a.isLastSeismic),A(),ee("ngIf",!a.isLastSeismic),A(3),ee("ngbTooltip",n)("disableTooltip",a.isLastSeismic),A(3),ht("fill",a.isLastSeismic?"#000":"#0099ff"),A(4),Dg(" ",a.seismic.latitud,", ",a.seismic.longitud,""),A(4),ee("ngbTooltip",r)("disableTooltip",a.isLastSeismic),A(3),ht("fill",a.isLastSeismic?"#000":"#0099ff"),A(4),vn("",a.seismic.profundidad," Km"),A(3),ee("ngbTooltip",o)("disableTooltip",a.isLastSeismic),A(3),ht("fill",a.isLastSeismic?"#000":"#0099ff"),A(4),Ut(a.isLastSeismic?a.seismic.intensidades||"-":a.seismic.intensidad||"-"),A(3),vn(" ",a.collapseCompletedReport?"Ver reporte completo":"Ocultar reporte completo"," "),A(),Be(93,((d=a.seismic.magnitud)!==null&&d!==void 0?d:0)>=4.5&&a.seismic.reporte_acelerometrico_pdf?93:-1),A(2),ee("ngbCollapse",a.collapseAccelerometricReport),A(2),ee("download",a.fileName(a.seismic.reporte_acelerometrico_pdf))("href",a.seismic.reporte_acelerometrico_pdf,xo),A(2),ee("ngbCollapse",a.collapseCompletedReport),A(12),Td(!a.loading),A(18),ee("ngClass",a.soundAlarm?"d-block":"d-none")("loop",!1)}}function Vj(t,e){t&1&&(T(0,"div",67)(1,"div",68)(2,"span",69),B(3,"Loading..."),x()()())}var uY=(()=>{let e=class e{constructor(n,r,o){this.modalService=n,this.seismicService=r,this.ws=o,this.isLastSeismic=!1,this.collapseCompletedReport=!1,this.collapseAccelerometricReport=!0,this.loading=!0,this.realtimeAlarm=!1,this.soundAlarm=!1}ngOnInit(){this.isHome&&(this.subscription=this.ws.seismic.pipe(Ga(1)).subscribe(n=>Lt(this,null,function*(){let r=document.querySelector("audio"),o=Nv.default.tz(n.fecha_hora,Intl.DateTimeFormat().resolvedOptions().timeZone),a=(0,Nv.default)().utc();this.isLastSeismic=!0,this.seismic=n,this.realtimeAlarm=!0,r&&a.diff(o,"minutes")<=20&&(this.soundAlarm=!0,r.play(),r.currentTime=0);try{this.loading=!0,yield this.getMaps(),this.map.flyTo([n.latitud,n.longitud]),this.map.removeLayer(this.oldMarker),this.addPoints()}catch(c){console.error(c)}finally{this.loading=!1}})))}ngOnDestroy(){this.isHome&&this.subscription?.unsubscribe()}ngOnChanges(n){return Lt(this,null,function*(){if(n.seismic?.currentValue){this.seismic=n.seismic.currentValue,this.loading=!0;try{yield this.getMaps(),this.initializeMap(),this.addPoints()}catch(r){console.error(r)}finally{this.loading=!1}}})}ngAfterViewChecked(){!this.loading&&this.seismic&&this.map.invalidateSize()}initializeMap(){let n='&copy; <a href="httpS://osm.org/copyright">OpenStreetMap</a> contributors',r=ri.tileLayer("https://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png",{attribution:n}),o=ri.tileLayer("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",{attribution:n}),a=ri.tileLayer("https://services.arcgisonline.com/arcgis/rest/services/Reference/World_Boundaries_and_Places/MapServer/tile/{z}/{y}/{x}",{attribution:n});this.map=ri.map("map",{minZoom:1,maxZoom:9,center:[this.seismic.latitud,this.seismic.longitud],zoom:7,layers:[o,a]}),ri.control.layers({Sat\u00E9lite:o,Terreno:r},{Delimitaciones:a}).addTo(this.map)}addPoints(){let n=ri.divIcon({className:"css-icon",html:`<div id="earthquake-epicenter"><div id="earthquake-point" class="${this.seismicClass}"></div><div id="earthquake-pulser"></div></div>`,iconSize:[48,48],iconAnchor:[24,28]});this.oldMarker=ri.marker([this.seismic.latitud,this.seismic.longitud],{icon:n}).bindPopup(`<b>Latitud:</b>${this.seismic.latitud}<br><b>Longitud:</b>${this.seismic.longitud}`).openPopup().addTo(this.map)}viewMap(n,r){let o=this.modalService.open(DT,{size:"lg"});o.componentInstance.title=n,o.componentInstance.map=r}getMaps(){return Lt(this,null,function*(){try{let n=this.isLastSeismic?this.seismic.codigo?.split("-")[0]:this.seismic.codigos?.split("-")[0],r=this.isLastSeismic?this.seismic.numero:this.seismic.numero_reporte;this.maps=yield this.seismicService.getMaps(n,r)}catch(n){console.error(n)}})}alertSound(){let n=new Audio("assets/sounds/alarma20seg.mp3");n.volume=.5,n.play()}fileName(n=""){let r=n.lastIndexOf("/"),o=n.indexOf(".",r);return n.substring(r+1,o)}seismicDate(n){let r=n.fecha_local.split("T")[0],[o,a,c]=r.split("-"),d=n.hora_local.split("T")[1].split(".")[0];return`${c}/${a}/${o} ${d}`}get seismicClass(){return(this.seismic.magnitud??0)<4.5?"bg-success":(this.seismic.magnitud??0)>=4.5&&(this.seismic.magnitud??0)<6?"bg-yellow":"bg-danger"}get isHome(){return["/ultimo-sismo","/"].includes(location.pathname)}};e.\u0275fac=function(r){return new(r||e)(q(uE),q(vE),q(CT))},e.\u0275cmp=bt({type:e,selectors:[["app-seismic-preview"]],viewQuery:function(r,o){if(r&1&&Gi(fj,5),r&2){let a;at(a=lt())&&(o.audio=a.first)}},inputs:{seismic:"seismic",isLastSeismic:"isLastSeismic"},features:[dt],decls:4,vars:1,consts:[[1,"container"],[1,"row"],[1,"col"],["class","pt-0 fw-medium",3,"ngClass"],["href","assets/docs/ds_017-2018-minam.pdf","target","_blank"],[1,"mt-3",2,"display","inline-flex"],[1,"text-dark"],[1,"ul-semaforo"],[1,"circle","bg-green"],[1,"circle","bg-yellow"],[1,"circle","bg-red"],[1,"pb-4","pt-2"],[1,"d-flex","align-items-center","gap-2","text-secondary"],["fill","#0099ff","width","24px","height","24px","viewBox","0 -32 576 576","xmlns","http://www.w3.org/2000/svg"],["d","M288 0c-69.59 0-126 56.41-126 126 0 56.26 82.35 158.8 113.9 196.02 6.39 7.54 17.82 7.54 24.2 0C331.65 284.8 414 182.26 414 126 414 56.41 357.59 0 288 0zm0 168c-23.2 0-42-18.8-42-42s18.8-42 42-42 42 18.8 42 42-18.8 42-42 42zM20.12 215.95A32.006 32.006 0 0 0 0 245.66v250.32c0 11.32 11.43 19.06 21.94 14.86L160 448V214.92c-8.84-15.98-16.07-31.54-21.25-46.42L20.12 215.95zM288 359.67c-14.07 0-27.38-6.18-36.51-16.96-19.66-23.2-40.57-49.62-59.49-76.72v182l192 64V266c-18.92 27.09-39.82 53.52-59.49 76.72-9.13 10.77-22.44 16.95-36.51 16.95zm266.06-198.51L416 224v288l139.88-55.95A31.996 31.996 0 0 0 576 426.34V176.02c0-11.32-11.43-19.06-21.94-14.86z"],[1,"text-secundario"],["class","text-dark"],[1,"card","border-2",3,"ngClass"],[1,"p-2","pl-3","position-relative",3,"ngClass"],[1,"reference",3,"ngClass"],[1,"card-body"],[1,"row","m-0"],[1,"col-12","p-0","mb-3",2,"height","450px"],["id","map",1,"h-100","rounded"],[1,"col-lg-7","p-0"],[3,"ngbTooltip","disableTooltip"],["tooltipDatetime",""],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 16 16"],["d","M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.496 6.033h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286a.237.237 0 0 0 .241.247zm2.325 6.443c.61 0 1.029-.394 1.029-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94 0 .533.425.927 1.01.927z"],[4,"ngIf"],["tooltipCoords",""],[1,"col-lg-5","p-0"],["tooltipProfundity",""],["tooltipIntensity",""],[1,"d-flex","gap-2","p-0","my-3"],["type","button","aria-controls","collapseCompletedReport",1,"btn","btn-primario","btn-sm",3,"click"],["type","button","class","btn btn-secondary btn-sm ml-xl-3 ml-lg-3 ml-md-0 ml-sm-0 ml-0","aria-controls","collapseAccelerometricReport"],[3,"ngbCollapse","ngbCollapseChange"],["collapseAccelerometric","ngbCollapse"],["role","button","target","_blank",1,"btn","btn-sm","btn-outline-primario","w-100",3,"download","href"],["collapseCompleted","ngbCollapse"],[1,"pb-3","text-black"],[1,"pl-4"],[1,"row","g-3"],[1,"row","mt-3"],[1,"col-lg-3"],[1,"col-lg-9"],[1,"alert","alert-primary"],[1,"alert","alert-info"],["href","assets/docs/leermas.pdf","target","_blank"],["controls","","src","assets/sounds/alarma20seg.mp3",1,"mb-3",3,"ngClass","loop"],["alarm",""],[1,"pt-0","fw-medium",3,"ngClass"],[1,"mg-us",3,"ngClass"],[1,"text-light"],["type","button","aria-controls","collapseAccelerometricReport",1,"btn","btn-secondary","btn-sm","ml-xl-3","ml-lg-3","ml-md-0","ml-sm-0","ml-0",3,"click"],["class","col-lg-6 col-12"],[1,"col-lg-6","col-12"],[1,"card","h-100"],[1,"d-flex","p-3","h-100"],[1,"d-flex","gap-3","align-items-center","flex-fill"],[1,""],["fill","#000","width","20px","height","20px","viewBox","0 -32 576 576","xmlns","http://www.w3.org/2000/svg"],[1,"p-2","align-self-center","card__content"],[1,"m-0","p-0"],[1,"d-flex","align-items-center"],[1,"btn","btn-sm","text-nowrap",3,"ngClass","click"],[1,"d-flex","justify-content-center"],["role","status",1,"spinner-grow","text-primario"],[1,"visually-hidden"]],template:function(r,o){r&1&&(be(0,Bj,131,42)(1,Vj,4,0),Ed(2,0,pj,null,1)),r&2&&(A(2),Td(o.seismic))},styles:[".ul-semaforo[_ngcontent-%COMP%]{list-style:none;padding:0;margin:-5px 0 0}.ul-semaforo[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:inline;background:#ececec;margin:5px;padding:5px;color:var(--texto);border-radius:2px}.circle[_ngcontent-%COMP%]{width:16px;height:16px;padding:2px;margin:2px;border-radius:25px;display:inline-flex;position:relative;top:5px}.mg-us[_ngcontent-%COMP%]{width:80px;height:80px;border:2px solid #fff;display:flex;border-radius:100%;justify-content:center;align-items:center;text-align:center;position:absolute;z-index:999;font-weight:bolder;top:-15px}.reference[_ngcontent-%COMP%]{margin-left:90px;color:#fff}audio[_ngcontent-%COMP%]{width:320px}"]});let t=e;return t})();var qh=(()=>{let e=class e extends ge{constructor(){super(n=>this.destroySubject$.subscribe(n)),this.destroySubject$=new ms(1)}ngOnDestroy(){this.destroySubject$.next(),this.destroySubject$.complete()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac});let t=e;return t})();var $j=t=>t*(2-t),gY=(()=>{let e=class e{set count(n){this.count$.next(n)}set duration(n){this.duration$.next(n)}constructor(n,r,o){this.elementRef=n,this.renderer=r,this.destroy$=o,this.count$=new qe(0),this.duration$=new qe(2e3),this.currentCount$=Ii([this.count$,this.duration$]).pipe(It(([a,c])=>{let d=Ha.now();return Uf(0,Ha).pipe(se(()=>Ha.now()-d),se(f=>f/c),Yf(f=>f<=1),se($j),se(f=>Math.round(f*a)),Cs(a),ho())}))}ngOnInit(){this.displayCurrentCount()}displayCurrentCount(){this.currentCount$.pipe(pt(this.destroy$)).subscribe(n=>{this.renderer.setProperty(this.elementRef.nativeElement,"innerHTML",n)})}};e.\u0275fac=function(r){return new(r||e)(q(Ne),q(Cn),q(qh))},e.\u0275dir=fe({type:e,selectors:[["","countUp",""]],inputs:{count:[st.None,"countUp","count"],duration:"duration"},features:[Nt([qh])]});let t=e;return t})();var LY=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=At({type:e}),e.\u0275inj=Ot({providers:[Gh],imports:[Lg,pE,uT,IC,xC,aE,gE,eE]});let t=e;return t})();export{z as a,je as b,YS as c,Er as d,Lt as e,Vf as f,jf as g,se as h,rt as i,ot as j,Ga as k,yt as l,F as m,Ot as n,le as o,re as p,D as q,st as r,bt as s,At as t,dt as u,Fe as v,Le as w,an as x,ln as y,sd as z,Bm as A,zi as B,cn as C,xo as D,Ne as E,A as F,q as G,ve as H,fg as I,be as J,Ed as K,Td as L,ee as M,Xe as N,Be as O,_g as P,Qn as Q,Sn as R,Mn as S,T,x as U,Ce as V,vg as W,yg as X,Dt as Y,ae as Z,U as _,_N as $,Gi as aa,at as ba,lt as ca,_n as da,B as ea,Ut as fa,vn as ga,Dg as ha,Nt as ia,xn as ja,eG as ka,ur as la,Jn as ma,BN as na,mi as oa,gi as pa,jr as qa,qs as ra,wG as sa,Lg as ta,Lo as ua,NG as va,n6 as wa,i6 as xa,jD as ya,Di as za,Ji as Aa,DB as Ba,Xi as Ca,Vh as Da,Bq as Ea,Vq as Fa,uT as Ga,ck as Ha,ch as Ia,$D as Ja,hC as Ka,b6 as La,s_ as Ma,C6 as Na,Fk as Oa,Vk as Pa,$k as Qa,Hk as Ra,bC as Sa,DC as Ta,EC as Ua,Yk as Va,Jk as Wa,E6 as Xa,xC as Ya,IC as Za,TL as _a,OL as $a,qZ as ab,YZ as bb,lE as cb,tq as db,p2 as eb,nq as fb,cE as gb,iq as hb,uE as ib,pE as jb,A2 as kb,rq as lb,oq as mb,vE as nb,Yi as ob,wq as pb,yE as qb,$q as rb,Hh as sb,zh as tb,Xq as ub,pT as vb,mT as wb,yT as xb,CT as yb,uY as zb,gY as Ab,LY as Bb};