From 119b0185dbc7cd6b1c28dba31eeb4c5f0c04c6d7 Mon Sep 17 00:00:00 2001 From: TriangleJuice Date: Fri, 19 Jan 2024 12:53:47 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=2007289?= =?UTF-8?q?f113dc0ae1da1d3119ea7a08d54613b3bca=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 4 ++-- main.48042cf1d18839c3.js | 1 - main.6089e2e5d9c7467c.js | 1 + styles.8e5c47f0385549a1.css | 1 - styles.c18d604d77abcd12.css | 1 + 5 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 main.48042cf1d18839c3.js create mode 100644 main.6089e2e5d9c7467c.js delete mode 100644 styles.8e5c47f0385549a1.css create mode 100644 styles.c18d604d77abcd12.css diff --git a/index.html b/index.html index 4a387f7d..74e77c47 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@ - + - + \ No newline at end of file diff --git a/main.48042cf1d18839c3.js b/main.48042cf1d18839c3.js deleted file mode 100644 index aa38b199..00000000 --- a/main.48042cf1d18839c3.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkstyleguide=self.webpackChunkstyleguide||[]).push([[179],{923:(Je,he,F)=>{"use strict";var ue={};F.r(ue),F.d(ue,{BasemapLayer:()=>_0,DynamicMapLayer:()=>mL,FeatureLayer:()=>gL,FeatureLayerService:()=>hL,FeatureManager:()=>y0,Find:()=>tL,Identify:()=>g0,IdentifyFeatures:()=>iL,IdentifyImage:()=>oL,ImageMapLayer:()=>pL,ImageService:()=>cL,MapService:()=>aL,Query:()=>XP,RasterLayer:()=>tx,Service:()=>K_,Support:()=>Hl,Task:()=>Q_,TiledMapLayer:()=>ex,Util:()=>n5,VERSION:()=>_5,basemapLayer:()=>d5,dynamicMapLayer:()=>m5,featureLayer:()=>g5,featureLayerService:()=>fL,find:()=>nL,get:()=>c0,identify:()=>o5,identifyFeatures:()=>rL,identifyImage:()=>sL,imageMapLayer:()=>p5,imageService:()=>dL,mapService:()=>lL,options:()=>VP,post:()=>UP,query:()=>eL,request:()=>GT,service:()=>l5,task:()=>i5,tiledMapLayer:()=>h5});var i=F(62);let E=null;function M(){return E}class U{}const W=new i.InjectionToken("DocumentToken");let Q=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(){return function q(){return(0,i.\u0275\u0275inject)(z)}()},providedIn:"platform"}),t})();const H=new i.InjectionToken("Location Initialized");let z=(()=>{class t extends Q{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return M().getBaseHref(this._doc)}onPopState(e){const r=M().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){const r=M().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,r,o){J()?this._history.pushState(e,r,o):this._location.hash=o}replaceState(e,r,o){J()?this._history.replaceState(e,r,o):this._location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(W))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(){return function Y(){return new z((0,i.\u0275\u0275inject)(W))}()},providedIn:"platform"}),t})();function J(){return!!window.history.pushState}function me(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function rt(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function _e(t){return t&&"?"!==t[0]?"?"+t:t}let te=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(){return(0,i.inject)(mt)},providedIn:"root"}),t})();const Ut=new i.InjectionToken("appBaseHref");let mt=(()=>{class t extends te{constructor(e,r){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??(0,i.inject)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return me(this._baseHref,e)}path(e=!1){const r=this._platformLocation.pathname+_e(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${r}${o}`:r}pushState(e,r,o,c){const h=this.prepareExternalUrl(o+_e(c));this._platformLocation.pushState(e,r,h)}replaceState(e,r,o,c){const h=this.prepareExternalUrl(o+_e(c));this._platformLocation.replaceState(e,r,h)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(Q),i.\u0275\u0275inject(Ut,8))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jn=(()=>{class t extends te{constructor(e,r){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(e){const r=me(this._baseHref,e);return r.length>0?"#"+r:r}pushState(e,r,o,c){let h=this.prepareExternalUrl(o+_e(c));0==h.length&&(h=this._platformLocation.pathname),this._platformLocation.pushState(e,r,h)}replaceState(e,r,o,c){let h=this.prepareExternalUrl(o+_e(c));0==h.length&&(h=this._platformLocation.pathname),this._platformLocation.replaceState(e,r,h)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(Q),i.\u0275\u0275inject(Ut,8))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),qn=(()=>{class t{constructor(e){this._subject=new i.EventEmitter,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const r=this._locationStrategy.getBaseHref();this._basePath=function Ge(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(rt(Ve(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(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+_e(r))}normalize(e){return t.stripTrailingSlash(function ci(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,Ve(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,r="",o=null){this._locationStrategy.pushState(o,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+_e(r)),o)}replaceState(e,r="",o=null){this._locationStrategy.replaceState(o,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+_e(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(o=>o(e,r))}subscribe(e,r,o){return this._subject.subscribe({next:e,error:r,complete:o})}}return t.normalizeQueryParams=_e,t.joinWithSlash=me,t.stripTrailingSlash=rt,t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(te))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(){return function Se(){return new qn((0,i.\u0275\u0275inject)(te))}()},providedIn:"root"}),t})();function Ve(t){return t.replace(/\/index.html$/,"")}var xt=(()=>((xt=xt||{})[xt.Format=0]="Format",xt[xt.Standalone=1]="Standalone",xt))(),Ce=(()=>((Ce=Ce||{})[Ce.Narrow=0]="Narrow",Ce[Ce.Abbreviated=1]="Abbreviated",Ce[Ce.Wide=2]="Wide",Ce[Ce.Short=3]="Short",Ce))(),Dt=(()=>((Dt=Dt||{})[Dt.Short=0]="Short",Dt[Dt.Medium=1]="Medium",Dt[Dt.Long=2]="Long",Dt[Dt.Full=3]="Full",Dt))(),ce=(()=>((ce=ce||{})[ce.Decimal=0]="Decimal",ce[ce.Group=1]="Group",ce[ce.List=2]="List",ce[ce.PercentSign=3]="PercentSign",ce[ce.PlusSign=4]="PlusSign",ce[ce.MinusSign=5]="MinusSign",ce[ce.Exponential=6]="Exponential",ce[ce.SuperscriptingExponent=7]="SuperscriptingExponent",ce[ce.PerMille=8]="PerMille",ce[ce.Infinity=9]="Infinity",ce[ce.NaN=10]="NaN",ce[ce.TimeSeparator=11]="TimeSeparator",ce[ce.CurrencyDecimal=12]="CurrencyDecimal",ce[ce.CurrencyGroup=13]="CurrencyGroup",ce))();function di(t,n){return Un((0,i.\u0275findLocaleData)(t)[i.\u0275LocaleDataIndex.DateFormat],n)}function Vi(t,n){return Un((0,i.\u0275findLocaleData)(t)[i.\u0275LocaleDataIndex.TimeFormat],n)}function Cn(t,n){return Un((0,i.\u0275findLocaleData)(t)[i.\u0275LocaleDataIndex.DateTimeFormat],n)}function We(t,n){const e=(0,i.\u0275findLocaleData)(t),r=e[i.\u0275LocaleDataIndex.NumberSymbols][n];if(typeof r>"u"){if(n===ce.CurrencyDecimal)return e[i.\u0275LocaleDataIndex.NumberSymbols][ce.Decimal];if(n===ce.CurrencyGroup)return e[i.\u0275LocaleDataIndex.NumberSymbols][ce.Group]}return r}function Ar(t){if(!t[i.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[i.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Un(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function _s(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const ql=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,xe={},va=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var nn=(()=>((nn=nn||{})[nn.Short=0]="Short",nn[nn.ShortGMT=1]="ShortGMT",nn[nn.Long=2]="Long",nn[nn.Extended=3]="Extended",nn))(),De=(()=>((De=De||{})[De.FullYear=0]="FullYear",De[De.Month=1]="Month",De[De.Date=2]="Date",De[De.Hours=3]="Hours",De[De.Minutes=4]="Minutes",De[De.Seconds=5]="Seconds",De[De.FractionalSeconds=6]="FractionalSeconds",De[De.Day=7]="Day",De))(),Ze=(()=>((Ze=Ze||{})[Ze.DayPeriods=0]="DayPeriods",Ze[Ze.Days=1]="Days",Ze[Ze.Months=2]="Months",Ze[Ze.Eras=3]="Eras",Ze))();function ov(t,n,e,r){let o=function Hi(t){if(fi(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[o,c=1,h=1]=t.split("-").map(y=>+y);return Lt(o,c-1,h)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let r;if(r=t.match(ql))return function Ee(t){const n=new Date(0);let e=0,r=0;const o=t[8]?n.setUTCFullYear:n.setFullYear,c=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),r=Number(t[9]+t[11])),o.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const h=Number(t[4]||0)-e,y=Number(t[5]||0)-r,D=Number(t[6]||0),x=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return c.call(n,h,y,D,x),n}(r)}const n=new Date(t);if(!fi(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=ji(e,n)||n;let y,h=[];for(;n;){if(y=va.exec(n),!y){h.push(n);break}{h=h.concat(y.slice(1));const A=h.pop();if(!A)break;n=A}}let D=o.getTimezoneOffset();r&&(D=wa(r,D),o=function pp(t,n,e){const r=e?-1:1,o=t.getTimezoneOffset();return function bs(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,r*(wa(n,o)-o))}(o,r,!0));let x="";return h.forEach(A=>{const k=function ys(t){if(ko[t])return ko[t];let n;switch(t){case"G":case"GG":case"GGG":n=bt(Ze.Eras,Ce.Abbreviated);break;case"GGGG":n=bt(Ze.Eras,Ce.Wide);break;case"GGGGG":n=bt(Ze.Eras,Ce.Narrow);break;case"y":n=Ft(De.FullYear,1,0,!1,!0);break;case"yy":n=Ft(De.FullYear,2,0,!0,!0);break;case"yyy":n=Ft(De.FullYear,3,0,!1,!0);break;case"yyyy":n=Ft(De.FullYear,4,0,!1,!0);break;case"Y":n=Oo(1);break;case"YY":n=Oo(2,!0);break;case"YYY":n=Oo(3);break;case"YYYY":n=Oo(4);break;case"M":case"L":n=Ft(De.Month,1,1);break;case"MM":case"LL":n=Ft(De.Month,2,1);break;case"MMM":n=bt(Ze.Months,Ce.Abbreviated);break;case"MMMM":n=bt(Ze.Months,Ce.Wide);break;case"MMMMM":n=bt(Ze.Months,Ce.Narrow);break;case"LLL":n=bt(Ze.Months,Ce.Abbreviated,xt.Standalone);break;case"LLLL":n=bt(Ze.Months,Ce.Wide,xt.Standalone);break;case"LLLLL":n=bt(Ze.Months,Ce.Narrow,xt.Standalone);break;case"w":n=Rt(1);break;case"ww":n=Rt(2);break;case"W":n=Rt(1,!0);break;case"d":n=Ft(De.Date,1);break;case"dd":n=Ft(De.Date,2);break;case"c":case"cc":n=Ft(De.Day,1);break;case"ccc":n=bt(Ze.Days,Ce.Abbreviated,xt.Standalone);break;case"cccc":n=bt(Ze.Days,Ce.Wide,xt.Standalone);break;case"ccccc":n=bt(Ze.Days,Ce.Narrow,xt.Standalone);break;case"cccccc":n=bt(Ze.Days,Ce.Short,xt.Standalone);break;case"E":case"EE":case"EEE":n=bt(Ze.Days,Ce.Abbreviated);break;case"EEEE":n=bt(Ze.Days,Ce.Wide);break;case"EEEEE":n=bt(Ze.Days,Ce.Narrow);break;case"EEEEEE":n=bt(Ze.Days,Ce.Short);break;case"a":case"aa":case"aaa":n=bt(Ze.DayPeriods,Ce.Abbreviated);break;case"aaaa":n=bt(Ze.DayPeriods,Ce.Wide);break;case"aaaaa":n=bt(Ze.DayPeriods,Ce.Narrow);break;case"b":case"bb":case"bbb":n=bt(Ze.DayPeriods,Ce.Abbreviated,xt.Standalone,!0);break;case"bbbb":n=bt(Ze.DayPeriods,Ce.Wide,xt.Standalone,!0);break;case"bbbbb":n=bt(Ze.DayPeriods,Ce.Narrow,xt.Standalone,!0);break;case"B":case"BB":case"BBB":n=bt(Ze.DayPeriods,Ce.Abbreviated,xt.Format,!0);break;case"BBBB":n=bt(Ze.DayPeriods,Ce.Wide,xt.Format,!0);break;case"BBBBB":n=bt(Ze.DayPeriods,Ce.Narrow,xt.Format,!0);break;case"h":n=Ft(De.Hours,1,-12);break;case"hh":n=Ft(De.Hours,2,-12);break;case"H":n=Ft(De.Hours,1);break;case"HH":n=Ft(De.Hours,2);break;case"m":n=Ft(De.Minutes,1);break;case"mm":n=Ft(De.Minutes,2);break;case"s":n=Ft(De.Seconds,1);break;case"ss":n=Ft(De.Seconds,2);break;case"S":n=Ft(De.FractionalSeconds,1);break;case"SS":n=Ft(De.FractionalSeconds,2);break;case"SSS":n=Ft(De.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=vs(nn.Short);break;case"ZZZZZ":n=vs(nn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=vs(nn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=vs(nn.Long);break;default:return null}return ko[t]=n,n}(A);x+=k?k(o,e,D):"''"===A?"'":A.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),x}function Lt(t,n,e){const r=new Date(0);return r.setFullYear(t,n,e),r.setHours(0,0,0),r}function ji(t,n){const e=function Pe(t){return(0,i.\u0275findLocaleData)(t)[i.\u0275LocaleDataIndex.LocaleId]}(t);if(xe[e]=xe[e]||{},xe[e][n])return xe[e][n];let r="";switch(n){case"shortDate":r=di(t,Dt.Short);break;case"mediumDate":r=di(t,Dt.Medium);break;case"longDate":r=di(t,Dt.Long);break;case"fullDate":r=di(t,Dt.Full);break;case"shortTime":r=Vi(t,Dt.Short);break;case"mediumTime":r=Vi(t,Dt.Medium);break;case"longTime":r=Vi(t,Dt.Long);break;case"fullTime":r=Vi(t,Dt.Full);break;case"short":const o=ji(t,"shortTime"),c=ji(t,"shortDate");r=ya(Cn(t,Dt.Short),[o,c]);break;case"medium":const h=ji(t,"mediumTime"),y=ji(t,"mediumDate");r=ya(Cn(t,Dt.Medium),[h,y]);break;case"long":const D=ji(t,"longTime"),x=ji(t,"longDate");r=ya(Cn(t,Dt.Long),[D,x]);break;case"full":const A=ji(t,"fullTime"),k=ji(t,"fullDate");r=ya(Cn(t,Dt.Full),[A,k])}return r&&(xe[e][n]=r),r}function ya(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,r){return null!=n&&r in n?n[r]:e})),t}function Ui(t,n,e="-",r,o){let c="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,c=e));let h=String(t);for(;h.length0||y>-e)&&(y+=e),t===De.Hours)0===y&&-12===e&&(y=12);else if(t===De.FractionalSeconds)return function hi(t,n){return Ui(t,3).substring(0,n)}(y,n);const D=We(h,ce.MinusSign);return Ui(y,n,D,r,o)}}function bt(t,n,e=xt.Format,r=!1){return function(o,c){return function Hc(t,n,e,r,o,c){switch(e){case Ze.Months:return function Jn(t,n,e){const r=(0,i.\u0275findLocaleData)(t),c=Un([r[i.\u0275LocaleDataIndex.MonthsFormat],r[i.\u0275LocaleDataIndex.MonthsStandalone]],n);return Un(c,e)}(n,o,r)[t.getMonth()];case Ze.Days:return function Kn(t,n,e){const r=(0,i.\u0275findLocaleData)(t),c=Un([r[i.\u0275LocaleDataIndex.DaysFormat],r[i.\u0275LocaleDataIndex.DaysStandalone]],n);return Un(c,e)}(n,o,r)[t.getDay()];case Ze.DayPeriods:const h=t.getHours(),y=t.getMinutes();if(c){const x=function ga(t){const n=(0,i.\u0275findLocaleData)(t);return Ar(n),(n[i.\u0275LocaleDataIndex.ExtraData][2]||[]).map(r=>"string"==typeof r?_s(r):[_s(r[0]),_s(r[1])])}(n),A=function jc(t,n,e){const r=(0,i.\u0275findLocaleData)(t);Ar(r);const c=Un([r[i.\u0275LocaleDataIndex.ExtraData][0],r[i.\u0275LocaleDataIndex.ExtraData][1]],n)||[];return Un(c,e)||[]}(n,o,r),k=x.findIndex(j=>{if(Array.isArray(j)){const[V,K]=j,se=h>=V.hours&&y>=V.minutes,ae=h0?Math.floor(o/60):Math.ceil(o/60);switch(t){case nn.Short:return(o>=0?"+":"")+Ui(h,2,c)+Ui(Math.abs(o%60),2,c);case nn.ShortGMT:return"GMT"+(o>=0?"+":"")+Ui(h,1,c);case nn.Long:return"GMT"+(o>=0?"+":"")+Ui(h,2,c)+":"+Ui(Math.abs(o%60),2,c);case nn.Extended:return 0===r?"Z":(o>=0?"+":"")+Ui(h,2,c)+":"+Ui(Math.abs(o%60),2,c);default:throw new Error(`Unknown zone width "${t}"`)}}}const zc=0,Or=4;function $c(t){return Lt(t.getFullYear(),t.getMonth(),t.getDate()+(Or-t.getDay()))}function Rt(t,n=!1){return function(e,r){let o;if(n){const c=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,h=e.getDate();o=1+Math.floor((h+c)/7)}else{const c=$c(e),h=function Qr(t){const n=Lt(t,zc,1).getDay();return Lt(t,0,1+(n<=Or?Or:Or+7)-n)}(c.getFullYear()),y=c.getTime()-h.getTime();o=1+Math.round(y/6048e5)}return Ui(o,t,We(r,ce.MinusSign))}}function Oo(t,n=!1){return function(e,r){return Ui($c(e).getFullYear(),t,We(r,ce.MinusSign),n)}}const ko={};function wa(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function fi(t){return t instanceof Date&&!isNaN(t.valueOf())}const pi=/\s+/,He=[];let ze=(()=>{class t{constructor(e,r,o,c){this._iterableDiffers=e,this._keyValueDiffers=r,this._ngEl=o,this._renderer=c,this.initialClasses=He,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(pi):He}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(pi):e}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const r of e)this._updateState(r,!0);else if(null!=e)for(const r of Object.keys(e))this._updateState(r,Boolean(e[r]));this._applyStateDiff()}_updateState(e,r){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(e,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const r=e[0],o=e[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(e,r){(e=e.trim()).length>0&&e.split(pi).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(i.KeyValueDiffers),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class ge{constructor(n,e,r,o){this.$implicit=n,this.ngForOf=e,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let re=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,r,o){this._viewContainer=e,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const r=this._viewContainer;e.forEachOperation((o,c,h)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new ge(o.item,this._ngForOf,-1,-1),null===h?void 0:h);else if(null==h)r.remove(null===c?void 0:c);else if(null!==c){const y=r.get(c);r.move(y,h),qe(y,o)}});for(let o=0,c=r.length;o{qe(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,r){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function qe(t,n){t.context.$implicit=n.item}let Fe=(()=>{class t{constructor(e,r){this._viewContainer=e,this._context=new wt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Jr("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Jr("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,r){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class wt{constructor(){this.$implicit=null,this.ngIf=null}}function Jr(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.\u0275stringify)(n)}'.`)}let gi=(()=>{class t{constructor(e,r,o){this._ngEl=e,this._differs=r,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,r){const[o,c]=e.split("."),h=-1===o.indexOf("-")?void 0:i.RendererStyleFlags2.DashCase;null!=r?this._renderer.setStyle(this._ngEl.nativeElement,o,c?`${r}${c}`:r,h):this._renderer.removeStyle(this._ngEl.nativeElement,o,h)}_applyChanges(e){e.forEachRemovedItem(r=>this._setStyle(r.key,null)),e.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),e.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.KeyValueDiffers),i.\u0275\u0275directiveInject(i.Renderer2))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),Qt=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:c,ngTemplateOutletInjector:h}=this;this._viewRef=r.createEmbeddedView(o,c,h?{injector:h}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[i.\u0275\u0275NgOnChangesFeature]}),t})();function rn(t,n){return new i.\u0275RuntimeError(2100,!1)}const Ye=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let fn=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw rn();return e.replace(Ye,r=>r[0].toUpperCase()+r.slice(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.\u0275\u0275definePipe({name:"titlecase",type:t,pure:!0,standalone:!0}),t})();const pn=new i.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE"),qc=new i.InjectionToken("DATE_PIPE_DEFAULT_OPTIONS");let mn=(()=>{class t{constructor(e,r,o){this.locale=e,this.defaultTimezone=r,this.defaultOptions=o}transform(e,r,o,c){if(null==e||""===e||e!=e)return null;try{return ov(e,r??this.defaultOptions?.dateFormat??"mediumDate",c||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(h){throw rn()}}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16),i.\u0275\u0275directiveInject(pn,24),i.\u0275\u0275directiveInject(qc,24))},t.\u0275pipe=i.\u0275\u0275definePipe({name:"date",type:t,pure:!0,standalone:!0}),t})(),Nt=(()=>{class t{transform(e){return JSON.stringify(e,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.\u0275\u0275definePipe({name:"json",type:t,pure:!1,standalone:!0}),t})(),ot=(()=>{class t{transform(e,r,o){if(null==e)return null;if(!this.supports(e))throw rn();return e.slice(r,o)}supports(e){return"string"==typeof e||Array.isArray(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.\u0275\u0275definePipe({name:"slice",type:t,pure:!1,standalone:!0}),t})(),Ke=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({}),t})();const Es="browser";function Vo(t){return t===Es}let lv=(()=>{class t{}return t.\u0275prov=(0,i.\u0275\u0275defineInjectable)({token:t,providedIn:"root",factory:()=>new lr((0,i.\u0275\u0275inject)(W),window)}),t})();class lr{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function Xl(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const c=o.shadowRoot;if(c){const h=c.getElementById(n)||c.querySelector(`[name="${n}"]`);if(h)return h}o=r.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),r=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,c=this.offset();this.window.scrollTo(r-c[0],o-c[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=Fr(this.window.history)||Fr(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Fr(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class dd extends U{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Oa extends dd{static makeCurrent(){!function B(t){E||(E=t)}(new Oa)}onAndCancel(n,e,r){return n.addEventListener(e,r,!1),()=>{n.removeEventListener(e,r,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function ka(){return bi=bi||document.querySelector("base"),bi?bi.getAttribute("href"):null}();return null==e?null:function so(t){Wi=Wi||document.createElement("a"),Wi.setAttribute("href",t);const n=Wi.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){bi=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function An(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const r=e.indexOf("="),[o,c]=-1==r?[e,""]:[e.slice(0,r),e.slice(r+1)];if(o.trim()===n)return decodeURIComponent(c)}return null}(document.cookie,n)}}let Wi,bi=null;const Fa=new i.InjectionToken("TRANSITION_ID"),$o=[{provide:i.APP_INITIALIZER,useFactory:function hd(t,n,e){return()=>{e.get(i.ApplicationInitStatus).donePromise.then(()=>{const r=M(),o=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let c=0;c{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const Ra=new i.InjectionToken("EventManagerPlugins");let ao=(()=>{class t{constructor(e,r){this._zone=r,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,r,o){return this._findPluginFor(r).addEventListener(e,r,o)}addGlobalEventListener(e,r,o){return this._findPluginFor(r).addGlobalEventListener(e,r,o)}getZone(){return this._zone}_findPluginFor(e){const r=this._eventNameToPlugin.get(e);if(r)return r;const o=this._plugins;for(let c=0;c{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const r of e)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(e){for(const r of e)0===this.changeUsageCount(r,-1)&&this.onStyleRemoved(r)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,r){const o=this.usageCount;let c=o.get(e)??0;return c+=r,c>0?o.set(e,c):o.delete(e),c}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),Wo=(()=>{class t extends md{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const r of this.hostNodes)this.addStyleToHost(r,e)}onStyleRemoved(e){const r=this.styleRef;r.get(e)?.forEach(c=>c.remove()),r.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const r of this.getAllStyles())this.addStyleToHost(e,r)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,r){const o=this.doc.createElement("style");o.textContent=r,e.appendChild(o);const c=this.styleRef.get(r);c?c.push(o):this.styleRef.set(r,[o])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(W))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const uu={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/"},gd=/%COMP%/g,p="%COMP%",g=`_nghost-${p}`,w=`_ngcontent-${p}`,P=new i.InjectionToken("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Z(t,n){return n.flat(100).map(e=>e.replace(gd,t))}function ie(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let fe=(()=>{class t{constructor(e,r,o,c){this.eventManager=e,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=c,this.rendererByCompId=new Map,this.defaultRenderer=new Re(e)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;const o=this.getOrCreateRenderer(e,r);return o instanceof lo?o.applyToHost(e):o instanceof Zi&&o.applyStyles(),o}getOrCreateRenderer(e,r){const o=this.rendererByCompId;let c=o.get(r.id);if(!c){const h=this.eventManager,y=this.sharedStylesHost,D=this.removeStylesOnCompDestory;switch(r.encapsulation){case i.ViewEncapsulation.Emulated:c=new lo(h,y,r,this.appId,D);break;case i.ViewEncapsulation.ShadowDom:return new ni(h,y,e,r);default:c=new Zi(h,y,r,D)}c.onDestroy=()=>o.delete(r.id),o.set(r.id,c)}return c}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(ao),i.\u0275\u0275inject(Wo),i.\u0275\u0275inject(i.APP_ID),i.\u0275\u0275inject(P))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();class Re{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(uu[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(Nr(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(Nr(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let r="string"==typeof n?document.querySelector(n):n;if(!r)throw new Error(`The selector "${n}" did not match any elements`);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,o){if(o){e=o+":"+e;const c=uu[o];c?n.setAttributeNS(c,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){const o=uu[r];o?n.removeAttributeNS(o,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,o){o&(i.RendererStyleFlags2.DashCase|i.RendererStyleFlags2.Important)?n.style.setProperty(e,r,o&i.RendererStyleFlags2.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&i.RendererStyleFlags2.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n[e]=r}setValue(n,e){n.nodeValue=e}listen(n,e,r){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,ie(r)):this.eventManager.addEventListener(n,e,ie(r))}}function Nr(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class ni extends Re{constructor(n,e,r,o){super(n),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=Z(o.id,o.styles);for(const h of c){const y=document.createElement("style");y.textContent=h,this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Zi extends Re{constructor(n,e,r,o,c=r.id){super(n),this.sharedStylesHost=e,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=Z(c,r.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class lo extends Zi{constructor(n,e,r,o,c){const h=o+"-"+r.id;super(n,e,r,c,h),this.contentAttr=function R(t){return w.replace(gd,t)}(h),this.hostAttr=function G(t){return g.replace(gd,t)}(h)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}}let cu=(()=>{class t extends pd{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,o){return e.addEventListener(r,o,!1),()=>this.removeEventListener(e,r,o)}removeEventListener(e,r,o){return e.removeEventListener(r,o)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(W))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const du=["alt","control","meta","shift"],hu={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Na={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Ap=(()=>{class t extends pd{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,r,o){const c=t.parseEventName(r),h=t.eventCallback(c.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>M().onAndCancel(e,c.domEventName,h))}static parseEventName(e){const r=e.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const c=t._normalizeKey(r.pop());let h="",y=r.indexOf("code");if(y>-1&&(r.splice(y,1),h="code."),du.forEach(x=>{const A=r.indexOf(x);A>-1&&(r.splice(A,1),h+=x+".")}),h+=c,0!=r.length||0===c.length)return null;const D={};return D.domEventName=o,D.fullKey=h,D}static matchEventFullKeyCode(e,r){let o=hu[e.key]||e.key,c="";return r.indexOf("code.")>-1&&(o=e.code,c="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),du.forEach(h=>{h!==o&&(0,Na[h])(e)&&(c+=h+".")}),c+=o,c===r)}static eventCallback(e,r,o){return c=>{t.matchEventFullKeyCode(c,e)&&o.runGuarded(()=>r(c))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(W))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const hv=(0,i.createPlatformFactory)(i.platformCore,"browser",[{provide:i.PLATFORM_ID,useValue:Es},{provide:i.PLATFORM_INITIALIZER,useValue:function Va(){Oa.makeCurrent()},multi:!0},{provide:W,useFactory:function _d(){return(0,i.\u0275setDocument)(document),document},deps:[]}]),ks=new i.InjectionToken(""),fv=[{provide:i.\u0275TESTABILITY_GETTER,useClass:class Go{addToWindow(n){i.\u0275global.getAngularTestability=(r,o=!0)=>{const c=n.findTestabilityInTree(r,o);if(null==c)throw new Error("Could not find testability for element.");return c},i.\u0275global.getAllAngularTestabilities=()=>n.getAllTestabilities(),i.\u0275global.getAllAngularRootElements=()=>n.getAllRootElements(),i.\u0275global.frameworkStabilizers||(i.\u0275global.frameworkStabilizers=[]),i.\u0275global.frameworkStabilizers.push(r=>{const o=i.\u0275global.getAllAngularTestabilities();let c=o.length,h=!1;const y=function(D){h=h||D,c--,0==c&&r(h)};o.forEach(function(D){D.whenStable(y)})})}findTestabilityInTree(n,e,r){return null==e?null:n.getTestability(e)??(r?M().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:i.\u0275TESTABILITY,useClass:i.Testability,deps:[i.NgZone,i.TestabilityRegistry,i.\u0275TESTABILITY_GETTER]},{provide:i.Testability,useClass:i.Testability,deps:[i.NgZone,i.TestabilityRegistry,i.\u0275TESTABILITY_GETTER]}],Op=[{provide:i.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:i.ErrorHandler,useFactory:function hr(){return new i.ErrorHandler},deps:[]},{provide:Ra,useClass:cu,multi:!0,deps:[W,i.NgZone,i.PLATFORM_ID]},{provide:Ra,useClass:Ap,multi:!0,deps:[W]},{provide:fe,useClass:fe,deps:[ao,Wo,i.APP_ID,P]},{provide:i.RendererFactory2,useExisting:fe},{provide:md,useExisting:Wo},{provide:Wo,useClass:Wo,deps:[W]},{provide:ao,useClass:ao,deps:[Ra,i.NgZone]},{provide:class eu{},useClass:fd,deps:[]},[]];let mu=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:i.APP_ID,useValue:e.appId},{provide:Fa,useExisting:i.APP_ID},$o]}}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(ks,12))},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({providers:[...Op,...fv],imports:[Ke,i.ApplicationModule]}),t})(),kp=(()=>{class t{constructor(e){this._doc=e,this._dom=M()}addTag(e,r=!1){return e?this._getOrCreateElement(e,r):null}addTags(e,r=!1){return e?e.reduce((o,c)=>(c&&o.push(this._getOrCreateElement(c,r)),o),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const r=this._doc.querySelectorAll(`meta[${e}]`);return r?[].slice.call(r):[]}updateTag(e,r){if(!e)return null;r=r||this._parseSelector(e);const o=this.getTag(r);return o?this._setMetaElementAttributes(e,o):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,r=!1){if(!r){const h=this._parseSelector(e),y=this.getTags(h).filter(D=>this._containsAttributes(e,D))[0];if(void 0!==y)return y}const o=this._dom.createElement("meta");return this._setMetaElementAttributes(e,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(e,r){return Object.keys(e).forEach(o=>r.setAttribute(this._getMetaKeyMap(o),e[o])),r}_parseSelector(e){const r=e.name?"name":"property";return`${r}="${e[r]}"`}_containsAttributes(e,r){return Object.keys(e).every(o=>r.getAttribute(this._getMetaKeyMap(o))===e[o])}_getMetaKeyMap(e){return Fp[e]||e}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(W))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(e){let r=null;return r=e?new e:function Z0(){return new kp((0,i.\u0275\u0275inject)(W))}(),r},providedIn:"root"}),t})();const Fp={httpEquiv:"http-equiv"};let uo=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(W))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(e){let r=null;return r=e?new e:function ja(){return new uo((0,i.\u0275\u0275inject)(W))}(),r},providedIn:"root"}),t})();typeof window<"u"&&window;let Zo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(e){let r=null;return r=e?new(e||t):i.\u0275\u0275inject(_u),r},providedIn:"root"}),t})(),_u=(()=>{class t extends Zo{constructor(e){super(),this._doc=e}sanitize(e,r){if(null==r)return null;switch(e){case i.SecurityContext.NONE:return r;case i.SecurityContext.HTML:return(0,i.\u0275allowSanitizationBypassAndThrow)(r,"HTML")?(0,i.\u0275unwrapSafeValue)(r):(0,i.\u0275_sanitizeHtml)(this._doc,String(r)).toString();case i.SecurityContext.STYLE:return(0,i.\u0275allowSanitizationBypassAndThrow)(r,"Style")?(0,i.\u0275unwrapSafeValue)(r):r;case i.SecurityContext.SCRIPT:if((0,i.\u0275allowSanitizationBypassAndThrow)(r,"Script"))return(0,i.\u0275unwrapSafeValue)(r);throw new Error("unsafe value used in a script context");case i.SecurityContext.URL:return(0,i.\u0275allowSanitizationBypassAndThrow)(r,"URL")?(0,i.\u0275unwrapSafeValue)(r):(0,i.\u0275_sanitizeUrl)(String(r));case i.SecurityContext.RESOURCE_URL:if((0,i.\u0275allowSanitizationBypassAndThrow)(r,"ResourceURL"))return(0,i.\u0275unwrapSafeValue)(r);throw new Error(`unsafe value used in a resource URL context (see ${i.\u0275XSS_SECURITY_URL})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${i.\u0275XSS_SECURITY_URL})`)}}bypassSecurityTrustHtml(e){return(0,i.\u0275bypassSanitizationTrustHtml)(e)}bypassSecurityTrustStyle(e){return(0,i.\u0275bypassSanitizationTrustStyle)(e)}bypassSecurityTrustScript(e){return(0,i.\u0275bypassSanitizationTrustScript)(e)}bypassSecurityTrustUrl(e){return(0,i.\u0275bypassSanitizationTrustUrl)(e)}bypassSecurityTrustResourceUrl(e){return(0,i.\u0275bypassSanitizationTrustResourceUrl)(e)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(W))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(e){let r=null;return r=e?new e:function pv(t){return new _u(t.get(W))}(i.\u0275\u0275inject(i.Injector)),r},providedIn:"root"}),t})();function vu(t){return(vu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function _(t,n,e){return(n=function Y0(t){var n=function Ux(t,n){if("object"!==vu(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!==vu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===vu(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}let co={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Q0=/[&<>"']/,mv=new RegExp(Q0.source,"g"),gv=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,K0=new RegExp(gv.source,"g"),J0={"&":"&","<":"<",">":">",'"':""","'":"'"},_v=t=>J0[t];function Gn(t,n){if(n){if(Q0.test(t))return t.replace(mv,_v)}else if(gv.test(t))return t.replace(K0,_v);return t}const vv=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function bd(t){return t.replace(vv,(n,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):"")}const wd=/(^|[^\[])\^/g;function _t(t,n){t="string"==typeof t?t:t.source,n=n||"";const e={replace:(r,o)=>(o=(o=o.source||o).replace(wd,"$1"),t=t.replace(r,o),e),getRegex:()=>new RegExp(t,n)};return e}const yu=/[^\w:]/g,Cd=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Rs(t,n,e){if(t){let r;try{r=decodeURIComponent(bd(e)).replace(yu,"").toLowerCase()}catch{return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}n&&!Cd.test(e)&&(e=function bv(t,n){bu[" "+t]||(bu[" "+t]=yv.test(t)?t+"/":ho(t,"/",!0));const e=-1===(t=bu[" "+t]).indexOf(":");return"//"===n.substring(0,2)?e?n:t.replace(wu,"$1")+n:"/"===n.charAt(0)?e?n:t.replace(Dd,"$1")+n:t+n}(n,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const bu={},yv=/^[^:]+:\/*[^/]*$/,wu=/^([^:]+:)[\s\S]*$/,Dd=/^([^:]+:\/*[^/]*)[\s\S]*$/,Sd={exec:function(){}};function Vp(t,n){const r=t.replace(/\|/g,(c,h,y)=>{let D=!1,x=h;for(;--x>=0&&"\\"===y[x];)D=!D;return D?"|":" |"}).split(/ \|/);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>n)r.splice(n);else for(;r.length1;)1&n&&(e+=t),n>>=1,t+=t;return e+t}function jp(t,n,e,r){const o=n.href,c=n.title?Gn(n.title):null,h=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){r.state.inLink=!0;const y={type:"link",raw:e,href:o,title:c,text:h,tokens:r.inlineTokens(h)};return r.state.inLink=!1,y}return{type:"image",raw:e,href:o,title:c,text:Gn(h)}}class Cv{constructor(n){this.options=n||co}space(n){const e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){const e=this.rules.block.code.exec(n);if(e){const r=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?r:ho(r,"\n")}}}fences(n){const e=this.rules.block.fences.exec(n);if(e){const r=e[0],o=function wv(t,n){const e=t.match(/^(\s+)(?:```)/);if(null===e)return n;const r=e[1];return n.split("\n").map(o=>{const c=o.match(/^\s+/);if(null===c)return o;const[h]=c;return h.length>=r.length?o.slice(r.length):o}).join("\n")}(r,e[3]||"");return{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline._escapes,"$1"):e[2],text:o}}}heading(n){const e=this.rules.block.heading.exec(n);if(e){let r=e[2].trim();if(/#$/.test(r)){const o=ho(r,"#");(this.options.pedantic||!o||/ $/.test(o))&&(r=o.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(n){const e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:e[0]}}blockquote(n){const e=this.rules.block.blockquote.exec(n);if(e){const r=e[0].replace(/^ *>[ \t]?/gm,""),o=this.lexer.state.top;this.lexer.state.top=!0;const c=this.lexer.blockTokens(r);return this.lexer.state.top=o,{type:"blockquote",raw:e[0],tokens:c,text:r}}}list(n){let e=this.rules.block.list.exec(n);if(e){let r,o,c,h,y,D,x,A,k,j,V,K,se=e[1].trim();const ae=se.length>1,de={type:"list",raw:"",ordered:ae,start:ae?+se.slice(0,-1):"",loose:!1,items:[]};se=ae?`\\d{1,9}\\${se.slice(-1)}`:`\\${se}`,this.options.pedantic&&(se=ae?se:"[*+-]");const ye=new RegExp(`^( {0,3}${se})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;n&&(K=!1,(e=ye.exec(n))&&!this.rules.block.hr.test(n));){if(r=e[0],n=n.substring(r.length),A=e[2].split("\n",1)[0].replace(/^\t+/,tt=>" ".repeat(3*tt.length)),k=n.split("\n",1)[0],this.options.pedantic?(h=2,V=A.trimLeft()):(h=e[2].search(/[^ ]/),h=h>4?1:h,V=A.slice(h),h+=e[1].length),D=!1,!A&&/^ *$/.test(k)&&(r+=k+"\n",n=n.substring(k.length+1),K=!0),!K){const tt=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),pt=new RegExp(`^ {0,${Math.min(3,h-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),Ue=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:\`\`\`|~~~)`),dt=new RegExp(`^ {0,${Math.min(3,h-1)}}#`);for(;n&&(j=n.split("\n",1)[0],k=j,this.options.pedantic&&(k=k.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(Ue.test(k)||dt.test(k)||tt.test(k)||pt.test(n)));){if(k.search(/[^ ]/)>=h||!k.trim())V+="\n"+k.slice(h);else{if(D||A.search(/[^ ]/)>=4||Ue.test(A)||dt.test(A)||pt.test(A))break;V+="\n"+k}!D&&!k.trim()&&(D=!0),r+=j+"\n",n=n.substring(j.length+1),A=k.slice(h)}}de.loose||(x?de.loose=!0:/\n *\n *$/.test(r)&&(x=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(V),o&&(c="[ ] "!==o[0],V=V.replace(/^\[[ xX]\] +/,""))),de.items.push({type:"list_item",raw:r,task:!!o,checked:c,loose:!1,text:V}),de.raw+=r}de.items[de.items.length-1].raw=r.trimRight(),de.items[de.items.length-1].text=V.trimRight(),de.raw=de.raw.trimRight();const lt=de.items.length;for(y=0;y"space"===Ue.type),pt=tt.length>0&&tt.some(Ue=>/\n.*\n/.test(Ue.raw));de.loose=pt}if(de.loose)for(y=0;y$/,"$1").replace(this.rules.inline._escapes,"$1"):"",c=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline._escapes,"$1"):e[3];return{type:"def",tag:r,raw:e[0],href:o,title:c}}}table(n){const e=this.rules.block.table.exec(n);if(e){const r={type:"table",header:Vp(e[1]).map(o=>({text:o})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=e[0];let c,h,y,D,o=r.align.length;for(c=0;c({text:x}));for(o=r.header.length,h=0;h/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):Gn(e[0]):e[0]}}link(n){const e=this.rules.inline.link.exec(n);if(e){const r=e[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;const h=ho(r.slice(0,-1),"\\");if((r.length-h.length)%2==0)return}else{const h=function Cu(t,n){if(-1===t.indexOf(n[1]))return-1;const e=t.length;let r=0,o=0;for(;o-1){const D=(0===e[0].indexOf("!")?5:4)+e[1].length+h;e[2]=e[2].substring(0,h),e[0]=e[0].substring(0,D).trim(),e[3]=""}}let o=e[2],c="";if(this.options.pedantic){const h=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);h&&(o=h[1],c=h[3])}else c=e[3]?e[3].slice(1,-1):"";return o=o.trim(),/^$/.test(r)?o.slice(1):o.slice(1,-1)),jp(e,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:c&&c.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}reflink(n,e){let r;if((r=this.rules.inline.reflink.exec(n))||(r=this.rules.inline.nolink.exec(n))){let o=(r[2]||r[1]).replace(/\s+/g," ");if(o=e[o.toLowerCase()],!o){const c=r[0].charAt(0);return{type:"text",raw:c,text:c}}return jp(r,o,r[0],this.lexer)}}emStrong(n,e,r=""){let o=this.rules.inline.emStrong.lDelim.exec(n);if(!o||o[3]&&r.match(/[\p{L}\p{N}]/u))return;const c=o[1]||o[2]||"";if(!c||c&&(""===r||this.rules.inline.punctuation.exec(r))){const h=o[0].length-1;let y,D,x=h,A=0;const k="*"===o[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(k.lastIndex=0,e=e.slice(-1*n.length+h);null!=(o=k.exec(e));){if(y=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!y)continue;if(D=y.length,o[3]||o[4]){x+=D;continue}if((o[5]||o[6])&&h%3&&!((h+D)%3)){A+=D;continue}if(x-=D,x>0)continue;D=Math.min(D,D+x+A);const j=n.slice(0,h+o.index+(o[0].length-y.length)+D);if(Math.min(h,D)%2){const K=j.slice(1,-1);return{type:"em",raw:j,text:K,tokens:this.lexer.inlineTokens(K)}}const V=j.slice(2,-2);return{type:"strong",raw:j,text:V,tokens:this.lexer.inlineTokens(V)}}}}codespan(n){const e=this.rules.inline.code.exec(n);if(e){let r=e[2].replace(/\n/g," ");const o=/[^ ]/.test(r),c=/^ /.test(r)&&/ $/.test(r);return o&&c&&(r=r.substring(1,r.length-1)),r=Gn(r,!0),{type:"codespan",raw:e[0],text:r}}}br(n){const e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n){const e=this.rules.inline.del.exec(n);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(n,e){const r=this.rules.inline.autolink.exec(n);if(r){let o,c;return"@"===r[2]?(o=Gn(this.options.mangle?e(r[1]):r[1]),c="mailto:"+o):(o=Gn(r[1]),c=o),{type:"link",raw:r[0],text:o,href:c,tokens:[{type:"text",raw:o,text:o}]}}}url(n,e){let r;if(r=this.rules.inline.url.exec(n)){let o,c;if("@"===r[2])o=Gn(this.options.mangle?e(r[0]):r[0]),c="mailto:"+o;else{let h;do{h=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(h!==r[0]);o=Gn(r[0]),c="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:o,href:c,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(n,e){const r=this.rules.inline.text.exec(n);if(r){let o;return o=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Gn(r[0]):r[0]:Gn(this.options.smartypants?e(r[0]):r[0]),{type:"text",raw:r[0],text:o}}}}const Oe={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Sd,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Oe.def=_t(Oe.def).replace("label",Oe._label).replace("title",Oe._title).getRegex(),Oe.bullet=/(?:[*+-]|\d{1,9}[.)])/,Oe.listItemStart=_t(/^( *)(bull) */).replace("bull",Oe.bullet).getRegex(),Oe.list=_t(Oe.list).replace(/bull/g,Oe.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Oe.def.source+")").getRegex(),Oe._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Oe._comment=/|$)/,Oe.html=_t(Oe.html,"i").replace("comment",Oe._comment).replace("tag",Oe._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Oe.paragraph=_t(Oe._paragraph).replace("hr",Oe.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Oe._tag).getRegex(),Oe.blockquote=_t(Oe.blockquote).replace("paragraph",Oe.paragraph).getRegex(),Oe.normal={...Oe},Oe.gfm={...Oe.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Oe.gfm.table=_t(Oe.gfm.table).replace("hr",Oe.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Oe._tag).getRegex(),Oe.gfm.paragraph=_t(Oe._paragraph).replace("hr",Oe.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Oe.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Oe._tag).getRegex(),Oe.pedantic={...Oe.normal,html:_t("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Oe._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Sd,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:_t(Oe.normal._paragraph).replace("hr",Oe.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Oe.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const ve={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Sd,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Sd,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}ve._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",ve.punctuation=_t(ve.punctuation).replace(/punctuation/g,ve._punctuation).getRegex(),ve.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,ve.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,ve._comment=_t(Oe._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),ve.emStrong.lDelim=_t(ve.emStrong.lDelim).replace(/punct/g,ve._punctuation).getRegex(),ve.emStrong.rDelimAst=_t(ve.emStrong.rDelimAst,"g").replace(/punct/g,ve._punctuation).getRegex(),ve.emStrong.rDelimUnd=_t(ve.emStrong.rDelimUnd,"g").replace(/punct/g,ve._punctuation).getRegex(),ve._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ve._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ve._email=/[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])?)+(?![-_])/,ve.autolink=_t(ve.autolink).replace("scheme",ve._scheme).replace("email",ve._email).getRegex(),ve._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ve.tag=_t(ve.tag).replace("comment",ve._comment).replace("attribute",ve._attribute).getRegex(),ve._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ve._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,ve._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ve.link=_t(ve.link).replace("label",ve._label).replace("href",ve._href).replace("title",ve._title).getRegex(),ve.reflink=_t(ve.reflink).replace("label",ve._label).replace("ref",Oe._label).getRegex(),ve.nolink=_t(ve.nolink).replace("ref",Oe._label).getRegex(),ve.reflinkSearch=_t(ve.reflinkSearch,"g").replace("reflink",ve.reflink).replace("nolink",ve.nolink).getRegex(),ve.normal={...ve},ve.pedantic={...ve.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:_t(/^!?\[(label)\]\((.*?)\)/).replace("label",ve._label).getRegex(),reflink:_t(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ve._label).getRegex()},ve.gfm={...ve.normal,escape:_t(ve.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\D+" ".repeat(x.length));n;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(y=>!!(r=y.call({lexer:this},n,e))&&(n=n.substring(r.raw.length),e.push(r),!0)))){if(r=this.tokenizer.space(n)){n=n.substring(r.raw.length),1===r.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(r);continue}if(r=this.tokenizer.code(n)){n=n.substring(r.raw.length),o=e[e.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?e.push(r):(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(r=this.tokenizer.fences(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.heading(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.hr(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.blockquote(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.list(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.html(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.def(n)){n=n.substring(r.raw.length),o=e[e.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(o.raw+="\n"+r.raw,o.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(r=this.tokenizer.table(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.lheading(n)){n=n.substring(r.raw.length),e.push(r);continue}if(c=n,this.options.extensions&&this.options.extensions.startBlock){let y=1/0;const D=n.slice(1);let x;this.options.extensions.startBlock.forEach(function(A){x=A.call({lexer:this},D),"number"==typeof x&&x>=0&&(y=Math.min(y,x))}),y<1/0&&y>=0&&(c=n.substring(0,y+1))}if(this.state.top&&(r=this.tokenizer.paragraph(c))){o=e[e.length-1],h&&"paragraph"===o.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(r),h=c.length!==n.length,n=n.substring(r.raw.length);continue}if(r=this.tokenizer.text(n)){n=n.substring(r.raw.length),o=e[e.length-1],o&&"text"===o.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(r);continue}if(n){const y="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(y);break}throw new Error(y)}}return this.state.top=!0,e}inline(n,e=[]){return this.inlineQueue.push({src:n,tokens:e}),e}inlineTokens(n,e=[]){let r,o,c,y,D,x,h=n;if(this.tokens.links){const A=Object.keys(this.tokens.links);if(A.length>0)for(;null!=(y=this.tokenizer.rules.inline.reflinkSearch.exec(h));)A.includes(y[0].slice(y[0].lastIndexOf("[")+1,-1))&&(h=h.slice(0,y.index)+"["+eD("a",y[0].length-2)+"]"+h.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(y=this.tokenizer.rules.inline.blockSkip.exec(h));)h=h.slice(0,y.index)+"["+eD("a",y[0].length-2)+"]"+h.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(y=this.tokenizer.rules.inline.escapedEmSt.exec(h));)h=h.slice(0,y.index+y[0].length-2)+"++"+h.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;n;)if(D||(x=""),D=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(A=>!!(r=A.call({lexer:this},n,e))&&(n=n.substring(r.raw.length),e.push(r),!0)))){if(r=this.tokenizer.escape(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.tag(n)){n=n.substring(r.raw.length),o=e[e.length-1],o&&"text"===r.type&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):e.push(r);continue}if(r=this.tokenizer.link(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(r.raw.length),o=e[e.length-1],o&&"text"===r.type&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):e.push(r);continue}if(r=this.tokenizer.emStrong(n,h,x)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.codespan(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.br(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.del(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.autolink(n,Du)){n=n.substring(r.raw.length),e.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(n,Du))){n=n.substring(r.raw.length),e.push(r);continue}if(c=n,this.options.extensions&&this.options.extensions.startInline){let A=1/0;const k=n.slice(1);let j;this.options.extensions.startInline.forEach(function(V){j=V.call({lexer:this},k),"number"==typeof j&&j>=0&&(A=Math.min(A,j))}),A<1/0&&A>=0&&(c=n.substring(0,A+1))}if(r=this.tokenizer.inlineText(c,tD)){n=n.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(x=r.raw.slice(-1)),D=!0,o=e[e.length-1],o&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):e.push(r);continue}if(n){const A="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(A);break}throw new Error(A)}}return e}}class Up{constructor(n){this.options=n||co}code(n,e,r){const o=(e||"").match(/\S*/)[0];if(this.options.highlight){const c=this.options.highlight(n,o);null!=c&&c!==n&&(r=!0,n=c)}return n=n.replace(/\n$/,"")+"\n",o?'
'+(r?n:Gn(n,!0))+"
\n":"
"+(r?n:Gn(n,!0))+"
\n"}blockquote(n){return`
\n${n}
\n`}html(n){return n}heading(n,e,r,o){return this.options.headerIds?`${n}\n`:`${n}\n`}hr(){return this.options.xhtml?"
\n":"
\n"}list(n,e,r){const o=e?"ol":"ul";return"<"+o+(e&&1!==r?' start="'+r+'"':"")+">\n"+n+"\n"}listitem(n){return`
  • ${n}
  • \n`}checkbox(n){return" "}paragraph(n){return`

    ${n}

    \n`}table(n,e){return e&&(e=`${e}`),"\n\n"+n+"\n"+e+"
    \n"}tablerow(n){return`\n${n}\n`}tablecell(n,e){const r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+n+`\n`}strong(n){return`${n}`}em(n){return`${n}`}codespan(n){return`${n}`}br(){return this.options.xhtml?"
    ":"
    "}del(n){return`${n}`}link(n,e,r){if(null===(n=Rs(this.options.sanitize,this.options.baseUrl,n)))return r;let o='",o}image(n,e,r){if(null===(n=Rs(this.options.sanitize,this.options.baseUrl,n)))return r;let o=`${r}":">",o}text(n){return n}}class Ed{strong(n){return n}em(n){return n}codespan(n){return n}del(n){return n}html(n){return n}text(n){return n}link(n,e,r){return""+r}image(n,e,r){return""+r}br(){return""}}class nD{constructor(){this.seen={}}serialize(n){return n.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(n,e){let r=n,o=0;if(this.seen.hasOwnProperty(r)){o=this.seen[n];do{o++,r=n+"-"+o}while(this.seen.hasOwnProperty(r))}return e||(this.seen[n]=o,this.seen[r]=0),r}slug(n,e={}){const r=this.serialize(n);return this.getNextSafeSlug(r,e.dryrun)}}class po{constructor(n){this.options=n||co,this.options.renderer=this.options.renderer||new Up,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ed,this.slugger=new nD}static parse(n,e){return new po(e).parse(n)}static parseInline(n,e){return new po(e).parseInline(n)}parse(n,e=!0){let o,c,h,y,D,x,A,k,j,V,K,se,ae,de,ye,lt,tt,pt,Ue,r="";const dt=n.length;for(o=0;o0&&"paragraph"===ye.tokens[0].type?(ye.tokens[0].text=pt+" "+ye.tokens[0].text,ye.tokens[0].tokens&&ye.tokens[0].tokens.length>0&&"text"===ye.tokens[0].tokens[0].type&&(ye.tokens[0].tokens[0].text=pt+" "+ye.tokens[0].tokens[0].text)):ye.tokens.unshift({type:"text",text:pt}):de+=pt),de+=this.parse(ye.tokens,ae),j+=this.renderer.listitem(de,tt,lt);r+=this.renderer.list(j,K,se);continue;case"html":r+=this.renderer.html(V.text);continue;case"paragraph":r+=this.renderer.paragraph(this.parseInline(V.tokens));continue;case"text":for(j=V.tokens?this.parseInline(V.tokens):V.text;o+1{"function"==typeof r&&(o=r,r=null);const c={...r},h=function Dv(t,n,e){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",t){const o="

    An error occurred:

    "+Gn(r.message+"",!0)+"
    ";return n?Promise.resolve(o):e?void e(null,o):o}if(n)return Promise.reject(r);if(!e)throw r;e(r)}}((r={...Le.defaults,...c}).silent,r.async,o);if(typeof e>"u"||null===e)return h(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return h(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(function X0(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(r),r.hooks&&(r.hooks.options=r),o){const y=r.highlight;let D;try{r.hooks&&(e=r.hooks.preprocess(e)),D=t(e,r)}catch(k){return h(k)}const x=function(k){let j;if(!k)try{r.walkTokens&&Le.walkTokens(D,r.walkTokens),j=n(D,r),r.hooks&&(j=r.hooks.postprocess(j))}catch(V){k=V}return r.highlight=y,k?h(k):o(null,j)};if(!y||y.length<3||(delete r.highlight,!D.length))return x();let A=0;return Le.walkTokens(D,function(k){"code"===k.type&&(A++,setTimeout(()=>{y(k.text,k.lang,function(j,V){if(j)return x(j);null!=V&&V!==k.text&&(k.text=V,k.escaped=!0),A--,0===A&&x()})},0))}),void(0===A&&x())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(e):e).then(y=>t(y,r)).then(y=>r.walkTokens?Promise.all(Le.walkTokens(y,r.walkTokens)).then(()=>y):y).then(y=>n(y,r)).then(y=>r.hooks?r.hooks.postprocess(y):y).catch(h);try{r.hooks&&(e=r.hooks.preprocess(e));const y=t(e,r);r.walkTokens&&Le.walkTokens(y,r.walkTokens);let D=n(y,r);return r.hooks&&(D=r.hooks.postprocess(D)),D}catch(y){return h(y)}}}function Le(t,n,e){return Hp(fo.lex,po.parse)(t,n,e)}_(Td,"passThroughHooks",new Set(["preprocess","postprocess"])),Le.options=Le.setOptions=function(t){return function Ha(t){co=t}(Le.defaults={...Le.defaults,...t}),Le},Le.getDefaults=function wi(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},Le.defaults=co,Le.use=function(...t){const n=Le.defaults.extensions||{renderers:{},childTokens:{}};t.forEach(e=>{const r={...e};if(r.async=Le.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){const c=n.renderers[o.name];n.renderers[o.name]=c?function(...h){let y=o.renderer.apply(this,h);return!1===y&&(y=c.apply(this,h)),y}:o.renderer}if(o.tokenizer){if(!o.level||"block"!==o.level&&"inline"!==o.level)throw new Error("extension level must be 'block' or 'inline'");n[o.level]?n[o.level].unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&("block"===o.level?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:"inline"===o.level&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),r.extensions=n),e.renderer){const o=Le.defaults.renderer||new Up;for(const c in e.renderer){const h=o[c];o[c]=(...y)=>{let D=e.renderer[c].apply(o,y);return!1===D&&(D=h.apply(o,y)),D}}r.renderer=o}if(e.tokenizer){const o=Le.defaults.tokenizer||new Cv;for(const c in e.tokenizer){const h=o[c];o[c]=(...y)=>{let D=e.tokenizer[c].apply(o,y);return!1===D&&(D=h.apply(o,y)),D}}r.tokenizer=o}if(e.hooks){const o=Le.defaults.hooks||new Td;for(const c in e.hooks){const h=o[c];o[c]=Td.passThroughHooks.has(c)?y=>{if(Le.defaults.async)return Promise.resolve(e.hooks[c].call(o,y)).then(x=>h.call(o,x));const D=e.hooks[c].call(o,y);return h.call(o,D)}:(...y)=>{let D=e.hooks[c].apply(o,y);return!1===D&&(D=h.apply(o,y)),D}}r.hooks=o}if(e.walkTokens){const o=Le.defaults.walkTokens;r.walkTokens=function(c){let h=[];return h.push(e.walkTokens.call(this,c)),o&&(h=h.concat(o.call(this,c))),h}}Le.setOptions(r)})},Le.walkTokens=function(t,n){let e=[];for(const r of t)switch(e=e.concat(n.call(Le,r)),r.type){case"table":for(const o of r.header)e=e.concat(Le.walkTokens(o.tokens,n));for(const o of r.rows)for(const c of o)e=e.concat(Le.walkTokens(c.tokens,n));break;case"list":e=e.concat(Le.walkTokens(r.items,n));break;default:Le.defaults.extensions&&Le.defaults.extensions.childTokens&&Le.defaults.extensions.childTokens[r.type]?Le.defaults.extensions.childTokens[r.type].forEach(function(o){e=e.concat(Le.walkTokens(r[o],n))}):r.tokens&&(e=e.concat(Le.walkTokens(r.tokens,n)))}return e},Le.parseInline=Hp(fo.lexInline,po.parseInline),Le.Parser=po,Le.parser=po.parse,Le.Renderer=Up,Le.TextRenderer=Ed,Le.Lexer=fo,Le.lexer=fo.lex,Le.Tokenizer=Cv,Le.Slugger=nD,Le.Hooks=Td,Le.parse=Le;var zp=F(153);function Ev(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"pre")(1,"code"),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.codeSnippet)}}function $p(t,n){if(1&t&&i.\u0275\u0275element(0,"div",3),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("innerHTML",e.codeSnippet,i.\u0275\u0275sanitizeHtml)}}let Tt=(()=>{class t{constructor(e,r,o){_(this,"platformId",void 0),_(this,"el",void 0),_(this,"highlightJsService",void 0),_(this,"setClass",!0),_(this,"codeSnippet",void 0),_(this,"processMarkdown",!1),_(this,"scrollable",!0),this.platformId=e,this.el=r,this.highlightJsService=o}ngOnChanges(){this.processMarkdown&&(this.codeSnippet=Le(this.codeSnippet))}ngAfterViewInit(){if(Vo(this.platformId)){const e=this.el.nativeElement.querySelectorAll("pre");for(const r of e)r.classList.contains("a-pre")||(r.className+=" a-pre",this.scrollable&&(r.className+=" a-pre--scrollable")),this.highlightJsService.highlight(r)}}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.PLATFORM_ID),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(zp.vp))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-code-snippet"]],hostVars:2,hostBindings:function(e,r){2&e&&i.\u0275\u0275classProp("ngx-code-snippet",r.setClass)},inputs:{codeSnippet:"codeSnippet",processMarkdown:"processMarkdown",scrollable:"scrollable"},features:[i.\u0275\u0275NgOnChangesFeature],decls:3,vars:2,consts:[[1,"aui-code-snippet__inner"],[4,"ngIf"],["class","code-snippet-md",3,"innerHTML",4,"ngIf"],[1,"code-snippet-md",3,"innerHTML"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,Ev,3,1,"pre",1),i.\u0275\u0275template(2,$p,1,1,"div",2),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.processMarkdown),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.processMarkdown))},dependencies:[Fe],encapsulation:2,changeDetection:0})),t})();var yn=F(254),xd=F(866),pr=F(9),iD=F(454);function ke(...t){let n=t[t.length-1];return(0,xd.K)(n)?(t.pop(),(0,iD.r)(t,n)):(0,pr.n)(t)}var vt=F(529),Tv=F(279);class Ci extends vt.xQ{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Tv.N;return this._value}next(n){super.next(this._value=n)}}const Md=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var Gp=F(688),ii=F(489);class rD extends ii.L{notifyNext(n,e,r,o,c){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class xv extends ii.L{constructor(n,e,r){super(),this.parent=n,this.outerValue=e,this.outerIndex=r,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var ri=F(249),mr=F(498);function Mv(t,n,e,r,o=new xv(t,e,r)){if(!o.closed)return n instanceof mr.y?n.subscribe(o):(0,ri.s)(n)(o)}const Id={};function Fn(...t){let n,e;return(0,xd.K)(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&(0,Gp.k)(t[0])&&(t=t[0]),(0,pr.n)(t,e).lift(new Su(n))}class Su{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new Iv(n,this.resultSelector))}}class Iv extends rD{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(Id),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let r=0;rt.complete());function Ld(t){return t?function sD(t){return new mr.y(n=>t.schedule(()=>n.complete()))}(t):Ns}function Wp(t){return new mr.y(n=>{let e;try{e=t()}catch(o){return void n.error(o)}return(e?(0,yn.D)(e):Ld()).subscribe(n)})}var aD=F(843);function Eu(t,n){return new mr.y(n?e=>n.schedule(Zp,0,{error:t,subscriber:e}):e=>e.error(t))}function Zp({error:t,subscriber:n}){n.error(t)}var Ad=F(762),Xe=F(850),Pi=F(177);function gr(t,n){return"function"==typeof n?e=>e.pipe(gr((r,o)=>(0,yn.D)(t(r,o)).pipe((0,Xe.U)((c,h)=>n(r,c,o,h))))):e=>e.lift(new lD(t))}class lD{constructor(n){this.project=n}call(n,e){return e.subscribe(new qp(n,this.project))}}class qp extends Pi.Ds{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const r=this.index++;try{e=this.project(n,r)}catch(o){return void this.destination.error(o)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const r=new Pi.IY(this),o=this.destination;o.add(r),this.innerSubscription=(0,Pi.ft)(n,r),this.innerSubscription!==r&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const Yp=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function _r(t){return n=>0===t?Ld():n.lift(new Qp(t))}class Qp{constructor(n){if(this.total=n,this.total<0)throw new Yp}call(n,e){return e.subscribe(new Lv(n,this.total))}}class Lv extends ii.L{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,r=++this.count;r<=e&&(this.destination.next(n),r===e&&(this.destination.complete(),this.unsubscribe()))}}function vr(t,n){return function(r){return r.lift(new cD(t,n))}}class cD{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new dD(n,this.predicate,this.thisArg))}}class dD extends ii.L{constructor(n,e,r){super(n),this.predicate=e,this.thisArg=r,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(r){return void this.destination.error(r)}e&&this.destination.next(n)}}var Di=F(709);function Od(t=null){return n=>n.lift(new hD(t))}class hD{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new fD(n,this.defaultValue))}}class fD extends ii.L{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Kp(t=Xp){return n=>n.lift(new Jp(t))}class Jp{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new Av(n,this.errorFactory))}}class Av extends ii.L{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function Xp(){return new Md}var Ov=F(379);function qo(t,n){const e=arguments.length>=2;return r=>r.pipe(t?vr((o,c)=>t(o,c,r)):Ov.y,_r(1),e?Od(n):Kp(()=>new Md))}function Yo(t,n){return(0,Di.zg)(t,n,1)}function mo(){}var Bs=F(43);function $t(t,n,e){return function(o){return o.lift(new kv(t,n,e))}}class kv{constructor(n,e,r){this.nextOrObserver=n,this.error=e,this.complete=r}call(n,e){return e.subscribe(new pD(n,this.nextOrObserver,this.error,this.complete))}}class pD extends ii.L{constructor(n,e,r,o){super(n),this._tapNext=mo,this._tapError=mo,this._tapComplete=mo,this._tapError=r||mo,this._tapComplete=o||mo,(0,Bs.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||mo,this._tapError=e.error||mo,this._tapComplete=e.complete||mo)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function $a(t){return function(e){const r=new kd(t),o=e.lift(r);return r.caught=o}}class kd{constructor(n){this.selector=n}call(n,e){return e.subscribe(new mD(n,this.selector,this.caught))}}class mD extends Pi.Ds{constructor(n,e,r){super(n),this.selector=e,this.caught=r}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(c){return void super.error(c)}this._unsubscribeAndRecycle();const r=new Pi.IY(this);this.add(r);const o=(0,Pi.ft)(e,r);o!==r&&this.add(o)}}}function em(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(o){return o.lift(new Fv(t,n,e))}}class Fv{constructor(n,e,r=!1){this.accumulator=n,this.seed=e,this.hasSeed=r}call(n,e){return e.subscribe(new Rv(n,this.accumulator,this.seed,this.hasSeed))}}class Rv extends ii.L{constructor(n,e,r,o){super(n),this.accumulator=e,this._seed=r,this.hasSeed=o,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let r;try{r=this.accumulator(this.seed,n,e)}catch(o){this.destination.error(o)}this.seed=r,this.destination.next(r)}}function Tu(t){return function(e){return 0===t?Ld():e.lift(new Nv(t))}}class Nv{constructor(n){if(this.total=n,this.total<0)throw new Yp}call(n,e){return e.subscribe(new Fd(n,this.total))}}class Fd extends ii.L{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,r=this.total,o=this.count++;e.length0){const r=this.count>=this.total?this.total:this.count,o=this.ring;for(let c=0;c=2;return r=>r.pipe(t?vr((o,c)=>t(o,c,r)):Ov.y,Tu(1),e?Od(n):Kp(()=>new Md))}class tm{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new nm(n,this.predicate,this.inclusive))}}class nm extends ii.L{constructor(n,e,r){super(n),this.predicate=e,this.inclusive=r,this.index=0}_next(n){const e=this.destination;let r;try{r=this.predicate(n,this.index++)}catch(o){return void e.error(o)}this.nextOrComplete(n,r)}nextOrComplete(n,e){const r=this.destination;Boolean(e)?r.next(n):(this.inclusive&&r.next(n),r.complete())}}class Mu{constructor(n){this.value=n}call(n,e){return e.subscribe(new gD(n,this.value))}}class gD extends ii.L{constructor(n,e){super(n),this.value=e}_next(n){this.destination.next(this.value)}}var rm=F(654);function om(t){return n=>n.lift(new _D(t))}class _D{constructor(n){this.callback=n}call(n,e){return e.subscribe(new vD(n,this.callback))}}class vD extends ii.L{constructor(n,e){super(n),this.add(new rm.w(e))}}var sm=F(327);const Qe="primary",Qo=Symbol("RouteTitle");class am{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function yr(t){return new am(t)}function yD(t,n,e){const r=e.path.split("/");if(r.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||r.lengthr[c]===o)}return t===n}function Rd(t){return Array.prototype.concat.apply([],t)}function Vv(t){return t.length>0?t[t.length-1]:null}function un(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Vr(t){return(0,i.\u0275isObservable)(t)?t:(0,i.\u0275isPromise)(t)?(0,yn.D)(Promise.resolve(t)):ke(t)}const Iu=!1,jv={exact:function Uv(t,n,e){if(!Vs(t.segments,n.segments)||!qi(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!t.children[r]||!Uv(t.children[r],n.children[r],e))return!1;return!0},subset:Hv},um={exact:function CD(t,n){return go(t,n)},subset:function DD(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>lm(t[e],n[e]))},ignored:()=>!0};function Ko(t,n,e){return jv[e.paths](t.root,n.root,e.matrixParams)&&um[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function Hv(t,n,e){return zv(t,n,n.segments,e)}function zv(t,n,e,r){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Vs(o,e)||n.hasChildren()||!qi(o,e,r))}if(t.segments.length===e.length){if(!Vs(t.segments,e)||!qi(t.segments,e,r))return!1;for(const o in n.children)if(!t.children[o]||!Hv(t.children[o],n.children[o],r))return!1;return!0}{const o=e.slice(0,t.segments.length),c=e.slice(t.segments.length);return!!(Vs(t.segments,o)&&qi(t.segments,o,r)&&t.children[Qe])&&zv(t.children[Qe],n,c,r)}}function qi(t,n,e){return n.every((r,o)=>um[e](t[o].parameters,r.parameters))}class Li{constructor(n=new et([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=yr(this.queryParams)),this._queryParamMap}toString(){return TD.serialize(this)}}class et{constructor(n,e){this.segments=n,this.children=e,this.parent=null,un(e,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bd(this)}}class Pu{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=yr(this.parameters)),this._parameterMap}toString(){return dm(this)}}function Vs(t,n){return t.length===n.length&&t.every((e,r)=>e.path===n[r].path)}let Lu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(){return new Nd},providedIn:"root"}),t})();class Nd{parse(n){const e=new xD(n);return new Li(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${Au(n.root,!0)}`,r=function qx(t){const n=Object.keys(t).map(e=>{const r=t[e];return Array.isArray(r)?r.map(o=>`${js(e)}=${js(o)}`).join("&"):`${js(e)}=${js(r)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${r}${"string"==typeof n.fragment?`#${function _o(t){return encodeURI(t)}(n.fragment)}`:""}`}}const TD=new Nd;function Bd(t){return t.segments.map(n=>dm(n)).join("/")}function Au(t,n){if(!t.hasChildren())return Bd(t);if(n){const e=t.children[Qe]?Au(t.children[Qe],!1):"",r=[];return un(t.children,(o,c)=>{c!==Qe&&r.push(`${c}:${Au(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}{const e=function ED(t,n){let e=[];return un(t.children,(r,o)=>{o===Qe&&(e=e.concat(n(r,o)))}),un(t.children,(r,o)=>{o!==Qe&&(e=e.concat(n(r,o)))}),e}(t,(r,o)=>o===Qe?[Au(t.children[Qe],!1)]:[`${o}:${Au(r,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Qe]?`${Bd(t)}/${e[0]}`:`${Bd(t)}/(${e.join("//")})`}}function $v(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function js(t){return $v(t).replace(/%3B/gi,";")}function Us(t){return $v(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ou(t){return decodeURIComponent(t)}function cm(t){return Ou(t.replace(/\+/g,"%20"))}function dm(t){return`${Us(t.path)}${function Zx(t){return Object.keys(t).map(n=>`;${Us(n)}=${Us(t[n])}`).join("")}(t.parameters)}`}const Yx=/^[^\/()?;=#]+/;function Ga(t){const n=t.match(Yx);return n?n[0]:""}const hm=/^[^=?&#]+/,Kx=/^[^&#]+/;class xD{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new et([],{}):new et([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[Qe]=new et(n,e)),r}parseSegment(){const n=Ga(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new i.\u0275RuntimeError(4009,Iu);return this.capture(n),new Pu(Ou(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=Ga(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const o=Ga(this.remaining);o&&(r=o,this.capture(r))}n[Ou(e)]=Ou(r)}parseQueryParam(n){const e=function Qx(t){const n=t.match(hm);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const h=function Gv(t){const n=t.match(Kx);return n?n[0]:""}(this.remaining);h&&(r=h,this.capture(r))}const o=cm(e),c=cm(r);if(n.hasOwnProperty(o)){let h=n[o];Array.isArray(h)||(h=[h],n[o]=h),h.push(c)}else n[o]=c}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Ga(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new i.\u0275RuntimeError(4010,Iu);let c;r.indexOf(":")>-1?(c=r.slice(0,r.indexOf(":")),this.capture(c),this.capture(":")):n&&(c=Qe);const h=this.parseChildren();e[c]=1===Object.keys(h).length?h[Qe]:new et([],h),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new i.\u0275RuntimeError(4011,Iu)}}function fm(t){return t.segments.length>0?new et([],{[Qe]:t}):t}function Vd(t){const n={};for(const r of Object.keys(t.children)){const c=Vd(t.children[r]);(c.segments.length>0||c.hasChildren())&&(n[r]=c)}return function MD(t){if(1===t.numberOfChildren&&t.children[Qe]){const n=t.children[Qe];return new et(t.segments.concat(n.segments),n.children)}return t}(new et(t.segments,n))}function Jo(t){return t instanceof Li}const Wa=!1;function on(t,n,e,r,o){if(0===e.length)return Xo(n.root,n.root,n.root,r,o);const c=function mm(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new pm(!0,0,t);let n=0,e=!1;const r=t.reduce((o,c,h)=>{if("object"==typeof c&&null!=c){if(c.outlets){const y={};return un(c.outlets,(D,x)=>{y[x]="string"==typeof D?D.split("/"):D}),[...o,{outlets:y}]}if(c.segmentPath)return[...o,c.segmentPath]}return"string"!=typeof c?[...o,c]:0===h?(c.split("/").forEach((y,D)=>{0==D&&"."===y||(0==D&&""===y?e=!0:".."===y?n++:""!=y&&o.push(y))}),o):[...o,c]},[]);return new pm(e,n,r)}(e);return c.toRoot()?Xo(n.root,n.root,new et([],{}),r,o):function h(D){const x=function Zv(t,n,e,r){if(t.isAbsolute)return new Hs(n.root,!0,0);if(-1===r)return new Hs(e,e===n.root,0);return function LD(t,n,e){let r=t,o=n,c=e;for(;c>o;){if(c-=o,r=r.parent,!r)throw new i.\u0275RuntimeError(4005,Wa&&"Invalid number of '../'");o=r.segments.length}return new Hs(r,!1,o-c)}(e,r+(Za(t.commands[0])?0:1),t.numberOfDoubleDots)}(c,n,t.snapshot?._urlSegment,D),A=x.processChildren?es(x.segmentGroup,x.index,c.commands):zs(x.segmentGroup,x.index,c.commands);return Xo(n.root,x.segmentGroup,A,r,o)}(t.snapshot?._lastPathIndex)}function Za(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function qa(t){return"object"==typeof t&&null!=t&&t.outlets}function Xo(t,n,e,r,o){let h,c={};r&&un(r,(D,x)=>{c[x]=Array.isArray(D)?D.map(A=>`${A}`):`${D}`}),h=t===n?e:Ud(t,n,e);const y=fm(Vd(h));return new Li(y,c,o)}function Ud(t,n,e){const r={};return un(t.children,(o,c)=>{r[c]=o===n?e:Ud(o,n,e)}),new et(t.segments,r)}class pm{constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&Za(r[0]))throw new i.\u0275RuntimeError(4003,Wa&&"Root segment cannot have matrix parameters");const o=r.find(qa);if(o&&o!==Vv(r))throw new i.\u0275RuntimeError(4004,Wa&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Hs{constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}}function zs(t,n,e){if(t||(t=new et([],{})),0===t.segments.length&&t.hasChildren())return es(t,n,e);const r=function gm(t,n,e){let r=0,o=n;const c={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return c;const h=t.segments[o],y=e[r];if(qa(y))break;const D=`${y}`,x=r0&&void 0===D)break;if(D&&x&&"object"==typeof x&&void 0===x.outlets){if(!_m(D,x,h))return c;r+=2}else{if(!_m(D,{},h))return c;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,n,e),o=e.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof c&&(c=[c]),null!==c&&(o[h]=zs(t.children[h],n,c))}),un(t.children,(c,h)=>{void 0===r[h]&&(o[h]=c)}),new et(t.segments,o)}}function Hd(t,n,e){const r=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof e&&(e=[e]),null!==e&&(n[r]=Hd(new et([],{}),0,e))}),n}function Yv(t){const n={};return un(t,(e,r)=>n[r]=`${e}`),n}function _m(t,n,e){return t==e.path&&go(n,e.parameters)}const Ya="imperative";class br{constructor(n,e){this.id=n,this.url=e}}class ku extends br{constructor(n,e,r="imperative",o=null){super(n,e),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class $s extends br{constructor(n,e,r){super(n,e),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Qa extends br{constructor(n,e,r,o){super(n,e),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class zd extends br{constructor(n,e,r,o){super(n,e),this.reason=r,this.code=o,this.type=16}}class Fu extends br{constructor(n,e,r,o){super(n,e),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Qv extends br{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Kv extends br{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gs extends br{constructor(n,e,r,o,c){super(n,e),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=c,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class AD extends br{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vm extends br{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $d{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class OD{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ym{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gd{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ws{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jv{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wd{constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Xv=(()=>{class t{createUrlTree(e,r,o,c,h,y){return on(e||r.root,o,c,h,y)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),RD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(n){return Xv.\u0275fac(n)},providedIn:"root"}),t})();class ey{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=bm(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){const e=bm(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=Ru(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return Ru(n,this._root).map(e=>e.value)}}function bm(t,n){if(t===n.value)return n;for(const e of n.children){const r=bm(t,e);if(r)return r}return null}function Ru(t,n){if(t===n.value)return[n];for(const e of n.children){const r=Ru(t,e);if(r.length)return r.unshift(n),r}return[]}class jr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function vo(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class ty extends ey{constructor(n,e){super(n),this.snapshot=e,Cm(this,n)}toString(){return this.snapshot.toString()}}function wm(t,n){const e=function Xx(t,n){const h=new yo([],{},{},"",{},Qe,n,null,t.root,-1,{});return new Xa("",new jr(h,[]))}(t,n),r=new Ci([new Pu("",{})]),o=new Ci({}),c=new Ci({}),h=new Ci({}),y=new Ci(""),D=new Zs(r,o,h,y,c,Qe,n,e.root);return D.snapshot=e.root,new ty(new jr(D,[]),e)}class Zs{constructor(n,e,r,o,c,h,y,D){this.url=n,this.params=e,this.queryParams=r,this.fragment=o,this.data=c,this.outlet=h,this.component=y,this.title=this.data?.pipe((0,Xe.U)(x=>x[Qo]))??ke(void 0),this._futureSnapshot=D}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Xe.U)(n=>yr(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Xe.U)(n=>yr(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ja(t,n="emptyOnly"){const e=t.pathFromRoot;let r=0;if("always"!==n)for(r=e.length-1;r>=1;){const o=e[r],c=e[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(c.component)break;r--}}return function ND(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(r))}class yo{get title(){return this.data?.[Qo]}constructor(n,e,r,o,c,h,y,D,x,A,k){this.url=n,this.params=e,this.queryParams=r,this.fragment=o,this.data=c,this.outlet=h,this.component=y,this.routeConfig=D,this._urlSegment=x,this._lastPathIndex=A,this._resolve=k}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=yr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=yr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Xa extends ey{constructor(n,e){super(e),this.url=n,Cm(this,e)}toString(){return Dm(this._root)}}function Cm(t,n){n.value._routerState=t,n.children.forEach(e=>Cm(t,e))}function Dm(t){const n=t.children.length>0?` { ${t.children.map(Dm).join(", ")} } `:"";return`${t.value}${n}`}function Sm(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,go(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),go(n.params,e.params)||t.params.next(e.params),function bD(t,n){if(t.length!==n.length)return!1;for(let e=0;ego(e.parameters,n[r].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||Em(t.parent,n.parent))}function el(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const r=e.value;r._futureSnapshot=n.value;const o=function iy(t,n,e){return n.children.map(r=>{for(const o of e.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return el(t,r,o);return el(t,r)})}(t,n,e);return new jr(r,o)}{if(t.shouldAttach(n.value)){const c=t.retrieve(n.value);if(null!==c){const h=c.route;return h.value._futureSnapshot=n.value,h.children=n.children.map(y=>el(t,y)),h}}const r=function Zd(t){return new Zs(new Ci(t.url),new Ci(t.params),new Ci(t.queryParams),new Ci(t.fragment),new Ci(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(c=>el(t,c));return new jr(r,o)}}const Nu="ngNavigationCancelingError";function ry(t,n){const{redirectTo:e,navigationBehaviorOptions:r}=Jo(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=qd(!1,0,n);return o.url=e,o.navigationBehaviorOptions=r,o}function qd(t,n,e){const r=new Error("NavigationCancelingError: "+(t||""));return r[Nu]=!0,r.cancellationCode=n,e&&(r.url=e),r}function tl(t){return oy(t)&&Jo(t.url)}function oy(t){return t&&t[Nu]}class BD{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Bu,this.attachRef=null}}let Bu=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,r){const o=this.getOrCreateContext(e);o.outlet=r,this.contexts.set(e,o)}onChildOutletDestroyed(e){const r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new BD,this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Yd=!1;let qs=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Qe,this.activateEvents=new i.EventEmitter,this.deactivateEvents=new i.EventEmitter,this.attachEvents=new i.EventEmitter,this.detachEvents=new i.EventEmitter,this.parentContexts=(0,i.inject)(Bu),this.location=(0,i.inject)(i.ViewContainerRef),this.changeDetector=(0,i.inject)(i.ChangeDetectorRef),this.environmentInjector=(0,i.inject)(i.EnvironmentInjector)}ngOnChanges(e){if(e.name){const{firstChange:r,previousValue:o}=e.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)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.\u0275RuntimeError(4012,Yd);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.\u0275RuntimeError(4012,Yd);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.\u0275RuntimeError(4012,Yd);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new i.\u0275RuntimeError(4013,Yd);this._activatedRoute=e;const o=this.location,h=e.snapshot.component,y=this.parentContexts.getOrCreateContext(this.name).children,D=new sy(e,y,o.injector);if(r&&function ay(t){return!!t.resolveComponentFactory}(r)){const x=r.resolveComponentFactory(h);this.activated=o.createComponent(x,o.length,D)}else this.activated=o.createComponent(h,{index:o.length,injector:D,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[i.\u0275\u0275NgOnChangesFeature]}),t})();class sy{constructor(n,e,r){this.route=n,this.childContexts=e,this.parent=r}get(n,e){return n===Zs?this.route:n===Bu?this.childContexts:this.parent.get(n,e)}}let ts=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],standalone:!0,features:[i.\u0275\u0275StandaloneFeature],decls:1,vars:0,template:function(e,r){1&e&&i.\u0275\u0275element(0,"router-outlet")},dependencies:[qs],encapsulation:2}),t})();function Ur(t,n){return t.providers&&!t._injector&&(t._injector=(0,i.createEnvironmentInjector)(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Tm(t){const n=t.children&&t.children.map(Tm),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Qe&&(e.component=ts),e}function Ai(t){return t.outlet||Qe}function cy(t,n){const e=t.filter(r=>Ai(r)===n);return e.push(...t.filter(r=>Ai(r)!==n)),e}function Vu(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class VD{constructor(n,e,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=o}activate(n){const e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Sm(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){const o=vo(e);n.children.forEach(c=>{const h=c.value.outlet;this.deactivateRoutes(c,o[h],r),delete o[h]}),un(o,(c,h)=>{this.deactivateRouteAndItsChildren(c,r)})}deactivateRoutes(n,e,r){const o=n.value,c=e?e.value:null;if(o===c)if(o.component){const h=r.getContext(o.outlet);h&&this.deactivateChildRoutes(n,e,h.children)}else this.deactivateChildRoutes(n,e,r);else c&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const r=e.getContext(n.value.outlet),o=r&&n.value.component?r.children:e,c=vo(n);for(const h of Object.keys(c))this.deactivateRouteAndItsChildren(c[h],o);if(r&&r.outlet){const h=r.outlet.detach(),y=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:h,route:n,contexts:y})}}deactivateRouteAndOutlet(n,e){const r=e.getContext(n.value.outlet),o=r&&n.value.component?r.children:e,c=vo(n);for(const h of Object.keys(c))this.deactivateRouteAndItsChildren(c[h],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(n,e,r){const o=vo(e);n.children.forEach(c=>{this.activateRoutes(c,o[c.value.outlet],r),this.forwardEvent(new Jv(c.value.snapshot))}),n.children.length&&this.forwardEvent(new Gd(n.value.snapshot))}activateRoutes(n,e,r){const o=n.value,c=e?e.value:null;if(Sm(o),o===c)if(o.component){const h=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,h.children)}else this.activateChildRoutes(n,e,r);else if(o.component){const h=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const y=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),h.children.onOutletReAttached(y.contexts),h.attachRef=y.componentRef,h.route=y.route.value,h.outlet&&h.outlet.attach(y.componentRef,y.route.value),Sm(y.route.value),this.activateChildRoutes(n,null,h.children)}else{const y=Vu(o.snapshot),D=y?.get(i.ComponentFactoryResolver)??null;h.attachRef=null,h.route=o,h.resolver=D,h.injector=y,h.outlet&&h.outlet.activateWith(o,h.injector),this.activateChildRoutes(n,null,h.children)}}else this.activateChildRoutes(n,null,r)}}class xm{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Kd{constructor(n,e){this.component=n,this.route=e}}function jD(t,n,e){const r=t._root;return il(r,n?n._root:null,e,[r.value])}function nl(t,n){const e=Symbol(),r=n.get(t,e);return r===e?"function"!=typeof t||(0,i.\u0275isInjectable)(t)?n.get(t):t:r}function il(t,n,e,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const c=vo(n);return t.children.forEach(h=>{(function HD(t,n,e,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const c=t.value,h=n?n.value:null,y=e?e.getContext(t.value.outlet):null;if(h&&c.routeConfig===h.routeConfig){const D=function zD(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Vs(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Vs(t.url,n.url)||!go(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Em(t,n)||!go(t.queryParams,n.queryParams);default:return!Em(t,n)}}(h,c,c.routeConfig.runGuardsAndResolvers);D?o.canActivateChecks.push(new xm(r)):(c.data=h.data,c._resolvedData=h._resolvedData),il(t,n,c.component?y?y.children:null:e,r,o),D&&y&&y.outlet&&y.outlet.isActivated&&o.canDeactivateChecks.push(new Kd(y.outlet.component,h))}else h&&ju(n,y,o),o.canActivateChecks.push(new xm(r)),il(t,null,c.component?y?y.children:null:e,r,o)})(h,c[h.value.outlet],e,r.concat([h.value]),o),delete c[h.value.outlet]}),un(c,(h,y)=>ju(h,e.getContext(y),o)),o}function ju(t,n,e){const r=vo(t),o=t.value;un(r,(c,h)=>{ju(c,o.component?n?n.children.getContext(h):null:n,e)}),e.canDeactivateChecks.push(new Kd(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function Ne(t){return"function"==typeof t}function Mm(t){return t instanceof Md||"EmptyError"===t?.name}const Jd=Symbol("INITIAL_VALUE");function rl(){return gr(t=>Fn(t.map(n=>n.pipe(_r(1),function uD(...t){const n=t[t.length-1];return(0,xd.K)(n)?(t.pop(),e=>Pd(t,e,n)):e=>Pd(t,e)}(Jd)))).pipe((0,Xe.U)(n=>{for(const e of n)if(!0!==e){if(e===Jd)return Jd;if(!1===e||e instanceof Li)return e}return!0}),vr(n=>n!==Jd),_r(1)))}function _y(t){return(0,aD.z)($t(n=>{if(Jo(n))throw ry(0,n)}),(0,Xe.U)(n=>!0===n))}const Xd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vy(t,n,e,r,o){const c=Am(t,n,e);return c.matched?function QD(t,n,e,r){const o=n.canMatch;return o&&0!==o.length?ke(o.map(h=>{const y=nl(h,t);return Vr(function py(t){return t&&Ne(t.canMatch)}(y)?y.canMatch(n,e):t.runInContext(()=>y(n,e)))})).pipe(rl(),_y()):ke(!0)}(r=Ur(n,r),n,e).pipe((0,Xe.U)(h=>!0===h?c:{...Xd})):ke(c)}function Am(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...Xd}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||yD)(e,t,n);if(!o)return{...Xd};const c={};un(o.posParams,(y,D)=>{c[D]=y.path});const h=o.consumed.length>0?{...c,...o.consumed[o.consumed.length-1].parameters}:c;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:h,positionalParamSegments:o.posParams??{}}}function Yi(t,n,e,r){if(e.length>0&&function eh(t,n,e){return e.some(r=>Uu(t,n,r)&&Ai(r)!==Qe)}(t,e,r)){const c=new et(n,function yy(t,n,e,r){const o={};o[Qe]=r,r._sourceSegment=t,r._segmentIndexShift=n.length;for(const c of e)if(""===c.path&&Ai(c)!==Qe){const h=new et([],{});h._sourceSegment=t,h._segmentIndexShift=n.length,o[Ai(c)]=h}return o}(t,n,r,new et(e,t.children)));return c._sourceSegment=t,c._segmentIndexShift=n.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function JD(t,n,e){return e.some(r=>Uu(t,n,r))}(t,e,r)){const c=new et(t.segments,function KD(t,n,e,r,o){const c={};for(const h of r)if(Uu(t,e,h)&&!o[Ai(h)]){const y=new et([],{});y._sourceSegment=t,y._segmentIndexShift=n.length,c[Ai(h)]=y}return{...o,...c}}(t,n,e,r,t.children));return c._sourceSegment=t,c._segmentIndexShift=n.length,{segmentGroup:c,slicedSegments:e}}const o=new et(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}function Uu(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function Om(t,n,e,r){return!!(Ai(t)===r||r!==Qe&&Uu(n,e,t))&&("**"===t.path||Am(n,t,e).matched)}function by(t,n,e){return 0===n.length&&!t.children[e]}const th=!1;class nh{constructor(n){this.segmentGroup=n||null}}class wy{constructor(n){this.urlTree=n}}function ol(t){return Eu(new nh(t))}function Cy(t){return Eu(new wy(t))}class Hu{constructor(n,e,r,o,c){this.injector=n,this.configLoader=e,this.urlSerializer=r,this.urlTree=o,this.config=c,this.allowRedirects=!0}apply(){const n=Yi(this.urlTree.root,[],[],this.config).segmentGroup,e=new et(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,Qe).pipe((0,Xe.U)(c=>this.createUrlTree(Vd(c),this.urlTree.queryParams,this.urlTree.fragment))).pipe($a(c=>{if(c instanceof wy)return this.allowRedirects=!1,this.match(c.urlTree);throw c instanceof nh?this.noMatchError(c):c}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,Qe).pipe((0,Xe.U)(o=>this.createUrlTree(Vd(o),n.queryParams,n.fragment))).pipe($a(o=>{throw o instanceof nh?this.noMatchError(o):o}))}noMatchError(n){return new i.\u0275RuntimeError(4002,th)}createUrlTree(n,e,r){const o=fm(n);return new Li(o,e,r)}expandSegmentGroup(n,e,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(n,e,r).pipe((0,Xe.U)(c=>new et([],c))):this.expandSegment(n,r,e,r.segments,o,!0)}expandChildren(n,e,r){const o=[];for(const c of Object.keys(r.children))"primary"===c?o.unshift(c):o.push(c);return(0,yn.D)(o).pipe(Yo(c=>{const h=r.children[c],y=cy(e,c);return this.expandSegmentGroup(n,y,h,c).pipe((0,Xe.U)(D=>({segment:D,outlet:c})))}),em((c,h)=>(c[h.outlet]=h.segment,c),{}),xu())}expandSegment(n,e,r,o,c,h){return(0,yn.D)(r).pipe(Yo(y=>this.expandSegmentAgainstRoute(n,e,r,y,o,c,h).pipe($a(x=>{if(x instanceof nh)return ke(null);throw x}))),qo(y=>!!y),$a((y,D)=>{if(Mm(y))return by(e,o,c)?ke(new et([],{})):ol(e);throw y}))}expandSegmentAgainstRoute(n,e,r,o,c,h,y){return Om(o,e,c,h)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(n,e,o,c,h):y&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,r,o,c,h):ol(e):ol(e)}expandSegmentAgainstRouteUsingRedirect(n,e,r,o,c,h){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,o,h):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,r,o,c,h)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,r,o){const c=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?Cy(c):this.lineralizeSegments(r,c).pipe((0,Di.zg)(h=>{const y=new et(h,{});return this.expandSegment(n,y,e,h,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,r,o,c,h){const{matched:y,consumedSegments:D,remainingSegments:x,positionalParamSegments:A}=Am(e,o,c);if(!y)return ol(e);const k=this.applyRedirectCommands(D,o.redirectTo,A);return o.redirectTo.startsWith("/")?Cy(k):this.lineralizeSegments(o,k).pipe((0,Di.zg)(j=>this.expandSegment(n,e,r,j.concat(x),h,!1)))}matchSegmentAgainstRoute(n,e,r,o,c){return"**"===r.path?(n=Ur(r,n),r.loadChildren?(r._loadedRoutes?ke({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(n,r)).pipe((0,Xe.U)(y=>(r._loadedRoutes=y.routes,r._loadedInjector=y.injector,new et(o,{})))):ke(new et(o,{}))):vy(e,r,o,n).pipe(gr(({matched:h,consumedSegments:y,remainingSegments:D})=>h?this.getChildConfig(n=r._injector??n,r,o).pipe((0,Di.zg)(A=>{const k=A.injector??n,j=A.routes,{segmentGroup:V,slicedSegments:K}=Yi(e,y,D,j),se=new et(V.segments,V.children);if(0===K.length&&se.hasChildren())return this.expandChildren(k,j,se).pipe((0,Xe.U)(lt=>new et(y,lt)));if(0===j.length&&0===K.length)return ke(new et(y,{}));const ae=Ai(r)===c;return this.expandSegment(k,se,j,K,ae?Qe:c,!0).pipe((0,Xe.U)(ye=>new et(y.concat(ye.segments),ye.children)))})):ol(e)))}getChildConfig(n,e,r){return e.children?ke({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?ke({routes:e._loadedRoutes,injector:e._loadedInjector}):function YD(t,n,e,r){const o=n.canLoad;return void 0===o||0===o.length?ke(!0):ke(o.map(h=>{const y=nl(h,t);return Vr(function hy(t){return t&&Ne(t.canLoad)}(y)?y.canLoad(n,e):t.runInContext(()=>y(n,e)))})).pipe(rl(),_y())}(n,e,r).pipe((0,Di.zg)(o=>o?this.configLoader.loadChildren(n,e).pipe($t(c=>{e._loadedRoutes=c.routes,e._loadedInjector=c.injector})):function Sy(t){return Eu(qd(th,3))}())):ke({routes:[],injector:n})}lineralizeSegments(n,e){let r=[],o=e.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return ke(r);if(o.numberOfChildren>1||!o.children[Qe])return n.redirectTo,Eu(new i.\u0275RuntimeError(4e3,th));o=o.children[Qe]}}applyRedirectCommands(n,e,r){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r)}applyRedirectCreateUrlTree(n,e,r,o){const c=this.createSegmentGroup(n,e.root,r,o);return new Li(c,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const r={};return un(n,(o,c)=>{if("string"==typeof o&&o.startsWith(":")){const y=o.substring(1);r[c]=e[y]}else r[c]=o}),r}createSegmentGroup(n,e,r,o){const c=this.createSegments(n,e.segments,r,o);let h={};return un(e.children,(y,D)=>{h[D]=this.createSegmentGroup(n,y,r,o)}),new et(c,h)}createSegments(n,e,r,o){return e.map(c=>c.path.startsWith(":")?this.findPosParam(n,c,o):this.findOrReturn(c,r))}findPosParam(n,e,r){const o=r[e.path.substring(1)];if(!o)throw new i.\u0275RuntimeError(4001,th);return o}findOrReturn(n,e){let r=0;for(const o of e){if(o.path===n.path)return e.splice(r),o;r++}return n}}class XD{}class eS{constructor(n,e,r,o,c,h,y){this.injector=n,this.rootComponentType=e,this.config=r,this.urlTree=o,this.url=c,this.paramsInheritanceStrategy=h,this.urlSerializer=y}recognize(){const n=Yi(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Qe).pipe((0,Xe.U)(e=>{if(null===e)return null;const r=new yo([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Qe,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new jr(r,e),c=new Xa(this.url,o);return this.inheritParamsAndData(c._root),c}))}inheritParamsAndData(n){const e=n.value,r=Ja(e,this.paramsInheritanceStrategy);e.params=Object.freeze(r.params),e.data=Object.freeze(r.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,e,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,e,r):this.processSegment(n,e,r,r.segments,o)}processChildren(n,e,r){return(0,yn.D)(Object.keys(r.children)).pipe(Yo(o=>{const c=r.children[o],h=cy(e,o);return this.processSegmentGroup(n,h,c,o)}),em((o,c)=>o&&c?(o.push(...c),o):null),function Bv(t,n=!1){return e=>e.lift(new tm(t,n))}(o=>null!==o),Od(null),xu(),(0,Xe.U)(o=>{if(null===o)return null;const c=zu(o);return function xy(t){t.sort((n,e)=>n.value.outlet===Qe?-1:e.value.outlet===Qe?1:n.value.outlet.localeCompare(e.value.outlet))}(c),c}))}processSegment(n,e,r,o,c){return(0,yn.D)(e).pipe(Yo(h=>this.processSegmentAgainstRoute(h._injector??n,h,r,o,c)),qo(h=>!!h),$a(h=>{if(Mm(h))return by(r,o,c)?ke([]):ke(null);throw h}))}processSegmentAgainstRoute(n,e,r,o,c){if(e.redirectTo||!Om(e,r,o,c))return ke(null);let h;if("**"===e.path){const y=o.length>0?Vv(o).parameters:{},D=ul(r)+o.length;h=ke({snapshot:new yo(o,y,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$u(e),Ai(e),e.component??e._loadedComponent??null,e,ih(r),D,Fm(e)),consumedSegments:[],remainingSegments:[]})}else h=vy(r,e,o,n).pipe((0,Xe.U)(({matched:y,consumedSegments:D,remainingSegments:x,parameters:A})=>{if(!y)return null;const k=ul(r)+D.length;return{snapshot:new yo(D,A,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$u(e),Ai(e),e.component??e._loadedComponent??null,e,ih(r),k,Fm(e)),consumedSegments:D,remainingSegments:x}}));return h.pipe(gr(y=>{if(null===y)return ke(null);const{snapshot:D,consumedSegments:x,remainingSegments:A}=y;n=e._injector??n;const k=e._loadedInjector??n,j=function tS(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:V,slicedSegments:K}=Yi(r,x,A,j.filter(ae=>void 0===ae.redirectTo));if(0===K.length&&V.hasChildren())return this.processChildren(k,j,V).pipe((0,Xe.U)(ae=>null===ae?null:[new jr(D,ae)]));if(0===j.length&&0===K.length)return ke([new jr(D,[])]);const se=Ai(e)===c;return this.processSegment(k,j,V,K,se?Qe:c).pipe((0,Xe.U)(ae=>null===ae?null:[new jr(D,ae)]))}))}}function nS(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function zu(t){const n=[],e=new Set;for(const r of t){if(!nS(r)){n.push(r);continue}const o=n.find(c=>r.value.routeConfig===c.value.routeConfig);void 0!==o?(o.children.push(...r.children),e.add(o)):n.push(r)}for(const r of e){const o=zu(r.children);n.push(new jr(r.value,o))}return n.filter(r=>!e.has(r))}function ih(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function ul(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function $u(t){return t.data||{}}function Fm(t){return t.resolve||{}}function Py(t){return"string"==typeof t.title||null===t.title}function rh(t){return gr(n=>{const e=t(n);return e?(0,yn.D)(e).pipe((0,Xe.U)(()=>n)):ke(n)})}const Ys=new i.InjectionToken("ROUTES");let oh=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,i.inject)(i.Compiler)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ke(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const r=Vr(e.loadComponent()).pipe((0,Xe.U)(Ay),$t(c=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=c}),om(()=>{this.componentLoaders.delete(e)})),o=new Ad.c(r,()=>new vt.xQ).pipe((0,sm.x)());return this.componentLoaders.set(e,o),o}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return ke({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const c=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe((0,Xe.U)(y=>{this.onLoadEndListener&&this.onLoadEndListener(r);let D,x,A=!1;Array.isArray(y)?x=y:(D=y.create(e).injector,x=Rd(D.get(Ys,[],i.InjectFlags.Self|i.InjectFlags.Optional)));return{routes:x.map(Tm),injector:D}}),om(()=>{this.childrenLoaders.delete(r)})),h=new Ad.c(c,()=>new vt.xQ).pipe((0,sm.x)());return this.childrenLoaders.set(r,h),h}loadModuleFactoryOrRoutes(e){return Vr(e()).pipe((0,Xe.U)(Ay),(0,Di.zg)(r=>r instanceof i.NgModuleFactory||Array.isArray(r)?ke(r):(0,yn.D)(this.compiler.compileModuleAsync(r))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Ay(t){return function rS(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let sh=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new vt.xQ,this.configLoader=(0,i.inject)(oh),this.environmentInjector=(0,i.inject)(i.EnvironmentInjector),this.urlSerializer=(0,i.inject)(Lu),this.rootContexts=(0,i.inject)(Bu),this.navigationId=0,this.afterPreactivation=()=>ke(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new OD(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new $d(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:r})}setupNavigations(e){return this.transitions=new Ci({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ya,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(vr(r=>0!==r.id),(0,Xe.U)(r=>({...r,extractedUrl:e.urlHandlingStrategy.extract(r.rawUrl)})),gr(r=>{let o=!1,c=!1;return ke(r).pipe($t(h=>{this.currentNavigation={id:h.id,initialUrl:h.rawUrl,extractedUrl:h.extractedUrl,trigger:h.source,extras:h.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),gr(h=>{const y=e.browserUrlTree.toString(),D=!e.navigated||h.extractedUrl.toString()!==y||y!==e.currentUrlTree.toString();if(!D&&"reload"!==(h.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const A="";return this.events.next(new zd(h.id,e.serializeUrl(r.rawUrl),A,0)),e.rawUrlTree=h.rawUrl,h.resolve(null),Ns}if(e.urlHandlingStrategy.shouldProcessUrl(h.rawUrl))return Oy(h.source)&&(e.browserUrlTree=h.extractedUrl),ke(h).pipe(gr(A=>{const k=this.transitions?.getValue();return this.events.next(new ku(A.id,this.urlSerializer.serialize(A.extractedUrl),A.source,A.restoredState)),k!==this.transitions?.getValue()?Ns:Promise.resolve(A)}),function sl(t,n,e,r){return gr(o=>function km(t,n,e,r,o){return new Hu(t,n,e,r,o).apply()}(t,n,e,o.extractedUrl,r).pipe((0,Xe.U)(c=>({...o,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),$t(A=>{this.currentNavigation={...this.currentNavigation,finalUrl:A.urlAfterRedirects},r.urlAfterRedirects=A.urlAfterRedirects}),function Rm(t,n,e,r,o){return(0,Di.zg)(c=>function Ty(t,n,e,r,o,c,h="emptyOnly"){return new eS(t,n,e,r,o,h,c).recognize().pipe(gr(y=>null===y?function al(t){return new mr.y(n=>n.error(t))}(new XD):ke(y)))}(t,n,e,c.urlAfterRedirects,r.serialize(c.urlAfterRedirects),r,o).pipe((0,Xe.U)(h=>({...c,targetSnapshot:h}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),$t(A=>{if(r.targetSnapshot=A.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!A.extras.skipLocationChange){const j=e.urlHandlingStrategy.merge(A.urlAfterRedirects,A.rawUrl);e.setBrowserUrl(j,A)}e.browserUrlTree=A.urlAfterRedirects}const k=new Qv(A.id,this.urlSerializer.serialize(A.extractedUrl),this.urlSerializer.serialize(A.urlAfterRedirects),A.targetSnapshot);this.events.next(k)}));if(D&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:A,extractedUrl:k,source:j,restoredState:V,extras:K}=h,se=new ku(A,this.urlSerializer.serialize(k),j,V);this.events.next(se);const ae=wm(k,this.rootComponentType).snapshot;return ke(r={...h,targetSnapshot:ae,urlAfterRedirects:k,extras:{...K,skipLocationChange:!1,replaceUrl:!1}})}{const A="";return this.events.next(new zd(h.id,e.serializeUrl(r.extractedUrl),A,1)),e.rawUrlTree=h.rawUrl,h.resolve(null),Ns}}),$t(h=>{const y=new Kv(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(y)}),(0,Xe.U)(h=>r={...h,guards:jD(h.targetSnapshot,h.currentSnapshot,this.rootContexts)}),function Im(t,n){return(0,Di.zg)(e=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:c,canDeactivateChecks:h}}=e;return 0===h.length&&0===c.length?ke({...e,guardsResult:!0}):function gy(t,n,e,r){return(0,yn.D)(t).pipe((0,Di.zg)(o=>function qD(t,n,e,r,o){const c=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return c&&0!==c.length?ke(c.map(y=>{const D=Vu(n)??o,x=nl(y,D);return Vr(function GD(t){return t&&Ne(t.canDeactivate)}(x)?x.canDeactivate(t,n,e,r):D.runInContext(()=>x(t,n,e,r))).pipe(qo())})).pipe(rl()):ke(!0)}(o.component,o.route,e,n,r)),qo(o=>!0!==o,!0))}(h,r,o,t).pipe((0,Di.zg)(y=>y&&function dy(t){return"boolean"==typeof t}(y)?function ns(t,n,e,r){return(0,yn.D)(n).pipe(Yo(o=>Pd(function Pm(t,n){return null!==t&&n&&n(new ym(t)),ke(!0)}(o.route.parent,r),function WD(t,n){return null!==t&&n&&n(new Ws(t)),ke(!0)}(o.route,r),function ZD(t,n,e){const r=n[n.length-1],c=n.slice(0,n.length-1).reverse().map(h=>function UD(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(h)).filter(h=>null!==h).map(h=>Wp(()=>ke(h.guards.map(D=>{const x=Vu(h.node)??e,A=nl(D,x);return Vr(function $D(t){return t&&Ne(t.canActivateChild)}(A)?A.canActivateChild(r,t):x.runInContext(()=>A(r,t))).pipe(qo())})).pipe(rl())));return ke(c).pipe(rl())}(t,o.path,e),function Lm(t,n,e){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return ke(!0);const o=r.map(c=>Wp(()=>{const h=Vu(n)??e,y=nl(c,h);return Vr(function fy(t){return t&&Ne(t.canActivate)}(y)?y.canActivate(n,t):h.runInContext(()=>y(n,t))).pipe(qo())}));return ke(o).pipe(rl())}(t,o.route,e))),qo(o=>!0!==o,!0))}(r,c,t,n):ke(y)),(0,Xe.U)(y=>({...e,guardsResult:y})))})}(this.environmentInjector,h=>this.events.next(h)),$t(h=>{if(r.guardsResult=h.guardsResult,Jo(h.guardsResult))throw ry(0,h.guardsResult);const y=new Gs(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot,!!h.guardsResult);this.events.next(y)}),vr(h=>!!h.guardsResult||(e.restoreHistory(h),this.cancelNavigationTransition(h,"",3),!1)),rh(h=>{if(h.guards.canActivateChecks.length)return ke(h).pipe($t(y=>{const D=new AD(y.id,this.urlSerializer.serialize(y.extractedUrl),this.urlSerializer.serialize(y.urlAfterRedirects),y.targetSnapshot);this.events.next(D)}),gr(y=>{let D=!1;return ke(y).pipe(function Nm(t,n){return(0,Di.zg)(e=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=e;if(!o.length)return ke(e);let c=0;return(0,yn.D)(o).pipe(Yo(h=>function Bm(t,n,e,r){const o=t.routeConfig,c=t._resolve;return void 0!==o?.title&&!Py(o)&&(c[Qo]=o.title),function Iy(t,n,e,r){const o=function Vm(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===o.length)return ke({});const c={};return(0,yn.D)(o).pipe((0,Di.zg)(h=>function iS(t,n,e,r){const o=Vu(n)??r,c=nl(t,o);return Vr(c.resolve?c.resolve(n,e):o.runInContext(()=>c(n,e)))}(t[h],n,e,r).pipe(qo(),$t(y=>{c[h]=y}))),Tu(1),function im(t){return n=>n.lift(new Mu(t))}(c),$a(h=>Mm(h)?Ns:Eu(h)))}(c,t,n,r).pipe((0,Xe.U)(h=>(t._resolvedData=h,t.data=Ja(t,e).resolve,o&&Py(o)&&(t.data[Qo]=o.title),null)))}(h.route,r,t,n)),$t(()=>c++),Tu(1),(0,Di.zg)(h=>c===o.length?ke(e):Ns))})}(e.paramsInheritanceStrategy,this.environmentInjector),$t({next:()=>D=!0,complete:()=>{D||(e.restoreHistory(y),this.cancelNavigationTransition(y,"",2))}}))}),$t(y=>{const D=new vm(y.id,this.urlSerializer.serialize(y.extractedUrl),this.urlSerializer.serialize(y.urlAfterRedirects),y.targetSnapshot);this.events.next(D)}))}),rh(h=>{const y=D=>{const x=[];D.routeConfig?.loadComponent&&!D.routeConfig._loadedComponent&&x.push(this.configLoader.loadComponent(D.routeConfig).pipe($t(A=>{D.component=A}),(0,Xe.U)(()=>{})));for(const A of D.children)x.push(...y(A));return x};return Fn(y(h.targetSnapshot.root)).pipe(Od(),_r(1))}),rh(()=>this.afterPreactivation()),(0,Xe.U)(h=>{const y=function ny(t,n,e){const r=el(t,n._root,e?e._root:void 0);return new ty(r,n)}(e.routeReuseStrategy,h.targetSnapshot,h.currentRouterState);return r={...h,targetRouterState:y}}),$t(h=>{e.currentUrlTree=h.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl),e.routerState=h.targetRouterState,"deferred"===e.urlUpdateStrategy&&(h.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,h),e.browserUrlTree=h.urlAfterRedirects)}),((t,n,e)=>(0,Xe.U)(r=>(new VD(n,r.targetRouterState,r.currentRouterState,e).activate(t),r)))(this.rootContexts,e.routeReuseStrategy,h=>this.events.next(h)),_r(1),$t({next:h=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new $s(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(h.targetRouterState.snapshot),h.resolve(!0)},complete:()=>{o=!0}}),om(()=>{o||c||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),$a(h=>{if(c=!0,oy(h)){tl(h)||(e.navigated=!0,e.restoreHistory(r,!0));const y=new Qa(r.id,this.urlSerializer.serialize(r.extractedUrl),h.message,h.cancellationCode);if(this.events.next(y),tl(h)){const D=e.urlHandlingStrategy.merge(h.url,e.rawUrlTree),x={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||Oy(r.source)};e.scheduleNavigation(D,Ya,null,x,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{e.restoreHistory(r,!0);const y=new Fu(r.id,this.urlSerializer.serialize(r.extractedUrl),h,r.targetSnapshot??void 0);this.events.next(y);try{r.resolve(e.errorHandler(h))}catch(D){r.reject(D)}}return Ns}))}))}cancelNavigationTransition(e,r,o){const c=new Qa(e.id,this.urlSerializer.serialize(e.extractedUrl),r,o);this.events.next(c),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Oy(t){return t!==Ya}let oS=(()=>{class t{buildTitle(e){let r,o=e.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(c=>c.outlet===Qe);return r}getResolvedTitleForRoute(e){return e.data[Qo]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(){return(0,i.inject)(jm)},providedIn:"root"}),t})(),jm=(()=>{class t extends oS{constructor(e){super(),this.title=e}updateTitle(e){const r=this.buildTitle(e);void 0!==r&&this.title.setTitle(r)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(uo))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ky=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(){return(0,i.inject)(aS)},providedIn:"root"}),t})();class sS{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let aS=(()=>{class t extends sS{}return t.\u0275fac=function(){let n;return function(r){return(n||(n=i.\u0275\u0275getInheritedFactory(t)))(r||t)}}(),t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Gu=new i.InjectionToken("",{providedIn:"root",factory:()=>({})});let uS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(){return(0,i.inject)(cS)},providedIn:"root"}),t})(),cS=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function dS(t){throw t}function hS(t,n,e){return n.parse("/")}const fS={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},pS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let oi=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,i.inject)(i.\u0275Console),this.isNgZoneEnabled=!1,this.options=(0,i.inject)(Gu,{optional:!0})||{},this.errorHandler=this.options.errorHandler||dS,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||hS,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,i.inject)(uS),this.routeReuseStrategy=(0,i.inject)(ky),this.urlCreationStrategy=(0,i.inject)(RD),this.titleStrategy=(0,i.inject)(oS),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=Rd((0,i.inject)(Ys,{optional:!0})??[]),this.navigationTransitions=(0,i.inject)(sh),this.urlSerializer=(0,i.inject)(Lu),this.location=(0,i.inject)(qn),this.isNgZoneEnabled=(0,i.inject)(i.NgZone)instanceof i.NgZone&&i.NgZone.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Li,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=wm(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Ya,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const r="popstate"===e.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,r,e.state)},0)}))}navigateToSyncWithBrowser(e,r,o){const c={replaceUrl:!0},h=o?.navigationId?o:null;if(o){const D={...o};delete D.navigationId,delete D.\u0275routerPageId,0!==Object.keys(D).length&&(c.state=D)}const y=this.parseUrl(e);this.scheduleNavigation(y,r,h,c)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(Tm),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,r={}){const{relativeTo:o,queryParams:c,fragment:h,queryParamsHandling:y,preserveFragment:D}=r,x=D?this.currentUrlTree.fragment:h;let A=null;switch(y){case"merge":A={...this.currentUrlTree.queryParams,...c};break;case"preserve":A=this.currentUrlTree.queryParams;break;default:A=c||null}return null!==A&&(A=this.removeEmptyProps(A)),this.urlCreationStrategy.createUrlTree(o,this.routerState,this.currentUrlTree,e,A,x??null)}navigateByUrl(e,r={skipLocationChange:!1}){const o=Jo(e)?e:this.parseUrl(e),c=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(c,Ya,null,r)}navigate(e,r={skipLocationChange:!1}){return function Hr(t){for(let n=0;n{const c=e[o];return null!=c&&(r[o]=c),r},{})}scheduleNavigation(e,r,o,c,h){if(this.disposed)return Promise.resolve(!1);let y,D,x,A;return h?(y=h.resolve,D=h.reject,x=h.promise):x=new Promise((k,j)=>{y=k,D=j}),A="computed"===this.canceledNavigationResolution?o&&o.\u0275routerPageId?o.\u0275routerPageId:c.replaceUrl||c.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:A,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:c,resolve:y,reject:D,promise:x,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),x.catch(k=>Promise.reject(k))}setBrowserUrl(e,r){const o=this.urlSerializer.serialize(e),c={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl?this.location.replaceState(o,"",c):this.location.go(o,"",c)}restoreHistory(e,r=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===o?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Qs=(()=>{class t{constructor(e,r,o,c,h,y){this.router=e,this.route=r,this.tabIndexAttribute=o,this.renderer=c,this.el=h,this.locationStrategy=y,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new vt.xQ;const D=h.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===D||"area"===D,this.isAnchorElement?this.subscription=e.events.subscribe(x=>{x instanceof $s&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=(0,i.\u0275coerceToBoolean)(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=(0,i.\u0275coerceToBoolean)(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=(0,i.\u0275coerceToBoolean)(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,r,o,c,h){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||r||o||c||h||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:(0,i.\u0275\u0275sanitizeUrlOrResourceUrl)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,r){const o=this.renderer,c=this.el.nativeElement;null!==r?o.setAttribute(c,e,r):o.removeAttribute(c,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(oi),i.\u0275\u0275directiveInject(Zs),i.\u0275\u0275injectAttribute("tabindex"),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(te))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("click",function(c){return r.onClick(c.button,c.ctrlKey,c.shiftKey,c.altKey,c.metaKey)}),2&e&&i.\u0275\u0275attribute("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[i.\u0275\u0275NgOnChangesFeature]}),t})(),Fy=(()=>{class t{get isActive(){return this._isActive}constructor(e,r,o,c,h){this.router=e,this.element=r,this.renderer=o,this.cdr=c,this.link=h,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new i.EventEmitter,this.routerEventsSubscription=e.events.subscribe(y=>{y instanceof $s&&this.update()})}ngAfterContentInit(){ke(this.links.changes,ke(null)).pipe((0,za.J)()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=(0,yn.D)(e).pipe((0,za.J)()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){const r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const r=function mS(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&e.isActive(o.urlTree,r)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(oi),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(Qs,8))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,r,o){if(1&e&&i.\u0275\u0275contentQuery(o,Qs,5),2&e){let c;i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.links=c)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[i.\u0275\u0275NgOnChangesFeature]}),t})();class Um{}let gS=(()=>{class t{constructor(e,r,o,c,h){this.router=e,this.injector=o,this.preloadingStrategy=c,this.loader=h}setUpPreloading(){this.subscription=this.router.events.pipe(vr(e=>e instanceof $s),Yo(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){const o=[];for(const c of r){c.providers&&!c._injector&&(c._injector=(0,i.createEnvironmentInjector)(c.providers,e,`Route: ${c.path}`));const h=c._injector??e,y=c._loadedInjector??h;(c.loadChildren&&!c._loadedRoutes&&void 0===c.canLoad||c.loadComponent&&!c._loadedComponent)&&o.push(this.preloadConfig(h,c)),(c.children||c._loadedRoutes)&&o.push(this.processRoutes(y,c.children??c._loadedRoutes))}return(0,yn.D)(o).pipe((0,za.J)())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(e,r):ke(null);const c=o.pipe((0,Di.zg)(h=>null===h?ke(void 0):(r._loadedRoutes=h.routes,r._loadedInjector=h.injector,this.processRoutes(h.injector??e,h.routes))));if(r.loadComponent&&!r._loadedComponent){const h=this.loader.loadComponent(r);return(0,yn.D)([c,h]).pipe((0,za.J)())}return c})}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(oi),i.\u0275\u0275inject(i.Compiler),i.\u0275\u0275inject(i.EnvironmentInjector),i.\u0275\u0275inject(Um),i.\u0275\u0275inject(oh))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Zu=new i.InjectionToken("");let Ry=(()=>{class t{constructor(e,r,o,c,h={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=o,this.zone=c,this.options=h,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},h.scrollPositionRestoration=h.scrollPositionRestoration||"disabled",h.anchorScrolling=h.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ku?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof $s&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Wd&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Wd(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){i.\u0275\u0275invalidFactory()},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();var Oi=(()=>((Oi=Oi||{})[Oi.COMPLETE=0]="COMPLETE",Oi[Oi.FAILED=1]="FAILED",Oi[Oi.REDIRECTING=2]="REDIRECTING",Oi))();const bo=!1;function zr(t,n){return{\u0275kind:t,\u0275providers:n}}const Ny=new i.InjectionToken("",{providedIn:"root",factory:()=>!1});function zm(){const t=(0,i.inject)(i.Injector);return n=>{const e=t.get(i.ApplicationRef);if(n!==e.components[0])return;const r=t.get(oi),o=t.get(lh);1===t.get(Cr)&&r.initialNavigation(),t.get(Vy,null,i.InjectFlags.Optional)?.setUpPreloading(),t.get(Zu,null,i.InjectFlags.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const lh=new i.InjectionToken(bo?"bootstrap done indicator":"",{factory:()=>new vt.xQ}),Cr=new i.InjectionToken(bo?"initial navigation":"",{providedIn:"root",factory:()=>1});function cl(){let t=[];return t=bo?[{provide:i.ENVIRONMENT_INITIALIZER,multi:!0,useFactory:()=>{const n=(0,i.inject)(oi);return()=>n.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function kD(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],zr(1,t)}const Vy=new i.InjectionToken(bo?"router preloader":"");function jy(t){return zr(0,[{provide:Vy,useExisting:gS},{provide:Um,useExisting:t}])}const $r=!1,CS=new i.InjectionToken($r?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),DS=[qn,{provide:Lu,useClass:Nd},oi,Bu,{provide:Zs,useFactory:function _S(t){return t.routerState.root},deps:[oi]},oh,$r?{provide:Ny,useValue:!0}:[]];function SS(){return new i.NgProbeToken("Router",oi)}let dh=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[DS,$r&&r?.enableTracing?cl().\u0275providers:[],{provide:Ys,multi:!0,useValue:e},{provide:CS,useFactory:Uy,deps:[[oi,new i.Optional,new i.SkipSelf]]},{provide:Gu,useValue:r||{}},r?.useHash?{provide:te,useClass:jn}:{provide:te,useClass:mt},{provide:Zu,useFactory:()=>{const t=(0,i.inject)(lv),n=(0,i.inject)(i.NgZone),e=(0,i.inject)(Gu),r=(0,i.inject)(sh),o=(0,i.inject)(Lu);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Ry(o,r,t,n,e)}},r?.preloadingStrategy?jy(r.preloadingStrategy).\u0275providers:[],{provide:i.NgProbeToken,multi:!0,useFactory:SS},r?.initialNavigation?Hy(r):[],[{provide:hh,useFactory:zm},{provide:i.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:hh}]]}}static forChild(e){return{ngModule:t,providers:[{provide:Ys,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(CS,8))},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({imports:[ts]}),t})();function Uy(t){if($r&&t)throw new i.\u0275RuntimeError(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Hy(t){return["disabled"===t.initialNavigation?zr(3,[{provide:i.APP_INITIALIZER,multi:!0,useFactory:()=>{const n=(0,i.inject)(oi);return()=>{n.setUpLocationChangeListener()}}},{provide:Cr,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?zr(2,[{provide:Cr,useValue:0},{provide:i.APP_INITIALIZER,multi:!0,deps:[i.Injector],useFactory:n=>{const e=n.get(H,Promise.resolve());return()=>e.then(()=>new Promise(r=>{const o=n.get(oi),c=n.get(lh);(function ah(t,n){t.events.pipe(vr(e=>e instanceof $s||e instanceof Qa||e instanceof Fu||e instanceof zd),(0,Xe.U)(e=>e instanceof $s||e instanceof zd?Oi.COMPLETE:e instanceof Qa&&(0===e.code||1===e.code)?Oi.REDIRECTING:Oi.FAILED),vr(e=>e!==Oi.REDIRECTING),_r(1)).subscribe(()=>{n()})})(o,()=>{r(!0)}),n.get(sh).afterPreactivation=()=>(r(!0),c.closed?ke(void 0):c),o.initialNavigation()}))}}]).\u0275providers:[]]}const hh=new i.InjectionToken($r?"Router Initializer":"");let $y=(()=>{class t{constructor(e){_(this,"router",void 0),_(this,"title","Ga naar homepage."),_(this,"src","https://cdn.antwerpen.be/core_branding_scss/6.2.2/assets/images/a-logo.svg"),_(this,"link",void 0),_(this,"onClick",void 0),this.router=e}logoClicked(e){e.preventDefault(),this.link&&"#"!==this.link&&(e.metaKey?this.router.navigate([]).then(r=>{window.open(this.link,"_blank")}):this.router.navigate([this.link])),this.onClick&&this.onClick(e)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(oi))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-logo"]],inputs:{title:"title",src:"src",link:"link",onClick:"onClick"},decls:2,vars:2,consts:[["href","#",1,"o-header__logo",3,"click"],[3,"alt","src"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"a",0),i.\u0275\u0275listener("click",function(c){return r.logoClicked(c)}),i.\u0275\u0275element(1,"img",1),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("alt",r.title)("src",r.src,i.\u0275\u0275sanitizeUrl))},encapsulation:2})),t})(),IS=(()=>{class t{constructor(){_(this,"imgTitle","Title for logo"),_(this,"imgSrc","https://robohash.org/antwerp-ui"),_(this,"imgLink","#"),_(this,"javascript1","import { LogoModule } from '@acpaas-ui/ngx-logo';\n\n@NgModule({\n\timports: [\n\t\tLogoModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"javascript2","public imgTitle = 'Title for logo';\npublic imgSrc = 'https://robohash.org/antwerp-ui';\npublic imgLink = '#';\n\npublic imgClicked(event) {\n\talert('Logo was clicked');\n}"),_(this,"html",'')}imgClicked(e){alert("Logo was clicked")}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:10,vars:6,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom","p-fix-position"],[3,"link","src","title","click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Logo"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",3)(9,"aui-logo",4),i.\u0275\u0275listener("click",function(c){return r.imgClicked(c)}),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.javascript1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.javascript2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.html),i.\u0275\u0275advance(2),i.\u0275\u0275property("link",r.imgLink)("src",r.imgSrc)("title",r.imgTitle))},dependencies:[Tt,$y],encapsulation:2})),t})(),PS=(()=>{class t{constructor(){_(this,"codeExampleJS1","\nimport { CodeSnippetModule } from '@acpaas-ui/ngx-code-snippet';\n\n@NgModule({\n\timports: [\n\t\tCodeSnippetModule\n\t]\n})\n\nexport class AppModule {}"),_(this,"codeExampleHTML1",'
    \n\t
    \n\t\t

    \n\t
    \n
    '),_(this,"html2",'public codeExampleJSON = [\n\t{\n\t\t"title": "apples",\n\t\t"count": [12000, 20000],\n\t\t"description": {"text": "...", "sensitive": false}\n\t},\n\t{\n\t\t"title": "oranges",\n\t\t"count": [17500, null],\n\t\t"description": {"text": "...", "sensitive": false}\n\t}\n];'),_(this,"html3","public codeExampleJS =\n\tfunction greetMe(yourName) {\n\t\talert('Hello ' + yourName);\n\t}\n\tgreetMe('World');"),_(this,"html4",'public codeExampleJSON = [\n\t\t{\n\t\t\t"title": "apples",\n\t\t\t"count": [12000, 20000],\n\t\t\t"description": {"text": "...", "sensitive": false}\n\t\t},\n\t\t{\n\t\t\t"title": "oranges",\n\t\t\t"count": [17500, null],\n\t\t\t"description": {"text": "...", "sensitive": false}\n\t\t}\n\t];\n\npublic codeExampleJS =\n\tfunction greetMe(yourName) {\n\t\talert(\'Hello \' + yourName);\n\t}\n\tgreetMe(\'World\');'),_(this,"html5","import { Injectable } from '@angular/core';\nimport { Http } from '@angular/http';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n@Injectable()\nexport class ContentService {\n\tconstructor(\n\t\tprivate http: Http\n\t) {}\n\n\tgetMarkdown(): any {\n\t\treturn this.http.get('/example.md')\n\t\t.pipe(map((res) => res.text()));\n\t}\n}"),_(this,"example1",'
    \n\t
    \n\t\t\n\t
    \n\t\n\t
    \n\t\t\n\t
    \n
    '),_(this,"example2",'
    \n\t
    \n\t\t\n\t
    \n\t\n\t
    \n\t\t\n\t
    \n
    '),_(this,"example3",'
    \n\t
    \n\t\t\n\t
    \n\t\n\t
    \n\t\t\n\t
    \n
    '),_(this,"example4",''),_(this,"example5",''),_(this,"codeExampleJSON",'[\n\t{\n\t\t"title": "apples",\n\t\t"count": [12000, 20000],\n\t\t"description": {"text": "...", "sensitive": false}\n\t},\n\t{\n\t\t"title": "oranges",\n\t\t"count": [17500, null],\n\t\t"description": {"text": "...", "sensitive": false}\n\t}\n]'),_(this,"codeExampleJS","\nfunction greetMe(yourName) {\n\talert('Hello ' + yourName);\n}\ngreetMe('World');"),_(this,"codeExamples",[this.codeExampleJS,this.codeExampleJSON]),_(this,"codeExampleMarkdown","public mdExample: string;\n\nconstructor(\n\tprivate contentService: ContentService\n) {\n\tcontentService.getMarkdown().subscribe(data => this.mdExample = data);\n}")}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:50,vars:16,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom-l"],[1,"h4","u-margin-bottom"],[1,"u-margin-bottom-xs"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Code snippet"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",3),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"h3",4),i.\u0275\u0275text(7,"Single text"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",1)(9,"div",5)(10,"h4"),i.\u0275\u0275element(11,"aui-code-snippet",2),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(12,"div",3),i.\u0275\u0275element(13,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(14,"h3",4),i.\u0275\u0275text(15,"JSON"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(16,"div",1)(17,"div",5),i.\u0275\u0275element(18,"aui-code-snippet",2),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(19,"div",1),i.\u0275\u0275element(20,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(21,"div",3),i.\u0275\u0275element(22,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(23,"h3",4),i.\u0275\u0275text(24,"JavaScript"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(25,"div",1)(26,"div",5),i.\u0275\u0275element(27,"aui-code-snippet",2),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(28,"div",1),i.\u0275\u0275element(29,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(30,"div",3),i.\u0275\u0275element(31,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(32,"h3",4),i.\u0275\u0275text(33,"Multiple code snippets"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(34,"div",1)(35,"div",5),i.\u0275\u0275element(36,"aui-code-snippet",2),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(37,"div",1),i.\u0275\u0275element(38,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(39,"div",3),i.\u0275\u0275element(40,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(41,"h3",4),i.\u0275\u0275text(42,"Markdown file"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(43,"div",1),i.\u0275\u0275element(44,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(45,"div",1)(46,"div",5),i.\u0275\u0275element(47,"aui-code-snippet",2),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(48,"div",1),i.\u0275\u0275element(49,"aui-code-snippet",2),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.codeExampleJS1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML1),i.\u0275\u0275advance(6),i.\u0275\u0275property("codeSnippet","Single text example"),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.example1),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.codeExampleJSON),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.example2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.html2),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.codeExampleJS),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.example3),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.html3),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.codeExamples),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.example4),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.html4),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.html5),i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.codeExampleMarkdown),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.example5))},dependencies:[Tt],encapsulation:2})),t})();function Gy(t,n,e,r,o,c,h){try{var y=t[c](h),D=y.value}catch(x){return void e(x)}y.done?n(D):Promise.resolve(D).then(r,o)}function Wy(t){return function(){var n=this,e=arguments;return new Promise(function(r,o){var c=t.apply(n,e);function h(D){Gy(c,r,o,h,y,"next",D)}function y(D){Gy(c,r,o,h,y,"throw",D)}h(void 0)})}}function Zy(t,n){if(1&t&&(i.\u0275\u0275namespaceSVG(),i.\u0275\u0275namespaceHTML(),i.\u0275\u0275elementStart(0,"span",3),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.ariaLabel)}}let Gt=(()=>{class t{get classes(){return["ai",this.className,this.name].filter(Boolean).join(" ")}constructor(e){var r=this;this.renderer=e,this.className="",this.fetchAntwerpIcons=Wy(function*(){try{const h=yield(yield fetch("https://cdn.antwerpen.be/core_branding_scss/6.2.2/assets/images/ai.svg")).text(),y=r.renderer.createElement("svg");r.renderer.setAttribute(y,"id","aiSvg");const D=(new DOMParser).parseFromString(h,"text/html").querySelector("body > svg");r.renderer.appendChild(y,D),document.getElementById("aiSvg")||r.renderer.appendChild(document.body,y)}catch(o){throw new Error(o)}})}ngOnInit(){document.getElementById("aiSvg")||this.fetchAntwerpIcons()}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.Renderer2))},t.\u0275cmp=i.\u0275\u0275defineComponent({type:t,selectors:[["aui-icon"]],hostVars:1,hostBindings:function(e,r){2&e&&i.\u0275\u0275attribute("class",r.classes)},inputs:{name:"name",ariaLabel:"ariaLabel",className:"className"},decls:4,vars:2,consts:[[1,"ai"],["aria-hidden","true"],["class","u-screen-reader-only",4,"ngIf"],[1,"u-screen-reader-only"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"span",0),i.\u0275\u0275namespaceSVG(),i.\u0275\u0275elementStart(1,"svg",1),i.\u0275\u0275element(2,"use"),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(3,Zy,2,1,"span",2),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(2),i.\u0275\u0275attribute("href","#"+r.name),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.ariaLabel))},dependencies:[Fe],styles:["[_nghost-%COMP%]{display:inline-flex}"]}),t})(),cn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({imports:[Ke]}),t})();function AS(t,n){if(1&t&&i.\u0275\u0275element(0,"img",5),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("alt",e.title)("src",e.image,i.\u0275\u0275sanitizeUrl)}}function lM(t,n){if(1&t&&i.\u0275\u0275element(0,"aui-icon",6),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("name",e.icon)}}function qy(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span",7),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.letter)}}function uM(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.title)}}const fh=function(t,n,e,r){return[t,n,e,r]};var ph=(()=>{return(t=ph||(ph={})).S="S",t.M="M",t.L="L",ph;var t})();let OS=(()=>{class t{constructor(){_(this,"title",""),_(this,"image",void 0),_(this,"icon",void 0),_(this,"letter",""),_(this,"className",""),_(this,"size",ph.M),_(this,"rounded",!1),_(this,"avatarSizes",{S:"a-avatar--s",M:"",L:"a-avatar--l"})}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-avatar"]],inputs:{title:"title",image:"image",icon:"icon",letter:"letter",className:"className",size:"size",rounded:"rounded"},decls:5,vars:10,consts:[[1,"a-avatar",3,"ngClass"],["class","a-avatar__image",3,"alt","src",4,"ngIf"],["class","a-avatar__icon",3,"name",4,"ngIf"],["aria-hidden","true","class","a-avatar__letter",4,"ngIf"],["class","u-screen-reader-only",4,"ngIf"],[1,"a-avatar__image",3,"alt","src"],[1,"a-avatar__icon",3,"name"],["aria-hidden","true",1,"a-avatar__letter"],[1,"u-screen-reader-only"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,AS,1,2,"img",1),i.\u0275\u0275template(2,lM,1,1,"aui-icon",2),i.\u0275\u0275template(3,qy,2,1,"span",3),i.\u0275\u0275template(4,uM,2,1,"span",4),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction4(5,fh,r.className,r.avatarSizes[r.size],r.letter?"a-avatar--primary":"",r.rounded?"a-avatar--rounded":"")),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.image),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.icon),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.letter),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.icon||r.letter))},dependencies:[ze,Fe,Gt],encapsulation:2})),t})(),$m=(()=>{class t{constructor(){_(this,"importModule","import { AvatarModule } from '@acpaas-ui/ngx-avatar';\n\n@NgModule({\n\timports: [\n\t\tAvatarModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"example1",'\n\n'),_(this,"example2",'\n\n'),_(this,"example3",'\n\n'),_(this,"example4",'\n\n')}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:28,vars:5,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom-xs"],["icon","ai-alarm-bell","title","An alarm bell icon","size","S"],["icon","ai-alarm-bell","title","An alarm bell icon"],["icon","ai-alarm-bell","title","An alarm bell icon","size","L"],["image","https://www.publicdomainpictures.net/pictures/270000/velka/avatar-people-person-business-u.jpg","title","A robot avatar","size","S"],["image","https://www.publicdomainpictures.net/pictures/270000/velka/avatar-people-person-business-u.jpg","title","A robot avatar"],["image","https://www.publicdomainpictures.net/pictures/270000/velka/avatar-people-person-business-u.jpg","title","A robot avatar","size","L"],["letter","T","title","A letter T avatar","size","S"],["letter","T","title","A letter T avatar"],["letter","T","title","A letter T avatar","size","L"],["icon","ai-alarm-bell","title","An alarm bell icon","size","S","rounded","true"],["letter","T","title","A letter T avatar","rounded","true"],["image","https://www.publicdomainpictures.net/pictures/270000/velka/avatar-people-person-business-u.jpg","title","A robot avatar","size","L","rounded","true"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Avatar"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementStart(6,"div",3),i.\u0275\u0275element(7,"aui-avatar",4)(8,"aui-avatar",5)(9,"aui-avatar",6),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(10,"div",1),i.\u0275\u0275element(11,"aui-code-snippet",2),i.\u0275\u0275elementStart(12,"div",3),i.\u0275\u0275element(13,"aui-avatar",7)(14,"aui-avatar",8)(15,"aui-avatar",9),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(16,"div",1),i.\u0275\u0275element(17,"aui-code-snippet",2),i.\u0275\u0275elementStart(18,"div",3),i.\u0275\u0275element(19,"aui-avatar",10)(20,"aui-avatar",11)(21,"aui-avatar",12),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(22,"div",1),i.\u0275\u0275element(23,"aui-code-snippet",2),i.\u0275\u0275elementStart(24,"div",3),i.\u0275\u0275element(25,"aui-avatar",13)(26,"aui-avatar",14)(27,"aui-avatar",15),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.importModule),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.example1),i.\u0275\u0275advance(6),i.\u0275\u0275property("codeSnippet",r.example2),i.\u0275\u0275advance(6),i.\u0275\u0275property("codeSnippet",r.example3),i.\u0275\u0275advance(6),i.\u0275\u0275property("codeSnippet",r.example4))},dependencies:[Tt,OS],encapsulation:2})),t})();var Yy=F(830);function is(t,n){return new mr.y(e=>{const r=t.length;if(0===r)return void e.complete();const o=new Array(r);let c=0,h=0;for(let y=0;y{x||(x=!0,h++),o[y]=A},error:A=>e.error(A),complete:()=>{c++,(c===r||!x)&&(h===r&&e.next(n?n.reduce((A,k,j)=>(A[k]=o[j],A),{}):o),e.complete())}}))}})}let Rn=(()=>{class t{constructor(e,r){this._renderer=e,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t}),t})(),ki=(()=>{class t extends Rn{}return t.\u0275fac=function(){let n;return function(r){return(n||(n=i.\u0275\u0275getInheritedFactory(t)))(r||t)}}(),t.\u0275dir=i.\u0275\u0275defineDirective({type:t,features:[i.\u0275\u0275InheritDefinitionFeature]}),t})();const Mn=new i.InjectionToken("NgValueAccessor"),Qi={provide:Mn,useExisting:(0,i.forwardRef)(()=>Dr),multi:!0};let Dr=(()=>{class t extends ki{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=i.\u0275\u0275getInheritedFactory(t)))(r||t)}}(),t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("change",function(c){return r.onChange(c.target.checked)})("blur",function(){return r.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([Qi]),i.\u0275\u0275InheritDefinitionFeature]}),t})();const dl={provide:Mn,useExisting:(0,i.forwardRef)(()=>Si),multi:!0},fl=new i.InjectionToken("CompositionEventMode");let Si=(()=>{class t extends Rn{constructor(e,r,o){super(e,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function hl(){const t=M()?M().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(fl,8))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,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(e,r){1&e&&i.\u0275\u0275listener("input",function(c){return r._handleInput(c.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(c){return r._compositionEnd(c.target.value)})},features:[i.\u0275\u0275ProvidersFeature([dl]),i.\u0275\u0275InheritDefinitionFeature]}),t})();const pl=!1,Jt=new i.InjectionToken("NgValidators"),Ri=new i.InjectionToken("NgAsyncValidators");function Zm(t){return null!=t}function qm(t){const n=(0,i.\u0275isPromise)(t)?(0,yn.D)(t):t;if(pl&&!(0,i.\u0275isObservable)(n)){let e="Expected async validator to return Promise or Observable.";throw"object"==typeof t&&(e+=" Are you using a synchronous validator where an async validator is expected?"),new i.\u0275RuntimeError(-1101,e)}return n}function Ym(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function Dh(t,n){return n.map(e=>e(t))}function Ky(t){return t.map(n=>function Qm(t){return!t.validate}(n)?n:e=>n.validate(e))}function ml(t){return null!=t?function qu(t){if(!t)return null;const n=t.filter(Zm);return 0==n.length?null:function(e){return Ym(Dh(e,n))}}(Ky(t)):null}function Km(t){return null!=t?function Sh(t){if(!t)return null;const n=t.filter(Zm);return 0==n.length?null:function(e){return function Gr(...t){if(1===t.length){const n=t[0];if((0,Gp.k)(n))return is(n,null);if((0,Yy.K)(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return is(e.map(r=>n[r]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return is(t=1===t.length&&(0,Gp.k)(t[0])?t[0]:t,null).pipe((0,Xe.U)(e=>n(...e)))}return is(t,null)}(Dh(e,n).map(qm)).pipe((0,Xe.U)(Ym))}}(Ky(t)):null}function Yu(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function Qu(t){return t._rawValidators}function Eh(t){return t._rawAsyncValidators}function Th(t){return t?Array.isArray(t)?t:[t]:[]}function gl(t,n){return Array.isArray(t)?t.includes(n):t===n}function Jm(t,n){const e=Th(n);return Th(t).forEach(o=>{gl(e,o)||e.push(o)}),e}function Xm(t,n){return Th(n).filter(e=>!gl(t,e))}class xh{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(n){this._rawValidators=n||[],this._composedValidatorFn=ml(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Km(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Nn extends xh{get formDirective(){return null}get path(){return null}}class rs extends xh{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class eg{constructor(n){this._cd=n}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}}let In=(()=>{class t extends eg{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(rs,2))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,r){2&e&&i.\u0275\u0275classProp("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[i.\u0275\u0275InheritDefinitionFeature]}),t})(),Ku=(()=>{class t extends eg{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(Nn,10))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,r){2&e&&i.\u0275\u0275classProp("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[i.\u0275\u0275InheritDefinitionFeature]}),t})();function wo(t,n){return t?`with name: '${n}'`:`at index: ${n}`}const Co=!1,Js="VALID",Ph="INVALID",os="PENDING",Lh="DISABLED";function ob(t){return(Ah(t)?t.validators:t)||null}function rg(t,n){return(Ah(n)?n.asyncValidators:t)||null}function Ah(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function dn(t,n,e){const r=t.controls;if(!(n?Object.keys(r):r).length)throw new i.\u0275RuntimeError(1e3,Co?function RS(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!r[e])throw new i.\u0275RuntimeError(1001,Co?function NS(t,n){return`Cannot find form control ${wo(t,n)}`}(n,e):"")}function og(t,n,e){t._forEachChild((r,o)=>{if(void 0===e[o])throw new i.\u0275RuntimeError(1002,Co?function ig(t,n){return`Must supply a value for form control ${wo(t,n)}`}(n,o):"")})}class Oh{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Js}get invalid(){return this.status===Ph}get pending(){return this.status==os}get disabled(){return this.status===Lh}get enabled(){return this.status!==Lh}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Jm(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Jm(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Xm(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Xm(n,this._rawAsyncValidators))}hasValidator(n){return gl(this._rawValidators,n)}hasAsyncValidator(n){return gl(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=os,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Lh,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Js,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Js||this.status===os)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Lh:Js}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=os,this._hasOwnPendingAsyncValidator=!0;const e=qm(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((r,o)=>r&&r._find(o),this)}getError(n,e){const r=e?this.get(e):this;return r&&r.errors?r.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?Lh:this.errors?Ph:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(os)?os:this._anyControlsHaveStatus(Ph)?Ph:Js}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Ah(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function BS(t){return Array.isArray(t)?ml(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function sb(t){return Array.isArray(t)?Km(t):t||null}(this._rawAsyncValidators)}}class Xu extends Oh{constructor(n,e,r){super(ob(e),rg(r,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,r={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){og(this,!0,n),Object.keys(n).forEach(r=>{dn(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(r=>{const o=this.controls[r];o&&o.patchValue(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((r,o)=>{r.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,r)=>(n[r]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,r)=>!!r._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const r=this.controls[e];r&&n(r,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,r]of Object.entries(this.controls))if(this.contains(e)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,r,o)=>((r.enabled||this.disabled)&&(e[o]=r.value),e))}_reduceChildren(n,e){let r=n;return this._forEachChild((o,c)=>{r=e(r,o,c)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class sg extends Xu{}const Ki=new i.InjectionToken("CallSetDisabledState",{providedIn:"root",factory:()=>ec}),ec="always";function kh(t,n){return[...n.path,t]}function vl(t,n,e=ec){nc(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function Sr(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&ag(t,n)})}(t,n),function Wr(t,n){const e=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function US(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&ag(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function dM(t,n){if(n.valueAccessor.setDisabledState){const e=r=>{n.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function Fh(t,n,e=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),yl(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function tc(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function nc(t,n){const e=Qu(t);null!==n.validator?t.setValidators(Yu(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const r=Eh(t);null!==n.asyncValidator?t.setAsyncValidators(Yu(r,n.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const o=()=>t.updateValueAndValidity();tc(n._rawValidators,o),tc(n._rawAsyncValidators,o)}function yl(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=Qu(t);if(Array.isArray(o)&&o.length>0){const c=o.filter(h=>h!==n.validator);c.length!==o.length&&(e=!0,t.setValidators(c))}}if(null!==n.asyncValidator){const o=Eh(t);if(Array.isArray(o)&&o.length>0){const c=o.filter(h=>h!==n.asyncValidator);c.length!==o.length&&(e=!0,t.setAsyncValidators(c))}}}const r=()=>{};return tc(n._rawValidators,r),tc(n._rawAsyncValidators,r),e}function ag(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ug(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function dg(t,n){if(!n)return null;let e,r,o;return Array.isArray(n),n.forEach(c=>{c.constructor===Si?e=c:function cg(t){return Object.getPrototypeOf(t.constructor)===ki}(c)?r=c:o=c}),o||r||e||null}function cb(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function hg(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Xs=class extends Oh{constructor(n=null,e,r){super(ob(e),rg(r,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ah(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=hg(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){cb(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){cb(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){hg(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},ic=Xs,pg={provide:rs,useExisting:(0,i.forwardRef)(()=>Xi)},mg=(()=>Promise.resolve())();let Xi=(()=>{class t extends rs{constructor(e,r,o,c,h,y){super(),this._changeDetectorRef=h,this.callSetDisabledState=y,this.control=new Xs,this._registered=!1,this.update=new i.EventEmitter,this._parent=e,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=dg(0,c)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),ug(e,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(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){vl(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){mg.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const r=e.isDisabled.currentValue,o=0!==r&&(0,i.\u0275coerceToBoolean)(r);mg.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?kh(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(Nn,9),i.\u0275\u0275directiveInject(Jt,10),i.\u0275\u0275directiveInject(Ri,10),i.\u0275\u0275directiveInject(Mn,10),i.\u0275\u0275directiveInject(i.ChangeDetectorRef,8),i.\u0275\u0275directiveInject(Ki,8))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.\u0275\u0275ProvidersFeature([pg]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),t})(),Vh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),_g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({}),t})();const jh=new i.InjectionToken("NgModelWithFormControlWarning"),yb={provide:rs,useExisting:(0,i.forwardRef)(()=>Do)};let Do=(()=>{class t extends rs{set isDisabled(e){}constructor(e,r,o,c,h){super(),this._ngModelWarningConfig=c,this.callSetDisabledState=h,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(r),this.valueAccessor=dg(0,o)}ngOnChanges(e){if(this._isControlChanged(e)){const r=e.form.previousValue;r&&Fh(r,this,!1),vl(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ug(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Fh(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(Jt,10),i.\u0275\u0275directiveInject(Ri,10),i.\u0275\u0275directiveInject(Mn,10),i.\u0275\u0275directiveInject(jh,8),i.\u0275\u0275directiveInject(Ki,8))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([yb]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),t})();const bb={provide:Nn,useExisting:(0,i.forwardRef)(()=>ss)};let ss=(()=>{class t extends Nn{constructor(e,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.EventEmitter,this._setValidators(e),this._setAsyncValidators(r)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(yl(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const r=this.form.get(e.path);return vl(r,e,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){Fh(e.control||null,e,!1),function lb(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,r){this.form.get(e.path).setValue(r)}onSubmit(e){return this.submitted=!0,function bl(t,n){t._syncPendingControls(),n.forEach(e=>{const r=e.control;"submit"===r.updateOn&&r._pendingChange&&(e.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const r=e.control,o=this.form.get(e.path);r!==o&&(Fh(r||null,e),(t=>t instanceof Xs)(o)&&(vl(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const r=this.form.get(e.path);(function Ji(t,n){nc(t,n)})(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const r=this.form.get(e.path);r&&function Er(t,n){return yl(t,n)}(r,e)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){nc(this.form,this),this._oldForm&&yl(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(Jt,10),i.\u0275\u0275directiveInject(Ri,10),i.\u0275\u0275directiveInject(Ki,8))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("submit",function(c){return r.onSubmit(c)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([bb]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),t})();const wg={provide:rs,useExisting:(0,i.forwardRef)(()=>Dl)};let Dl=(()=>{class t extends rs{set isDisabled(e){}constructor(e,r,o,c,h){super(),this._ngModelWarningConfig=h,this._added=!1,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=dg(0,c)}ngOnChanges(e){this._added||this._setUpControl(),ug(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return kh(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(Nn,13),i.\u0275\u0275directiveInject(Jt,10),i.\u0275\u0275directiveInject(Ri,10),i.\u0275\u0275directiveInject(Mn,10),i.\u0275\u0275directiveInject(jh,8))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.\u0275\u0275ProvidersFeature([wg]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),t})();const Cg={provide:Mn,useExisting:(0,i.forwardRef)(()=>So),multi:!0};function Hh(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let So=(()=>{class t extends ki{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const o=Hh(this._getOptionId(e),e);this.setProperty("value",o)}registerOnChange(e){this.onChange=r=>{this.value=this._getOptionValue(r),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r),e))return r;return null}_getOptionValue(e){const r=function Dg(t){return t.split(":")[0]}(e);return this._optionMap.has(r)?this._optionMap.get(r):e}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=i.\u0275\u0275getInheritedFactory(t)))(r||t)}}(),t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("change",function(c){return r.onChange(c.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([Cg]),i.\u0275\u0275InheritDefinitionFeature]}),t})(),ea=(()=>{class t{constructor(e,r,o){this._element=e,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(Hh(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(So,9))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const ta={provide:Mn,useExisting:(0,i.forwardRef)(()=>Sg),multi:!0};function Cb(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Sg=(()=>{class t extends ki{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let r;if(this.value=e,Array.isArray(e)){const o=e.map(c=>this._getOptionId(c));r=(c,h)=>{c._setSelected(o.indexOf(h.toString())>-1)}}else r=(o,c)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(e){this.onChange=r=>{const o=[],c=r.selectedOptions;if(void 0!==c){const h=c;for(let y=0;y{class t{constructor(e,r,o){this._element=e,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(Cb(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Cb(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Sg,9))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),xb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({imports:[_g]}),t})();class Pg extends Oh{constructor(n,e,r){super(ob(e),rg(r,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,r={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,e={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,r={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){og(this,!1,n),n.forEach((r,o)=>{dn(this,!1,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((r,o)=>{r.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,r)=>!!r._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,r)=>{n(e,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}const Sl=Pg;function Mb(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let QS=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,r=null){const o=this._reduceControls(e);let c={};return Mb(r)?c=r:null!==r&&(c.validators=r.validator,c.asyncValidators=r.asyncValidator),new Xu(o,c)}record(e,r=null){const o=this._reduceControls(e);return new sg(o,r)}control(e,r,o){let c={};return this.useNonNullable?(Mb(r)?c=r:(c.validators=r,c.asyncValidators=o),new Xs(e,{...c,nonNullable:!0})):new Xs(e,r,o)}array(e,r,o){const c=e.map(h=>this._createControl(h));return new Pg(c,r,o)}_reduceControls(e){const r={};return Object.keys(e).forEach(o=>{r[o]=this._createControl(e[o])}),r}_createControl(e){return e instanceof Xs||e instanceof Oh?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),El=(()=>{class t extends QS{group(e,r=null){return super.group(e,r)}control(e,r,o){return super.control(e,r,o)}array(e,r,o){return super.array(e,r,o)}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=i.\u0275\u0275getInheritedFactory(t)))(r||t)}}(),t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),er=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ki,useValue:e.callSetDisabledState??ec}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({imports:[xb]}),t})(),Tl=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:jh,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Ki,useValue:e.callSetDisabledState??ec}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({imports:[xb]}),t})();function Bn(t){return n=>n.lift(new lc(t))}class lc{constructor(n){this.notifier=n}call(n,e){const r=new JS(n),o=(0,Pi.ft)(this.notifier,new Pi.IY(r));return o&&!r.seenValue?(r.add(o),e.subscribe(r)):r}}class JS extends Pi.Ds{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}var XS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function $h(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}const iE={date:$h({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:$h({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:$h({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var vM={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Gh(t){return function(n,e){var o;if("formatting"===(null!=e&&e.context?String(e.context):"standalone")&&t.formattingValues){var c=t.defaultFormattingWidth||t.defaultWidth,h=null!=e&&e.width?String(e.width):c;o=t.formattingValues[h]||t.formattingValues[c]}else{var y=t.defaultWidth,D=null!=e&&e.width?String(e.width):t.defaultWidth;o=t.values[D]||t.values[y]}return o[t.argumentCallback?t.argumentCallback(n):n]}}const lE={ordinalNumber:function(n,e){var r=Number(n),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Gh({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Gh({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(n){return n-1}}),month:Gh({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Gh({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Gh({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function cc(t){return function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.width,c=n.match(r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth]);if(!c)return null;var x,h=c[0],y=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],D=Array.isArray(y)?function uE(t,n){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:{},r=n.match(t.matchPattern);if(!r)return null;var o=r[0],c=n.match(t.parsePattern);if(!c)return null;var h=t.valueCallback?t.valueCallback(c[0]):c[0];return{value:h=e.valueCallback?e.valueCallback(h):h,rest:n.slice(o.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(n){return parseInt(n,10)}}),era:cc({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:cc({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(n){return n+1}}),month:cc({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:cc({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:cc({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const yE={code:"en-US",formatDistance:function(n,e,r){var o,c=XS[n];return o="string"==typeof c?c:1===e?c.one:c.other.replace("{{count}}",e.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o},formatLong:iE,formatRelative:function(n,e,r,o){return vM[n]},localize:lE,match:Bb,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Zn(t){if(null===t||!0===t||!1===t)return NaN;var n=Number(t);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function bn(t,n){if(n.length1?"s":"")+" required, but only "+n.length+" present")}function hc(t){return(hc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function si(t){bn(1,arguments);var n=Object.prototype.toString.call(t);return t instanceof Date||"object"===hc(t)&&"[object Date]"===n?new Date(t.getTime()):"number"==typeof t||"[object Number]"===n?new Date(t):(("string"==typeof t||"[object String]"===n)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function CE(t,n){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}var Vb=function(n,e){switch(n){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},jb=function(n,e){switch(n){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}};const Zh={p:jb,P:function(n,e){var h,r=n.match(/(P+)(p+)?/)||[],o=r[1],c=r[2];if(!c)return Vb(n,e);switch(o){case"P":h=e.dateTime({width:"short"});break;case"PP":h=e.dateTime({width:"medium"});break;case"PPP":h=e.dateTime({width:"long"});break;default:h=e.dateTime({width:"full"})}return h.replace("{{date}}",Vb(o,e)).replace("{{time}}",jb(c,e))}};var Ub=["D","DD"],Hb=["YY","YYYY"];function Fg(t,n,e){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}function qh(t){return(qh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function Yh(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&fc(t,n)}function fc(t,n){return(fc=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r})(t,n)}function Rg(t){var n=function EE(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=xl(t);if(n){var c=xl(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function Ng(t,n){return!n||"object"!==qh(n)&&"function"!=typeof n?Bg(t):n}(this,o)}}function Bg(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xl(t){return(xl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(t)}function Vg(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function jg(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=Wg(t);if(n){var c=Wg(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function ME(t,n){return!n||"object"!==Ml(n)&&"function"!=typeof n?$g(t):n}(this,o)}}(e);function e(){var r;!function Wb(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h0,r=e?n:1-n;if(r<=50)o=t||100;else{var c=r+50;o=t+100*Math.floor(c/100)-(t>=c%100?100:0)}return e?o:1-o}function Il(t){return t%400==0||t%4==0&&t%100!=0}function tf(t){return(tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function xr(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=oa(t);if(n){var c=oa(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function jE(t,n){return!n||"object"!==tf(n)&&"function"!=typeof n?Jg(t):n}(this,o)}}(e);function e(){var r;!function Kg(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h0}},{key:"set",value:function(o,c,h){var y=o.getUTCFullYear();if(h.isTwoDigitYear){var D=Qg(h.year,y);return o.setUTCFullYear(D,0,1),o.setUTCHours(0,0,0,0),o}return o.setUTCFullYear("era"in c&&1!==c.era?1-h.year:h.year,0,1),o.setUTCHours(0,0,0,0),o}}]),e}(ht),Xg={};function Pl(){return Xg}function us(t,n){var e,r,o,c,h,y,D,x;bn(1,arguments);var A=Pl(),k=Zn(null!==(e=null!==(r=null!==(o=null!==(c=n?.weekStartsOn)&&void 0!==c?c:null==n||null===(h=n.locale)||void 0===h||null===(y=h.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==o?o:A.weekStartsOn)&&void 0!==r?r:null===(D=A.locale)||void 0===D||null===(x=D.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==e?e:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var j=si(t),V=j.getUTCDay(),K=(V=1&&V<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var K=new Date(0);K.setUTCFullYear(k+1,0,V),K.setUTCHours(0,0,0,0);var se=us(K,n),ae=new Date(0);ae.setUTCFullYear(k,0,V),ae.setUTCHours(0,0,0,0);var de=us(ae,n);return A.getTime()>=se.getTime()?k+1:A.getTime()>=de.getTime()?k:k-1}function Ll(t){return(Ll="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function af(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=mc(t);if(n){var c=mc(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function $E(t,n){return!n||"object"!==Ll(n)&&"function"!=typeof n?lf(t):n}(this,o)}}(e);function e(){var r;!function rw(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h0}},{key:"set",value:function(o,c,h,y){var D=sf(o,y);if(h.isTwoDigitYear){var x=Qg(h.year,D);return o.setUTCFullYear(x,0,y.firstWeekContainsDate),o.setUTCHours(0,0,0,0),us(o,y)}return o.setUTCFullYear("era"in c&&1!==c.era?1-h.year:h.year,0,y.firstWeekContainsDate),o.setUTCHours(0,0,0,0),us(o,y)}}]),e}(ht);function sa(t){bn(1,arguments);var e=si(t),r=e.getUTCDay(),o=(r<1?7:0)+r-1;return e.setUTCDate(e.getUTCDate()-o),e.setUTCHours(0,0,0,0),e}function uf(t){return(uf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function r_(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=df(t);if(n){var c=df(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function Al(t,n){return!n||"object"!==uf(n)&&"function"!=typeof n?o_(t):n}(this,o)}}(e);function e(){var r;!function sw(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=_c(t);if(n){var c=_c(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function hw(t,n){return!n||"object"!==Ol(n)&&"function"!=typeof n?a_(t):n}(this,o)}}(e);function e(){var r;!function gc(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=pf(t);if(n){var c=pf(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function fw(t,n){return!n||"object"!==kl(n)&&"function"!=typeof n?vc(t):n}(this,o)}}(e);function e(){var r;!function qE(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=1&&c<=4}},{key:"set",value:function(o,c,h){return o.setUTCMonth(3*(h-1),1),o.setUTCHours(0,0,0,0),o}}]),e}(ht);function mf(t){return(mf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function f_(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=_f(t);if(n){var c=_f(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function e1(t,n){return!n||"object"!==mf(n)&&"function"!=typeof n?p_(t):n}(this,o)}}(e);function e(){var r;!function h_(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=1&&c<=4}},{key:"set",value:function(o,c,h){return o.setUTCMonth(3*(h-1),1),o.setUTCHours(0,0,0,0),o}}]),e}(ht);function yc(t){return(yc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function bw(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=yf(t);if(n){var c=yf(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function n1(t,n){return!n||"object"!==yc(n)&&"function"!=typeof n?g_(t):n}(this,o)}}(e);function e(){var r;!function yw(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=0&&c<=11}},{key:"set",value:function(o,c,h){return o.setUTCMonth(h,1),o.setUTCHours(0,0,0,0),o}}]),e}(ht);function bf(t){return(bf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function s1(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=Sf(t);if(n){var c=Sf(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function a1(t,n){return!n||"object"!==bf(n)&&"function"!=typeof n?bc(t):n}(this,o)}}(e);function e(){var r;!function wf(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=0&&c<=11}},{key:"set",value:function(o,c,h){return o.setUTCMonth(h,1),o.setUTCHours(0,0,0,0),o}}]),e}(ht),c1=6048e5;function Tf(t){return(Tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function Mr(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=If(t);if(n){var c=If(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function m1(t,n){return!n||"object"!==Tf(n)&&"function"!=typeof n?Mf(t):n}(this,o)}}(e);function e(){var r;!function h1(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=1&&c<=53}},{key:"set",value:function(o,c,h,y){return us(function d1(t,n,e){bn(2,arguments);var r=si(t),o=Zn(n),c=function Ef(t,n){bn(1,arguments);var e=si(t),r=us(e,n).getTime()-function u1(t,n){var e,r,o,c,h,y,D,x;bn(1,arguments);var A=Pl(),k=Zn(null!==(e=null!==(r=null!==(o=null!==(c=n?.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(h=n.locale)||void 0===h||null===(y=h.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==o?o:A.firstWeekContainsDate)&&void 0!==r?r:null===(D=A.locale)||void 0===D||null===(x=D.options)||void 0===x?void 0:x.firstWeekContainsDate)&&void 0!==e?e:1),j=sf(t,n),V=new Date(0);return V.setUTCFullYear(j,0,k),V.setUTCHours(0,0,0,0),us(V,n)}(e,n).getTime();return Math.round(r/c1)+1}(r,e)-o;return r.setUTCDate(r.getUTCDate()-7*c),r}(o,h,y),y)}}]),e}(ht);var EM=6048e5;function v1(t,n){bn(2,arguments);var e=si(t),r=Zn(n),o=function tr(t){bn(1,arguments);var n=si(t),e=sa(n).getTime()-function _1(t){bn(1,arguments);var n=function __(t){bn(1,arguments);var n=si(t),e=n.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(e+1,0,4),r.setUTCHours(0,0,0,0);var o=sa(r),c=new Date(0);c.setUTCFullYear(e,0,4),c.setUTCHours(0,0,0,0);var h=sa(c);return n.getTime()>=o.getTime()?e+1:n.getTime()>=h.getTime()?e:e-1}(t),e=new Date(0);return e.setUTCFullYear(n,0,4),e.setUTCHours(0,0,0,0),sa(e)}(n).getTime();return Math.round(e/EM)+1}(e)-r;return e.setUTCDate(e.getUTCDate()-7*o),e}function Fl(t){return(Fl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function Pw(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=wc(t);if(n){var c=wc(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function Ow(t,n){return!n||"object"!==Fl(n)&&"function"!=typeof n?Lf(t):n}(this,o)}}(e);function e(){var r;!function y1(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=1&&c<=53}},{key:"set",value:function(o,c,h){return sa(v1(o,h))}}]),e}(ht);function nr(t){return(nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function Af(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=Ff(t);if(n){var c=Ff(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function Fw(t,n){return!n||"object"!==nr(n)&&"function"!=typeof n?kf(t):n}(this,o)}}(e);function e(){var r;!function cs(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=1&&c<=Nw[D]:c>=1&&c<=w1[D]}},{key:"set",value:function(o,c,h){return o.setUTCDate(h),o.setUTCHours(0,0,0,0),o}}]),e}(ht);function Cc(t){return(Cc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function Dc(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=Sc(t);if(n){var c=Sc(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function Uw(t,n){return!n||"object"!==Cc(n)&&"function"!=typeof n?aa(t):n}(this,o)}}(e);function e(){var r;!function C1(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=1&&c<=366:c>=1&&c<=365}},{key:"set",value:function(o,c,h){return o.setUTCMonth(0,h),o.setUTCHours(0,0,0,0),o}}]),e}(ht);function S_(t,n,e){var r,o,c,h,y,D,x,A;bn(2,arguments);var k=Pl(),j=Zn(null!==(r=null!==(o=null!==(c=null!==(h=e?.weekStartsOn)&&void 0!==h?h:null==e||null===(y=e.locale)||void 0===y||null===(D=y.options)||void 0===D?void 0:D.weekStartsOn)&&void 0!==c?c:k.weekStartsOn)&&void 0!==o?o:null===(x=k.locale)||void 0===x||null===(A=x.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==r?r:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var V=si(t),K=Zn(n),ye=((K%7+7)%7"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=jf(t);if(n){var c=jf(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function E1(t,n){return!n||"object"!==Vf(n)&&"function"!=typeof n?Gw(t):n}(this,o)}}(e);function e(){var r;!function S1(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=0&&c<=6}},{key:"set",value:function(o,c,h,y){return(o=S_(o,h,y)).setUTCHours(0,0,0,0),o}}]),e}(ht);function Hf(t){return(Hf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function x_(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=xo(t);if(n){var c=xo(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function M1(t,n){return!n||"object"!==Hf(n)&&"function"!=typeof n?xc(t):n}(this,o)}}(e);function e(){var r;!function x1(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=0&&c<=6}},{key:"set",value:function(o,c,h,y){return(o=S_(o,h,y)).setUTCHours(0,0,0,0),o}}]),e}(ht);function P_(t){return(P_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function L_(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=$f(t);if(n){var c=$f(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function Yw(t,n){return!n||"object"!==P_(n)&&"function"!=typeof n?zf(t):n}(this,o)}}(e);function e(){var r;!function MM(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=0&&c<=6}},{key:"set",value:function(o,c,h,y){return(o=S_(o,h,y)).setUTCHours(0,0,0,0),o}}]),e}(ht);function k_(t){return(k_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function Gf(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=Wf(t);if(n){var c=Wf(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function k1(t,n){return!n||"object"!==k_(n)&&"function"!=typeof n?R_(t):n}(this,o)}}(e);function e(){var r;!function Xw(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=1&&c<=7}},{key:"set",value:function(o,c,h){return o=function O_(t,n){bn(2,arguments);var e=Zn(n);e%7==0&&(e-=7);var o=si(t),D=((e%7+7)%7<1?7:0)+e-o.getUTCDay();return o.setUTCDate(o.getUTCDate()+D),o}(o,h),o.setUTCHours(0,0,0,0),o}}]),e}(ht);function Zf(t){return(Zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function tC(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=l(t);if(n){var c=l(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function U1(t,n){return!n||"object"!==Zf(n)&&"function"!=typeof n?s(t):n}(this,o)}}(e);function e(){var r;!function N1(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=le(t);if(n){var c=le(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function N(t,n){return!n||"object"!==m(n)&&"function"!=typeof n?$(t):n}(this,o)}}(e);function e(){var r;!function v(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=iC(t);if(n){var c=iC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function WA(t,n){return!n||"object"!==Me(n)&&"function"!=typeof n?H1(t):n}(this,o)}}(e);function e(){var r;!function oe(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=oC(t);if(n){var c=oC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function XA(t,n){return!n||"object"!==rC(n)&&"function"!=typeof n?$1(t):n}(this,o)}}(e);function e(){var r;!function YA(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=1&&c<=12}},{key:"set",value:function(o,c,h){var y=o.getUTCHours()>=12;return o.setUTCHours(y&&h<12?h+12:y||12!==h?h:0,0,0,0),o}}]),e}(ht);function sC(t){return(sC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function AM(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=aC(t);if(n){var c=aC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function sO(t,n){return!n||"object"!==sC(n)&&"function"!=typeof n?W1(t):n}(this,o)}}(e);function e(){var r;!function nO(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=0&&c<=23}},{key:"set",value:function(o,c,h){return o.setUTCHours(h,0,0,0),o}}]),e}(ht);function lC(t){return(lC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function kM(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=uC(t);if(n){var c=uC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function fO(t,n){return!n||"object"!==lC(n)&&"function"!=typeof n?q1(t):n}(this,o)}}(e);function e(){var r;!function uO(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=0&&c<=11}},{key:"set",value:function(o,c,h){var y=o.getUTCHours()>=12;return o.setUTCHours(y&&h<12?h+12:h,0,0,0),o}}]),e}(ht);function cC(t){return(cC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function RM(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=dC(t);if(n){var c=dC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function bO(t,n){return!n||"object"!==cC(n)&&"function"!=typeof n?Q1(t):n}(this,o)}}(e);function e(){var r;!function gO(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=1&&c<=24}},{key:"set",value:function(o,c,h){return o.setUTCHours(h<=24?h%24:h,0,0,0),o}}]),e}(ht);function hC(t){return(hC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function BM(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=fC(t);if(n){var c=fC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function xO(t,n){return!n||"object"!==hC(n)&&"function"!=typeof n?J1(t):n}(this,o)}}(e);function e(){var r;!function DO(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=0&&c<=59}},{key:"set",value:function(o,c,h){return o.setUTCMinutes(h,0,0),o}}]),e}(ht);function pC(t){return(pC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function jM(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=mC(t);if(n){var c=mC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function kO(t,n){return!n||"object"!==pC(n)&&"function"!=typeof n?eT(t):n}(this,o)}}(e);function e(){var r;!function PO(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=0&&c<=59}},{key:"set",value:function(o,c,h){return o.setUTCSeconds(h,0),o}}]),e}(ht);function gC(t){return(gC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function HM(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=_C(t);if(n){var c=_C(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function UO(t,n){return!n||"object"!==gC(n)&&"function"!=typeof n?nT(t):n}(this,o)}}(e);function e(){var r;!function NO(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=yC(t);if(n){var c=yC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function qO(t,n){return!n||"object"!==vC(n)&&"function"!=typeof n?rT(t):n}(this,o)}}(e);function e(){var r;!function $O(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=wC(t);if(n){var c=wC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function tk(t,n){return!n||"object"!==bC(n)&&"function"!=typeof n?sT(t):n}(this,o)}}(e);function e(){var r;!function KO(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=DC(t);if(n){var c=DC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function lk(t,n){return!n||"object"!==CC(n)&&"function"!=typeof n?lT(t):n}(this,o)}}(e);function e(){var r;!function rk(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=EC(t);if(n){var c=EC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function mk(t,n){return!n||"object"!==SC(n)&&"function"!=typeof n?cT(t):n}(this,o)}}(e);function e(){var r;!function dk(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=function yk(t,n){if(t){if("string"==typeof t)return XM(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return XM(t,n)}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(x){throw x},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var y,c=!0,h=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var x=e.next();return c=x.done,x},e:function(x){h=!0,y=x},f:function(){try{!c&&null!=e.return&&e.return()}finally{if(h)throw y}}}}function XM(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e=1&&Lr<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var cp=Zn(null!==(K=null!==(se=null!==(ae=null!==(de=r?.weekStartsOn)&&void 0!==de?de:null==r||null===(ye=r.locale)||void 0===ye||null===(lt=ye.options)||void 0===lt?void 0:lt.weekStartsOn)&&void 0!==ae?ae:tn.weekStartsOn)&&void 0!==se?se:null===(tt=tn.locale)||void 0===tt||null===(pt=tt.options)||void 0===pt?void 0:pt.weekStartsOn)&&void 0!==K?K:0);if(!(cp>=0&&cp<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===dt)return""===Ue?si(e):new Date(NaN);var Ie,pa={firstWeekContainsDate:Lr,weekStartsOn:cp,locale:li},Po=[new Kh],z0=dt.match(wk).map(function(jt){var st=jt[0];return st in Zh?(0,Zh[st])(jt,li.formatLong):jt}).join("").match(bk),dp=[],we=JM(z0);try{var Be=function(){var st=Ie.value;!(null!=r&&r.useAdditionalWeekYearTokens)&&function zb(t){return-1!==Hb.indexOf(t)}(st)&&Fg(st,dt,t),(null==r||!r.useAdditionalDayOfYearTokens)&&function kg(t){return-1!==Ub.indexOf(t)}(st)&&Fg(st,dt,t);var ui=st[0],Wl=vk[ui];if(Wl){var RA=Wl.incompatibleTokens;if(Array.isArray(RA)){var NA=dp.find(function(BA){return RA.includes(BA.token)||BA.token===ui});if(NA)throw new RangeError("The format string mustn't contain `".concat(NA.fullToken,"` and `").concat(st,"` at the same time"))}else if("*"===Wl.incompatibleTokens&&dp.length>0)throw new RangeError("The format string mustn't contain `".concat(st,"` and any other token at the same time"));dp.push({token:ui,fullToken:st});var Ox=Wl.run(Ue,st,li.match,pa);if(!Ox)return{v:new Date(NaN)};Po.push(Ox.setter),Ue=Ox.rest}else{if(ui.match(Ek))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ui+"`");if("''"===st?st="'":"'"===ui&&(st=function xk(t){return t.match(Ck)[1].replace(Dk,"'")}(st)),0!==Ue.indexOf(st))return{v:new Date(NaN)};Ue=Ue.slice(st.length)}};for(we.s();!(Ie=we.n()).done;){var ct=Be();if("object"===TC(ct))return ct.v}}catch(jt){we.e(jt)}finally{we.f()}if(Ue.length>0&&Sk.test(Ue))return new Date(NaN);var Ln=Po.map(function(jt){return jt.priority}).sort(function(jt,st){return st-jt}).filter(function(jt,st,ui){return ui.indexOf(jt)===st}).map(function(jt){return Po.filter(function(st){return st.priority===jt}).sort(function(st,ui){return ui.subPriority-st.subPriority})}).map(function(jt){return jt[0]}),rr=si(e);if(isNaN(rr.getTime()))return new Date(NaN);var iv,Vn=function wE(t,n){return bn(2,arguments),function bE(t,n){bn(2,arguments);var e=si(t).getTime(),r=Zn(n);return new Date(e+r)}(t,-Zn(n))}(rr,function Og(t){var n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),t.getTime()-n.getTime()}(rr)),Lo={},Pt=JM(Ln);try{for(Pt.s();!(iv=Pt.n()).done;){var $0=iv.value;if(!$0.validate(Vn,pa))return new Date(NaN);var wn=$0.set(Vn,Lo,pa);Array.isArray(wn)?(Vn=wn[0],CE(Lo,wn[1])):Vn=wn}}catch(jt){Pt.e(jt)}finally{Pt.f()}return Vn}let Rk=(()=>{class t{transform(e,r){return r&&e?((t,n)=>{if(!n)return t;const r=new RegExp(`%{(${Object.keys(n).map(o=>o.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")).join("|")})}`,"g");return t.replace(r,(o,c)=>n[c]?String(n[c]):"")})(e,r):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.\u0275\u0275definePipe({name:"interpolateLabel",type:t,pure:!0}),t})(),eI=(()=>{class t{transform(e,r){return e&&"string"!=typeof e?1===r?e.singular:e.plural:e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.\u0275\u0275definePipe({name:"pluralizeLabel",type:t,pure:!0}),t})(),Nk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({}),t})();new i.InjectionToken("WindowToken");class tI{constructor(n,e){this.min=n,this.max=e,this.bound="bounded",this.meaning="OR"}}class zk extends tI{checkIsInRange(n){switch(this.type){case"closed":return n>=this.min&&n<=this.max;case"open":return n>this.min&&nthis.min&&n<=this.max:"unbounded"===this.bound&&n<=this.max;case"rightopen":return"bounded"===this.bound?n>=this.min&&n=this.min;default:return!1}}isInRange(n){return"OR"===this.meaning?this.checkIsInRange(n):!this.checkIsInRange(n)}toString(){return String(`\n ${"closed"===this.type||"rightopen"===this.type?"[":"]"}\n ${"unbounded"===this.bound&&"leftopen"===this.type?"-infinity":this.min}\n ,\n ${"unbounded"===this.bound&&"rightopen"===this.type?"+infinity":this.max}\n ${"closed"===this.type||"leftopen"===this.type?"]":"["}\n `).replace(/\n/g,"").replace(/ /g,"").trim()}}class Zr extends tI{constructor(n,e){if(super(n,e),!n&&!e)throw new Error("Error creating date interval, please provide at least min or max.");n?e?this.type="closed":(this.bound="unbounded",this.type="rightopen"):(this.bound="unbounded",this.type="leftopen")}static isSameOrAfter(n,e){return e.getTime()>=n.getTime()}static isSameOrBefore(n,e){return e.getTime()<=n.getTime()}static isAfter(n,e){return e.getTime()>n.getTime()}static isBefore(n,e){return e.getTime(){const n=String(t);return n.length>=2?n:0===n.length?"00":`0${n}`},ir=(t,n=null)=>{if(null==t||!t||t instanceof Array)return null;if(t instanceof Date)return isNaN(t.valueOf())?null:t;const e=n?Tk(t,n,new Date):new Date(Date.parse(t));return isNaN(e.getTime())?null:function Mk(t){if(bn(1,arguments),"string"==typeof t){var n=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return n?new Date(Date.UTC(+n[1],+n[2]-1,+n[3],+n[4]-(+n[9]||0)*("-"==n[8]?-1:1),+n[5]-(+n[10]||0)*("-"==n[8]?-1:1),+n[6],+((n[7]||"0")+"00").substring(0,3))):new Date(NaN)}return si(t)}(e)},Mc=t=>{if(!ir(t))return-1;const n=new Date(t),e=new Date(t);return n.setDate(1),e.setMonth(n.getMonth()+1,1),Math.round((e.getTime()-n.getTime())/864e5)},$k=(t,n)=>{if(!ir(t))return null;if(!n||!Array.isArray(n))return new Date(t);const e=Mc(t),r=Array.from(Array(e),(y,D)=>D+1).filter(y=>n.indexOf(y)<0),o=t.getDate(),c=r.reduce((y,D)=>Math.abs(D-o)!!ir(t)&&(!n||!Array.isArray(n)||n.indexOf(t.getDate())<0),nI=(t=[],n)=>n in new Date&&t.map(e=>ir(e)?e[n]():-1).reduce((e,r,o)=>0===o?e=r:e>=0&&r>=0&&e===r?e:-1)>=0,iI=(t=[],n="value")=>{if(!t.length)return!1;const e={Y:"getFullYear",M:"getMonth",D:"getDate",h:"getHours",m:"getMinutes",s:"getSeconds",ms:"getMilliseconds",value:"valueOf"},r=(o,c)=>{const h=e.hasOwnProperty(c)?e[c]:e.value;return nI(o,h)};if(Array.isArray(n)){for(let o=0;o{if(!ir(t))return-1;const e=(t.getDay()-n)%7;return e<0?e+7:e},Zk=(t,n="",e={})=>{const r=ir(t);if(!r)return null;const o={...Wk,...e},c={YY:h=>Mo(String(h.getFullYear()).substr(2)),YYYY:h=>Mo(h.getFullYear()),MM:h=>Mo(h.getMonth()+1),MMMM:h=>Mo(o.monthLabels[h.getMonth()]),DD:h=>Mo(h.getDate()),DDDD:h=>Mo(o.weekdayLabels[xC(h,e.startOfWeek)]),hh:h=>Mo(h.getHours()),mm:h=>Mo(h.getMinutes()),ss:h=>Mo(h.getSeconds()),ms:h=>Mo(h.getMilliseconds())};return n.split(/[^YMDhms]/).reduce((h,y)=>c.hasOwnProperty(y)?h.replace(y,c[y](r)):h,n)},hT=(t,n=0)=>{if(!ir(t))return-1;const e=new Date(t);return e.setDate(1),xC(e,n)},rI=(t,n=0)=>{if(!ir(t))return-1;const e=new Date(t),r=Mc(e);return e.setDate(r),xC(e,n)},oI=(t,n)=>{if(!ir(t)||isNaN(parseInt(n,10)))return t;const e=new Date(t),r=Mc(e);return e.setDate(n>r?r:n),e},sI=(t,n)=>{if(!ir(t)||isNaN(parseInt(n,10)))return t;const e=new Date(t),r=e.getDate();let o=e.getFullYear();return n>11?(o+=1,n-=12):n<0&&(o-=1,n+=12),e.setDate(1),e.setMonth(n),e.setFullYear(o),oI(e,r)},MC=(t,n={},e=[])=>{const r=n.hasOwnProperty("offset")?n.offset:0,o=n.hasOwnProperty("dayOffset")?n.dayOffset:0,c=n.hasOwnProperty("padding")&&n.padding,h=n.hasOwnProperty("fromStart")&&n.fromStart,y=A=>!!c&&(h?At+(6-r)),D=c?7:7-r,x=[];for(let A=t=t||(o>0?0:1);A{const r=[];if(!ir(t))return r;const o=sI(t,e?t.getMonth()-1:t.getMonth()+1),c=Mc(o);for(let h=0;h=c));h+=1);return r},qk=(t,n={})=>{if(!ir(t))return[];const e=n.startOfWeek||0,r=Mc(t),o=hT(t,e),c=rI(t,e),y=r-c,D=MC(0,{offset:o,dayOffset:e,fromStart:!0,padding:n.padding},n.generatePadding?fT(t,o,!0):[]),x=MC(y,{offset:6-c,padding:n.padding},n.generatePadding?fT(t,y):[]),A=Math.floor((x[0].date-D[D.length-1].date)/7),k=[D];for(let j=0;j{if(!ir(t)||!n||n&&!n.length)return[];let c=[];const h=[];return n.forEach(y=>{if(y instanceof Date){const D=((y,D)=>D instanceof Date&&iI([y,D],["Y","M"])?D.getDate():null)(t,y);return!!D&&c.push(D)}isNaN(parseInt(y,10))||h.push(y)}),h.length&&(c=c.concat(((y,D,{startOfWeek:x=0})=>{const A=hT(t,x),k=Mc(t),j=[];for(let V=0;V=0&&j.push(V+1);return j})(0,h,e))),c.reduce((y,D)=>y.indexOf(D)>=0?y:y.concat(D),[]).sort((y,D)=>y-D)};let It=(()=>{class t{}return t.addLeadingZero=Mo,t.closestDateForRange=$k,t.dateOutOfRange=Gk,t.datesAreEqual=iI,t.dateValuesAreEqual=nI,t.formatDate=Zk,t.getFirstWeekdayOfMonth=hT,t.getLastWeekdayOfMonth=rI,t.getMonthLength=Mc,t.getWeekday=xC,t.parseDate=ir,t.updateDate=oI,t.updateMonth=sI,t})(),ds=(()=>{class t{}return t.generateMonth=qk,t.generatePadding=fT,t.generateRange=Yk,t.generateWeek=MC,t})();function pT(t,n){bn(2,arguments);var e=si(t),r=Zn(n);return isNaN(r)?new Date(NaN):(r&&e.setDate(e.getDate()+r),e)}const IC=["Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag","Zondag"],PC=["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],LC=new i.InjectionToken("weekdayLabels"),AC=new i.InjectionToken("monthLabels"),Yf="CALENDAR_VIEW_MONTH",OC="CALENDAR_VIEW_YEAR",kC="CALENDAR_VIEW_DECENNIA";let FC=(()=>{class t{constructor(){_(this,"months",{}),_(this,"currentYear",void 0)}getMonth(e,r){if(r&&(this.currentYear!==r&&(this.months={}),this.currentYear=r),this.months.hasOwnProperty(e))return[...this.months[e]];const o=new Date;o.setMonth(e,1),r&&o.setFullYear(r);const c=ds.generateMonth(o,{startOfWeek:1,padding:!0,generatePadding:!0});return this.months[e]=c,[...c]}getMonthForDate(e){return this.getMonth(e.getMonth(),e.getFullYear())}getRangeForDate(e,r){return ds.generateRange(e,r,{startOfWeek:1})}getRangesForDate(e,r){const o={startOfWeek:1},c=It.updateMonth(e,e.getMonth()-1),h=It.updateMonth(e,e.getMonth()+1);return{before:ds.generateRange(c,r,o),current:ds.generateRange(e,r,o),after:ds.generateRange(h,r,o)}}getClosestDateForRange(e=new Date,r){const o=this.getRangeForDate(e,r);return It.dateOutOfRange(e,o)?e:It.closestDateForRange(e,o)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})();const Rl=Array.isArray,aI="object"==typeof global&&global&&global.Object===Object&&global;var Jk="object"==typeof self&&self&&self.Object===Object&&self;const Io=aI||Jk||Function("return this")(),hs=Io.Symbol;var lI=Object.prototype,t2=lI.hasOwnProperty,n2=lI.toString,B_=hs?hs.toStringTag:void 0;var a2=Object.prototype.toString;var uI=hs?hs.toStringTag:void 0;const Qf=function h2(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":uI&&uI in Object(t)?function r2(t){var n=t2.call(t,B_),e=t[B_];try{t[B_]=void 0;var r=!0}catch{}var o=n2.call(t);return r&&(n?t[B_]=e:delete t[B_]),o}(t):function l2(t){return a2.call(t)}(t)},Nl=function f2(t){return null!=t&&"object"==typeof t};const RC=function m2(t){return"symbol"==typeof t||Nl(t)&&"[object Symbol]"==Qf(t)};var g2=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_2=/^\w*$/;const ua=function b2(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)};const cI=function E2(t){if(!ua(t))return!1;var n=Qf(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n};var t,T2=Io["__core-js_shared__"],dI=(t=/[^.]+$/.exec(T2&&T2.keys&&T2.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";var P2=Function.prototype.toString;const Ic=function L2(t){if(null!=t){try{return P2.call(t)}catch{}try{return t+""}catch{}}return""};var O2=/^\[object .+?Constructor\]$/,B2=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const j2=function V2(t){return!(!ua(t)||function x2(t){return!!dI&&dI in t}(t))&&(cI(t)?B2:O2).test(Ic(t))},Pc=function z2(t,n){var e=function U2(t,n){return t?.[n]}(t,n);return j2(e)?e:void 0},V_=Pc(Object,"create");var K2=Object.prototype.hasOwnProperty;var tF=Object.prototype.hasOwnProperty;function Kf(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n-1},Jf.prototype.set=function yF(t,n){var e=this.__data__,r=BC(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this};const VC=Jf,j_=Pc(Io,"Map"),jC=function TF(t,n){var e=t.__data__;return function SF(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}(n)?e["string"==typeof n?"string":"hash"]:e.map};function Xf(t){var n=-1,e=null==t?0:t.length;for(this.clear();++no?0:o+n),(e=e>o?o:e)<0&&(e+=o),o=n>e?0:e-n>>>0,n>>>=0;for(var c=Array(o);++r-1&&t%1==0&&t<=9007199254740991},_T=function lR(t){return null!=t&&gI(t.length)&&!cI(t)};var cR=/^(?:0|[1-9]\d*)$/;const _I=function dR(t,n){var e=typeof t;return!!(n=n??9007199254740991)&&("number"==e||"symbol"!=e&&cR.test(t))&&t>-1&&t%1==0&&t{class t{constructor(){_(this,"selectedDate",void 0),_(this,"activeDate",void 0),_(this,"selectDate",new i.EventEmitter),_(this,"years",[]),_(this,"selectedYear",-1),_(this,"current",-1)}ngOnInit(){this.current=(new Date).getFullYear()}ngOnChanges(e){const r=Bi(e,"activeDate.currentValue"),o=Bi(e,"activeDate.previousValue"),c=r instanceof Date?r.getFullYear():-1,h=o instanceof Date?o.getFullYear():-1;c>=0&&(h>c||h+17{class t{constructor(e=IC,r){_(this,"moduleWeekdayLabels",void 0),_(this,"calendarService",void 0),_(this,"selectedDate",void 0),_(this,"activeDate",void 0),_(this,"range",void 0),_(this,"interval",void 0),_(this,"weekdayLabels",IC),_(this,"selectDate",new i.EventEmitter),_(this,"dates",[]),_(this,"selectedDay",-1),_(this,"current",void 0),this.moduleWeekdayLabels=e,this.calendarService=r}ngOnInit(){this.weekdayLabels=this.weekdayLabels||this.moduleWeekdayLabels}ngOnChanges(e){const r=this.hasChanged(e,"selectedDate"),o=!!e.interval&&e.interval.currentValue!==e.interval.previousValue,c=this.hasChanged(e,"activeDate"),h=c&&!It.datesAreEqual([e.activeDate.currentValue,e.activeDate.previousValue],"M"),y=this.selectedDate&&this.activeDate.getMonth()===this.selectedDate.getMonth();this.current=this.getCurrentDate(),this.selectedDay=y?this.selectedDate.getDate():-1;let D=[];if(!(r||o||c&&h))return;D=this.calendarService.getMonthForDate(this.activeDate);const x=this.calendarService.getRangesForDate(this.activeDate,this.range);this.dates=D.map(A=>A.map(k=>{const j=new Date;this.activeDate.setHours(j.getHours(),j.getMinutes(),j.getSeconds());const V=new Date(this.activeDate);k.padding&&V.setMonth(k.date>20?this.activeDate.getMonth()-1:this.activeDate.getMonth()+1),V.setDate(k.date);const K=this.dayIsAvailableForRange(k,x)&&(!this.interval||!this.interval.isInRange(V));return{...k,available:K}}))}pickDate(e,r){e.stopPropagation();let o=new Date(this.activeDate);if(r.padding){const c=r.date>20?-1:1;o=It.updateMonth(o,o.getMonth()+c)}this.selectDate.emit(It.updateDate(o,r.date))}hasChanged(e,r){const o=Bi(e,`${r}.currentValue`),c=Bi(e,`${r}.previousValue`),h=o instanceof Date?o.valueOf():0,y=c instanceof Date?c.valueOf():0;return!!h&&h!==y}getCurrentDate(){const e=new Date;return It.datesAreEqual([this.activeDate,e],["M","Y"])?e.getDate():-1}dayIsAvailableForRange(e,r){if(!r)return!0;let o=r.current;return e.padding&&(o=e.date>20?r.before:r.after),o.indexOf(e.date)<0}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(LC),i.\u0275\u0275directiveInject(FC))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-calendar-month"]],inputs:{selectedDate:"selectedDate",activeDate:"activeDate",range:"range",interval:"interval",weekdayLabels:"weekdayLabels"},outputs:{selectDate:"selectDate"},features:[i.\u0275\u0275NgOnChangesFeature],decls:7,vars:2,consts:[[1,"m-datepicker__grid"],[1,"m-datepicker__grid-head"],["scope","col",4,"ngFor","ngForOf"],[1,"m-datepicker__grid-body"],[4,"ngFor","ngForOf"],["scope","col"],[1,"u-text-capitalize",3,"title"],["type","button",3,"disabled","ngClass","click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"table")(2,"thead")(3,"tr",1),i.\u0275\u0275template(4,NR,4,6,"th",2),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(5,"tbody",3),i.\u0275\u0275template(6,jR,2,1,"tr",4),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(4),i.\u0275\u0275property("ngForOf",r.weekdayLabels),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngForOf",r.dates))},dependencies:[ze,re,ot],encapsulation:2,changeDetection:0})),t})();const HR=function(t,n){return{"is-current":t,"is-selected":n}};function zR(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"td")(1,"button",3),i.\u0275\u0275listener("click",function(o){const h=i.\u0275\u0275restoreView(e).$implicit,y=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(y.pickDate(o,h))}),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"titlecase"),i.\u0275\u0275elementEnd()()}if(2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction2(4,HR,e===r.current,e===r.monthLabels[r.selectedMonth])),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(3,2,e)," ")}}function $R(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"tr"),i.\u0275\u0275template(1,zR,4,7,"td",2),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e)}}let GR=(()=>{class t{constructor(e=PC){_(this,"moduleMonthLabels",void 0),_(this,"selectedDate",void 0),_(this,"activeDate",void 0),_(this,"monthLabels",PC),_(this,"selectDate",new i.EventEmitter),_(this,"selectedMonth",-1),_(this,"current",""),_(this,"months",[]),this.moduleMonthLabels=e}ngOnChanges(e){const r=Bi(e,"activeDate.currentValue"),o=r instanceof Date?r.getFullYear():-1,c=this.selectedDate&&this.selectedDate.getFullYear()===this.activeDate.getFullYear(),h=new Date;this.current=o===h.getFullYear()?this.monthLabels[h.getMonth()]:"",this.selectedMonth=c?this.selectedDate.getMonth():-1,e.monthLabels&&(this.monthLabels=this.monthLabels||this.moduleMonthLabels,this.months=HC(this.monthLabels,2))}pickDate(e,r){e.stopPropagation();let o=new Date(this.activeDate);o=It.updateMonth(o,this.monthLabels.indexOf(r)),this.selectDate.emit(o)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(AC))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-calendar-year"]],inputs:{selectedDate:"selectedDate",activeDate:"activeDate",monthLabels:"monthLabels"},outputs:{selectDate:"selectDate"},features:[i.\u0275\u0275NgOnChangesFeature],decls:4,vars:1,consts:[[1,"m-datepicker__list"],[1,"m-datepicker__list-body"],[4,"ngFor","ngForOf"],["type","button",3,"ngClass","click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"table")(2,"tbody",1),i.\u0275\u0275template(3,$R,2,1,"tr",2),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("ngForOf",r.months))},dependencies:[ze,re,fn],encapsulation:2,changeDetection:0})),t})();function WR(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"aui-calendar-month",10),i.\u0275\u0275listener("selectDate",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.pickDate(o))}),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("activeDate",e.activeDate)("range",e.range)("interval",e.interval)("selectedDate",e.selectedDate)("weekdayLabels",e.weekdayLabels)}}function ZR(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"aui-calendar-year",11),i.\u0275\u0275listener("selectDate",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.pickDate(o))}),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("activeDate",e.activeDate)("monthLabels",e.monthLabels)("selectedDate",e.selectedDate)}}function qR(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"aui-calendar-decennia",12),i.\u0275\u0275listener("selectDate",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.pickDate(o))}),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("activeDate",e.activeDate)("selectedDate",e.selectedDate)}}let YR=(()=>{class t{constructor(e=PC,r=IC,o){_(this,"moduleMonthLabels",void 0),_(this,"moduleWeekdayLabels",void 0),_(this,"calendarService",void 0),_(this,"role","application"),_(this,"ariahidden","false"),_(this,"ariaPreviousLabels",["Ga naar vorige maand","Ga naar vorig jaar","Ga naar vorige 18 jaren"]),_(this,"ariaNextLabels",["Ga naar volgende maand","Ga naar volgend jaar","Ga naar volgende 18 jaren"]),_(this,"selectedDate",void 0),_(this,"range",void 0),_(this,"interval",void 0),_(this,"weekdayLabels",void 0),_(this,"monthLabels",void 0),_(this,"selectDate",new i.EventEmitter),_(this,"CALENDAR_VIEW_MONTH",Yf),_(this,"CALENDAR_VIEW_YEAR",OC),_(this,"CALENDAR_VIEW_DECENNIA",kC),_(this,"activeDate",void 0),_(this,"activeView",Yf),_(this,"headerLabel",""),_(this,"ariaPreviousLabel",this.ariaPreviousLabels[0]),_(this,"ariaNextLabel",this.ariaNextLabels[0]),this.moduleMonthLabels=e,this.moduleWeekdayLabels=r,this.calendarService=o}ngOnInit(){this.initControl()}ngOnChanges(e){const r=e.selectedDate&&e.selectedDate.currentValue?e.selectedDate:null;if(typeof this.monthLabels<"u"&&r&&!It.datesAreEqual(r.currentValue,r.previousValue))this.activeDate=this.selectedDate,this.updateHeaderLabel();else{let o=new Date;this.interval&&this.interval.isInRange(o)&&(o=this.interval.min),this.activeDate=It.parseDate(o),this.initControl()}}updateActiveDate(e=0){const r=this.activeDate?new Date(this.activeDate):new Date;switch(this.activeView){case Yf:r.setMonth(r.getMonth()+e);break;case OC:r.setFullYear(r.getFullYear()+e);break;case kC:r.setFullYear(r.getFullYear()+18*e)}this.activeDate=r,this.updateHeaderLabel()}switchView(e=1){const r=[Yf,OC,kC],o=r.indexOf(this.activeView);let c=o+e>=r.length?0:o+e;c=c<0?r.length-1:c,this.activeView=r[c],this.selectedDate&&0===c&&1===e&&(this.activeDate=this.selectedDate),this.updateHeaderLabel()}updateHeaderLabel(){switch(this.activeView){case Yf:this.headerLabel=this.monthLabels[this.activeDate.getMonth()]+" "+this.activeDate.getFullYear(),this.ariaPreviousLabel=this.ariaPreviousLabels[0],this.ariaNextLabel=this.ariaNextLabels[0];break;case OC:this.headerLabel=String(this.activeDate.getFullYear()),this.ariaPreviousLabel=this.ariaPreviousLabels[1],this.ariaNextLabel=this.ariaNextLabels[1];break;case kC:const e=this.activeDate.getFullYear();this.headerLabel=`${e} - ${e+17}`,this.ariaPreviousLabel=this.ariaPreviousLabels[2],this.ariaNextLabel=this.ariaNextLabels[2]}}pickDate(e){const r=this.activeView===Yf;this.selectDate.emit({date:e,complete:r}),r||(this.activeDate=e,this.switchView(-1))}initControl(){this.weekdayLabels=this.weekdayLabels||this.moduleWeekdayLabels,this.monthLabels=this.monthLabels||this.moduleMonthLabels,this.activeDate=this.calendarService.getClosestDateForRange(this.activeDate,this.range),this.selectedDate&&(this.activeDate=this.selectedDate,this.updateActiveDate()),this.updateHeaderLabel()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(AC),i.\u0275\u0275directiveInject(LC),i.\u0275\u0275directiveInject(FC))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-calendar"]],hostVars:2,hostBindings:function(e,r){2&e&&i.\u0275\u0275attribute("role",r.role)("aria-hidden",r.ariahidden)},inputs:{ariaPreviousLabels:"ariaPreviousLabels",ariaNextLabels:"ariaNextLabels",selectedDate:"selectedDate",range:"range",interval:"interval",weekdayLabels:"weekdayLabels",monthLabels:"monthLabels"},outputs:{selectDate:"selectDate"},features:[i.\u0275\u0275NgOnChangesFeature],decls:13,vars:8,consts:[[1,"m-datepicker__nav"],["type","button",1,"m-datepicker__nav-title",3,"click"],["name","ai-arrow-down-1","role","button","tabindex","0"],[1,"m-datepicker__nav-pagination"],["type","button",1,"a-button","a-button--text","a-button--primary","has-icon",3,"click"],["name","ai-arrow-left-1"],["name","ai-arrow-right-1"],[3,"activeDate","range","interval","selectedDate","weekdayLabels","selectDate",4,"ngIf"],[3,"activeDate","monthLabels","selectedDate","selectDate",4,"ngIf"],[3,"activeDate","selectedDate","selectDate",4,"ngIf"],[3,"activeDate","range","interval","selectedDate","weekdayLabels","selectDate"],[3,"activeDate","monthLabels","selectedDate","selectDate"],[3,"activeDate","selectedDate","selectDate"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"button",1),i.\u0275\u0275listener("click",function(){return r.switchView()}),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"titlecase"),i.\u0275\u0275element(4,"aui-icon",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(5,"div",3)(6,"button",4),i.\u0275\u0275listener("click",function(){return r.updateActiveDate(-1)}),i.\u0275\u0275element(7,"aui-icon",5),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"button",4),i.\u0275\u0275listener("click",function(){return r.updateActiveDate(1)}),i.\u0275\u0275element(9,"aui-icon",6),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275template(10,WR,1,5,"aui-calendar-month",7),i.\u0275\u0275template(11,ZR,1,3,"aui-calendar-year",8),i.\u0275\u0275template(12,qR,1,2,"aui-calendar-decennia",9)),2&e&&(i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(3,6,r.headerLabel)," "),i.\u0275\u0275advance(4),i.\u0275\u0275attribute("aria-label",r.ariaPreviousLabel),i.\u0275\u0275advance(2),i.\u0275\u0275attribute("aria-label",r.ariaNextLabel),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",r.activeView===r.CALENDAR_VIEW_MONTH),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.activeView===r.CALENDAR_VIEW_YEAR),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.activeView===r.CALENDAR_VIEW_DECENNIA))},dependencies:[Fe,Gt,RR,UR,GR,fn],encapsulation:2,changeDetection:0})),t})(),QR=(()=>{class t{constructor(){_(this,"clickedDate",new Date),_(this,"range",[1,6]),_(this,"interval",qf.dateInterval(pT(new Date,1),pT(new Date,3)).closedInterval().build()),_(this,"javascript1","import { CalendarModule } from '@acpaas-ui/ngx-calendar;'\n\n@NgModule({\n\timports: [\n\t\tCalendarModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"javascript2","import { CalendarModule } from '@acpaas-ui/ngx-calendar;'\n\n@NgModule({\n\timports: [\n\t\tCalendarModule.forChild([\n\t\t\t'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday',\n\t\t], [\n\t\t\t'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December',\n\t\t])\n\t]\n});\n\nexport class AppModule {};"),_(this,"javascript3","import { DateRange } from '@acpaas-ui/ngx-utils';\n\npublic clickedDate: Date = new Date();\npublic range: DateRange = [1, 6];\n// date-fns is used to created the dates but do note that a Date object is passed through\npublic interval = IntervalBuilder\n .dateInterval(addDays(new Date(), 1), addDays(new Date(), 3))\n .closedInterval()\n .build();\n\nselectDate(event) {\n\tif (event.complete) {\n\t\tthis.clickedDate = event.date;\n\t}\n}"),_(this,"html",'\n')}changeDate(e){e.complete&&(this.clickedDate=e.date)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:21,vars:7,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom-xs"],[3,"codeSnippet"],[1,"u-margin-bottom"],["routerLink","/modules/utils/interval/"],[1,"m-datepicker","is-open"],[3,"range","interval","selectedDate","selectDate"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Calendar"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"p",1),i.\u0275\u0275text(5,"Or override the default values (Dutch labels are used by default):"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",3),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",3),i.\u0275\u0275element(9,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",3),i.\u0275\u0275element(11,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"div",3)(13,"blockquote"),i.\u0275\u0275text(14," For more information about using intervals to (dis)allow date selection, click "),i.\u0275\u0275elementStart(15,"a",4),i.\u0275\u0275text(16,"here"),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(17,". "),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(18,"div",3)(19,"div",5)(20,"aui-calendar",6),i.\u0275\u0275listener("selectDate",function(c){return r.changeDate(c)}),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.javascript1),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.javascript2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.javascript3),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.html),i.\u0275\u0275advance(9),i.\u0275\u0275property("range",r.range)("interval",r.interval)("selectedDate",r.clickedDate))},dependencies:[Tt,YR,Qs],encapsulation:2})),t})();const zC=new i.InjectionToken("contextConfig"),bI={useTitleSuffix:!1,extendTitle:!1,titleDelimiter:" | ",defaults:{},routerContext:!0};let $C=(()=>{class t{constructor(e,r,o){_(this,"metaConfig",void 0),_(this,"document",void 0),_(this,"titleService",void 0),this.metaConfig=e,this.document=r,this.titleService=o,this.metaConfig={...bI,...e}}updateMetaTags(e={}){if(e.disableUpdate)return;const r={...e,...this.metaConfig.defaults,title:this.getTitle(e)};Object.keys(r).forEach(o=>{this.setTag(o,r)})}setTag(e,r={}){switch(e){case"title":case"titleSuffix":return this.setTitle(r.title,r.titleSuffix);case"favIcon":return this.setFavIcon(r.favIcon);default:return this.setTagDefault(e,r[e])}}setTitle(e,r=this.metaConfig.defaults.titleSuffix){let o=this.isDefined(e)?e:this.metaConfig.defaults.title;this.metaConfig.useTitleSuffix&&this.isDefined(r)&&(o+=r),this.titleService.setTitle(o)}setFavIcon(e){this.updateFavIcon("apple-touch-icon",e),this.updateFavIcon("shortcut icon",e)}updateFavIcon(e,r,o){const c=this.document.querySelector(`link[rel="${e}"]`);if(c&&c.getAttribute("href")===r)return;const h=this.document.createElement("link");h.setAttribute("rel",e),h.setAttribute("href",r),o&&Object.keys(o).forEach(y=>{h.setAttribute(y,o[y])}),c&&this.document.head.removeChild(c),this.document.head.appendChild(h)}setTagDefault(e,r){const o=this.getOrCreateMetaTag(e),c=this.isDefined(r)?r:this.metaConfig.defaults[e]||"";o.setAttribute("content",c),"description"===e&&this.getOrCreateMetaTag("og:description").setAttribute("content",c)}isDefined(e){return typeof e<"u"}getOrCreateMetaTag(e){let r=this.document.querySelector(`meta[name='${e}']`);return r||(r=this.document.createElement("meta"),r.setAttribute("name",e),this.document.head.appendChild(r)),r}getTitle(e={}){return this.metaConfig.extendTitle&&e.parent?[e.title,e.parent].join(this.metaConfig.titleDelimiter):e.title}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275inject(zC),i.\u0275\u0275inject(W),i.\u0275\u0275inject(uo))}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})(),U_=(()=>{class t{constructor(e){_(this,"contextWriter",void 0),_(this,"context$",new Ci(null)),this.contextWriter=e}updateContext(e){this.contextWriter.updateMetaTags(e),this.context$.next(e)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275inject($C))}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})();class wI{static getParentTitle(n,e=[]){if(!n)return e;const r=this.verifyPath(n,"parent.data.meta.title"),o=r?e.concat(r):e;return n.parent?this.getParentTitle(n.parent,o):o}static verifyPath(n,e){let r=n;const o=e.split(".");for(const c of o){if(!r[c])return null;r=r[c]}return r}static findLastChild(n){let r=n.snapshot.firstChild;for(;null!==r.firstChild;)r=r.firstChild;return r}}let CI=(()=>{class t{constructor(e,r,o,c,h){_(this,"contextService",void 0),_(this,"contextWriterService",void 0),_(this,"router",void 0),_(this,"activatedRoute",void 0),_(this,"contextConfig",void 0),this.contextService=e,this.contextWriterService=r,this.router=o,this.activatedRoute=c,this.contextConfig=h,h.routerContext||!h.defaults?this.router.events.pipe(vr(y=>y instanceof $s),(0,Xe.U)(()=>wI.findLastChild(this.activatedRoute))).subscribe(y=>{y.data=y.data||{},y.data.meta=y.data.meta||{},y.data.meta.parent=wI.getParentTitle(y),this.contextService.updateContext(y.data.meta)}):Object.keys(h.defaults).forEach(y=>{this.contextWriterService.setTag(y,h.defaults)})}static forRoot(e){return{ngModule:t,providers:[{provide:zC,useValue:e},U_,$C]}}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275inject(U_),i.\u0275\u0275inject($C),i.\u0275\u0275inject(oi),i.\u0275\u0275inject(Zs),i.\u0275\u0275inject(zC))}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[U_,$C,{provide:zC,useValue:bI}],imports:[dh]})),t})(),KR=(()=>{class t{constructor(e,r,o){_(this,"contextService",void 0),_(this,"meta",void 0),_(this,"titleService",void 0),_(this,"importModule","import { ContextModule } from '@acpaas-ui/ngx-context';\n\n@NgModule({\n\timports: [\n\t\tContextModule\n\t]\n})"),_(this,"codeExampleJS1","@NgModule({\n\timports: [\n\t\tContextModule.forRoot({\n\t\t\tuseTitleSuffix: true,\n\t\t\textendTitle: true,\n\t\t\ttitleDelimiter: ' | ',\n\t\t\tdefaults: {\n\t\t\t\ttitleSuffix: 'Context Module',\n\t\t\t},\n\t\t\trouterContext: true,\n\t\t}),\n\t]\n})"),_(this,"codeExampleJS2","export const CONTEXT_EXAMPLES_ROUTES: Routes = [\n\t{\n\t\tpath: '',\n\t\tcomponent: ContextDemoPageComponent,\n\t\tpathMatch: 'full',\n\t\tdata: {\n\t\t\tmeta: {\n\t\t\t\tpage: 'Context example page',\n\t\t\t\ttitle: 'Context',\n\t\t\t\tdescription: 'Description of the context example page',\n\t\t\t\tmetatags: 'Antwerp UI, Angular, context',\n\t\t\t},\n\t\t},\n\t},\n];"),_(this,"codeExampleJS3","import { ContextService } from '@acpaas-ui/ngx-context';\n\n@Component({\n\tproviders: [\n\t\tContextService,\n\t],\n})\n\nexport class ContextDemoPageComponent {\n\tconstructor(private contextService: ContextService) {}\n\n\tpublic setTitle() {\n\t\tthis.contextService.updateContext({\n\t\t\ttitle: 'New context example title',\n\t\t});\n\t}\n}"),_(this,"codeExampleHTML",''),_(this,"pageTitle",void 0),_(this,"pageDescription",void 0),this.contextService=e,this.meta=r,this.titleService=o}setTitle(){this.contextService.updateContext({title:"New context example title"}),this.pageTitle=this.titleService.getTitle()}ngOnInit(){this.pageTitle=this.titleService.getTitle(),this.pageDescription=this.meta.getTag('name = "description"').content}ngOnDestroy(){this.contextService.updateContext({title:"Antwerp UI Angular"})}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(U_),i.\u0275\u0275directiveInject(kp),i.\u0275\u0275directiveInject(uo))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],features:[i.\u0275\u0275ProvidersFeature([U_])],decls:34,vars:7,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"h4","u-margin-bottom"],[1,"m-alert"],[1,"a-definition-list","u-margin-bottom"],[1,"a-pre","a-pre--scrollable"],["type","button",1,"a-button",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Context"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"h3",3),i.\u0275\u0275text(5,"Set defaults"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"h3",3),i.\u0275\u0275text(9,"Set tags on routes"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",1),i.\u0275\u0275element(11,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"div",1)(13,"div",4),i.\u0275\u0275text(14," The following page properties were defined on the Angular routes. "),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(15,"dl",5)(16,"dt"),i.\u0275\u0275text(17,"Page title:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(18,"dd")(19,"pre",6),i.\u0275\u0275text(20),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(21,"dt"),i.\u0275\u0275text(22,"Page description:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(23,"dd")(24,"pre",6),i.\u0275\u0275text(25),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(26,"h3",3),i.\u0275\u0275text(27,"Set tags in a component"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(28,"div",1),i.\u0275\u0275element(29,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(30,"div",1),i.\u0275\u0275element(31,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(32,"button",7),i.\u0275\u0275listener("click",function(){return r.setTitle()}),i.\u0275\u0275text(33,"Update page title"),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.importModule),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.codeExampleJS1),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.codeExampleJS2),i.\u0275\u0275advance(9),i.\u0275\u0275textInterpolate(r.pageTitle),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate(r.pageDescription),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.codeExampleJS3),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML))},dependencies:[Tt],encapsulation:2})),t})();var GC=(()=>(function(t){t.Auto="auto",t.Small="small",t.Medium="medium",t.Large="large",t.Full="full"}(GC||(GC={})),GC))(),ca=(()=>(function(t){t[t.OPEN=0]="OPEN",t[t.CLOSED=1]="CLOSED"}(ca||(ca={})),ca))();const H_=(t,n,e)=>!!t.code&&t.code.toLowerCase()===n&&(void 0===e||t.keyCode===e||t.which===e);var DI=F(787);function SI(t,n){return e=>e.lift(new JR(t,n))}class JR{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new XR(n,this.compare,this.keySelector))}}class XR extends ii.L{constructor(n,e,r){super(n),this.keySelector=r,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:o}=this;e=o?o(n):n}catch(o){return this.destination.error(o)}let r=!1;if(this.hasKey)try{const{compare:o}=this;r=o(this.key,e)}catch(o){return this.destination.error(o)}else this.hasKey=!0;r||(this.key=e,this.destination.next(n))}}let yT=(()=>{class t{constructor(e){_(this,"elementRef",void 0),_(this,"class",!0),_(this,"auiFlyoutZone",void 0),_(this,"isExpanded",!1),_(this,"element",void 0),this.elementRef=e,this.element=this.elementRef.nativeElement}get flyoutZoneIsExpanded(){return this.isExpanded}contains(e){return!1!==this.auiFlyoutZone&&this.element.contains(e)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ElementRef))}),_(t,"\u0275dir",i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFlyoutZone",""]],hostVars:3,hostBindings:function(e,r){2&e&&(i.\u0275\u0275attribute("aria-expanded",r.flyoutZoneIsExpanded),i.\u0275\u0275classProp("m-flyout__content",r.class))},inputs:{auiFlyoutZone:"auiFlyoutZone"},exportAs:["auiFlyoutZone"]})),t})(),EI=(()=>{class t{constructor(){_(this,"state$",new vt.xQ)}close(){this.state$.next(ca.CLOSED)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})(),WC=(()=>{class t{constructor(e,r,o,c){_(this,"document",void 0),_(this,"flyoutService",void 0),_(this,"cdr",void 0),_(this,"ref",void 0),_(this,"flyoutClass",!0),_(this,"flyoutTabIndex","-1"),_(this,"flyoutAriaPop",!0),_(this,"size",GC.Auto),_(this,"align",void 0),_(this,"toggleClick",!0),_(this,"activateOnFocus",!1),_(this,"opened",new i.EventEmitter),_(this,"closed",new i.EventEmitter),_(this,"flyoutZone",void 0),_(this,"isOpened",!1),_(this,"state$",new vt.xQ),_(this,"destroyed$",new vt.xQ),this.document=e,this.flyoutService=r,this.cdr=o,this.ref=c,this.handleKeyUp=this.handleKeyUp.bind(this),this.state$.next(ca.CLOSED),(0,DI.T)(this.state$,this.flyoutService.state$).pipe(Bn(this.destroyed$),SI()).subscribe(h=>{this.isOpened=h===ca.OPEN,this.flyoutZone&&(this.flyoutZone.isExpanded=this.isOpened),this.isOpened?this.opened.emit():this.closed.emit()})}get flyoutAlignRight(){return"right"===this.align}get flyoutSmall(){return"small"===this.size}get flyoutMedium(){return"medium"===this.size}get flyoutLarge(){return"large"===this.size}get flyoutFull(){return"full"===this.size}get flyoutOpen(){return this.isOpened}ngOnDestroy(){this.destroyed$.next(!0)}open(){this.state$.next(ca.OPEN),this.document.addEventListener("keyup",this.handleKeyUp),this.cdr.detectChanges()}close(){this.state$.next(ca.CLOSED),this.cdr.markForCheck()}isInClosableZone(e){if(!e)return!1;const r=this.flyoutZone&&this.flyoutZone.contains(e),o=this.ref.nativeElement===e||this.ref.nativeElement.contains(e);return r||o}handleKeyUp(e){H_(e,"escape",27)&&(this.document.removeEventListener("keyup",this.handleKeyUp),this.close(),this.cdr.markForCheck())}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(W),i.\u0275\u0275directiveInject(EI),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.ElementRef))}),_(t,"\u0275dir",i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFlyout",""]],contentQueries:function(e,r,o){if(1&e&&i.\u0275\u0275contentQuery(o,yT,7),2&e){let c;i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.flyoutZone=c.first)}},hostVars:16,hostBindings:function(e,r){2&e&&(i.\u0275\u0275attribute("tabindex",r.flyoutTabIndex)("aria-haspopup",r.flyoutAriaPop),i.\u0275\u0275classProp("m-flyout",r.flyoutClass)("m-flyout--right",r.flyoutAlignRight)("m-flyout--s",r.flyoutSmall)("m-flyout--md",r.flyoutMedium)("m-flyout--l",r.flyoutLarge)("m-flyout--full",r.flyoutFull)("is-open",r.flyoutOpen))},inputs:{size:"size",align:"align",toggleClick:"toggleClick",activateOnFocus:"activateOnFocus"},outputs:{opened:"opened",closed:"closed"},exportAs:["auiFlyout"]})),t})(),TI=(()=>{class t{constructor(e,r,o,c){_(this,"flyout",void 0),_(this,"document",void 0),_(this,"elementRef",void 0),_(this,"class",!0),_(this,"openOnFocus",!0),_(this,"disabled",void 0),_(this,"isPlatformBrowser",void 0),_(this,"destroyed$",new vt.xQ),this.flyout=e,this.document=o,this.elementRef=c,this.isPlatformBrowser=Vo(r),this.closeIfInClosableZone=this.closeIfInClosableZone.bind(this),this.onBlur=this.onBlur.bind(this)}get tabIndex(){return this.disabled?"-1":"0"}ngOnInit(){this.flyout.state$.pipe(Bn(this.destroyed$)).subscribe(e=>{e===ca.OPEN?setTimeout(()=>{this.addEventListeners()},100):this.removeEventListeners()})}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete(),this.isPlatformBrowser&&this.document.removeEventListener("click",this.closeIfInClosableZone,!0)}onMousedown(e){e.stopImmediatePropagation(),this.flyout.isOpened&&this.flyout.toggleClick?this.close():this.open()}onFocus(){!this.openOnFocus||!this.isPlatformBrowser||this.flyout.isOpened||this.open()}onKeyDown(e){(H_(e,"space",32)||H_(e,"enter",13))&&this.open()}onBlur(e){this.isPlatformBrowser&&this.flyout.isOpened&&e.relatedTarget&&!this.flyout.isInClosableZone(e.relatedTarget)&&e.relatedTarget!==this.elementRef.nativeElement&&this.close()}open(){!this.isPlatformBrowser||this.flyout.isOpened||this.flyout.open()}close(){!this.isPlatformBrowser||!this.flyout.isOpened||this.flyout.close()}addEventListeners(){this.document.addEventListener("click",this.closeIfInClosableZone,!0),this.document.addEventListener("focusout",this.onBlur,!0)}removeEventListeners(){this.document.removeEventListener("click",this.closeIfInClosableZone,!0),this.document.removeEventListener("focusout",this.onBlur,!0)}checkIfInClosableZone(e){const r=this.flyout.isInClosableZone(e.target),o=e.target===this.elementRef.nativeElement,c=this.elementRef.nativeElement.contains(e.target);return!r&&!o&&!c}closeIfInClosableZone(e){this.isPlatformBrowser&&this.checkIfInClosableZone(e)&&this.close()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(WC,1),i.\u0275\u0275directiveInject(i.PLATFORM_ID),i.\u0275\u0275directiveInject(W),i.\u0275\u0275directiveInject(i.ElementRef))}),_(t,"\u0275dir",i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFlyoutAction",""]],hostVars:3,hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("mousedown",function(c){return r.onMousedown(c)})("focus",function(){return r.onFocus()})("keydown",function(c){return r.onKeyDown(c)}),2&e&&(i.\u0275\u0275attribute("tabindex",r.tabIndex),i.\u0275\u0275classProp("ngx-flyout-action",r.class))},inputs:{openOnFocus:"openOnFocus",disabled:"disabled"},exportAs:["auiFlyoutAction"]})),t})(),eN=(()=>{class t{constructor(e){_(this,"flyout",void 0),this.flyout=e}onClick(){this.flyout.close()}onKeyDown(e){(H_(e,"space",32)||H_(e,"enter",13))&&this.flyout.close()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(WC,1))}),_(t,"\u0275dir",i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFlyoutClose",""]],hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("click",function(){return r.onClick()})("keydown",function(c){return r.onKeyDown(c)})},exportAs:["auiFlyoutClose"]})),t})();var ZC=(()=>(function(t){t.Auto="auto",t.Tiny="tiny",t.Small="small",t.Large="large"}(ZC||(ZC={})),ZC))();function tN(t,n){1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275projection(1),i.\u0275\u0275elementContainerEnd())}const nN=function(t){return[t]},iN=function(t,n,e,r){return["a-button",t,n,e,r]},rN=["*"];let oN=(()=>{class t{constructor(){_(this,"buttonClassNames",{tiny:"a-button--s",small:"a-button--s",auto:"",large:"a-button--l"}),_(this,"title",void 0),_(this,"label",void 0),_(this,"icon",void 0),_(this,"align",void 0),_(this,"buttonSize",ZC.Auto),_(this,"flyoutSize",void 0),_(this,"outline",!1),_(this,"flyoutOpen",!1)}handleFlyoutChanged(e){this.flyoutOpen=e}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-flyout-button"]],inputs:{title:"title",label:"label",icon:"icon",align:"align",buttonSize:"buttonSize",flyoutSize:"flyoutSize",outline:"outline"},ngContentSelectors:rN,decls:6,vars:14,consts:[["auiFlyout","",3,"ngClass","size","closed","opened"],["auiFlyoutAction","","type","button",3,"ngClass","title"],[3,"name"],["auiFlyoutZone",""],[4,"ngIf"]],template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275listener("closed",function(){return r.handleFlyoutChanged(!1)})("opened",function(){return r.handleFlyoutChanged(!0)}),i.\u0275\u0275elementStart(1,"button",1),i.\u0275\u0275element(2,"aui-icon",2),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",3),i.\u0275\u0275template(5,tN,2,0,"ng-container",4),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(7,nN,"right"===r.align?"m-flyout--bottom-right":""))("size",r.flyoutSize),i.\u0275\u0275advance(1),i.\u0275\u0275propertyInterpolate("title",r.title),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction4(9,iN,r.buttonClassNames[r.buttonSize],r.icon&&r.label?"has-icon-left":"",r.icon&&!r.label?"has-icon":"",r.outline?"a-button--outline":"a-button")),i.\u0275\u0275advance(1),i.\u0275\u0275property("name",r.icon),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",r.label," "),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",r.flyoutOpen))},dependencies:[ze,Fe,TI,yT,WC,Gt],encapsulation:2})),t})(),sN=(()=>{class t{constructor(){_(this,"codeExampleJS1","import { FlyoutModule } from '@acpaas-ui/ngx-flyout';\n\n@NgModule({\n\timports: [\n\t\tFlyoutModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"codeExampleJS2","import { FlyoutModule } from '@acpaas-ui/ngx-flyout';"),_(this,"codeExampleHTML1",'
    \n\t\n\t
    \n\t\t
    \n\t\t\t

    Hello world!

    \n\t\t
    \n\t\t
    \n\t\t\t\n\t\t
    \n\t
    \n
    '),_(this,"codeExampleJS3","import { FlyoutButtonModule } from '@acpaas-ui/ngx-flyout';\n\n@NgModule({\n\timports: [\n\t\tFlyoutButtonModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"codeExampleJS4","import { FlyoutButtonModule } from '@acpaas-ui/ngx-flyout';"),_(this,"codeExampleHTML2",'\n\t
    \n\t\t

    Hello world!

    \n\t
    \n')}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:34,vars:6,consts:[[1,"h3","u-margin-bottom"],[1,"h4","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom-l"],["auiFlyout","","data-align","left","size","small"],["auiFlyoutAction","","type","button",1,"a-button"],["auiFlyoutZone","",1,"has-padding","u-text-center"],["auiFlyoutClose","","type","button",1,"a-button"],[1,"u-margin-bottom-3xl","u-text-right"],["buttonSize","large","align","right","flyoutSize","small","icon","ai-single-neutral","label","Open flyout","outline","true","title","Click to open!"],[1,"u-margin","u-text-center"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Flyout"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"h3",1),i.\u0275\u0275text(3,"Basic flyout"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",2),i.\u0275\u0275element(5,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",2),i.\u0275\u0275element(7,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",2),i.\u0275\u0275element(9,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",4)(11,"div",5)(12,"button",6),i.\u0275\u0275text(13,"Open flyout"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(14,"div",7)(15,"div",2)(16,"p"),i.\u0275\u0275text(17,"Hello world!"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(18,"div")(19,"button",8),i.\u0275\u0275text(20,"Close flyout"),i.\u0275\u0275elementEnd()()()()(),i.\u0275\u0275elementStart(21,"h3",1),i.\u0275\u0275text(22,"Flyout Button"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(23,"div",2),i.\u0275\u0275element(24,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(25,"div",2),i.\u0275\u0275element(26,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(27,"div",2),i.\u0275\u0275element(28,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(29,"div",9)(30,"aui-flyout-button",10)(31,"div",11)(32,"p"),i.\u0275\u0275text(33,"Hello world!"),i.\u0275\u0275elementEnd()()()()),2&e&&(i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.codeExampleJS1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML1),i.\u0275\u0275advance(15),i.\u0275\u0275property("codeSnippet",r.codeExampleJS3),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS4),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML2))},dependencies:[Tt,TI,eN,yT,WC,oN],encapsulation:2})),t})();function aN(t,n){if(1&t&&(i.\u0275\u0275namespaceSVG(),i.\u0275\u0275namespaceHTML(),i.\u0275\u0275elementStart(0,"span",3),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.ariaLabel)}}let Bl=(()=>{class t{get classes(){return["ai",this.className,this.name].filter(Boolean).join(" ")}constructor(e){var r=this;_(this,"renderer",void 0),_(this,"name",void 0),_(this,"ariaLabel",void 0),_(this,"className",""),_(this,"fetchAntwerpIcons",Wy(function*(){try{const h=yield(yield fetch("https://cdn.antwerpen.be/core_branding_scss/6.2.2/assets/images/ai.svg")).text(),y=r.renderer.createElement("svg");r.renderer.setAttribute(y,"id","aiSvg");const D=(new DOMParser).parseFromString(h,"text/html").querySelector("body > svg");r.renderer.appendChild(y,D),document.getElementById("aiSvg")||r.renderer.appendChild(document.body,y)}catch(o){throw new Error(o)}})),this.renderer=e}ngOnInit(){document.getElementById("aiSvg")||this.fetchAntwerpIcons()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.Renderer2))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-icon"]],hostVars:1,hostBindings:function(e,r){2&e&&i.\u0275\u0275attribute("class",r.classes)},inputs:{name:"name",ariaLabel:"ariaLabel",className:"className"},decls:4,vars:2,consts:[[1,"ai"],["aria-hidden","true"],["class","u-screen-reader-only",4,"ngIf"],[1,"u-screen-reader-only"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"span",0),i.\u0275\u0275namespaceSVG(),i.\u0275\u0275elementStart(1,"svg",1),i.\u0275\u0275element(2,"use"),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(3,aN,2,1,"span",2),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(2),i.\u0275\u0275attribute("href","#"+r.name),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.ariaLabel))},dependencies:[Fe],styles:["[_nghost-%COMP%]{display:inline-flex}"]})),t})(),lN=(()=>{class t{constructor(){_(this,"javascript","import { IconModule } from '@acpaas-ui/ngx-icon';\n\n@NgModule({\n\timports: [\n\t\tIconModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"html",'')}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:8,vars:2,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],["name","ai-alarm-bell","ariaLabel","This is a bell","className","u-text-primary",2,"font-size","2rem"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Icon"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-icon",3),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.javascript),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.html))},dependencies:[Tt,Bl],encapsulation:2})),t})();const bT=function(t){return{"m-pagination--outline":t}},ep=function(t){return{"is-disabled":t}};function uN(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"ul",2)(1,"li",3)(2,"a",4),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(o.prev())}),i.\u0275\u0275element(3,"aui-icon",5),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(4,"li",6)(5,"a",4),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(o.next())}),i.\u0275\u0275element(6,"aui-icon",7),i.\u0275\u0275elementEnd()()()}if(2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(11,bT,"outlined"===e.styling)),i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate1("id","pagination-",e.instanceId,"-prev-page"),i.\u0275\u0275property("href",e.currentPage>1?"#":null,i.\u0275\u0275sanitizeUrl)("ngClass",i.\u0275\u0275pureFunction1(13,ep,e.currentPage<=1)),i.\u0275\u0275attribute("aria-label",e.ariaPreviousLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ariaLabel",e.ariaPreviousLabel),i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate1("id","pagination-",e.instanceId,"-next-page"),i.\u0275\u0275property("href",e.currentPage=e.totalPages)),i.\u0275\u0275attribute("aria-label",e.ariaNextLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ariaLabel",e.ariaNextLabel)}}function cN(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"ul",2)(1,"li",3)(2,"a",4),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(o.prev())}),i.\u0275\u0275element(3,"aui-icon",5),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(4,"li",8),i.\u0275\u0275text(5),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"li",6)(7,"a",4),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(o.next())}),i.\u0275\u0275element(8,"aui-icon",7),i.\u0275\u0275elementEnd()()()}if(2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(13,bT,"outlined"===e.styling)),i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate1("id","pagination-",e.instanceId,"-prev-page"),i.\u0275\u0275property("href",e.currentPage>1?"#":null,i.\u0275\u0275sanitizeUrl)("ngClass",i.\u0275\u0275pureFunction1(15,ep,e.currentPage<=1)),i.\u0275\u0275attribute("aria-label",e.ariaPreviousLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ariaLabel",e.ariaPreviousLabel),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate2("",e.currentPage," - ",e.totalPages,""),i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate1("id","pagination-",e.instanceId,"-next-page"),i.\u0275\u0275property("href",e.currentPage=e.totalPages)),i.\u0275\u0275attribute("aria-label",e.ariaNextLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ariaLabel",e.ariaNextLabel)}}const dN=function(t){return{"is-active":t}};function hN(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"li")(1,"a",10),i.\u0275\u0275listener("click",function(){const c=i.\u0275\u0275restoreView(e).$implicit,h=i.\u0275\u0275nextContext(3);return i.\u0275\u0275resetView(h.onUpdate(c))}),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()}if(2&t){const e=n.$implicit,r=n.index,o=i.\u0275\u0275nextContext(3);i.\u0275\u0275advance(1),i.\u0275\u0275propertyInterpolate2("id","pagination-",o.instanceId,"-button-",r,""),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(6,dN,e===o.currentPage+"")),i.\u0275\u0275attribute("aria-current",e===o.currentPage+""?"page":null)("aria-label",o.ariaCurrentLabel+" "+e),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e)}}function fN(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"ul",2)(1,"li",3)(2,"a",4),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(o.prev())}),i.\u0275\u0275element(3,"aui-icon",5),i.\u0275\u0275elementEnd()(),i.\u0275\u0275template(4,hN,3,8,"li",9),i.\u0275\u0275elementStart(5,"li",6)(6,"a",4),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(o.next())}),i.\u0275\u0275element(7,"aui-icon",7),i.\u0275\u0275elementEnd()()()}if(2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(12,bT,"outlined"===e.styling)),i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate1("id","pagination-",e.instanceId,"-prev-page"),i.\u0275\u0275property("href",e.currentPage>1?"#":null,i.\u0275\u0275sanitizeUrl)("ngClass",i.\u0275\u0275pureFunction1(14,ep,e.currentPage<=1)),i.\u0275\u0275attribute("aria-label",e.ariaPreviousLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ariaLabel",e.ariaPreviousLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e.numbers),i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate1("id","pagination-",e.instanceId,"-next-page"),i.\u0275\u0275property("href",e.currentPage=e.totalPages)),i.\u0275\u0275attribute("aria-label",e.ariaNextLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ariaLabel",e.ariaNextLabel)}}function pN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"nav"),i.\u0275\u0275template(1,uN,7,17,"ul",1),i.\u0275\u0275template(2,cN,9,19,"ul",1),i.\u0275\u0275template(3,fN,8,18,"ul",1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275attribute("aria-label",e.ariaNavigationLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf","basic"===e.display),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf","text"===e.display),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf","numbers"===e.display)}}let mN=(()=>{class t{constructor(){_(this,"ariaNavigationLabel","Paginering"),_(this,"ariaPreviousLabel","Ga naar de vorige pagina"),_(this,"ariaNextLabel","Ga naar de volgende pagina"),_(this,"ariaCurrentLabel","Pagina"),_(this,"currentPage",void 0),_(this,"display","basic"),_(this,"itemsPerPage",void 0),_(this,"styling","outlined"),_(this,"totalValues",void 0),_(this,"update",new i.EventEmitter),_(this,"totalPages",0),_(this,"numbers",[]),_(this,"instanceId",Math.random().toString(36).substr(2,9))}ngOnChanges(){this.setValues()}next(){return this.currentPage1&&this.onUpdate(this.currentPage-1),!1}onUpdate(e){const r=parseInt(e,10);return r&&this.update.emit(r),!1}setValues(){if(this.totalValues&&this.itemsPerPage){this.currentPage=Number(this.currentPage),this.totalPages=Math.ceil(this.totalValues/this.itemsPerPage);const e=Array(this.totalPages).fill("").map((r,o)=>String(o+1));if(e.length<8)return this.numbers=e;this.numbers=this.currentPage<5?e.slice(0,5):this.currentPage>this.totalPages-4?e.slice(this.totalPages-5):e.slice(this.currentPage-2,this.currentPage+1),-1===this.numbers.indexOf("1")&&this.numbers.unshift("1"),-1===this.numbers.indexOf(String(this.totalPages))&&this.numbers.push(String(this.totalPages)),-1===this.numbers.indexOf("2")&&this.numbers.splice(1,0,"..."),-1===this.numbers.indexOf(String(this.totalPages-1))&&this.numbers.splice(this.numbers.length-1,0,"...")}}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-pagination"]],inputs:{ariaNavigationLabel:"ariaNavigationLabel",ariaPreviousLabel:"ariaPreviousLabel",ariaNextLabel:"ariaNextLabel",ariaCurrentLabel:"ariaCurrentLabel",currentPage:"currentPage",display:"display",itemsPerPage:"itemsPerPage",styling:"styling",totalValues:"totalValues"},outputs:{update:"update"},features:[i.\u0275\u0275NgOnChangesFeature],decls:1,vars:1,consts:[[4,"ngIf"],["class","m-pagination",3,"ngClass",4,"ngIf"],[1,"m-pagination",3,"ngClass"],[1,"m-pagination__prev"],[3,"href","ngClass","id","click"],["name","ai-arrow-left-1",3,"ariaLabel"],[1,"m-pagination__next"],["name","ai-arrow-right-1",3,"ariaLabel"],[1,"m-pagination__label"],[4,"ngFor","ngForOf"],["href","#",3,"ngClass","id","click"]],template:function(e,r){1&e&&i.\u0275\u0275template(0,pN,4,4,"nav",0),2&e&&i.\u0275\u0275property("ngIf",r.totalPages>1)},dependencies:[ze,re,Fe,Gt],encapsulation:2})),t})();const wT=new i.InjectionToken("itemCounterLabels"),CT=new i.InjectionToken("itemsPerPageLabels"),gN=function(t,n,e){return{currentFrom:t,currentTo:n,totalAmount:e}};let _N=(()=>{class t{constructor(e){_(this,"setClass",!0),_(this,"currentPage",void 0),_(this,"totalAmount",void 0),_(this,"amountPerPage",0),_(this,"label",void 0),_(this,"currentFrom",1),_(this,"currentTo",this.amountPerPage),e&&!this.label?this.label=e:this.label||(this.label={singular:"%{currentFrom} - %{currentTo} van %{totalAmount} item",plural:"%{currentFrom} - %{currentTo} van %{totalAmount} items"})}setFromTo(){this.currentFrom=this.amountPerPage*(this.currentPage-1)+1,this.currentTo=this.amountPerPage*this.currentPage<=this.totalAmount?this.amountPerPage*this.currentPage:this.totalAmount}ngOnInit(){this.setFromTo()}ngOnChanges(){this.setFromTo()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(wT))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-item-counter"]],hostVars:2,hostBindings:function(e,r){2&e&&i.\u0275\u0275classProp("aui-item-counter",r.setClass)},inputs:{currentPage:"currentPage",totalAmount:"totalAmount",amountPerPage:"amountPerPage",label:"label"},features:[i.\u0275\u0275NgOnChangesFeature],decls:4,vars:11,consts:[[1,"m-item-counter"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275text(1),i.\u0275\u0275pipe(2,"interpolateLabel"),i.\u0275\u0275pipe(3,"pluralizeLabel"),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind2(2,1,i.\u0275\u0275pipeBind2(3,4,r.label,r.totalAmount),i.\u0275\u0275pureFunction3(7,gN,r.currentFrom,r.currentTo,r.totalAmount)),"\n"))},dependencies:[eI,Rk],styles:["[_nghost-%COMP%]{align-items:center;display:flex}"],changeDetection:0})),t})();function vN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"option",7),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;i.\u0275\u0275property("value",e),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e)}}const yN=function(t){return[t]};var qC=(()=>(function(t){t.S="S",t.R="R",t.L="L"}(qC||(qC={})),qC))();let bN=(()=>{class t{constructor(e){_(this,"inputSizes",{S:"a-input--small",R:"",L:"a-input--large"}),_(this,"id",void 0),_(this,"setClass",!0),_(this,"label",void 0),_(this,"size",qC.R),_(this,"selectOptions",void 0),_(this,"amountPerPage",void 0),_(this,"returnAmount",new i.EventEmitter),this.id="ngx-pagination-"+Math.random().toString(36).substring(2),e&&!this.label?this.label=e:this.label||(this.label={singular:"item per pagina",plural:"items per pagina"})}setAmount(e){this.amountPerPage=e,this.returnAmount.emit(this.amountPerPage)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(CT))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-items-per-page"]],hostVars:2,hostBindings:function(e,r){2&e&&i.\u0275\u0275classProp("aui-items-per-page",r.setClass)},inputs:{label:"label",size:"size",selectOptions:"selectOptions",amountPerPage:"amountPerPage"},outputs:{returnAmount:"returnAmount"},decls:9,vars:12,consts:[[1,"m-items-per-page"],[1,"a-input","has-icon-right",3,"ngClass"],[1,"a-input__wrapper"],[3,"id","name","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["name","ai-arrow-down-1"],[1,"a-input__label",3,"for"],[3,"value"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"select",3),i.\u0275\u0275listener("ngModelChange",function(c){return r.setAmount(c)}),i.\u0275\u0275template(4,vN,2,2,"option",4),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(5,"aui-icon",5),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"label",6),i.\u0275\u0275text(7),i.\u0275\u0275pipe(8,"pluralizeLabel"),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(10,yN,r.inputSizes[r.size])),i.\u0275\u0275advance(2),i.\u0275\u0275property("id",r.id)("name",r.id)("ngModel",r.amountPerPage),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",r.selectOptions),i.\u0275\u0275advance(2),i.\u0275\u0275property("for",r.id),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind2(8,7,r.label,r.amountPerPage)))},dependencies:[ze,re,ea,na,So,In,Xi,Gt,eI],styles:["[_nghost-%COMP%]{align-items:center;display:flex}"],changeDetection:0})),t})();function wN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"li"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.name)}}let CN=(()=>{class t{constructor(){_(this,"currentPage",1),_(this,"itemsPerPage",2),_(this,"visibleHeroes",void 0),_(this,"itemsPerPageOptions",[1,2,4]),_(this,"javascript1","import { PaginationModule } from '@acpaas-ui/ngx-pagination';\n\n@NgModule({\n\timports: [\n\t\tPaginationModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"javascript2","public currentPage = 1;\npublic itemsPerPage = 2;\nprivate heroes = [\n\t{ name: 'Batman' },\n\t{ name: 'Superman' },\n\t{ name: 'Iron man' },\n\t{ name: 'Wolverine' },\n\t{ name: 'Wonder woman' },\n\t{ name: 'Deadpool' }\n];\npublic visibleHeroes: any[];\npublic totalValues = this.heroes.length;\n\npublic ngOnInit() {\n\tthis.selectHeroes();\n}\n\npublic onUpdatePage(page) {\n\tthis.currentPage = page;\n\tthis.selectHeroes();\n}\n\nprivate selectHeroes() {\n\tthis.visibleHeroes = this.heroes.slice((this.currentPage * this.itemsPerPage)\n\t\t- this.itemsPerPage, (this.currentPage * this.itemsPerPage));\n}"),_(this,"html1",'\n'),_(this,"javascript3","import { ItemCounterModule } from '@acpaas-ui/ngx-pagination';\n\n@NgModule({\n\timports: [\n\t\tItemCounterModule.forChild({\n\t\t\tsingular: '%{currentFrom} - %{currentTo} of %{totalAmount} item',\n\t\t\tplural: '%{currentFrom} - %{currentTo} of %{totalAmount} items',\n\t\t},\n\t\t{\n\t\t\tsingular: 'item per page',\n\t\t\tplural: 'items per page',\n\t\t})\n\t]\n});\n\nexport class AppModule {};"),_(this,"javascript4","public itemsPerPageOptions = [1, 2, 4];\n\npublic onUpdateItems(count) {\n\tthis.itemsPerPage = count;\n\tthis.selectHeroes();\n}"),_(this,"html2",'\n\n\n\n'),_(this,"heroes",[{name:"Batman"},{name:"Superman"},{name:"Iron man"},{name:"Wolverine"},{name:"Wonder woman"},{name:"Deadpool"}]),_(this,"totalValues",this.heroes.length)}ngOnInit(){this.selectHeroes()}onUpdatePage(e){this.currentPage=e,this.selectHeroes()}onUpdateItems(e){this.itemsPerPage=e,this.selectHeroes()}selectHeroes(){this.visibleHeroes=this.heroes.slice(this.currentPage*this.itemsPerPage-this.itemsPerPage,this.currentPage*this.itemsPerPage)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:29,vars:15,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"h5"],[4,"ngFor","ngForOf"],["display","numbers","styling","basic",3,"currentPage","itemsPerPage","totalValues","update"],[1,"h4","u-margin-bottom","u-margin-top-l"],[1,"m-alert","u-margin-bottom"],[1,"u-margin-bottom-x"],[3,"amountPerPage","selectOptions","returnAmount"],[1,"u-margin-bottom","u-margin-top"],[3,"amountPerPage","currentPage","totalAmount"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Pagination"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",1)(9,"h3",3),i.\u0275\u0275text(10,"Heroes"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(11,"ul"),i.\u0275\u0275template(12,wN,2,1,"li",4),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(13,"aui-pagination",5),i.\u0275\u0275listener("update",function(c){return r.onUpdatePage(c)}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(14,"h3",6),i.\u0275\u0275text(15,"Item counter & items per page"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(16,"div",7)(17,"p"),i.\u0275\u0275text(18,"Note that the following code is an extension of the code above."),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(19,"div",1),i.\u0275\u0275element(20,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(21,"div",1),i.\u0275\u0275element(22,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(23,"div",1),i.\u0275\u0275element(24,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(25,"div",8)(26,"aui-items-per-page",9),i.\u0275\u0275listener("returnAmount",function(c){return r.onUpdateItems(c)}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(27,"div",10),i.\u0275\u0275element(28,"aui-item-counter",11),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.javascript1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.javascript2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.html1),i.\u0275\u0275advance(5),i.\u0275\u0275property("ngForOf",r.visibleHeroes),i.\u0275\u0275advance(1),i.\u0275\u0275property("currentPage",r.currentPage)("itemsPerPage",r.itemsPerPage)("totalValues",r.totalValues),i.\u0275\u0275advance(7),i.\u0275\u0275property("codeSnippet",r.javascript3),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.javascript4),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.html2),i.\u0275\u0275advance(2),i.\u0275\u0275property("amountPerPage",r.itemsPerPage)("selectOptions",r.itemsPerPageOptions),i.\u0275\u0275advance(2),i.\u0275\u0275property("amountPerPage",r.itemsPerPage)("currentPage",r.currentPage)("totalAmount",r.totalValues))},dependencies:[Tt,mN,_N,bN,re],encapsulation:2})),t})();const DN=function(t){return{width:t}};let SN=(()=>{class t{constructor(){_(this,"value",0),_(this,"max",0)}calcProgress(){return this.max>0&&this.value>0?Math.floor(this.value/this.max*100)+"%":0}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-progress-bar"]],inputs:{value:"value",max:"max"},decls:3,vars:5,consts:[[1,"aui-progress-bar","a-progress"],[1,"a-progress__inner"],["aria-valuemin","0","role","progressbar",1,"a-progress__bar",3,"ngStyle"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1),i.\u0275\u0275element(2,"div",2),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(2),i.\u0275\u0275property("ngStyle",i.\u0275\u0275pureFunction1(3,DN,r.calcProgress())),i.\u0275\u0275attribute("aria-valuemax",r.max)("aria-valuenow",r.value))},dependencies:[gi],encapsulation:2})),t})(),EN=(()=>{class t{constructor(){_(this,"uploadProgress",20),_(this,"maxValue",100),_(this,"codeExampleJS1","import { ProgressBarModule } from '@acpaas-ui/ngx-progress-bar';\n\n@NgModule({\n imports: [\n ProgressBarModule\n ]\n});\n\nexport class AppModule {};"),_(this,"codeExampleJS2","public uploadProgress = 20;\npublic maxValue = 100;"),_(this,"codeExampleHTML",'\n')}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:10,vars:5,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"a-input"],[3,"max","value"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Progress bar"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",3),i.\u0275\u0275element(9,"aui-progress-bar",4),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.codeExampleJS1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML),i.\u0275\u0275advance(2),i.\u0275\u0275property("max",r.maxValue)("value",r.uploadProgress))},dependencies:[Tt,SN],encapsulation:2})),t})(),TN=(()=>{class t{constructor(){_(this,"data",void 0)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:2,vars:1,consts:[["type","button",1,"a-button","has-icon",3,"title"],["name","ai-view-1"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"button",0),i.\u0275\u0275element(1,"aui-icon",1),i.\u0275\u0275elementEnd()),2&e&&i.\u0275\u0275propertyInterpolate1("title","View ",null==r.data?null:r.data.firstName,"'s profile")},dependencies:[Bl],encapsulation:2})),t})(),DT=(()=>{class t{getLabel(e){return e.hasOwnProperty("label")?e.label:e}getValue(e){return e.hasOwnProperty("value")?e.value:e}getClass(e){return e.hasOwnProperty("classList")?e.classList.join(" "):e}formatValue(e,r,o){const c=e[this.getValue(r)];return r.format?r.format(c,r,e,o):c}getColumnClass(e,r,o){const c=e[this.getValue(r)];return r.columnClass?r.columnClass(c,r,e):""}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})();function xI(t){return!!Object.keys(t).find(n=>"metadata"===n)}function PN(t,n){}function LN(t,n){1&t&&i.\u0275\u0275template(0,PN,0,0,"ng-template")}function AN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.value)}}function ON(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span",2),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("ngClass",e.columnClass),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.value)}}let kN=(()=>{class t{constructor(e,r,o,c){_(this,"tableHelper",void 0),_(this,"viewContainerRef",void 0),_(this,"componentFactoryResolver",void 0),_(this,"changeDetectionRef",void 0),_(this,"component",void 0),_(this,"columnClass",void 0),_(this,"value",void 0),this.tableHelper=e,this.viewContainerRef=r,this.componentFactoryResolver=o,this.changeDetectionRef=c}ngOnChanges(e){e.component&&e.component.currentValue!==e.component.previousValue&&(this.loadComponent(this.component),this.changeDetectionRef.detectChanges())}hasComponent(){return!!this.component}loadComponent(e){const r=xI(e)?this.componentFactoryResolver.resolveComponentFactory(e.instance):this.componentFactoryResolver.resolveComponentFactory(e);this.viewContainerRef.clear();const o=this.viewContainerRef.createComponent(r);return o.instance.data=this.value,xI(e)&&(o.instance.metadata=e.metadata),o}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(DT),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ComponentFactoryResolver),i.\u0275\u0275directiveInject(i.ChangeDetectorRef))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-table-cell"]],inputs:{component:"component",columnClass:"columnClass",value:"value"},features:[i.\u0275\u0275NgOnChangesFeature],decls:3,vars:3,consts:[[4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(e,r){1&e&&(i.\u0275\u0275template(0,LN,1,0,null,0),i.\u0275\u0275template(1,AN,2,1,"span",0),i.\u0275\u0275template(2,ON,2,2,"span",1)),2&e&&(i.\u0275\u0275property("ngIf",r.hasComponent()),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.hasComponent()&&!r.columnClass),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.hasComponent()&&r.columnClass))},dependencies:[ze,Fe],encapsulation:2})),t})();function FN(t,n){}function RN(t,n){1&t&&i.\u0275\u0275template(0,FN,0,0,"ng-template")}function NN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.label)}}let BN=(()=>{class t{constructor(e,r,o){_(this,"viewContainerRef",void 0),_(this,"componentFactoryResolver",void 0),_(this,"changeDetectionRef",void 0),_(this,"component",void 0),_(this,"label",void 0),_(this,"value",void 0),this.viewContainerRef=e,this.componentFactoryResolver=r,this.changeDetectionRef=o}ngOnChanges(){this.component&&this.loadComponent()}hasComponent(){return!!this.component}loadComponent(){const e=this.componentFactoryResolver.resolveComponentFactory(this.component),r=this.viewContainerRef;r.clear(),r.createComponent(e).instance.data=this.value,this.changeDetectionRef.detectChanges()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ComponentFactoryResolver),i.\u0275\u0275directiveInject(i.ChangeDetectorRef))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-table-header"]],inputs:{component:"component",label:"label",value:"value"},features:[i.\u0275\u0275NgOnChangesFeature],decls:2,vars:2,consts:[[4,"ngIf"]],template:function(e,r){1&e&&(i.\u0275\u0275template(0,RN,1,0,null,0),i.\u0275\u0275template(1,NN,2,1,"span",0)),2&e&&(i.\u0275\u0275property("ngIf",r.hasComponent()),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.hasComponent()))},dependencies:[Fe],encapsulation:2})),t})();function VN(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275element(1,"aui-table-header",3),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext().$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("component",e.headerComponent)("label",r.tableHelper.getLabel(e))("value",r.tableHelper.getValue(e))}}function jN(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",7),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(3).$implicit,c=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(c.sort(o,"asc"))}),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext(3).$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",r.tableHelper.getLabel(e)," ")}}function UN(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",8),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(3).$implicit,c=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(c.sort(o,"asc"))}),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext(3).$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",r.tableHelper.getLabel(e)," ")}}function HN(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",9),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(3).$implicit,c=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(c.sort(o,"desc"))}),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext(3).$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",r.tableHelper.getLabel(e)," ")}}function zN(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext(3).$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",r.tableHelper.getLabel(e)," ")}}function $N(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275template(1,jN,2,1,"button",4),i.\u0275\u0275template(2,UN,2,1,"button",5),i.\u0275\u0275template(3,HN,2,1,"button",6),i.\u0275\u0275template(4,zN,2,1,"ng-container",1),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext(2).$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!e.disableSorting&&r.tableHelper.getValue(e)!==(null==r.activeSorting?null:r.activeSorting.key)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!e.disableSorting&&r.tableHelper.getValue(e)===(null==r.activeSorting?null:r.activeSorting.key)&&"desc"===(null==r.activeSorting?null:r.activeSorting.order)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!e.disableSorting&&r.tableHelper.getValue(e)===(null==r.activeSorting?null:r.activeSorting.key)&&"asc"===(null==r.activeSorting?null:r.activeSorting.order)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.disableSorting)}}function GN(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext(2).$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",r.tableHelper.getLabel(e)," ")}}function WN(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275template(1,$N,5,4,"ng-container",1),i.\u0275\u0275template(2,GN,2,1,"ng-container",1),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext(3);i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.activeSorting),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!e.activeSorting)}}function ZN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"th",0),i.\u0275\u0275template(1,VN,2,3,"ng-container",1),i.\u0275\u0275template(2,WN,3,2,"ng-container",1),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("ngClass",r.tableHelper.getClass(e)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.headerComponent),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!e.headerComponent)}}function qN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"thead")(1,"tr"),i.\u0275\u0275template(2,ZN,3,3,"th",2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275property("ngForOf",e.columns)}}function YN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"tr")(1,"td",10)(2,"div",11)(3,"div",12),i.\u0275\u0275element(4,"span",13),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(5,"div"),i.\u0275\u0275text(6),i.\u0275\u0275elementEnd()()()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("colSpan",e.columns.length),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate1(" ",e.loadDataMessage," ")}}function QN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"tr")(1,"td"),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.noColumnsMessage)}}function KN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"tr")(1,"td",10),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("colSpan",e.columns.length),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.noDataMessage)}}function JN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"td",0),i.\u0275\u0275element(1,"aui-table-cell",16),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext(),o=r.$implicit,c=r.index,h=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("ngClass",h.tableHelper.getClass(e)),i.\u0275\u0275advance(1),i.\u0275\u0275property("component",e.component)("columnClass",h.tableHelper.getColumnClass(o,e,c))("value",h.tableHelper.formatValue(o,e,c))}}const XN=function(t){return{"a-table--clickable":t}};function e3(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"tr",15),i.\u0275\u0275listener("click",function(){const c=i.\u0275\u0275restoreView(e).$implicit,h=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(h.clickRow(c))}),i.\u0275\u0275template(1,JN,2,4,"td",2),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(2,XN,e.hasClickAction)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e.columns)}}function t3(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275template(1,e3,2,4,"tr",14),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e.rows)}}const n3=function(t,n,e){return{"a-table-responsive-wrapper":t,"has-first-column-fixed":n,"has-last-column-fixed":e}},r3=function(t,n){return{"a-table":!0,"aui-table":!0,"a-table--striped":t,"a-table--open":n}};let o3=(()=>{class t{constructor(e){_(this,"tableHelper",void 0),_(this,"rows",[]),_(this,"columns",[]),_(this,"loading",!1),_(this,"striped",!1),_(this,"open",!1),_(this,"responsive",!0),_(this,"fixedColumnLeft",!1),_(this,"fixedColumnRight",!1),_(this,"hasClickAction",!1),_(this,"activeSorting",void 0),_(this,"noDataMessage","No data available."),_(this,"loadDataMessage","Loading data..."),_(this,"noColumnsMessage","No columns available."),_(this,"orderBy",new i.EventEmitter),_(this,"rowClicked",new i.EventEmitter),this.tableHelper=e}sort(e,r){const o=this.tableHelper.getValue(e);this.activeSorting={key:o,order:r},this.orderBy.emit({key:o,order:r})}clickRow(e){this.hasClickAction&&this.rowClicked.emit(e)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(DT))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-table"]],inputs:{rows:"rows",columns:"columns",loading:"loading",striped:"striped",open:"open",responsive:"responsive",fixedColumnLeft:"fixedColumnLeft",fixedColumnRight:"fixedColumnRight",hasClickAction:"hasClickAction",activeSorting:"activeSorting",noDataMessage:"noDataMessage",loadDataMessage:"loadDataMessage",noColumnsMessage:"noColumnsMessage"},outputs:{orderBy:"orderBy",rowClicked:"rowClicked"},decls:8,vars:14,consts:[[3,"ngClass"],[4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"component","label","value"],["class","a-table__sort-button a-table__sort-button--unsorted","type","button",3,"click",4,"ngIf"],["class","a-table__sort-button a-table__sort-button--sorted-desc","type","button",3,"click",4,"ngIf"],["class","a-table__sort-button a-table__sort-button--sorted-asc","type","button",3,"click",4,"ngIf"],["type","button",1,"a-table__sort-button","a-table__sort-button--unsorted",3,"click"],["type","button",1,"a-table__sort-button","a-table__sort-button--sorted-desc",3,"click"],["type","button",1,"a-table__sort-button","a-table__sort-button--sorted-asc",3,"click"],[3,"colSpan"],[1,"table-loading","u-text-center","u-margin-top-3xl","u-margin-bottom-3xl"],["role","alert",1,"a-spinner","u-margin-bottom-xs"],[1,"a-spinner__circle"],[3,"ngClass","click",4,"ngFor","ngForOf"],[3,"ngClass","click"],[3,"component","columnClass","value"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"table",0),i.\u0275\u0275template(2,qN,3,1,"thead",1),i.\u0275\u0275elementStart(3,"tbody"),i.\u0275\u0275template(4,YN,7,2,"tr",1),i.\u0275\u0275template(5,QN,3,1,"tr",1),i.\u0275\u0275template(6,KN,3,2,"tr",1),i.\u0275\u0275template(7,t3,2,1,"ng-container",1),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction3(7,n3,r.responsive,r.fixedColumnLeft,r.fixedColumnRight)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction2(11,r3,r.striped,r.open)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.columns.length>0),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",r.loading),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.loading&&0===r.columns.length),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!(r.loading||r.rows&&0!==r.rows.length)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.loading&&r.columns.length>0))},dependencies:[ze,re,Fe,kN,BN],encapsulation:2,changeDetection:0})),t})(),s3=(()=>{class t{constructor(e){_(this,"datePipe",void 0),_(this,"columns",[{label:"#",value:"id",columnClass:(r,o,c)=>this.makeBold(r,o,c)},{label:"First Name",value:"firstName",columnClass:(r,o,c)=>this.makeBold(r,o,c)},{label:"Last Name",value:"lastName",columnClass:(r,o,c)=>this.makeBold(r,o,c)},{label:"Registered",value:"registeredAt",columnClass:(r,o,c)=>this.makeBold(r,o,c),format:r=>this.datePipe.transform(r,"dd/MM/yyyy")},{label:"Actions",component:TN}]),_(this,"rows",[{id:0,firstName:"Wyatt",lastName:"Cooper",registeredAt:"Sat Feb 07 1981 01:04:46 GMT+0000 (UTC)"},{id:1,firstName:"Mullen",lastName:"Ballard",registeredAt:"Fri Aug 31 2001 06:47:22 GMT+0000 (UTC)"},{id:2,firstName:"Sonia",lastName:"Bass",registeredAt:"Sat Jul 12 1975 16:00:43 GMT+0000 (UTC)"},{id:3,firstName:"Kristen",lastName:"Moore",registeredAt:"Mon Nov 09 2015 16:11:21 GMT+0000 (UTC)"},{id:4,firstName:"Moss",lastName:"Bowen",registeredAt:"Thu Aug 04 1977 05:52:52 GMT+0000 (UTC)"},{id:5,firstName:"Elaine",lastName:"Michael",registeredAt:"Wed Mar 30 1977 01:48:30 GMT+0000 (UTC)"},{id:6,firstName:"Jerri",lastName:"Hicks",registeredAt:"Wed Jul 10 2013 22:53:48 GMT+0000 (UTC)"},{id:7,firstName:"Sharron",lastName:"Castro",registeredAt:"Mon Sep 27 1976 07:55:10 GMT+0000 (UTC)"},{id:8,firstName:"Harriett",lastName:"Horton",registeredAt:"Wed Aug 18 2010 14:06:33 GMT+0000 (UTC)"},{id:9,firstName:"Griffin",lastName:"Navarro",registeredAt:"Tue Oct 24 2017 23:45:35 GMT+0000 (UTC)"}]),_(this,"importModule","import { TableModule } from '@acpaas-ui/ngx-table';\n\n@NgModule({\n\timports: [\n\t\tTableModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"exampleComp",'\nimport { Component } from \'@angular/core\';\nimport { Cell } from \'@acpaas-ui/ngx-table\';\n\n@Component({\n\ttemplate: `\n\t\t\n\t`,\n})\nexport class TableActionComponent implements Cell {\n\tpublic data: any;\n}\n\t'),_(this,"exampleCols","\npublic columns: TableColumn[] = [\n\t{\n\t\tlabel: '#',\n\t\tvalue: 'id',\n\t\tcolumnClass: (index, col, row) => this.makeBold(index, col, row)\n\t},\n\t{\n\t\tlabel: 'First Name',\n\t\tvalue: 'firstName',\n\t\tcolumnClass: (index, col, row) => this.makeBold(index, col, row)\n\t},\n\t{\n\t\tlabel: 'Last Name',\n\t\tvalue: 'lastName',\n\t\tcolumnClass: (index, col, row) => this.makeBold(index, col, row)\n\t},\n\t{\n\t\tlabel: 'Registered',\n\t\tvalue: 'registeredAt',\n\t\tcolumnClass: (index, col, row) => this.makeBold(index, col, row)\n\t\tformat: (value) => this.datePipe.transform(value, 'dd/MM/yyyy'),\n\t},\n\t{\n\t\tlabel: 'Actions',\n\t\tcomponent: TableActionComponent,\n\t},\n];\n\npublic makeBold(index, col, row) {\n return row.firstName === 'Sonia' ? 'u-text-bold' : '';\n }\n\npublic rows = [\n\t{\n\t\t'id': 0,\n\t\t'firstName': 'Wyatt',\n\t\t'lastName': 'Cooper',\n\t\t'registeredAt': 'Sat Feb 07 1981 01:04:46 GMT+0000 (UTC)',\n\t},\n\t{\n\t\t'id': 1,\n\t\t'firstName': 'Mullen',\n\t\t'lastName': 'Ballard',\n\t\t'registeredAt': 'Fri Aug 31 2001 06:47:22 GMT+0000 (UTC)',\n\t},\n\t{\n\t\t'id': 2,\n\t\t'firstName': 'Sonia',\n\t\t'lastName': 'Bass',\n\t\t'registeredAt': 'Sat Jul 12 1975 16:00:43 GMT+0000 (UTC)',\n\t},\n\t{\n\t\t'id': 3,\n\t\t'firstName': 'Kristen',\n\t\t'lastName': 'Moore',\n\t\t'registeredAt': 'Mon Nov 09 2015 16:11:21 GMT+0000 (UTC)',\n\t},\n\t{\n\t\t'id': 4,\n\t\t'firstName': 'Moss',\n\t\t'lastName': 'Bowen',\n\t\t'registeredAt': 'Thu Aug 04 1977 05:52:52 GMT+0000 (UTC)',\n\t},\n\t{\n\t\t'id': 5,\n\t\t'firstName': 'Elaine',\n\t\t'lastName': 'Michael',\n\t\t'registeredAt': 'Wed Mar 30 1977 01:48:30 GMT+0000 (UTC)',\n\t},\n\t{\n\t\t'id': 6,\n\t\t'firstName': 'Jerri',\n\t\t'lastName': 'Hicks',\n\t\t'registeredAt': 'Wed Jul 10 2013 22:53:48 GMT+0000 (UTC)',\n\t},\n\t{\n\t\t'id': 7,\n\t\t'firstName': 'Sharron',\n\t\t'lastName': 'Castro',\n\t\t'registeredAt': 'Mon Sep 27 1976 07:55:10 GMT+0000 (UTC)',\n\t},\n\t{\n\t\t'id': 8,\n\t\t'firstName': 'Harriett',\n\t\t'lastName': 'Horton',\n\t\t'registeredAt': 'Wed Aug 18 2010 14:06:33 GMT+0000 (UTC)',\n\t},\n\t{\n\t\t'id': 9,\n\t\t'firstName': 'Griffin',\n\t\t'lastName': 'Navarro',\n\t\t'registeredAt': 'Tue Oct 24 2017 23:45:35 GMT+0000 (UTC)',\n\t},\n];\n\npublic loading = false;\n\nconstructor(\n\tprivate datePipe: DatePipe\n) { }\n\t"),_(this,"exampleHTML",'\n\n\t'),_(this,"loading",!1),this.datePipe=e}makeBold(e,r,o){return"Sonia"===o.firstName?"u-text-bold":""}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(mn))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],features:[i.\u0275\u0275ProvidersFeature([mn])],decls:15,vars:9,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"m-alert"],[1,"u-margin-bottom-3xl"],["loadDataMessage","Loading...","noColumsMessage","There are no columns!","noDataMessage","There is no data!",3,"open","striped","columns","loading","rows"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Table"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1)(7,"div",3),i.\u0275\u0275text(8,"The TableActionComponent is used for actions in the table"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(9,"div",1),i.\u0275\u0275element(10,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(11,"div",1),i.\u0275\u0275element(12,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(13,"div",4),i.\u0275\u0275element(14,"aui-table",5),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.importModule),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.exampleCols),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.exampleComp),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.exampleHTML),i.\u0275\u0275advance(2),i.\u0275\u0275property("open",!0)("striped",!0)("columns",r.columns)("loading",r.loading)("rows",r.rows))},dependencies:[Tt,o3],encapsulation:2})),t})();var tp=(()=>(function(t){t.Auto="auto",t.Small="small",t.Medium="medium",t.Large="large",t.Full="full"}(tp||(tp={})),tp))(),da=(()=>(function(t){t[t.OPEN=0]="OPEN",t[t.CLOSED=1]="CLOSED"}(da||(da={})),da))();const z_=(t,n,e)=>!!t.code&&t.code.toLowerCase()===n&&(void 0===e||t.keyCode===e||t.which===e);let Vl=(()=>{class t{constructor(e){this.elementRef=e,this.class=!0,this.isExpanded=!1,this.element=this.elementRef.nativeElement}get flyoutZoneIsExpanded(){return this.isExpanded}contains(e){return!1!==this.auiFlyoutZone&&this.element.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ElementRef))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFlyoutZone",""]],hostVars:3,hostBindings:function(e,r){2&e&&(i.\u0275\u0275attribute("aria-expanded",r.flyoutZoneIsExpanded),i.\u0275\u0275classProp("m-flyout__content",r.class))},inputs:{auiFlyoutZone:"auiFlyoutZone"},exportAs:["auiFlyoutZone"]}),t})(),MI=(()=>{class t{constructor(){this.state$=new vt.xQ}close(){this.state$.next(da.CLOSED)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),fs=(()=>{class t{constructor(e,r,o,c){this.document=e,this.flyoutService=r,this.cdr=o,this.ref=c,this.flyoutClass=!0,this.flyoutTabIndex="-1",this.flyoutAriaPop=!0,this.size=tp.Auto,this.toggleClick=!0,this.activateOnFocus=!1,this.opened=new i.EventEmitter,this.closed=new i.EventEmitter,this.isOpened=!1,this.state$=new vt.xQ,this.destroyed$=new vt.xQ,this.handleKeyUp=this.handleKeyUp.bind(this),this.state$.next(da.CLOSED),(0,DI.T)(this.state$,this.flyoutService.state$).pipe(Bn(this.destroyed$),SI()).subscribe(h=>{this.isOpened=h===da.OPEN,this.flyoutZone&&(this.flyoutZone.isExpanded=this.isOpened),this.isOpened?this.opened.emit():this.closed.emit()})}get flyoutAlignRight(){return"right"===this.align}get flyoutSmall(){return"small"===this.size}get flyoutMedium(){return"medium"===this.size}get flyoutLarge(){return"large"===this.size}get flyoutFull(){return"full"===this.size}get flyoutOpen(){return this.isOpened}ngOnDestroy(){this.destroyed$.next(!0)}open(){this.state$.next(da.OPEN),this.document.addEventListener("keyup",this.handleKeyUp),this.cdr.detectChanges()}close(){this.state$.next(da.CLOSED),this.cdr.markForCheck()}isInClosableZone(e){if(!e)return!1;const r=this.flyoutZone&&this.flyoutZone.contains(e),o=this.ref.nativeElement===e||this.ref.nativeElement.contains(e);return r||o}handleKeyUp(e){z_(e,"escape",27)&&(this.document.removeEventListener("keyup",this.handleKeyUp),this.close(),this.cdr.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(W),i.\u0275\u0275directiveInject(MI),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.ElementRef))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFlyout",""]],contentQueries:function(e,r,o){if(1&e&&i.\u0275\u0275contentQuery(o,Vl,7),2&e){let c;i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.flyoutZone=c.first)}},hostVars:16,hostBindings:function(e,r){2&e&&(i.\u0275\u0275attribute("tabindex",r.flyoutTabIndex)("aria-haspopup",r.flyoutAriaPop),i.\u0275\u0275classProp("m-flyout",r.flyoutClass)("m-flyout--right",r.flyoutAlignRight)("m-flyout--s",r.flyoutSmall)("m-flyout--md",r.flyoutMedium)("m-flyout--l",r.flyoutLarge)("m-flyout--full",r.flyoutFull)("is-open",r.flyoutOpen))},inputs:{size:"size",align:"align",toggleClick:"toggleClick",activateOnFocus:"activateOnFocus"},outputs:{opened:"opened",closed:"closed"},exportAs:["auiFlyout"]}),t})(),np=(()=>{class t{constructor(e,r,o,c){this.flyout=e,this.document=o,this.elementRef=c,this.class=!0,this.openOnFocus=!0,this.destroyed$=new vt.xQ,this.isPlatformBrowser=Vo(r),this.closeIfInClosableZone=this.closeIfInClosableZone.bind(this),this.onBlur=this.onBlur.bind(this)}get tabIndex(){return this.disabled?"-1":"0"}ngOnInit(){this.flyout.state$.pipe(Bn(this.destroyed$)).subscribe(e=>{e===da.OPEN?setTimeout(()=>{this.addEventListeners()},100):this.removeEventListeners()})}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete(),this.isPlatformBrowser&&this.document.removeEventListener("click",this.closeIfInClosableZone,!0)}onMousedown(e){e.stopImmediatePropagation(),this.flyout.isOpened&&this.flyout.toggleClick?this.close():this.open()}onFocus(){!this.openOnFocus||!this.isPlatformBrowser||this.flyout.isOpened||this.open()}onKeyDown(e){(z_(e,"space",32)||z_(e,"enter",13))&&this.open()}onBlur(e){this.isPlatformBrowser&&this.flyout.isOpened&&e.relatedTarget&&!this.flyout.isInClosableZone(e.relatedTarget)&&e.relatedTarget!==this.elementRef.nativeElement&&this.close()}open(){!this.isPlatformBrowser||this.flyout.isOpened||this.flyout.open()}close(){!this.isPlatformBrowser||!this.flyout.isOpened||this.flyout.close()}addEventListeners(){this.document.addEventListener("click",this.closeIfInClosableZone,!0),this.document.addEventListener("focusout",this.onBlur,!0)}removeEventListeners(){this.document.removeEventListener("click",this.closeIfInClosableZone,!0),this.document.removeEventListener("focusout",this.onBlur,!0)}checkIfInClosableZone(e){const r=this.flyout.isInClosableZone(e.target),o=e.target===this.elementRef.nativeElement,c=this.elementRef.nativeElement.contains(e.target);return!r&&!o&&!c}closeIfInClosableZone(e){this.isPlatformBrowser&&this.checkIfInClosableZone(e)&&this.close()}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(fs,1),i.\u0275\u0275directiveInject(i.PLATFORM_ID),i.\u0275\u0275directiveInject(W),i.\u0275\u0275directiveInject(i.ElementRef))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFlyoutAction",""]],hostVars:3,hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("mousedown",function(c){return r.onMousedown(c)})("focus",function(){return r.onFocus()})("keydown",function(c){return r.onKeyDown(c)}),2&e&&(i.\u0275\u0275attribute("tabindex",r.tabIndex),i.\u0275\u0275classProp("ngx-flyout-action",r.class))},inputs:{openOnFocus:"openOnFocus",disabled:"disabled"},exportAs:["auiFlyoutAction"]}),t})(),II=(()=>{class t{constructor(e){this.flyout=e}onClick(){this.flyout.close()}onKeyDown(e){(z_(e,"space",32)||z_(e,"enter",13))&&this.flyout.close()}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(fs,1))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFlyoutClose",""]],hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("click",function(){return r.onClick()})("keydown",function(c){return r.onKeyDown(c)})},exportAs:["auiFlyoutClose"]}),t})(),ip=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({providers:[MI],imports:[Ke]}),t})();function d3(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275elementStart(1,"button",2),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.login$.next())}),i.\u0275\u0275element(2,"aui-icon",3),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementContainerEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275attribute("aria-label",e.translations.login),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",e.translations.login," ")}}function h3(t,n){if(1&t&&i.\u0275\u0275element(0,"img",12),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("src",null==e.user?null:e.user.avatarUrl,i.\u0275\u0275sanitizeUrl),i.\u0275\u0275attribute("alt",e.translations.userAvatar)}}function f3(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span",13),i.\u0275\u0275element(1,"aui-icon",14),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("ariaLabel",e.translations.userAvatar)}}function p3(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span",15),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.notificationsCount?e.notificationsCount:0)}}function m3(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",16),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(o.logout$.next())}),i.\u0275\u0275element(1,"aui-icon",17),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275attribute("aria-label",e.translations.logout),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",e.translations.logout," ")}}function g3(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275elementStart(1,"div",4)(2,"button",5)(3,"span",6),i.\u0275\u0275template(4,h3,1,2,"img",7),i.\u0275\u0275template(5,f3,2,1,"span",8),i.\u0275\u0275template(6,p3,2,1,"span",9),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(7),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",10),i.\u0275\u0275projection(9),i.\u0275\u0275template(10,m3,3,2,"button",11),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275classMap(e.flyoutClassBuilder(e.direction,e.flyoutSize)),i.\u0275\u0275attribute("data-align",e.direction)("size",e.flyoutSize),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngIf",null==e.user?null:e.user.avatarUrl),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!(null!=e.user&&e.user.avatarUrl)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.notificationsCount>0),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate2(" ",null==e.user?null:e.user.firstName," ",null==e.user?null:e.user.lastName," "),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngIf",e.showLogoutButton)}}const _3=["*"];let v3=(()=>{class t{constructor(){_(this,"user",null),_(this,"direction","right"),_(this,"flyoutSize",tp.Small),_(this,"notificationsCount",null),_(this,"showLogoutButton",!0),_(this,"translations",{login:"Aanmelden",logout:"Afmelden",userAvatar:"Gebruiker avatar"}),_(this,"logout$",new i.EventEmitter),_(this,"login$",new i.EventEmitter)}flyoutClassBuilder(e,r){return`m-user-menu-flyout${"right"===e?" m-flyout--bottom-right":""}${r?` m-flyout--${r[0].toLowerCase()}`:""}`}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-user-menu"]],inputs:{user:"user",direction:"direction",flyoutSize:"flyoutSize",notificationsCount:"notificationsCount",showLogoutButton:"showLogoutButton",translations:"translations"},outputs:{logout$:"logout$",login$:"login$"},ngContentSelectors:_3,decls:3,vars:2,consts:[[1,"m-user-menu-container"],[4,"ngIf"],[1,"a-button","a-button-login","has-icon-left",3,"click"],["name","ai-single-neutral"],["auiFlyout",""],["auiFlyoutAction","",1,"a-button","primary","a-button-avatar"],[1,"a-avatar","u-margin-right-xs"],[3,"src",4,"ngIf"],["class","a-avatar__icon",4,"ngIf"],["class","a-badge a-badge-primary",4,"ngIf"],["auiFlyoutZone",""],["auiFlyoutClose","","class","a-button-logout a-button a-button--danger a-button--full has-icon-left",3,"click",4,"ngIf"],[3,"src"],[1,"a-avatar__icon"],["name","ai-single-neutral",3,"ariaLabel"],[1,"a-badge","a-badge-primary"],["auiFlyoutClose","",1,"a-button-logout","a-button","a-button--danger","a-button--full","has-icon-left",3,"click"],["name","ai-power-button"]],template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,d3,4,2,"ng-container",1),i.\u0275\u0275template(2,g3,11,10,"ng-container",1),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.user),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.user))},dependencies:[Fe,Gt,np,II,Vl,fs],styles:['[_ngcontent-%COMP%]:root{--theme1-600: #002855;--theme1-500: #003865;--theme1-400: #0057b7;--theme1-300: #009cde;--theme1-200: #41b6e6;--theme1-100: #99d6ea;--theme1-075: #96b5e4;--theme1-050: #e0ebf6;--theme2-600: #7c2629;--theme2-500: #862633;--theme2-400: #cf0039;--theme2-300: #df4661;--theme2-200: #ffb1bb;--theme2-100: #f5dadf;--success-700: #004721;--success-600: #006e33;--success-500: #4c8d2b;--success-400: #6cc24a;--success-300: #97d700;--success-200: #bce194;--success-100: #d0debb;--success-050: #edf8e9;--warning-500: #8f3400;--warning-400: #ce4c00;--warning-050: #ffe4d6;--danger-600: #7c2629;--danger-500: #af272f;--danger-400: #e03c31;--danger-300: #e56a54;--danger-200: #e6baa8;--danger-100: #f3cfb3;--danger-050: #fbe8e6;--text-color: #000;--text-color-light: #6f6f6f;--text-color-xlight: #fff;--bg-color: #d8d8d8;--bg-color-light: #f3f3f3;--border-color: #949494;--overlay-color: rgba(0, 0, 0, .75);--box-shadow-color: rgba(20, 20, 20, .12);--state-info: var(--theme1-400);--state-success: var(--success-600);--state-warning: var(--warning-400);--state-danger: var(--danger-500);--state-disabled: #6f6f6f;--spacer: 1.5rem;--spacer-3xl: calc(var(--spacer) * 4);--spacer-xxl: calc(var(--spacer) * 2.5);--spacer-xl: calc(var(--spacer) * 2);--spacer-l: calc(var(--spacer) * 1.5);--spacer-s: calc(var(--spacer) / 1.5);--spacer-xs: calc(var(--spacer) / 2);--spacer-xxs: calc(var(--spacer) / 3);--spacer-3xs: calc(var(--spacer) / 6);--screen-xs: 30rem;--screen-s: 45rem;--screen-l: 62rem;--screen-xl: 75rem;--screen-xxl: calc(var(--screen-xl) + calc(var(--spacer-3xl) * 2) + calc(var(--spacer) * 2));--screen-xs-max: 44.9375rem;--screen-s-max: 61.9375rem;--screen-l-max: 74.9375rem;--screen-xl-max: 89.9375rem;--font-family-base: "Sun Antwerpen", sans-serif;--font-family-headings: "Antwerpen Regular", sans-serif;--font-family-monospace: "Menlo", "Monaco", "Consolas", "Courier New", monospace;--font-weight-light: 300;--font-weight-normal: 500;--font-weight-bold: 700;--font-weight-extra-bold: 800;--font-weight-h1: var(--font-weight-normal);--font-weight-h2: var(--font-weight-normal);--font-weight-h3: var(--font-weight-normal);--font-weight-h4: var(--font-weight-normal);--font-weight-h5: var(--font-weight-normal);--font-weight-h6: var(--font-weight-normal);--link-color: var(--theme1-400);--link-hover-color: var(--theme1-500);--border-radius: 0;--border-width: 1px;--animation-duration: .2s;--animation-easing: ease-in-out;--animation-normal: var(--animation-duration) var(--animation-easing);--box-shadow-bottom-left: calc(var(--spacer) / -2) calc(var(--spacer) / 2) 0 var(--box-shadow-color);--box-shadow-bottom-right: calc(var(--spacer) / 2) calc(var(--spacer) / 2) 0 var(--box-shadow-color);--box-shadow-upper-left: calc(var(--spacer) / -2) calc(var(--spacer) / -2) 0 var(--box-shadow-color);--box-shadow-upper-right: calc(var(--spacer) / 2) calc(var(--spacer) / -2) 0 var(--box-shadow-color);--box-shadow: var(--box-shadow-bottom-right);--shared-avatar-size-s: var(--spacer-l);--shared-avatar-size: var(--spacer-xl);--shared-avatar-size-l: var(--spacer-xxl);--shared-copyright-color: #fff;--shared-copyright-height: var(--spacer-l);--shared-header-height: var(--spacer-xl);--shared-slideshow-footer-color-light: #fff}[_nghost-%COMP%]{display:inline-block}.a-button-avatar[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:row;padding-bottom:0;padding-left:0;padding-top:0}.a-button-avatar[_ngcontent-%COMP%] .a-avatar[_ngcontent-%COMP%]{align-content:center;display:flex;flex-direction:row;justify-content:center;overflow:visible;position:relative}.a-button-avatar[_ngcontent-%COMP%] .a-avatar[_ngcontent-%COMP%] .a-badge[_ngcontent-%COMP%]{--badge-bg-color: var(--theme2-400);--badge-border-color: var(--theme2-400);bottom:calc(var(--badge-size) / -2);position:absolute;z-index:5}']})),t})(),y3=(()=>{class t{constructor(){_(this,"mockUser",{firstName:"John",lastName:"Doe",avatarUrl:"https://gravatar.com/avatar/66f865ee03bc019d2f06af6ec0c434ce?s=200"}),_(this,"translations",{login:"Login",logout:"Logout",userAvatar:"User avatar"}),_(this,"importModuleSnippet","import { UserMenuModule } from '@acpaas-ui/ngx-user-menu';\n\n@NgModule({\n\timports: [\n\t\tUserMenuModule\n\t]\n})\nexport class AppModule { }"),_(this,"componentInputs","public mockUser: UserMenu.IUser = {\n\tfirstName: 'John',\n\tlastName: 'Doe',\n\tavatarUrl: 'https://gravatar.com/avatar/66f865ee03bc019d2f06af6ec0c434ce?s=200'\n};\n\npublic translations: UserMenu.ITranslations = {\n\tlogin: 'Login',\n\tloginAlt: 'Click here to login',\n\tuserAvatar: 'User avatar'\n};\n\npublic logoutUser(){\n\talert('User is logged out!');\n}\n\npublic loginUser(){\n\talert('User is logged in!');\n}"),_(this,"useComponentTagSnippet",'\n\t
    \n\t\tYour Content Here\n\t
    \n
    ')}logoutUser(){alert("User is logged out!")}loginUser(){alert("User is logged in!")}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:33,vars:7,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[3,"translations","login$"],[1,"u-margin-bottom-l"],["flyoutSize","Small","direction","left",3,"notificationsCount","translations","user","logout$"],[1,"u-margin-l","u-text-center"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"User Menu"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",1)(9,"aui-user-menu",3),i.\u0275\u0275listener("login$",function(){return r.loginUser()}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(10,"div",4)(11,"aui-user-menu",5),i.\u0275\u0275listener("logout$",function(){return r.logoutUser()}),i.\u0275\u0275elementStart(12,"div",6),i.\u0275\u0275text(13,"Your Content Here"),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(14,"p",1),i.\u0275\u0275text(15," The User Menu component can be used on a webpage to provide visual login and logout buttons. If logged out, the component displays a single button enabling the user to login. If logged in, the component provides an avatar button, displaying a flyout where a logout button is featured.\n"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(16,"p",1),i.\u0275\u0275text(17," This component uses content projection inside its tag, meaning whatever html is included between the "),i.\u0275\u0275elementStart(18,"code"),i.\u0275\u0275text(19,"aui-user-menu"),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(20," tag will be inserted in the flyout section. The logout button is displayed by default but can be disabled if you wish to implement your custom logout button.\n"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(21,"div",1)(22,"p"),i.\u0275\u0275text(23,"Two output events may be used to hook to login or logout functionality to the interface:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(24,"ul")(25,"li")(26,"code"),i.\u0275\u0275text(27,"login$"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(28,"li")(29,"code"),i.\u0275\u0275text(30,"logout$"),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(31,"p"),i.\u0275\u0275text(32," You are responsible for providing login and logout callback functionality, this component only provides visuals. "),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.importModuleSnippet),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.componentInputs),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.useComponentTagSnippet),i.\u0275\u0275advance(2),i.\u0275\u0275property("translations",r.translations),i.\u0275\u0275advance(2),i.\u0275\u0275property("notificationsCount",100)("translations",r.translations)("user",r.mockUser))},dependencies:[Tt,v3],encapsulation:2})),t})();function b3(t,n){if(1&t&&i.\u0275\u0275element(0,"span",6),2&t){const e=i.\u0275\u0275nextContext().$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275property("innerHTML",r.formatLabel(e),i.\u0275\u0275sanitizeHtml)}}function w3(t,n){}const C3=function(t){return{item:t}};function D3(t,n){if(1&t&&i.\u0275\u0275template(0,w3,0,0,"ng-template",7),2&t){const e=i.\u0275\u0275nextContext().$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275property("ngTemplateOutletContext",i.\u0275\u0275pureFunction1(2,C3,e))("ngTemplateOutlet",r.template)}}function S3(t,n){}const E3=function(t){return{$implicit:t}};function T3(t,n){if(1&t&&i.\u0275\u0275template(0,S3,0,0,"ng-template",7),2&t){const e=i.\u0275\u0275nextContext().$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275property("ngTemplateOutletContext",i.\u0275\u0275pureFunction1(2,E3,e))("ngTemplateOutlet",r.itemTemplate)}}function x3(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"li",2),i.\u0275\u0275listener("click",function(){const c=i.\u0275\u0275restoreView(e).$implicit,h=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(h.selectItem(c))}),i.\u0275\u0275elementStart(1,"a",3),i.\u0275\u0275template(2,b3,1,1,"span",4),i.\u0275\u0275template(3,D3,1,4,null,5),i.\u0275\u0275template(4,T3,1,4,null,5),i.\u0275\u0275elementEnd()()}if(2&t){const e=n.index,r=i.\u0275\u0275nextContext();i.\u0275\u0275attribute("aria-selected",e===r.index),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",e===r.index?"is-active":""),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.template&&!r.itemTemplate),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.template),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.itemTemplate)}}let M3=(()=>{class t{constructor(){_(this,"items",void 0),_(this,"index",0),_(this,"search",void 0),_(this,"label",void 0),_(this,"itemTemplate",void 0),_(this,"selected",new i.EventEmitter),_(this,"template",void 0)}selectItem(e){this.selected.emit(e)}formatLabel(e){const r=this.label?e[this.label]:e;if(!this.search)return r;const o=new RegExp(this.search,"ig");return r.replace(o,""+this.search+"")}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-selectable-list"]],contentQueries:function(e,r,o){if(1&e&&i.\u0275\u0275contentQuery(o,i.TemplateRef,7),2&e){let c;i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.template=c.first)}},inputs:{items:"items",index:"index",search:"search",label:"label",itemTemplate:"itemTemplate"},outputs:{selected:"selected"},decls:2,vars:1,consts:[[1,"aui-selectable-list","a-list","a-list--lined","a-list--flushed"],["class","a-list__item",3,"click",4,"ngFor","ngForOf"],[1,"a-list__item",3,"click"],[1,"a-list__content",3,"ngClass"],["class","a-list__text",3,"innerHTML",4,"ngIf"],[4,"ngIf"],[1,"a-list__text",3,"innerHTML"],[3,"ngTemplateOutletContext","ngTemplateOutlet"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"ul",0),i.\u0275\u0275template(1,x3,5,5,"li",1),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",r.items))},dependencies:[ze,re,Fe,Qt],encapsulation:2})),t})();function I3(t,n){if(1&t&&(i.\u0275\u0275text(0," Template for: "),i.\u0275\u0275elementStart(1,"strong"),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()),2&t){const e=n.item;i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.name)}}let P3=(()=>{class t{constructor(){_(this,"index",0),_(this,"heroes",[{name:"Spiderman"},{name:"Wolverine"},{name:"Iron man"}]),_(this,"activeHero",this.heroes[this.index]),_(this,"javascript1","import { SelectableListModule } from '@acpaas-ui/ngx-selectable-list';\n\n@NgModule({\n\timports: [\n\t\tSelectableListModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"javascript2","public index = 0;\n\npublic heroes = [\n\t{ name: 'spiderman' },\n\t{ name: 'wolverine' },\n\t{ name: 'ironman' }\n];\n\npublic activeHero = this.heroes[this.index];\n\npublic onSelect(item) {\n\tthis.index = this.heroes.findIndex(hero => hero.name === item.name);\n\tthis.activeHero = item;\n}"),_(this,"html",'

    Select your hero

    \n\n \n\t Template for: {{ item.name }}\n \n\n

    Active hero: {{ activeHero.name }}

    ')}onSelect(e){this.index=this.heroes.findIndex(r=>r.name===e.name),this.activeHero=e}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:17,vars:6,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom-l"],[1,"h4","u-margin-bottom"],[3,"index","items","selected"],[1,"u-margin-top"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Selectable list"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",3),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",1)(9,"h3",4),i.\u0275\u0275text(10,"Select your hero"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(11,"aui-selectable-list",5),i.\u0275\u0275listener("selected",function(c){return r.onSelect(c)}),i.\u0275\u0275template(12,I3,3,1,"ng-template"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(13,"p",6)(14,"strong"),i.\u0275\u0275text(15,"Active hero"),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(16),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.javascript1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.javascript2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.html),i.\u0275\u0275advance(4),i.\u0275\u0275property("index",r.index)("items",r.heroes),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate1(": ",r.activeHero.name,""))},dependencies:[Tt,M3],encapsulation:2})),t})(),L3=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:3,vars:0,consts:[[1,"h3","u-margin-bottom"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Forms"),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(2,"router-outlet"))},dependencies:[qs],encapsulation:2})),t})();class A3 extends rm.w{constructor(n,e){super()}schedule(n,e=0){return this}}let PI=(()=>{class t{constructor(e,r=t.now){this.SchedulerAction=e,this.now=r}schedule(e,r=0,o){return new this.SchedulerAction(this,e).schedule(o,r)}}return t.now=()=>Date.now(),t})();class jl extends PI{constructor(n,e=PI.now){super(n,()=>jl.delegate&&jl.delegate!==this?jl.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,r){return jl.delegate&&jl.delegate!==this?jl.delegate.schedule(n,e,r):super.schedule(n,e,r)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let r;this.active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,r){for(;n=e.shift();)n.unsubscribe();throw r}}}const k3=new jl(class O3 extends A3{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(o,this.id,e),this}requestAsyncId(n,e,r=0){return setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,e,r=0){if(null!==r&&this.delay===r&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,r=!1;try{this.work(n)}catch(c){r=!0,o=!!c&&c||new Error(c)}if(r)return this.unsubscribe(),o}_unsubscribe(){const n=this.id,e=this.scheduler,r=e.actions,o=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==o&&r.splice(o,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}});class R3{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new N3(n,this.dueTime,this.scheduler))}}class N3 extends ii.L{constructor(n,e,r){super(n),this.dueTime=e,this.scheduler=r,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(B3,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function B3(t){t.debouncedNext()}function rp(t){var n=this.__data__=new VC(t);this.size=n.size}rp.prototype.clear=function V3(){this.__data__=new VC,this.size=0},rp.prototype.delete=function U3(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},rp.prototype.get=function z3(t){return this.__data__.get(t)},rp.prototype.has=function G3(t){return this.__data__.has(t)},rp.prototype.set=function q3(t,n){var e=this.__data__;if(e instanceof VC){var r=e.__data__;if(!j_||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new UC(r)}return e.set(t,n),this.size=e.size,this};const QC=rp;function KC(t){var n=-1,e=null==t?0:t.length;for(this.__data__=new UC;++ny))return!1;var x=c.get(t),A=c.get(n);if(x&&A)return x==n&&A==t;var k=-1,j=!0,V=2&e?new tB:void 0;for(c.set(t,n),c.set(n,t);++k{class t{constructor(){_(this,"matchItemWithSearchString",(e,r)=>String(e).toLowerCase().indexOf(r.toLowerCase())>-1)}search(e,r={}){const o=r.hasOwnProperty("query")?r.query:"",c=r.hasOwnProperty("minLength")?r.minLength:0,h=r.hasOwnProperty("key")?r.key:"";return!o&&r.showAllByDefault||o.lengthh&&!y.hasOwnProperty(h)?console.error(`"${h}" does not exist in item ${JSON.stringify(y,null,2)}`):this.matchItemWithSearchString(h?y[h]:y,o))}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})();function lj(t,n){if(1&t&&i.\u0275\u0275element(0,"span",6),2&t){const e=i.\u0275\u0275nextContext().$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275property("innerHTML",r.formatLabel(e),i.\u0275\u0275sanitizeHtml)}}function uj(t,n){}const cj=function(t){return{item:t}};function dj(t,n){if(1&t&&i.\u0275\u0275template(0,uj,0,0,"ng-template",7),2&t){const e=i.\u0275\u0275nextContext().$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275property("ngTemplateOutletContext",i.\u0275\u0275pureFunction1(2,cj,e))("ngTemplateOutlet",r.template)}}function hj(t,n){}const fj=function(t){return{$implicit:t}};function pj(t,n){if(1&t&&i.\u0275\u0275template(0,hj,0,0,"ng-template",7),2&t){const e=i.\u0275\u0275nextContext().$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275property("ngTemplateOutletContext",i.\u0275\u0275pureFunction1(2,fj,e))("ngTemplateOutlet",r.itemTemplate)}}function mj(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"li",2),i.\u0275\u0275listener("click",function(){const c=i.\u0275\u0275restoreView(e).$implicit,h=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(h.selectItem(c))}),i.\u0275\u0275elementStart(1,"a",3),i.\u0275\u0275template(2,lj,1,1,"span",4),i.\u0275\u0275template(3,dj,1,4,null,5),i.\u0275\u0275template(4,pj,1,4,null,5),i.\u0275\u0275elementEnd()()}if(2&t){const e=n.index,r=i.\u0275\u0275nextContext();i.\u0275\u0275attribute("aria-selected",e===r.index),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",e===r.index?"is-active":""),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.template&&!r.itemTemplate),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.template),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.itemTemplate)}}let gj=(()=>{class t{constructor(){this.index=0,this.selected=new i.EventEmitter}selectItem(e){this.selected.emit(e)}formatLabel(e){const r=this.label?e[this.label]:e;if(!this.search)return r;const o=new RegExp(this.search,"ig");return r.replace(o,""+this.search+"")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.\u0275\u0275defineComponent({type:t,selectors:[["aui-selectable-list"]],contentQueries:function(e,r,o){if(1&e&&i.\u0275\u0275contentQuery(o,i.TemplateRef,7),2&e){let c;i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.template=c.first)}},inputs:{items:"items",index:"index",search:"search",label:"label",itemTemplate:"itemTemplate"},outputs:{selected:"selected"},decls:2,vars:1,consts:[[1,"aui-selectable-list","a-list","a-list--lined","a-list--flushed"],["class","a-list__item",3,"click",4,"ngFor","ngForOf"],[1,"a-list__item",3,"click"],[1,"a-list__content",3,"ngClass"],["class","a-list__text",3,"innerHTML",4,"ngIf"],[4,"ngIf"],[1,"a-list__text",3,"innerHTML"],[3,"ngTemplateOutletContext","ngTemplateOutlet"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"ul",0),i.\u0275\u0275template(1,mj,5,5,"li",1),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",r.items))},dependencies:[ze,re,Fe,Qt],encapsulation:2}),t})(),_j=(()=>{class t{constructor(){this.keyArrowUp=new i.EventEmitter,this.keyArrowDown=new i.EventEmitter,this.keyEnter=new i.EventEmitter,this.keyEscape=new i.EventEmitter}onKeyDown(e){switch(e.key){case"ArrowUp":e.preventDefault(),this.keyArrowUp.emit(e);break;case"ArrowDown":e.preventDefault(),this.keyArrowDown.emit(e);break;case"Enter":this.keyEnter.emit(e);break;case"Escape":this.keyEscape.emit(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","auiSelectableActions",""]],hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("keydown",function(c){return r.onKeyDown(c)})},outputs:{keyArrowUp:"keyArrowUp",keyArrowDown:"keyArrowDown",keyEnter:"keyEnter",keyEscape:"keyEscape"},exportAs:["auiSelectableActions"]}),t})(),vj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({imports:[Ke]}),t})();function yj(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span",7),i.\u0275\u0275element(1,"span",8),i.\u0275\u0275elementStart(2,"span",9),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(e.loadingText)}}function bj(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span",10),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.searchIncentiveText)}}function wj(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span",10),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.noResultsText)}}function Cj(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"aui-selectable-list",11),i.\u0275\u0275listener("selected",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(c.onSelect(o))}),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("index",e.index)("itemTemplate",e.template)("items",e.results)("label",e.label)("search",e.query)}}function Dj(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",3),i.\u0275\u0275template(1,yj,4,1,"span",4),i.\u0275\u0275template(2,bj,2,1,"span",5),i.\u0275\u0275template(3,wj,2,1,"span",5),i.\u0275\u0275template(4,Cj,1,5,"aui-selectable-list",6),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.focused&&e.loadingText&&e.searching),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.focused&&e.searchIncentiveText&&!e.searching&&!e.query&&!e.results.length),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.focused&&e.noResultsText&&!e.searching&&e.query&&!e.results.length),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.results.length>0&&!(e.focused&&e.loadingText&&e.searching))}}let Sj=(()=>{class t{constructor(e,r){_(this,"ref",void 0),_(this,"searchService",void 0),_(this,"id",void 0),_(this,"placeholder",void 0),_(this,"description",void 0),_(this,"inputLabel",void 0),_(this,"results",[]),_(this,"data",[]),_(this,"remote",!1),_(this,"minCharacters",0),_(this,"clearInvalid",!1),_(this,"searchIncentiveText",void 0),_(this,"loadingText",void 0),_(this,"noResultsText",void 0),_(this,"showAllByDefault",!1),_(this,"autoComplete","off"),_(this,"label",void 0),_(this,"value",void 0),_(this,"search",new i.EventEmitter),_(this,"select",new i.EventEmitter),_(this,"flyout",void 0),_(this,"flyoutZone",void 0),_(this,"template",void 0),_(this,"query",""),_(this,"index",-1),_(this,"selectedItem",null),_(this,"searching",!1),_(this,"focused",!1),_(this,"isDisabled",!1),_(this,"remoteValue",!1),_(this,"updateModel",o=>{}),this.ref=e,this.searchService=r}writeValue(e=""){if(this.value){const r=this.data.find(o=>o[this.value]===e);if(r)return this.query=r[this.label];this.remote&&e&&(this.remoteValue=!0)}this.query=e}registerOnChange(e){this.updateModel=e}registerOnTouched(){}setDisabledState(e){this.isDisabled=e}ngOnInit(){Array.isArray(this.data)&&this.data.length>0&&!this.query&&this.showAllByDefault&&(this.results=[...this.data])}ngOnChanges(e){if(!e)return;const r=Bi(e,"data.currentValue",[]);aj(r,Bi(e,"data.previousValue",[]))||(this.remote?this.remoteSearch():this.localSearch()),e.results&&e.results.currentValue&&(this.searching=!1)}propagateChange(e){if(this.query=null!==e?this.label?e[this.label]:e:"",this.select.emit(e),!e)return;const r=this.value?this.value:this.label?this.label:null;this.updateModel(r?e[r]||"":e),this.selectedItem=e}doSearch(){this.index=-1,this.searching=!0,this.remote?this.search.emit(this.query):this.localSearch(),this.openFlyout()}onSelect(e){this.propagateChange(e),this.closeFlyout()}onFlyoutClosed(){return this.index>=0&&1===this.results.length?this.onSelect(this.results[0]):!this.query&&this.index<0?this.onSelect(null):void(this.clearInvalid&&this.query&&!this.results.length&&this.index<0&&(this.query=this.selectedItem?this.label?this.selectedItem[this.label]:this.selectedItem:""))}onKeyArrowDown(){this.index=0&&this.scrollList(-1)}onKeyEnter(e){e.preventDefault(),this.propagateChange(this.index>=0?this.results[this.index]:this.query),this.closeFlyout()}onKeyEscape(){this.closeFlyout()}onFocus(){this.focused=!0,this.openFlyout()}openFlyout(){this.flyout&&this.flyout.open()}closeFlyout(){this.flyout&&this.flyout.close(),this.focused=!1}localSearch(){this.results=this.searchService.search(this.data,{minLength:this.minCharacters,key:this.label,query:this.query,showAllByDefault:this.showAllByDefault}),1===this.results.length&&this.query===this.results[0][this.label]&&(this.index=0),this.searching=!1}remoteSearch(){if(!this.remoteValue||!this.data)return;const e=this.data.find(r=>this.value?r[this.value]===this.query:r===this.query);this.query=e?this.label?e[this.label]:e:"",this.remoteValue=!1}scrollList(e){if(this.index+=e,!this.flyoutZone)return;const r=this.flyoutZone.element.getElementsByTagName("li"),o=r[1]?r[1].offsetHeight:r[0].offsetHeight;this.flyoutZone.element.scrollTop=this.index*o-this.flyoutZone.element.offsetHeight/o/2*o}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(nP))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-auto-complete"]],contentQueries:function(e,r,o){if(1&e&&i.\u0275\u0275contentQuery(o,i.TemplateRef,7),2&e){let c;i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.template=c.first)}},viewQuery:function(e,r){if(1&e&&(i.\u0275\u0275viewQuery(fs,7),i.\u0275\u0275viewQuery(Vl,7)),2&e){let o;i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.flyout=o.first),i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.flyoutZone=o.first)}},inputs:{id:"id",placeholder:"placeholder",description:"description",inputLabel:"inputLabel",results:"results",data:"data",remote:"remote",minCharacters:"minCharacters",clearInvalid:"clearInvalid",searchIncentiveText:"searchIncentiveText",loadingText:"loadingText",noResultsText:"noResultsText",showAllByDefault:"showAllByDefault",autoComplete:"autoComplete",label:"label",value:"value"},outputs:{search:"search",select:"select"},features:[i.\u0275\u0275ProvidersFeature([{provide:Mn,useExisting:(0,i.forwardRef)(()=>t),multi:!0}]),i.\u0275\u0275NgOnChangesFeature],decls:3,vars:7,consts:[["aria-haspopup","listbox","auiFlyout","",1,"m-flyout","m-flyout--scrollable","m-flyout--full","o-auto-complete",3,"toggleClick","closed"],["aria-autocomplete","list","auiFlyoutAction","","auiSelectableActions","","type","text",1,"a-input",3,"ngModel","disabled","id","placeholder","autocomplete","focus","keyArrowDown","keyArrowUp","keyEnter","keyEscape","ngModelChange"],["auiFlyoutZone","",4,"ngIf"],["auiFlyoutZone",""],["class","a-spinner a-spinner--s u-margin-xs","role","alert",4,"ngIf"],["class","o-auto-complete__info u-text-light u-margin-xs",4,"ngIf"],[3,"index","itemTemplate","items","label","search","selected",4,"ngIf"],["role","alert",1,"a-spinner","a-spinner--s","u-margin-xs"],[1,"a-spinner__circle"],[1,"a-spinner__text"],[1,"o-auto-complete__info","u-text-light","u-margin-xs"],[3,"index","itemTemplate","items","label","search","selected"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275listener("closed",function(){return r.onFlyoutClosed()}),i.\u0275\u0275elementStart(1,"input",1),i.\u0275\u0275listener("focus",function(){return r.onFocus()})("keyArrowDown",function(){return r.onKeyArrowDown()})("keyArrowUp",function(){return r.onKeyArrowUp()})("keyEnter",function(c){return r.onKeyEnter(c)})("keyEscape",function(){return r.onKeyEscape()})("ngModelChange",function(c){return r.query=c})("ngModelChange",function(){return r.doSearch()}),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(2,Dj,5,4,"div",2),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275property("toggleClick",!1),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngModel",r.query)("disabled",!!r.isDisabled||null)("id",r.id)("placeholder",r.placeholder)("autocomplete",r.autoComplete),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.isDisabled))},dependencies:[Fe,Si,In,Xi,np,Vl,fs,gj,_j],styles:[".o-auto-complete[_ngcontent-%COMP%], .o-auto-complete__info[_ngcontent-%COMP%]{display:block}"]})),t})();function Ej(t,n){if(1&t&&i.\u0275\u0275element(0,"div",19),2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275property("innerHTML",r.formatLabel(e),i.\u0275\u0275sanitizeHtml)}}function Tj(t,n){if(1&t&&i.\u0275\u0275element(0,"div",19),2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275property("innerHTML",r.formatLabel(e),i.\u0275\u0275sanitizeHtml)}}let xj=(()=>{class t{constructor(){_(this,"autocompleteImportExample","import { AutoCompleteModule } from '@acpaas-ui/ngx-forms';\n\n@NgModule({\n\timports: [\n\t\tAutoCompleteModule,\n\t]\n});\n\nexport class AppModule {};"),_(this,"autocompleteExampleJS1","public heroList = [\n\t{name: 'Batman'},\n\t{name: 'Wonder Woman'},\n\t{name: 'Wolverine'},\n\t{name: 'Iron Man'},\n\t{name: 'Deadpool'},\n];\n\npublic setSelectedUser(hero): void {\n\t// Do something\n}"),_(this,"autocompleteExampleHTML1",'\n\t\t\n\t\t\n'),_(this,"autocompleteExampleJS2","public results = [];\npublic heroList = [\n\t{name: 'Batman'},\n\t{name: 'Wonder Woman'},\n\t{name: 'Wolverine'},\n\t{name: 'Iron Man'},\n\t{name: 'Deadpool'},\n];\npublic searchValue = '';\npublic selectedItem = '';\n\npublic searchItems(search: string): void {\n\tthis.searchValue = search;\n\t// Do search\n\tthis.debouncer.next(search);\n}\n\npublic setSelectedItem(hero: {name}): void {\n\tthis.selectedItem = hero;\n}\n\npublic formatLabel(input: any) {\n\tconst inputString = input.name;\n\n\tif (!this.searchValue) {\n\t\treturn inputString;\n\t}\n\n\t// Highlight searchValue in result\n\tconst regEx = new RegExp(this.searchValue, 'ig');\n\tconst inputStringHighlighted = (inputString.replace(regEx, '' + this.searchValue + ''));\n return `${inputStringHighlighted}`;\n}"),_(this,"autocompleteExampleHTML2",'\n\t\t\n\t\t\t\n\t\t\t\t
    \n\t\t\t
    \n\t\t\n'),_(this,"results",[]),_(this,"heroList",[{name:"Batman"},{name:"Wonder Woman"},{name:"Wolverine"},{name:"Iron Man"},{name:"Deadpool"}]),_(this,"disabledModel","Batman"),_(this,"isDisabled",!0),_(this,"searchValue",""),_(this,"selectedItem1","-"),_(this,"selectedItem2","-"),_(this,"debouncer",new vt.xQ),_(this,"componentDestroyed$",new vt.xQ)}ngOnInit(){this.debouncer.pipe(Bn(this.componentDestroyed$),function F3(t,n=k3){return e=>e.lift(new R3(t,n))}(1e3)).subscribe(e=>{this.results=e?this.heroList.filter(r=>r.name.localeCompare(e,"en",{sensitivity:"base"})):[]})}ngOnDestroy(){this.componentDestroyed$.next(!0),this.componentDestroyed$.complete()}searchItems(e){this.searchValue=e,this.debouncer.next(e)}setSelectedItem1(e){this.selectedItem1=e&&e.name?e.name:"-"}setSelectedItem2(e){this.selectedItem2=e&&e.name?e.name:"-"}formatLabel(e){const r=e.name;if(!this.searchValue)return r;const o=new RegExp(this.searchValue,"ig");return`${r.replace(o,""+this.searchValue+"")}`}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:51,vars:13,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom-l"],[3,"codeSnippet"],[1,"h5","u-margin-bottom"],[1,"u-margin-bottom"],[1,"a-input"],["for","hero-names",1,"a-input__label"],[1,"a-input__wrapper"],["clearInvalid","true","data-id","hero-names","label","name","minCharacters","3","placeholder","Choose your hero\u2026","showAllByDefault","true","value","",3,"data","select"],[1,"u-margin-top"],["for","hero",1,"a-input__label"],["data-id","hero","key","id","label","name","loadingText","Loading\u2026","noResultsText","No results found","placeholder","Choose your hero\u2026","remote","true","searchIncentiveText","Type one or more keywords to start searching",3,"results","search","select"],[1,"u-margin-bottom-3xl"],[1,"a-input","u-margin-bottom"],["for","hero-disabled",1,"a-input__label"],["data-id","hero-disabled","key","id","label","name","loadingText","Loading\u2026","noResultsText","No results found","placeholder","Choose your hero...","remote","true","searchIncentiveText","Type one or more keywords to start searching",3,"ngModel","disabled","results","search","select","ngModelChange"],[1,"a-input__checkbox"],["id","isDisabled","type","checkbox",3,"ngModel","ngModelChange"],["for","isDisabled"],[1,"has-icon-left",3,"innerHTML"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Autocomplete"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"h4",3),i.\u0275\u0275text(5,"Local search"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",4),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",4),i.\u0275\u0275element(9,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",1)(11,"div",5)(12,"label",6),i.\u0275\u0275text(13,"Hero"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(14,"div",7)(15,"aui-auto-complete",8),i.\u0275\u0275listener("select",function(c){return r.setSelectedItem1(c)}),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(16,"p",9)(17,"strong"),i.\u0275\u0275text(18,"Selected hero"),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(19),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(20,"h4",3),i.\u0275\u0275text(21,"Remote search with template"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(22,"div",4),i.\u0275\u0275element(23,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(24,"div",4),i.\u0275\u0275element(25,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(26,"div",4)(27,"div",5)(28,"label",10),i.\u0275\u0275text(29,"Hero"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(30,"div",7)(31,"aui-auto-complete",11),i.\u0275\u0275listener("search",function(c){return r.searchItems(c)})("select",function(c){return r.setSelectedItem2(c)}),i.\u0275\u0275template(32,Ej,1,1,"ng-template"),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(33,"p",9)(34,"strong"),i.\u0275\u0275text(35,"Selected hero"),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(36),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(37,"h4",3),i.\u0275\u0275text(38,"Disabled state"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(39,"div",12)(40,"div",13)(41,"label",14),i.\u0275\u0275text(42,"Hero"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(43,"div",7)(44,"aui-auto-complete",15),i.\u0275\u0275listener("search",function(c){return r.searchItems(c)})("select",function(c){return r.setSelectedItem2(c)})("ngModelChange",function(c){return r.disabledModel=c}),i.\u0275\u0275template(45,Tj,1,1,"ng-template"),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(46,"div",5)(47,"div",16)(48,"input",17),i.\u0275\u0275listener("ngModelChange",function(c){return r.isDisabled=c}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(49,"label",18),i.\u0275\u0275text(50,"Toggle disabled state"),i.\u0275\u0275elementEnd()()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.autocompleteImportExample),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.autocompleteExampleJS1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.autocompleteExampleHTML1),i.\u0275\u0275advance(6),i.\u0275\u0275property("data",r.heroList),i.\u0275\u0275advance(4),i.\u0275\u0275textInterpolate1(": ",r.selectedItem1,""),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.autocompleteExampleJS2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.autocompleteExampleHTML2),i.\u0275\u0275advance(6),i.\u0275\u0275property("results",r.results),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate1(": ",r.selectedItem2,""),i.\u0275\u0275advance(8),i.\u0275\u0275property("ngModel",r.disabledModel)("disabled",r.isDisabled)("results",r.results),i.\u0275\u0275advance(4),i.\u0275\u0275property("ngModel",r.isDisabled))},dependencies:[Tt,Sj,Dr,In,Xi],encapsulation:2})),t})();const sp="CALENDAR_VIEW_MONTH",t0="CALENDAR_VIEW_YEAR",n0="CALENDAR_VIEW_DECENNIA";let W_=(()=>{class t{constructor(){this.months={}}getMonth(e,r){if(r&&(this.currentYear!==r&&(this.months={}),this.currentYear=r),this.months.hasOwnProperty(e))return[...this.months[e]];const o=new Date;o.setMonth(e,1),r&&o.setFullYear(r);const c=ds.generateMonth(o,{startOfWeek:1,padding:!0,generatePadding:!0});return this.months[e]=c,[...c]}getMonthForDate(e){return this.getMonth(e.getMonth(),e.getFullYear())}getRangeForDate(e,r){return ds.generateRange(e,r,{startOfWeek:1})}getRangesForDate(e,r){const o={startOfWeek:1},c=It.updateMonth(e,e.getMonth()-1),h=It.updateMonth(e,e.getMonth()+1);return{before:ds.generateRange(c,r,o),current:ds.generateRange(e,r,o),after:ds.generateRange(h,r,o)}}getClosestDateForRange(e=new Date,r){const o=this.getRangeForDate(e,r);return It.dateOutOfRange(e,o)?e:It.closestDateForRange(e,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const ap=["Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag","Zondag"],lp=["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],Ac=new i.InjectionToken("weekdayLabels"),Oc=new i.InjectionToken("monthLabels"),Ij=function(t,n){return{"is-current":t,"is-selected":n}};function Pj(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"td")(1,"button",3),i.\u0275\u0275listener("click",function(o){const h=i.\u0275\u0275restoreView(e).$implicit,y=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(y.pickDate(o,h))}),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()}if(2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction2(2,Ij,e===r.current,e===r.selectedYear)),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",e," ")}}function Lj(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"tr"),i.\u0275\u0275template(1,Pj,3,5,"td",2),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e)}}let Aj=(()=>{class t{constructor(){this.selectDate=new i.EventEmitter,this.years=[],this.selectedYear=-1,this.current=-1}ngOnInit(){this.current=(new Date).getFullYear()}ngOnChanges(e){const r=Bi(e,"activeDate.currentValue"),o=Bi(e,"activeDate.previousValue"),c=r instanceof Date?r.getFullYear():-1,h=o instanceof Date?o.getFullYear():-1;c>=0&&(h>c||h+17{class t{constructor(e=ap,r){this.moduleWeekdayLabels=e,this.calendarService=r,this.weekdayLabels=ap,this.selectDate=new i.EventEmitter,this.dates=[],this.selectedDay=-1}ngOnInit(){this.weekdayLabels=this.weekdayLabels||this.moduleWeekdayLabels}ngOnChanges(e){const r=this.hasChanged(e,"selectedDate"),o=!!e.interval&&e.interval.currentValue!==e.interval.previousValue,c=this.hasChanged(e,"activeDate"),h=c&&!It.datesAreEqual([e.activeDate.currentValue,e.activeDate.previousValue],"M"),y=this.selectedDate&&this.activeDate.getMonth()===this.selectedDate.getMonth();this.current=this.getCurrentDate(),this.selectedDay=y?this.selectedDate.getDate():-1;let D=[];if(!(r||o||c&&h))return;D=this.calendarService.getMonthForDate(this.activeDate);const x=this.calendarService.getRangesForDate(this.activeDate,this.range);this.dates=D.map(A=>A.map(k=>{const j=new Date;this.activeDate.setHours(j.getHours(),j.getMinutes(),j.getSeconds());const V=new Date(this.activeDate);k.padding&&V.setMonth(k.date>20?this.activeDate.getMonth()-1:this.activeDate.getMonth()+1),V.setDate(k.date);const K=this.dayIsAvailableForRange(k,x)&&(!this.interval||!this.interval.isInRange(V));return{...k,available:K}}))}pickDate(e,r){e.stopPropagation();let o=new Date(this.activeDate);if(r.padding){const c=r.date>20?-1:1;o=It.updateMonth(o,o.getMonth()+c)}this.selectDate.emit(It.updateDate(o,r.date))}hasChanged(e,r){const o=Bi(e,`${r}.currentValue`),c=Bi(e,`${r}.previousValue`),h=o instanceof Date?o.valueOf():0,y=c instanceof Date?c.valueOf():0;return!!h&&h!==y}getCurrentDate(){const e=new Date;return It.datesAreEqual([this.activeDate,e],["M","Y"])?e.getDate():-1}dayIsAvailableForRange(e,r){if(!r)return!0;let o=r.current;return e.padding&&(o=e.date>20?r.before:r.after),o.indexOf(e.date)<0}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(Ac),i.\u0275\u0275directiveInject(W_))},t.\u0275cmp=i.\u0275\u0275defineComponent({type:t,selectors:[["aui-calendar-month"]],inputs:{selectedDate:"selectedDate",activeDate:"activeDate",range:"range",interval:"interval",weekdayLabels:"weekdayLabels"},outputs:{selectDate:"selectDate"},features:[i.\u0275\u0275NgOnChangesFeature],decls:7,vars:2,consts:[[1,"m-datepicker__grid"],[1,"m-datepicker__grid-head"],["scope","col",4,"ngFor","ngForOf"],[1,"m-datepicker__grid-body"],[4,"ngFor","ngForOf"],["scope","col"],[1,"u-text-capitalize",3,"title"],["type","button",3,"disabled","ngClass","click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"table")(2,"thead")(3,"tr",1),i.\u0275\u0275template(4,Oj,4,6,"th",2),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(5,"tbody",3),i.\u0275\u0275template(6,Rj,2,1,"tr",4),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(4),i.\u0275\u0275property("ngForOf",r.weekdayLabels),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngForOf",r.dates))},dependencies:[ze,re,ot],encapsulation:2,changeDetection:0}),t})();const Bj=function(t,n){return{"is-current":t,"is-selected":n}};function Vj(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"td")(1,"button",3),i.\u0275\u0275listener("click",function(o){const h=i.\u0275\u0275restoreView(e).$implicit,y=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(y.pickDate(o,h))}),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"titlecase"),i.\u0275\u0275elementEnd()()}if(2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction2(4,Bj,e===r.current,e===r.monthLabels[r.selectedMonth])),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(3,2,e)," ")}}function jj(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"tr"),i.\u0275\u0275template(1,Vj,4,7,"td",2),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e)}}let Uj=(()=>{class t{constructor(e=lp){this.moduleMonthLabels=e,this.monthLabels=lp,this.selectDate=new i.EventEmitter,this.selectedMonth=-1,this.current="",this.months=[]}ngOnChanges(e){const r=Bi(e,"activeDate.currentValue"),o=r instanceof Date?r.getFullYear():-1,c=this.selectedDate&&this.selectedDate.getFullYear()===this.activeDate.getFullYear(),h=new Date;this.current=o===h.getFullYear()?this.monthLabels[h.getMonth()]:"",this.selectedMonth=c?this.selectedDate.getMonth():-1,e.monthLabels&&(this.monthLabels=this.monthLabels||this.moduleMonthLabels,this.months=HC(this.monthLabels,2))}pickDate(e,r){e.stopPropagation();let o=new Date(this.activeDate);o=It.updateMonth(o,this.monthLabels.indexOf(r)),this.selectDate.emit(o)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(Oc))},t.\u0275cmp=i.\u0275\u0275defineComponent({type:t,selectors:[["aui-calendar-year"]],inputs:{selectedDate:"selectedDate",activeDate:"activeDate",monthLabels:"monthLabels"},outputs:{selectDate:"selectDate"},features:[i.\u0275\u0275NgOnChangesFeature],decls:4,vars:1,consts:[[1,"m-datepicker__list"],[1,"m-datepicker__list-body"],[4,"ngFor","ngForOf"],["type","button",3,"ngClass","click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"table")(2,"tbody",1),i.\u0275\u0275template(3,jj,2,1,"tr",2),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("ngForOf",r.months))},dependencies:[ze,re,fn],encapsulation:2,changeDetection:0}),t})();function Hj(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"aui-calendar-month",10),i.\u0275\u0275listener("selectDate",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.pickDate(o))}),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("activeDate",e.activeDate)("range",e.range)("interval",e.interval)("selectedDate",e.selectedDate)("weekdayLabels",e.weekdayLabels)}}function zj(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"aui-calendar-year",11),i.\u0275\u0275listener("selectDate",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.pickDate(o))}),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("activeDate",e.activeDate)("monthLabels",e.monthLabels)("selectedDate",e.selectedDate)}}function $j(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"aui-calendar-decennia",12),i.\u0275\u0275listener("selectDate",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.pickDate(o))}),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("activeDate",e.activeDate)("selectedDate",e.selectedDate)}}let Gj=(()=>{class t{constructor(e=lp,r=ap,o){this.moduleMonthLabels=e,this.moduleWeekdayLabels=r,this.calendarService=o,this.role="application",this.ariahidden="false",this.ariaPreviousLabels=["Ga naar vorige maand","Ga naar vorig jaar","Ga naar vorige 18 jaren"],this.ariaNextLabels=["Ga naar volgende maand","Ga naar volgend jaar","Ga naar volgende 18 jaren"],this.selectDate=new i.EventEmitter,this.CALENDAR_VIEW_MONTH=sp,this.CALENDAR_VIEW_YEAR=t0,this.CALENDAR_VIEW_DECENNIA=n0,this.activeView=sp,this.headerLabel="",this.ariaPreviousLabel=this.ariaPreviousLabels[0],this.ariaNextLabel=this.ariaNextLabels[0]}ngOnInit(){this.initControl()}ngOnChanges(e){const r=e.selectedDate&&e.selectedDate.currentValue?e.selectedDate:null;if(typeof this.monthLabels<"u"&&r&&!It.datesAreEqual(r.currentValue,r.previousValue))this.activeDate=this.selectedDate,this.updateHeaderLabel();else{let o=new Date;this.interval&&this.interval.isInRange(o)&&(o=this.interval.min),this.activeDate=It.parseDate(o),this.initControl()}}updateActiveDate(e=0){const r=this.activeDate?new Date(this.activeDate):new Date;switch(this.activeView){case sp:r.setMonth(r.getMonth()+e);break;case t0:r.setFullYear(r.getFullYear()+e);break;case n0:r.setFullYear(r.getFullYear()+18*e)}this.activeDate=r,this.updateHeaderLabel()}switchView(e=1){const r=[sp,t0,n0],o=r.indexOf(this.activeView);let c=o+e>=r.length?0:o+e;c=c<0?r.length-1:c,this.activeView=r[c],this.selectedDate&&0===c&&1===e&&(this.activeDate=this.selectedDate),this.updateHeaderLabel()}updateHeaderLabel(){switch(this.activeView){case sp:this.headerLabel=this.monthLabels[this.activeDate.getMonth()]+" "+this.activeDate.getFullYear(),this.ariaPreviousLabel=this.ariaPreviousLabels[0],this.ariaNextLabel=this.ariaNextLabels[0];break;case t0:this.headerLabel=String(this.activeDate.getFullYear()),this.ariaPreviousLabel=this.ariaPreviousLabels[1],this.ariaNextLabel=this.ariaNextLabels[1];break;case n0:const e=this.activeDate.getFullYear();this.headerLabel=`${e} - ${e+17}`,this.ariaPreviousLabel=this.ariaPreviousLabels[2],this.ariaNextLabel=this.ariaNextLabels[2]}}pickDate(e){const r=this.activeView===sp;this.selectDate.emit({date:e,complete:r}),r||(this.activeDate=e,this.switchView(-1))}initControl(){this.weekdayLabels=this.weekdayLabels||this.moduleWeekdayLabels,this.monthLabels=this.monthLabels||this.moduleMonthLabels,this.activeDate=this.calendarService.getClosestDateForRange(this.activeDate,this.range),this.selectedDate&&(this.activeDate=this.selectedDate,this.updateActiveDate()),this.updateHeaderLabel()}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(Oc),i.\u0275\u0275directiveInject(Ac),i.\u0275\u0275directiveInject(W_))},t.\u0275cmp=i.\u0275\u0275defineComponent({type:t,selectors:[["aui-calendar"]],hostVars:2,hostBindings:function(e,r){2&e&&i.\u0275\u0275attribute("role",r.role)("aria-hidden",r.ariahidden)},inputs:{ariaPreviousLabels:"ariaPreviousLabels",ariaNextLabels:"ariaNextLabels",selectedDate:"selectedDate",range:"range",interval:"interval",weekdayLabels:"weekdayLabels",monthLabels:"monthLabels"},outputs:{selectDate:"selectDate"},features:[i.\u0275\u0275NgOnChangesFeature],decls:13,vars:8,consts:[[1,"m-datepicker__nav"],["type","button",1,"m-datepicker__nav-title",3,"click"],["name","ai-arrow-down-1","role","button","tabindex","0"],[1,"m-datepicker__nav-pagination"],["type","button",1,"a-button","a-button--text","a-button--primary","has-icon",3,"click"],["name","ai-arrow-left-1"],["name","ai-arrow-right-1"],[3,"activeDate","range","interval","selectedDate","weekdayLabels","selectDate",4,"ngIf"],[3,"activeDate","monthLabels","selectedDate","selectDate",4,"ngIf"],[3,"activeDate","selectedDate","selectDate",4,"ngIf"],[3,"activeDate","range","interval","selectedDate","weekdayLabels","selectDate"],[3,"activeDate","monthLabels","selectedDate","selectDate"],[3,"activeDate","selectedDate","selectDate"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"button",1),i.\u0275\u0275listener("click",function(){return r.switchView()}),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"titlecase"),i.\u0275\u0275element(4,"aui-icon",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(5,"div",3)(6,"button",4),i.\u0275\u0275listener("click",function(){return r.updateActiveDate(-1)}),i.\u0275\u0275element(7,"aui-icon",5),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"button",4),i.\u0275\u0275listener("click",function(){return r.updateActiveDate(1)}),i.\u0275\u0275element(9,"aui-icon",6),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275template(10,Hj,1,5,"aui-calendar-month",7),i.\u0275\u0275template(11,zj,1,3,"aui-calendar-year",8),i.\u0275\u0275template(12,$j,1,2,"aui-calendar-decennia",9)),2&e&&(i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(3,6,r.headerLabel)," "),i.\u0275\u0275advance(4),i.\u0275\u0275attribute("aria-label",r.ariaPreviousLabel),i.\u0275\u0275advance(2),i.\u0275\u0275attribute("aria-label",r.ariaNextLabel),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",r.activeView===r.CALENDAR_VIEW_MONTH),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.activeView===r.CALENDAR_VIEW_YEAR),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.activeView===r.CALENDAR_VIEW_DECENNIA))},dependencies:[Fe,Gt,Aj,Nj,Uj,fn],encapsulation:2,changeDetection:0}),t})(),Wj=(()=>{class t{static forChild(e,r){return{ngModule:t,providers:[W_,{provide:Ac,useValue:e},{provide:Oc,useValue:r}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({providers:[W_,{provide:Ac,useValue:ap},{provide:Oc,useValue:lp}],imports:[Ke,cn]}),t})();const FT=new i.InjectionToken("errorLabels"),iP={ERRORS_INVALID_DATE:"INVALID_DATE",ERRORS_INVALID_RANGE:"INVALID_RANGE"};function qj(t,n){1&t&&i.\u0275\u0275element(0,"aui-icon",7)}function Yj(t,n){1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275element(1,"aui-icon",8),i.\u0275\u0275elementContainerEnd()),2&t&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("openOnFocus",!1))}function Qj(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275elementStart(1,"div",9)(2,"aui-calendar",10),i.\u0275\u0275listener("selectDate",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.selectDateFromCalendar(o))}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementContainerEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275property("range",e.range)("selectedDate",e.selectedDate)("interval",e.interval)("weekdayLabels",e.weekdayLabels)("monthLabels",e.monthLabels)}}let Kj=(()=>{class t{constructor(e=lp,r=ap,o=iP,c,h,y){_(this,"moduleMonthLabels",void 0),_(this,"moduleWeekdayLabels",void 0),_(this,"errorLabels",void 0),_(this,"calendarService",void 0),_(this,"formBuilder",void 0),_(this,"ref",void 0),_(this,"flyout",void 0),_(this,"id",void 0),_(this,"name",void 0),_(this,"placeholder","dd/mm/yyyy"),_(this,"label",void 0),_(this,"description",void 0),_(this,"range",void 0),_(this,"min",void 0),_(this,"max",void 0),_(this,"autocomplete",void 0),_(this,"weekdayLabels",void 0),_(this,"monthLabels",void 0),_(this,"blur",new i.EventEmitter),_(this,"formControl",void 0),_(this,"selectedDate",void 0),_(this,"isDisabled",!1),_(this,"interval",void 0),_(this,"componentDestroyed$",new vt.xQ),_(this,"onChange",()=>{}),_(this,"onTouched",()=>{}),this.moduleMonthLabels=e,this.moduleWeekdayLabels=r,this.errorLabels=o,this.calendarService=c,this.formBuilder=h,this.ref=y}ngOnInit(){this.weekdayLabels=this.weekdayLabels||this.moduleWeekdayLabels,this.monthLabels=this.monthLabels||this.moduleMonthLabels,this.createInterval(),this.formControl=this.formBuilder.control({value:"",disabled:this.isDisabled}),this.formControl.valueChanges.pipe(Bn(this.componentDestroyed$)).subscribe(e=>{if(e){const r=e.split("/").reverse().join("-"),o=It.parseDate(r,"yyyy-MM-dd");o?(this.selectedDate=o,this.onChange(o.toISOString())):this.onChange(e)}else this.selectedDate=null,this.onChange("")})}ngOnChanges(e){(e.min||e.max)&&this.createInterval()}ngOnDestroy(){this.componentDestroyed$.next(!0),this.componentDestroyed$.complete()}createInterval(){!this.min&&!this.max||(this.interval=qf.dateInterval(this.min?new Date(this.min):null,this.max?new Date(this.max):null).not().build())}writeValue(e){this.selectedDate="string"==typeof e?this.isISODateFormat(e)?new Date(e):It.parseDate(e,"dd/MM/yyyy"):e;const r=this.selectedDate?this.formatDate(this.selectedDate):"";this.formControl.setValue(r)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.isDisabled=e,this.formControl&&(e&&this.formControl.enabled?this.formControl.disable():!e&&this.formControl.disabled&&this.formControl.enable()),this.ref.markForCheck()}selectDateFromCalendar(e){e.complete&&(this.formControl.setValue(this.formatDate(e.date)),this.flyout.close())}formatDate(e){return It.formatDate(e,"DD/MM/YYYY",{leadingZero:!0,monthLabels:this.monthLabels,weekdayLabels:this.weekdayLabels})}validate(e){if(""===e.value||null===e.value)return null;const r=It.parseDate(e.value);return r?this.range&&this.range.length&&this.calendarService.getRangeForDate(r,this.range).indexOf(r.getDate())>=0?{range:this.errorLabels.ERRORS_INVALID_RANGE}:null:{format:this.errorLabels.ERRORS_INVALID_DATE}}handleBlur(e){this.blur.emit(e),this.onTouched(e)}isISODateFormat(e){return"string"==typeof e&&e.match(/\d{4}-\d{2}-\d{2}T.*/)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(Oc),i.\u0275\u0275directiveInject(Ac),i.\u0275\u0275directiveInject(FT),i.\u0275\u0275directiveInject(W_),i.\u0275\u0275directiveInject(El),i.\u0275\u0275directiveInject(i.ChangeDetectorRef))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-datepicker"]],viewQuery:function(e,r){if(1&e&&i.\u0275\u0275viewQuery(fs,7),2&e){let o;i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.flyout=o.first)}},inputs:{id:"id",name:"name",placeholder:"placeholder",label:"label",description:"description",range:"range",min:"min",max:"max",autocomplete:"autocomplete",weekdayLabels:"weekdayLabels",monthLabels:"monthLabels"},outputs:{blur:"blur"},features:[i.\u0275\u0275ProvidersFeature([{provide:Mn,useExisting:(0,i.forwardRef)(()=>t),multi:!0},{provide:Jt,useExisting:(0,i.forwardRef)(()=>t),multi:!0}]),i.\u0275\u0275NgOnChangesFeature],decls:10,vars:11,consts:[["aria-haspopup","grid","auiFlyout","",1,"aui-datepicker","a-input","has-icon-right"],["for","id",1,"a-input__label"],["id","id",1,"a-input__description"],[1,"a-input__wrapper"],["label","Pick date","description","Description","type","text",3,"autocomplete","formControl","id","name","placeholder","blur"],["name","ai-calendar-3","role","button","tabindex","0",4,"ngIf"],[4,"ngIf"],["name","ai-calendar-3","role","button","tabindex","0"],["auiFlyoutAction","","name","ai-calendar-3","className","is-clickable","role","button","tabindex","0",3,"openOnFocus"],["auiFlyoutZone","","role","dialog",1,"m-datepicker","m-datepicker--fixed"],[3,"range","selectedDate","interval","weekdayLabels","monthLabels","selectDate"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"label",1),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"small",2),i.\u0275\u0275text(4),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(5,"div",3)(6,"input",4),i.\u0275\u0275listener("blur",function(c){return r.handleBlur(c)}),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(7,qj,1,0,"aui-icon",5),i.\u0275\u0275template(8,Yj,2,1,"ng-container",6),i.\u0275\u0275template(9,Qj,3,5,"ng-container",6),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(r.label),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",r.description,""),i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate("id",r.id),i.\u0275\u0275propertyInterpolate("name",r.name),i.\u0275\u0275propertyInterpolate("placeholder",r.placeholder),i.\u0275\u0275property("autocomplete",r.autocomplete)("formControl",r.formControl),i.\u0275\u0275attribute("disabled",!!r.isDisabled||null),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.isDisabled),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.isDisabled),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.isDisabled))},dependencies:[Fe,Si,In,Do,Gj,Gt,np,Vl,fs],styles:["[_nghost-%COMP%], .aui-datepicker[_ngcontent-%COMP%]{display:block}"],changeDetection:0})),t})();const Jj=["datepicker"];function Xj(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"p"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.dateForm.controls.inputDate.errors.format)}}function eU(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"p"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.dateForm.controls.inputDate.errors.range)}}function tU(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",14),i.\u0275\u0275template(1,Xj,2,1,"p",15),i.\u0275\u0275template(2,eU,2,1,"p",15),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.dateForm.controls.inputDate.errors.format),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.dateForm.controls.inputDate.errors.range)}}const nU=function(t){return{"has-error":t}};let iU=(()=>{class t{constructor(e){_(this,"fb",void 0),_(this,"datepicker",void 0),_(this,"dateForm",void 0),_(this,"min",new Date),_(this,"max",function Mj(t,n){return bn(2,arguments),pT(t,7*Zn(n))}(new Date,2)),_(this,"datepickerImportExample","import { DatepickerModule } from '@acpaas-ui/ngx-forms';\n\n@NgModule({\n\timports: [\n\t\tDatepickerModule.forChild([\n\t\t\t'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag', 'Zondag',\n\t\t], [\n\t\t\t'Januari', 'Februari', 'Maart', 'April', 'Mei', 'Juni', 'Juli', 'Augustus', 'September', 'Oktober', 'November', 'December',\n\t\t], {\n\t\t\tERRORS_INVALID_DATE: 'Ongeldige datum',\n\t\t\tERRORS_INVALID_RANGE: 'Deze datum kan niet gekozen worden',\n\t\t}),\n\t],\n})\n\nexport class AppModule {};"),_(this,"datepickerExampleTypescript","import { FormBuilder, FormGroup } from '@angular/forms';\n\nimport { DateRange } from '@acpaas-ui/ngx-utils';\nimport { addWeeks } from 'date-fns'; // date-fns is an external library and can be replaced by a library of your choice\n\nconstructor(private fb: FormBuilder) { }\n\n// Since we only pass through a min date, the past will be disabled\npublic min = new Date();\npublic max = addWeeks(new Date(), 2);\npublic dateForm: FormGroup;\n\nthis.dateForm = this.fb.group({\n\tinputDate: [''],\n});"),_(this,"datepickerExampleHTML",'
    \n\t
    \n\t\t\n\t\t\n\t\t\n\t\t
    \n\t\t\t

    {{ dateForm.controls[\'inputDate\'].errors.format }}

    \n\t\t\t

    {{ dateForm.controls[\'inputDate\'].errors.range }}

    \n\t\t
    \n\t
    \n
    '),_(this,"destroyed$",new vt.xQ),this.fb=e}openFlyout(){this.datepicker?.flyout?.open()}ngOnInit(){this.dateForm=this.fb.group({inputDate:[(new Date).toISOString()],isDisabled:!1}),this.dateForm.get("isDisabled").valueChanges.pipe(Bn(this.destroyed$)).subscribe(e=>{e?this.dateForm.get("inputDate").disable():this.dateForm.get("inputDate").enable()})}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(El))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],viewQuery:function(e,r){if(1&e&&i.\u0275\u0275viewQuery(Jj,7),2&e){let o;i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.datepicker=o.first)}},decls:22,vars:13,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-datepicker"],[3,"formGroup"],[1,"a-input","has-icon-right","u-margin-bottom",3,"ngClass"],["autocomplete","off","label","Pick date","description","description","data-id","input-datepicker","formControlName","inputDate","name","input-datepicker","placeholder","dd/mm/jjjj",3,"min","max"],["datepicker",""],["class","u-text-danger u-margin-top-xs u-margin-bottom",4,"ngIf"],[1,"a-input","u-margin-bottom"],[1,"a-input__checkbox"],["formControlName","isDisabled","id","isDisabled","type","checkbox"],["for","isDisabled"],[1,"a-pre"],[1,"u-text-danger","u-margin-top-xs","u-margin-bottom"],[4,"ngIf"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Datepicker"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",3)(9,"div",4)(10,"div",5),i.\u0275\u0275element(11,"aui-datepicker",6,7),i.\u0275\u0275template(13,tU,3,2,"div",8),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(14,"div",9)(15,"div",10),i.\u0275\u0275element(16,"input",11),i.\u0275\u0275elementStart(17,"label",12),i.\u0275\u0275text(18,"Toggle disabled state"),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(19,"pre",13),i.\u0275\u0275text(20),i.\u0275\u0275pipe(21,"json"),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.datepickerImportExample),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.datepickerExampleTypescript),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.datepickerExampleHTML),i.\u0275\u0275advance(2),i.\u0275\u0275property("formGroup",r.dateForm),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(11,nU,r.dateForm.controls.inputDate.dirty&&r.dateForm.controls.inputDate.invalid)),i.\u0275\u0275advance(1),i.\u0275\u0275property("min",r.min)("max",r.max),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",r.dateForm.controls.inputDate.errors),i.\u0275\u0275advance(7),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind1(21,9,r.dateForm.controls.inputDate.value)))},dependencies:[Tt,Kj,ze,Fe,Dr,In,Ku,ss,Dl,Nt],encapsulation:2})),t})();function rU(t,n){1&t&&i.\u0275\u0275element(0,"div",11)}function oU(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"span",12),i.\u0275\u0275listener("blur",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.toggleFocus(!1,null,o))})("dragexit",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.onMouseUp(o))})("focus",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.toggleFocus(!0,"end",o))})("mousedown",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.onMouseDown("end"))})("touchstart",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.onMouseDown("end"))}),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("left",e.endPercentage+"%"),i.\u0275\u0275attribute("aria-label",e.ariaLabelMax)}}let sU=(()=>{class t{constructor(e){_(this,"elRef",void 0),_(this,"coreBranding",!0),_(this,"min",0),_(this,"max",100),_(this,"minimalDistance",1),_(this,"step",0),_(this,"label",""),_(this,"labelBefore",""),_(this,"labelAfter",""),_(this,"ariaLabelMin","Minimum"),_(this,"ariaLabelMax","Maximum"),_(this,"start",0),_(this,"end",!1),_(this,"steps",[]),_(this,"startPercentage",void 0),_(this,"endPercentage",void 0),_(this,"active",null),_(this,"isDisabled",!1),_(this,"hasFocus",!1),_(this,"click",!1),_(this,"propagateChange",r=>{}),this.elRef=e}get disabledClass(){return this.isDisabled}ngOnInit(){if(this.step>0)for(let e=0;e<=this.max;e+=Number(this.step))this.steps.push(e);this.startPercentage=this.startToPercentage(),this.end&&(this.endPercentage=this.endToPercentage())}writeValue(e){e&&e.start?this.start=e.start:isNaN(e)||""===e?this.setStart(Number(this.min)):this.start=Number(e),this.startPercentage=this.startToPercentage(),e&&e.end&&(this.end=e.end,this.endPercentage=this.endToPercentage())}registerOnTouched(){}registerOnChange(e){this.propagateChange=e}setDisabledState(e){this.isDisabled=e}onMouseDown(e){this.isDisabled||(this.hasFocus=!0,this.active=e)}toggleFocus(e,r,o){this.isDisabled||(o.preventDefault(),this.hasFocus=e,this.active=r)}onKeyDown(e){if(!this.hasFocus)return;const r=e.keyCode,o={end:35,home:36,left:37,up:38,right:39,down:40};if(-1===Object.keys(o).map(y=>o[y]).indexOf(r))return;let c=this.minimalDistance;this.step>0&&(c=Number(this.step));const h=y=>{let D="start"===this.active?this.start:Number(this.end);"up"===y?D+=c:D-=c;let x=(D-this.min)/(this.max-this.min)*100;return x>100&&(x=100),x<0&&(x=0),x};switch(r){case o.right:case o.up:this.updateHandle(h("up")),e.preventDefault();break;case o.left:case o.down:this.updateHandle(h("down")),e.preventDefault();break;case o.end:this.updateHandle(100),e.preventDefault();break;case o.home:this.updateHandle(0),e.preventDefault()}}onMouseUp(e){"start"===this.active&&(this.setStart(this.round(this.start,this.step,0)),this.startPercentage=this.startToPercentage()),"end"===this.active&&(this.setEnd(this.round(this.end,this.step,0)),this.endPercentage=this.endToPercentage()),this.click=!1}mouseDown(e){this.click=!0}onMouseMove(e){if(!this.active||!this.click)return;e.preventDefault();const r=void 0!==e.x?e.x:e.targetTouches[0].pageX,o=this.elRef.nativeElement.getBoundingClientRect(),c=this.calcPercentage(r,o.width,o.left);this.updateHandle(c)}updateHandle(e){"start"===this.active&&(this.startPercentage=e,this.setStart(this.percentageToStart()),this.minimalDistanceNotRespected()&&(this.setStart(Number(this.end)-Number(this.minimalDistance)),this.startPercentage=this.startToPercentage())),"end"===this.active&&this.endPercentage&&(this.endPercentage=e,this.setEnd(this.percentageToEnd()),this.minimalDistanceNotRespected()&&(this.setEnd(Number(this.start)+Number(this.minimalDistance)),this.endPercentage=this.endToPercentage()))}setStart(e){this.start=e,this.propagateChange(this.end?{start:this.start,end:this.end}:this.start)}setEnd(e){this.end=e,this.propagateChange({start:this.start,end:this.end})}round(e,r,o){return r>0?Math.round((e-o)/r)*r+o:e}startToPercentage(){return Math.round((this.start-this.min)/(this.max-this.min)*100)}percentageToStart(){return Math.round(this.startPercentage/100*(this.max-this.min)+Number(this.min))}endToPercentage(){return Math.round((Number(this.end)-this.min)/(this.max-this.min)*100)}percentageToEnd(){return Math.round(this.endPercentage/100*(this.max-this.min)+Number(this.min))}minimalDistanceNotRespected(){return this.minimalDistance>=0&&this.end&&this.start>Number(this.end)-this.minimalDistance}calcPercentage(e,r,o){let h=Math.round((e-o)/r*100);return h>100&&(h=100),h<0&&(h=0),h}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ElementRef))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-range-slider"]],hostVars:4,hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("keydown",function(c){return r.onKeyDown(c)},!1,i.\u0275\u0275resolveDocument)("touchend",function(c){return r.onMouseUp(c)})("mouseup",function(c){return r.onMouseUp(c)})("touchstart",function(c){return r.mouseDown(c)})("mousedown",function(c){return r.mouseDown(c)})("touchmove",function(c){return r.onMouseMove(c)})("mousemove",function(c){return r.onMouseMove(c)}),2&e&&i.\u0275\u0275classProp("m-range-slider",r.coreBranding)("is-disabled",r.disabledClass)},inputs:{min:"min",max:"max",minimalDistance:"minimalDistance",step:"step",label:"label",labelBefore:"labelBefore",labelAfter:"labelAfter",ariaLabelMin:"ariaLabelMin",ariaLabelMax:"ariaLabelMax"},features:[i.\u0275\u0275ProvidersFeature([{provide:Mn,useExisting:(0,i.forwardRef)(()=>t),multi:!0}])],decls:15,vars:16,consts:[[1,"a-range-slider"],[1,"a-range-slider__labels"],[1,"a-range-slider__label"],[1,"a-range-slider__inner"],[1,"a-range-slider__tickmarks"],["class","a-range-slider__tickmark",4,"ngFor","ngForOf"],[1,"a-range-slider__bar"],["tabindex","0",1,"a-range-slider__handle",3,"blur","dragexit","focus","mousedown","touchstart"],["class","a-range-slider__handle","name","a-range-slider__handle__end","tabindex","0",3,"left","blur","dragexit","focus","mousedown","touchstart",4,"ngIf"],[1,"a-range-slider__descriptions"],[1,"a-range-slider__description","small"],[1,"a-range-slider__tickmark"],["name","a-range-slider__handle__end","tabindex","0",1,"a-range-slider__handle",3,"blur","dragexit","focus","mousedown","touchstart"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(4,"div",3)(5,"div",4),i.\u0275\u0275template(6,rU,1,0,"div",5),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(7,"div",6),i.\u0275\u0275elementStart(8,"span",7),i.\u0275\u0275listener("blur",function(c){return r.toggleFocus(!1,null,c)})("dragexit",function(c){return r.onMouseUp(c)})("focus",function(c){return r.toggleFocus(!0,"start",c)})("mousedown",function(){return r.onMouseDown("start")})("touchstart",function(){return r.onMouseDown("start")}),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(9,oU,1,3,"span",8),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",9)(11,"div",10),i.\u0275\u0275text(12),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(13,"div",10),i.\u0275\u0275text(14),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(r.label),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngForOf",r.steps),i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("left",!!r.endPercentage&&r.startPercentage+"%")("width",r.endPercentage?r.endPercentage-r.startPercentage+"%":r.startPercentage+"%"),i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("left",r.startPercentage+"%"),i.\u0275\u0275attribute("aria-label",r.ariaLabelMin),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.end),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate3("",r.labelBefore,"",r.min,"",r.labelAfter,""),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate3("",r.labelBefore,"",r.max,"",r.labelAfter,""))},dependencies:[re,Fe],styles:["[_nghost-%COMP%]{display:block;position:relative}.is-disabled[_nghost-%COMP%]{cursor:not-allowed}.is-disabled[_nghost-%COMP%] .m-range-slider__handle[_ngcontent-%COMP%]:hover{cursor:not-allowed}"]})),t})(),aU=(()=>{class t{constructor(){_(this,"mySlider",{start:400,end:500}),_(this,"rangesliderImportExample","import { RangeSliderModule } from '@acpaas-ui/ngx-forms';\nimport { FormsModule } from '@angular/forms';\n\t@NgModule({\n\t\timports: [\n\t\t\tRangeSliderModule,\n\t\t\tFormsModule,\n\t\t]\n\t});\nexport class AppModule {};"),_(this,"rangesliderExampleHTML1",''),_(this,"rangesliderExampleHTML2",'\n'),_(this,"rangesliderExampleTypescript3","public mySlider = {start: 400, end: 500};"),_(this,"rangesliderExampleHTML3",'\n'),_(this,"isDisabled",!1),_(this,"disabledSlider",{start:350,end:450}),_(this,"range",{start:40})}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:34,vars:10,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom-l"],[3,"codeSnippet"],[1,"h5","u-margin-bottom"],["label","Basic"],["label","Step","labelAfter","%","step","20",3,"ngModel","ngModelChange"],[1,"u-margin-bottom"],[1,"u-margin-bottom","col-md-6","col-xs-12"],["label","Min/max","labelBefore","\u20ac","max","600","min","300",3,"ngModel","ngModelChange"],[1,"u-margin-bottom-3xl","col-md-6","col-xs-12"],["label","Disabled","labelBefore","\u20ac","max","600","min","300",3,"ngModel","disabled","ngModelChange"],[1,"a-input","u-margin-bottom"],[1,"a-input__checkbox"],["id","isDisabled","type","checkbox",3,"ngModel","ngModelChange"],["for","isDisabled"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Range slider"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"h4",3),i.\u0275\u0275text(5,"Basic"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",1),i.\u0275\u0275element(9,"aui-range-slider",4),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"h4",3),i.\u0275\u0275text(11,"Step"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"div",1),i.\u0275\u0275element(13,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(14,"div",1)(15,"aui-range-slider",5),i.\u0275\u0275listener("ngModelChange",function(c){return r.range=c}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(16,"h4",3),i.\u0275\u0275text(17,"Min/max"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(18,"div",6),i.\u0275\u0275element(19,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(20,"div",1),i.\u0275\u0275element(21,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(22,"div",7)(23,"aui-range-slider",8),i.\u0275\u0275listener("ngModelChange",function(c){return r.mySlider=c}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(24,"h4",3),i.\u0275\u0275text(25,"Disabled"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(26,"div",9)(27,"div",6)(28,"aui-range-slider",10),i.\u0275\u0275listener("ngModelChange",function(c){return r.disabledSlider=c}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(29,"div",11)(30,"div",12)(31,"input",13),i.\u0275\u0275listener("ngModelChange",function(c){return r.isDisabled=c}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(32,"label",14),i.\u0275\u0275text(33,"Toggle disabled state"),i.\u0275\u0275elementEnd()()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.rangesliderImportExample),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.rangesliderExampleHTML1),i.\u0275\u0275advance(6),i.\u0275\u0275property("codeSnippet",r.rangesliderExampleHTML2),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngModel",r.range),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.rangesliderExampleTypescript3),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.rangesliderExampleHTML3),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngModel",r.mySlider),i.\u0275\u0275advance(5),i.\u0275\u0275property("ngModel",r.disabledSlider)("disabled",r.isDisabled),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngModel",r.isDisabled))},dependencies:[Tt,sU,Dr,In,Xi],encapsulation:2})),t})();const RT=function(){return Io.Date.now()};var cU=Math.max,dU=Math.min;const pU=function(t,n){return{"a-button--l":t,"a-button--s":n}};function mU(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",12),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.clear())}),i.\u0275\u0275element(1,"aui-icon",13),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction2(2,pU,"large"===e.size,"small"===e.size)),i.\u0275\u0275attribute("disabled",e.isDisabled||e.closeDisabled?"":null)}}function gU(t,n){1&t&&i.\u0275\u0275element(0,"aui-icon",13)}function _U(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"p",14),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.labelResults)}}function vU(t,n){1&t&&i.\u0275\u0275element(0,"div",15)}function yU(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"li",19)(1,"p",20),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.labelNoResults)}}function bU(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"li",19)(1,"div",21)(2,"div",22)(3,"input",23),i.\u0275\u0275listener("change",function(){const c=i.\u0275\u0275restoreView(e).$implicit,h=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(h.toggleSelected(c.label))}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"label",24),i.\u0275\u0275text(5),i.\u0275\u0275elementEnd()()()()}if(2&t){const e=n.$implicit,r=n.index,o=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(3),i.\u0275\u0275propertyInterpolate("id","checkbox--"+r+"--"+o.id),i.\u0275\u0275propertyInterpolate("name","checkbox--"+r+"--"+o.id),i.\u0275\u0275property("checked",o.selectedItems.indexOf(e.label)>=0),i.\u0275\u0275attribute("disabled",!!o.isDisabled||null),i.\u0275\u0275advance(1),i.\u0275\u0275propertyInterpolate("for","checkbox--"+r+"--"+o.id),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.label)}}function wU(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"ul",16),i.\u0275\u0275template(1,yU,3,1,"li",17),i.\u0275\u0275template(2,bU,6,6,"li",18),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!e.filteredChoices.length),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e.filteredChoices)}}const CU=function(t,n,e){return{"a-input--l":t,"a-input--s":n,"has-icon-right":e}};let DU=(()=>{class t{constructor(){_(this,"id",void 0),_(this,"name",void 0),_(this,"flyoutSize",tp.Small),_(this,"flyoutAlign",void 0),_(this,"label",void 0),_(this,"description",void 0),_(this,"labelDeselect","Alles deselecteren"),_(this,"labelResults","Resultaten"),_(this,"labelNoResults","Geen resultaten gevonden."),_(this,"choices",[]),_(this,"remote",void 0),_(this,"inputDelay",150),_(this,"onSelect",()=>{}),_(this,"onClear",()=>{}),_(this,"size","default"),_(this,"search",new i.EventEmitter),_(this,"query",""),_(this,"selectedItems",[]),_(this,"filteredChoices",[]),_(this,"loading",!1),_(this,"isDisabled",!1),_(this,"closeDisabled",!1),_(this,"filterDataFromSearch",void 0),_(this,"updateModel",()=>{}),this.filterDataFromSearch=function hU(t,n,e){var r,o,c,h,y,D,x=0,A=!1,k=!1,j=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function V(Ue){var dt=r,tn=o;return r=o=void 0,x=Ue,h=t.apply(tn,dt)}function ae(Ue){var dt=Ue-D;return void 0===D||dt>=n||dt<0||k&&Ue-x>=c}function de(){var Ue=RT();if(ae(Ue))return ye(Ue);y=setTimeout(de,function se(Ue){var li=n-(Ue-D);return k?dU(li,c-(Ue-x)):li}(Ue))}function ye(Ue){return y=void 0,j&&r?V(Ue):(r=o=void 0,h)}function pt(){var Ue=RT(),dt=ae(Ue);if(r=arguments,o=this,D=Ue,dt){if(void 0===y)return function K(Ue){return x=Ue,y=setTimeout(de,n),A?V(Ue):h}(D);if(k)return clearTimeout(y),y=setTimeout(de,n),V(D)}return void 0===y&&(y=setTimeout(de,n)),h}return n=vT(n)||0,ua(e)&&(A=!!e.leading,c=(k="maxWait"in e)?cU(vT(e.maxWait)||0,n):c,j="trailing"in e?!!e.trailing:j),pt.cancel=function lt(){void 0!==y&&clearTimeout(y),x=0,r=D=o=y=void 0},pt.flush=function tt(){return void 0===y?h:ye(RT())},pt}(this.filterData.bind(this),this.inputDelay)}writeValue(e){this.selectedItems=Array.isArray(e)?e:[]}registerOnChange(e){this.updateModel=e}registerOnTouched(){}setDisabledState(e){this.isDisabled=e}ngOnChanges(e){const r=Bi(e,"choices.currentValue",null);r&&(this.remote?(this.filteredChoices=[...r],this.loading=!1):this.filterData())}filterData(){if(this.remote)return this.loading=!0,this.search.emit(this.query);this.filterChoices()}clear(){this.selectedItems=[],this.query="",this.filterData(),this.updateModel(this.selectedItems),this.onClear()}toggleSelected(e){const r=this.selectedItems.indexOf(e);this.selectedItems=r<0?this.selectedItems.concat(e):[...this.selectedItems.slice(0,r),...this.selectedItems.slice(r+1)],this.updateModel(this.selectedItems),this.onSelect()}filterChoices(){this.filteredChoices=this.choices.filter(e=>this.selectedItems.indexOf(e.value)<0&&e.label.toLowerCase().indexOf(this.query.toLowerCase())>=0)}hasClose(){return this.filteredChoices?.length&&this.query?.length>1}getSelectedLabels(){return this.selectedItems.length?(this.closeDisabled=!1,this.selectedItems.map(e=>e).join(", ")):(this.closeDisabled=!0,null)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-search-filter"]],inputs:{id:"id",name:"name",flyoutSize:"flyoutSize",flyoutAlign:"flyoutAlign",label:"label",description:"description",labelDeselect:"labelDeselect",labelResults:"labelResults",labelNoResults:"labelNoResults",choices:"choices",remote:"remote",inputDelay:"inputDelay",onSelect:"onSelect",onClear:"onClear",size:"size"},outputs:{search:"search"},features:[i.\u0275\u0275ProvidersFeature([{provide:Mn,useExisting:(0,i.forwardRef)(()=>t),multi:!0}]),i.\u0275\u0275NgOnChangesFeature],decls:14,vars:22,consts:[["aria-haspopup","listbox","auiFlyout","",1,"m-search-filter",3,"align","size"],[1,"a-input",3,"ngClass"],[1,"a-input__label",3,"for"],[1,"a-input__description",3,"id"],[1,"m-search-filter__input"],["aria-autocomplete","list","type","text","auiFlyoutAction","",3,"ngModel","id","name","value","input","ngModelChange"],["class","a-button a-button--outlined has-icon m-search-filter__button a-button--danger","aria-label","Zoekopdracht wissen","type","button",3,"ngClass","click",4,"ngIf"],["name","ai-close",4,"ngIf"],["auiFlyoutZone","",1,"m-search-filter__search","m-search-filter__search--scroll"],["class","h6 m-search-filter__results-title u-margin-bottom-xs",4,"ngIf"],["class","u-text-center u-padding a-spinner",4,"ngIf"],["class","a-checkbox-list a-checkbox-list--flushed",4,"ngIf"],["aria-label","Zoekopdracht wissen","type","button",1,"a-button","a-button--outlined","has-icon","m-search-filter__button","a-button--danger",3,"ngClass","click"],["name","ai-close"],[1,"h6","m-search-filter__results-title","u-margin-bottom-xs"],[1,"u-text-center","u-padding","a-spinner"],[1,"a-checkbox-list","a-checkbox-list--flushed"],["class","a-checkbox-list__item",4,"ngIf"],["class","a-checkbox-list__item",4,"ngFor","ngForOf"],[1,"a-checkbox-list__item"],[1,"u-margin-xs"],[1,"a-input","a-checkbox-list__checkbox"],[1,"a-input__checkbox"],["type","checkbox",3,"checked","id","name","change"],[3,"for"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"label",2),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"small",3),i.\u0275\u0275text(5),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",4)(7,"input",5),i.\u0275\u0275listener("input",function(){return r.filterDataFromSearch()})("ngModelChange",function(c){return r.query=c}),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(8,mU,2,5,"button",6),i.\u0275\u0275template(9,gU,1,0,"aui-icon",7),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(10,"div",8),i.\u0275\u0275template(11,_U,2,1,"p",9),i.\u0275\u0275template(12,vU,1,0,"div",10),i.\u0275\u0275template(13,wU,3,2,"ul",11),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275property("align",r.flyoutAlign)("size",r.flyoutSize),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction3(18,CU,"large"===r.size,"small"===r.size,r.hasClose)),i.\u0275\u0275advance(1),i.\u0275\u0275propertyInterpolate("for",r.id+"-search"),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(r.label),i.\u0275\u0275advance(1),i.\u0275\u0275propertyInterpolate("id",r.id+"-description"),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(r.description),i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate("id",r.id+"-search"),i.\u0275\u0275propertyInterpolate("name",r.name+"-search"),i.\u0275\u0275propertyInterpolate("value",r.getSelectedLabels()),i.\u0275\u0275property("ngModel",r.query),i.\u0275\u0275attribute("aria-labelledby",r.id+"-label")("disabled",r.isDisabled?"":null),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.hasClose),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.hasClose),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",r.labelResults),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.loading),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.loading))},dependencies:[ze,re,Fe,np,Vl,fs,Si,In,Xi,Gt],styles:[".m-search-filter[_ngcontent-%COMP%]{display:block}.m-search-filter__input[_ngcontent-%COMP%]{display:flex;padding:0}.m-search-filter__input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-right:none}.m-search-filter__button[_ngcontent-%COMP%]{display:inline-block;padding:0;position:relative;vertical-align:middle}.m-search-filter__button[_ngcontent-%COMP%] .ai[_ngcontent-%COMP%]{position:relative;transform:none!important;top:0}"]})),t})(),SU=(()=>{class t{constructor(){_(this,"stuff",[{label:"First item",value:"one"},{label:"Second item",value:"two"},{label:"Third item",value:"three"},{label:"Fourth item",value:"four"}]),_(this,"selectedItems",[]),_(this,"isDisabled",!1),_(this,"searchfilterImportExample","import { SearchFilterModule } from '@acpaas-ui/ngx-forms';\n\n@NgModule({\n\timports: [\n\t\tSearchFilterModule,\n\t]\n});\n\nexport class AppModule {};"),_(this,"searchfilterExampleJS1",'import { SearchFilterChoice } from \'@acpaas-ui/ngx-forms\';\n\n\tpublic stuff: SearchFilterChoice[] = [{\n\t\tlabel: "First item",\n\t\tvalue: "one",\n\t}, {\n\t\tlabel: "Second item",\n\t\tvalue: "two",\n\t}, {\n\t\tlabel: "Third item",\n\t\tvalue: "three",\n\t}, {\n\t\tlabel: "Fourth item",\n\t\tvalue: "four",\n}];'),_(this,"searchfilterExampleHTML1",'\n')}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:20,vars:7,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom-l"],[3,"codeSnippet"],[1,"h5","u-margin-bottom"],[1,"u-margin-bottom"],[1,"u-margin-bottom-xs"],["id","test","inputDelay","0","label","Find stuff","labelDeselect","Clear stuff","labelNoResults","Couldn't find stuff!","labelResults","","name","test","description","Look for stuff",3,"ngModel","choices","disabled","ngModelChange"],[1,"a-input"],[1,"a-input__checkbox"],["id","isDisabled","type","checkbox",3,"ngModel","ngModelChange"],["for","isDisabled"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Search filter"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"h4",3),i.\u0275\u0275text(5,"Basic"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",4),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",1),i.\u0275\u0275element(9,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",4)(11,"h4",5),i.\u0275\u0275text(12,"Normal search filter"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(13,"div",4)(14,"aui-search-filter",6),i.\u0275\u0275listener("ngModelChange",function(c){return r.selectedItems=c}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(15,"div",7)(16,"div",8)(17,"input",9),i.\u0275\u0275listener("ngModelChange",function(c){return r.isDisabled=c}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(18,"label",10),i.\u0275\u0275text(19,"Toggle disabled state"),i.\u0275\u0275elementEnd()()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.searchfilterImportExample),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.searchfilterExampleJS1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.searchfilterExampleHTML1),i.\u0275\u0275advance(5),i.\u0275\u0275property("ngModel",r.selectedItems)("choices",r.stuff)("disabled",r.isDisabled),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngModel",r.isDisabled))},dependencies:[Tt,DU,Dr,In,Xi],encapsulation:2})),t})();var r0=(()=>(function(t){t.Auto="auto",t.Small="small",t.Large="large"}(r0||(r0={})),r0))();function EU(t,n){1&t&&i.\u0275\u0275element(0,"aui-icon",8)}const NT=function(t){return{"has-error":t}},TU=function(t){return{"is-error":t}};function xU(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",3)(1,"label",4),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"small",5),i.\u0275\u0275template(4,EU,1,0,"aui-icon",6),i.\u0275\u0275text(5),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(6,"input",7),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275classMap("a-input--"+e.size),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(10,NT,e.hasError)),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.label),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(12,TU,e.hasError)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.hasError),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",e.description,""),i.\u0275\u0275advance(1),i.\u0275\u0275property("formControl",e.timeControl)("id",e.id),i.\u0275\u0275attribute("aria-label",e.ariaLabelHours+":"+e.ariaLabelMinutes)}}function MU(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"option",17),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;i.\u0275\u0275property("value",e),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e)}}function IU(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"option",17),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;i.\u0275\u0275property("value",e),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e)}}function PU(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",9)(1,"div",10)(2,"div",11)(3,"select",12)(4,"option",13),i.\u0275\u0275text(5),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(6,MU,2,2,"option",14),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(7,"aui-icon",15),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(8,"div",10)(9,"div",11)(10,"select",16)(11,"option",13),i.\u0275\u0275text(12),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(13,IU,2,2,"option",14),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(14,"aui-icon",15),i.\u0275\u0275elementEnd()()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("formGroup",e.fallbackForm),i.\u0275\u0275advance(1),i.\u0275\u0275classMap("a-input--"+e.size),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(14,NT,e.hasError)),i.\u0275\u0275advance(2),i.\u0275\u0275property("id",e.id),i.\u0275\u0275attribute("aria-label",e.ariaLabelHours),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.hoursPlaceholder),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e.hours),i.\u0275\u0275advance(2),i.\u0275\u0275classMap("a-input--"+e.size),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(16,NT,e.hasError)),i.\u0275\u0275advance(2),i.\u0275\u0275attribute("aria-label",e.ariaLabelMinutes),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.minutesPlaceholder),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e.minutes)}}let LU=(()=>{class t{constructor(e,r){_(this,"formBuilder",void 0),_(this,"renderer",void 0),_(this,"id","aui-timepicker-"+Math.random().toString(36).substring(2)),_(this,"hoursPlaceholder","uu"),_(this,"minutesPlaceholder","mm"),_(this,"hasError",!1),_(this,"size",r0.Auto),_(this,"ariaLabelHours","Uur"),_(this,"ariaLabelMinutes","Minuten"),_(this,"label",void 0),_(this,"description",void 0),_(this,"shouldUseFallback",!1),_(this,"minutes",[]),_(this,"hours",[]),_(this,"updateModel",void 0),_(this,"timeControl",new ic),_(this,"fallbackForm",void 0),_(this,"componentDestroyed$",new vt.xQ),this.formBuilder=e,this.renderer=r}ngOnInit(){this.shouldUseFallback=this.supportsNativeTimepicker(),this.minutes=this.getMinutes(),this.hours=this.getHours(),this.fallbackForm=this.formBuilder.group({hours:null,minutes:null}),this.fallbackForm.valueChanges.pipe(Bn(this.componentDestroyed$)).subscribe(e=>{this.updateModel(e.hours&&e.minutes?`${e.hours}:${e.minutes}`:"")}),this.timeControl.valueChanges.pipe(Bn(this.componentDestroyed$)).subscribe(e=>{this.updateModel(e)})}ngOnDestroy(){this.componentDestroyed$.next(!0),this.componentDestroyed$.complete()}writeValue(e){if(this.timeControl.setValue(e,{emitEvent:!1}),e){const r=e.split(":");this.fallbackForm.get("hours").setValue(r[0],{emitEvent:!1}),this.fallbackForm.get("minutes").setValue(r[1],{emitEvent:!1})}}registerOnChange(e){this.updateModel=e}registerOnTouched(){}setDisabledState(e){e?(this.timeControl.disable({emitEvent:!1}),this.fallbackForm.disable({emitEvent:!1})):(this.timeControl.enable({emitEvent:!1}),this.fallbackForm.enable({emitEvent:!1}))}supportsNativeTimepicker(){const e=this.renderer.createElement("input");return e.type="time","text"===e.type}getMinutes(){return Array(60).fill("").map((e,r)=>It.addLeadingZero(r))}getHours(){return Array(24).fill("").map((e,r)=>It.addLeadingZero(r))}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(El),i.\u0275\u0275directiveInject(i.Renderer2))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-timepicker"]],inputs:{id:"id",hoursPlaceholder:"hoursPlaceholder",minutesPlaceholder:"minutesPlaceholder",hasError:"hasError",size:"size",ariaLabelHours:"ariaLabelHours",ariaLabelMinutes:"ariaLabelMinutes",label:"label",description:"description"},features:[i.\u0275\u0275ProvidersFeature([{provide:Mn,useExisting:(0,i.forwardRef)(()=>t),multi:!0}])],decls:3,vars:2,consts:[[1,"m-timepicker"],["class","a-input",3,"class","ngClass",4,"ngIf"],[3,"formGroup",4,"ngIf"],[1,"a-input",3,"ngClass"],["for","id",1,"a-input__label"],["id","id",1,"a-input__description",3,"ngClass"],["name","ai-alert-triangle",4,"ngIf"],["type","time",3,"formControl","id"],["name","ai-alert-triangle"],[3,"formGroup"],[1,"a-input","has-icon-right",3,"ngClass"],[1,"a-input__wrapper"],["formControlName","hours",3,"id"],["disabled","","value","null"],[3,"value",4,"ngFor","ngForOf"],["name","ai-arrow-down-1"],["formControlName","minutes"],[3,"value"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,xU,7,14,"div",1),i.\u0275\u0275template(2,PU,15,18,"div",2),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.shouldUseFallback),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.shouldUseFallback))},dependencies:[ea,na,Si,So,In,Ku,Do,ss,Dl,ze,re,Fe,Gt],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})),t})();function AU(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",1)(1,"pre",16),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.time1)}}function OU(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",1)(1,"pre",16),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.time2)}}function kU(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",4)(1,"pre",16),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.time3)}}function FU(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",4)(1,"pre",16),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.time4)}}let RU=(()=>{class t{constructor(){_(this,"time1","10:30"),_(this,"time2","20:30"),_(this,"time3",""),_(this,"time4",""),_(this,"isDisabled",!1),_(this,"timepickerImportExample","import { TimepickerModule } from '@acpaas-ui/ngx-forms';\n\t@NgModule({\n\t\timports: [\n\t\t\tTimepickerModule,\n\t\t]\n\t});\nexport class AppModule {};"),_(this,"timepickerExampleTypescript",'public time1 = "10:30";'),_(this,"timepickerExampleHTML1",'
    \n\t\n\t\n\t\n
    '),_(this,"timepickerExampleTypescript2",'public time2 = "20:30";'),_(this,"timepickerExampleHTML2",'
    \n\t\n\t\n\t\n
    '),_(this,"timepickerExampleHTML3",'
    \n\t\n\t\n\t\n
    '),_(this,"timepickerExampleHTML4",'
    \n\t\n\t\n\t\n
    \n
    \n\t
    \n\t\t\n\t\t\n\t
    \n
    ')}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:43,vars:16,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom-l"],[3,"codeSnippet"],[1,"h5","u-margin-bottom"],[1,"u-margin-bottom"],[1,"a-input"],["label","time","description","Pick a time","ariaLabelHours","Hours","ariaLabelMinutes","Minutes","data-id","timepicker1","hoursPlaceholder","HH",3,"ngModel","ngModelChange"],["class","u-margin-bottom-l",4,"ngIf"],["label","time","description","Pick a time","ariaLabelHours","Hours","ariaLabelMinutes","Minutes","data-id","timepicker2","hoursPlaceholder","HH","size","small",3,"ngModel","ngModelChange"],["label","time","description","Pick a time","ariaLabelHours","Hours","ariaLabelMinutes","Minutes","data-id","timepicker3","hasError","true","hoursPlaceholder","HH","size","large",3,"ngModel","ngModelChange"],["class","u-margin-bottom",4,"ngIf"],[1,"a-input","u-margin-bottom"],["label","time","description","Pick a time","ariaLabelHours","Hours","ariaLabelMinutes","Minutes","data-id","timepicker4","hoursPlaceholder","HH",3,"ngModel","disabled","ngModelChange"],[1,"a-input__checkbox"],["id","isDisabled","type","checkbox",3,"ngModel","ngModelChange"],["for","isDisabled"],[1,"a-pre"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Timepicker"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"h4",3),i.\u0275\u0275text(5,"Basic"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",4),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",4),i.\u0275\u0275element(9,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",4)(11,"div",5)(12,"aui-timepicker",6),i.\u0275\u0275listener("ngModelChange",function(c){return r.time1=c}),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275template(13,AU,3,1,"div",7),i.\u0275\u0275elementStart(14,"h4",3),i.\u0275\u0275text(15,"Predefined hours and minutes"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(16,"div",4),i.\u0275\u0275element(17,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(18,"div",4),i.\u0275\u0275element(19,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(20,"div",4)(21,"div",5)(22,"aui-timepicker",8),i.\u0275\u0275listener("ngModelChange",function(c){return r.time2=c}),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275template(23,OU,3,1,"div",7),i.\u0275\u0275elementStart(24,"h4",3),i.\u0275\u0275text(25,"Validation"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(26,"div",4),i.\u0275\u0275element(27,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(28,"div",4)(29,"div",5)(30,"aui-timepicker",9),i.\u0275\u0275listener("ngModelChange",function(c){return r.time3=c}),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275template(31,kU,3,1,"div",10),i.\u0275\u0275elementStart(32,"h4",3),i.\u0275\u0275text(33,"Disabled"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(34,"div",4)(35,"div",11)(36,"aui-timepicker",12),i.\u0275\u0275listener("ngModelChange",function(c){return r.time4=c}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(37,"div",5)(38,"div",13)(39,"input",14),i.\u0275\u0275listener("ngModelChange",function(c){return r.isDisabled=c}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(40,"label",15),i.\u0275\u0275text(41,"Toggle disabled state"),i.\u0275\u0275elementEnd()()()(),i.\u0275\u0275template(42,FU,3,1,"div",10)),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.timepickerImportExample),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.timepickerExampleTypescript),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.timepickerExampleHTML1),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngModel",r.time1),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.time1),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.timepickerExampleTypescript2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.timepickerExampleHTML2),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngModel",r.time2),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.time2),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.timepickerExampleHTML3),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngModel",r.time3),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.time3),i.\u0275\u0275advance(5),i.\u0275\u0275property("ngModel",r.time4)("disabled",r.isDisabled),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngModel",r.isDisabled),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngIf",r.time4))},dependencies:[Tt,LU,Fe,Dr,In,Xi],encapsulation:2})),t})(),rP=(()=>{class t{static forChild(e,r,o){return{ngModule:t,providers:[{provide:Ac,useValue:e},{provide:Oc,useValue:r},{provide:FT,useValue:o}]}}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[{provide:Ac,useValue:ap},{provide:Oc,useValue:lp},{provide:FT,useValue:iP}],imports:[Ke,er,Tl,Wj,cn,ip]})),t})();const oP={allowedMimeTypes:[],allowedFileTypes:[],autoUpload:!1,maxFileSize:0,queueLimit:0,type:"drop",url:""},BT=new i.InjectionToken("uploadValidationMessages");class sP{constructor(n){_(this,"options",oP),this.setOptions(n)}setOptions(n){this.options=Object.assign({},this.options,n)}uploadFiles(n){const e=this.filesToFormData(n);return new mr.y(r=>{const o=new XMLHttpRequest;o.upload.addEventListener("progress",c=>{c.lengthComputable&&r.next({progress:c.loaded/c.total,data:null})}),o.onload=()=>{r.next({progress:1,data:o.response})},o.responseType="json",o.open("post",this.options.url),o.send(e)})}validateFiles(n){const e=[],r=[];if(n.length>0)for(const o of n){const c=[];this.validateFileType(o)||c.push("INVALID_FILE_TYPE"),this.validateFileSize(o)||c.push("INVALID_FILE_SIZE"),this.validateMimeType(o)||c.push("INVALID_MIME_TYPE"),0===c.length?e.push(o):r.push({reasons:c,file:o})}return{validFiles:e,invalidFiles:r}}filesToFormData(n){const e=new FormData;if(!this.options.url||""===this.options.url)throw new Error("Define the upload url.");for(const r of n)e.append("file",r);return e}getFileExtension(n){return n.name.split(".")[n.name.split(".").length-1]}validateFileType(n){const e=this.options.allowedFileTypes,r=this.getFileExtension(n);return!Array.isArray(e)||0===e.length||-1!==e.map(h=>h.toUpperCase()).lastIndexOf(r.toUpperCase())}validateFileSize(n){const e=this.options.maxFileSize;return!e||0===e||e>n.size}validateMimeType(n){const e=this.options.allowedMimeTypes;return!Array.isArray(e)||0===e.length||-1!==e.lastIndexOf(n.type)}}function NU(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"li"),i.\u0275\u0275element(1,"aui-icon",3),i.\u0275\u0275elementStart(2,"span",4),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"button",5),i.\u0275\u0275listener("click",function(){const c=i.\u0275\u0275restoreView(e).index,h=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(h.remove(c))}),i.\u0275\u0275element(5,"aui-icon",6),i.\u0275\u0275elementEnd()()}if(2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(e.name),i.\u0275\u0275advance(2),i.\u0275\u0275property("ariaLabel",r.ariaLabelRemove)}}function BU(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",7),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.uploadFiles())}),i.\u0275\u0275text(1,"Upload"),i.\u0275\u0275elementEnd()}}let aP=(()=>{class t{constructor(){_(this,"files",void 0),_(this,"uploader",void 0),_(this,"ariaLabelRemove","Verwijder"),_(this,"uploadedFiles",new i.EventEmitter),_(this,"uploadProgress",0)}remove(e){this.files.splice(e,1)}uploadFiles(){this.uploader.uploadFiles(this.files).subscribe(o=>{o.progress&&(this.uploadProgress=Math.floor(100*o.progress)),o.data&&(this.uploadedFiles.emit(o.data),this.files=[])})}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-upload-queue"]],inputs:{files:"files",uploader:"uploader",ariaLabelRemove:"ariaLabelRemove"},outputs:{uploadedFiles:"uploadedFiles"},decls:3,vars:2,consts:[[1,"m-upload__files","u-margin-bottom-xs"],[4,"ngFor","ngForOf"],["class","a-button","type","button",3,"click",4,"ngIf"],["name","ai-common-file-empty"],[1,"m-upload__filename"],["type","button",1,"m-upload__delete","a-button","a-button--text","a-button--neutral","a-button--s","has-icon",3,"click"],["name","ai-close",3,"ariaLabel"],["type","button",1,"a-button",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"ul",0),i.\u0275\u0275template(1,NU,6,2,"li",1),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(2,BU,2,0,"button",2)),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",r.files),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.files.length>0))},dependencies:[re,Fe,Gt],encapsulation:2})),t})();const VU=function(t){return{width:t}};let jU=(()=>{class t{constructor(){this.value=0,this.max=0}calcProgress(){return this.max>0&&this.value>0?Math.floor(this.value/this.max*100)+"%":0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.\u0275\u0275defineComponent({type:t,selectors:[["aui-progress-bar"]],inputs:{value:"value",max:"max"},decls:3,vars:5,consts:[[1,"aui-progress-bar","a-progress"],[1,"a-progress__inner"],["aria-valuemin","0","role","progressbar",1,"a-progress__bar",3,"ngStyle"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1),i.\u0275\u0275element(2,"div",2),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(2),i.\u0275\u0275property("ngStyle",i.\u0275\u0275pureFunction1(3,VU,r.calcProgress())),i.\u0275\u0275attribute("aria-valuemax",r.max)("aria-valuenow",r.value))},dependencies:[gi],encapsulation:2}),t})(),UU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({imports:[Ke]}),t})();const HU=["fileInput"];function zU(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",10)(1,"label",11),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"p",12),i.\u0275\u0275text(4),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("for",e.ariaId),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",e.label," "),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.uploadedFilesString)}}function $U(t,n){1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1,","),i.\u0275\u0275elementContainerEnd())}function GU(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275template(2,$U,2,0,"ng-container",8),i.\u0275\u0275elementContainerEnd()),2&t){const e=n.$implicit,r=n.last;i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",e.name," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r)}}function WU(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275elementStart(1,"p",13),i.\u0275\u0275template(2,GU,3,2,"ng-container",14),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(3,"aui-progress-bar",15),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(2),i.\u0275\u0275property("ngForOf",e.uploadingFiles),i.\u0275\u0275advance(1),i.\u0275\u0275property("value",e.uploadProgress)}}function ZU(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",2)(1,"div",3)(2,"div",4)(3,"input",5,6),i.\u0275\u0275listener("click",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.onFileClick(o))})("change",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.updateFiles())}),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(5,zU,5,3,"div",7),i.\u0275\u0275template(6,WU,4,2,"ng-container",8),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(7,"small",9),i.\u0275\u0275text(8),i.\u0275\u0275elementEnd()()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275classProp("is-disabled",e.disabled),i.\u0275\u0275advance(3),i.\u0275\u0275property("id",e.id),i.\u0275\u0275attribute("aria-labelledby",e.ariaId),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",!e.uploadProgress||0===e.uploadProgress),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.uploadProgress>0),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",e.description," ")}}function qU(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",16),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.triggerFile())}),i.\u0275\u0275elementStart(1,"span",17),i.\u0275\u0275projection(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"input",5,6),i.\u0275\u0275listener("click",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.onFileClick(o))})("change",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.updateFiles())}),i.\u0275\u0275elementEnd()()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("disabled",e.disabled),i.\u0275\u0275advance(1),i.\u0275\u0275property("id",e.ariaId),i.\u0275\u0275advance(2),i.\u0275\u0275property("id",e.id),i.\u0275\u0275attribute("aria-labelledby",e.ariaId)}}const YU=[[["",8,"m-upload__button"]]],QU=[".m-upload__button"];let lP=(()=>{class t{onDragOver(e){this.preventAndStop(e),this.hasDragOver=!0}onDragLeave(e){this.preventAndStop(e),this.hasDragOver=!1}onDrop(e){this.preventAndStop(e),this.hasDragOver=!1;const r=this.fileListToArray(e.dataTransfer.files);this.handleFiles(r)}constructor(e){_(this,"renderer",void 0),_(this,"fileInput",void 0),_(this,"uploader",void 0),_(this,"id",""),_(this,"accept",[]),_(this,"capture",""),_(this,"ariaId",""),_(this,"disabled",!1),_(this,"multiple",!0),_(this,"label",""),_(this,"description",""),_(this,"uploadedFiles",new i.EventEmitter),_(this,"queuedFiles",new i.EventEmitter),_(this,"invalidFiles",new i.EventEmitter),_(this,"hasDragOver",!1),_(this,"classNames",void 0),_(this,"uploadProgress",0),_(this,"uploadingFiles",void 0),_(this,"uploadedFilesString",void 0),this.renderer=e}triggerFile(){this.fileInput.nativeElement.click()}updateFiles(){const e=this.fileListToArray(this.fileInput.nativeElement.files);this.uploadedFilesString=e.map(r=>r.name).join(", "),this.handleFiles(e)}onFileClick(e){e.target.value=""}ngAfterViewInit(){!1!==this.multiple&&this.renderer.setProperty(this.fileInput.nativeElement,"multiple","multiple"),this.accept.length&&this.renderer.setProperty(this.fileInput.nativeElement,"accept",this.accept.join()),this.disabled&&this.renderer.setProperty(this.fileInput.nativeElement,"disabled","disabled"),""!==this.capture&&this.renderer.setAttribute(this.fileInput.nativeElement,"capture",this.capture)}handleFiles(e){const r=this.uploader.validateFiles(e);this.invalidFiles.emit(r.invalidFiles),this.uploader.options.autoUpload&&r.validFiles.length>0?this.uploadFiles(r.validFiles):this.queuedFiles.emit(r.validFiles)}uploadFiles(e){this.uploadProgress=0,this.uploadingFiles=e,this.uploader.uploadFiles(e).subscribe(r=>{r.progress&&(this.uploadProgress=Math.floor(100*r.progress)),r.data&&this.uploadedFiles.emit(r.data)},r=>{console.log(r)})}fileListToArray(e){return Array.from(e)}preventAndStop(e){e.preventDefault(),e.stopPropagation()}uploadedFilesToString(){return console.log("UPLOADS TO STRING"),this.fileInput.nativeElement.files.map(e=>e.name).join("")}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.Renderer2))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-upload-zone"]],viewQuery:function(e,r){if(1&e&&i.\u0275\u0275viewQuery(HU,5),2&e){let o;i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.fileInput=o.first)}},hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("dragover",function(c){return r.onDragOver(c)})("dragleave",function(c){return r.onDragLeave(c)})("drop",function(c){return r.onDrop(c)})},inputs:{uploader:"uploader",id:"id",accept:"accept",capture:"capture",ariaId:"ariaId",disabled:"disabled",multiple:"multiple",label:"label",description:"description"},outputs:{uploadedFiles:"uploadedFiles",queuedFiles:"queuedFiles",invalidFiles:"invalidFiles"},ngContentSelectors:QU,decls:2,vars:2,consts:[["class","m-upload",3,"is-disabled",4,"ngIf"],["class","a-button m-upload__button","type","button",3,"disabled","click",4,"ngIf"],[1,"m-upload"],[1,"m-upload__inner"],[1,"m-upload__dropzone"],["type","file",1,"m-upload__input",3,"id","click","change"],["fileInput",""],["class","m-upload__content",4,"ngIf"],[4,"ngIf"],[1,"m-upload__description"],[1,"m-upload__content"],[1,"m-upload__message",3,"for"],[1,"m-upload__uploads","u-text-bold"],[1,"m-upload__uploads","u-text-bold","u-margin-bottom-xs"],[4,"ngFor","ngForOf"],["max","100",3,"value"],["type","button",1,"a-button","m-upload__button",3,"disabled","click"],[3,"id"]],template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(YU),i.\u0275\u0275template(0,ZU,9,7,"div",0),i.\u0275\u0275template(1,qU,5,4,"button",1)),2&e&&(i.\u0275\u0275property("ngIf","drop"===r.uploader.options.type),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf","button"===r.uploader.options.type))},dependencies:[re,Fe,jU],encapsulation:2})),t})(),uP=(()=>{class t{constructor(e){_(this,"initValues",void 0),_(this,"INVALID_FILE_TYPE","INVALID_FILE_TYPE"),_(this,"INVALID_FILE_SIZE","INVALID_FILE_SIZE"),_(this,"INVALID_MIME_TYPE","INVALID_MIME_TYPE"),this.initValues=e,e.INVALID_FILE_TYPE&&(this.INVALID_FILE_TYPE=e.INVALID_FILE_TYPE),e.INVALID_FILE_SIZE&&(this.INVALID_FILE_SIZE=e.INVALID_FILE_SIZE),e.INVALID_MIME_TYPE&&(this.INVALID_MIME_TYPE=e.INVALID_MIME_TYPE)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275inject(BT))}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})();function KU(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"li",2),i.\u0275\u0275element(1,"aui-icon",3),i.\u0275\u0275elementStart(2,"span",4),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"span",5),i.\u0275\u0275text(5),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"button",6),i.\u0275\u0275listener("click",function(){const c=i.\u0275\u0275restoreView(e).index,h=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(h.remove(c))}),i.\u0275\u0275element(7,"aui-icon",7),i.\u0275\u0275elementEnd()()}if(2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(e.file.name),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(r.formatReasons(e.reasons)),i.\u0275\u0275advance(2),i.\u0275\u0275property("ariaLabel",r.ariaLabelRemove)}}let JU=(()=>{class t{constructor(e){_(this,"messagesService",void 0),_(this,"invalidFiles",[]),_(this,"ariaLabelRemove","Verwijder"),this.messagesService=e}remove(e){this.invalidFiles.splice(e,1)}formatReasons(e){const r=[];for(const o of e)r.push(this.messagesService[o]);return r.join(", ")}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(uP))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-validation-list"]],inputs:{invalidFiles:"invalidFiles",ariaLabelRemove:"ariaLabelRemove"},decls:2,vars:1,consts:[[1,"m-upload__files"],["class","is-error",4,"ngFor","ngForOf"],[1,"is-error"],["name","ai-alert-triangle"],[1,"m-upload__filename"],[1,"m-upload__error"],["type","button",1,"m-upload__delete","a-button","a-button--text","a-button--danger","a-button--s","has-icon",3,"click"],["name","ai-close",3,"ariaLabel"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"ul",0),i.\u0275\u0275template(1,KU,8,3,"li",1),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",r.invalidFiles))},dependencies:[re,Gt],encapsulation:2})),t})();function XU(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"aui-upload-queue",5),i.\u0275\u0275listener("uploadedFiles",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.onUploadedFiles(o))}),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("ariaLabelRemove",e.ariaLabelRemove)("files",e.queuedFiles)("uploader",e.uploader)}}const eH=[[["",8,"m-upload__button"]]],tH=[".m-upload__button"];let nH=(()=>{class t{constructor(){_(this,"id",""),_(this,"accept",[]),_(this,"capture",""),_(this,"ariaLabelRemove","Verwijder"),_(this,"disabled",!1),_(this,"multiple",!0),_(this,"label",""),_(this,"description",""),_(this,"options",oP),_(this,"selectUploadedFiles",new i.EventEmitter),_(this,"uploader",void 0),_(this,"ariaId",void 0),_(this,"uploadedFiles",[]),_(this,"invalidFiles",[]),_(this,"queuedFiles",[])}ngOnInit(){this.id||(this.ariaId="aui-upload-"+Math.random().toString(36).substring(2),this.id=this.ariaId),this.uploader=new sP(this.options)}onUploadedFiles(e){this.uploadedFiles=this.uploadedFiles.concat(e),this.selectUploadedFiles.emit(this.uploadedFiles)}onInvalidFiles(e){this.invalidFiles=e}onQueuedFiles(e){this.queuedFiles=this.queuedFiles.concat(e)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-upload"]],inputs:{id:"id",accept:"accept",capture:"capture",ariaLabelRemove:"ariaLabelRemove",disabled:"disabled",multiple:"multiple",label:"label",description:"description",options:"options"},outputs:{selectUploadedFiles:"selectUploadedFiles"},ngContentSelectors:tH,decls:6,vars:12,consts:[[1,"m-upload","aui-upload"],[3,"id","accept","capture","ariaId","disabled","multiple","uploader","label","description","invalidFiles","queuedFiles","uploadedFiles"],[1,"m-upload__button"],[3,"ariaLabelRemove","invalidFiles"],[3,"ariaLabelRemove","files","uploader","uploadedFiles",4,"ngIf"],[3,"ariaLabelRemove","files","uploader","uploadedFiles"]],template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(eH),i.\u0275\u0275elementStart(0,"div",0)(1,"aui-upload-zone",1),i.\u0275\u0275listener("invalidFiles",function(c){return r.onInvalidFiles(c)})("queuedFiles",function(c){return r.onQueuedFiles(c)})("uploadedFiles",function(c){return r.onUploadedFiles(c)}),i.\u0275\u0275elementStart(2,"div",2),i.\u0275\u0275projection(3),i.\u0275\u0275elementEnd()(),i.\u0275\u0275element(4,"aui-validation-list",3),i.\u0275\u0275template(5,XU,1,3,"aui-upload-queue",4),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("id",r.id)("accept",r.accept)("capture",r.capture)("ariaId",r.ariaId)("disabled",r.disabled)("multiple",r.multiple)("uploader",r.uploader)("label",r.label)("description",r.description),i.\u0275\u0275advance(3),i.\u0275\u0275property("ariaLabelRemove",r.ariaLabelRemove)("invalidFiles",r.invalidFiles),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!(null!=r.options&&r.options.autoUpload)))},dependencies:[Fe,aP,lP,JU],styles:[".m-upload__button[_ngcontent-%COMP%] > .m-upload__input[_ngcontent-%COMP%]{display:none}"]})),t})(),cP=(()=>{class t{static forChild(e={}){return{ngModule:t,providers:[{provide:BT,useValue:e}]}}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[uP,{provide:BT,useValue:{}}],imports:[Ke,UU,er,cn]})),t})();function iH(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",14)(1,"ul",15)(2,"li",16),i.\u0275\u0275element(3,"aui-icon",17),i.\u0275\u0275elementStart(4,"span",18),i.\u0275\u0275text(5),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"span",19),i.\u0275\u0275text(7,"This file extension is not allowed."),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"button",20),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.reloadErrors())}),i.\u0275\u0275element(9,"aui-icon",21),i.\u0275\u0275elementEnd()()()()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate(e.fileName)}}let rH=(()=>{class t{constructor(){_(this,"files",[]),_(this,"accept",["image/*"]),_(this,"capture","environment"),_(this,"invalidFiles",[]),_(this,"queuedFiles",[]),_(this,"uploadedFiles",[]),_(this,"uploader",new sP({allowedFileTypes:["jpg","jpeg","png"],type:"drop"})),_(this,"showError",!1),_(this,"fileName",""),_(this,"dropzone1",{allowedMimeTypes:["image/jpeg","image/gif","image/png"],maxFileSize:1e7,queueLimit:2,type:"drop"}),_(this,"dropzone2",{type:"button",allowedFileTypes:[".jpg","jpeg","png"],autoUpload:!0,maxFileSize:2e6}),_(this,"uploadImportExample","import { UploadModule } from '@acpaas-ui/ngx-forms';\n\n@NgModule({\n\timports: [\n\t\tUploadModule,\n\t]\n});\n\nexport class AppModule {};"),_(this,"uploadExampleJS1","public accept = ['image/*'];\npublic dropzone1: UploadOptions = {\n\tallowedMimeTypes: ['image/jpeg', 'image/gif', 'image/png'],\n\tmaxFileSize: 10000000,\n\tqueueLimit: 2,\n\ttype: 'drop',\n\turl: 'api/upload',\n};"),_(this,"uploadExampleHTML1",'\n\n'),_(this,"uploadExampleJS2","public dropzone2: UploadOptions = {\n\ttype: 'button',\n\tallowedFileTypes: ['.jpg', 'jpeg', 'png'],\n\tautoUpload: true,\n\tmaxFileSize: 2000000,\n\turl: 'api/upload',\n};"),_(this,"uploadExampleHTML2",'\n\t
    \n\t\tSelect your files to upload\n\t
    \n'),_(this,"uploadExampleJS3","public files = [];\npublic invalidFiles: InvalidFile[] = [];\npublic queuedFiles: File[] = [];\npublic uploadedFiles: File[] = [];\n// Pass created options into new instance of Uploader\npublic uploader = new Uploader({\n\tallowedFileTypes: ['jpg', 'jpeg', 'png'],\n\ttype: 'drop',\n\turl: 'api/upload',\n});\npublic showError = false;\npublic fileName = '';\npublic capture = 'environment';\n});"),_(this,"uploadExampleJS4","public onQueuedFiles(files: File[]) {\n\tif (!files.length) {\n\t\treturn;\n\t}\n\n\tthis.queuedFiles = this.queuedFiles.concat(files);\n}\n\npublic onUploadedFiles(files) {\n\tthis.uploadedFiles = this.uploadedFiles.concat(files);\n}\n\npublic onInvalidFiles(errorFiles: InvalidFile[]) {\n\tthis.invalidFiles = errorFiles;\n\tif (errorFiles.length > 0) {\n\t\tthis.fileName = this.invalidFiles[0]['file'].name;\n\t\tthis.showError = true;\n\t\tthis.invalidFiles = [];\n\t} else {\n\t\tthis.showError = false;\n\t}\n}\n\npublic reloadErrors() {\n\tthis.showError = false;\n\tif (!this.queuedFiles.length) {\n\t\treturn;\n\t}\n}\n\n/**\n* Using the uploader url option\n*/\n\npublic uploadFiles(): void {\n// Upload files returns an obervable\nthis.uploader.uploadFiles(this.queuedFiles).subscribe(\n\t(response) => {\n\t\t// Response has a progress property to use with a progress bar\n\t\tif (response.progress) {\n\t\t\tconsole.log('response.progress = ', response.progress);\n\t\t}\n\t\t// Response had a data property with an array of uploaded files: UploadedFile[]\n\t\tif (response.data) {\n\t\t\tconsole.log('response.data = ', response.data);\n\t\t}\n\t\tthis.uploadedFiles = response.data;\n\t},\n\t(err) => {\n\t\tconsole.log('HTTP Error', err);\n\t});\n}\n\n/**\n * Using a custom upload service\n */\n\npublic uploadFiles(): void {\n\tif (!this.queuedFiles.length) {\n\t\treturn;\n\t}\n\tthis.customService.postFile(this.queuedFiles).subscribe(res => {\n\t\tthis.result = res;\n\t}, (error) => {\n\t\tconsole.log(error);\n\t});\n}"),_(this,"uploadExampleSCSS","// don't display the default upload button\n::ng-deep .a-upload-queue__wrapper {\n\t.a-button {\n\t\tdisplay: none;\n\t}\n}"),_(this,"uploadExampleHTML3",'\n\n\n
    \n
      \n
    • \n \n {{ fileName }}\n This file extension is not allowed.\n \n \n \n
    • \n
    \n
    ')}onUpload(e){this.files=this.files.concat(e)}onQueuedFiles(e){e.length&&(this.queuedFiles=this.queuedFiles.concat(e))}onUploadedFiles(e){this.uploadedFiles=this.uploadedFiles.concat(e)}onInvalidFiles(e){this.invalidFiles=e,e.length>0?(this.fileName=this.invalidFiles[0].file.name,this.showError=!0,this.invalidFiles=[]):this.showError=!1}reloadErrors(){this.showError=!1}uploadFiles(){this.uploader.uploadFiles(this.queuedFiles).subscribe(e=>{e.progress&&console.log("response.progress = ",e.progress),e.data&&console.log("response.data = ",e.data),this.uploadedFiles=e.data},e=>{console.log("HTTP Error",e)})}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:42,vars:17,consts:[[1,"h4","u-margin-bottom"],[1,"m-alert","u-margin-bottom"],[1,"u-margin-bottom-l"],[3,"codeSnippet"],[1,"h5","u-margin-bottom"],[1,"u-margin-bottom"],["for","my-upload",1,"a-input__label"],["data-id","my-upload","label","Drag your files here or click upload","description","Optional description message",3,"options","accept","selectUploadedFiles"],[3,"options","selectUploadedFiles"],[1,"m-upload__button"],["ariaId","my-other-upload","multiple","false","label","Drag your files here or click to upload","description","Maximum filesize: 10 MB, File extension: jps, jpeg, png",3,"uploader","capture","invalidFiles","queuedFiles","uploadedFiles"],[1,"a-upload-queue__wrapper",3,"files"],["class","m-upload u-margin-bottom",4,"ngIf"],["id","uploadButton","type","button",1,"a-button",3,"disabled","click"],[1,"m-upload","u-margin-bottom"],[1,"m-upload__files"],[1,"is-error"],["name","ai-alert-triangle"],[1,"m-upload__filename"],[1,"m-upload__error"],["type","button",1,"m-upload__delete","a-button","a-button--text","a-button--danger","a-button--s","has-icon",3,"click"],["name","ai-close","ariaLabel","Remove"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Upload"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1)(3,"p"),i.\u0275\u0275text(4,"The following examples only have a visual purpose since they don't have a backend to talk to."),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(5,"div",2),i.\u0275\u0275element(6,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(7,"h4",4),i.\u0275\u0275text(8,"Basic upload"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(9,"div",5),i.\u0275\u0275element(10,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(11,"div",5),i.\u0275\u0275element(12,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(13,"div",2)(14,"label",6),i.\u0275\u0275text(15,"Upload files"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(16,"aui-upload",7),i.\u0275\u0275listener("selectUploadedFiles",function(c){return r.onUpload(c)}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(17,"h4",4),i.\u0275\u0275text(18,"Upload as a button"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(19,"div",5),i.\u0275\u0275element(20,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(21,"div",5),i.\u0275\u0275element(22,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(23,"div",2)(24,"aui-upload",8),i.\u0275\u0275listener("selectUploadedFiles",function(c){return r.onUpload(c)}),i.\u0275\u0275elementStart(25,"div",9),i.\u0275\u0275text(26,"Select your files to upload"),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(27,"h4",4),i.\u0275\u0275text(28,"Custom upload"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(29,"div",5),i.\u0275\u0275element(30,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(31,"div",5),i.\u0275\u0275element(32,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(33,"div",5),i.\u0275\u0275element(34,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(35,"div",5),i.\u0275\u0275element(36,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(37,"aui-upload-zone",10),i.\u0275\u0275listener("invalidFiles",function(c){return r.onInvalidFiles(c)})("queuedFiles",function(c){return r.onQueuedFiles(c)})("uploadedFiles",function(c){return r.onUploadedFiles(c)}),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(38,"aui-upload-queue",11),i.\u0275\u0275template(39,iH,10,1,"div",12),i.\u0275\u0275elementStart(40,"button",13),i.\u0275\u0275listener("click",function(){return r.uploadFiles()}),i.\u0275\u0275text(41," Send\n"),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(6),i.\u0275\u0275property("codeSnippet",r.uploadImportExample),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.uploadExampleJS1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.uploadExampleHTML1),i.\u0275\u0275advance(4),i.\u0275\u0275property("options",r.dropzone1)("accept",r.accept),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.uploadExampleJS2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.uploadExampleHTML2),i.\u0275\u0275advance(2),i.\u0275\u0275property("options",r.dropzone2),i.\u0275\u0275advance(6),i.\u0275\u0275property("codeSnippet",r.uploadExampleJS3),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.uploadExampleJS4),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.uploadExampleSCSS),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.uploadExampleHTML3),i.\u0275\u0275advance(1),i.\u0275\u0275property("uploader",r.uploader)("capture",r.capture),i.\u0275\u0275advance(1),i.\u0275\u0275property("files",r.queuedFiles),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.showError),i.\u0275\u0275advance(1),i.\u0275\u0275property("disabled",0===r.queuedFiles.length))},dependencies:[Tt,Bl,nH,aP,lP,Fe],encapsulation:2})),t})(),oH=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:3,vars:0,consts:[[1,"h3","u-margin-bottom"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Layout"),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(2,"router-outlet"))},dependencies:[qs],encapsulation:2})),t})(),dP=(()=>{class t{constructor(){_(this,"domain",void 0),_(this,"currentYear",(new Date).getFullYear())}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-copyright"]],inputs:{domain:"domain"},decls:2,vars:2,template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"span"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate2("\xa9 ",r.currentYear," ",r.domain,""))},encapsulation:2,changeDetection:0})),t})(),VT=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275dir",i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFooterContent",""]]})),t})();const sH=[[["","auiFooterContent",""]],[["","auiFooterBottom",""]]],aH=function(t){return{extended:t}},lH=["[auiFooterContent]","[auiFooterBottom]"];let hP=(()=>{class t{constructor(e){_(this,"ref",void 0),_(this,"footerContent",void 0),_(this,"isExtended",!1),this.ref=e}ngAfterContentChecked(){const e=void 0!==this.footerContent;e!==this.isExtended&&(this.isExtended=e,this.ref.markForCheck())}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ChangeDetectorRef))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-footer"]],contentQueries:function(e,r,o){if(1&e&&i.\u0275\u0275contentQuery(o,VT,7),2&e){let c;i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.footerContent=c.first)}},ngContentSelectors:lH,decls:3,vars:3,consts:[[1,"aui-footer",3,"ngClass"]],template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(sH),i.\u0275\u0275elementStart(0,"footer",0),i.\u0275\u0275projection(1),i.\u0275\u0275projection(2,1),i.\u0275\u0275elementEnd()),2&e&&i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(1,aH,r.isExtended))},dependencies:[ze],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})),t})();const uH=["*"];let fP=(()=>{class t{constructor(){_(this,"ariaGoUpLabel","Ga terug naar boven")}goToTop(){window.scrollTo(0,0)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-subfooter"]],inputs:{ariaGoUpLabel:"ariaGoUpLabel"},ngContentSelectors:uH,decls:5,vars:1,consts:[[1,"o-footer"],[1,"o-footer__label"],["type","button",1,"o-footer__button","a-button","a-button--secondary","has-icon",3,"click"],["name","ai-arrow-up-1"]],template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"div",0)(1,"div",1),i.\u0275\u0275projection(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"button",2),i.\u0275\u0275listener("click",function(){return r.goToTop()}),i.\u0275\u0275element(4,"aui-icon",3),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275attribute("aria-label",r.ariaGoUpLabel))},dependencies:[Gt],encapsulation:2,changeDetection:0})),t})(),pP=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275dir",i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFooterBottom",""]]})),t})(),cH=(()=>{class t{constructor(){_(this,"footer1","import { FooterModule } from '@acpaas-ui/ngx-layout';\n\n@NgModule({\n\timports: [\n\t\tFooterModule,\n\t]\n});\n\nexport class AppModule {};"),_(this,"footer2",'\n\t
    \n\t\t
    \n\t\t\tFooter content goes here\n\t\t
    \n\t\t
    \n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
    \n\t
    \n
    ')}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:14,vars:2,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom-3xl"],["isExtended","false"],[1,"u-margin-bottom","u-margin-top"],["auiFooterContent",""],["auiFooterBottom",""],["domain","Digipolis"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Footer"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",3)(7,"aui-footer",4)(8,"div",5)(9,"div",6),i.\u0275\u0275text(10,"Footer content goes here"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(11,"div",7)(12,"aui-subfooter"),i.\u0275\u0275element(13,"aui-copyright",8),i.\u0275\u0275elementEnd()()()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.footer1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.footer2))},dependencies:[dP,hP,fP,pP,VT,Tt],encapsulation:2})),t})(),dH=(()=>{class t{constructor(){_(this,"header1","import { HeaderModule } from '@acpaas-ui/ngx-layout';\n\n@NgModule({\n\timports: [\n\t\tHeaderModule,\n\t]\n});\n\nexport class AppModule {};"),_(this,"header2",'\n\t
    \n\t\t\n\t
    \n\t
    \x3c!-- Optional --\x3e
    \n\t
    \n\n')}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:10,vars:2,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom-3xl"],[1,"m-alert"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Header"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",3)(7,"div",4)(8,"p"),i.\u0275\u0275text(9,"The header on this page is a working example of the demo code."),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.header1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.header2))},dependencies:[Tt],encapsulation:2})),t})();class mP{constructor(n){_(this,"modalService",void 0),_(this,"ref",null),this.modalService=n}closeModal(){this.modalService.closeModal(this.ref)}}var pH=function(){try{var t=Pc(Object,"defineProperty");return t({},"",{}),t}catch{}}();const gP=pH,_P=function mH(t,n,e){"__proto__"==n&&gP?gP(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e};var _H=Object.prototype.hasOwnProperty;const vP=function vH(t,n,e){var r=t[n];(!_H.call(t,n)||!NC(r,e)||void 0===e&&!(n in t))&&_P(t,n,e)},o0=function yH(t,n,e,r){var o=!e;e||(e={});for(var c=-1,h=n.length;++c{class t{constructor(e){_(this,"ref",void 0),_(this,"mouseDownInsideOverlay",void 0),_(this,"theme","dark"),_(this,"title","Modal"),_(this,"modal",void 0),this.ref=e}get overlayClass(){return`m-overlay m-overlay--${this.theme} is-active`}get ariaLabel(){return this.title}mouseDownHandler(e){const r=this.ref.nativeElement.querySelector(".m-modal");this.mouseDownInsideOverlay=r&&(e.target===r||r.contains(e.target))}mouseUpHandler(e){const r=this.ref.nativeElement.querySelector(".m-modal");r&&(e.target===r||r.contains(e.target))||this.mouseDownInsideOverlay||this.modal.instance.closeModal()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ElementRef))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-modal-overlay"]],hostVars:3,hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("touchstart",function(c){return r.mouseDownHandler(c)})("mousedown",function(c){return r.mouseDownHandler(c)})("touchend",function(c){return r.mouseUpHandler(c)})("mouseup",function(c){return r.mouseUpHandler(c)}),2&e&&(i.\u0275\u0275attribute("aria-label",r.ariaLabel),i.\u0275\u0275classMap(r.overlayClass))},ngContentSelectors:y4,decls:2,vars:0,template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"section"),i.\u0275\u0275projection(1),i.\u0275\u0275elementEnd())},encapsulation:2})),t})(),a0=(()=>{class t{constructor(e,r,o){_(this,"injector",void 0),_(this,"resolver",void 0),_(this,"appRef",void 0),_(this,"activeModals",[]),this.injector=e,this.resolver=r,this.appRef=o}openModal(e,r,o,c={}){const h=this.createRef(e);h.instance.ref=h,h.instance.modalData=function m4(t){return h4(t,5)}(r),h.instance.modalActions=o;const y=this.createRef(b4,[[h.location.nativeElement]]);return y.instance.modal=h,y.instance.title=h.instance.modalData&&h.instance.modalData.title?h.instance.modalData.title:"Modal",y.instance.theme=c.theme||"dark",this.activeModals.push({modal:h,overlay:y}),this.appendRefs(y),h}closeModal(e){const r=this.activeModals.findIndex(c=>c.modal===e);if(r<0)return;const o=this.activeModals[r];o.modal.destroy(),o.overlay.destroy(),this.activeModals.splice(r,1)}closeLast(){const e=function _4(t){var n=null==t?0:t.length;return n?t[n-1]:void 0}(this.activeModals);e&&this.closeModal(e.modal)}createRef(e,r){const c=this.resolver.resolveComponentFactory(e).create(this.injector,r);return this.appRef.attachView(c.hostView),c.onDestroy(()=>this.appRef.detachView(c.hostView)),c}appendRefs(...e){const r=Bi(this.appRef,"components[0].location.nativeElement",null);r&&e.forEach(o=>{r.appendChild(o.location.nativeElement)})}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275inject(i.Injector),i.\u0275\u0275inject(i.ComponentFactoryResolver),i.\u0275\u0275inject(i.ApplicationRef))}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})(),w4=(()=>{class t extends mP{constructor(e){super(e),_(this,"modalService",void 0),_(this,"modalData",void 0),this.modalService=e}submitAndCloseModal(){console.log("Submit!"),this.closeModal()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(a0))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-modal"]],features:[i.\u0275\u0275InheritDefinitionFeature],decls:15,vars:2,consts:[["role","dialog","aria-modal","true","aria-labelledby","myModalTitle","aria-describedby","myModelDesc",1,"m-modal"],[1,"m-modal__content"],[1,"m-modal__header","u-margin-bottom-xs"],["type","button",1,"m-modal__close","a-button","a-button--text","a-button--neutral","has-icon",3,"click"],["name","ai-close"],["id","myModalTitle"],[1,"u-margin-bottom"],["id","myModelDesc"],[1,"m-modal__footer"],["type","button",1,"a-button",3,"click"],["type","button",1,"a-button","a-button--outlined",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),i.\u0275\u0275listener("click",function(){return r.closeModal()}),i.\u0275\u0275element(4,"aui-icon",4),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(5,"h6",5),i.\u0275\u0275text(6),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(7,"div",6)(8,"p",7),i.\u0275\u0275text(9),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(10,"div",8)(11,"button",9),i.\u0275\u0275listener("click",function(){return r.submitAndCloseModal()}),i.\u0275\u0275text(12,"Close Modal"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(13,"button",10),i.\u0275\u0275listener("click",function(){return r.closeModal()}),i.\u0275\u0275text(14,"Cancel"),i.\u0275\u0275elementEnd()()()()),2&e&&(i.\u0275\u0275advance(6),i.\u0275\u0275textInterpolate(r.modalData.title),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(r.modalData.text))},dependencies:[Bl],encapsulation:2})),t})();const C4=["titleContainer"];let D4=(()=>{class t extends mP{constructor(e){super(e),_(this,"modalService",void 0),_(this,"titleContainer",void 0),_(this,"modalData",void 0),_(this,"modalActions",void 0),_(this,"titleId",void 0),_(this,"descId",void 0),_(this,"closeButtonAriaLabel","Sluiten"),_(this,"headerElement",void 0),_(this,"headerTag","h4"),_(this,"headerTags",{h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"}),this.modalService=e}ngOnInit(){this.titleId="aui-modal-"+Math.random().toString(36).substring(2),this.descId="aui-modal-"+Math.random().toString(36).substring(2),this.modalData=this.modalData||{question:"Vraag?",description:"Beschrijving\u2026",approve:"OK",reject:"Annuleren",closeButtonAriaLabel:"Sluiten",headerTag:"h4"},this.header(this.headerTags[this.modalData.headerTag||this.headerTag])}submit(){this.verifyAction("approve").then(()=>this.closeModal())}close(){this.verifyAction("reject").then(()=>this.closeModal())}verifyAction(e){return Bi(this.modalActions,e)?this.modalActions[e]():Promise.resolve()}header(e){this.headerElement=document.createElement(e),this.headerElement.id=this.titleId,this.headerElement.innerHTML=this.modalData.question,this.titleContainer.nativeElement.appendChild(this.headerElement)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(a0))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-approve-modal"]],viewQuery:function(e,r){if(1&e&&i.\u0275\u0275viewQuery(C4,7),2&e){let o;i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.titleContainer=o.first)}},features:[i.\u0275\u0275InheritDefinitionFeature],decls:14,vars:8,consts:[["aria-modal","true","role","dialog",1,"m-modal"],[1,"m-modal__content"],[1,"m-modal__header","u-margin-bottom-xs"],["titleContainer",""],["type","button",1,"m-modal__close","a-button","a-button--text","a-button--neutral","has-icon",3,"click"],["name","ai-close",3,"ariaLabel"],[1,"u-margin-bottom"],[3,"id"],[1,"m-modal__footer"],["type","button",1,"a-button",3,"click"],["type","button",1,"a-button","a-button--outlined",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2,3)(4,"button",4),i.\u0275\u0275listener("click",function(){return r.close()}),i.\u0275\u0275element(5,"aui-icon",5),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(6,"div",6)(7,"p",7),i.\u0275\u0275text(8),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(9,"div",8)(10,"button",9),i.\u0275\u0275listener("click",function(){return r.close()}),i.\u0275\u0275text(11),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"button",10),i.\u0275\u0275listener("click",function(){return r.submit()}),i.\u0275\u0275text(13),i.\u0275\u0275elementEnd()()()()),2&e&&(i.\u0275\u0275attribute("aria-describedby",r.descId)("aria-labelledby",r.titleId),i.\u0275\u0275advance(4),i.\u0275\u0275attribute("aria-label",r.modalData.closeButtonAriaLabel||r.closeButtonAriaLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ariaLabel",r.modalData.reject),i.\u0275\u0275advance(2),i.\u0275\u0275property("id",r.descId),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(r.modalData.description),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(r.modalData.reject),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(r.modalData.approve))},dependencies:[Gt],encapsulation:2})),t})(),S4=(()=>{class t{constructor(e){_(this,"modalService",void 0),_(this,"modal1",'import { Component, Input } from \'@angular/core\';\nimport { ModalAbstract, ModalService } from \'@acpaas-ui/ngx-layout\';\n\n@Component({\n selector: \'aui-modal\',\n template: ``,\n})\nexport class AUIDemoModalComponent extends ModalAbstract {\n public modalData: any;\n\n constructor(\n public modalService: ModalService\n ) {\n super(modalService);\n }\n\n public submitAndCloseModal() {\n console.log(\'Submit!\');\n this.closeModal();\n }\n}\n'),_(this,"modal2","constructor(\n private modalService: ModalService\n) {}\n\npublic openModal() {\n this.modalService.openModal(\n AUIDemoModalComponent,\n {\n title: 'Modal demo',\n text: 'Are you sure you want to see a demo of this modal?',\n }, {\n confirm: () => this.doSomething(),\n }\n );\n}\n\nprivate doSomething() {\n return new Promise((resolve, reject) => {\n return resolve();\n });\n}"),_(this,"modal3",''),_(this,"modal4","import { ApproveModalComponent } from '@acpaas-ui/ngx-layout';"),_(this,"modal5","public openApproveModal() {\n this.modalService.openModal(ApproveModalComponent, {\n question: 'Are you sure you want to close this demo modal?',\n description: 'This action can be undone.',\n approve: 'Close demo modal',\n reject: 'Cancel'\n }, {\n approve: () => this.doSomething(),\n reject: () => this.doSomethingElse()\n });\n\n private doSomething() {\n return new Promise((resolve, reject) => {\n return resolve();\n });\n }\n\n private doSomethingElse() {\n return new Promise((resolve, reject) => {\n return resolve();\n });\n }\n}"),_(this,"modal6",''),this.modalService=e}openModal(){this.modalService.openModal(w4,{title:"Modal demo",text:"Are you sure you want to see a demo of this modal?"},{confirm:()=>this.doSomething()})}openApproveModal(){this.modalService.openModal(D4,{question:"Are you sure you want to close this demo modal?",description:"This action can be undone.",approve:"Close demo modal",reject:"Cancel",closeButtonAriaLabel:"Sluiten",headerTag:"h6"},{approve:()=>this.doSomething(),reject:()=>this.doSomethingElse()})}doSomething(){return new Promise((e,r)=>e(null))}doSomethingElse(){return new Promise((e,r)=>e(null))}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(a0))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:34,vars:6,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom-l"],["type","button",1,"a-button",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Modal"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1)(3,"p"),i.\u0275\u0275text(4,"First, create a separate modal controller."),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(5,"div",1),i.\u0275\u0275element(6,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(7,"div",1)(8,"p"),i.\u0275\u0275text(9,"Then, integrate the modal into your page."),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(10,"div",1),i.\u0275\u0275element(11,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"div",1),i.\u0275\u0275element(13,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(14,"div",3)(15,"button",4),i.\u0275\u0275listener("click",function(){return r.openModal()}),i.\u0275\u0275text(16,"Open modal"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(17,"h3",0),i.\u0275\u0275text(18,"Approve modal"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(19,"div",1)(20,"p"),i.\u0275\u0275text(21,"In your controller:"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(22,"div",1),i.\u0275\u0275element(23,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(24,"div",1),i.\u0275\u0275element(25,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(26,"div",1)(27,"p"),i.\u0275\u0275text(28,"In your template:"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(29,"div",1),i.\u0275\u0275element(30,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(31,"div",1)(32,"button",4),i.\u0275\u0275listener("click",function(){return r.openApproveModal()}),i.\u0275\u0275text(33,"Open approve modal"),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(6),i.\u0275\u0275property("codeSnippet",r.modal1),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.modal2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.modal3),i.\u0275\u0275advance(10),i.\u0275\u0275property("codeSnippet",r.modal4),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.modal5),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.modal6))},dependencies:[Tt],encapsulation:2})),t})(),E4=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:3,vars:0,consts:[[1,"h3","u-margin-bottom"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Utils"),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(2,"router-outlet"))},dependencies:[qs],encapsulation:2})),t})(),OP=(()=>{class t{filterData(e,r){return r.forEach(o=>{e=o.parseData(e)}),e}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})(),kP=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[OP],imports:[Ke,cn,er,Tl]})),t})();class HT{constructor(){_(this,"id",void 0),_(this,"name",void 0),_(this,"options",void 0),_(this,"value",void 0),_(this,"parse",void 0)}parseData(n){return this.parse(n,this.value)}}const FP=(t,n)=>{if(!n)return t;const r=new RegExp(`%{(${Object.keys(n).map(o=>o.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")).join("|")})}`,"g");return t.replace(r,(o,c)=>n[c]?String(n[c]):"")};let RP=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({})),t})();const NP=new i.InjectionToken("WindowToken");class zT{get nativeWindow(){throw new Error("Not implemented.")}}const I4={provide:NP,useFactory:function x4(t,n){return Vo(n)?t.nativeWindow:{}},deps:[zT,i.PLATFORM_ID]},P4=[{provide:zT,useClass:class T4 extends zT{constructor(){super()}get nativeWindow(){return window}}},I4];let BP=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[P4]})),t})();function L4(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"li",3)(1,"form",4)(2,"div",5)(3,"div",6),i.\u0275\u0275element(4,"input",7),i.\u0275\u0275elementStart(5,"label",8),i.\u0275\u0275text(6),i.\u0275\u0275elementEnd()()()()()),2&t){const e=n.$implicit,r=n.index,o=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("formGroup",o.form),i.\u0275\u0275advance(3),i.\u0275\u0275property("formControl",e)("id",o.filter.options[r].id)("name",o.filter.options[r].name),i.\u0275\u0275advance(1),i.\u0275\u0275property("for",o.filter.options[r].id),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(o.filter.options[r].name)}}function A4(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"ul",1),i.\u0275\u0275template(1,L4,7,6,"li",2),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e.options.controls)}}let O4=(()=>{class t{constructor(e){_(this,"formBuilder",void 0),_(this,"filter",void 0),_(this,"update",new i.EventEmitter),_(this,"form",void 0),_(this,"value",void 0),_(this,"destroy$",new vt.xQ),this.formBuilder=e}ngOnInit(){this.form=this.formBuilder.group({options:this.buildCheckboxes(this.filter.options)}),this.filter&&(this.value=this.filter.value),this.options.valueChanges.pipe((0,Xe.U)(e=>e.map((r,o)=>!0===r?this.filter.options[o]:null)),(0,Xe.U)(e=>e.filter(r=>null!==r)),$t(e=>this.value=e),$t(e=>this.update.next(e)),Bn(this.destroy$)).subscribe()}buildCheckboxes(e){return new Sl([...e.map(r=>this.formBuilder.control(r.checked))])}get options(){return this.form.get("options")}onFilter(e){this.update.emit(e)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(El))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-checkbox-filter"]],inputs:{filter:"filter"},outputs:{update:"update"},decls:1,vars:1,consts:[["class","a-checkbox-list aui-checkbox-filter",4,"ngIf"],[1,"a-checkbox-list","aui-checkbox-filter"],["class","a-checkbox-list__item",4,"ngFor","ngForOf"],[1,"a-checkbox-list__item"],[3,"formGroup"],[1,"a-input","a-checkbox-list__checkbox"],[1,"a-input__checkbox"],["type","checkbox",3,"formControl","id","name"],[3,"for"]],template:function(e,r){1&e&&i.\u0275\u0275template(0,A4,2,1,"ul",0),2&e&&i.\u0275\u0275property("ngIf",r.filter&&r.filter.options&&r.filter.id)},dependencies:[re,Fe,Vh,Dr,In,Ku,Do,ss],encapsulation:2})),t})();function k4(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275elementStart(1,"div",2)(2,"input",3),i.\u0275\u0275listener("ngModelChange",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.onFilter(o.value))})("ngModelChange",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.value=o)}),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(3,"aui-icon",4),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementContainerEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275property("ngModel",e.value)("id",e.filter.id)("placeholder",e.filter.name),i.\u0275\u0275attribute("aria-label",e.filter.name)}}let F4=(()=>{class t{constructor(){_(this,"filter",void 0),_(this,"update",new i.EventEmitter),_(this,"value",void 0)}ngOnInit(){this.filter&&(this.value=this.filter.value)}onFilter(e){this.update.emit(e)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-input-filter"]],inputs:{filter:"filter"},outputs:{update:"update"},decls:2,vars:1,consts:[[1,"a-input","has-icon-right","aui-input-filter"],[4,"ngIf"],[1,"a-input__wrapper"],["type","text",3,"ngModel","id","placeholder","ngModelChange"],["name","ai-search"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,k4,4,4,"ng-container",1),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.filter))},dependencies:[Fe,Gt,Si,In,Xi],encapsulation:2})),t})();function R4(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"option",7),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;i.\u0275\u0275property("value",e.id),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.name)}}function N4(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275elementStart(1,"label",2),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"div",3)(4,"select",4),i.\u0275\u0275template(5,R4,2,2,"option",5),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(6,"aui-icon",6),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("for",e.filter.id),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("",e.filter.name,": "),i.\u0275\u0275advance(2),i.\u0275\u0275property("formControl",e.select)("id",e.filter.id)("name",e.filter.id),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e.filter.options)}}let B4=(()=>{class t{constructor(){_(this,"filter",void 0),_(this,"update",new i.EventEmitter),_(this,"select",new ic),_(this,"value",void 0),_(this,"destroy$",new vt.xQ)}ngOnInit(){this.filter&&this.filter.value&&(this.value=this.filter.value,this.select.setValue(this.filter.value.id)),this.select.valueChanges.pipe((0,Xe.U)(e=>this.filter.options.find(r=>r.id===e)),$t(e=>this.update.next(e)),Bn(this.destroy$)).subscribe()}onFilter(e){this.update.emit(e)}ngOnDestroy(){this.destroy$.next(void 0),this.destroy$.complete()}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-select-filter"]],inputs:{filter:"filter"},outputs:{update:"update"},decls:2,vars:1,consts:[[1,"a-input","has-icon-right","aui-select-filter"],[4,"ngIf"],[1,"a-input__label","a-input__label--inline",3,"for"],[1,"a-input__wrapper","a-input__wrapper--inline"],[3,"formControl","id","name"],[3,"value",4,"ngFor","ngForOf"],["name","ai-arrow-down-1"],[3,"value"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,N4,7,6,"ng-container",1),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.filter&&r.filter.options&&r.filter.id))},dependencies:[re,Fe,Gt,ea,na,So,In,Do],encapsulation:2})),t})(),V4=(()=>{class t{constructor(e){_(this,"filterService",void 0),_(this,"searchFilter",new HT),_(this,"checkFilter",new HT),_(this,"selectFilter",new HT),_(this,"searchResults",[]),_(this,"checkResults",[]),_(this,"selectResults",[]),_(this,"heroList",[{id:"id1",name:"Batman"},{id:"id2",name:"Wonder Woman"},{id:"id3",name:"Wolverine"},{id:"id4",name:"Iron Man"},{id:"id5",name:"Deadpool"}]),_(this,"importModule","import { FilterModule } from '@acpaas-ui/ngx-utils';\n\n\t@NgModule({\n\t\timports: [\n\t\t\tFilterModule\n\t\t]\n\t})"),_(this,"codeExampleJS1","import { Filter, FilterService } from '@acpaas-ui/ngx-utils';\n\n\tpublic searchFilter = new Filter();\n\tpublic checkFilter = new Filter();\n\tpublic selectFilter = new Filter();\n\tpublic heroList = [\n\t\t{ id: 'id1', name: 'Batman' },\n\t\t{ id: 'id2', name: 'Wonder Woman' },\n\t\t{ id: 'id3', name: 'Wolverine' },\n\t\t{ id: 'id4', name: 'Iron Man' },\n\t\t{ id: 'id5', name: 'Deadpool' },\n\t];"),_(this,"codeExampleJS2","constructor(public filterService: FilterService) {}"),_(this,"codeExampleJS3","this.checkFilter.id = 'checkFilter';\nthis.checkFilter.name = 'Checkbox filter';\nthis.checkFilter.options = this.heroList;\nthis.checkFilter.value = [];\nthis.checkFilter.parse = (data, value) => {\n\tif (!value || value.length === 0) {\n\t\t\treturn;\n\t}\n\tconst result = [];\n\tdata.filter((o) => {\n\t\tvalue.forEach( i => {\n\t\t\tif ((o.id.toLowerCase()).indexOf(i.id.toLowerCase()) !== -1) {\n\t\t\t\tresult.push(i);\n\t\t\t}\n\t\t});\n\t});\n\treturn result;\n};\n\npublic changeCheckFilter(value) {\n\t// Update filter value\n\tthis.checkFilter.value = value;\n\t// Filter data\n\tthis.checkResults = this.filterService.filterData(this.heroList, [this.checkFilter]);\n}"),_(this,"codeExampleJS4","this.searchFilter.id = 'searchFilter';\nthis.searchFilter.name = 'Search here...';\nthis.searchFilter.value = '';\nthis.searchFilter.parse = (data, value) => {\n\tif (!value || value.length === 0) {\n\t\treturn ;\n\t\t}\n\t\treturn data.filter((o) => {\n\t\t\treturn (o.name.toLowerCase()).indexOf(value.toLowerCase()) !== -1;\n\t\t});\n};\n\npublic changeSearchFilter(value) {\n\tthis.searchFilter.value = value;\n\tthis.searchResults = this.filterService.filterData(this.heroList, [this.searchFilter]);\n}"),_(this,"codeExampleJS5","this.selectFilter.id = 'selectFilter';\nthis.selectFilter.name = 'Select your hero';\nthis.selectFilter.options = this.heroList;\nthis.selectFilter.value = [];\nthis.selectFilter.parse = (data, value) => {\n\tif (!value || value.length === 0) {\n\t\treturn;\n\t}\n\n\treturn data.filter((o) => {\n\t\treturn (o.id.toLowerCase()).indexOf(value.id.toLowerCase()) !== -1;\n\t});\n};\n\npublic changeSelectFilter(value) {\n\tthis.selectFilter.value = value;\n\tthis.selectResults = this.filterService.filterData(this.heroList, [this.selectFilter]);\n}"),_(this,"codeExampleHTML1",''),_(this,"codeExampleHTML2",''),_(this,"codeExampleHTML3",''),this.filterService=e}ngOnInit(){this.checkFilter.id="checkFilter",this.checkFilter.name="Checkbox filter",this.checkFilter.options=this.heroList,this.checkFilter.value=[],this.checkFilter.parse=(e,r)=>{if(!r||0===r.length)return;const o=[];return e.filter(c=>{r.forEach(h=>{-1!==c.id.toLowerCase().indexOf(h.id.toLowerCase())&&o.push(h)})}),o},this.searchFilter.id="searchFilter",this.searchFilter.name="Search here...",this.searchFilter.value="",this.searchFilter.parse=(e,r)=>{if(r&&0!==r.length)return e.filter(o=>-1!==o.name.toLowerCase().indexOf(r.toLowerCase()))},this.selectFilter.id="selectFilter",this.selectFilter.name="Select your hero",this.selectFilter.options=this.heroList,this.selectFilter.value=[],this.selectFilter.parse=(e,r)=>{if(r&&0!==r.length)return e.filter(o=>-1!==o.id.toLowerCase().indexOf(r.id.toLowerCase()))}}changeSearchFilter(e){this.searchFilter.value=e,this.searchResults=this.filterService.filterData(this.heroList,[this.searchFilter])}changeCheckFilter(e){this.checkFilter.value=e,this.checkResults=this.filterService.filterData(this.heroList,[this.checkFilter])}changeSelectFilter(e){this.selectFilter.value=e,this.selectResults=this.filterService.filterData(this.heroList,[this.selectFilter])}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(OP))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:44,vars:21,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"h5","u-margin-bottom"],[3,"filter","update"],[1,"a-pre","a-pre--scrollable"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Filter"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"h4",3),i.\u0275\u0275text(9,"Checkbox filter"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",1),i.\u0275\u0275element(11,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"div",1),i.\u0275\u0275element(13,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(14,"div",1)(15,"aui-checkbox-filter",4),i.\u0275\u0275listener("update",function(c){return r.changeCheckFilter(c)}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(16,"div",1)(17,"pre",5),i.\u0275\u0275text(18),i.\u0275\u0275pipe(19,"json"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(20,"h4",3),i.\u0275\u0275text(21,"Input filter"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(22,"div",1),i.\u0275\u0275element(23,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(24,"div",1),i.\u0275\u0275element(25,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(26,"div",1)(27,"aui-input-filter",4),i.\u0275\u0275listener("update",function(c){return r.changeSearchFilter(c)}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(28,"div",1)(29,"pre",5),i.\u0275\u0275text(30),i.\u0275\u0275pipe(31,"json"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(32,"h4",3),i.\u0275\u0275text(33,"Select filter"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(34,"div",1),i.\u0275\u0275element(35,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(36,"div",1),i.\u0275\u0275element(37,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(38,"div",1)(39,"aui-select-filter",4),i.\u0275\u0275listener("update",function(c){return r.changeSelectFilter(c)}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(40,"div",1)(41,"pre",5),i.\u0275\u0275text(42),i.\u0275\u0275pipe(43,"json"),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.importModule),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS2),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.codeExampleJS3),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML1),i.\u0275\u0275advance(2),i.\u0275\u0275property("filter",r.checkFilter),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind1(19,15,r.checkResults)),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.codeExampleJS4),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML2),i.\u0275\u0275advance(2),i.\u0275\u0275property("filter",r.searchFilter),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind1(31,17,r.searchResults)),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.codeExampleJS5),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML3),i.\u0275\u0275advance(2),i.\u0275\u0275property("filter",r.selectFilter),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind1(43,19,r.selectResults)))},dependencies:[Tt,O4,F4,B4,Nt],encapsulation:2})),t})(),j4=(()=>{class t{transform(e,r){return e&&"string"!=typeof e?1===r?e.singular:e.plural:e}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275pipe",i.\u0275\u0275definePipe({name:"pluralizeLabel",type:t,pure:!0})),t})(),U4=(()=>{class t{transform(e,r){return r&&e?FP(e,r):e}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275pipe",i.\u0275\u0275definePipe({name:"interpolateLabel",type:t,pure:!0})),t})(),H4=(()=>{class t{constructor(){_(this,"interpolateMessage","This %{text} requires your attention."),_(this,"interpolateString",{text:"message"}),_(this,"pluralizeMessage",{singular:"This %{text} requires your attention.",plural:"These %{text}s require your attention."}),_(this,"pluralizeMail",{singular:"This mail requires your attention.",plural:"These mails require your attention."}),_(this,"remainingMessages",{remaining:3}),_(this,"toggle",!0),_(this,"importModule","import { LabelsModule } from '@acpaas-ui/ngx-utils';\n\n@NgModule({\n\timports: [\n\t\tLabelsModule\n\t],\n})\n\nexport class AppModule {};"),_(this,"codeExampleJS1","import { Label, interpolate } from '@acpaas-ui/ngx-utils';"),_(this,"codeExampleJS2","public interpolateValue() {\n\tconst interpolatedValue = interpolate('This is number %{number} of an interpolated %{text}.', {text: 'message', number: 1});\n\treturn interpolatedValue;\n}"),_(this,"codeExampleJS3","public interpolateMessage = 'This %{text} requires your attention.';\n\npublic interpolateString = {\n\ttext: 'message',\n};"),_(this,"codeExampleJS4","public pluralizeMail: Label = {\n\tsingular: 'This mail requires your attention.',\n\tplural: 'These mails require your attention.',\n};\n\npublic get amount() { return this.toggle ? { value: 1 } : { value: 0 }; }\n\npublic toggleAmount() { this.toggle = !this.toggle; }"),_(this,"codeExampleJS5","public interpolateString = {\n\ttext: 'message',\n};\n\npublic pluralizeMessage: Label = {\n\tsingular: 'This %{text} requires your attention.',\n\tplural: 'These %{text}s require your attention.',\n};\n\npublic remainingMessages = {\n\tremaining: 3,\n};"),_(this,"codeExampleHTML1","{{ interpolateValue() }}"),_(this,"codeExampleHTML2",''),_(this,"codeExampleHTML3",'\n\n{{ pluralizeMail | pluralizeLabel:amount.value }}'),_(this,"codeExampleHTML4","{{ pluralizeMessage | pluralizeLabel:remainingMessages.remaining | interpolateLabel:interpolateString }}")}get amount(){return this.toggle?{description:"singular",value:1}:{description:"plural",value:0}}interpolateValue(){return FP("This is number %{number} of an interpolated %{text}.",{text:"message",number:1})}toggleAmount(){this.toggle=!this.toggle}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:56,vars:27,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom-l"],[1,"h5","u-margin-bottom"],[1,"u-text-bold"],[1,"a-pre","a-pre--scrollable"],[3,"innerHTML"],["type","button",1,"a-button","u-margin-bottom",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Labels"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",3),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"h4",4),i.\u0275\u0275text(7,"Interpolate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",1),i.\u0275\u0275element(9,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",1),i.\u0275\u0275element(11,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"div",3)(13,"p",5),i.\u0275\u0275text(14,"String interpolated through function:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(15,"pre",6),i.\u0275\u0275text(16),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(17,"h4",4),i.\u0275\u0275text(18,"InterpolateLabelPipe"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(19,"div",1),i.\u0275\u0275element(20,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(21,"div",1),i.\u0275\u0275element(22,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(23,"div",3)(24,"p",5),i.\u0275\u0275text(25,"String interpolated through pipe:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(26,"pre",6),i.\u0275\u0275element(27,"span",7),i.\u0275\u0275pipe(28,"interpolateLabel"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(29,"h4",4),i.\u0275\u0275text(30,"PluralizeLabelPipe"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(31,"div",1),i.\u0275\u0275element(32,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(33,"div",1),i.\u0275\u0275element(34,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(35,"button",8),i.\u0275\u0275listener("click",function(){return r.toggleAmount()}),i.\u0275\u0275text(36,"Toggle amount"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(37,"div",3)(38,"p",5),i.\u0275\u0275text(39),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(40,"pre",6),i.\u0275\u0275text(41),i.\u0275\u0275pipe(42,"pluralizeLabel"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(43,"h4",4),i.\u0275\u0275text(44,"Combine label pipes"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(45,"div",1),i.\u0275\u0275element(46,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(47,"div",1),i.\u0275\u0275element(48,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(49,"div",1)(50,"p",5),i.\u0275\u0275text(51,"Interpolated and pluralized string:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(52,"pre",6),i.\u0275\u0275text(53),i.\u0275\u0275pipe(54,"interpolateLabel"),i.\u0275\u0275pipe(55,"pluralizeLabel"),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.importModule),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS1),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.codeExampleJS2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML1),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate(r.interpolateValue()),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.codeExampleJS3),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML2),i.\u0275\u0275advance(5),i.\u0275\u0275property("innerHTML",i.\u0275\u0275pipeBind2(28,15,r.interpolateMessage,r.interpolateString),i.\u0275\u0275sanitizeHtml),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.codeExampleJS4),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML3),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate1("Interpolated string in ",r.amount.description,":"),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind2(42,18,r.pluralizeMail,r.amount.value)),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.codeExampleJS5),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML4),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind2(54,21,i.\u0275\u0275pipeBind2(55,24,r.pluralizeMessage,r.remainingMessages.remaining),r.interpolateString)))},dependencies:[Tt,j4,U4],encapsulation:2})),t})(),z4=(()=>{class t{constructor(e){_(this,"window",void 0),_(this,"importModule","import { WindowModule, WINDOW_PROVIDERS } from '@acpaas-ui/ngx-utils';\n\n@NgModule({\n\timports: [\n\t\tWindowModule\n\t],\n\tproviders: [WINDOW_PROVIDERS],\n})\n\nexport class AppModule {};"),_(this,"codeExampleJS1","import { WINDOW } from '@acpaas-ui/ngx-utils';"),_(this,"codeExampleJS2","constructor(\n\t@Inject(WINDOW) public window\n) {}"),_(this,"codeExampleHTML",'
    \n\t
    Height:
    \n\t\t
    {{ window.innerHeight }}
    \n\t
    Width:
    \n\t\t
    {{ window.innerWidth }}
    \n
    '),this.window=e}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(NP))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:25,vars:6,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom-xs"],[1,"a-definition-list","u-margin-bottom"],[1,"a-pre","a-pre--scrollable"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Window"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"p",1),i.\u0275\u0275text(3," Utility to reference the global window object indirectly.\n"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",1),i.\u0275\u0275element(9,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",1),i.\u0275\u0275element(11,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"p",3),i.\u0275\u0275text(13," These are the window's current height and width:\n"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(14,"dl",4)(15,"dt"),i.\u0275\u0275text(16,"Height:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(17,"dd")(18,"pre",5),i.\u0275\u0275text(19),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(20,"dt"),i.\u0275\u0275text(21,"Width:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(22,"dd")(23,"pre",5),i.\u0275\u0275text(24),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.importModule),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML),i.\u0275\u0275advance(8),i.\u0275\u0275textInterpolate(null==r.window?null:r.window.innerHeight),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate(null==r.window?null:r.window.innerWidth))},dependencies:[Tt],encapsulation:2})),t})();var ee=F(407),l0=window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest,Ul=""===document.documentElement.style.pointerEvents,Hl={cors:l0,pointerEvents:Ul},VP={attributionWidthOffset:55},jP=0;function u0(t){var n="";for(var e in t.f=t.f||"json",t)if(Object.prototype.hasOwnProperty.call(t,e)){var c,r=t[e],o=Object.prototype.toString.call(r);n.length&&(n+="&"),c="[object Array]"===o?"[object Object]"===Object.prototype.toString.call(r[0])?JSON.stringify(r):r.join(","):"[object Object]"===o?JSON.stringify(r):"[object Date]"===o?r.valueOf():r,n+=encodeURIComponent(e)+"="+encodeURIComponent(c)}return n}function $T(t,n){var e=new window.XMLHttpRequest;return e.onerror=function(r){e.onreadystatechange=ee.Util.falseFn,t.call(n,{error:{code:500,message:"XMLHttpRequest error"}},null)},e.onreadystatechange=function(){var r,o;if(4===e.readyState){try{r=JSON.parse(e.responseText)}catch{r=null,o={code:500,message:"Could not parse response as JSON. This could also be caused by a CORS or XMLHttpRequest error."}}!o&&r.error&&(o=r.error,r=null),e.onerror=ee.Util.falseFn,t.call(n,o,r)}},e.ontimeout=function(){this.onerror()},e}function UP(t,n,e,r){var o=$T(e,r);return o.open("POST",t),typeof r<"u"&&null!==r&&typeof r.options<"u"&&(o.timeout=r.options.timeout),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),o.send(u0(n)),o}function HP(t,n,e,r){var o=$T(e,r);return o.open("GET",t+"?"+u0(n),!0),typeof r<"u"&&null!==r&&typeof r.options<"u"&&(o.timeout=r.options.timeout,r.options.withCredentials&&(o.withCredentials=!0)),o.send(null),o}function GT(t,n,e,r){var o=u0(n),c=$T(e,r),h=(t+"?"+o).length;if(h<=2e3&&Hl.cors?c.open("GET",t+"?"+o):h>2e3&&Hl.cors&&(c.open("POST",t),c.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8")),typeof r<"u"&&null!==r&&typeof r.options<"u"&&(c.timeout=r.options.timeout,r.options.withCredentials&&(c.withCredentials=!0)),h<=2e3&&Hl.cors)c.send(null);else{if(!(h>2e3&&Hl.cors))return h<=2e3&&!Hl.cors?WT(t,n,e,r):void zl("a request to "+t+" was longer then 2000 characters and this browser cannot make a cross-domain post request. Please use a proxy https://developers.arcgis.com/esri-leaflet/api-reference/request/");c.send(o)}return c}function WT(t,n,e,r){window._EsriLeafletCallbacks=window._EsriLeafletCallbacks||{};var o="c"+jP;n.callback="window._EsriLeafletCallbacks."+o,window._EsriLeafletCallbacks[o]=function(h){if(!0!==window._EsriLeafletCallbacks[o]){var y,D=Object.prototype.toString.call(h);"[object Object]"===D||"[object Array]"===D||(y={error:{code:500,message:"Expected array or object as JSONP response"}},h=null),!y&&h.error&&(y=h,h=null),e.call(r,y,h),window._EsriLeafletCallbacks[o]=!0}};var c=ee.DomUtil.create("script",null,document.body);return c.type="text/javascript",c.src=t+"?"+u0(n),c.id=o,c.onerror=function(h){h&&!0!==window._EsriLeafletCallbacks[o]&&(e.call(r,{error:{code:500,message:"An unknown error occurred"}}),window._EsriLeafletCallbacks[o]=!0)},ee.DomUtil.addClass(c,"esri-leaflet-jsonp"),jP++,{id:o,url:c.src,abort:function(){window._EsriLeafletCallbacks._callback[o]({code:0,message:"Request aborted."})}}}var c0=Hl.cors?HP:WT;function zl(){console&&console.warn&&console.warn.apply(console,arguments)}c0.CORS=HP,c0.JSONP=WT;const d0={request:GT,get:c0,post:UP};var W4=function(n,e,r,o){var y=(o[1]-r[1])*(e[0]-n[0])-(o[0]-r[0])*(e[1]-n[1]);if(0!==y){var D=((o[0]-r[0])*(n[1]-r[1])-(o[1]-r[1])*(n[0]-r[0]))/y,x=((e[0]-n[0])*(n[1]-r[1])-(e[1]-n[1])*(n[0]-r[0]))/y;if(D>=0&&D<=1&&x>=0&&x<=1)return!0}return!1},zP=function(n,e){for(var r=0;r=0},$P=function(n){var e={};for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r]);return e},Y4=function(n,e){var r=zP(n,e),o=function(n,e){for(var r=!1,o=-1,c=n.length,h=c-1;++o=0;o--)if(Y4(e[o][0],h)){e[o].push(h),k=!0;break}k||A.push(h)}for(;A.length;){h=A.pop();var j=!1;for(o=e.length-1;o>=0;o--)if(zP(e[o][0],h)){e[o].push(h),j=!0;break}j||e.push([h.reverse()])}return 1===e.length?{type:"Polygon",coordinates:e[0]}:{type:"MultiPolygon",coordinates:e}}(n.rings.slice(0))),"number"==typeof n.xmin&&"number"==typeof n.ymin&&"number"==typeof n.xmax&&"number"==typeof n.ymax&&(r.type="Polygon",r.coordinates=[[[n.xmax,n.ymax],[n.xmin,n.ymax],[n.xmin,n.ymin],[n.xmax,n.ymin],[n.xmax,n.ymax]]]),(n.geometry||n.attributes)&&(r.type="Feature",r.geometry=n.geometry?t(n.geometry):null,r.properties=n.attributes?$P(n.attributes):null,n.attributes))try{r.id=function(n,e){for(var r=e?[e,"OBJECTID","FID"]:["OBJECTID","FID"],o=0;o=4){qT(o)||o.reverse(),e.push(o);for(var c=0;c=4&&(qT(h)&&h.reverse(),e.push(h))}}return e},e5=function t(n,e){e=e||"OBJECTID";var c,r={wkid:4326},o={};switch(n.type){case"Point":o.x=n.coordinates[0],o.y=n.coordinates[1],null!=n.coordinates[2]&&(o.z=n.coordinates[2]),o.spatialReference=r;break;case"MultiPoint":o.points=n.coordinates.slice(0),null!=n.coordinates[0][2]&&(o.hasZ=!0),o.spatialReference=r;break;case"LineString":o.paths=[n.coordinates.slice(0)],null!=n.coordinates[0][2]&&(o.hasZ=!0),o.spatialReference=r;break;case"MultiLineString":o.paths=n.coordinates.slice(0),null!=n.coordinates[0][0][2]&&(o.hasZ=!0),o.spatialReference=r;break;case"Polygon":o.rings=GP(n.coordinates.slice(0)),null!=n.coordinates[0][0][2]&&(o.hasZ=!0),o.spatialReference=r;break;case"MultiPolygon":o.rings=function(n){for(var e=[],r=0;r=0;c--){var h=o[c].slice(0);e.push(h)}return e}(n.coordinates.slice(0)),null!=n.coordinates[0][0][0][2]&&(o.hasZ=!0),o.spatialReference=r;break;case"Feature":n.geometry&&(o.geometry=t(n.geometry,e)),o.attributes=n.properties?$P(n.properties):{},n.id&&(o.attributes[e]=n.id);break;case"FeatureCollection":for(o=[],c=0;c=0;h--){var y=ZP(r[h],e||QP(r[h]));c.features.push(y)}return c}function h0(t){return"/"!==(t=ee.Util.trim(t))[t.length-1]&&(t+="/"),t}function kc(t){if(-1!==t.url.indexOf("?")){t.requestParams=t.requestParams||{};var n=t.url.substring(t.url.indexOf("?")+1);t.url=t.url.split("?")[0],t.requestParams=JSON.parse('{"'+decodeURI(n).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"')+'"}')}return t.url=h0(t.url.split("?")[0]),t}function KP(t){return/^(?!.*utility\.arcgis\.com).*\.arcgis\.com.*FeatureServer/i.test(t)}function KT(t){var n;switch(t){case"Point":n="esriGeometryPoint";break;case"MultiPoint":n="esriGeometryMultipoint";break;case"LineString":case"MultiLineString":n="esriGeometryPolyline";break;case"Polygon":case"MultiPolygon":n="esriGeometryPolygon"}return n}function f0(t){return t.getSize().x-VP.attributionWidthOffset+"px"}function Y_(t){if(t.attributionControl){if(t.attributionControl._esriAttributionLayerCount||(t.attributionControl._esriAttributionLayerCount=0),0===t.attributionControl._esriAttributionLayerCount){if(!t.attributionControl._esriAttributionAddedOnce){var n=document.createElement("style");n.type="text/css",n.innerHTML=".esri-truncated-attribution:hover {white-space: normal;}",document.getElementsByTagName("head")[0].appendChild(n);var e=document.createElement("style");e.type="text/css",e.innerHTML=".esri-truncated-attribution {vertical-align: -3px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;display: inline-block;transition: 0s white-space;transition-delay: 1s;max-width: "+f0(t)+";}",document.getElementsByTagName("head")[0].appendChild(e),t.on("resize",function(r){t.attributionControl&&(t.attributionControl._container.style.maxWidth=f0(r.target))}),t.attributionControl._esriAttributionAddedOnce=!0}t.attributionControl.setPrefix(WP+" | "+t5),ee.DomUtil.addClass(t.attributionControl._container,"esri-truncated-attribution:hover"),ee.DomUtil.addClass(t.attributionControl._container,"esri-truncated-attribution")}t.attributionControl._esriAttributionLayerCount=t.attributionControl._esriAttributionLayerCount+1}}function p0(t){t.attributionControl&&(t.attributionControl._esriAttributionLayerCount&&1===t.attributionControl._esriAttributionLayerCount&&(t.attributionControl.setPrefix(WP),ee.DomUtil.removeClass(t.attributionControl._container,"esri-truncated-attribution:hover"),ee.DomUtil.removeClass(t.attributionControl._container,"esri-truncated-attribution")),t.attributionControl._esriAttributionLayerCount=t.attributionControl._esriAttributionLayerCount-1)}function JT(t){var n={geometry:null,geometryType:null};return t instanceof ee.LatLngBounds?(n.geometry=QT(t),n.geometryType="esriGeometryEnvelope",n):(t.getLatLng&&(t=t.getLatLng()),t instanceof ee.LatLng&&(t={type:"Point",coordinates:[t.lng,t.lat]}),t instanceof ee.GeoJSON&&(t=t.getLayers()[0].feature.geometry,n.geometry=Z_(t),n.geometryType=KT(t.type)),t.toGeoJSON&&(t=t.toGeoJSON()),"Feature"===t.type&&(t=t.geometry),"Point"===t.type||"LineString"===t.type||"Polygon"===t.type||"MultiPolygon"===t.type?(n.geometry=Z_(t),n.geometryType=KT(t.type),n):void zl("invalid geometry passed to spatial query. Should be L.LatLng, L.LatLngBounds, L.Marker or a GeoJSON Point, Line, Polygon or MultiPolygon object"))}function JP(t,n){Hl.cors&>(t,{},ee.Util.bind(function(e,r){if(!e){n._esriAttributions=[];for(var o=0;o=x.minZoom&&y<=x.maxZoom&&(o+=", "+A)}o=o.substr(2),r.innerHTML=o,r.style.maxWidth=f0(n),n.fire("attributionupdated",{attribution:o})}}}var n5={warn:zl,cleanUrl:h0,getUrlParams:kc,isArcgisOnline:KP,geojsonTypeToArcGIS:KT,responseToFeatureCollection:q_,geojsonToArcGIS:Z_,arcgisToGeoJSON:ZP,boundsToExtent:QT,extentToBounds:YT,calcAttributionWidth:f0,setEsriAttribution:Y_,_setGeometry:JT,_getAttributionData:JP,_updateMapAttribution:m0,_findIdAttributeFromFeature:QP,_findIdAttributeFromResponse:YP},Q_=ee.Class.extend({options:{proxy:!1,useCors:l0},generateSetter:function(t,n){return ee.Util.bind(function(e){return this.params[t]=e,this},n)},initialize:function(t){if(t.request&&t.options?(this._service=t,ee.Util.setOptions(this,t.options)):(ee.Util.setOptions(this,t),this.options.url=h0(t.url)),this.params=ee.Util.extend({},this.params||{}),this.setters)for(var n in this.setters)this[n]=this.generateSetter(this.setters[n],this)},token:function(t){return this._service?this._service.authenticate(t):this.params.token=t,this},apikey:function(t){return this.token(t)},format:function(t){return this.params.returnUnformattedValues=!t,this},request:function(t,n){return this.options.requestParams&&ee.Util.extend(this.params,this.options.requestParams),this._service?this._service.request(this.path,this.params,t,n):this._request("request",this.path,this.params,t,n)},_request:function(t,n,e,r,o){var c=this.options.proxy?this.options.proxy+"?"+this.options.url+n:this.options.url+n;return"get"!==t&&"request"!==t||this.options.useCors?d0[t](c,e,r,o):d0.get.JSONP(c,e,r,o)}});function i5(t){return t=kc(t),new Q_(t)}var XP=Q_.extend({setters:{offset:"resultOffset",limit:"resultRecordCount",fields:"outFields",precision:"geometryPrecision",featureIds:"objectIds",returnGeometry:"returnGeometry",returnM:"returnM",transform:"datumTransformation",token:"token"},path:"query",params:{returnGeometry:!0,where:"1=1",outSR:4326,outFields:"*"},within:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelContains",this},intersects:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelIntersects",this},contains:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelWithin",this},crosses:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelCrosses",this},touches:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelTouches",this},overlaps:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelOverlaps",this},bboxIntersects:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelEnvelopeIntersects",this},indexIntersects:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelIndexIntersects",this},nearby:function(t,n){return t=(0,ee.latLng)(t),this.params.geometry=[t.lng,t.lat],this.params.geometryType="esriGeometryPoint",this.params.spatialRel="esriSpatialRelIntersects",this.params.units="esriSRUnit_Meter",this.params.distance=n,this.params.inSR=4326,this},where:function(t){return this.params.where=t,this},between:function(t,n){return this.params.time=[t.valueOf(),n.valueOf()],this},simplify:function(t,n){var e=Math.abs(t.getBounds().getWest()-t.getBounds().getEast());return this.params.maxAllowableOffset=e/t.getSize().y*n,this},orderBy:function(t,n){return n=n||"ASC",this.params.orderByFields=this.params.orderByFields?this.params.orderByFields+",":"",this.params.orderByFields+=[t,n].join(" "),this},run:function(t,n){return this._cleanParams(),this.options.isModern||KP(this.options.url)&&void 0===this.options.isModern?(this.params.f="geojson",this.request(function(e,r){this._trapSQLerrors(e),t.call(n,e,r,r)},this)):this.request(function(e,r){this._trapSQLerrors(e),t.call(n,e,r&&q_(r),r)},this)},count:function(t,n){return this._cleanParams(),this.params.returnCountOnly=!0,this.request(function(e,r){t.call(this,e,r&&r.count,r)},n)},ids:function(t,n){return this._cleanParams(),this.params.returnIdsOnly=!0,this.request(function(e,r){t.call(this,e,r&&r.objectIds,r)},n)},bounds:function(t,n){return this._cleanParams(),this.params.returnExtentOnly=!0,this.request(function(e,r){r&&r.extent&&YT(r.extent)?t.call(n,e,YT(r.extent),r):t.call(n,e={message:"Invalid Bounds"},null,r)},n)},distinct:function(){return this.params.returnGeometry=!1,this.params.returnDistinctValues=!0,this},pixelSize:function(t){var n=(0,ee.point)(t);return this.params.pixelSize=[n.x,n.y],this},layer:function(t){return this.path=t+"/query",this},_trapSQLerrors:function(t){t&&"400"===t.code&&zl("one common syntax error in query requests is encasing string values in double quotes instead of single quotes")},_cleanParams:function(){delete this.params.returnIdsOnly,delete this.params.returnExtentOnly,delete this.params.returnCountOnly},_setGeometryParams:function(t){this.params.inSR=4326;var n=JT(t);this.params.geometry=n.geometry,this.params.geometryType=n.geometryType}});function eL(t){return new XP(t)}const XT=eL;var tL=Q_.extend({setters:{contains:"contains",text:"searchText",fields:"searchFields",spatialReference:"sr",sr:"sr",layers:"layers",returnGeometry:"returnGeometry",maxAllowableOffset:"maxAllowableOffset",precision:"geometryPrecision",dynamicLayers:"dynamicLayers",returnZ:"returnZ",returnM:"returnM",gdbVersion:"gdbVersion",token:"token"},path:"find",params:{sr:4326,contains:!0,returnGeometry:!0,returnZ:!0,returnM:!1},layerDefs:function(t,n){return this.params.layerDefs=this.params.layerDefs?this.params.layerDefs+";":"",this.params.layerDefs+=[t,n].join(":"),this},simplify:function(t,n){var e=Math.abs(t.getBounds().getWest()-t.getBounds().getEast());return this.params.maxAllowableOffset=e/t.getSize().y*n,this},run:function(t,n){return this.request(function(e,r){t.call(n,e,r&&q_(r),r)},n)}});function nL(t){return new tL(t)}const r5=nL;var g0=Q_.extend({path:"identify",between:function(t,n){return this.params.time=[t.valueOf(),n.valueOf()],this}});function o5(t){return new g0(t)}var iL=g0.extend({setters:{layers:"layers",precision:"geometryPrecision",tolerance:"tolerance",returnGeometry:"returnGeometry"},params:{sr:4326,layers:"all",tolerance:3,returnGeometry:!0},on:function(t){var n=QT(t.getBounds()),e=t.getSize();return this.params.imageDisplay=[e.x,e.y,96],this.params.mapExtent=[n.xmin,n.ymin,n.xmax,n.ymax],this},at:function(t){return 2===t.length&&(t=(0,ee.latLng)(t)),this._setGeometryParams(t),this},layerDef:function(t,n){return this.params.layerDefs=this.params.layerDefs?this.params.layerDefs+";":"",this.params.layerDefs+=[t,n].join(":"),this},simplify:function(t,n){var e=Math.abs(t.getBounds().getWest()-t.getBounds().getEast());return this.params.maxAllowableOffset=e/t.getSize().y*n,this},run:function(t,n){return this.request(function(e,r){if(e)t.call(n,e,void 0,r);else{var o=q_(r);r.results=r.results.reverse();for(var c=0;c=0;c--)o.catalogItems.features[c].properties.catalogItemVisibility=r[c];return o}});function sL(t){return new oL(t)}const a5=sL;var K_=ee.Evented.extend({options:{proxy:!1,useCors:l0,timeout:0},initialize:function(t){t=t||{},this._requestQueue=[],this._authenticating=!1,ee.Util.setOptions(this,t),this.options.url=h0(this.options.url)},get:function(t,n,e,r){return this._request("get",t,n,e,r)},post:function(t,n,e,r){return this._request("post",t,n,e,r)},request:function(t,n,e,r){return this._request("request",t,n,e,r)},metadata:function(t,n){return this._request("get","",{},t,n)},authenticate:function(t){return this._authenticating=!1,this.options.token=t,this._runQueue(),this},getTimeout:function(){return this.options.timeout},setTimeout:function(t){this.options.timeout=t},_request:function(t,n,e,r,o){this.fire("requeststart",{url:this.options.url+n,params:e,method:t},!0);var c=this._createServiceCallback(t,n,e,r,o);if(this.options.token&&(e.token=this.options.token),this.options.requestParams&&ee.Util.extend(e,this.options.requestParams),!this._authenticating){var h=this.options.proxy?this.options.proxy+"?"+this.options.url+n:this.options.url+n;return"get"!==t&&"request"!==t||this.options.useCors?d0[t](h,e,c,o):d0.get.JSONP(h,e,c,o)}this._requestQueue.push([t,n,e,r,o])},_createServiceCallback:function(t,n,e,r,o){return ee.Util.bind(function(c,h){c&&(499===c.code||498===c.code)&&(this._authenticating=!0,this._requestQueue.push([t,n,e,r,o]),this.fire("authenticationrequired",{authenticate:ee.Util.bind(this.authenticate,this)},!0),c.authenticate=ee.Util.bind(this.authenticate,this)),r.call(o,c,h),c?this.fire("requesterror",{url:this.options.url+n,params:e,message:c.message,code:c.code,method:t},!0):this.fire("requestsuccess",{url:this.options.url+n,params:e,response:h,method:t},!0),this.fire("requestend",{url:this.options.url+n,params:e,method:t},!0)},this)},_runQueue:function(){for(var t=this._requestQueue.length-1;t>=0;t--){var n=this._requestQueue[t];this[n.shift()].apply(this,n)}this._requestQueue=[]}});function l5(t){return t=kc(t),new K_(t)}var aL=K_.extend({identify:function(){return s5(this)},find:function(){return r5(this)},query:function(){return XT(this)}});function lL(t){return new aL(t)}const uL=lL;var cL=K_.extend({query:function(){return XT(this)},identify:function(){return a5(this)}});function dL(t){return new cL(t)}const u5=dL;var hL=K_.extend({options:{idAttribute:"OBJECTID"},query:function(){return XT(this)},addFeature:function(t,n,e){this.addFeatures(t,n,e)},addFeatures:function(t,n,e){for(var r=t.features?t.features:[t],o=r.length-1;o>=0;o--)delete r[o].id;return t=Z_(t),this.post("addFeatures",{features:t=r.length>1?t:[t]},function(c,h){n&&n.call(e,c||h.addResults[0].error,h&&h.addResults?h.addResults.length>1?h.addResults:h.addResults[0]:void 0)},e)},updateFeature:function(t,n,e){this.updateFeatures(t,n,e)},updateFeatures:function(t,n,e){var r=t.features?t.features:[t];return t=Z_(t,this.options.idAttribute),this.post("updateFeatures",{features:t=r.length>1?t:[t]},function(o,c){n&&n.call(e,o||c.updateResults[0].error,c&&c.updateResults?c.updateResults.length>1?c.updateResults:c.updateResults[0]:void 0)},e)},deleteFeature:function(t,n,e){this.deleteFeatures(t,n,e)},deleteFeatures:function(t,n,e){return this.post("deleteFeatures",{objectIds:t},function(r,o){n&&n.call(e,r||o.deleteResults[0].error,o&&o.deleteResults?o.deleteResults.length>1?o.deleteResults:o.deleteResults[0]:void 0)},e)}});function fL(t){return new hL(t)}const c5=fL;var Pn="https:"!==window.location.protocol?"http:":"https:",_0=ee.TileLayer.extend({statics:{TILES:{Streets:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],attribution:"USGS, NOAA",attributionUrl:"https://static.arcgis.com/attribution/World_Street_Map"}},Topographic:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],attribution:"USGS, NOAA",attributionUrl:"https://static.arcgis.com/attribution/World_Topo_Map"}},Oceans:{urlTemplate:Pn+"//{s}.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"USGS, NOAA",attributionUrl:"https://static.arcgis.com/attribution/Ocean_Basemap"}},OceansLabels:{urlTemplate:Pn+"//{s}.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],pane:Ul?"esri-labels":"tilePane",attribution:""}},NationalGeographic:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"National Geographic, DeLorme, HERE, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, increment P Corp."}},DarkGray:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"HERE, DeLorme, MapmyIndia, © OpenStreetMap contributors"}},DarkGrayLabels:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Reference/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],pane:Ul?"esri-labels":"tilePane",attribution:""}},Gray:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"HERE, DeLorme, MapmyIndia, © OpenStreetMap contributors"}},GrayLabels:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],pane:Ul?"esri-labels":"tilePane",attribution:""}},Imagery:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],attribution:"DigitalGlobe, GeoEye, i-cubed, USDA, USGS, AEX, Getmapping, Aerogrid, IGN, IGP, swisstopo, and the GIS User Community",attributionUrl:"https://static.arcgis.com/attribution/World_Imagery"}},ImageryLabels:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],pane:Ul?"esri-labels":"tilePane",attribution:""}},ImageryTransportation:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Transportation/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],pane:Ul?"esri-labels":"tilePane",attribution:""}},ShadedRelief:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:13,subdomains:["server","services"],attribution:"USGS"}},ShadedReliefLabels:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places_Alternate/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:12,subdomains:["server","services"],pane:Ul?"esri-labels":"tilePane",attribution:""}},Terrain:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:13,subdomains:["server","services"],attribution:"USGS, NOAA"}},TerrainLabels:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:13,subdomains:["server","services"],pane:Ul?"esri-labels":"tilePane",attribution:""}},USATopo:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:15,subdomains:["server","services"],attribution:"USGS, National Geographic Society, i-cubed"}},ImageryClarity:{urlTemplate:Pn+"//clarity.maptiles.arcgis.com/arcgis/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,attribution:"Esri, DigitalGlobe, GeoEye, Earthstar Geographics, CNES/Airbus DS, USDA, USGS, AeroGRID, IGN, and the GIS User Community"}},Physical:{urlTemplate:Pn+"//{s}.arcgisonline.com/arcgis/rest/services/World_Physical_Map/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:8,subdomains:["server","services"],attribution:"U.S. National Park Service"}},ImageryFirefly:{urlTemplate:Pn+"//fly.maptiles.arcgis.com/arcgis/rest/services/World_Imagery_Firefly/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,attribution:"Esri, DigitalGlobe, GeoEye, Earthstar Geographics, CNES/Airbus DS, USDA, USGS, AeroGRID, IGN, and the GIS User Community",attributionUrl:"https://static.arcgis.com/attribution/World_Imagery"}}}},initialize:function(t,n){var e;if("object"==typeof t&&t.urlTemplate&&t.options)e=t;else{if("string"!=typeof t||!_0.TILES[t])throw new Error('L.esri.BasemapLayer: Invalid parameter. Use one of "Streets", "Topographic", "Oceans", "OceansLabels", "NationalGeographic", "Physical", "Gray", "GrayLabels", "DarkGray", "DarkGrayLabels", "Imagery", "ImageryLabels", "ImageryTransportation", "ImageryClarity", "ImageryFirefly", ShadedRelief", "ShadedReliefLabels", "Terrain", "TerrainLabels" or "USATopo"');e=_0.TILES[t]}var r=ee.Util.extend(e.options,n);ee.Util.setOptions(this,r),this.options.ignoreDeprecationWarning||console.warn("WARNING: L.esri.BasemapLayer uses data services that are in mature support and are not being updated. Please use L.esri.Vector.vectorBasemapLayer instead. More info: https://esriurl.com/esri-leaflet-basemap"),this.options.token&&-1===e.urlTemplate.indexOf("token=")&&(e.urlTemplate+="?token="+this.options.token),this.options.proxy&&(e.urlTemplate=this.options.proxy+"?"+e.urlTemplate),ee.TileLayer.prototype.initialize.call(this,e.urlTemplate,r)},onAdd:function(t){Y_(t),"esri-labels"===this.options.pane&&this._initPane(),this.options.attributionUrl&&JP((this.options.proxy?this.options.proxy+"?":"")+this.options.attributionUrl,t),t.on("moveend",m0),ee.TileLayer.prototype.onAdd.call(this,t)},onRemove:function(t){p0(t),t.off("moveend",m0),ee.TileLayer.prototype.onRemove.call(this,t)},_initPane:function(){if(!this._map.getPane(this.options.pane)){var t=this._map.createPane(this.options.pane);t.style.pointerEvents="none",t.style.zIndex=500}},getAttribution:function(){if(this.options.attribution)var t=''+this.options.attribution+"";return t}});function d5(t,n){return new _0(t,n)}var ex=ee.TileLayer.extend({options:{zoomOffsetAllowance:.1,errorTileUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEABAMAAACuXLVVAAAAA1BMVEUzNDVszlHHAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAAAAAAAAAB6mUWpAAAADZJREFUeJztwQEBAAAAgiD/r25IQAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA7waBAAABw08RwAAAAABJRU5ErkJggg=="},statics:{MercatorZoomLevels:{0:156543.033928,1:78271.5169639999,2:39135.7584820001,3:19567.8792409999,4:9783.93962049996,5:4891.96981024998,6:2445.98490512499,7:1222.99245256249,8:611.49622628138,9:305.748113140558,10:152.874056570411,11:76.4370282850732,12:38.2185141425366,13:19.1092570712683,14:9.55462853563415,15:4.77731426794937,16:2.38865713397468,17:1.19432856685505,18:.597164283559817,19:.298582141647617,20:.14929107082381,21:.07464553541191,22:.0373227677059525,23:.0186613838529763}},initialize:function(t){t=kc(t=ee.Util.setOptions(this,t)),this.tileUrl=(t.proxy?t.proxy+"?":"")+t.url+"tile/{z}/{y}/{x}"+(t.requestParams&&Object.keys(t.requestParams).length>0?ee.Util.getParamString(t.requestParams):""),-1!==t.url.indexOf("{s}")&&t.subdomains&&(t.url=t.url.replace("{s}",t.subdomains[0])),this.service=uL(t),this.service.addEventParent(this),new RegExp(/tiles.arcgis(online)?\.com/g).test(t.url)&&(this.tileUrl=this.tileUrl.replace("://tiles","://tiles{s}"),t.subdomains=["1","2","3","4"]),this.options.token&&(this.tileUrl+="?token="+this.options.token),ee.TileLayer.prototype.initialize.call(this,this.tileUrl,t)},getTileUrl:function(t){var n=this._getZoomForUrl();return ee.Util.template(this.tileUrl,ee.Util.extend({s:this._getSubdomain(t),x:t.x,y:t.y,z:this._lodMap&&this._lodMap[n]?this._lodMap[n]:n},this.options))},createTile:function(t,n){var e=document.createElement("img");return ee.DomEvent.on(e,"load",ee.Util.bind(this._tileOnLoad,this,n,e)),ee.DomEvent.on(e,"error",ee.Util.bind(this._tileOnError,this,n,e)),this.options.crossOrigin&&(e.crossOrigin=""),e.alt="",!this._lodMap||this._lodMap&&this._lodMap[this._getZoomForUrl()]?e.src=this.getTileUrl(t):this.once("lodmap",function(){e.src=this.getTileUrl(t)},this),e},onAdd:function(t){Y_(t),this._lodMap||this.metadata(function(n,e){if(!n&&e.spatialReference){var r=e.spatialReference.latestWkid||e.spatialReference.wkid;if(!this.options.attribution&&t.attributionControl&&e.copyrightText&&(this.options.attribution=e.copyrightText,t.attributionControl.addAttribution(this.getAttribution())),t.options.crs!==ee.CRS.EPSG3857||102100!==r&&3857!==r)t.options.crs&&t.options.crs.code&&t.options.crs.code.indexOf(r)>-1||zl("L.esri.TiledMapLayer is using a non-mercator spatial reference. Support may be available through Proj4Leaflet https://developers.arcgis.com/esri-leaflet/samples/non-mercator-projection/");else{this._lodMap={};for(var o=e.tileInfo.lods,c=ex.MercatorZoomLevels,h=0;hthis.options.maxZoom||t0||cr&&this._retainParent(o,c,h,r))},_retainChildren:function(t,n,e,r){for(var o=2*t;o<2*t+2;o++)for(var c=2*n;c<2*n+2;c++){var h=new ee.Point(o,c);h.z=e+1;var y=this._cellCoordsToKey(h),D=this._cells[y];D&&D.active?D.retain=!0:(D&&D.loaded&&(D.retain=!0),e+11)return void this._setView(t,e);for(var k=o.min.y;k<=o.max.y;k++)for(var j=o.min.x;j<=o.max.x;j++){var V=new ee.Point(j,k);if(V.z=this._cellZoom,this._isValidCell(V)){var K=this._cells[this._cellCoordsToKey(V)];K?K.current=!0:h.push(V)}}if(h.sort(function(de,ye){return de.distanceTo(c)-ye.distanceTo(c)}),0!==h.length)for(this._loading||(this._loading=!0),j=0;je.max.x)||!n.wrapLat&&(t.ye.max.y))return!1}if(!this.options.bounds)return!0;var r=this._cellCoordsToBounds(t);return(0,ee.toLatLngBounds)(this.options.bounds).overlaps(r)},_keyToBounds:function(t){return this._cellCoordsToBounds(this._keyToCellCoords(t))},_cellCoordsToNwSe:function(t){var n=this._map,e=this.getCellSize(),r=t.scaleBy(e),o=r.add(e);return[n.unproject(r,t.z),n.unproject(o,t.z)]},_cellCoordsToBounds:function(t){var n=this._cellCoordsToNwSe(t),e=new ee.LatLngBounds(n[0],n[1]);return this.options.noWrap||(e=this._map.wrapLatLngBounds(e)),e},_cellCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToCellCoords:function(t){var n=t.split(":"),e=new ee.Point(+n[0],+n[1]);return e.z=+n[2],e},_removeCell:function(t){var n=this._cells[t];if(n){var e=this._keyToCellCoords(t),r=this._wrapCoords(e),o=this._cellCoordsToBounds(this._wrapCoords(e));n.current=!1,delete this._cells[t],this._activeCells[t]=n,this.cellLeave(o,r,t),this.fire("cellleave",{key:t,coords:r,bounds:o})}},_reuseCell:function(t){var n=this._cellCoordsToKey(t);this._cells[n]=this._activeCells[n],this._cells[n].current=!0;var e=this._wrapCoords(t),r=this._cellCoordsToBounds(this._wrapCoords(t));this.cellEnter(r,e,n),this.fire("cellenter",{key:n,coords:e,bounds:r})},_createCell:function(t){var n=this._cellCoordsToKey(t),e=this._wrapCoords(t),r=this._cellCoordsToBounds(this._wrapCoords(t));this.createCell(r,e,n),this.fire("cellcreate",{key:n,coords:e,bounds:r}),this._cells[n]={coords:t,current:!0},ee.Util.requestAnimFrame(this._pruneCells,this)},_cellReady:function(t,n,e){var r=this._cellCoordsToKey(t);(e=this._cells[r])&&(e.loaded=+new Date,e.active=!0)},_getCellPos:function(t){return t.scaleBy(this.getCellSize())},_wrapCoords:function(t){var n=new ee.Point(this._wrapX?ee.Util.wrapNum(t.x,this._wrapX):t.x,this._wrapY?ee.Util.wrapNum(t.y,this._wrapY):t.y);return n.z=t.z,n},_pxBoundsToCellRange:function(t){var n=this.getCellSize();return new ee.Bounds(t.min.unscaleBy(n).floor(),t.max.unscaleBy(n).ceil().subtract([1,1]))}});function Fc(t){this.values=[].concat(t||[])}Fc.prototype.query=function(t){var n=this.getIndex(t);return this.values[n]},Fc.prototype.getIndex=function(n){this.dirty&&this.sort();for(var o,c,e=0,r=this.values.length-1;e<=r;)if(o=(e+r)/2|0,+(c=this.values[Math.round(o)]).value<+n)e=o+1;else{if(!(+c.value>+n))return o;r=o-1}return Math.abs(~r)},Fc.prototype.between=function(n,e){var r=this.getIndex(n),o=this.getIndex(e);if(0===r&&0===o)return[];for(;this.values[r-1]&&this.values[r-1].value===n;)r--;for(;this.values[o+1]&&this.values[o+1].value===e;)o++;return this.values[o]&&this.values[o].value===e&&this.values[o+1]&&o++,this.values.slice(r,o)},Fc.prototype.insert=function(n){return this.values.splice(this.getIndex(n.value),0,n),this},Fc.prototype.bulkAdd=function(n,e){return this.values=this.values.concat([].concat(n||[])),e?this.sort():this.dirty=!0,this},Fc.prototype.sort=function(){return this.values.sort(function(n,e){return+e.value-+n.value}).reverse(),this.dirty=!1,this};const nx=Fc;var y0=v0.extend({options:{attribution:null,where:"1=1",fields:["*"],from:!1,to:!1,timeField:!1,timeFilterMode:"server",simplifyFactor:0,precision:6,fetchAllFeatures:!1},initialize:function(t){if(v0.prototype.initialize.call(this,t),t=kc(t),t=ee.Util.setOptions(this,t),this.service=c5(t),this.service.addEventParent(this),"*"!==this.options.fields[0]){for(var n=!1,e=0;e=0;r--){var o=t[r].id;-1===this._currentSnapshot.indexOf(o)&&this._currentSnapshot.push(o),typeof e<"u"&&-1===this._cache[e].indexOf(o)&&this._cache[e].push(o)}this.options.timeField&&this._buildTimeIndexes(t),this.createLayers(t)},_buildQuery:function(t,n){var e=this.service.query().intersects(t).where(this.options.where).fields(this.options.fields).precision(this.options.precision);return this.options.fetchAllFeatures&&!isNaN(parseInt(n))&&(e=e.offset(n)),e.params.resultType="tile",this.options.requestParams&&ee.Util.extend(e.params,this.options.requestParams),this.options.simplifyFactor&&e.simplify(this._map,this.options.simplifyFactor),"server"===this.options.timeFilterMode&&this.options.from&&this.options.to&&e.between(this.options.from,this.options.to),e},setWhere:function(t,n,e){this.options.where=t&&t.length?t:"1=1";for(var r=[],o=[],c=0,h=null,y=ee.Util.bind(function(j,V){if(j&&(h=j),V)for(var K=V.features.length-1;K>=0;K--)o.push(V.features[K].id);--c<=0&&this._visibleZoom()&&t===this.options.where&&(this._currentSnapshot=o,ee.Util.requestAnimFrame(ee.Util.bind(function(){this.removeLayers(r),this.addLayers(o),n&&n.call(e,h)},this)))},this),D=this._currentSnapshot.length-1;D>=0;D--)r.push(this._currentSnapshot[D]);for(var x in this._cache={},this._cells){c++;var A=this._keyToCellCoords(x),k=this._cellCoordsToBounds(A);this._requestFeatures(k,A,y)}return this},getWhere:function(){return this.options.where},getTimeRange:function(){return[this.options.from,this.options.to]},setTimeRange:function(t,n,e,r){var o=this.options.from,c=this.options.to,h=0,y=null,D=ee.Util.bind(function(j){j&&(y=j),this._filterExistingFeatures(o,c,t,n),h--,e&&h<=0&&e.call(r,y)},this);if(this.options.from=t,this.options.to=n,this._filterExistingFeatures(o,c,t,n),"server"===this.options.timeFilterMode)for(var x in this._cells){h++;var A=this._keyToCellCoords(x),k=this._cellCoordsToBounds(A);this._requestFeatures(k,A,D)}return this},refresh:function(){this.setWhere(this.options.where)},_filterExistingFeatures:function(t,n,e,r){var o=t&&n?this._getFeaturesInTimeRange(t,n):this._currentSnapshot,c=this._getFeaturesInTimeRange(e,r);if(c.indexOf)for(var h=0;h=0&&o.splice(y,1)}ee.Util.requestAnimFrame(ee.Util.bind(function(){this.removeLayers(o),this.addLayers(c)},this))},_getFeaturesInTimeRange:function(t,n){var r,e=[];if(this.options.timeField.start&&this.options.timeField.end){var o=this._startTimeIndex.between(t,n),c=this._endTimeIndex.between(t,n);r=o.concat(c)}else{if(!this._timeIndex)return zl("You must set timeField in the layer constructor in order to manipulate the start and end time filter."),[];r=this._timeIndex.between(t,n)}for(var h=r.length-1;h>=0;h--)e.push(r[h].id);return e},_buildTimeIndexes:function(t){var n,e;if(this.options.timeField.start&&this.options.timeField.end){var r=[],o=[];for(n=t.length-1;n>=0;n--)r.push({id:(e=t[n]).id,value:new Date(e.properties[this.options.timeField.start])}),o.push({id:e.id,value:new Date(e.properties[this.options.timeField.end])});this._startTimeIndex.bulkAdd(r),this._endTimeIndex.bulkAdd(o)}else{var c=[];for(n=t.length-1;n>=0;n--)c.push({id:(e=t[n]).id,value:new Date(e.properties[this.options.timeField])});this._timeIndex.bulkAdd(c)}},_featureWithinTimeRange:function(t){if(!this.options.from||!this.options.to)return!0;var n=+this.options.from.valueOf(),e=+this.options.to.valueOf();if("string"==typeof this.options.timeField){var r=+t.properties[this.options.timeField];return r>=n&&r<=e}if(this.options.timeField.start&&this.options.timeField.end){var o=+t.properties[this.options.timeField.start],c=+t.properties[this.options.timeField.end];return o>=n&&o<=e||c>=n&&c<=e||o<=n&&c>=e}},_visibleZoom:function(){if(!this._map)return!1;var t=this._map.getZoom();return!(t>this.options.maxZoom||t=0;D--)c[D].properties[o.objectIdField]=c.length>1?y[D].objectId:y.objectId,c[D].id=c.length>1?y[D].objectId:y.objectId;this._addFeatures(c)}n&&n.call(e,h,y)},this))}},this))},updateFeature:function(t,n,e){this.updateFeatures(t,n,e)},updateFeatures:function(t,n,e){var r=t.features?t.features:[t];this.service.updateFeatures(t,function(o,c){if(!o){for(var h=r.length-1;h>=0;h--)this.removeLayers([r[h].id],!0);this._addFeatures(r)}n&&n.call(e,o,c)},this)},deleteFeature:function(t,n,e){this.deleteFeatures(t,n,e)},deleteFeatures:function(t,n,e){return this.service.deleteFeatures(t,function(r,o){var c=o.length?o:[o];if(!r&&c.length>0)for(var h=c.length-1;h>=0;h--)this.removeLayers([c[h].objectId],!0);n&&n.call(e,r,o)},this)}}),gL=y0.extend({options:{cacheLayers:!0},initialize:function(t){t.apikey&&(t.token=t.apikey),y0.prototype.initialize.call(this,t),this._originalStyle=this.options.style,this._layers={}},onRemove:function(t){for(var n in this._layers)t.removeLayer(this._layers[n]),this.fire("removefeature",{feature:this._layers[n].feature,permanent:!1},!0);return y0.prototype.onRemove.call(this,t)},createNewLayer:function(t){var n=ee.GeoJSON.geometryToLayer(t,this.options);return n&&(n.defaultOptions=n.options),n},_updateLayer:function(t,n){var e=[],r=this.options.coordsToLatLng||ee.GeoJSON.coordsToLatLng;switch(n.properties&&(t.feature.properties=n.properties),n.geometry.type){case"Point":e=ee.GeoJSON.coordsToLatLng(n.geometry.coordinates),t.setLatLng(e);break;case"LineString":e=ee.GeoJSON.coordsToLatLngs(n.geometry.coordinates,0,r),t.setLatLngs(e);break;case"MultiLineString":case"Polygon":e=ee.GeoJSON.coordsToLatLngs(n.geometry.coordinates,1,r),t.setLatLngs(e);break;case"MultiPolygon":e=ee.GeoJSON.coordsToLatLngs(n.geometry.coordinates,2,r),t.setLatLngs(e)}this.redraw(t.feature.id)},createLayers:function(t){for(var n=t.length-1;n>=0;n--){var o,e=t[n],r=this._layers[e.id];this._visibleZoom()&&r&&!this._map.hasLayer(r)&&(!this.options.timeField||this._featureWithinTimeRange(e))&&(this._map.addLayer(r),this.fire("addfeature",{feature:r.feature},!0)),r&&(r.setLatLngs||r.setLatLng)&&this._updateLayer(r,e),r||((o=this.createNewLayer(e))?(o.feature=e,o.addEventParent(this),this.options.onEachFeature&&this.options.onEachFeature(o.feature,o),this._layers[o.feature.id]=o,this.setFeatureStyle(o.feature.id,this.options.style),this.fire("createfeature",{feature:o.feature},!0),this._visibleZoom()&&(!this.options.timeField||this.options.timeField&&this._featureWithinTimeRange(e))&&this._map.addLayer(o)):zl("invalid GeoJSON encountered"))}},addLayers:function(t){for(var n=t.length-1;n>=0;n--){var e=this._layers[t[n]];e&&(!this.options.timeField||this._featureWithinTimeRange(e.feature))&&(this._map.addLayer(e),this.fire("addfeature",{feature:e.feature},!0))}},removeLayers:function(t,n){for(var e=t.length-1;e>=0;e--){var r=t[e],o=this._layers[r];o&&(this.fire("removefeature",{feature:o.feature,permanent:n},!0),this._map.removeLayer(o)),o&&n&&delete this._layers[r]}},cellEnter:function(t,n){this._visibleZoom()&&!this._zooming&&this._map&&ee.Util.requestAnimFrame(ee.Util.bind(function(){var e=this._cacheKey(n),r=this._cellCoordsToKey(n),o=this._cache[e];this._activeCells[r]&&o&&this.addLayers(o)},this))},cellLeave:function(t,n){this._zooming||ee.Util.requestAnimFrame(ee.Util.bind(function(){if(this._map){var e=this._cacheKey(n),r=this._cellCoordsToKey(n),o=this._cache[e],c=this._map.getBounds();if(!this._activeCells[r]&&o){for(var h=!0,y=0;y{class t{constructor(e){_(this,"platformId",void 0),_(this,"L",null),_(this,"esri",null),this.platformId=e,this.requireMap()}requireMap(){Vo(this.platformId)&&(this.L=ee,this.esri=ue)}isAvailable(){return!!Vo(this.platformId)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275inject(i.PLATFORM_ID))}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})();class y5{constructor(n,e){_(this,"options",void 0),_(this,"mapService",void 0),_(this,"map",void 0),_(this,"locating",!1),_(this,"fullScreen",!1),_(this,"onInit",new i.EventEmitter),_(this,"modes",{DRAGGING:0,DRAWING_POLYGON:1,DRAWING_LINE:2}),_(this,"mode",this.modes.DRAGGING),_(this,"initialized",!1),_(this,"polygonDrawer",void 0),_(this,"lineDrawer",void 0),_(this,"editingLayer",void 0),_(this,"switchToDragging",()=>{this.mapService.isAvailable()&&(this.mode=this.modes.DRAGGING,this.polygonDrawer&&(this.polygonDrawer.disable(),this.polygonDrawer=void 0),this.lineDrawer&&(this.lineDrawer.disable(),this.lineDrawer=void 0),this.map.off(this.mapService.L.Draw.Event.CREATED),this.map.off(this.mapService.L.Draw.Event.DRAWSTOP))}),_(this,"handleDrawPolygon",r=>{this.map.addLayer(r.layer),this.options.onAddPolygon(r.layer),this.switchToDragging()}),_(this,"handleDrawLine",r=>{this.map.addLayer(r.layer),this.options.onAddLine(r.layer),this.switchToDragging()}),_(this,"stopEditLayer",()=>{this.editingLayer&&(this.editingLayer.editing.disable(),this.editingLayer.off("edit")),this.map.off("click",this.stopEditLayer)}),this.options=n,this.mapService=e}init(n){this.mapService.isAvailable()&&(this.initialized=!0,this.map=this.mapService.L.map(n,{center:this.options.center,zoom:this.options.zoom,attributionControl:!1,zoomControl:!1,scrollWheelZoom:!1}),this.onInit.emit())}addTileLayer(n){if(this.mapService.isAvailable()){const e=this.mapService.L.tileLayer(n.url,n.options);return this.map.addLayer(e),e}}addFeatureLayer(n){if(this.mapService.isAvailable()){const e=new this.mapService.esri.featureLayer(n);return this.map.addLayer(e),e}}addGeoJSON(n,e){if(this.mapService.isAvailable()){const r=this.mapService.L.geoJSON(n,e);return r.addTo(this.map),r}}fitFeatureLayers(n){if(this.mapService.isAvailable()){const e=this.mapService.L.latLngBounds([]);let r=0;n.forEach(o=>{o.once("load",()=>{r++,o.eachFeature(c=>{e.extend(c.getBounds())}),r===n.length&&e.isValid()&&this.map.fitBounds(e)})})}}removeLayer(n){this.map.removeLayer(n)}toggleFullScreen(){this.fullScreen=!this.fullScreen,setTimeout(()=>{this.update()})}update(){this.initialized&&this.map.invalidateSize()}zoomIn(){this.initialized&&this.map.zoomIn()}zoomInDisabled(){return!this.initialized||this.map.getMaxZoom()<=this.map.getZoom()}zoomOut(){this.initialized&&this.map.zoomOut()}zoomOutDisabled(){return!this.initialized||this.map.getMinZoom()>=this.map.getZoom()}locate(n){!this.locating&&this.initialized&&(this.locating=!0,this.map.locate(),this.map.on("locationfound",e=>{this.locating=!1,this.map.setView(e.latlng,n),this.map.off("locationfound")}))}setView(n,e){this.initialized&&this.map.setView(n,e)}switchToPolygon(){this.mapService.isAvailable()&&(this.switchToDragging(),this.mode=this.modes.DRAWING_POLYGON,this.polygonDrawer||(this.polygonDrawer=new this.mapService.L.Draw.Polygon(this.map,{shapeOptions:this.options.polygonColor?{color:this.options.polygonColor}:{}}),this.polygonDrawer.enable(),this.map.on(this.mapService.L.Draw.Event.CREATED,this.handleDrawPolygon),this.map.on(this.mapService.L.Draw.Event.DRAWSTOP,this.switchToDragging)))}switchToLine(){this.mapService.isAvailable()&&(this.switchToDragging(),this.mode=this.modes.DRAWING_LINE,this.lineDrawer||(this.lineDrawer=new this.mapService.L.Draw.Polyline(this.map,{shapeOptions:this.options.lineColor?{color:this.options.lineColor}:{}}),this.lineDrawer.enable(),this.map.on(this.mapService.L.Draw.Event.CREATED,this.handleDrawLine),this.map.on(this.mapService.L.Draw.Event.DRAWSTOP,this.switchToDragging)))}startEditLayer(n){this.stopEditLayer(),this.editingLayer=n,this.editingLayer.options.editing=this.editingLayer.options.editing||(this.editingLayer.options.editing={}),this.editingLayer.editing.enable(),this.map.on("click",this.stopEditLayer),this.editingLayer.on("edit",()=>{this.editingLayer.feature=this.editingLayer.toGeoJSON(),this.options.onEditFeature(this.editingLayer.toGeoJSON())})}addMarker(n,e){if(this.mapService.isAvailable())return this.mapService.L.marker(n,e).addTo(this.map)}addHtmlMarker(n,e){if(this.mapService.isAvailable()){const r=this.mapService.L.divIcon({html:e,className:"aui-leaflet__html-icon"});return this.mapService.L.marker(n,{icon:r}).addTo(this.map)}}}const b5={name:"Base world gray",url:"https://{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}",options:{subdomains:["server","services"],maxNativeZoom:16}},w5={name:"Base antwerp",url:"https://basemap.antwerpen.be/tile/{z}/{y}/{x}",options:{minZoom:13,maxNativeZoom:19,maxZoom:21}};let _L=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke,er,Tl,cn,ip]})),t})(),b0=(()=>{class t{constructor(){_(this,"icon",void 0),_(this,"disabled",void 0),_(this,"ariaLabel","")}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-leaflet-control"]],inputs:{icon:"icon",disabled:"disabled",ariaLabel:"ariaLabel"},decls:2,vars:3,consts:[["type","button",1,"o-leaflet__control","a-button","a-button--small","has-icon",3,"disabled"],[3,"name"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"button",0),i.\u0275\u0275element(1,"aui-icon",1),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275property("disabled",r.disabled),i.\u0275\u0275attribute("aria-label",r.ariaLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("name",r.icon))},dependencies:[Gt],encapsulation:2})),t})(),vL=(()=>{class t{constructor(){_(this,"map",void 0)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-leaflet-drag-control"]],decls:1,vars:0,consts:[["icon","ai-direction-button-arrows","ariaLabel","Sleepmodus (de)activeren",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"aui-leaflet-control",0),i.\u0275\u0275listener("click",function(){return null==r.map?null:r.map.switchToDragging()}),i.\u0275\u0275elementEnd())},dependencies:[b0],encapsulation:2})),t})(),yL=(()=>{class t{constructor(){_(this,"map",void 0)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-leaflet-draw-control"]],decls:11,vars:0,consts:[["auiFlyout",""],["auiFlyoutAction","","type","button","aria-label","Tekenen",1,"a-button","a-button--small","has-icon"],["name","ai-pencil-1","ariaLabel","Tekenen"],["auiFlyoutZone",""],[1,"a-list","a-list--lined"],["auiFlyoutClose","",1,"a-list__item"],[1,"a-list__content",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"button",1),i.\u0275\u0275element(2,"aui-icon",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"div",3)(4,"ul",4)(5,"li",5)(6,"a",6),i.\u0275\u0275listener("click",function(){return null==r.map?null:r.map.switchToPolygon()}),i.\u0275\u0275text(7,"Vorm intekenen"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(8,"li",5)(9,"a",6),i.\u0275\u0275listener("click",function(){return null==r.map?null:r.map.switchToLine()}),i.\u0275\u0275text(10,"Lijn/route intekenen"),i.\u0275\u0275elementEnd()()()()())},dependencies:[Gt,np,II,Vl,fs],encapsulation:2})),t})(),bL=(()=>{class t{constructor(){_(this,"map",void 0)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-leaflet-fullscreen-control"]],decls:1,vars:0,consts:[["icon","ai-expand-1","ariaLabel","Volledig scherm (de)activeren",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"aui-leaflet-control",0),i.\u0275\u0275listener("click",function(){return null==r.map?null:r.map.toggleFullScreen()}),i.\u0275\u0275elementEnd())},dependencies:[b0],encapsulation:2})),t})(),wL=(()=>{class t{constructor(){_(this,"zoomLevel",19),_(this,"map",void 0)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-leaflet-locate-control"]],inputs:{zoomLevel:"zoomLevel"},decls:1,vars:1,consts:[["icon","ai-location-target-1","ariaLabel","Huidige positie",3,"disabled","click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"aui-leaflet-control",0),i.\u0275\u0275listener("click",function(){return null==r.map?null:r.map.locate(r.zoomLevel)}),i.\u0275\u0275elementEnd()),2&e&&i.\u0275\u0275property("disabled",null==r.map?null:r.map.locating)},dependencies:[b0],encapsulation:2})),t})(),CL=(()=>{class t{constructor(){_(this,"map",void 0)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-leaflet-zoom-control"]],decls:2,vars:2,consts:[["icon","ai-add","ariaLabel","Inzoomen",1,"o-leaflet__zoom-control",3,"disabled","click"],["icon","ai-subtract","ariaLabel","Uitzoomen",1,"o-leaflet__zoom-control",3,"disabled","click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"aui-leaflet-control",0),i.\u0275\u0275listener("click",function(){return null==r.map?null:r.map.zoomIn()}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(1,"aui-leaflet-control",1),i.\u0275\u0275listener("click",function(){return null==r.map?null:r.map.zoomOut()}),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275property("disabled",null==r.map?null:r.map.zoomInDisabled()),i.\u0275\u0275advance(1),i.\u0275\u0275property("disabled",null==r.map?null:r.map.zoomOutDisabled()))},dependencies:[b0],encapsulation:2})),t})();const C5=["map"],D5=["content"],S5=["*",[["","controls","","top","","left",""]],[["","controls","","top","","right",""]],[["","controls","","bottom","","right",""]],[["","controls","","bottom","","left",""]]],E5=function(t){return{"is-full-screen":t}},T5=function(t){return{"has-content":t}},x5=["*","[controls][top][left]","[controls][top][right]","[controls][bottom][right]","[controls][bottom][left]"];let M5=(()=>{class t{constructor(){_(this,"map",void 0),_(this,"content",void 0),_(this,"fullScreenControl",void 0),_(this,"zoomControl",void 0),_(this,"locateControl",void 0),_(this,"dragControl",void 0),_(this,"drawControl",void 0),_(this,"leafletMap",void 0),_(this,"hasSidebar",!1)}ngAfterViewInit(){setTimeout(()=>{this.leafletMap.init(this.map.nativeElement)})}ngAfterContentInit(){[this.fullScreenControl,this.zoomControl,this.locateControl,this.dragControl,this.drawControl].forEach(e=>e?e.map=this.leafletMap:null)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-leaflet"]],contentQueries:function(e,r,o){if(1&e&&(i.\u0275\u0275contentQuery(o,bL,5),i.\u0275\u0275contentQuery(o,CL,5),i.\u0275\u0275contentQuery(o,wL,5),i.\u0275\u0275contentQuery(o,vL,5),i.\u0275\u0275contentQuery(o,yL,5)),2&e){let c;i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.fullScreenControl=c.first),i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.zoomControl=c.first),i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.locateControl=c.first),i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.dragControl=c.first),i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.drawControl=c.first)}},viewQuery:function(e,r){if(1&e&&(i.\u0275\u0275viewQuery(C5,7),i.\u0275\u0275viewQuery(D5,7)),2&e){let o;i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.map=o.first),i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.content=o.first)}},inputs:{leafletMap:"leafletMap",hasSidebar:"hasSidebar"},ngContentSelectors:x5,decls:15,vars:6,consts:[[1,"aui-leaflet","o-leaflet",3,"ngClass"],[1,"o-leaflet__content",3,"ngClass"],["content",""],[1,"o-leaflet__wrapper"],[1,"o-leaflet__map"],["map",""],[1,"o-leaflet__controls","o-leaflet__controls--top-left"],[1,"o-leaflet__controls","o-leaflet__controls--top-right"],[1,"o-leaflet__controls","o-leaflet__controls--bottom-right"],[1,"o-leaflet__controls","o-leaflet__controls--bottom-left"]],template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(S5),i.\u0275\u0275elementStart(0,"div",0)(1,"div",1,2),i.\u0275\u0275projection(3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",3),i.\u0275\u0275element(5,"div",4,5),i.\u0275\u0275elementStart(7,"div",6),i.\u0275\u0275projection(8,1),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(9,"div",7),i.\u0275\u0275projection(10,2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(11,"div",8),i.\u0275\u0275projection(12,3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(13,"div",9),i.\u0275\u0275projection(14,4),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(2,E5,r.leafletMap.fullScreen)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(4,T5,r.hasSidebar)))},dependencies:[ze],styles:[":host{display:flex}\n"],encapsulation:2})),t})(),I5=(()=>{class t{constructor(){_(this,"importModule","import { LeafletModule } from '@acpaas-ui/ngx-leaflet';\n\n@NgModule({\n\timports: [\n\t\tLeafletModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"codeExampleJS1",'"styles": [\n\t"node_modules/leaflet/dist/leaflet.css",\n\t"node_modules/leaflet-draw/dist/leaflet.draw.css"\n]'),_(this,"codeExampleJS2","import { LeafletMap, baseMapWorldGray, baseMapAntwerp, MapService } from '@acpaas-ui/ngx-leaflet';\n\nconstructor(public mapService: MapService) {\n}\n\npublic leafletMap: LeafletMap = new LeafletMap({\n\tzoom: 13, // default zoom level\n\tcenter: [51.215, 4.425], // default center point\n\tonAddPolygon: (layer) => {},\n\tonAddLine: (layer) => {},\n\tonEditFeature: (feature) => {},\n}, this.mapService);\n\npublic ngOnInit(): void {\n\tthis.leafletMap.onInit.subscribe(() => {\n\t\tthis.leafletMap.addTileLayer(baseMapWorldGray);\n\t\tthis.leafletMap.addTileLayer(baseMapAntwerp);\n });\n}"),_(this,"codeExampleHTML1",'\n\t
    \n\t\t\n\t\t\n\t
    \n\t
    \n\t\t\n\t
    \n\t
    \n\t\t\n\t
    \n\t
    \n\t\t\n\t
    \n\t
    \n\t\tContent displayed in sidebar\n\t
    \n
    '),_(this,"mapMockService",new v5("browser")),_(this,"leafletMap",new y5({zoom:13,center:[51.215,4.425],onAddPolygon:e=>{},onAddLine:e=>{},onEditFeature:e=>{}},this.mapMockService))}ngOnInit(){this.leafletMap.onInit.subscribe(()=>{this.leafletMap.addTileLayer(b5),this.leafletMap.addTileLayer(w5)})}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:23,vars:6,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[3,"leafletMap","hasSidebar"],["controls","","top","","left",""],["controls","","top","","right",""],["controls","","bottom","","left",""],["zoomLevel","16"],["controls","","bottom","","right",""]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Map"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",1),i.\u0275\u0275element(9,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",1)(11,"aui-leaflet",3)(12,"div",4),i.\u0275\u0275element(13,"aui-leaflet-drag-control")(14,"aui-leaflet-draw-control"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(15,"div",5),i.\u0275\u0275element(16,"aui-leaflet-fullscreen-control"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(17,"div",6),i.\u0275\u0275element(18,"aui-leaflet-locate-control",7),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(19,"div",8),i.\u0275\u0275element(20,"aui-leaflet-zoom-control"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(21,"div"),i.\u0275\u0275text(22," Content displayed in sidebar "),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.importModule),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML1),i.\u0275\u0275advance(2),i.\u0275\u0275property("leafletMap",r.leafletMap)("hasSidebar",!0))},dependencies:[Tt,vL,yL,bL,wL,CL,M5],encapsulation:2})),t})(),P5=(()=>{class t{constructor(){_(this,"createInterval","\n import { IntervalBuilder } from '@acpaas-ui/ngx-utils';\n\n const interval = IntervalBuilder.numberInterval(0, 10)\n .closedInterval()\n .bounded()\n .build();\n"),_(this,"dateInterval","\n import { IntervalBuilder } from '@acpaas-ui/ngx-utils';\n import { subDays } from 'date-fns';\n\n const today = new Date();\n const yesterday = subDays(new Date(), 1);\n const interval = IntervalBuilder.dateInterval(yesterday, today)\n .openInterval()\n .build();\n "),_(this,"notThePast","\n import { IntervalBuilder } from '@acpaas-ui/ngx-utils';\n\n const today = new Date();\n\n // This interval amounts to ]-infinity, today], so the past will be disabled\n const interval = IntervalBuilder.dateInterval(null, today)\n .leftOpenInterval()\n .unbounded()\n .not()\n .build();\n ")}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["app-interval-page"]],decls:22,vars:3,consts:[[1,"h4","u-margin-bottom"],["target","_blank","href","https://en.wikipedia.org/wiki/Interval_(mathematics)"],[1,"u-margin-bottom","u-margin-top"],[1,"u-margin-bottom"],[3,"codeSnippet"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Interval"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"blockquote"),i.\u0275\u0275text(3," For more information about the theoretical approach of intervals, see "),i.\u0275\u0275elementStart(4,"a",1),i.\u0275\u0275text(5,"here"),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(6,".\n"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(7,"div",2),i.\u0275\u0275text(8," The utils package allows you to create intervals which can be used in other packages. Ao: "),i.\u0275\u0275elementStart(9,"ul")(10,"li"),i.\u0275\u0275text(11,"ngx-calendar"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"li"),i.\u0275\u0275text(13,"ngx-forms Datepicker"),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(14,"div",3),i.\u0275\u0275element(15,"aui-code-snippet",4),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(16,"div",3),i.\u0275\u0275element(17,"aui-code-snippet",4),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(18,"p",3),i.\u0275\u0275text(19," The IntervalBuilder supports left and right open intervals, bounded and unbounded intervals and interval inversion by using the not() method.\n"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(20,"div",3),i.\u0275\u0275element(21,"aui-code-snippet",4),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(15),i.\u0275\u0275property("codeSnippet",r.createInterval),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.dateInterval),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.notThePast))},dependencies:[Tt],encapsulation:2})),t})();class DL{}class L5{}const ha="*";function SL(t,n){return{type:7,name:t,definitions:n,options:{}}}function w0(t,n=null){return{type:4,styles:n,timings:t}}function EL(t,n=null){return{type:2,steps:t,options:n}}function ps(t){return{type:6,styles:t,offset:null}}function C0(t,n,e){return{type:0,name:t,styles:n,options:e}}function TL(t){return{type:5,steps:t}}function D0(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function xL(t){Promise.resolve().then(t)}class J_{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){xL(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}class ML{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,r=0,o=0;const c=this.players.length;0==c?xL(()=>this._onFinish()):this.players.forEach(h=>{h.onDone(()=>{++e==c&&this._onFinish()}),h.onDestroy(()=>{++r==c&&this._onDestroy()}),h.onStart(()=>{++o==c&&this._onStart()})}),this.totalTime=this.players.reduce((h,y)=>Math.max(h,y.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(r=>{const o=r.totalTime?Math.min(1,e/r.totalTime):1;r.setPosition(o)})}getPosition(){const n=this.players.reduce((e,r)=>null===e||r.totalTime>e.totalTime?r:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}const ix="!",IL=["toast-component",""];function A5(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.remove())}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd()()}}function O5(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",e.duplicatesCount+1,"]")}}function k5(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,O5,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(e.options.titleClass),i.\u0275\u0275attribute("aria-label",e.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",e.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.duplicatesCount)}}function F5(t,n){if(1&t&&i.\u0275\u0275element(0,"div",7),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(e.options.messageClass),i.\u0275\u0275property("innerHTML",e.message,i.\u0275\u0275sanitizeHtml)}}function R5(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(e.options.messageClass),i.\u0275\u0275attribute("aria-label",e.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",e.message," ")}}function N5(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",e.width+"%")}}class $5{constructor(n,e){this.component=n,this.injector=e}attach(n,e){return this._attachedHost=n,n.attach(this,e)}detach(){const n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class G5{attach(n,e){return this._attachedPortal=n,this.attachComponentPortal(n,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}}class W5{constructor(n){this._overlayRef=n,this.duplicatesCount=0,this._afterClosed=new vt.xQ,this._activate=new vt.xQ,this._manualClose=new vt.xQ,this._resetTimeout=new vt.xQ,this._countDuplicate=new vt.xQ}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,e){n&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class S0{constructor(n,e,r,o,c,h){this.toastId=n,this.config=e,this.message=r,this.title=o,this.toastType=c,this.toastRef=h,this._onTap=new vt.xQ,this._onAction=new vt.xQ,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}}const LL=new i.InjectionToken("ToastConfig");class Z5 extends G5{constructor(n,e,r){super(),this._hostDomElement=n,this._componentFactoryResolver=e,this._appRef=r}attachComponentPortal(n,e){const r=this._componentFactoryResolver.resolveComponentFactory(n.component);let o;return o=r.create(n.injector),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.detachView(o.hostView),o.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(o),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(o)),o}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let q5=(()=>{class t{constructor(){this._document=(0,i.inject)(W)}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),this._containerElement=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Y5{constructor(n){this._portalHost=n}attach(n,e=!0){return this._portalHost.attach(n,e)}detach(){return this._portalHost.detach()}}let Q5=(()=>{class t{constructor(){this._overlayContainer=(0,i.inject)(q5),this._componentFactoryResolver=(0,i.inject)(i.ComponentFactoryResolver),this._appRef=(0,i.inject)(i.ApplicationRef),this._document=(0,i.inject)(W),this._paneElements=new Map}create(e,r){return this._createOverlayRef(this.getPaneElement(e,r))}getPaneElement(e="",r){return this._paneElements.get(r)||this._paneElements.set(r,{}),this._paneElements.get(r)[e]||(this._paneElements.get(r)[e]=this._createPaneElement(e,r)),this._paneElements.get(r)[e]}_createPaneElement(e,r){const o=this._document.createElement("div");return o.id="toast-container",o.classList.add(e),o.classList.add("toast-container"),r?r.getContainerElement().appendChild(o):this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalHost(e){return new Z5(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new Y5(this._createPortalHost(e))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),rx=(()=>{class t{constructor(e,r,o,c,h){this.overlay=r,this._injector=o,this.sanitizer=c,this.ngZone=h,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig={...e.default,...e.config},e.config.iconClasses&&(this.toastrConfig.iconClasses={...e.default.iconClasses,...e.config.iconClasses})}show(e,r,o={},c=""){return this._preBuildNotification(c,e,r,this.applyConfig(o))}success(e,r,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,r,this.applyConfig(o))}error(e,r,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,r,this.applyConfig(o))}info(e,r,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,r,this.applyConfig(o))}warning(e,r,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,r,this.applyConfig(o))}clear(e){for(const r of this.toasts)if(void 0!==e){if(r.toastId===e)return void r.toastRef.manualClose()}else r.toastRef.manualClose()}remove(e){const r=this._findToast(e);if(!r||(r.activeToast.toastRef.close(),this.toasts.splice(r.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(e,r,o,c)):this._buildNotification(e,r,o,c)}_buildNotification(e,r,o,c){if(!c.toastComponent)throw new Error("toastComponent required");const h=this.findDuplicate(o,r,this.toastrConfig.resetTimeoutOnDuplicate&&c.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&o||r)&&this.toastrConfig.preventDuplicates&&null!==h)return h;this.previousToastMessage=r;let y=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(y=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const D=this.overlay.create(c.positionClass,this.overlayContainer);this.index=this.index+1;let x=r;r&&c.enableHtml&&(x=this.sanitizer.sanitize(i.SecurityContext.HTML,r));const A=new W5(D),k=new S0(this.index,c,x,o,e,A),V=i.Injector.create({providers:[{provide:S0,useValue:k}],parent:this._injector}),K=new $5(c.toastComponent,V),se=D.attach(K,c.newestOnTop);A.componentInstance=se.instance;const ae={toastId:this.index,title:o||"",message:r||"",toastRef:A,onShown:A.afterActivate(),onHidden:A.afterClosed(),onTap:k.onTap(),onAction:k.onAction(),portal:se};return y||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{ae.toastRef.activate()})),this.toasts.push(ae),ae}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(LL),i.\u0275\u0275inject(Q5),i.\u0275\u0275inject(i.Injector),i.\u0275\u0275inject(Zo),i.\u0275\u0275inject(i.NgZone))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ox=(()=>{class t{get displayStyle(){if("inactive"===this.state.value)return"none"}constructor(e,r,o){this.toastrService=e,this.toastPackage=r,this.ngZone=o,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(c=>{this.duplicatesCount=c})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),r)):this.timeout=setTimeout(()=>e(),r)}outsideInterval(e,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),r)):this.intervalId=setInterval(()=>e(),r)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(rx),i.\u0275\u0275directiveInject(S0),i.\u0275\u0275directiveInject(i.NgZone))},t.\u0275cmp=i.\u0275\u0275defineComponent({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),2&e&&(i.\u0275\u0275syntheticHostProperty("@flyInOut",r.state),i.\u0275\u0275classMap(r.toastClasses),i.\u0275\u0275styleProp("display",r.displayStyle))},standalone:!0,features:[i.\u0275\u0275StandaloneFeature],attrs:IL,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,r){1&e&&(i.\u0275\u0275template(0,A5,3,0,"button",0),i.\u0275\u0275template(1,k5,3,5,"div",1),i.\u0275\u0275template(2,F5,1,3,"div",2),i.\u0275\u0275template(3,R5,2,4,"div",3),i.\u0275\u0275template(4,N5,2,2,"div",4)),2&e&&(i.\u0275\u0275property("ngIf",r.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.message&&r.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.message&&!r.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.options.progressBar))},dependencies:[Fe],encapsulation:2,data:{animation:[SL("flyInOut",[C0("inactive",ps({opacity:0})),C0("active",ps({opacity:1})),C0("removed",ps({opacity:0})),D0("inactive => active",w0("{{ easeTime }}ms {{ easing }}")),D0("active => removed",w0("{{ easeTime }}ms {{ easing }}"))])]}}),t})();const K5={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:ox},J5=(t={})=>(0,i.makeEnvironmentProviders)([{provide:LL,useValue:{default:K5,config:t}}]);let X5=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[J5(e)]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({imports:[ox]}),t})();const sx=[{path:"",pathMatch:"full",redirectTo:"modules/avatar"},{path:"modules/avatar",component:$m,data:{meta:{title:"Avatar"}}},{path:"modules/calendar",component:QR,data:{meta:{title:"Calendar"}}},{path:"modules/code-snippet",component:PS,data:{meta:{title:"Code Snippets"}}},{path:"modules/context",component:KR,data:{meta:{title:"Context"}}},{path:"modules/flyout",component:sN,data:{meta:{title:"Flyout"}}},{component:L3,path:"modules/forms",data:{meta:{title:"Forms"}},children:[{path:"",pathMatch:"full",redirectTo:"autocomplete"},{path:"autocomplete",pathMatch:"full",component:xj,data:{meta:{title:"Autocomplete"}}},{path:"datepicker",pathMatch:"full",component:iU,data:{meta:{title:"Datepicker"}}},{path:"range-slider",pathMatch:"full",component:aU,data:{meta:{title:"Range Slider"}}},{path:"search-filter",pathMatch:"full",component:SU,data:{meta:{title:"Search Filter"}}},{path:"timepicker",pathMatch:"full",component:RU,data:{meta:{title:"Timepicker"}}},{path:"upload",pathMatch:"full",component:rH,data:{meta:{title:"Upload"}}}]},{path:"modules/icon",component:lN,data:{meta:{title:"Icon"}}},{component:oH,path:"modules/layout",data:{meta:{title:"Layout"}},children:[{path:"",pathMatch:"full",redirectTo:"footer"},{path:"footer",pathMatch:"full",component:cH,data:{meta:{title:"Footer"}}},{path:"header",pathMatch:"full",component:dH,data:{meta:{title:"Header"}}},{path:"modal",pathMatch:"full",component:S4,data:{meta:{title:"Modal"}}}]},{path:"modules/leaflet",component:I5,data:{meta:{title:"Leaflet"}}},{path:"modules/logo",component:IS,data:{meta:{title:"Logo"}}},{path:"modules/notifications",component:(()=>{class t{constructor(e){_(this,"notificationsService",void 0),_(this,"importModule","import { NotificationsModule } from '@acpaas-ui/ngx-notifications';\n\n@NgModule({\n imports: [ NotificationsModule, BrowserAnimationsModule ]\n})\nexport class AppModule { }\n "),_(this,"showNotification","import { NotificationsService } from '@acpaas-ui/ngx-notifications';\n\n@Component({...})\nexport class Component {\n\n constructor(private service: NotificationsService) {}\n\n showInfoNotification() {\n this.notificationsService.info('This is the body of an info notification.', 'Info', { /* Extra options */ });\n }\n\n showSuccessNotification() {\n this.notificationsService.success('This is the body of a success notification.', 'Success', { /* Extra options */ });\n }\n\n showWarningNotification() {\n this.notificationsService.warning('This is the body of a warning notification', 'Warning', { /* Extra options */ });\n }\n\n showErrorNotification() {\n this.notificationsService.error('This is the body of an error notification', 'Error', { /* Extra options */ });\n }\n}\n "),this.notificationsService=e}showInfoNotification(){this.notificationsService.info("This is the body of an info notification.","Info")}showSuccessNotification(){this.notificationsService.success("This is the body of a success notification.","Success")}showWarningNotification(){this.notificationsService.warning("This is the body of a warning notification","Warning")}showErrorNotification(){this.notificationsService.error("This is the body of an error notification","Error")}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(rx))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["app-notifications-demo"]],decls:32,vars:2,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-top","u-margin-bottom","m-alert"],[1,"u-margin-top","u-margin-bottom"],["href","https://www.npmjs.com/package/ngx-toastr#options","target","_blank",1,"has-icon-right"],["name","ai-navigation-next","ariaLabel"," (external)"],[1,"u-margin-bottom-xs"],[1,"a-button",3,"click"],[1,"a-button","a-button--success",3,"click"],[1,"a-button","a-button--warning",3,"click"],[1,"a-button","a-button--danger",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Notifications"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",3)(5,"p")(6,"strong"),i.\u0275\u0275text(7,"Note:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(8," For this package to work properly, it is important to import the "),i.\u0275\u0275elementStart(9,"code"),i.\u0275\u0275text(10,"BrowserAnimationsModule"),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(11," in the root module of your application. "),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(12,"div",1),i.\u0275\u0275element(13,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(14,"div",4)(15,"p"),i.\u0275\u0275text(16,"Our notifications package is built on ngx-toastr. All available options are listed on the "),i.\u0275\u0275elementStart(17,"a",5),i.\u0275\u0275text(18,"ngx-toastr NPM page"),i.\u0275\u0275element(19,"aui-icon",6),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(20,"div",7)(21,"button",8),i.\u0275\u0275listener("click",function(){return r.showInfoNotification()}),i.\u0275\u0275text(22,"Show info notification"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(23,"div",7)(24,"button",9),i.\u0275\u0275listener("click",function(){return r.showSuccessNotification()}),i.\u0275\u0275text(25,"Show success notification"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(26,"div",7)(27,"button",10),i.\u0275\u0275listener("click",function(){return r.showWarningNotification()}),i.\u0275\u0275text(28,"Show warning notification"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(29,"div",1)(30,"button",11),i.\u0275\u0275listener("click",function(){return r.showErrorNotification()}),i.\u0275\u0275text(31,"Show error notification"),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.importModule),i.\u0275\u0275advance(10),i.\u0275\u0275property("codeSnippet",r.showNotification))},dependencies:[Tt,Bl],encapsulation:2})),t})(),data:{meta:{title:"Notifications"}}},{path:"modules/pagination",component:CN,data:{meta:{title:"Pagination"}}},{path:"modules/progress-bar",component:EN,data:{meta:{title:"Progress Bar"}}},{path:"modules/selectable-list",component:P3,data:{meta:{title:"Selectable List"}}},{path:"modules/table",component:s3,data:{meta:{title:"Table"}}},{path:"modules/user-menu",component:y3,data:{meta:{title:"User Menu"}}},{component:E4,path:"modules/utils",data:{meta:{title:"Utils"}},children:[{path:"",pathMatch:"full",redirectTo:"filter"},{path:"filter",pathMatch:"full",component:V4,data:{meta:{title:"Filter"}}},{path:"labels",pathMatch:"full",component:H4,data:{meta:{title:"Labels"}}},{path:"window",pathMatch:"full",component:z4,data:{meta:{title:"Window"}}},{path:"interval",pathMatch:"full",component:P5,data:{meta:{title:"Interval"}}}]}];let e$=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["guide-footer"]],decls:57,vars:0,consts:[["auiFooterContent",""],[1,"u-container"],[1,"row"],[1,"col-xs-12","col-sm-6","col-md-4","u-margin-bottom-xs","u-margin-top-xs"],[1,"h4"],[1,"a-list","u-margin-top-xs"],[1,"a-list__item"],["href","https://digitalehuisstijl.antwerpen.be","target","_blank",1,"a-list__content","has-icon-right"],["name","ai-navigation-next","ariaLabel"," (external)"],["href","https://www.github.com/a-ui/core_branding_scss","target","_blank",1,"a-list__content","has-icon-right"],["href","https://www.github.com/a-ui/core_components_react","target","_blank",1,"a-list__content","has-icon-right"],["href","https://github.com/digipolisantwerp/smart-widgets","target","_blank",1,"a-list__content","has-icon-right"],["href","https://www.digipolisantwerpen.be","target","_blank",1,"a-list__content","has-icon-right"],["href","https://antwerpen.digipolis.be/nl/opdrachten","target","_blank",1,"a-list__content","has-icon-right"],["href","https://jobs.digipolis.be","target","_blank",1,"a-list__content","has-icon-right"],["href","https://onstage.digipolis.be","target","_blank",1,"a-list__content","has-icon-right"],[1,"col-xs-12","col-md-4","u-margin-bottom-xs","u-margin-top-xs"],["href","https://www.facebook.com/DigipolisAntwerpen","aria-label","Facebook","target","_blank",1,"a-button","a-button--social","a-button--negative","has-icon"],["name","ai-social-media-facebook"],["href","https://twitter.com/Dgplsantwerpen","aria-label","Twitter","target","_blank",1,"a-button","a-button--social","a-button--negative","has-icon"],["name","ai-social-media-twitter"],["href","https://www.linkedin.com/company/digipolisantwerpen","aria-label","LinkedIn","target","_blank",1,"a-button","a-button--social","a-button--negative","has-icon"],["name","ai-professional-network-linkedin"],["auiFooterBottom",""],["ariaGoUpLabel","Go back to top"],["domain","Digipolis Antwerpen"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"aui-footer")(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"h3",4),i.\u0275\u0275text(6,"Antwerp UI"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(7,"ul",5)(8,"li",6)(9,"a",7),i.\u0275\u0275text(10,"Digital branding guidelines"),i.\u0275\u0275element(11,"aui-icon",8),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(12,"li",6)(13,"a",9),i.\u0275\u0275text(14,"Core branding"),i.\u0275\u0275element(15,"aui-icon",8),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(16,"li",6)(17,"a",10),i.\u0275\u0275text(18,"React components"),i.\u0275\u0275element(19,"aui-icon",8),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(20,"li",6)(21,"a",11),i.\u0275\u0275text(22,"Smart widgets"),i.\u0275\u0275element(23,"aui-icon",8),i.\u0275\u0275elementEnd()()()(),i.\u0275\u0275elementStart(24,"div",3)(25,"h3",4),i.\u0275\u0275text(26,"Digital city of tomorrow"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(27,"ul",5)(28,"li",6)(29,"a",12),i.\u0275\u0275text(30,"Digipolis Antwerp"),i.\u0275\u0275element(31,"aui-icon",8),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(32,"li",6)(33,"a",13),i.\u0275\u0275text(34,"Digital Antwerp"),i.\u0275\u0275element(35,"aui-icon",8),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(36,"li",6)(37,"a",14),i.\u0275\u0275text(38,"Vacancies"),i.\u0275\u0275element(39,"aui-icon",8),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(40,"li",6)(41,"a",15),i.\u0275\u0275text(42,"Internships"),i.\u0275\u0275element(43,"aui-icon",8),i.\u0275\u0275elementEnd()()()(),i.\u0275\u0275elementStart(44,"div",16)(45,"h3",4),i.\u0275\u0275text(46,"Social media"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(47,"div",5)(48,"a",17),i.\u0275\u0275element(49,"aui-icon",18),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(50,"a",19),i.\u0275\u0275element(51,"aui-icon",20),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(52,"a",21),i.\u0275\u0275element(53,"aui-icon",22),i.\u0275\u0275elementEnd()()()()()(),i.\u0275\u0275elementStart(54,"div",23)(55,"aui-subfooter",24),i.\u0275\u0275element(56,"aui-copyright",25),i.\u0275\u0275elementEnd()()())},dependencies:[dP,hP,fP,pP,VT,Bl],encapsulation:2})),t})(),AL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275dir",i.\u0275\u0275defineDirective({type:t,selectors:[["","auiHeaderLogo",""]]})),t})(),t$=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275dir",i.\u0275\u0275defineDirective({type:t,selectors:[["","auiHeaderContent",""]]})),t})();const n$=[[["","auiHeaderLogo",""]],[["","auiHeaderContent",""]],[["","auiHeaderMenuItem",""]]],i$=["[auiHeaderLogo]","[auiHeaderContent]","[auiHeaderMenuItem]"];let r$=(()=>{class t{constructor(){_(this,"logo",void 0),_(this,"content",void 0)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-header"]],contentQueries:function(e,r,o){if(1&e&&(i.\u0275\u0275contentQuery(o,AL,7),i.\u0275\u0275contentQuery(o,t$,7)),2&e){let c;i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.logo=c.first),i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.content=c.first)}},ngContentSelectors:i$,decls:7,vars:0,consts:[[1,"o-header","aui-header"],[1,"o-header__content-wrapper"],[1,"o-header__content"],[1,"o-header__menu-items"]],template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(n$),i.\u0275\u0275elementStart(0,"div",0)(1,"div",1),i.\u0275\u0275projection(2),i.\u0275\u0275elementStart(3,"div",2),i.\u0275\u0275projection(4,1),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(5,"div",3),i.\u0275\u0275projection(6,2),i.\u0275\u0275elementEnd()()())},encapsulation:2})),t})(),o$=(()=>{class t{constructor(){_(this,"class","o-header__menu-item")}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275dir",i.\u0275\u0275defineDirective({type:t,selectors:[["","auiHeaderMenuItem",""]],hostVars:2,hostBindings:function(e,r){2&e&&i.\u0275\u0275classMap(r.class)}})),t})(),s$=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["guide-header"]],decls:7,vars:1,consts:[["auiHeaderLogo",""],["src","https://cdn.antwerpen.be/core_branding_scss/6.2.2/assets/images/a-logo.svg","title","Antwerp logo.",3,"link"],["auiHeaderMenuItem",""],["href","http://github.com/digipolisantwerp/antwerp-ui_angular",1,"a-button","a-button--text","a-button--neutral","o-header__button","has-icon-left"],["name","ai-developer-community-github-1"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"aui-header")(1,"div",0),i.\u0275\u0275element(2,"aui-logo",1),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"div",2)(4,"a",3),i.\u0275\u0275element(5,"aui-icon",4),i.\u0275\u0275text(6,"GitHub "),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(2),i.\u0275\u0275property("link","/"))},dependencies:[$y,r$,AL,o$,Bl],encapsulation:2})),t})();function a$(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"p",4),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.description)}}let l$=(()=>{class t{constructor(){_(this,"title",void 0),_(this,"description",void 0)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["guide-hero"]],inputs:{title:"title",description:"description"},decls:6,vars:2,consts:[[1,"o-hero"],[1,"u-text-xlight"],[1,"h3"],["class","u-margin-top-xxs u-text-bold",4,"ngIf"],[1,"u-margin-top-xxs","u-text-bold"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div")(3,"h1",2),i.\u0275\u0275text(4),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(5,a$,2,1,"p",3),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(4),i.\u0275\u0275textInterpolate(r.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.description))},dependencies:[Fe],styles:['[_ngcontent-%COMP%]:root{--theme1-600: #002855;--theme1-500: #003865;--theme1-400: #0057b7;--theme1-300: #009cde;--theme1-200: #41b6e6;--theme1-100: #99d6ea;--theme1-075: #96b5e4;--theme1-050: #e0ebf6;--theme2-600: #7c2629;--theme2-500: #862633;--theme2-400: #cf0039;--theme2-300: #df4661;--theme2-200: #ffb1bb;--theme2-100: #f5dadf;--success-700: #004721;--success-600: #006e33;--success-500: #4c8d2b;--success-400: #6cc24a;--success-300: #97d700;--success-200: #bce194;--success-100: #d0debb;--success-050: #edf8e9;--warning-500: #8f3400;--warning-400: #ce4c00;--warning-050: #ffe4d6;--danger-600: #7c2629;--danger-500: #af272f;--danger-400: #e03c31;--danger-300: #e56a54;--danger-200: #e6baa8;--danger-100: #f3cfb3;--danger-050: #fbe8e6;--text-color: #000;--text-color-light: #6f6f6f;--text-color-xlight: #fff;--bg-color: #d8d8d8;--bg-color-light: #f3f3f3;--border-color: #949494;--overlay-color: rgba(0, 0, 0, .75);--box-shadow-color: rgba(20, 20, 20, .12);--state-info: var(--theme1-400);--state-success: var(--success-600);--state-warning: var(--warning-400);--state-danger: var(--danger-500);--state-disabled: #6f6f6f;--spacer: 1.5rem;--spacer-3xl: calc(var(--spacer) * 4);--spacer-xxl: calc(var(--spacer) * 2.5);--spacer-xl: calc(var(--spacer) * 2);--spacer-l: calc(var(--spacer) * 1.5);--spacer-s: calc(var(--spacer) / 1.5);--spacer-xs: calc(var(--spacer) / 2);--spacer-xxs: calc(var(--spacer) / 3);--spacer-3xs: calc(var(--spacer) / 6);--screen-xs: 30rem;--screen-s: 45rem;--screen-l: 62rem;--screen-xl: 75rem;--screen-xxl: calc(var(--screen-xl) + calc(var(--spacer-3xl) * 2) + calc(var(--spacer) * 2));--screen-xs-max: 44.9375rem;--screen-s-max: 61.9375rem;--screen-l-max: 74.9375rem;--screen-xl-max: 89.9375rem;--font-family-base: "Sun Antwerpen", sans-serif;--font-family-headings: "Antwerpen Regular", sans-serif;--font-family-monospace: "Menlo", "Monaco", "Consolas", "Courier New", monospace;--font-weight-light: 300;--font-weight-normal: 500;--font-weight-bold: 700;--font-weight-extra-bold: 800;--font-weight-h1: var(--font-weight-normal);--font-weight-h2: var(--font-weight-normal);--font-weight-h3: var(--font-weight-normal);--font-weight-h4: var(--font-weight-normal);--font-weight-h5: var(--font-weight-normal);--font-weight-h6: var(--font-weight-normal);--link-color: var(--theme1-400);--link-hover-color: var(--theme1-500);--border-radius: 0;--border-width: 1px;--animation-duration: .2s;--animation-easing: ease-in-out;--animation-normal: var(--animation-duration) var(--animation-easing);--box-shadow-bottom-left: calc(var(--spacer) / -2) calc(var(--spacer) / 2) 0 var(--box-shadow-color);--box-shadow-bottom-right: calc(var(--spacer) / 2) calc(var(--spacer) / 2) 0 var(--box-shadow-color);--box-shadow-upper-left: calc(var(--spacer) / -2) calc(var(--spacer) / -2) 0 var(--box-shadow-color);--box-shadow-upper-right: calc(var(--spacer) / 2) calc(var(--spacer) / -2) 0 var(--box-shadow-color);--box-shadow: var(--box-shadow-bottom-right);--shared-avatar-size-s: var(--spacer-l);--shared-avatar-size: var(--spacer-xl);--shared-avatar-size-l: var(--spacer-xxl);--shared-copyright-color: #fff;--shared-copyright-height: var(--spacer-l);--shared-header-height: var(--spacer-xl);--shared-slideshow-footer-color-light: #fff}.o-hero[_ngcontent-%COMP%]{background-color:#0057b7;height:auto;min-height:4.5rem;padding-left:1.5rem}.o-hero[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{padding-left:2.25rem}.u-margin-top-xxs[_ngcontent-%COMP%]{margin-top:.25rem}']})),t})();const u$=["mainContent"],c$=["skipContent"],d$=function(t){return[t]};function h$(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"a",22)(1,"span",23),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext().$implicit;i.\u0275\u0275property("routerLink",i.\u0275\u0275pureFunction1(2,d$,e.path)),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(null==e.data||null==e.data.meta?null:e.data.meta.title)}}function f$(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span",24)(1,"span",23),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(3,"aui-icon",25),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext().$implicit;i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(null==e.data||null==e.data.meta?null:e.data.meta.title)}}const p$=function(t,n){return[t,n]};function m$(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"li",18)(1,"a",22)(2,"span",23),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd()()()),2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext(2).$implicit;i.\u0275\u0275advance(1),i.\u0275\u0275property("routerLink",i.\u0275\u0275pureFunction2(2,p$,r.path,e.path)),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(null==e.data||null==e.data.meta?null:e.data.meta.title)}}function g$(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"ul",26),i.\u0275\u0275template(1,m$,4,5,"li",7),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext().$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",r.getChildrenRoutes(e))}}function _$(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"li",18),i.\u0275\u0275template(1,h$,3,4,"a",19),i.\u0275\u0275template(2,f$,4,1,"span",20),i.\u0275\u0275template(3,g$,2,1,"ul",21),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.shouldDisplaySubMenu(e)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.shouldDisplaySubMenu(e)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.shouldDisplaySubMenu(e))}}let v$=(()=>{class t{constructor(){_(this,"mainContent",void 0),_(this,"skipContent",void 0),_(this,"packages",sx.splice(0,1));const e=[...sx];this.packages=e}shouldDisplaySubMenu(e){return e&&e.children&&e.children.length>=1}getChildrenRoutes(e){const r=[...e.children];return r.splice(0,1),r}goToMainContent(e){e.preventDefault(),e.stopPropagation();const o=this.skipContent.nativeElement;this.mainContent.nativeElement.focus(),o.blur()}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["app-root"]],viewQuery:function(e,r){if(1&e&&(i.\u0275\u0275viewQuery(u$,7),i.\u0275\u0275viewQuery(c$,7)),2&e){let o;i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.mainContent=o.first),i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.skipContent=o.first)}},decls:30,vars:1,consts:[["aria-label","Main header","role","banner"],["href","#main-content",1,"a-button--text","o-header__button","o-header__button-skip",3,"click"],["skipContent",""],["title","Angular core components"],[1,"u-main"],[1,"u-main-menu"],[1,"a-list","a-list--lined","a-list--flushed"],["class","a-list__item",4,"ngFor","ngForOf"],[1,"u-container","u-margin-top","u-margin-bottom","p-antwerp-ui"],[1,"row"],[1,"col-xs-12"],["role","alertdialog","aria-labelledby","alert-warning",1,"m-alert","m-alert--warning","u-margin-bottom-l"],["className","m-alert__icon","name","ai-alert-circle"],["id","alert-warning",1,"h5","u-margin-bottom-xs"],[1,"u-margin-bottom-xs"],["href","https://digitalehuisstijl.antwerpen.be","rel","external"],["id","main-content","tabindex","-1",1,"col-xs-12"],["mainContent",""],[1,"a-list__item"],["class","a-list__content","routerLinkActive","is-active",3,"routerLink",4,"ngIf"],["class","a-list__content",4,"ngIf"],["class","a-list a-list--lined",4,"ngIf"],["routerLinkActive","is-active",1,"a-list__content",3,"routerLink"],[1,"a-list__text"],[1,"a-list__content"],["name","ai-arrow-down-1"],[1,"a-list","a-list--lined"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"header",0)(1,"a",1,2),i.\u0275\u0275listener("click",function(c){return r.goToMainContent(c)}),i.\u0275\u0275text(3,"Skip to main content"),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(4,"guide-header")(5,"guide-hero",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",4)(7,"div",5)(8,"ul",6),i.\u0275\u0275template(9,_$,4,3,"li",7),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(10,"div",8)(11,"div",9)(12,"div",10)(13,"div",11),i.\u0275\u0275element(14,"aui-icon",12),i.\u0275\u0275elementStart(15,"h4",13),i.\u0275\u0275text(16,"Deprecation notice"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(17,"p",14),i.\u0275\u0275text(18," As of October 2022 we deprecated the use of Angular as a frontend solution. This means that new frontend solutions should always be built using React.js. "),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(19,"p",14),i.\u0275\u0275text(20," Existing projects can still do a one-time upgrade to the latest version of Angular (and accompanying components), but should migrate, as described in the Digipolis Antwerpen Application Stack (DAAS). "),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(21,"p"),i.\u0275\u0275text(22," Always check "),i.\u0275\u0275elementStart(23,"a",15),i.\u0275\u0275text(24,"https://digitalehuisstijl.antwerpen.be"),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(25," for the latest news and guidelines concerning Antwerp's digital branding guidelines. "),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(26,"main",16,17),i.\u0275\u0275element(28,"router-outlet"),i.\u0275\u0275elementEnd()()()(),i.\u0275\u0275element(29,"guide-footer")),2&e&&(i.\u0275\u0275advance(9),i.\u0275\u0275property("ngForOf",r.packages))},dependencies:[re,Fe,qs,Qs,Fy,Bl,e$,s$,l$],styles:['[_ngcontent-%COMP%]:root{--theme1-600: #002855;--theme1-500: #003865;--theme1-400: #0057b7;--theme1-300: #009cde;--theme1-200: #41b6e6;--theme1-100: #99d6ea;--theme1-075: #96b5e4;--theme1-050: #e0ebf6;--theme2-600: #7c2629;--theme2-500: #862633;--theme2-400: #cf0039;--theme2-300: #df4661;--theme2-200: #ffb1bb;--theme2-100: #f5dadf;--success-700: #004721;--success-600: #006e33;--success-500: #4c8d2b;--success-400: #6cc24a;--success-300: #97d700;--success-200: #bce194;--success-100: #d0debb;--success-050: #edf8e9;--warning-500: #8f3400;--warning-400: #ce4c00;--warning-050: #ffe4d6;--danger-600: #7c2629;--danger-500: #af272f;--danger-400: #e03c31;--danger-300: #e56a54;--danger-200: #e6baa8;--danger-100: #f3cfb3;--danger-050: #fbe8e6;--text-color: #000;--text-color-light: #6f6f6f;--text-color-xlight: #fff;--bg-color: #d8d8d8;--bg-color-light: #f3f3f3;--border-color: #949494;--overlay-color: rgba(0, 0, 0, .75);--box-shadow-color: rgba(20, 20, 20, .12);--state-info: var(--theme1-400);--state-success: var(--success-600);--state-warning: var(--warning-400);--state-danger: var(--danger-500);--state-disabled: #6f6f6f;--spacer: 1.5rem;--spacer-3xl: calc(var(--spacer) * 4);--spacer-xxl: calc(var(--spacer) * 2.5);--spacer-xl: calc(var(--spacer) * 2);--spacer-l: calc(var(--spacer) * 1.5);--spacer-s: calc(var(--spacer) / 1.5);--spacer-xs: calc(var(--spacer) / 2);--spacer-xxs: calc(var(--spacer) / 3);--spacer-3xs: calc(var(--spacer) / 6);--screen-xs: 30rem;--screen-s: 45rem;--screen-l: 62rem;--screen-xl: 75rem;--screen-xxl: calc(var(--screen-xl) + calc(var(--spacer-3xl) * 2) + calc(var(--spacer) * 2));--screen-xs-max: 44.9375rem;--screen-s-max: 61.9375rem;--screen-l-max: 74.9375rem;--screen-xl-max: 89.9375rem;--font-family-base: "Sun Antwerpen", sans-serif;--font-family-headings: "Antwerpen Regular", sans-serif;--font-family-monospace: "Menlo", "Monaco", "Consolas", "Courier New", monospace;--font-weight-light: 300;--font-weight-normal: 500;--font-weight-bold: 700;--font-weight-extra-bold: 800;--font-weight-h1: var(--font-weight-normal);--font-weight-h2: var(--font-weight-normal);--font-weight-h3: var(--font-weight-normal);--font-weight-h4: var(--font-weight-normal);--font-weight-h5: var(--font-weight-normal);--font-weight-h6: var(--font-weight-normal);--link-color: var(--theme1-400);--link-hover-color: var(--theme1-500);--border-radius: 0;--border-width: 1px;--animation-duration: .2s;--animation-easing: ease-in-out;--animation-normal: var(--animation-duration) var(--animation-easing);--box-shadow-bottom-left: calc(var(--spacer) / -2) calc(var(--spacer) / 2) 0 var(--box-shadow-color);--box-shadow-bottom-right: calc(var(--spacer) / 2) calc(var(--spacer) / 2) 0 var(--box-shadow-color);--box-shadow-upper-left: calc(var(--spacer) / -2) calc(var(--spacer) / -2) 0 var(--box-shadow-color);--box-shadow-upper-right: calc(var(--spacer) / 2) calc(var(--spacer) / -2) 0 var(--box-shadow-color);--box-shadow: var(--box-shadow-bottom-right);--shared-avatar-size-s: var(--spacer-l);--shared-avatar-size: var(--spacer-xl);--shared-avatar-size-l: var(--spacer-xxl);--shared-copyright-color: #fff;--shared-copyright-height: var(--spacer-l);--shared-header-height: var(--spacer-xl);--shared-slideshow-footer-color-light: #fff}body[_ngcontent-%COMP%]{display:flex;min-height:100vh}app-root[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;max-width:100%}.u-main[_ngcontent-%COMP%] main[_ngcontent-%COMP%]:focus{outline:none}#main-content[_ngcontent-%COMP%] > ng-component[_ngcontent-%COMP%]{width:100%}.p-antwerp-ui[_ngcontent-%COMP%]{flex:1 1 auto;overflow:auto}.a-pre.hljs[_ngcontent-%COMP%]{border:1px solid #f3f3f3}.m-button-group--inline[_ngcontent-%COMP%]{display:inline-flex}@media screen and (min-width: 45rem){.u-show-on-mobile[_ngcontent-%COMP%]{display:none}}@media screen and (max-width: 44.9375rem){.u-hide-on-mobile[_ngcontent-%COMP%]{display:none}}@media screen and (max-width: 61.9375rem){.u-hide-on-tablet[_ngcontent-%COMP%]{display:none}}pre[_ngcontent-%COMP%]{tab-size:2}.u-text-readable[_ngcontent-%COMP%]{max-width:28rem}.aui-footer[_ngcontent-%COMP%]{background:#141414}.aui-footer[_ngcontent-%COMP%] .u-container[_ngcontent-%COMP%]{padding-bottom:1.5rem;padding-top:1.5rem}.aui-footer[_ngcontent-%COMP%] .a-list[_ngcontent-%COMP%]{list-style:none;padding-left:0}.aui-footer[_ngcontent-%COMP%] .a-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{--link-color: #fff;--link-hover-color: var(--theme1-050)}.aui-footer[_ngcontent-%COMP%] h3.h4[_ngcontent-%COMP%]{color:#f3f3f3}.m-nav-tabs__layout[_ngcontent-%COMP%]{box-shadow:0 -1px #6f6f6f inset}.aui-code-snippet[_ngcontent-%COMP%]{display:block;overflow-x:auto}.o-leaflet__wrapper[_ngcontent-%COMP%]{overflow:visible!important}.o-leaflet__map[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 3px Highlight;box-shadow:0 0 0 3px -webkit-focus-ring-color}.p-fix-position[_ngcontent-%COMP%] .o-header__logo[_ngcontent-%COMP%]{position:static}.u-datepicker[_ngcontent-%COMP%]{margin-bottom:15rem}.u-main[_ngcontent-%COMP%], main[_ngcontent-%COMP%]{display:flex;flex-direction:column}@media screen and (min-width: 45rem){.u-main[_ngcontent-%COMP%], main[_ngcontent-%COMP%]{flex-direction:row}}@media screen and (max-width: 44.9375rem){.u-main-menu[_ngcontent-%COMP%]{border-bottom:1px solid #6f6f6f;height:50vh;overflow:auto}}@media screen and (min-width: 45rem){.u-main-menu[_ngcontent-%COMP%]{border-right:1px solid #6f6f6f;flex:0 1 320px}}']})),t})();const y$=[{path:"",redirectTo:"modules",pathMatch:"full"}];let E0=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke,cn]})),t})(),OL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke,dh]})),t})(),T0=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke]})),t})(),kL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[zp.vp],imports:[Ke,zp.n6]})),t})(),FL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke,cn]})),t})(),RL=(()=>{class t{static forChild(e,r){return{ngModule:t,providers:[FC,{provide:LC,useValue:e},{provide:AC,useValue:r}]}}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[FC,{provide:LC,useValue:IC},{provide:AC,useValue:PC}],imports:[Ke,cn]})),t})(),ax=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[EI],imports:[Ke]})),t})(),NL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke,ax,cn]})),t})(),BL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke]})),t})();const VL=new i.InjectionToken("paginationLabels"),b$={PAGINATION_LABEL:"%{currentPage} of %{total}"};let jL=(()=>{class t{static forChild(e){return{ngModule:t,providers:[{provide:VL,useValue:e}]}}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[{provide:VL,useValue:b$}],imports:[Ke,cn]})),t})(),UL=(()=>{class t{static forChild(e,r){return{ngModule:t,providers:[{provide:wT,useValue:e},{provide:CT,useValue:r}]}}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[{provide:wT,useValue:void 0},{provide:CT,useValue:void 0}],imports:[Ke,er,cn,Nk]})),t})(),HL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke]})),t})(),zL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[DT],imports:[Ke,cn,er]})),t})(),$L=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke,cn,ip]})),t})(),GL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke]})),t})(),WL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[nP],imports:[Ke,er,ip,vj]})),t})(),ZL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke,er]})),t})(),qL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke,ip,er,cn]})),t})(),YL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Tl,Ke,cn]})),t})(),QL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[a0],imports:[cn]})),t})();function w$(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.remove())}),i.\u0275\u0275element(1,"aui-icon",6),i.\u0275\u0275elementEnd()}}function C$(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"h1"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(e.options.titleClass+" h5 u-margin-bottom-xs"),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",e.title," ")}}function D$(t,n){if(1&t&&i.\u0275\u0275element(0,"div",7),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(e.options.messageClass),i.\u0275\u0275property("innerHTML",e.message,i.\u0275\u0275sanitizeHtml)}}function S$(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"p",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(e.options.messageClass),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",e.message," ")}}let E$=(()=>{class t extends ox{}return _(t,"\u0275fac",function(){let n;return function(r){return(n||(n=i.\u0275\u0275getInheritedFactory(t)))(r||t)}}()),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-notification"]],features:[i.\u0275\u0275InheritDefinitionFeature],decls:5,vars:6,consts:[[1,"m-alert"],["class","a-button a-button--text has-icon m-alert__close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[1,"a-button","a-button--text","has-icon","m-alert__close",3,"click"],["name","ai-close","ariaLabel","Sluiten"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,w$,2,0,"button",1),i.\u0275\u0275template(2,C$,2,3,"h1",2),i.\u0275\u0275template(3,D$,1,3,"div",3),i.\u0275\u0275template(4,S$,2,3,"p",4),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275styleProp("display","inactive"===r.state.value?"none":""),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.message&&r.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.message&&!r.options.enableHtml))},dependencies:[Fe,Gt],styles:['[_ngcontent-%COMP%]:root{--theme1-600: #002855;--theme1-500: #003865;--theme1-400: #0057b7;--theme1-300: #009cde;--theme1-200: #41b6e6;--theme1-100: #99d6ea;--theme1-075: #96b5e4;--theme1-050: #e0ebf6;--theme2-600: #7c2629;--theme2-500: #862633;--theme2-400: #cf0039;--theme2-300: #df4661;--theme2-200: #ffb1bb;--theme2-100: #f5dadf;--success-700: #004721;--success-600: #006e33;--success-500: #4c8d2b;--success-400: #6cc24a;--success-300: #97d700;--success-200: #bce194;--success-100: #d0debb;--success-050: #edf8e9;--warning-500: #8f3400;--warning-400: #ce4c00;--warning-050: #ffe4d6;--danger-600: #7c2629;--danger-500: #af272f;--danger-400: #e03c31;--danger-300: #e56a54;--danger-200: #e6baa8;--danger-100: #f3cfb3;--danger-050: #fbe8e6;--text-color: #000;--text-color-light: #6f6f6f;--text-color-xlight: #fff;--bg-color: #d8d8d8;--bg-color-light: #f3f3f3;--border-color: #949494;--overlay-color: rgba(0, 0, 0, .75);--box-shadow-color: rgba(20, 20, 20, .12);--state-info: var(--theme1-400);--state-success: var(--success-600);--state-warning: var(--warning-400);--state-danger: var(--danger-500);--state-disabled: #6f6f6f;--spacer: 1.5rem;--spacer-3xl: calc(var(--spacer) * 4);--spacer-xxl: calc(var(--spacer) * 2.5);--spacer-xl: calc(var(--spacer) * 2);--spacer-l: calc(var(--spacer) * 1.5);--spacer-s: calc(var(--spacer) / 1.5);--spacer-xs: calc(var(--spacer) / 2);--spacer-xxs: calc(var(--spacer) / 3);--spacer-3xs: calc(var(--spacer) / 6);--screen-xs: 30rem;--screen-s: 45rem;--screen-l: 62rem;--screen-xl: 75rem;--screen-xxl: calc(var(--screen-xl) + calc(var(--spacer-3xl) * 2) + calc(var(--spacer) * 2));--screen-xs-max: 44.9375rem;--screen-s-max: 61.9375rem;--screen-l-max: 74.9375rem;--screen-xl-max: 89.9375rem;--font-family-base: "Sun Antwerpen", sans-serif;--font-family-headings: "Antwerpen Regular", sans-serif;--font-family-monospace: "Menlo", "Monaco", "Consolas", "Courier New", monospace;--font-weight-light: 300;--font-weight-normal: 500;--font-weight-bold: 700;--font-weight-extra-bold: 800;--font-weight-h1: var(--font-weight-normal);--font-weight-h2: var(--font-weight-normal);--font-weight-h3: var(--font-weight-normal);--font-weight-h4: var(--font-weight-normal);--font-weight-h5: var(--font-weight-normal);--font-weight-h6: var(--font-weight-normal);--link-color: var(--theme1-400);--link-hover-color: var(--theme1-500);--border-radius: 0;--border-width: 1px;--animation-duration: .2s;--animation-easing: ease-in-out;--animation-normal: var(--animation-duration) var(--animation-easing);--box-shadow-bottom-left: calc(var(--spacer) / -2) calc(var(--spacer) / 2) 0 var(--box-shadow-color);--box-shadow-bottom-right: calc(var(--spacer) / 2) calc(var(--spacer) / 2) 0 var(--box-shadow-color);--box-shadow-upper-left: calc(var(--spacer) / -2) calc(var(--spacer) / -2) 0 var(--box-shadow-color);--box-shadow-upper-right: calc(var(--spacer) / 2) calc(var(--spacer) / -2) 0 var(--box-shadow-color);--box-shadow: var(--box-shadow-bottom-right);--shared-avatar-size-s: var(--spacer-l);--shared-avatar-size: var(--spacer-xl);--shared-avatar-size-l: var(--spacer-xxl);--shared-copyright-color: #fff;--shared-copyright-height: var(--spacer-l);--shared-header-height: var(--spacer-xl);--shared-slideshow-footer-color-light: #fff}.toast-center-center[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%)}.toast-top-center[_ngcontent-%COMP%]{top:0;right:0;width:100%}.toast-bottom-center[_ngcontent-%COMP%]{bottom:0;right:0;width:100%}.toast-top-full-width[_ngcontent-%COMP%]{top:0;right:0;width:100%}.toast-bottom-full-width[_ngcontent-%COMP%]{bottom:0;right:0;width:100%}.toast-top-left[_ngcontent-%COMP%]{top:12px;left:12px}.toast-top-right[_ngcontent-%COMP%]{top:12px;right:12px}.toast-bottom-right[_ngcontent-%COMP%]{right:12px;bottom:12px}.toast-bottom-left[_ngcontent-%COMP%]{bottom:12px;left:12px}.toast-title[_ngcontent-%COMP%]{font-weight:700}.toast-message[_ngcontent-%COMP%]{word-wrap:break-word}.toast-message[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .toast-message[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#fff}.toast-message[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#ccc;text-decoration:none}.toast-close-button[_ngcontent-%COMP%]{position:relative;right:-.3em;top:-.3em;float:right;font-size:20px;font-weight:700;color:#fff;text-shadow:0 1px 0 #ffffff}.toast-close-button[_ngcontent-%COMP%]:hover, .toast-close-button[_ngcontent-%COMP%]:focus{color:#000;text-decoration:none;cursor:pointer;opacity:.4}button.toast-close-button[_ngcontent-%COMP%]{padding:0;cursor:pointer;background:transparent;border:0}.toast-container[_ngcontent-%COMP%]{pointer-events:none;position:fixed;z-index:999999}.toast-container[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{box-sizing:border-box}.toast-container[_ngcontent-%COMP%] .ngx-toastr[_ngcontent-%COMP%]{position:relative;overflow:hidden;margin:0 0 6px;padding:15px 15px 15px 50px;width:300px;border-radius:3px;background-position:15px center;background-repeat:no-repeat;background-size:24px;box-shadow:0 0 12px #999;color:#fff}.toast-container[_ngcontent-%COMP%] .ngx-toastr[_ngcontent-%COMP%]:hover{box-shadow:0 0 12px #000;opacity:1;cursor:pointer}.toast-info[_ngcontent-%COMP%]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1MTIgNTEyJyB3aWR0aD0nNTEyJyBoZWlnaHQ9JzUxMic+PHBhdGggZmlsbD0ncmdiKDI1NSwyNTUsMjU1KScgZD0nTTI1NiA4QzExOS4wNDMgOCA4IDExOS4wODMgOCAyNTZjMCAxMzYuOTk3IDExMS4wNDMgMjQ4IDI0OCAyNDhzMjQ4LTExMS4wMDMgMjQ4LTI0OEM1MDQgMTE5LjA4MyAzOTIuOTU3IDggMjU2IDh6bTAgMTEwYzIzLjE5NiAwIDQyIDE4LjgwNCA0MiA0MnMtMTguODA0IDQyLTQyIDQyLTQyLTE4LjgwNC00Mi00MiAxOC44MDQtNDIgNDItNDJ6bTU2IDI1NGMwIDYuNjI3LTUuMzczIDEyLTEyIDEyaC04OGMtNi42MjcgMC0xMi01LjM3My0xMi0xMnYtMjRjMC02LjYyNyA1LjM3My0xMiAxMi0xMmgxMnYtNjRoLTEyYy02LjYyNyAwLTEyLTUuMzczLTEyLTEydi0yNGMwLTYuNjI3IDUuMzczLTEyIDEyLTEyaDY0YzYuNjI3IDAgMTIgNS4zNzMgMTIgMTJ2MTAwaDEyYzYuNjI3IDAgMTIgNS4zNzMgMTIgMTJ2MjR6Jy8+PC9zdmc+)}.toast-error[_ngcontent-%COMP%]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1MTIgNTEyJyB3aWR0aD0nNTEyJyBoZWlnaHQ9JzUxMic+PHBhdGggZmlsbD0ncmdiKDI1NSwyNTUsMjU1KScgZD0nTTI1NiA4QzExOSA4IDggMTE5IDggMjU2czExMSAyNDggMjQ4IDI0OCAyNDgtMTExIDI0OC0yNDhTMzkzIDggMjU2IDh6bTEyMS42IDMxMy4xYzQuNyA0LjcgNC43IDEyLjMgMCAxN0wzMzggMzc3LjZjLTQuNyA0LjctMTIuMyA0LjctMTcgMEwyNTYgMzEybC02NS4xIDY1LjZjLTQuNyA0LjctMTIuMyA0LjctMTcgMEwxMzQuNCAzMzhjLTQuNy00LjctNC43LTEyLjMgMC0xN2w2NS42LTY1LTY1LjYtNjUuMWMtNC43LTQuNy00LjctMTIuMyAwLTE3bDM5LjYtMzkuNmM0LjctNC43IDEyLjMtNC43IDE3IDBsNjUgNjUuNyA2NS4xLTY1LjZjNC43LTQuNyAxMi4zLTQuNyAxNyAwbDM5LjYgMzkuNmM0LjcgNC43IDQuNyAxMi4zIDAgMTdMMzEyIDI1Nmw2NS42IDY1LjF6Jy8+PC9zdmc+)}.toast-success[_ngcontent-%COMP%]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1MTIgNTEyJyB3aWR0aD0nNTEyJyBoZWlnaHQ9JzUxMic+PHBhdGggZmlsbD0ncmdiKDI1NSwyNTUsMjU1KScgZD0nTTE3My44OTggNDM5LjQwNGwtMTY2LjQtMTY2LjRjLTkuOTk3LTkuOTk3LTkuOTk3LTI2LjIwNiAwLTM2LjIwNGwzNi4yMDMtMzYuMjA0YzkuOTk3LTkuOTk4IDI2LjIwNy05Ljk5OCAzNi4yMDQgMEwxOTIgMzEyLjY5IDQzMi4wOTUgNzIuNTk2YzkuOTk3LTkuOTk3IDI2LjIwNy05Ljk5NyAzNi4yMDQgMGwzNi4yMDMgMzYuMjA0YzkuOTk3IDkuOTk3IDkuOTk3IDI2LjIwNiAwIDM2LjIwNGwtMjk0LjQgMjk0LjQwMWMtOS45OTggOS45OTctMjYuMjA3IDkuOTk3LTM2LjIwNC0uMDAxeicvPjwvc3ZnPg==)}.toast-warning[_ngcontent-%COMP%]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1NzYgNTEyJyB3aWR0aD0nNTc2JyBoZWlnaHQ9JzUxMic+PHBhdGggZmlsbD0ncmdiKDI1NSwyNTUsMjU1KScgZD0nTTU2OS41MTcgNDQwLjAxM0M1ODcuOTc1IDQ3Mi4wMDcgNTY0LjgwNiA1MTIgNTI3Ljk0IDUxMkg0OC4wNTRjLTM2LjkzNyAwLTU5Ljk5OS00MC4wNTUtNDEuNTc3LTcxLjk4N0wyNDYuNDIzIDIzLjk4NWMxOC40NjctMzIuMDA5IDY0LjcyLTMxLjk1MSA4My4xNTQgMGwyMzkuOTQgNDE2LjAyOHpNMjg4IDM1NGMtMjUuNDA1IDAtNDYgMjAuNTk1LTQ2IDQ2czIwLjU5NSA0NiA0NiA0NiA0Ni0yMC41OTUgNDYtNDYtMjAuNTk1LTQ2LTQ2LTQ2em0tNDMuNjczLTE2NS4zNDZsNy40MTggMTM2Yy4zNDcgNi4zNjQgNS42MDkgMTEuMzQ2IDExLjk4MiAxMS4zNDZoNDguNTQ2YzYuMzczIDAgMTEuNjM1LTQuOTgyIDExLjk4Mi0xMS4zNDZsNy40MTgtMTM2Yy4zNzUtNi44NzQtNS4wOTgtMTIuNjU0LTExLjk4Mi0xMi42NTRoLTYzLjM4M2MtNi44ODQgMC0xMi4zNTYgNS43OC0xMS45ODEgMTIuNjU0eicvPjwvc3ZnPg==)}.toast-container.toast-top-center[_ngcontent-%COMP%] .ngx-toastr[_ngcontent-%COMP%], .toast-container.toast-bottom-center[_ngcontent-%COMP%] .ngx-toastr[_ngcontent-%COMP%]{width:300px;margin-left:auto;margin-right:auto}.toast-container.toast-top-full-width[_ngcontent-%COMP%] .ngx-toastr[_ngcontent-%COMP%], .toast-container.toast-bottom-full-width[_ngcontent-%COMP%] .ngx-toastr[_ngcontent-%COMP%]{width:96%;margin-left:auto;margin-right:auto}.ngx-toastr[_ngcontent-%COMP%]{background-color:#030303;pointer-events:auto}.toast-success[_ngcontent-%COMP%]{background-color:#51a351}.toast-error[_ngcontent-%COMP%]{background-color:#bd362f}.toast-info[_ngcontent-%COMP%]{background-color:#2f96b4}.toast-warning[_ngcontent-%COMP%]{background-color:#f89406}.toast-progress[_ngcontent-%COMP%]{position:absolute;left:0;bottom:0;height:4px;background-color:#000;opacity:.4}@media all and (max-width: 240px){.toast-container[_ngcontent-%COMP%] .ngx-toastr.div[_ngcontent-%COMP%]{padding:8px 8px 8px 50px;width:11em}.toast-container[_ngcontent-%COMP%] .toast-close-button[_ngcontent-%COMP%]{right:-.2em;top:-.2em}}@media all and (min-width: 241px) and (max-width: 480px){.toast-container[_ngcontent-%COMP%] .ngx-toastr.div[_ngcontent-%COMP%]{padding:8px 8px 8px 50px;width:18em}.toast-container[_ngcontent-%COMP%] .toast-close-button[_ngcontent-%COMP%]{right:-.2em;top:-.2em}}@media all and (min-width: 481px) and (max-width: 768px){.toast-container[_ngcontent-%COMP%] .ngx-toastr.div[_ngcontent-%COMP%]{padding:15px 15px 15px 50px;width:25em}} .toast-container{display:flex;flex-direction:column-reverse;max-width:18.5rem;position:fixed;right:.75rem;top:3rem;z-index:8}[_nghost-%COMP%]{margin-top:.75rem}.toast-success[_nghost-%COMP%] .m-alert[_ngcontent-%COMP%]{--alert-color: var(--alert-success-color);--alert-border-color: var(--alert-success-border-color)}.toast-success[_nghost-%COMP%] .m-alert[_ngcontent-%COMP%] .a-button--text[_ngcontent-%COMP%]{--btn-color: var(--btn-text-success-color);--btn-hover-color: var(--btn-text-success-hover-color);--btn-hover-bg-color: var(--btn-text-success-hover-bg-color)}.toast-warning[_nghost-%COMP%] .m-alert[_ngcontent-%COMP%]{--alert-color: var(--alert-warning-color);--alert-border-color: var(--alert-warning-border-color)}.toast-warning[_nghost-%COMP%] .m-alert[_ngcontent-%COMP%] .a-button--text[_ngcontent-%COMP%]{--btn-color: var(--btn-text-warning-color);--btn-hover-color: var(--btn-text-warning-hover-color);--btn-hover-bg-color: var(--btn-text-warning-hover-bg-color)}.toast-error[_nghost-%COMP%] .m-alert[_ngcontent-%COMP%]{--alert-color: var(--alert-danger-color);--alert-border-color: var(--alert-danger-border-color)}.toast-error[_nghost-%COMP%] .m-alert[_ngcontent-%COMP%] .a-button--text[_ngcontent-%COMP%]{--btn-color: var(--btn-text-danger-color);--btn-hover-color: var(--btn-text-danger-hover-color);--btn-hover-bg-color: var(--btn-text-danger-hover-bg-color)}'],data:{animation:[SL("flyInOut",[C0("inactive",ps({opacity:0})),D0("inactive => active",w0("250ms ease-in-out",TL([ps({transform:"translate(100%, 0)",opacity:0}),ps({transform:"none",opacity:1})]))),D0("active => removed",w0("300ms ease-in-out",TL([ps({opacity:1}),ps({transform:"translate(100%, 0)",opacity:0})])))])]}})),t})(),KL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke,cn,X5.forRoot({toastComponent:E$,closeButton:!0})]})),t})(),JL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[E0,OL,T0,kL,FL,RL,CI,ax,NL,BL,jL,UL,HL,zL,$L,GL,WL,rP.forChild(["Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag","Zondag"],["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],{ERRORS_INVALID_DATE:"Ongeldige datum.",ERRORS_INVALID_RANGE:"Deze datum kan niet gekozen worden."}),ZL,qL,YL,cP,E0,T0,QL,kP,RP,BP,_L,KL,E0,kL,OL,T0,FL,RL,CI,ax,NL,BL,jL,UL,HL,zL,$L,GL,WL,rP,ZL,qL,YL,cP,E0,T0,QL,kP,RP,BP,_L,KL]})),t})();function XL(t){return new i.\u0275RuntimeError(3e3,!1)}function s7(){return typeof window<"u"&&typeof window.document<"u"}function lx(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function $l(t){switch(t.length){case 0:return new J_;case 1:return t[0];default:return new ML(t)}}function eA(t,n,e,r,o=new Map,c=new Map){const h=[],y=[];let D=-1,x=null;if(r.forEach(A=>{const k=A.get("offset"),j=k==D,V=j&&x||new Map;A.forEach((K,se)=>{let ae=se,de=K;if("offset"!==se)switch(ae=n.normalizePropertyName(ae,h),de){case ix:de=o.get(se);break;case ha:de=c.get(se);break;default:de=n.normalizeStyleValue(se,ae,de,h)}V.set(ae,de)}),j||y.push(V),x=V,D=k}),h.length)throw function q$(t){return new i.\u0275RuntimeError(3502,!1)}();return y}function ux(t,n,e,r){switch(n){case"start":t.onStart(()=>r(e&&cx(e,"start",t)));break;case"done":t.onDone(()=>r(e&&cx(e,"done",t)));break;case"destroy":t.onDestroy(()=>r(e&&cx(e,"destroy",t)))}}function cx(t,n,e){const c=dx(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),h=t._data;return null!=h&&(c._data=h),c}function dx(t,n,e,r,o="",c=0,h){return{element:t,triggerName:n,fromState:e,toState:r,phaseName:o,totalTime:c,disabled:!!h}}function Ir(t,n,e){let r=t.get(n);return r||t.set(n,r=e),r}function tA(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let hx=(t,n)=>!1,nA=(t,n,e)=>[],iA=null;function fx(t){const n=t.parentNode||t.host;return n===iA?null:n}(lx()||typeof Element<"u")&&(s7()?(iA=(()=>document.documentElement)(),hx=(t,n)=>{for(;n;){if(n===t)return!0;n=fx(n)}return!1}):hx=(t,n)=>t.contains(n),nA=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const r=t.querySelector(n);return r?[r]:[]});let Rc=null,rA=!1;const oA=hx,sA=nA;let aA=(()=>{class t{validateStyleProperty(e){return function l7(t){Rc||(Rc=function u7(){return typeof document<"u"?document.body:null}()||{},rA=!!Rc.style&&"WebkitAppearance"in Rc.style);let n=!0;return Rc.style&&!function a7(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Rc.style,!n&&rA&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Rc.style)),n}(e)}matchesElement(e,r){return!1}containsElement(e,r){return oA(e,r)}getParentElement(e){return fx(e)}query(e,r,o){return sA(e,r,o)}computeStyle(e,r,o){return o||""}animate(e,r,o,c,h,y=[],D){return new J_(o,c)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),px=(()=>{class t{}return t.NOOP=new aA,t})();const c7=1e3,mx="ng-enter",x0="ng-leave",M0="ng-trigger",I0=".ng-trigger",uA="ng-animating",gx=".ng-animating";function fa(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:_x(parseFloat(n[1]),n[2])}function _x(t,n){return"s"===n?t*c7:t}function P0(t,n,e){return t.hasOwnProperty("duration")?t:function h7(t,n,e){let o,c=0,h="";if("string"==typeof t){const y=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===y)return n.push(XL()),{duration:0,delay:0,easing:""};o=_x(parseFloat(y[1]),y[2]);const D=y[3];null!=D&&(c=_x(parseFloat(D),y[4]));const x=y[5];x&&(h=x)}else o=t;if(!e){let y=!1,D=n.length;o<0&&(n.push(function T$(){return new i.\u0275RuntimeError(3100,!1)}()),y=!0),c<0&&(n.push(function x$(){return new i.\u0275RuntimeError(3101,!1)}()),y=!0),y&&n.splice(D,0,XL())}return{duration:o,delay:c,easing:h}}(t,n,e)}function X_(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function cA(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Gl(t,n=new Map,e){if(e)for(let[r,o]of e)n.set(r,o);for(let[r,o]of t)n.set(r,o);return n}function hA(t,n,e){return e?n+":"+e+";":""}function fA(t){let n="";for(let e=0;e{const c=yx(o);e&&!e.has(o)&&e.set(o,t.style[c]),t.style[c]=r}),lx()&&fA(t))}function Nc(t,n){t.style&&(n.forEach((e,r)=>{const o=yx(r);t.style[o]=""}),lx()&&fA(t))}function ev(t){return Array.isArray(t)?1==t.length?t[0]:EL(t):t}const vx=new RegExp("{{\\s*(.+?)\\s*}}","g");function pA(t){let n=[];if("string"==typeof t){let e;for(;e=vx.exec(t);)n.push(e[1]);vx.lastIndex=0}return n}function tv(t,n,e){const r=t.toString(),o=r.replace(vx,(c,h)=>{let y=n[h];return null==y&&(e.push(function I$(t){return new i.\u0275RuntimeError(3003,!1)}()),y=""),y.toString()});return o==r?t:o}function L0(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const m7=/-+([a-z0-9])/g;function yx(t){return t.replace(m7,(...n)=>n[1].toUpperCase())}function g7(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Pr(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function P$(t){return new i.\u0275RuntimeError(3004,!1)}()}}function mA(t,n){return window.getComputedStyle(t)[n]}const k0="*";function C7(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(r=>function D7(t,n,e){if(":"==t[0]){const D=function S7(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,r)=>parseFloat(r)>parseFloat(e);case":decrement":return(e,r)=>parseFloat(r) *"}}(t,e);if("function"==typeof D)return void n.push(D);t=D}const r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return e.push(function z$(t){return new i.\u0275RuntimeError(3015,!1)}()),n;const o=r[1],c=r[2],h=r[3];n.push(gA(o,h));"<"==c[0]&&!(o==k0&&h==k0)&&n.push(gA(h,o))}(r,e,n)):e.push(t),e}const F0=new Set(["true","1"]),R0=new Set(["false","0"]);function gA(t,n){const e=F0.has(t)||R0.has(t),r=F0.has(n)||R0.has(n);return(o,c)=>{let h=t==k0||t==o,y=n==k0||n==c;return!h&&e&&"boolean"==typeof o&&(h=o?F0.has(t):R0.has(t)),!y&&r&&"boolean"==typeof c&&(y=c?F0.has(n):R0.has(n)),h&&y}}const E7=new RegExp("s*:selfs*,?","g");function bx(t,n,e,r){return new T7(t).build(n,e,r)}class T7{constructor(n){this._driver=n}build(n,e,r){const o=new I7(e);return this._resetContextStyleTimingState(o),Pr(this,ev(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let r=e.queryCount=0,o=e.depCount=0;const c=[],h=[];return"@"==n.name.charAt(0)&&e.errors.push(function A$(){return new i.\u0275RuntimeError(3006,!1)}()),n.definitions.forEach(y=>{if(this._resetContextStyleTimingState(e),0==y.type){const D=y,x=D.name;x.toString().split(/\s*,\s*/).forEach(A=>{D.name=A,c.push(this.visitState(D,e))}),D.name=x}else if(1==y.type){const D=this.visitTransition(y,e);r+=D.queryCount,o+=D.depCount,h.push(D)}else e.errors.push(function O$(){return new i.\u0275RuntimeError(3007,!1)}())}),{type:7,name:n.name,states:c,transitions:h,queryCount:r,depCount:o,options:null}}visitState(n,e){const r=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(r.containsDynamicStyles){const c=new Set,h=o||{};r.styles.forEach(y=>{y instanceof Map&&y.forEach(D=>{pA(D).forEach(x=>{h.hasOwnProperty(x)||c.add(x)})})}),c.size&&(L0(c.values()),e.errors.push(function k$(t,n){return new i.\u0275RuntimeError(3008,!1)}()))}return{type:0,name:n.name,style:r,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const r=Pr(this,ev(n.animation),e);return{type:1,matchers:C7(n.expr,e.errors),animation:r,queryCount:e.queryCount,depCount:e.depCount,options:Bc(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(r=>Pr(this,r,e)),options:Bc(n.options)}}visitGroup(n,e){const r=e.currentTime;let o=0;const c=n.steps.map(h=>{e.currentTime=r;const y=Pr(this,h,e);return o=Math.max(o,e.currentTime),y});return e.currentTime=o,{type:3,steps:c,options:Bc(n.options)}}visitAnimate(n,e){const r=function L7(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return wx(P0(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(c=>"{"==c.charAt(0)&&"{"==c.charAt(1))){const c=wx(0,0,"");return c.dynamic=!0,c.strValue=e,c}const o=P0(e,n);return wx(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=r;let o,c=n.styles?n.styles:ps({});if(5==c.type)o=this.visitKeyframes(c,e);else{let h=n.styles,y=!1;if(!h){y=!0;const x={};r.easing&&(x.easing=r.easing),h=ps(x)}e.currentTime+=r.duration+r.delay;const D=this.visitStyle(h,e);D.isEmptyStep=y,o=D}return e.currentAnimateTimings=null,{type:4,timings:r,style:o,options:null}}visitStyle(n,e){const r=this._makeStyleAst(n,e);return this._validateStyleAst(r,e),r}_makeStyleAst(n,e){const r=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let y of o)"string"==typeof y?y===ha?r.push(y):e.errors.push(new i.\u0275RuntimeError(3002,!1)):r.push(cA(y));let c=!1,h=null;return r.forEach(y=>{if(y instanceof Map&&(y.has("easing")&&(h=y.get("easing"),y.delete("easing")),!c))for(let D of y.values())if(D.toString().indexOf("{{")>=0){c=!0;break}}),{type:6,styles:r,easing:h,offset:n.offset,containsDynamicStyles:c,options:null}}_validateStyleAst(n,e){const r=e.currentAnimateTimings;let o=e.currentTime,c=e.currentTime;r&&c>0&&(c-=r.duration+r.delay),n.styles.forEach(h=>{"string"!=typeof h&&h.forEach((y,D)=>{const x=e.collectedStyles.get(e.currentQuerySelector),A=x.get(D);let k=!0;A&&(c!=o&&c>=A.startTime&&o<=A.endTime&&(e.errors.push(function R$(t,n,e,r,o){return new i.\u0275RuntimeError(3010,!1)}()),k=!1),c=A.startTime),k&&x.set(D,{startTime:c,endTime:o}),e.options&&function p7(t,n,e){const r=n.params||{},o=pA(t);o.length&&o.forEach(c=>{r.hasOwnProperty(c)||e.push(function M$(t){return new i.\u0275RuntimeError(3001,!1)}())})}(y,e.options,e.errors)})})}visitKeyframes(n,e){const r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function N$(){return new i.\u0275RuntimeError(3011,!1)}()),r;let c=0;const h=[];let y=!1,D=!1,x=0;const A=n.steps.map(de=>{const ye=this._makeStyleAst(de,e);let lt=null!=ye.offset?ye.offset:function P7(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const r=e;n=parseFloat(r.get("offset")),r.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(ye.styles),tt=0;return null!=lt&&(c++,tt=ye.offset=lt),D=D||tt<0||tt>1,y=y||tt0&&c{const lt=j>0?ye==V?1:j*ye:h[ye],tt=lt*ae;e.currentTime=K+se.delay+tt,se.duration=tt,this._validateStyleAst(de,e),de.offset=lt,r.styles.push(de)}),r}visitReference(n,e){return{type:8,animation:Pr(this,ev(n.animation),e),options:Bc(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Bc(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Bc(n.options)}}visitQuery(n,e){const r=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[c,h]=function x7(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(E7,"")),t=t.replace(/@\*/g,I0).replace(/@\w+/g,e=>I0+"-"+e.slice(1)).replace(/:animating/g,gx),[t,n]}(n.selector);e.currentQuerySelector=r.length?r+" "+c:c,Ir(e.collectedStyles,e.currentQuerySelector,new Map);const y=Pr(this,ev(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=r,{type:11,selector:c,limit:o.limit||0,optional:!!o.optional,includeSelf:h,animation:y,originalSelector:n.selector,options:Bc(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function U$(){return new i.\u0275RuntimeError(3013,!1)}());const r="full"===n.timings?{duration:0,delay:0,easing:"full"}:P0(n.timings,e.errors,!0);return{type:12,animation:Pr(this,ev(n.animation),e),timings:r,options:null}}}class I7{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Bc(t){return t?(t=X_(t)).params&&(t.params=function M7(t){return t?X_(t):null}(t.params)):t={},t}function wx(t,n,e){return{duration:t,delay:n,easing:e}}function Cx(t,n,e,r,o,c,h=null,y=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:r,duration:o,delay:c,totalTime:o+c,easing:h,subTimeline:y}}class N0{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let r=this._map.get(n);r||this._map.set(n,r=[]),r.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const k7=new RegExp(":enter","g"),R7=new RegExp(":leave","g");function Dx(t,n,e,r,o,c=new Map,h=new Map,y,D,x=[]){return(new N7).buildKeyframes(t,n,e,r,o,c,h,y,D,x)}class N7{buildKeyframes(n,e,r,o,c,h,y,D,x,A=[]){x=x||new N0;const k=new Sx(n,e,x,o,c,A,[]);k.options=D;const j=D.delay?fa(D.delay):0;k.currentTimeline.delayNextStep(j),k.currentTimeline.setStyles([h],null,k.errors,D),Pr(this,r,k);const V=k.timelines.filter(K=>K.containsAnimation());if(V.length&&y.size){let K;for(let se=V.length-1;se>=0;se--){const ae=V[se];if(ae.element===e){K=ae;break}}K&&!K.allowOnlyTimelineStyles()&&K.setStyles([y],null,k.errors,D)}return V.length?V.map(K=>K.buildKeyframes()):[Cx(e,[],[],[],0,j,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const r=e.subInstructions.get(e.element);if(r){const o=e.createSubContext(n.options),c=e.currentTimeline.currentTime,h=this._visitSubInstructions(r,o,o.options);c!=h&&e.transformIntoNewTimeline(h)}e.previousNode=n}visitAnimateRef(n,e){const r=e.createSubContext(n.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,r),this.visitReference(n.animation,r),e.transformIntoNewTimeline(r.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,r){for(const o of n){const c=o?.delay;if(c){const h="number"==typeof c?c:fa(tv(c,o?.params??{},e.errors));r.delayNextStep(h)}}}_visitSubInstructions(n,e,r){let c=e.currentTimeline.currentTime;const h=null!=r.duration?fa(r.duration):null,y=null!=r.delay?fa(r.delay):null;return 0!==h&&n.forEach(D=>{const x=e.appendInstructionToTimeline(D,h,y);c=Math.max(c,x.duration+x.delay)}),c}visitReference(n,e){e.updateOptions(n.options,!0),Pr(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const r=e.subContextCount;let o=e;const c=n.options;if(c&&(c.params||c.delay)&&(o=e.createSubContext(c),o.transformIntoNewTimeline(),null!=c.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=B0);const h=fa(c.delay);o.delayNextStep(h)}n.steps.length&&(n.steps.forEach(h=>Pr(this,h,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const r=[];let o=e.currentTimeline.currentTime;const c=n.options&&n.options.delay?fa(n.options.delay):0;n.steps.forEach(h=>{const y=e.createSubContext(n.options);c&&y.delayNextStep(c),Pr(this,h,y),o=Math.max(o,y.currentTimeline.currentTime),r.push(y.currentTimeline)}),r.forEach(h=>e.currentTimeline.mergeTimelineCollectedStyles(h)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const r=n.strValue;return P0(e.params?tv(r,e.params,e.errors):r,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const r=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;r.delay&&(e.incrementTime(r.delay),o.snapshotCurrentStyles());const c=n.style;5==c.type?this.visitKeyframes(c,e):(e.incrementTime(r.duration),this.visitStyle(c,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const r=e.currentTimeline,o=e.currentAnimateTimings;!o&&r.hasCurrentStyleProperties()&&r.forwardFrame();const c=o&&o.easing||n.easing;n.isEmptyStep?r.applyEmptyStep(c):r.setStyles(n.styles,c,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const r=e.currentAnimateTimings,o=e.currentTimeline.duration,c=r.duration,y=e.createSubContext().currentTimeline;y.easing=r.easing,n.styles.forEach(D=>{y.forwardTime((D.offset||0)*c),y.setStyles(D.styles,D.easing,e.errors,e.options),y.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(y),e.transformIntoNewTimeline(o+c),e.previousNode=n}visitQuery(n,e){const r=e.currentTimeline.currentTime,o=n.options||{},c=o.delay?fa(o.delay):0;c&&(6===e.previousNode.type||0==r&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=B0);let h=r;const y=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=y.length;let D=null;y.forEach((x,A)=>{e.currentQueryIndex=A;const k=e.createSubContext(n.options,x);c&&k.delayNextStep(c),x===e.element&&(D=k.currentTimeline),Pr(this,n.animation,k),k.currentTimeline.applyStylesToKeyframe(),h=Math.max(h,k.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(h),D&&(e.currentTimeline.mergeTimelineCollectedStyles(D),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const r=e.parentContext,o=e.currentTimeline,c=n.timings,h=Math.abs(c.duration),y=h*(e.currentQueryTotal-1);let D=h*e.currentQueryIndex;switch(c.duration<0?"reverse":c.easing){case"reverse":D=y-D;break;case"full":D=r.currentStaggerTime}const A=e.currentTimeline;D&&A.delayNextStep(D);const k=A.currentTime;Pr(this,n.animation,e),e.previousNode=n,r.currentStaggerTime=o.currentTime-k+(o.startTime-r.currentTimeline.startTime)}}const B0={};class Sx{constructor(n,e,r,o,c,h,y,D){this._driver=n,this.element=e,this.subInstructions=r,this._enterClassName=o,this._leaveClassName=c,this.errors=h,this.timelines=y,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=B0,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=D||new V0(this._driver,e,0),y.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const r=n;let o=this.options;null!=r.duration&&(o.duration=fa(r.duration)),null!=r.delay&&(o.delay=fa(r.delay));const c=r.params;if(c){let h=o.params;h||(h=this.options.params={}),Object.keys(c).forEach(y=>{(!e||!h.hasOwnProperty(y))&&(h[y]=tv(c[y],h,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const r=n.params={};Object.keys(e).forEach(o=>{r[o]=e[o]})}}return n}createSubContext(n=null,e,r){const o=e||this.element,c=new Sx(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return c.previousNode=this.previousNode,c.currentAnimateTimings=this.currentAnimateTimings,c.options=this._copyOptions(),c.updateOptions(n),c.currentQueryIndex=this.currentQueryIndex,c.currentQueryTotal=this.currentQueryTotal,c.parentContext=this,this.subContextCount++,c}transformIntoNewTimeline(n){return this.previousNode=B0,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,r){const o={duration:e??n.duration,delay:this.currentTimeline.currentTime+(r??0)+n.delay,easing:""},c=new B7(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(c),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,r,o,c,h){let y=[];if(o&&y.push(this.element),n.length>0){n=(n=n.replace(k7,"."+this._enterClassName)).replace(R7,"."+this._leaveClassName);let x=this._driver.query(this.element,n,1!=r);0!==r&&(x=r<0?x.slice(x.length+r,x.length):x.slice(0,r)),y.push(...x)}return!c&&0==y.length&&h.push(function H$(t){return new i.\u0275RuntimeError(3014,!1)}()),y}}class V0{constructor(n,e,r,o){this._driver=n,this.element=e,this.startTime=r,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new V0(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,r]of this._globalTimelineStyles)this._backFill.set(e,r||ha),this._currentKeyframe.set(e,ha);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,r,o){e&&this._previousKeyframe.set("easing",e);const c=o&&o.params||{},h=function V7(t,n){const e=new Map;let r;return t.forEach(o=>{if("*"===o){r=r||n.keys();for(let c of r)e.set(c,ha)}else Gl(o,e)}),e}(n,this._globalTimelineStyles);for(let[y,D]of h){const x=tv(D,c,r);this._pendingStyles.set(y,x),this._localTimelineStyles.has(y)||this._backFill.set(y,this._globalTimelineStyles.get(y)??ha),this._updateStyle(y,x)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,r)=>{const o=this._styleSummary.get(r);(!o||e.time>o.time)&&this._updateStyle(r,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,r=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((y,D)=>{const x=Gl(y,new Map,this._backFill);x.forEach((A,k)=>{A===ix?n.add(k):A===ha&&e.add(k)}),r||x.set("offset",D/this.duration),o.push(x)});const c=n.size?L0(n.values()):[],h=e.size?L0(e.values()):[];if(r){const y=o[0],D=new Map(y);y.set("offset",0),D.set("offset",1),o=[y,D]}return Cx(this.element,o,c,h,this.duration,this.startTime,this.easing,!1)}}class B7 extends V0{constructor(n,e,r,o,c,h,y=!1){super(n,e,h.delay),this.keyframes=r,this.preStyleProps=o,this.postStyleProps=c,this._stretchStartingKeyframe=y,this.timings={duration:h.duration,delay:h.delay,easing:h.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:r,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const c=[],h=r+e,y=e/h,D=Gl(n[0]);D.set("offset",0),c.push(D);const x=Gl(n[0]);x.set("offset",yA(y)),c.push(x);const A=n.length-1;for(let k=1;k<=A;k++){let j=Gl(n[k]);const V=j.get("offset");j.set("offset",yA((e+V*r)/h)),c.push(j)}r=h,e=0,o="",n=c}return Cx(this.element,n,this.preStyleProps,this.postStyleProps,r,e,o,!0)}}function yA(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class Ex{}const j7=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class U7 extends Ex{normalizePropertyName(n,e){return yx(n)}normalizeStyleValue(n,e,r,o){let c="";const h=r.toString().trim();if(j7.has(e)&&0!==r&&"0"!==r)if("number"==typeof r)c="px";else{const y=r.match(/^[+-]?[\d\.]+([a-z]*)$/);y&&0==y[1].length&&o.push(function L$(t,n){return new i.\u0275RuntimeError(3005,!1)}())}return h+c}}function bA(t,n,e,r,o,c,h,y,D,x,A,k,j){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:c,toState:r,toStyles:h,timelines:y,queriedElements:D,preStyleProps:x,postStyleProps:A,totalTime:k,errors:j}}const Tx={};class wA{constructor(n,e,r){this._triggerName=n,this.ast=e,this._stateStyles=r}match(n,e,r,o){return function H7(t,n,e,r,o){return t.some(c=>c(n,e,r,o))}(this.ast.matchers,n,e,r,o)}buildStyles(n,e,r){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(e,r):new Map}build(n,e,r,o,c,h,y,D,x,A){const k=[],j=this.ast.options&&this.ast.options.params||Tx,K=this.buildStyles(r,y&&y.params||Tx,k),se=D&&D.params||Tx,ae=this.buildStyles(o,se,k),de=new Set,ye=new Map,lt=new Map,tt="void"===o,pt={params:z7(se,j),delay:this.ast.options?.delay},Ue=A?[]:Dx(n,e,this.ast.animation,c,h,K,ae,pt,x,k);let dt=0;if(Ue.forEach(li=>{dt=Math.max(li.duration+li.delay,dt)}),k.length)return bA(e,this._triggerName,r,o,tt,K,ae,[],[],ye,lt,dt,k);Ue.forEach(li=>{const Lr=li.element,cp=Ir(ye,Lr,new Set);li.preStyleProps.forEach(Po=>cp.add(Po));const pa=Ir(lt,Lr,new Set);li.postStyleProps.forEach(Po=>pa.add(Po)),Lr!==e&&de.add(Lr)});const tn=L0(de.values());return bA(e,this._triggerName,r,o,tt,K,ae,Ue,tn,ye,lt,dt)}}function z7(t,n){const e=X_(n);for(const r in t)t.hasOwnProperty(r)&&null!=t[r]&&(e[r]=t[r]);return e}class $7{constructor(n,e,r){this.styles=n,this.defaultParams=e,this.normalizer=r}buildStyles(n,e){const r=new Map,o=X_(this.defaultParams);return Object.keys(n).forEach(c=>{const h=n[c];null!==h&&(o[c]=h)}),this.styles.styles.forEach(c=>{"string"!=typeof c&&c.forEach((h,y)=>{h&&(h=tv(h,o,e));const D=this.normalizer.normalizePropertyName(y,e);h=this.normalizer.normalizeStyleValue(y,D,h,e),r.set(y,h)})}),r}}class W7{constructor(n,e,r){this.name=n,this.ast=e,this._normalizer=r,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new $7(o.style,o.options&&o.options.params||{},r))}),CA(this.states,"true","1"),CA(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new wA(n,o,this.states))}),this.fallbackTransition=function Z7(t,n,e){return new wA(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(h,y)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,r,o){return this.transitionFactories.find(h=>h.match(n,e,r,o))||null}matchStyles(n,e,r){return this.fallbackTransition.buildStyles(n,e,r)}}function CA(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const q7=new N0;class Y7{constructor(n,e,r){this.bodyNode=n,this._driver=e,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const r=[],o=[],c=bx(this._driver,e,r,o);if(r.length)throw function Y$(t){return new i.\u0275RuntimeError(3503,!1)}();this._animations.set(n,c)}_buildPlayer(n,e,r){const o=n.element,c=eA(0,this._normalizer,0,n.keyframes,e,r);return this._driver.animate(o,c,n.duration,n.delay,n.easing,[],!0)}create(n,e,r={}){const o=[],c=this._animations.get(n);let h;const y=new Map;if(c?(h=Dx(this._driver,e,c,mx,x0,new Map,new Map,r,q7,o),h.forEach(A=>{const k=Ir(y,A.element,new Map);A.postStyleProps.forEach(j=>k.set(j,null))})):(o.push(function Q$(){return new i.\u0275RuntimeError(3300,!1)}()),h=[]),o.length)throw function K$(t){return new i.\u0275RuntimeError(3504,!1)}();y.forEach((A,k)=>{A.forEach((j,V)=>{A.set(V,this._driver.computeStyle(k,V,ha))})});const x=$l(h.map(A=>{const k=y.get(A.element);return this._buildPlayer(A,new Map,k)}));return this._playersById.set(n,x),x.onDestroy(()=>this.destroy(n)),this.players.push(x),x}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const r=this.players.indexOf(e);r>=0&&this.players.splice(r,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function J$(t){return new i.\u0275RuntimeError(3301,!1)}();return e}listen(n,e,r,o){const c=dx(e,"","","");return ux(this._getPlayer(n),r,c,o),()=>{}}command(n,e,r,o){if("register"==r)return void this.register(n,o[0]);if("create"==r)return void this.create(n,e,o[0]||{});const c=this._getPlayer(n);switch(r){case"play":c.play();break;case"pause":c.pause();break;case"reset":c.reset();break;case"restart":c.restart();break;case"finish":c.finish();break;case"init":c.init();break;case"setPosition":c.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const DA="ng-animate-queued",xx="ng-animate-disabled",e6=[],SA={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},t6={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qr="__ng_removed";class Mx{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const r=n&&n.hasOwnProperty("value");if(this.value=function o6(t){return t??null}(r?n.value:n),r){const c=X_(n);delete c.value,this.options=c}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const r=this.options.params;Object.keys(e).forEach(o=>{null==r[o]&&(r[o]=e[o])})}}}const nv="void",Ix=new Mx(nv);class n6{constructor(n,e,r){this.id=n,this.hostElement=e,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Yr(e,this._hostClassName)}listen(n,e,r,o){if(!this._triggers.has(e))throw function X$(t,n){return new i.\u0275RuntimeError(3302,!1)}();if(null==r||0==r.length)throw function e7(t){return new i.\u0275RuntimeError(3303,!1)}();if(!function s6(t){return"start"==t||"done"==t}(r))throw function t7(t,n){return new i.\u0275RuntimeError(3400,!1)}();const c=Ir(this._elementListeners,n,[]),h={name:e,phase:r,callback:o};c.push(h);const y=Ir(this._engine.statesByElement,n,new Map);return y.has(e)||(Yr(n,M0),Yr(n,M0+"-"+e),y.set(e,Ix)),()=>{this._engine.afterFlush(()=>{const D=c.indexOf(h);D>=0&&c.splice(D,1),this._triggers.has(e)||y.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function n7(t){return new i.\u0275RuntimeError(3401,!1)}();return e}trigger(n,e,r,o=!0){const c=this._getTrigger(e),h=new Px(this.id,e,n);let y=this._engine.statesByElement.get(n);y||(Yr(n,M0),Yr(n,M0+"-"+e),this._engine.statesByElement.set(n,y=new Map));let D=y.get(e);const x=new Mx(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&D&&x.absorbOptions(D.options),y.set(e,x),D||(D=Ix),x.value!==nv&&D.value===x.value){if(!function u6(t,n){const e=Object.keys(t),r=Object.keys(n);if(e.length!=r.length)return!1;for(let o=0;o{Nc(n,ae),ms(n,de)})}return}const j=Ir(this._engine.playersByElement,n,[]);j.forEach(se=>{se.namespaceId==this.id&&se.triggerName==e&&se.queued&&se.destroy()});let V=c.matchTransition(D.value,x.value,n,x.params),K=!1;if(!V){if(!o)return;V=c.fallbackTransition,K=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:V,fromState:D,toState:x,player:h,isFallbackTransition:K}),K||(Yr(n,DA),h.onStart(()=>{up(n,DA)})),h.onDone(()=>{let se=this.players.indexOf(h);se>=0&&this.players.splice(se,1);const ae=this._engine.playersByElement.get(n);if(ae){let de=ae.indexOf(h);de>=0&&ae.splice(de,1)}}),this.players.push(h),j.push(h),h}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,r)=>{this._elementListeners.set(r,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(r=>r.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const r=this._engine.driver.query(n,I0,!0);r.forEach(o=>{if(o[qr])return;const c=this._engine.fetchNamespacesByElement(o);c.size?c.forEach(h=>h.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,r,o){const c=this._engine.statesByElement.get(n),h=new Map;if(c){const y=[];if(c.forEach((D,x)=>{if(h.set(x,D.value),this._triggers.has(x)){const A=this.trigger(n,x,nv,o);A&&y.push(A)}}),y.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,h),r&&$l(y).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),r=this._engine.statesByElement.get(n);if(e&&r){const o=new Set;e.forEach(c=>{const h=c.name;if(o.has(h))return;o.add(h);const D=this._triggers.get(h).fallbackTransition,x=r.get(h)||Ix,A=new Mx(nv),k=new Px(this.id,h,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:h,transition:D,fromState:x,toState:A,player:k,isFallbackTransition:!0})})}}removeNode(n,e){const r=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(r.totalAnimations){const c=r.players.length?r.playersByQueriedElement.get(n):[];if(c&&c.length)o=!0;else{let h=n;for(;h=h.parentNode;)if(r.statesByElement.get(h)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)r.markElementAsRemoved(this.id,n,!1,e);else{const c=n[qr];(!c||c===SA)&&(r.afterFlush(()=>this.clearElementCache(n)),r.destroyInnerAnimations(n),r._onRemovalComplete(n,e))}}insertNode(n,e){Yr(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(r=>{const o=r.player;if(o.destroyed)return;const c=r.element,h=this._elementListeners.get(c);h&&h.forEach(y=>{if(y.name==r.triggerName){const D=dx(c,r.triggerName,r.fromState.value,r.toState.value);D._data=n,ux(r.player,y.phase,D,y.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(r)}),this._queue=[],e.sort((r,o)=>{const c=r.transition.ast.depCount,h=o.transition.ast.depCount;return 0==c||0==h?c-h:this._engine.driver.containsElement(r.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(r=>r.element===n)||e,e}}class i6{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,r){this.bodyNode=n,this.driver=e,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,c)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(r=>{r.queued&&n.push(r)})}),n}createNamespace(n,e){const r=new n6(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(r,e):(this.newHostElements.set(e,r),this.collectEnterElement(e)),this._namespaceLookup[n]=r}_balanceNamespaceList(n,e){const r=this._namespaceList,o=this.namespacesByHostElement;if(r.length-1>=0){let h=!1,y=this.driver.getParentElement(e);for(;y;){const D=o.get(y);if(D){const x=r.indexOf(D);r.splice(x+1,0,n),h=!0;break}y=this.driver.getParentElement(y)}h||r.unshift(n)}else r.push(n);return o.set(e,n),n}register(n,e){let r=this._namespaceLookup[n];return r||(r=this.createNamespace(n,e)),r}registerTrigger(n,e,r){let o=this._namespaceLookup[n];o&&o.register(e,r)&&this.totalAnimations++}destroy(n,e){if(!n)return;const r=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[n];const o=this._namespaceList.indexOf(r);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>r.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,r=this.statesByElement.get(n);if(r)for(let o of r.values())if(o.namespaceId){const c=this._fetchNamespace(o.namespaceId);c&&e.add(c)}return e}trigger(n,e,r,o){if(j0(e)){const c=this._fetchNamespace(n);if(c)return c.trigger(e,r,o),!0}return!1}insertNode(n,e,r,o){if(!j0(e))return;const c=e[qr];if(c&&c.setForRemoval){c.setForRemoval=!1,c.setForMove=!0;const h=this.collectedLeaveElements.indexOf(e);h>=0&&this.collectedLeaveElements.splice(h,1)}if(n){const h=this._fetchNamespace(n);h&&h.insertNode(e,r)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Yr(n,xx)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),up(n,xx))}removeNode(n,e,r,o){if(j0(e)){const c=n?this._fetchNamespace(n):null;if(c?c.removeNode(e,o):this.markElementAsRemoved(n,e,!1,o),r){const h=this.namespacesByHostElement.get(e);h&&h.id!==n&&h.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(n,e,r,o,c){this.collectedLeaveElements.push(e),e[qr]={namespaceId:n,setForRemoval:o,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:c}}listen(n,e,r,o,c){return j0(e)?this._fetchNamespace(n).listen(e,r,o,c):()=>{}}_buildInstruction(n,e,r,o,c){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,r,o,n.fromState.options,n.toState.options,e,c)}destroyInnerAnimations(n){let e=this.driver.query(n,I0,!0);e.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,gx,!0),e.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return $l(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[qr];if(e&&e.setForRemoval){if(n[qr]=SA,e.namespaceId){this.destroyInnerAnimations(n);const r=this._fetchNamespace(e.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(xx)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,o)=>this._balanceNamespaceList(r,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],e.length?$l(e).onDone(()=>{r.forEach(o=>o())}):r.forEach(o=>o())}}reportError(n){throw function i7(t){return new i.\u0275RuntimeError(3402,!1)}()}_flushAnimations(n,e){const r=new N0,o=[],c=new Map,h=[],y=new Map,D=new Map,x=new Map,A=new Set;this.disabledNodes.forEach(we=>{A.add(we);const Ie=this.driver.query(we,".ng-animate-queued",!0);for(let Be=0;Be{const Be=mx+se++;K.set(Ie,Be),we.forEach(ct=>Yr(ct,Be))});const ae=[],de=new Set,ye=new Set;for(let we=0;wede.add(ct)):ye.add(Ie))}const lt=new Map,tt=xA(j,Array.from(de));tt.forEach((we,Ie)=>{const Be=x0+se++;lt.set(Ie,Be),we.forEach(ct=>Yr(ct,Be))}),n.push(()=>{V.forEach((we,Ie)=>{const Be=K.get(Ie);we.forEach(ct=>up(ct,Be))}),tt.forEach((we,Ie)=>{const Be=lt.get(Ie);we.forEach(ct=>up(ct,Be))}),ae.forEach(we=>{this.processLeaveNode(we)})});const pt=[],Ue=[];for(let we=this._namespaceList.length-1;we>=0;we--)this._namespaceList[we].drainQueuedTransitions(e).forEach(Be=>{const ct=Be.player,Ln=Be.element;if(pt.push(ct),this.collectedEnterElements.length){const wn=Ln[qr];if(wn&&wn.setForMove){if(wn.previousTriggersValues&&wn.previousTriggersValues.has(Be.triggerName)){const jt=wn.previousTriggersValues.get(Be.triggerName),st=this.statesByElement.get(Be.element);if(st&&st.has(Be.triggerName)){const ui=st.get(Be.triggerName);ui.value=jt,st.set(Be.triggerName,ui)}}return void ct.destroy()}}const rr=!k||!this.driver.containsElement(k,Ln),Vn=lt.get(Ln),Lo=K.get(Ln),Pt=this._buildInstruction(Be,r,Lo,Vn,rr);if(Pt.errors&&Pt.errors.length)return void Ue.push(Pt);if(rr)return ct.onStart(()=>Nc(Ln,Pt.fromStyles)),ct.onDestroy(()=>ms(Ln,Pt.toStyles)),void o.push(ct);if(Be.isFallbackTransition)return ct.onStart(()=>Nc(Ln,Pt.fromStyles)),ct.onDestroy(()=>ms(Ln,Pt.toStyles)),void o.push(ct);const iv=[];Pt.timelines.forEach(wn=>{wn.stretchStartingKeyframe=!0,this.disabledNodes.has(wn.element)||iv.push(wn)}),Pt.timelines=iv,r.append(Ln,Pt.timelines),h.push({instruction:Pt,player:ct,element:Ln}),Pt.queriedElements.forEach(wn=>Ir(y,wn,[]).push(ct)),Pt.preStyleProps.forEach((wn,jt)=>{if(wn.size){let st=D.get(jt);st||D.set(jt,st=new Set),wn.forEach((ui,Wl)=>st.add(Wl))}}),Pt.postStyleProps.forEach((wn,jt)=>{let st=x.get(jt);st||x.set(jt,st=new Set),wn.forEach((ui,Wl)=>st.add(Wl))})});if(Ue.length){const we=[];Ue.forEach(Ie=>{we.push(function r7(t,n){return new i.\u0275RuntimeError(3505,!1)}())}),pt.forEach(Ie=>Ie.destroy()),this.reportError(we)}const dt=new Map,tn=new Map;h.forEach(we=>{const Ie=we.element;r.has(Ie)&&(tn.set(Ie,Ie),this._beforeAnimationBuild(we.player.namespaceId,we.instruction,dt))}),o.forEach(we=>{const Ie=we.element;this._getPreviousPlayers(Ie,!1,we.namespaceId,we.triggerName,null).forEach(ct=>{Ir(dt,Ie,[]).push(ct),ct.destroy()})});const li=ae.filter(we=>IA(we,D,x)),Lr=new Map;TA(Lr,this.driver,ye,x,ha).forEach(we=>{IA(we,D,x)&&li.push(we)});const pa=new Map;V.forEach((we,Ie)=>{TA(pa,this.driver,new Set(we),D,ix)}),li.forEach(we=>{const Ie=Lr.get(we),Be=pa.get(we);Lr.set(we,new Map([...Array.from(Ie?.entries()??[]),...Array.from(Be?.entries()??[])]))});const Po=[],z0=[],dp={};h.forEach(we=>{const{element:Ie,player:Be,instruction:ct}=we;if(r.has(Ie)){if(A.has(Ie))return Be.onDestroy(()=>ms(Ie,ct.toStyles)),Be.disabled=!0,Be.overrideTotalTime(ct.totalTime),void o.push(Be);let Ln=dp;if(tn.size>1){let Vn=Ie;const Lo=[];for(;Vn=Vn.parentNode;){const Pt=tn.get(Vn);if(Pt){Ln=Pt;break}Lo.push(Vn)}Lo.forEach(Pt=>tn.set(Pt,Ln))}const rr=this._buildAnimation(Be.namespaceId,ct,dt,c,pa,Lr);if(Be.setRealPlayer(rr),Ln===dp)Po.push(Be);else{const Vn=this.playersByElement.get(Ln);Vn&&Vn.length&&(Be.parentPlayer=$l(Vn)),o.push(Be)}}else Nc(Ie,ct.fromStyles),Be.onDestroy(()=>ms(Ie,ct.toStyles)),z0.push(Be),A.has(Ie)&&o.push(Be)}),z0.forEach(we=>{const Ie=c.get(we.element);if(Ie&&Ie.length){const Be=$l(Ie);we.setRealPlayer(Be)}}),o.forEach(we=>{we.parentPlayer?we.syncPlayerEvents(we.parentPlayer):we.destroy()});for(let we=0;we!rr.destroyed);Ln.length?a6(this,Ie,Ln):this.processLeaveNode(Ie)}return ae.length=0,Po.forEach(we=>{this.players.push(we),we.onDone(()=>{we.destroy();const Ie=this.players.indexOf(we);this.players.splice(Ie,1)}),we.play()}),Po}elementContainsData(n,e){let r=!1;const o=e[qr];return o&&o.setForRemoval&&(r=!0),this.playersByElement.has(e)&&(r=!0),this.playersByQueriedElement.has(e)&&(r=!0),this.statesByElement.has(e)&&(r=!0),this._fetchNamespace(n).elementContainsData(e)||r}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,r,o,c){let h=[];if(e){const y=this.playersByQueriedElement.get(n);y&&(h=y)}else{const y=this.playersByElement.get(n);if(y){const D=!c||c==nv;y.forEach(x=>{x.queued||!D&&x.triggerName!=o||h.push(x)})}}return(r||o)&&(h=h.filter(y=>!(r&&r!=y.namespaceId||o&&o!=y.triggerName))),h}_beforeAnimationBuild(n,e,r){const c=e.element,h=e.isRemovalTransition?void 0:n,y=e.isRemovalTransition?void 0:e.triggerName;for(const D of e.timelines){const x=D.element,A=x!==c,k=Ir(r,x,[]);this._getPreviousPlayers(x,A,h,y,e.toState).forEach(V=>{const K=V.getRealPlayer();K.beforeDestroy&&K.beforeDestroy(),V.destroy(),k.push(V)})}Nc(c,e.fromStyles)}_buildAnimation(n,e,r,o,c,h){const y=e.triggerName,D=e.element,x=[],A=new Set,k=new Set,j=e.timelines.map(K=>{const se=K.element;A.add(se);const ae=se[qr];if(ae&&ae.removedBeforeQueried)return new J_(K.duration,K.delay);const de=se!==D,ye=function l6(t){const n=[];return MA(t,n),n}((r.get(se)||e6).map(dt=>dt.getRealPlayer())).filter(dt=>!!dt.element&&dt.element===se),lt=c.get(se),tt=h.get(se),pt=eA(0,this._normalizer,0,K.keyframes,lt,tt),Ue=this._buildPlayer(K,pt,ye);if(K.subTimeline&&o&&k.add(se),de){const dt=new Px(n,y,se);dt.setRealPlayer(Ue),x.push(dt)}return Ue});x.forEach(K=>{Ir(this.playersByQueriedElement,K.element,[]).push(K),K.onDone(()=>function r6(t,n,e){let r=t.get(n);if(r){if(r.length){const o=r.indexOf(e);r.splice(o,1)}0==r.length&&t.delete(n)}return r}(this.playersByQueriedElement,K.element,K))}),A.forEach(K=>Yr(K,uA));const V=$l(j);return V.onDestroy(()=>{A.forEach(K=>up(K,uA)),ms(D,e.toStyles)}),k.forEach(K=>{Ir(o,K,[]).push(V)}),V}_buildPlayer(n,e,r){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,r):new J_(n.duration,n.delay)}}class Px{constructor(n,e,r){this.namespaceId=n,this.triggerName=e,this.element=r,this._player=new J_,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,r)=>{e.forEach(o=>ux(n,r,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){Ir(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function j0(t){return t&&1===t.nodeType}function EA(t,n){const e=t.style.display;return t.style.display=n??"none",e}function TA(t,n,e,r,o){const c=[];e.forEach(D=>c.push(EA(D)));const h=[];r.forEach((D,x)=>{const A=new Map;D.forEach(k=>{const j=n.computeStyle(x,k,o);A.set(k,j),(!j||0==j.length)&&(x[qr]=t6,h.push(x))}),t.set(x,A)});let y=0;return e.forEach(D=>EA(D,c[y++])),h}function xA(t,n){const e=new Map;if(t.forEach(y=>e.set(y,[])),0==n.length)return e;const r=1,o=new Set(n),c=new Map;function h(y){if(!y)return r;let D=c.get(y);if(D)return D;const x=y.parentNode;return D=e.has(x)?x:o.has(x)?r:h(x),c.set(y,D),D}return n.forEach(y=>{const D=h(y);D!==r&&e.get(D).push(y)}),e}function Yr(t,n){t.classList?.add(n)}function up(t,n){t.classList?.remove(n)}function a6(t,n,e){$l(e).onDone(()=>t.processLeaveNode(n))}function MA(t,n){for(let e=0;eo.add(c)):n.set(t,r),e.delete(t),!0}class U0{constructor(n,e,r){this.bodyNode=n,this._driver=e,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(o,c)=>{},this._transitionEngine=new i6(n,e,r),this._timelineEngine=new Y7(n,e,r),this._transitionEngine.onRemovalComplete=(o,c)=>this.onRemovalComplete(o,c)}registerTrigger(n,e,r,o,c){const h=n+"-"+o;let y=this._triggerCache[h];if(!y){const D=[],x=[],A=bx(this._driver,c,D,x);if(D.length)throw function Z$(t,n){return new i.\u0275RuntimeError(3404,!1)}();y=function G7(t,n,e){return new W7(t,n,e)}(o,A,this._normalizer),this._triggerCache[h]=y}this._transitionEngine.registerTrigger(e,o,y)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,r,o){this._transitionEngine.insertNode(n,e,r,o)}onRemove(n,e,r,o){this._transitionEngine.removeNode(n,e,o||!1,r)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,r,o){if("@"==r.charAt(0)){const[c,h]=tA(r);this._timelineEngine.command(c,e,h,o)}else this._transitionEngine.trigger(n,e,r,o)}listen(n,e,r,o,c){if("@"==r.charAt(0)){const[h,y]=tA(r);return this._timelineEngine.listen(h,e,y,c)}return this._transitionEngine.listen(n,e,r,o,c)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let d6=(()=>{class t{constructor(e,r,o){this._element=e,this._startStyles=r,this._endStyles=o,this._state=0;let c=t.initialStylesByElement.get(e);c||t.initialStylesByElement.set(e,c=new Map),this._initialStyles=c}start(){this._state<1&&(this._startStyles&&ms(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ms(this._element,this._initialStyles),this._endStyles&&(ms(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Nc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Nc(this._element,this._endStyles),this._endStyles=null),ms(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Lx(t){let n=null;return t.forEach((e,r)=>{(function h6(t){return"display"===t||"position"===t})(r)&&(n=n||new Map,n.set(r,e))}),n}class PA{constructor(n,e,r,o){this.element=n,this.keyframes=e,this.options=r,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(r=>{e.push(Object.fromEntries(r))}),e}_triggerWebAnimation(n,e,r){return n.animate(this._convertKeyframesToObject(e),r)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,o)=>{"offset"!==o&&n.set(o,this._finished?r:mA(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}class f6{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return oA(n,e)}getParentElement(n){return fx(n)}query(n,e,r){return sA(n,e,r)}computeStyle(n,e,r){return window.getComputedStyle(n)[e]}animate(n,e,r,o,c,h=[]){const D={duration:r,delay:o,fill:0==o?"both":"forwards"};c&&(D.easing=c);const x=new Map,A=h.filter(V=>V instanceof PA);(function _7(t,n){return 0===t||0===n})(r,o)&&A.forEach(V=>{V.currentSnapshot.forEach((K,se)=>x.set(se,K))});let k=function f7(t){return t.length?t[0]instanceof Map?t:t.map(n=>cA(n)):[]}(e).map(V=>Gl(V));k=function v7(t,n,e){if(e.size&&n.length){let r=n[0],o=[];if(e.forEach((c,h)=>{r.has(h)||o.push(h),r.set(h,c)}),o.length)for(let c=1;ch.set(y,mA(t,y)))}}return n}(n,k,x);const j=function c6(t,n){let e=null,r=null;return Array.isArray(n)&&n.length?(e=Lx(n[0]),n.length>1&&(r=Lx(n[n.length-1]))):n instanceof Map&&(e=Lx(n)),e||r?new d6(t,e,r):null}(n,k);return new PA(n,k,D,j)}}let p6=(()=>{class t extends DL{constructor(e,r){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(r.body,{id:"0",encapsulation:i.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(e){const r=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?EL(e):e;return LA(this._renderer,null,r,"register",[o]),new m6(r,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(W))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();class m6 extends L5{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new g6(this._id,n,e||{},this._renderer)}}class g6{constructor(n,e,r,o){this.id=n,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return LA(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function LA(t,n,e,r,o){return t.setProperty(n,`@@${e}:${r}`,o)}const AA="@.disabled";let _6=(()=>{class t{constructor(e,r,o){this.delegate=e,this.engine=r,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(c,h)=>{const y=h?.parentNode(c);y&&h.removeChild(y,c)}}createRenderer(e,r){const c=this.delegate.createRenderer(e,r);if(!(e&&r&&r.data&&r.data.animation)){let A=this._rendererCache.get(c);return A||(A=new OA("",c,this.engine,()=>this._rendererCache.delete(c)),this._rendererCache.set(c,A)),A}const h=r.id,y=r.id+"-"+this._currentId;this._currentId++,this.engine.register(y,e);const D=A=>{Array.isArray(A)?A.forEach(D):this.engine.registerTrigger(h,y,e,A.name,A)};return r.data.animation.forEach(D),new v6(this,y,c,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,r,o){e>=0&&er(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(c=>{const[h,y]=c;h(y)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(U0),i.\u0275\u0275inject(i.NgZone))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();class OA{constructor(n,e,r,o){this.namespaceId=n,this.delegate=e,this.engine=r,this._onDestroy=o,this.destroyNode=this.delegate.destroyNode?c=>e.destroyNode(c):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,r,o=!0){this.delegate.insertBefore(n,e,r),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,r){this.engine.onRemove(this.namespaceId,e,this.delegate,r)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,r,o){this.delegate.setAttribute(n,e,r,o)}removeAttribute(n,e,r){this.delegate.removeAttribute(n,e,r)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,r,o){this.delegate.setStyle(n,e,r,o)}removeStyle(n,e,r){this.delegate.removeStyle(n,e,r)}setProperty(n,e,r){"@"==e.charAt(0)&&e==AA?this.disableAnimations(n,!!r):this.delegate.setProperty(n,e,r)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,r){return this.delegate.listen(n,e,r)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class v6 extends OA{constructor(n,e,r,o,c){super(e,r,o,c),this.factory=n,this.namespaceId=e}setProperty(n,e,r){"@"==e.charAt(0)?"."==e.charAt(1)&&e==AA?this.disableAnimations(n,r=void 0===r||!!r):this.engine.process(this.namespaceId,n,e.slice(1),r):this.delegate.setProperty(n,e,r)}listen(n,e,r){if("@"==e.charAt(0)){const o=function y6(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let c=e.slice(1),h="";return"@"!=c.charAt(0)&&([c,h]=function b6(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(c)),this.engine.listen(this.namespaceId,o,c,h,y=>{this.factory.scheduleListenerCallback(y._data||-1,r,y)})}return this.delegate.listen(n,e,r)}}let w6=(()=>{class t extends U0{constructor(e,r,o,c){super(e.body,r,o)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(W),i.\u0275\u0275inject(px),i.\u0275\u0275inject(Ex),i.\u0275\u0275inject(i.ApplicationRef))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const kA=[{provide:DL,useClass:p6},{provide:Ex,useFactory:function C6(){return new U7}},{provide:U0,useClass:w6},{provide:i.RendererFactory2,useFactory:function D6(t,n,e){return new _6(t,n,e)},deps:[fe,U0,i.NgZone]}],Ax=[{provide:px,useFactory:()=>new f6},{provide:i.ANIMATION_MODULE_TYPE,useValue:"BrowserAnimations"},...kA],FA=[{provide:px,useClass:aA},{provide:i.ANIMATION_MODULE_TYPE,useValue:"NoopAnimations"},...kA];let S6=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?FA:Ax}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({providers:Ax,imports:[mu]}),t})(),E6=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[JL,S6,dh.forChild(sx),mu,er,Tl]})),t})(),T6=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t,bootstrap:[v$]})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[mu,dh.forRoot(y$),JL,E6]})),t})();(0,i.enableProdMode)(),hv().bootstrapModule(T6).catch(t=>console.error(t))},583:(Je,he,F)=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});var ue=F(62),i=F(62),E=function(){function M(B,U){this.elementRef=B,this.zone=U}return M.prototype.ngOnInit=function(){this.useBr&&hljs.configure({useBR:!0})},M.prototype.ngAfterViewChecked=function(){if(this.elementRef.nativeElement.innerHTML&&this.elementRef.nativeElement.querySelector){var U=this.elementRef.nativeElement.querySelectorAll(this.highlightSelector||"code");this.zone.runOutsideAngular(function(){for(var W=0,Q=U;W{"use strict";F(62),F(583);var M=F(62),U=(F(583),function(){function Q(){}return Q.\u0275fac=function(H){return new(H||Q)},Q.\u0275mod=M.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=M.\u0275\u0275defineInjector({}),Q}());U.ctorParameters=function(){return[]},he.n6=U;var W=F(753);he.vp=W.HighlightJsService},753:(Je,he,F)=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0}),F(62);var i=F(62),E=function(){function M(){}return M.prototype.highlight=function(B,U){U&&hljs.configure({useBR:!0}),hljs.highlightBlock(B)},M.\u0275fac=function(U){return new(U||M)},M.\u0275prov=i.\u0275\u0275defineInjectable({token:M,factory:function(B){return M.\u0275fac(B)}}),M}();E.ctorParameters=function(){return[]},he.HighlightJsService=E},690:()=>{var Je,he,i;Je=window,he=document,L.drawVersion="1.0.4",L.Draw={},L.drawLocal={draw:{toolbar:{actions:{title:"Cancel drawing",text:"Cancel"},finish:{title:"Finish drawing",text:"Finish"},undo:{title:"Delete last point drawn",text:"Delete last point"},buttons:{polyline:"Draw a polyline",polygon:"Draw a polygon",rectangle:"Draw a rectangle",circle:"Draw a circle",marker:"Draw a marker",circlemarker:"Draw a circlemarker"}},handlers:{circle:{tooltip:{start:"Click and drag to draw circle."},radius:"Radius"},circlemarker:{tooltip:{start:"Click map to place circle marker."}},marker:{tooltip:{start:"Click map to place marker."}},polygon:{tooltip:{start:"Click to start drawing shape.",cont:"Click to continue drawing shape.",end:"Click first point to close this shape."}},polyline:{error:"Error: shape edges cannot cross!",tooltip:{start:"Click to start drawing line.",cont:"Click to continue drawing line.",end:"Click last point to finish line."}},rectangle:{tooltip:{start:"Click and drag to draw rectangle."}},simpleshape:{tooltip:{end:"Release mouse to finish drawing."}}}},edit:{toolbar:{actions:{save:{title:"Save changes",text:"Save"},cancel:{title:"Cancel editing, discards all changes",text:"Cancel"},clearAll:{title:"Clear all layers",text:"Clear All"}},buttons:{edit:"Edit layers",editDisabled:"No layers to edit",remove:"Delete layers",removeDisabled:"No layers to delete"}},handlers:{edit:{tooltip:{text:"Drag handles or markers to edit features.",subtext:"Click cancel to undo changes."}},remove:{tooltip:{text:"Click on a feature to remove."}}}}},L.Draw.Event={},L.Draw.Event.CREATED="draw:created",L.Draw.Event.EDITED="draw:edited",L.Draw.Event.DELETED="draw:deleted",L.Draw.Event.DRAWSTART="draw:drawstart",L.Draw.Event.DRAWSTOP="draw:drawstop",L.Draw.Event.DRAWVERTEX="draw:drawvertex",L.Draw.Event.EDITSTART="draw:editstart",L.Draw.Event.EDITMOVE="draw:editmove",L.Draw.Event.EDITRESIZE="draw:editresize",L.Draw.Event.EDITVERTEX="draw:editvertex",L.Draw.Event.EDITSTOP="draw:editstop",L.Draw.Event.DELETESTART="draw:deletestart",L.Draw.Event.DELETESTOP="draw:deletestop",L.Draw.Event.TOOLBAROPENED="draw:toolbaropened",L.Draw.Event.TOOLBARCLOSED="draw:toolbarclosed",L.Draw.Event.MARKERCONTEXT="draw:markercontext",L.Draw=L.Draw||{},L.Draw.Feature=L.Handler.extend({initialize:function(i,E){this._map=i,this._container=i._container,this._overlayPane=i._panes.overlayPane,this._popupPane=i._panes.popupPane,E&&E.shapeOptions&&(E.shapeOptions=L.Util.extend({},this.options.shapeOptions,E.shapeOptions)),L.setOptions(this,E);var M=L.version.split(".");1===parseInt(M[0],10)&&parseInt(M[1],10)>=2?L.Draw.Feature.include(L.Evented.prototype):L.Draw.Feature.include(L.Mixin.Events)},enable:function(){this._enabled||(L.Handler.prototype.enable.call(this),this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.DRAWSTART,{layerType:this.type}))},disable:function(){this._enabled&&(L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.DRAWSTOP,{layerType:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var i=this._map;i&&(L.DomUtil.disableTextSelection(),i.getContainer().focus(),this._tooltip=new L.Draw.Tooltip(this._map),L.DomEvent.on(this._container,"keyup",this._cancelDrawing,this))},removeHooks:function(){this._map&&(L.DomUtil.enableTextSelection(),this._tooltip.dispose(),this._tooltip=null,L.DomEvent.off(this._container,"keyup",this._cancelDrawing,this))},setOptions:function(i){L.setOptions(this,i)},_fireCreatedEvent:function(i){this._map.fire(L.Draw.Event.CREATED,{layer:i,layerType:this.type})},_cancelDrawing:function(i){27===i.keyCode&&(this._map.fire("draw:canceled",{layerType:this.type}),this.disable())}}),L.Draw.Polyline=L.Draw.Feature.extend({statics:{TYPE:"polyline"},Poly:L.Polyline,options:{allowIntersection:!0,repeatMode:!1,drawError:{color:"#b00b00",timeout:2500},icon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),guidelineDistance:20,maxGuideLineLength:4e3,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!1,clickable:!0},metric:!0,feet:!0,nautic:!1,showLength:!0,zIndexOffset:2e3,factor:1,maxPoints:0},initialize:function(i,E){L.Browser.touch&&(this.options.icon=this.options.touchIcon),this.options.drawError.message=L.drawLocal.draw.handlers.polyline.error,E&&E.drawError&&(E.drawError=L.Util.extend({},this.options.drawError,E.drawError)),this.type=L.Draw.Polyline.TYPE,L.Draw.Feature.prototype.initialize.call(this,i,E)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._markers=[],this._markerGroup=new L.LayerGroup,this._map.addLayer(this._markerGroup),this._poly=new L.Polyline([],this.options.shapeOptions),this._tooltip.updateContent(this._getTooltipText()),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("mouseout",this._onMouseOut,this).on("mousemove",this._onMouseMove,this).on("mousedown",this._onMouseDown,this).on("mouseup",this._onMouseUp,this).addTo(this._map),this._map.on("mouseup",this._onMouseUp,this).on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._onZoomEnd,this).on("touchstart",this._onTouch,this).on("zoomend",this._onZoomEnd,this))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._clearHideErrorTimeout(),this._cleanUpShape(),this._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers,this._map.removeLayer(this._poly),delete this._poly,this._mouseMarker.off("mousedown",this._onMouseDown,this).off("mouseout",this._onMouseOut,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._clearGuides(),this._map.off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("zoomend",this._onZoomEnd,this).off("touchstart",this._onTouch,this).off("click",this._onTouch,this)},deleteLastVertex:function(){if(!(this._markers.length<=1)){var i=this._markers.pop(),E=this._poly,M=E.getLatLngs(),B=M.splice(-1,1)[0];this._poly.setLatLngs(M),this._markerGroup.removeLayer(i),E.getLatLngs().length<2&&this._map.removeLayer(E),this._vertexChanged(B,!1)}},addVertex:function(i){this._markers.length>=2&&!this.options.allowIntersection&&this._poly.newLatLngIntersects(i)?this._showErrorTooltip():(this._errorShown&&this._hideErrorTooltip(),this._markers.push(this._createMarker(i)),this._poly.addLatLng(i),2===this._poly.getLatLngs().length&&this._map.addLayer(this._poly),this._vertexChanged(i,!0))},completeShape:function(){this._markers.length<=1||!this._shapeIsValid()||(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_finishShape:function(){var i=this._poly._defaultShape?this._poly._defaultShape():this._poly.getLatLngs(),E=this._poly.newLatLngIntersects(i[i.length-1]);!this.options.allowIntersection&&E||!this._shapeIsValid()?this._showErrorTooltip():(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_shapeIsValid:function(){return!0},_onZoomEnd:function(){null!==this._markers&&this._updateGuide()},_onMouseMove:function(i){var E=this._map.mouseEventToLayerPoint(i.originalEvent),M=this._map.layerPointToLatLng(E);this._currentLatLng=M,this._updateTooltip(M),this._updateGuide(E),this._mouseMarker.setLatLng(M),L.DomEvent.preventDefault(i.originalEvent)},_vertexChanged:function(i,E){this._map.fire(L.Draw.Event.DRAWVERTEX,{layers:this._markerGroup}),this._updateFinishHandler(),this._updateRunningMeasure(i,E),this._clearGuides(),this._updateTooltip()},_onMouseDown:function(i){if(!this._clickHandled&&!this._touchHandled&&!this._disableMarkers){this._onMouseMove(i),this._clickHandled=!0,this._disableNewMarkers();var E=i.originalEvent;this._startPoint.call(this,E.clientX,E.clientY)}},_startPoint:function(i,E){this._mouseDownOrigin=L.point(i,E)},_onMouseUp:function(i){var E=i.originalEvent;this._endPoint.call(this,E.clientX,E.clientY,i),this._clickHandled=null},_endPoint:function(i,E,M){if(this._mouseDownOrigin){var B=L.point(i,E).distanceTo(this._mouseDownOrigin),U=this._calculateFinishDistance(M.latlng);this.options.maxPoints>1&&this.options.maxPoints==this._markers.length+1?(this.addVertex(M.latlng),this._finishShape()):U<10&&L.Browser.touch?this._finishShape():Math.abs(B)<9*(Je.devicePixelRatio||1)&&this.addVertex(M.latlng),this._enableNewMarkers()}this._mouseDownOrigin=null},_onTouch:function(i){var E,M,B=i.originalEvent;!B.touches||!B.touches[0]||this._clickHandled||this._touchHandled||this._disableMarkers||(E=B.touches[0].clientX,M=B.touches[0].clientY,this._disableNewMarkers(),this._touchHandled=!0,this._startPoint.call(this,E,M),this._endPoint.call(this,E,M,i),this._touchHandled=null),this._clickHandled=null},_onMouseOut:function(){this._tooltip&&this._tooltip._onMouseOut.call(this._tooltip)},_calculateFinishDistance:function(i){var E;if(this._markers.length>0){var M;if(this.type===L.Draw.Polyline.TYPE)M=this._markers[this._markers.length-1];else{if(this.type!==L.Draw.Polygon.TYPE)return 1/0;M=this._markers[0]}var B=this._map.latLngToContainerPoint(M.getLatLng()),U=new L.Marker(i,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset}),W=this._map.latLngToContainerPoint(U.getLatLng());E=B.distanceTo(W)}else E=1/0;return E},_updateFinishHandler:function(){var i=this._markers.length;i>1&&this._markers[i-1].on("click",this._finishShape,this),i>2&&this._markers[i-2].off("click",this._finishShape,this)},_createMarker:function(i){var E=new L.Marker(i,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset});return this._markerGroup.addLayer(E),E},_updateGuide:function(i){var E=this._markers?this._markers.length:0;E>0&&(i=i||this._map.latLngToLayerPoint(this._currentLatLng),this._clearGuides(),this._drawGuide(this._map.latLngToLayerPoint(this._markers[E-1].getLatLng()),i))},_updateTooltip:function(i){var E=this._getTooltipText();i&&this._tooltip.updatePosition(i),this._errorShown||this._tooltip.updateContent(E)},_drawGuide:function(i,E){var M,B,U,W=Math.floor(Math.sqrt(Math.pow(E.x-i.x,2)+Math.pow(E.y-i.y,2))),q=this.options.maxGuideLineLength,H=W>q?W-q:this.options.guidelineDistance;for(this._guidesContainer||(this._guidesContainer=L.DomUtil.create("div","leaflet-draw-guides",this._overlayPane));H1&&this._markers[this._markers.length-1].off("click",this._finishShape,this)},_fireCreatedEvent:function(){var i=new this.Poly(this._poly.getLatLngs(),this.options.shapeOptions);L.Draw.Feature.prototype._fireCreatedEvent.call(this,i)}}),L.Draw.Polygon=L.Draw.Polyline.extend({statics:{TYPE:"polygon"},Poly:L.Polygon,options:{showArea:!1,showLength:!1,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},metric:!0,feet:!0,nautic:!1,precision:{}},initialize:function(i,E){L.Draw.Polyline.prototype.initialize.call(this,i,E),this.type=L.Draw.Polygon.TYPE},_updateFinishHandler:function(){var i=this._markers.length;1===i&&this._markers[0].on("click",this._finishShape,this),i>2&&(this._markers[i-1].on("dblclick",this._finishShape,this),i>3&&this._markers[i-2].off("dblclick",this._finishShape,this))},_getTooltipText:function(){var i,E;return 0===this._markers.length?i=L.drawLocal.draw.handlers.polygon.tooltip.start:this._markers.length<3?(i=L.drawLocal.draw.handlers.polygon.tooltip.cont,E=this._getMeasurementString()):(i=L.drawLocal.draw.handlers.polygon.tooltip.end,E=this._getMeasurementString()),{text:i,subtext:E}},_getMeasurementString:function(){var i=this._area,E="";return i||this.options.showLength?(this.options.showLength&&(E=L.Draw.Polyline.prototype._getMeasurementString.call(this)),i&&(E+="
    "+L.GeometryUtil.readableArea(i,this.options.metric,this.options.precision)),E):null},_shapeIsValid:function(){return this._markers.length>=3},_vertexChanged:function(i,E){var M;!this.options.allowIntersection&&this.options.showArea&&(M=this._poly.getLatLngs(),this._area=L.GeometryUtil.geodesicArea(M)),L.Draw.Polyline.prototype._vertexChanged.call(this,i,E)},_cleanUpShape:function(){var i=this._markers.length;i>0&&(this._markers[0].off("click",this._finishShape,this),i>2&&this._markers[i-1].off("dblclick",this._finishShape,this))}}),L.SimpleShape={},L.Draw.SimpleShape=L.Draw.Feature.extend({options:{repeatMode:!1},initialize:function(i,E){this._endLabelText=L.drawLocal.draw.handlers.simpleshape.tooltip.end,L.Draw.Feature.prototype.initialize.call(this,i,E)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._mapDraggable=this._map.dragging.enabled(),this._mapDraggable&&this._map.dragging.disable(),this._container.style.cursor="crosshair",this._tooltip.updateContent({text:this._initialLabelText}),this._map.on("mousedown",this._onMouseDown,this).on("mousemove",this._onMouseMove,this).on("touchstart",this._onMouseDown,this).on("touchmove",this._onMouseMove,this),he.addEventListener("touchstart",L.DomEvent.preventDefault,{passive:!1}))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._mapDraggable&&this._map.dragging.enable(),this._container.style.cursor="",this._map.off("mousedown",this._onMouseDown,this).off("mousemove",this._onMouseMove,this).off("touchstart",this._onMouseDown,this).off("touchmove",this._onMouseMove,this),L.DomEvent.off(he,"mouseup",this._onMouseUp,this),L.DomEvent.off(he,"touchend",this._onMouseUp,this),he.removeEventListener("touchstart",L.DomEvent.preventDefault),this._shape&&(this._map.removeLayer(this._shape),delete this._shape)),this._isDrawing=!1},_getTooltipText:function(){return{text:this._endLabelText}},_onMouseDown:function(i){this._isDrawing=!0,this._startLatLng=i.latlng,L.DomEvent.on(he,"mouseup",this._onMouseUp,this).on(he,"touchend",this._onMouseUp,this).preventDefault(i.originalEvent)},_onMouseMove:function(i){var E=i.latlng;this._tooltip.updatePosition(E),this._isDrawing&&(this._tooltip.updateContent(this._getTooltipText()),this._drawShape(E))},_onMouseUp:function(){this._shape&&this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()}}),L.Draw.Rectangle=L.Draw.SimpleShape.extend({statics:{TYPE:"rectangle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showArea:!0,metric:!0},initialize:function(i,E){this.type=L.Draw.Rectangle.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.rectangle.tooltip.start,L.Draw.SimpleShape.prototype.initialize.call(this,i,E)},disable:function(){this._enabled&&(this._isCurrentlyTwoClickDrawing=!1,L.Draw.SimpleShape.prototype.disable.call(this))},_onMouseUp:function(i){this._shape||this._isCurrentlyTwoClickDrawing?this._isCurrentlyTwoClickDrawing&&!function ue(i,E){for(;(i=i.parentElement)&&!i.classList.contains(E););return i}(i.target,"leaflet-pane")||L.Draw.SimpleShape.prototype._onMouseUp.call(this):this._isCurrentlyTwoClickDrawing=!0},_drawShape:function(i){this._shape?this._shape.setBounds(new L.LatLngBounds(this._startLatLng,i)):(this._shape=new L.Rectangle(new L.LatLngBounds(this._startLatLng,i),this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var i=new L.Rectangle(this._shape.getBounds(),this.options.shapeOptions);L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,i)},_getTooltipText:function(){var i,E,M,B=L.Draw.SimpleShape.prototype._getTooltipText.call(this),W=this.options.showArea;return this._shape&&(i=this._shape._defaultShape?this._shape._defaultShape():this._shape.getLatLngs(),E=L.GeometryUtil.geodesicArea(i),M=W?L.GeometryUtil.readableArea(E,this.options.metric):""),{text:B.text,subtext:M}}}),L.Draw.Marker=L.Draw.Feature.extend({statics:{TYPE:"marker"},options:{icon:new L.Icon.Default,repeatMode:!1,zIndexOffset:2e3},initialize:function(i,E){this.type=L.Draw.Marker.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.marker.tooltip.start,L.Draw.Feature.prototype.initialize.call(this,i,E)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._tooltip.updateContent({text:this._initialLabelText}),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("click",this._onClick,this).addTo(this._map),this._map.on("mousemove",this._onMouseMove,this),this._map.on("click",this._onTouch,this))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._map.off("click",this._onClick,this).off("click",this._onTouch,this),this._marker&&(this._marker.off("click",this._onClick,this),this._map.removeLayer(this._marker),delete this._marker),this._mouseMarker.off("click",this._onClick,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._map.off("mousemove",this._onMouseMove,this))},_onMouseMove:function(i){var E=i.latlng;this._tooltip.updatePosition(E),this._mouseMarker.setLatLng(E),this._marker?(E=this._mouseMarker.getLatLng(),this._marker.setLatLng(E)):(this._marker=this._createMarker(E),this._marker.on("click",this._onClick,this),this._map.on("click",this._onClick,this).addLayer(this._marker))},_createMarker:function(i){return new L.Marker(i,{icon:this.options.icon,zIndexOffset:this.options.zIndexOffset})},_onClick:function(){this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()},_onTouch:function(i){this._onMouseMove(i),this._onClick()},_fireCreatedEvent:function(){var i=new L.Marker.Touch(this._marker.getLatLng(),{icon:this.options.icon});L.Draw.Feature.prototype._fireCreatedEvent.call(this,i)}}),L.Draw.CircleMarker=L.Draw.Marker.extend({statics:{TYPE:"circlemarker"},options:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0,zIndexOffset:2e3},initialize:function(i,E){this.type=L.Draw.CircleMarker.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.circlemarker.tooltip.start,L.Draw.Feature.prototype.initialize.call(this,i,E)},_fireCreatedEvent:function(){var i=new L.CircleMarker(this._marker.getLatLng(),this.options);L.Draw.Feature.prototype._fireCreatedEvent.call(this,i)},_createMarker:function(i){return new L.CircleMarker(i,this.options)}}),L.Draw.Circle=L.Draw.SimpleShape.extend({statics:{TYPE:"circle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showRadius:!0,metric:!0,feet:!0,nautic:!1},initialize:function(i,E){this.type=L.Draw.Circle.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.circle.tooltip.start,L.Draw.SimpleShape.prototype.initialize.call(this,i,E)},_drawShape:function(i){if(L.GeometryUtil.isVersion07x())var E=this._startLatLng.distanceTo(i);else E=this._map.distance(this._startLatLng,i);this._shape?this._shape.setRadius(E):(this._shape=new L.Circle(this._startLatLng,E,this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var i=new L.Circle(this._startLatLng,this._shape.getRadius(),this.options.shapeOptions);L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,i)},_onMouseMove:function(i){var E,M=i.latlng,B=this.options.showRadius,U=this.options.metric;if(this._tooltip.updatePosition(M),this._isDrawing){this._drawShape(M),E=this._shape.getRadius().toFixed(1);var W="";B&&(W=L.drawLocal.draw.handlers.circle.radius+": "+L.GeometryUtil.readableDistance(E,U,this.options.feet,this.options.nautic)),this._tooltip.updateContent({text:this._endLabelText,subtext:W})}}}),L.Edit=L.Edit||{},L.Edit.Marker=L.Handler.extend({initialize:function(i,E){this._marker=i,L.setOptions(this,E)},addHooks:function(){var i=this._marker;i.dragging.enable(),i.on("dragend",this._onDragEnd,i),this._toggleMarkerHighlight()},removeHooks:function(){var i=this._marker;i.dragging.disable(),i.off("dragend",this._onDragEnd,i),this._toggleMarkerHighlight()},_onDragEnd:function(i){var E=i.target;E.edited=!0,this._map.fire(L.Draw.Event.EDITMOVE,{layer:E})},_toggleMarkerHighlight:function(){var i=this._marker._icon;i&&(i.style.display="none",L.DomUtil.hasClass(i,"leaflet-edit-marker-selected")?(L.DomUtil.removeClass(i,"leaflet-edit-marker-selected"),this._offsetMarker(i,-4)):(L.DomUtil.addClass(i,"leaflet-edit-marker-selected"),this._offsetMarker(i,4)),i.style.display="")},_offsetMarker:function(i,E){var M=parseInt(i.style.marginTop,10)-E,B=parseInt(i.style.marginLeft,10)-E;i.style.marginTop=M+"px",i.style.marginLeft=B+"px"}}),L.Marker.addInitHook(function(){L.Edit.Marker&&(this.editing=new L.Edit.Marker(this),this.options.editable&&this.editing.enable())}),L.Edit=L.Edit||{},L.Edit.Poly=L.Handler.extend({initialize:function(i){this.latlngs=[i._latlngs],i._holes&&(this.latlngs=this.latlngs.concat(i._holes)),this._poly=i,this._poly.on("revert-edited",this._updateLatLngs,this)},_defaultShape:function(){return L.Polyline._flat?L.Polyline._flat(this._poly._latlngs)?this._poly._latlngs:this._poly._latlngs[0]:this._poly._latlngs},_eachVertexHandler:function(i){for(var E=0;Ei&&(M._index+=E)})},_createMiddleMarker:function(i,E){var M,B,U,W=this._getMiddleLatLng(i,E),Q=this._createMarker(W);Q.setOpacity(.6),i._middleRight=E._middleLeft=Q,B=function(){Q.off("touchmove",B,this);var q=E._index;Q._index=q,Q.off("click",M,this).on("click",this._onMarkerClick,this),W.lat=Q.getLatLng().lat,W.lng=Q.getLatLng().lng,this._spliceLatLngs(q,0,W),this._markers.splice(q,0,Q),Q.setOpacity(1),this._updateIndexes(q,1),E._index++,this._updatePrevNext(i,Q),this._updatePrevNext(Q,E),this._poly.fire("editstart")},U=function(){Q.off("dragstart",B,this),Q.off("dragend",U,this),Q.off("touchmove",B,this),this._createMiddleMarker(i,Q),this._createMiddleMarker(Q,E)},Q.on("click",M=function(){B.call(this),U.call(this),this._fireEdit()},this).on("dragstart",B,this).on("dragend",U,this).on("touchmove",B,this),this._markerGroup.addLayer(Q)},_updatePrevNext:function(i,E){i&&(i._next=E),E&&(E._prev=i)},_getMiddleLatLng:function(i,E){var M=this._poly._map,B=M.project(i.getLatLng()),U=M.project(E.getLatLng());return M.unproject(B._add(U)._divideBy(2))}}),L.Polyline.addInitHook(function(){this.editing||(L.Edit.Poly&&(this.editing=new L.Edit.Poly(this),this.options.editable&&this.editing.enable()),this.on("add",function(){this.editing&&this.editing.enabled()&&this.editing.addHooks()}),this.on("remove",function(){this.editing&&this.editing.enabled()&&this.editing.removeHooks()}))}),L.Edit=L.Edit||{},L.Edit.SimpleShape=L.Handler.extend({options:{moveIcon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move"}),resizeIcon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize"}),touchMoveIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move leaflet-touch-icon"}),touchResizeIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize leaflet-touch-icon"})},initialize:function(i,E){L.Browser.touch&&(this.options.moveIcon=this.options.touchMoveIcon,this.options.resizeIcon=this.options.touchResizeIcon),this._shape=i,L.Util.setOptions(this,E)},addHooks:function(){var i=this._shape;this._shape._map&&(this._map=this._shape._map,i.setStyle(i.options.editing),i._map&&(this._map=i._map,this._markerGroup||this._initMarkers(),this._map.addLayer(this._markerGroup)))},removeHooks:function(){var i=this._shape;if(i.setStyle(i.options.original),i._map){this._unbindMarker(this._moveMarker);for(var E=0,M=this._resizeMarkers.length;E"+L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.draw.handlers.circle.radius+": "+L.GeometryUtil.readableDistance(radius,!0,this.options.feet,this.options.nautic)}),this._shape.setRadius(radius),this._map.fire(L.Draw.Event.EDITRESIZE,{layer:this._shape})}}),L.Circle.addInitHook(function(){L.Edit.Circle&&(this.editing=new L.Edit.Circle(this),this.options.editable&&this.editing.enable())}),L.Map.mergeOptions({touchExtend:!0}),L.Map.TouchExtend=L.Handler.extend({initialize:function(i){this._map=i,this._container=i._container,this._pane=i._panes.overlayPane},addHooks:function(){L.DomEvent.on(this._container,"touchstart",this._onTouchStart,this),L.DomEvent.on(this._container,"touchend",this._onTouchEnd,this),L.DomEvent.on(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(L.DomEvent.on(this._container,"MSPointerDown",this._onTouchStart,this),L.DomEvent.on(this._container,"MSPointerUp",this._onTouchEnd,this),L.DomEvent.on(this._container,"MSPointerMove",this._onTouchMove,this),L.DomEvent.on(this._container,"MSPointerCancel",this._onTouchCancel,this)):(L.DomEvent.on(this._container,"touchcancel",this._onTouchCancel,this),L.DomEvent.on(this._container,"touchleave",this._onTouchLeave,this))},removeHooks:function(){L.DomEvent.off(this._container,"touchstart",this._onTouchStart,this),L.DomEvent.off(this._container,"touchend",this._onTouchEnd,this),L.DomEvent.off(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(L.DomEvent.off(this._container,"MSPointerDown",this._onTouchStart,this),L.DomEvent.off(this._container,"MSPointerUp",this._onTouchEnd,this),L.DomEvent.off(this._container,"MSPointerMove",this._onTouchMove,this),L.DomEvent.off(this._container,"MSPointerCancel",this._onTouchCancel,this)):(L.DomEvent.off(this._container,"touchcancel",this._onTouchCancel,this),L.DomEvent.off(this._container,"touchleave",this._onTouchLeave,this))},_touchEvent:function(i,E){var M={};if(void 0!==i.touches){if(!i.touches.length)return;M=i.touches[0]}else if("touch"!==i.pointerType||(M=i,!this._filterClick(i)))return;var B=this._map.mouseEventToContainerPoint(M),U=this._map.mouseEventToLayerPoint(M),W=this._map.layerPointToLatLng(U);this._map.fire(E,{latlng:W,layerPoint:U,containerPoint:B,pageX:M.pageX,pageY:M.pageY,originalEvent:i})},_filterClick:function(i){var E=i.timeStamp||i.originalEvent.timeStamp,M=L.DomEvent._lastClick&&E-L.DomEvent._lastClick;return M&&M>100&&M<500||i.target._simulatedClick&&!i._simulated?(L.DomEvent.stop(i),!1):(L.DomEvent._lastClick=E,!0)},_onTouchStart:function(i){this._map._loaded&&this._touchEvent(i,"touchstart")},_onTouchEnd:function(i){this._map._loaded&&this._touchEvent(i,"touchend")},_onTouchCancel:function(i){if(this._map._loaded){var E="touchcancel";this._detectIE()&&(E="pointercancel"),this._touchEvent(i,E)}},_onTouchLeave:function(i){this._map._loaded&&this._touchEvent(i,"touchleave")},_onTouchMove:function(i){this._map._loaded&&this._touchEvent(i,"touchmove")},_detectIE:function(){var i=Je.navigator.userAgent,E=i.indexOf("MSIE ");if(E>0)return parseInt(i.substring(E+5,i.indexOf(".",E)),10);if(i.indexOf("Trident/")>0){var M=i.indexOf("rv:");return parseInt(i.substring(M+3,i.indexOf(".",M)),10)}var B=i.indexOf("Edge/");return B>0&&parseInt(i.substring(B+5,i.indexOf(".",B)),10)}}),L.Map.addInitHook("addHandler","touchExtend",L.Map.TouchExtend),L.Marker.Touch=L.Marker.extend({_initInteraction:function(){return this.addInteractiveTarget?L.Marker.prototype._initInteraction.apply(this):this._initInteractionLegacy()},_initInteractionLegacy:function(){if(this.options.clickable){var i=this._icon,E=["dblclick","mousedown","mouseover","mouseout","contextmenu","touchstart","touchend","touchmove"];E.concat(this._detectIE?["MSPointerDown","MSPointerUp","MSPointerMove","MSPointerCancel"]:["touchcancel"]),L.DomUtil.addClass(i,"leaflet-clickable"),L.DomEvent.on(i,"click",this._onMouseClick,this),L.DomEvent.on(i,"keypress",this._onKeyPress,this);for(var M=0;M0)return parseInt(i.substring(E+5,i.indexOf(".",E)),10);if(i.indexOf("Trident/")>0){var M=i.indexOf("rv:");return parseInt(i.substring(M+3,i.indexOf(".",M)),10)}var B=i.indexOf("Edge/");return B>0&&parseInt(i.substring(B+5,i.indexOf(".",B)),10)}}),L.LatLngUtil={cloneLatLngs:function(i){for(var E=[],M=0,B=i.length;M2){for(var q=0;q1&&(B=B+q+H[1])}return B},readableArea:function(E,M,Q){var U,W;return Q=L.Util.extend({},i,Q),M?(W=["ha","m"],type=typeof M,"string"===type?W=[M]:"boolean"!==type&&(W=M),U=E>=1e6&&-1!==W.indexOf("km")?L.GeometryUtil.formattedNumber(1e-6*E,Q.km)+" km\xb2":E>=1e4&&-1!==W.indexOf("ha")?L.GeometryUtil.formattedNumber(1e-4*E,Q.ha)+" ha":L.GeometryUtil.formattedNumber(E,Q.m)+" m\xb2"):U=(E/=.836127)>=3097600?L.GeometryUtil.formattedNumber(E/3097600,Q.mi)+" mi\xb2":E>=4840?L.GeometryUtil.formattedNumber(E/4840,Q.ac)+" acres":L.GeometryUtil.formattedNumber(E,Q.yd)+" yd\xb2",U},readableDistance:function(E,M,B,U,q){var Q;switch(q=L.Util.extend({},i,q),M?"string"==typeof M?M:"metric":B?"feet":U?"nauticalMile":"yards"){case"metric":Q=E>1e3?L.GeometryUtil.formattedNumber(E/1e3,q.km)+" km":L.GeometryUtil.formattedNumber(E,q.m)+" m";break;case"feet":E*=3.28083,Q=L.GeometryUtil.formattedNumber(E,q.ft)+" ft";break;case"nauticalMile":E*=.53996,Q=L.GeometryUtil.formattedNumber(E/1e3,q.nm)+" nm";break;default:Q=(E*=1.09361)>1760?L.GeometryUtil.formattedNumber(E/1760,q.mi)+" miles":L.GeometryUtil.formattedNumber(E,q.yd)+" yd"}return Q},isVersion07x:function(){var E=L.version.split(".");return 0===parseInt(E[0],10)&&7===parseInt(E[1],10)}}),L.Util.extend(L.LineUtil,{segmentsIntersect:function(i,E,M,B){return this._checkCounterclockwise(i,M,B)!==this._checkCounterclockwise(E,M,B)&&this._checkCounterclockwise(i,E,M)!==this._checkCounterclockwise(i,E,B)},_checkCounterclockwise:function(i,E,M){return(M.y-i.y)*(E.x-i.x)>(E.y-i.y)*(M.x-i.x)}}),L.Polyline.include({intersects:function(){var i,B=this._getProjectedPoints(),U=B?B.length:0;if(this._tooFewPointsForIntersection())return!1;for(i=U-1;i>=3;i--)if(this._lineSegmentsIntersectsRange(B[i-1],B[i],i-2))return!0;return!1},newLatLngIntersects:function(i,E){return!!this._map&&this.newPointIntersects(this._map.latLngToLayerPoint(i),E)},newPointIntersects:function(i,E){var M=this._getProjectedPoints(),B=M?M.length:0,U=M?M[B-1]:null,W=B-2;return!this._tooFewPointsForIntersection(1)&&this._lineSegmentsIntersectsRange(U,i,W,E?1:0)},_tooFewPointsForIntersection:function(i){var E=this._getProjectedPoints(),M=E?E.length:0;return!E||(M+=i||0)<=3},_lineSegmentsIntersectsRange:function(i,E,M,B){var Q=this._getProjectedPoints();B=B||0;for(var q=M;q>B;q--)if(L.LineUtil.segmentsIntersect(i,E,Q[q-1],Q[q]))return!0;return!1},_getProjectedPoints:function(){if(!this._defaultShape)return this._originalPoints;for(var i=[],E=this._defaultShape(),M=0;M=2?L.Toolbar.include(L.Evented.prototype):L.Toolbar.include(L.Mixin.Events)},enabled:function(){return null!==this._activeMode},disable:function(){this.enabled()&&this._activeMode.handler.disable()},addToolbar:function(i){var E,M=L.DomUtil.create("div","leaflet-draw-section"),B=0,U=this._toolbarClass||"",W=this.getModeHandlers(i);for(this._toolbarContainer=L.DomUtil.create("div","leaflet-draw-toolbar leaflet-bar"),this._map=i,E=0;E0&&this._singleLineLabel&&(L.DomUtil.removeClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!1):(L.DomUtil.addClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!0),this._container.innerHTML=(i.subtext.length>0?''+i.subtext+"
    ":"")+""+i.text+"",i.text||i.subtext?(this._visible=!0,this._container.style.visibility="inherit"):(this._visible=!1,this._container.style.visibility="hidden"),this):this},updatePosition:function(i){var E=this._map.latLngToLayerPoint(i),M=this._container;return this._container&&(this._visible&&(M.style.visibility="inherit"),L.DomUtil.setPosition(M,E)),this},showAsError:function(){return this._container&&L.DomUtil.addClass(this._container,"leaflet-error-draw-tooltip"),this},removeError:function(){return this._container&&L.DomUtil.removeClass(this._container,"leaflet-error-draw-tooltip"),this},_onMouseOut:function(){this._container&&(this._container.style.visibility="hidden")}}),L.DrawToolbar=L.Toolbar.extend({statics:{TYPE:"draw"},options:{polyline:{},polygon:{},rectangle:{},circle:{},marker:{},circlemarker:{}},initialize:function(i){for(var E in this.options)this.options.hasOwnProperty(E)&&i[E]&&(i[E]=L.extend({},this.options[E],i[E]));this._toolbarClass="leaflet-draw-draw",L.Toolbar.prototype.initialize.call(this,i)},getModeHandlers:function(i){return[{enabled:this.options.polyline,handler:new L.Draw.Polyline(i,this.options.polyline),title:L.drawLocal.draw.toolbar.buttons.polyline},{enabled:this.options.polygon,handler:new L.Draw.Polygon(i,this.options.polygon),title:L.drawLocal.draw.toolbar.buttons.polygon},{enabled:this.options.rectangle,handler:new L.Draw.Rectangle(i,this.options.rectangle),title:L.drawLocal.draw.toolbar.buttons.rectangle},{enabled:this.options.circle,handler:new L.Draw.Circle(i,this.options.circle),title:L.drawLocal.draw.toolbar.buttons.circle},{enabled:this.options.marker,handler:new L.Draw.Marker(i,this.options.marker),title:L.drawLocal.draw.toolbar.buttons.marker},{enabled:this.options.circlemarker,handler:new L.Draw.CircleMarker(i,this.options.circlemarker),title:L.drawLocal.draw.toolbar.buttons.circlemarker}]},getActions:function(i){return[{enabled:i.completeShape,title:L.drawLocal.draw.toolbar.finish.title,text:L.drawLocal.draw.toolbar.finish.text,callback:i.completeShape,context:i},{enabled:i.deleteLastVertex,title:L.drawLocal.draw.toolbar.undo.title,text:L.drawLocal.draw.toolbar.undo.text,callback:i.deleteLastVertex,context:i},{title:L.drawLocal.draw.toolbar.actions.title,text:L.drawLocal.draw.toolbar.actions.text,callback:this.disable,context:this}]},setOptions:function(i){for(var E in L.setOptions(this,i),this._modes)this._modes.hasOwnProperty(E)&&i.hasOwnProperty(E)&&this._modes[E].handler.setOptions(i[E])}}),L.EditToolbar=L.Toolbar.extend({statics:{TYPE:"edit"},options:{edit:{selectedPathOptions:{dashArray:"10, 10",fill:!0,fillColor:"#fe57a1",fillOpacity:.1,maintainColor:!1}},remove:{},poly:null,featureGroup:null},initialize:function(i){i.edit&&(void 0===i.edit.selectedPathOptions&&(i.edit.selectedPathOptions=this.options.edit.selectedPathOptions),i.edit.selectedPathOptions=L.extend({},this.options.edit.selectedPathOptions,i.edit.selectedPathOptions)),i.remove&&(i.remove=L.extend({},this.options.remove,i.remove)),i.poly&&(i.poly=L.extend({},this.options.poly,i.poly)),this._toolbarClass="leaflet-draw-edit",L.Toolbar.prototype.initialize.call(this,i),this._selectedFeatureCount=0},getModeHandlers:function(i){var E=this.options.featureGroup;return[{enabled:this.options.edit,handler:new L.EditToolbar.Edit(i,{featureGroup:E,selectedPathOptions:this.options.edit.selectedPathOptions,poly:this.options.poly}),title:L.drawLocal.edit.toolbar.buttons.edit},{enabled:this.options.remove,handler:new L.EditToolbar.Delete(i,{featureGroup:E}),title:L.drawLocal.edit.toolbar.buttons.remove}]},getActions:function(i){var E=[{title:L.drawLocal.edit.toolbar.actions.save.title,text:L.drawLocal.edit.toolbar.actions.save.text,callback:this._save,context:this},{title:L.drawLocal.edit.toolbar.actions.cancel.title,text:L.drawLocal.edit.toolbar.actions.cancel.text,callback:this.disable,context:this}];return i.removeAllLayers&&E.push({title:L.drawLocal.edit.toolbar.actions.clearAll.title,text:L.drawLocal.edit.toolbar.actions.clearAll.text,callback:this._clearAllLayers,context:this}),E},addToolbar:function(i){var E=L.Toolbar.prototype.addToolbar.call(this,i);return this._checkDisabled(),this.options.featureGroup.on("layeradd layerremove",this._checkDisabled,this),E},removeToolbar:function(){this.options.featureGroup.off("layeradd layerremove",this._checkDisabled,this),L.Toolbar.prototype.removeToolbar.call(this)},disable:function(){this.enabled()&&(this._activeMode.handler.revertLayers(),L.Toolbar.prototype.disable.call(this))},_save:function(){this._activeMode.handler.save(),this._activeMode&&this._activeMode.handler.disable()},_clearAllLayers:function(){this._activeMode.handler.removeAllLayers(),this._activeMode&&this._activeMode.handler.disable()},_checkDisabled:function(){var i,M=0!==this.options.featureGroup.getLayers().length;this.options.edit&&(i=this._modes[L.EditToolbar.Edit.TYPE].button,M?L.DomUtil.removeClass(i,"leaflet-disabled"):L.DomUtil.addClass(i,"leaflet-disabled"),i.setAttribute("title",M?L.drawLocal.edit.toolbar.buttons.edit:L.drawLocal.edit.toolbar.buttons.editDisabled)),this.options.remove&&(i=this._modes[L.EditToolbar.Delete.TYPE].button,M?L.DomUtil.removeClass(i,"leaflet-disabled"):L.DomUtil.addClass(i,"leaflet-disabled"),i.setAttribute("title",M?L.drawLocal.edit.toolbar.buttons.remove:L.drawLocal.edit.toolbar.buttons.removeDisabled))}}),L.EditToolbar.Edit=L.Handler.extend({statics:{TYPE:"edit"},initialize:function(i,E){if(L.Handler.prototype.initialize.call(this,i),L.setOptions(this,E),this._featureGroup=E.featureGroup,!(this._featureGroup instanceof L.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this._uneditedLayerProps={},this.type=L.EditToolbar.Edit.TYPE;var M=L.version.split(".");1===parseInt(M[0],10)&&parseInt(M[1],10)>=2?L.EditToolbar.Edit.include(L.Evented.prototype):L.EditToolbar.Edit.include(L.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.EDITSTART,{handler:this.type}),L.Handler.prototype.enable.call(this),this._featureGroup.on("layeradd",this._enableLayerEdit,this).on("layerremove",this._disableLayerEdit,this))},disable:function(){this._enabled&&(this._featureGroup.off("layeradd",this._enableLayerEdit,this).off("layerremove",this._disableLayerEdit,this),L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.EDITSTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var i=this._map;i&&(i.getContainer().focus(),this._featureGroup.eachLayer(this._enableLayerEdit,this),this._tooltip=new L.Draw.Tooltip(this._map),this._tooltip.updateContent({text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext}),i._editTooltip=this._tooltip,this._updateTooltip(),this._map.on("mousemove",this._onMouseMove,this).on("touchmove",this._onMouseMove,this).on("MSPointerMove",this._onMouseMove,this).on(L.Draw.Event.EDITVERTEX,this._updateTooltip,this))},removeHooks:function(){this._map&&(this._featureGroup.eachLayer(this._disableLayerEdit,this),this._uneditedLayerProps={},this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this).off("touchmove",this._onMouseMove,this).off("MSPointerMove",this._onMouseMove,this).off(L.Draw.Event.EDITVERTEX,this._updateTooltip,this))},revertLayers:function(){this._featureGroup.eachLayer(function(i){this._revertLayer(i)},this)},save:function(){var i=new L.LayerGroup;this._featureGroup.eachLayer(function(E){E.edited&&(i.addLayer(E),E.edited=!1)}),this._map.fire(L.Draw.Event.EDITED,{layers:i})},_backupLayer:function(i){var E=L.Util.stamp(i);this._uneditedLayerProps[E]||(i instanceof L.Polyline||i instanceof L.Polygon||i instanceof L.Rectangle?this._uneditedLayerProps[E]={latlngs:L.LatLngUtil.cloneLatLngs(i.getLatLngs())}:i instanceof L.Circle?this._uneditedLayerProps[E]={latlng:L.LatLngUtil.cloneLatLng(i.getLatLng()),radius:i.getRadius()}:(i instanceof L.Marker||i instanceof L.CircleMarker)&&(this._uneditedLayerProps[E]={latlng:L.LatLngUtil.cloneLatLng(i.getLatLng())}))},_getTooltipText:function(){return{text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext}},_updateTooltip:function(){this._tooltip.updateContent(this._getTooltipText())},_revertLayer:function(i){var E=L.Util.stamp(i);i.edited=!1,this._uneditedLayerProps.hasOwnProperty(E)&&(i instanceof L.Polyline||i instanceof L.Polygon||i instanceof L.Rectangle?i.setLatLngs(this._uneditedLayerProps[E].latlngs):i instanceof L.Circle?(i.setLatLng(this._uneditedLayerProps[E].latlng),i.setRadius(this._uneditedLayerProps[E].radius)):(i instanceof L.Marker||i instanceof L.CircleMarker)&&i.setLatLng(this._uneditedLayerProps[E].latlng),i.fire("revert-edited",{layer:i}))},_enableLayerEdit:function(i){var E,M,B=i.layer||i.target||i;this._backupLayer(B),this.options.poly&&(M=L.Util.extend({},this.options.poly),B.options.poly=M),this.options.selectedPathOptions&&((E=L.Util.extend({},this.options.selectedPathOptions)).maintainColor&&(E.color=B.options.color,E.fillColor=B.options.fillColor),B.options.original=L.extend({},B.options),B.options.editing=E),B instanceof L.Marker?(B.editing&&B.editing.enable(),B.dragging.enable(),B.on("dragend",this._onMarkerDragEnd).on("touchmove",this._onTouchMove,this).on("MSPointerMove",this._onTouchMove,this).on("touchend",this._onMarkerDragEnd,this).on("MSPointerUp",this._onMarkerDragEnd,this)):B.editing.enable()},_disableLayerEdit:function(i){var E=i.layer||i.target||i;E.edited=!1,E.editing&&E.editing.disable(),delete E.options.editing,delete E.options.original,this._selectedPathOptions&&(E instanceof L.Marker?this._toggleMarkerHighlight(E):(E.setStyle(E.options.previousOptions),delete E.options.previousOptions)),E instanceof L.Marker?(E.dragging.disable(),E.off("dragend",this._onMarkerDragEnd,this).off("touchmove",this._onTouchMove,this).off("MSPointerMove",this._onTouchMove,this).off("touchend",this._onMarkerDragEnd,this).off("MSPointerUp",this._onMarkerDragEnd,this)):E.editing.disable()},_onMouseMove:function(i){this._tooltip.updatePosition(i.latlng)},_onMarkerDragEnd:function(i){var E=i.target;E.edited=!0,this._map.fire(L.Draw.Event.EDITMOVE,{layer:E})},_onTouchMove:function(i){var M=this._map.mouseEventToLayerPoint(i.originalEvent.changedTouches[0]),B=this._map.layerPointToLatLng(M);i.target.setLatLng(B)},_hasAvailableLayers:function(){return 0!==this._featureGroup.getLayers().length}}),L.EditToolbar.Delete=L.Handler.extend({statics:{TYPE:"remove"},initialize:function(i,E){if(L.Handler.prototype.initialize.call(this,i),L.Util.setOptions(this,E),this._deletableLayers=this.options.featureGroup,!(this._deletableLayers instanceof L.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this.type=L.EditToolbar.Delete.TYPE;var M=L.version.split(".");1===parseInt(M[0],10)&&parseInt(M[1],10)>=2?L.EditToolbar.Delete.include(L.Evented.prototype):L.EditToolbar.Delete.include(L.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.DELETESTART,{handler:this.type}),L.Handler.prototype.enable.call(this),this._deletableLayers.on("layeradd",this._enableLayerDelete,this).on("layerremove",this._disableLayerDelete,this))},disable:function(){this._enabled&&(this._deletableLayers.off("layeradd",this._enableLayerDelete,this).off("layerremove",this._disableLayerDelete,this),L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.DELETESTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var i=this._map;i&&(i.getContainer().focus(),this._deletableLayers.eachLayer(this._enableLayerDelete,this),this._deletedLayers=new L.LayerGroup,this._tooltip=new L.Draw.Tooltip(this._map),this._tooltip.updateContent({text:L.drawLocal.edit.handlers.remove.tooltip.text}),this._map.on("mousemove",this._onMouseMove,this))},removeHooks:function(){this._map&&(this._deletableLayers.eachLayer(this._disableLayerDelete,this),this._deletedLayers=null,this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this))},revertLayers:function(){this._deletedLayers.eachLayer(function(i){this._deletableLayers.addLayer(i),i.fire("revert-deleted",{layer:i})},this)},save:function(){this._map.fire(L.Draw.Event.DELETED,{layers:this._deletedLayers})},removeAllLayers:function(){this._deletableLayers.eachLayer(function(i){this._removeLayer({layer:i})},this),this.save()},_enableLayerDelete:function(i){(i.layer||i.target||i).on("click",this._removeLayer,this)},_disableLayerDelete:function(i){var E=i.layer||i.target||i;E.off("click",this._removeLayer,this),this._deletedLayers.removeLayer(E)},_removeLayer:function(i){var E=i.layer||i.target||i;this._deletableLayers.removeLayer(E),this._deletedLayers.addLayer(E),E.fire("deleted")},_onMouseMove:function(i){this._tooltip.updatePosition(i.latlng)},_hasAvailableLayers:function(){return 0!==this._deletableLayers.getLayers().length}})},407:function(Je,he){!function(F){"use strict";function i(u){var p,g,w,S;for(g=1,w=arguments.length;g"u")&&L&&L.Mixin){u=te(u)?u:[u];for(var p=0;p0?Math.floor(u):Math.ceil(u)};function Pe(u,p,g){return u instanceof ce?u:te(u)?new ce(u[0],u[1]):null==u?u:"object"==typeof u&&"x"in u&&"y"in u?new ce(u.x,u.y):new ce(u,p,g)}function kt(u,p){if(u)for(var g=p?[u,p]:u,w=0,S=g.length;w=this.min.x&&g.x<=this.max.x&&p.y>=this.min.y&&g.y<=this.max.y},intersects:function(u){u=Kn(u);var p=this.min,g=this.max,w=u.min,S=u.max;return S.x>=p.x&&w.x<=g.x&&S.y>=p.y&&w.y<=g.y},overlaps:function(u){u=Kn(u);var p=this.min,g=this.max,w=u.min,S=u.max;return S.x>p.x&&w.xp.y&&w.y=p.lat&&S.lat<=g.lat&&w.lng>=p.lng&&S.lng<=g.lng},intersects:function(u){u=hn(u);var p=this._southWest,g=this._northEast,w=u.getSouthWest(),S=u.getNorthEast();return S.lat>=p.lat&&w.lat<=g.lat&&S.lng>=p.lng&&w.lng<=g.lng},overlaps:function(u){u=hn(u);var p=this._southWest,g=this._northEast,w=u.getSouthWest(),S=u.getNorthEast();return S.lat>p.lat&&w.latp.lng&&w.lng1,Rt=function(){var u=!1;try{var p=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("testPassiveEventSupport",q,p),window.removeEventListener("testPassiveEventSupport",q,p)}catch{}return u}(),Oo=!!document.createElement("canvas").getContext,ko=!(!document.createElementNS||!Vc("svg").createSVGRect),ys=!!ko&&function(){var u=document.createElement("div");return u.innerHTML="","http://www.w3.org/2000/svg"===(u.firstChild&&u.firstChild.namespaceURI)}(),wa=!ko&&function(){try{var u=document.createElement("div");u.innerHTML='';var p=u.firstChild;return p.style.behavior="url(#default#VML)",p&&"object"==typeof p.adj}catch{return!1}}();function Hi(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var Ee={ie:ga,ielt9:jc,edge:fp,webkit:Un,android:_s,android23:Ao,androidStock:Uc,opera:ql,chrome:xe,gecko:va,safari:nn,phantom:De,opera12:Ze,win:ov,ie3d:Lt,webkit3d:ji,gecko3d:ya,any3d:Ui,mobile:hi,mobileWebkit:Ft,mobileWebkit3d:ba,msPointer:bt,pointer:Hc,touch:zc,touchNative:vs,mobileOpera:Or,mobileGecko:Qr,retina:$c,passiveEvents:Rt,canvas:Oo,svg:ko,vml:wa,inlineSvg:ys,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},fi=Ee.msPointer?"MSPointerDown":"pointerdown",Xn=Ee.msPointer?"MSPointerMove":"pointermove",Ei=Ee.msPointer?"MSPointerUp":"pointerup",ei=Ee.msPointer?"MSPointerCancel":"pointercancel",nt={touchstart:fi,touchmove:Xn,touchend:Ei,touchcancel:ei},Fo={touchstart:function gp(u,p){p.MSPOINTER_TYPE_TOUCH&&p.pointerType===p.MSPOINTER_TYPE_TOUCH&&Nt(p),Ro(u,p)},touchmove:Ro,touchend:Ro,touchcancel:Ro},or={},Kr=!1;function Ca(u,p,g){return"touchstart"===p&&function Gc(){Kr||(document.addEventListener(fi,kr,!0),document.addEventListener(Xn,mp,!0),document.addEventListener(Ei,Yl,!0),document.addEventListener(ei,Yl,!0),Kr=!0)}(),Fo[p]?(g=Fo[p].bind(this,g),u.addEventListener(nt[p],g,!1),g):(console.warn("wrong event specified:",p),q)}function kr(u){or[u.pointerId]=u}function mp(u){or[u.pointerId]&&(or[u.pointerId]=u)}function Yl(u){delete or[u.pointerId]}function Ro(u,p){if(p.pointerType!==(p.MSPOINTER_TYPE_MOUSE||"mouse")){for(var g in p.touches=[],or)p.touches.push(or[g]);p.changedTouches=[p],u(p)}}var Wc=200;var No,$i,Ea,rn,_i,ws=St(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),at=St(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Sn="webkitTransition"===at||"OTransition"===at?at+"End":"transitionend";function An(u){return"string"==typeof u?document.getElementById(u):u}function pi(u,p){var g=u.style[p]||u.currentStyle&&u.currentStyle[p];if((!g||"auto"===g)&&document.defaultView){var w=document.defaultView.getComputedStyle(u,null);g=w?w[p]:null}return"auto"===g?null:g}function He(u,p,g){var w=document.createElement(u);return w.className=p||"",g&&g.appendChild(w),w}function ze(u){var p=u.parentNode;p&&p.removeChild(u)}function Cs(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function zi(u){var p=u.parentNode;p&&p.lastChild!==u&&p.appendChild(u)}function On(u){var p=u.parentNode;p&&p.firstChild!==u&&p.insertBefore(u,p.firstChild)}function ge(u,p){if(void 0!==u.classList)return u.classList.contains(p);var g=Fe(u);return g.length>0&&new RegExp("(^|\\s)"+p+"(\\s|$)").test(g)}function re(u,p){if(void 0!==u.classList)for(var g=J(p),w=0,S=g.length;w0?2*window.devicePixelRatio:1;function Kc(u){return Ee.edge?u.wheelDeltaY/2:u.deltaY&&0===u.deltaMode?-u.deltaY/_p:u.deltaY&&1===u.deltaMode?20*-u.deltaY:u.deltaY&&2===u.deltaMode?60*-u.deltaY:u.deltaX||u.deltaZ?0:u.wheelDelta?(u.wheelDeltaY||u.wheelDelta)/2:u.detail&&Math.abs(u.detail)<32765?20*-u.detail:u.detail?u.detail/-32765*60:0}function Jc(u,p){var g=p.relatedTarget;if(!g)return!0;try{for(;g&&g!==u;)g=g.parentNode}catch{return!1}return g!==u}var Xc={__proto__:null,on:Ye,off:ft,stopPropagation:gn,disableScrollPropagation:Ss,disableClickPropagation:ar,preventDefault:Nt,stop:_n,getPropagationPath:Yc,getMousePosition:Qc,getWheelDelta:Kc,isExternalTarget:Jc,addListener:Ye,removeListener:ft},Jl=Dt.extend({run:function(u,p,g,w){this.stop(),this._el=u,this._inProgress=!0,this._duration=g||.25,this._easeOutPower=1/Math.max(w||.5,.2),this._startPos=je(u),this._offset=p.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=Ge(this._animate,this),this._step()},_step:function(u){var p=+new Date-this._startTime,g=1e3*this._duration;pthis.options.maxZoom)?this.setZoom(u):this},panInsideBounds:function(u,p){this._enforcingBounds=!0;var g=this.getCenter(),w=this._limitCenter(g,this._zoom,hn(u));return g.equals(w)||this.panTo(w,p),this._enforcingBounds=!1,this},panInside:function(u,p){var g=Pe((p=p||{}).paddingTopLeft||p.padding||[0,0]),w=Pe(p.paddingBottomRight||p.padding||[0,0]),S=this.project(this.getCenter()),P=this.project(u),R=this.getPixelBounds(),G=Kn([R.min.add(g),R.max.subtract(w)]),Z=G.getSize();if(!G.contains(P)){this._enforcingBounds=!0;var ie=P.subtract(G.getCenter()),fe=G.extend(P).getSize().subtract(Z);S.x+=ie.x<0?-fe.x:fe.x,S.y+=ie.y<0?-fe.y:fe.y,this.panTo(this.unproject(S),p),this._enforcingBounds=!1}return this},invalidateSize:function(u){if(!this._loaded)return this;u=i({animate:!1,pan:!0},!0===u?{animate:!0}:u);var p=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var g=this.getSize(),w=p.divideBy(2).round(),S=g.divideBy(2).round(),P=w.subtract(S);return P.x||P.y?(u.animate&&u.pan?this.panBy(P):(u.pan&&this._rawPanBy(P),this.fire("move"),u.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(M(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:p,newSize:g})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(u){if(u=this._locateOptions=i({timeout:1e4,watch:!1},u),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var p=M(this._handleGeolocationResponse,this),g=M(this._handleGeolocationError,this);return u.watch?this._locationWatchId=navigator.geolocation.watchPosition(p,g,u):navigator.geolocation.getCurrentPosition(p,g,u),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(u){if(this._container._leaflet_id){var p=u.code,g=u.message||(1===p?"permission denied":2===p?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:p,message:"Geolocation error: "+g+"."})}},_handleGeolocationResponse:function(u){if(this._container._leaflet_id){var w=new yt(u.coords.latitude,u.coords.longitude),S=w.toBounds(2*u.coords.accuracy),P=this._locateOptions;if(P.setView){var R=this.getBoundsZoom(S);this.setView(w,P.maxZoom?Math.min(R,P.maxZoom):R)}var G={latlng:w,bounds:S,timestamp:u.timestamp};for(var Z in u.coords)"number"==typeof u.coords[Z]&&(G[Z]=u.coords[Z]);this.fire("locationfound",G)}},addHandler:function(u,p){if(!p)return this;var g=this[u]=new p(this);return this._handlers.push(g),this.options[u]&&g.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}var u;for(u in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ze(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Yn(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[u].remove();for(u in this._panes)ze(this._panes[u]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(u,p){var w=He("div","leaflet-pane"+(u?" leaflet-"+u.replace("Pane","")+"-pane":""),p||this._mapPane);return u&&(this._panes[u]=w),w},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var u=this.getPixelBounds();return new Jn(this.unproject(u.getBottomLeft()),this.unproject(u.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(u,p,g){u=hn(u),g=Pe(g||[0,0]);var w=this.getZoom()||0,S=this.getMinZoom(),P=this.getMaxZoom(),R=u.getNorthWest(),G=u.getSouthEast(),Z=this.getSize().subtract(g),ie=Kn(this.project(G,w),this.project(R,w)).getSize(),fe=Ee.any3d?this.options.zoomSnap:1,Re=Z.x/ie.x,it=Z.y/ie.y,$n=p?Math.max(Re,it):Math.min(Re,it);return w=this.getScaleZoom($n,w),fe&&(w=Math.round(w/(fe/100))*(fe/100),w=p?Math.ceil(w/fe)*fe:Math.floor(w/fe)*fe),Math.max(S,Math.min(P,w))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new ce(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(u,p){var g=this._getTopLeftPoint(u,p);return new kt(g,g.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(u){return this.options.crs.getProjectedBounds(void 0===u?this.getZoom():u)},getPane:function(u){return"string"==typeof u?this._panes[u]:u},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(u,p){var g=this.options.crs;return p=void 0===p?this._zoom:p,g.scale(u)/g.scale(p)},getScaleZoom:function(u,p){var g=this.options.crs,w=g.zoom(u*g.scale(p=void 0===p?this._zoom:p));return isNaN(w)?1/0:w},project:function(u,p){return p=void 0===p?this._zoom:p,this.options.crs.latLngToPoint(Mt(u),p)},unproject:function(u,p){return p=void 0===p?this._zoom:p,this.options.crs.pointToLatLng(Pe(u),p)},layerPointToLatLng:function(u){var p=Pe(u).add(this.getPixelOrigin());return this.unproject(p)},latLngToLayerPoint:function(u){return this.project(Mt(u))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(u){return this.options.crs.wrapLatLng(Mt(u))},wrapLatLngBounds:function(u){return this.options.crs.wrapLatLngBounds(hn(u))},distance:function(u,p){return this.options.crs.distance(Mt(u),Mt(p))},containerPointToLayerPoint:function(u){return Pe(u).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(u){return Pe(u).add(this._getMapPanePos())},containerPointToLatLng:function(u){var p=this.containerPointToLayerPoint(Pe(u));return this.layerPointToLatLng(p)},latLngToContainerPoint:function(u){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Mt(u)))},mouseEventToContainerPoint:function(u){return Qc(u,this._container)},mouseEventToLayerPoint:function(u){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(u))},mouseEventToLatLng:function(u){return this.layerPointToLatLng(this.mouseEventToLayerPoint(u))},_initContainer:function(u){var p=this._container=An(u);if(!p)throw new Error("Map container not found.");if(p._leaflet_id)throw new Error("Map container is already initialized.");Ye(p,"scroll",this._onScroll,this),this._containerId=U(p)},_initLayout:function(){var u=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ee.any3d,re(u,"leaflet-container"+(Ee.touch?" leaflet-touch":"")+(Ee.retina?" leaflet-retina":"")+(Ee.ielt9?" leaflet-oldie":"")+(Ee.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var p=pi(u,"position");"absolute"!==p&&"relative"!==p&&"fixed"!==p&&"sticky"!==p&&(u.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var u=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),At(this._mapPane,new ce(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(re(u.markerPane,"leaflet-zoom-hide"),re(u.shadowPane,"leaflet-zoom-hide"))},_resetView:function(u,p,g){At(this._mapPane,new ce(0,0));var w=!this._loaded;this._loaded=!0,p=this._limitZoom(p),this.fire("viewprereset");var S=this._zoom!==p;this._moveStart(S,g)._move(u,p)._moveEnd(S),this.fire("viewreset"),w&&this.fire("load")},_moveStart:function(u,p){return u&&this.fire("zoomstart"),p||this.fire("movestart"),this},_move:function(u,p,g,w){void 0===p&&(p=this._zoom);var S=this._zoom!==p;return this._zoom=p,this._lastCenter=u,this._pixelOrigin=this._getNewPixelOrigin(u),w?g&&g.pinch&&this.fire("zoom",g):((S||g&&g.pinch)&&this.fire("zoom",g),this.fire("move",g)),this},_moveEnd:function(u){return u&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Yn(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(u){At(this._mapPane,this._getMapPanePos().subtract(u))},_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(u){this._targets={},this._targets[U(this._container)]=this;var p=u?ft:Ye;p(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&p(window,"resize",this._onResize,this),Ee.any3d&&this.options.transform3DLimit&&(u?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Yn(this._resizeRequest),this._resizeRequest=Ge(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var u=this._getMapPanePos();Math.max(Math.abs(u.x),Math.abs(u.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(u,p){for(var w,g=[],S="mouseout"===p||"mouseover"===p,P=u.target||u.srcElement,R=!1;P;){if((w=this._targets[U(P)])&&("click"===p||"preclick"===p)&&this._draggableMoved(w)){R=!0;break}if(w&&w.listens(p,!0)&&(S&&!Jc(P,u)||(g.push(w),S))||P===this._container)break;P=P.parentNode}return!g.length&&!R&&!S&&this.listens(p,!0)&&(g=[this]),g},_isClickDisabled:function(u){for(;u&&u!==this._container;){if(u._leaflet_disable_click)return!0;u=u.parentNode}},_handleDOMEvent:function(u){var p=u.target||u.srcElement;if(!(!this._loaded||p._leaflet_disable_events||"click"===u.type&&this._isClickDisabled(p))){var g=u.type;"mousedown"===g&&Xr(p),this._fireDOMEvent(u,g)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,p,g){if("click"===u.type){var w=i({},u);w.type="preclick",this._fireDOMEvent(w,w.type,g)}var S=this._findEventTargets(u,p);if(g){for(var P=[],R=0;R0?Math.round(u-p)/2:Math.max(0,Math.ceil(u))-Math.max(0,Math.floor(p))},_limitZoom:function(u){var p=this.getMinZoom(),g=this.getMaxZoom(),w=Ee.any3d?this.options.zoomSnap:1;return w&&(u=Math.round(u/w)*w),Math.max(p,Math.min(g,u))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){qe(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(u,p){var g=this._getCenterOffset(u)._trunc();return!(!0!==(p&&p.animate)&&!this.getSize().contains(g)||(this.panBy(g,p),0))},_createAnimProxy:function(){var u=this._proxy=He("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(u),this.on("zoomanim",function(p){var g=ws,w=this._proxy.style[g];mi(this._proxy,this.project(p.center,p.zoom),this.getZoomScale(p.zoom,1)),w===this._proxy.style[g]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ze(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var u=this.getCenter(),p=this.getZoom();mi(this._proxy,this.project(u,p),this.getZoomScale(p,1))},_catchTransitionEnd:function(u){this._animatingZoom&&u.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(u,p,g){if(this._animatingZoom)return!0;if(g=g||{},!this._zoomAnimated||!1===g.animate||this._nothingToAnimate()||Math.abs(p-this._zoom)>this.options.zoomAnimationThreshold)return!1;var w=this.getZoomScale(p),S=this._getCenterOffset(u)._divideBy(1-1/w);return!(!0!==g.animate&&!this.getSize().contains(S)||(Ge(function(){this._moveStart(!0,!1)._animateZoom(u,p,!0)},this),0))},_animateZoom:function(u,p,g,w){this._mapPane&&(g&&(this._animatingZoom=!0,this._animateToCenter=u,this._animateToZoom=p,re(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:u,zoom:p,noUpdate:w}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(M(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&qe(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))}});var Ke=gt.extend({options:{position:"topright"},initialize:function(u){Y(this,u)},getPosition:function(){return this.options.position},setPosition:function(u){var p=this._map;return p&&p.removeControl(this),this.options.position=u,p&&p.addControl(this),this},getContainer:function(){return this._container},addTo:function(u){this.remove(),this._map=u;var p=this._container=this.onAdd(u),g=this.getPosition(),w=u._controlCorners[g];return re(p,"leaflet-control"),-1!==g.indexOf("bottom")?w.insertBefore(p,w.firstChild):w.appendChild(p),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ze(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(u){this._map&&u&&u.screenX>0&&u.screenY>0&&this._map.getContainer().focus()}}),Es=function(u){return new Ke(u)};ot.include({addControl:function(u){return u.addTo(this),this},removeControl:function(u){return u.remove(),this},_initControlPos:function(){var u=this._controlCorners={},p="leaflet-",g=this._controlContainer=He("div",p+"control-container",this._container);function w(S,P){u[S+P]=He("div",p+S+" "+p+P,g)}w("top","left"),w("top","right"),w("bottom","left"),w("bottom","right")},_clearControlPos:function(){for(var u in this._controlCorners)ze(this._controlCorners[u]);ze(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var vp=Ke.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,p,g,w){return g1)?"":"none"),this._separator.style.display=p&&u?"":"none",this},_onLayerChange:function(u){this._handlingClick||this._update();var p=this._getLayer(U(u.target)),g=p.overlay?"add"===u.type?"overlayadd":"overlayremove":"add"===u.type?"baselayerchange":null;g&&this._map.fire(g,p)},_createRadioElement:function(u,p){var g='",w=document.createElement("div");return w.innerHTML=g,w.firstChild},_addItem:function(u){var w,p=document.createElement("label"),g=this._map.hasLayer(u.layer);u.overlay?((w=document.createElement("input")).type="checkbox",w.className="leaflet-control-layers-selector",w.defaultChecked=g):w=this._createRadioElement("leaflet-base-layers_"+U(this),g),this._layerControlInputs.push(w),w.layerId=U(u.layer),Ye(w,"click",this._onInputClick,this);var S=document.createElement("span");S.innerHTML=" "+u.name;var P=document.createElement("span");return p.appendChild(P),P.appendChild(w),P.appendChild(S),(u.overlay?this._overlaysList:this._baseLayersList).appendChild(p),this._checkDisabledLayers(),p},_onInputClick:function(){var p,g,u=this._layerControlInputs,w=[],S=[];this._handlingClick=!0;for(var P=u.length-1;P>=0;P--)g=this._getLayer((p=u[P]).layerId).layer,p.checked?w.push(g):p.checked||S.push(g);for(P=0;P=0;S--)g=this._getLayer((p=u[S]).layerId).layer,p.disabled=void 0!==g.options.minZoom&&wg.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var u=this._section;Ye(u,"click",Nt),this.expand(),setTimeout(function(){ft(u,"click",Nt)})}}),ed=Ke.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(u){var p="leaflet-control-zoom",g=He("div",p+" leaflet-bar"),w=this.options;return this._zoomInButton=this._createButton(w.zoomInText,w.zoomInTitle,p+"-in",g,this._zoomIn),this._zoomOutButton=this._createButton(w.zoomOutText,w.zoomOutTitle,p+"-out",g,this._zoomOut),this._updateDisabled(),u.on("zoomend zoomlevelschange",this._updateDisabled,this),g},onRemove:function(u){u.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(u){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(u.shiftKey?3:1))},_createButton:function(u,p,g,w,S){var P=He("a",g,w);return P.innerHTML=u,P.href="#",P.title=p,P.setAttribute("role","button"),P.setAttribute("aria-label",p),ar(P),Ye(P,"click",_n),Ye(P,"click",S,this),Ye(P,"click",this._refocusOnMap,this),P},_updateDisabled:function(){var u=this._map,p="leaflet-disabled";qe(this._zoomInButton,p),qe(this._zoomOutButton,p),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||u._zoom===u.getMinZoom())&&(re(this._zoomOutButton,p),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||u._zoom===u.getMaxZoom())&&(re(this._zoomInButton,p),this._zoomInButton.setAttribute("aria-disabled","true"))}});ot.mergeOptions({zoomControl:!0}),ot.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ed,this.addControl(this.zoomControl))});var av=Ke.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var p="leaflet-control-scale",g=He("div",p),w=this.options;return this._addScales(w,p+"-line",g),u.on(w.updateWhenIdle?"moveend":"move",this._update,this),u.whenReady(this._update,this),g},onRemove:function(u){u.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(u,p,g){u.metric&&(this._mScale=He("div",p,g)),u.imperial&&(this._iScale=He("div",p,g))},_update:function(){var u=this._map,p=u.getSize().y/2,g=u.distance(u.containerPointToLatLng([0,p]),u.containerPointToLatLng([this.options.maxWidth,p]));this._updateScales(g)},_updateScales:function(u){this.options.metric&&u&&this._updateMetric(u),this.options.imperial&&u&&this._updateImperial(u)},_updateMetric:function(u){var p=this._getRoundNum(u);this._updateScale(this._mScale,p<1e3?p+" m":p/1e3+" km",p/u)},_updateImperial:function(u){var g,w,S,p=3.2808399*u;p>5280?(w=this._getRoundNum(g=p/5280),this._updateScale(this._iScale,w+" mi",w/g)):(S=this._getRoundNum(p),this._updateScale(this._iScale,S+" ft",S/p))},_updateScale:function(u,p,g){u.style.width=Math.round(this.options.maxWidth*g)+"px",u.innerHTML=p},_getRoundNum:function(u){var p=Math.pow(10,(Math.floor(u)+"").length-1),g=u/p;return p*(g>=10?10:g>=5?5:g>=3?3:g>=2?2:1)}}),wp=Ke.extend({options:{position:"bottomright",prefix:''+(Ee.inlineSvg?' ':"")+"Leaflet"},initialize:function(u){Y(this,u),this._attributions={}},onAdd:function(u){for(var p in u.attributionControl=this,this._container=He("div","leaflet-control-attribution"),ar(this._container),u._layers)u._layers[p].getAttribution&&this.addAttribution(u._layers[p].getAttribution());return this._update(),u.on("layeradd",this._addAttribution,this),this._container},onRemove:function(u){u.off("layeradd",this._addAttribution,this)},_addAttribution:function(u){u.layer.getAttribution&&(this.addAttribution(u.layer.getAttribution()),u.layer.once("remove",function(){this.removeAttribution(u.layer.getAttribution())},this))},setPrefix:function(u){return this.options.prefix=u,this._update(),this},addAttribution:function(u){return u?(this._attributions[u]||(this._attributions[u]=0),this._attributions[u]++,this._update(),this):this},removeAttribution:function(u){return u?(this._attributions[u]&&(this._attributions[u]--,this._update()),this):this},_update:function(){if(this._map){var u=[];for(var p in this._attributions)this._attributions[p]&&u.push(p);var g=[];this.options.prefix&&g.push(this.options.prefix),u.length&&g.push(u.join(", ")),this._container.innerHTML=g.join(' ')}}});ot.mergeOptions({attributionControl:!0}),ot.addInitHook(function(){this.options.attributionControl&&(new wp).addTo(this)});Ke.Layers=vp,Ke.Zoom=ed,Ke.Scale=av,Ke.Attribution=wp,Es.layers=function(u,p,g){return new vp(u,p,g)},Es.zoom=function(u){return new ed(u)},Es.scale=function(u){return new av(u)},Es.attribution=function(u){return new wp(u)};var lr=gt.extend({initialize:function(u){this._map=u},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});lr.addTo=function(u,p){return u.addHandler(p,this),this};var xa,Fr={Events:Ce},Xl=Ee.touch?"touchstart mousedown":"mousedown",ur=Dt.extend({options:{clickTolerance:3},initialize:function(u,p,g,w){Y(this,w),this._element=u,this._dragStartTarget=p||u,this._preventOutline=g},enable:function(){this._enabled||(Ye(this._dragStartTarget,Xl,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ur._dragging===this&&this.finishDrag(!0),ft(this._dragStartTarget,Xl,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!ge(this._element,"leaflet-zoom-anim"))){if(u.touches&&1!==u.touches.length)return void(ur._dragging===this&&this.finishDrag());if(!(ur._dragging||u.shiftKey||1!==u.which&&1!==u.button&&!u.touches||(ur._dragging=this,this._preventOutline&&Xr(this._element),Qt(),No(),this._moving))){this.fire("down");var p=u.touches?u.touches[0]:u,g=Et(this._element);this._startPoint=new ce(p.clientX,p.clientY),this._startPos=je(this._element),this._parentScale=Zc(g);var w="mousedown"===u.type;Ye(document,w?"mousemove":"touchmove",this._onMove,this),Ye(document,w?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(u){if(this._enabled){if(u.touches&&u.touches.length>1)return void(this._moved=!0);var p=u.touches&&1===u.touches.length?u.touches[0]:u,g=new ce(p.clientX,p.clientY)._subtract(this._startPoint);!g.x&&!g.y||Math.abs(g.x)+Math.abs(g.y)p&&(g.push(u[w]),S=w);return SP&&(R=G,P=Z);P>g&&(p[R]=1,Ta(u,p,g,w,R),Ta(u,p,g,R,S))}function Ts(u,p,g,w,S){var G,Z,ie,P=w?xa:Ti(u,g),R=Ti(p,g);for(xa=R;;){if(!(P|R))return[u,p];if(P&R)return!1;ie=Ti(Z=kn(u,p,G=P||R,g,S),g),G===P?(u=Z,P=ie):(p=Z,R=ie)}}function kn(u,p,g,w,S){var ie,fe,P=p.x-u.x,R=p.y-u.y,G=w.min,Z=w.max;return 8&g?(ie=u.x+P*(Z.y-u.y)/R,fe=Z.y):4&g?(ie=u.x+P*(G.y-u.y)/R,fe=G.y):2&g?(ie=Z.x,fe=u.y+R*(Z.x-u.x)/P):1&g&&(ie=G.x,fe=u.y+R*(G.x-u.x)/P),new ce(ie,fe,S)}function Ti(u,p){var g=0;return u.xp.max.x&&(g|=2),u.yp.max.y&&(g|=8),g}function td(u,p){var g=p.x-u.x,w=p.y-u.y;return g*g+w*w}function Ht(u,p,g,w){var ie,S=p.x,P=p.y,R=g.x-S,G=g.y-P,Z=R*R+G*G;return Z>0&&((ie=((u.x-S)*R+(u.y-P)*G)/Z)>1?(S=g.x,P=g.y):ie>0&&(S+=R*ie,P+=G*ie)),R=u.x-S,G=u.y-P,w?R*R+G*G:new ce(S,P)}function xi(u){return!te(u[0])||"object"!=typeof u[0][0]&&typeof u[0][0]<"u"}function xs(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),xi(u)}function Hn(u,p){var g,w,S,P,R,G,Z,ie;if(!u||0===u.length)throw new Error("latlngs not passed");xi(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var fe=[];for(var Re in u)fe.push(p.project(Mt(u[Re])));var it=fe.length;for(g=0,w=0;gw){ie=[G.x-(Z=(P-w)/S)*(G.x-R.x),G.y-Z*(G.y-R.y)];break}return p.unproject(Pe(ie))}var Ep={__proto__:null,simplify:eu,pointToSegmentDistance:Cp,closestPointOnSegment:function tu(u,p,g){return Ht(u,p,g)},clipSegment:Ts,_getEdgeIntersection:kn,_getBitCode:Ti,_sqClosestPointOnSegment:Ht,isFlat:xi,_flat:xs,polylineCenter:Hn};function nu(u,p,g){var w,P,R,G,Z,ie,fe,Re,it,S=[1,4,2,8];for(P=0,fe=u.length;P1e-7;G++)ie=S*Math.sin(R),ie=Math.pow((1-ie)/(1+ie),S/2),R+=Z=Math.PI/2-2*Math.atan(P*ie)-R;return new yt(R*p,u.x*p/g)}},Tp={__proto__:null,LonLat:iu,Mercator:Uo,SphericalMercator:We},to=i({},Vi,{code:"EPSG:3395",projection:Uo,transformation:function(){var u=.5/(Math.PI*Uo.R);return Zl(u,.5,-u,.5)}()}),ru=i({},Vi,{code:"EPSG:4326",projection:iu,transformation:Zl(1/180,1,-1/180,.5)}),ou=i({},di,{projection:iu,transformation:Zl(1,0,-1,0),scale:function(u){return Math.pow(2,u)},zoom:function(u){return Math.log(u)/Math.LN2},distance:function(u,p){var g=p.lng-u.lng,w=p.lat-u.lat;return Math.sqrt(g*g+w*w)},infinite:!0});di.Earth=Vi,di.EPSG3395=to,di.EPSG3857=hp,di.EPSG900913=Dn,di.EPSG4326=ru,di.Simple=ou;var Te=Dt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(u){return u.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(u){return u&&u.removeLayer(this),this},getPane:function(u){return this._map.getPane(u?this.options[u]||u:this.options.pane)},addInteractiveTarget:function(u){return this._map._targets[U(u)]=this,this},removeInteractiveTarget:function(u){return delete this._map._targets[U(u)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(u){var p=u.target;if(p.hasLayer(this)){if(this._map=p,this._zoomAnimated=p._zoomAnimated,this.getEvents){var g=this.getEvents();p.on(g,this),this.once("remove",function(){p.off(g,this)},this)}this.onAdd(p),this.fire("add"),p.fire("layeradd",{layer:this})}}});ot.include({addLayer:function(u){if(!u._layerAdd)throw new Error("The provided object is not a Layer.");var p=U(u);return this._layers[p]||(this._layers[p]=u,u._mapToAdd=this,u.beforeAdd&&u.beforeAdd(this),this.whenReady(u._layerAdd,u)),this},removeLayer:function(u){var p=U(u);return this._layers[p]?(this._loaded&&u.onRemove(this),delete this._layers[p],this._loaded&&(this.fire("layerremove",{layer:u}),u.fire("remove")),u._map=u._mapToAdd=null,this):this},hasLayer:function(u){return U(u)in this._layers},eachLayer:function(u,p){for(var g in this._layers)u.call(p,this._layers[g]);return this},_addLayers:function(u){for(var p=0,g=(u=u?te(u)?u:[u]:[]).length;pthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()=2&&p[0]instanceof yt&&p[0].equals(p[g-1])&&p.pop(),p},_setLatLngs:function(u){an.prototype._setLatLngs.call(this,u),xi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return xi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var u=this._renderer._bounds,p=this.options.weight,g=new ce(p,p);if(u=new kt(u.min.subtract(g),u.max.add(g)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(u)){if(this.options.noClip)return void(this._parts=this._rings);for(var P,w=0,S=this._rings.length;wu.y!=(S=g[G]).y>u.y&&u.x<(S.x-w.x)*(u.y-w.y)/(S.y-w.y)+w.x&&(p=!p);return p||an.prototype._containsPoint.call(this,u,!0)}});var io=cr.extend({initialize:function(u,p){Y(this,p),this._layers={},u&&this.addData(u)},addData:function(u){var g,w,S,p=te(u)?u:u.features;if(p){for(g=0,w=p.length;g0?w:[p.src]}else{te(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(p.style,"objectFit")&&(p.style.objectFit="fill"),p.autoplay=!!this.options.autoplay,p.loop=!!this.options.loop,p.muted=!!this.options.muted,p.playsInline=!!this.options.playsInline;for(var P=0;PS?(p.height=S+"px",re(u,P)):qe(u,P),this._containerWidth=this._container.offsetWidth},_animateZoom:function(u){var p=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center),g=this._getAnchor();At(this._container,p.add(g))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)return void(this._autopanning=!1);var u=this._map,p=parseInt(pi(this._container,"marginBottom"),10)||0,g=this._container.offsetHeight+p,w=this._containerWidth,S=new ce(this._containerLeft,-g-this._containerBottom);S._add(je(this._container));var P=u.layerPointToContainerPoint(S),R=Pe(this.options.autoPanPadding),G=Pe(this.options.autoPanPaddingTopLeft||R),Z=Pe(this.options.autoPanPaddingBottomRight||R),ie=u.getSize(),fe=0,Re=0;P.x+w+Z.x>ie.x&&(fe=P.x+w-ie.x+Z.x),P.x-fe-G.x<0&&(fe=P.x-G.x),P.y+g+Z.y>ie.y&&(Re=P.y+g-ie.y+Z.y),P.y-Re-G.y<0&&(Re=P.y-G.y),(fe||Re)&&(this.options.keepInView&&(this._autopanning=!0),u.fire("autopanstart").panBy([fe,Re]))}},_getAnchor:function(){return Pe(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});ot.mergeOptions({closePopupOnClick:!0}),ot.include({openPopup:function(u,p,g){return this._initOverlay(Aa,u,p,g).openOn(this),this},closePopup:function(u){return(u=arguments.length?u:this._popup)&&u.close(),this}}),Te.include({bindPopup:function(u,p){return this._popup=this._initOverlay(Aa,this._popup,u,p),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(u){return this._popup&&(this instanceof cr||(this._popup._source=this),this._popup._prepareOpen(u||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()},setPopupContent:function(u){return this._popup&&this._popup.setContent(u),this},getPopup:function(){return this._popup},_openPopup:function(u){if(this._popup&&this._map){_n(u);var p=u.layer||u.target;if(this._popup._source===p&&!(p instanceof dr))return void(this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(u.latlng));this._popup._source=p,this.openPopup(u.latlng)}},_movePopup:function(u){this._popup.setLatLng(u.latlng)},_onKeyPress:function(u){13===u.originalEvent.keyCode&&this._openPopup(u)}});var As=Mi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){Mi.prototype.onAdd.call(this,u),this.setOpacity(this.options.opacity),u.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(u){Mi.prototype.onRemove.call(this,u),u.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var u=Mi.prototype.getEvents.call(this);return this.options.permanent||(u.preclick=this.close),u},_initLayout:function(){this._contentNode=this._container=He("div","leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide")),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+U(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(u){var p,g,w=this._map,S=this._container,P=w.latLngToContainerPoint(w.getCenter()),R=w.layerPointToContainerPoint(u),G=this.options.direction,Z=S.offsetWidth,ie=S.offsetHeight,fe=Pe(this.options.offset),Re=this._getAnchor();"top"===G?(p=Z/2,g=ie):"bottom"===G?(p=Z/2,g=0):"center"===G?(p=Z/2,g=ie/2):"right"===G?(p=0,g=ie/2):"left"===G?(p=Z,g=ie/2):R.xthis.options.maxZoom||gw&&this._retainParent(S,P,R,w))},_retainChildren:function(u,p,g,w){for(var S=2*u;S<2*u+2;S++)for(var P=2*p;P<2*p+2;P++){var R=new ce(S,P);R.z=g+1;var G=this._tileCoordsToKey(R),Z=this._tiles[G];Z&&Z.active?Z.retain=!0:(Z&&Z.loaded&&(Z.retain=!0),g+1this.options.maxZoom||void 0!==this.options.minZoom&&S1)return void this._setView(u,g);for(var Re=S.min.y;Re<=S.max.y;Re++)for(var it=S.min.x;it<=S.max.x;it++){var $n=new ce(it,Re);if($n.z=this._tileZoom,this._isValidTile($n)){var Nr=this._tiles[this._tileCoordsToKey($n)];Nr?Nr.current=!0:R.push($n)}}if(R.sort(function(Zi,lo){return Zi.distanceTo(P)-lo.distanceTo(P)}),0!==R.length){this._loading||(this._loading=!0,this.fire("loading"));var ni=document.createDocumentFragment();for(it=0;itg.max.x)||!p.wrapLat&&(u.yg.max.y))return!1}if(!this.options.bounds)return!0;var w=this._tileCoordsToBounds(u);return hn(this.options.bounds).overlaps(w)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var p=this._map,g=this.getTileSize(),w=u.scaleBy(g),S=w.add(g);return[p.unproject(w,u.z),p.unproject(S,u.z)]},_tileCoordsToBounds:function(u){var p=this._tileCoordsToNwSe(u),g=new Jn(p[0],p[1]);return this.options.noWrap||(g=this._map.wrapLatLngBounds(g)),g},_tileCoordsToKey:function(u){return u.x+":"+u.y+":"+u.z},_keyToTileCoords:function(u){var p=u.split(":"),g=new ce(+p[0],+p[1]);return g.z=+p[2],g},_removeTile:function(u){var p=this._tiles[u];p&&(ze(p.el),delete this._tiles[u],this.fire("tileunload",{tile:p.el,coords:this._keyToTileCoords(u)}))},_initTile:function(u){re(u,"leaflet-tile");var p=this.getTileSize();u.style.width=p.x+"px",u.style.height=p.y+"px",u.onselectstart=q,u.onmousemove=q,Ee.ielt9&&this.options.opacity<1&&wt(u,this.options.opacity)},_addTile:function(u,p){var g=this._getTilePos(u),w=this._tileCoordsToKey(u),S=this.createTile(this._wrapCoords(u),M(this._tileReady,this,u));this._initTile(S),this.createTile.length<2&&Ge(M(this._tileReady,this,u,null,S)),At(S,g),this._tiles[w]={el:S,coords:u,current:!0},p.appendChild(S),this.fire("tileloadstart",{tile:S,coords:u})},_tileReady:function(u,p,g){p&&this.fire("tileerror",{error:p,tile:g,coords:u});var w=this._tileCoordsToKey(u);(g=this._tiles[w])&&(g.loaded=+new Date,this._map._fadeAnimated?(wt(g.el,0),Yn(this._fadeFrame),this._fadeFrame=Ge(this._updateOpacity,this)):(g.active=!0,this._pruneTiles()),p||(re(g.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:g.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ee.ielt9||!this._map._fadeAnimated?Ge(this._pruneTiles,this):setTimeout(M(this._pruneTiles,this),250)))},_getTilePos:function(u){return u.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(u){var p=new ce(this._wrapX?Q(u.x,this._wrapX):u.x,this._wrapY?Q(u.y,this._wrapY):u.y);return p.z=u.z,p},_pxBoundsToTileRange:function(u){var p=this.getTileSize();return new kt(u.min.unscaleBy(p).floor(),u.max.unscaleBy(p).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var u in this._tiles)if(!this._tiles[u].loaded)return!1;return!0}});var Ct=ln.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(u,p){this._url=u,(p=Y(this,p)).detectRetina&&Ee.retina&&p.maxZoom>0?(p.tileSize=Math.floor(p.tileSize/2),p.zoomReverse?(p.zoomOffset--,p.minZoom=Math.min(p.maxZoom,p.minZoom+1)):(p.zoomOffset++,p.maxZoom=Math.max(p.minZoom,p.maxZoom-1)),p.minZoom=Math.max(0,p.minZoom)):p.zoomReverse?p.minZoom=Math.min(p.maxZoom,p.minZoom):p.maxZoom=Math.max(p.minZoom,p.maxZoom),"string"==typeof p.subdomains&&(p.subdomains=p.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(u,p){return this._url===u&&void 0===p&&(p=!0),this._url=u,p||this.redraw(),this},createTile:function(u,p){var g=document.createElement("img");return Ye(g,"load",M(this._tileOnLoad,this,p,g)),Ye(g,"error",M(this._tileOnError,this,p,g)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(g.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(g.referrerPolicy=this.options.referrerPolicy),g.alt="",g.src=this.getTileUrl(u),g},getTileUrl:function(u){var p={r:Ee.retina?"@2x":"",s:this._getSubdomain(u),x:u.x,y:u.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var g=this._globalTileRange.max.y-u.y;this.options.tms&&(p.y=g),p["-y"]=g}return _e(this._url,i(p,this.options))},_tileOnLoad:function(u,p){Ee.ielt9?setTimeout(M(u,this,null,p),0):u(null,p)},_tileOnError:function(u,p,g){var w=this.options.errorTileUrl;w&&p.getAttribute("src")!==w&&(p.src=w),u(g,p)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom;return this.options.zoomReverse&&(u=this.options.maxZoom-u),u+this.options.zoomOffset},_getSubdomain:function(u){var p=Math.abs(u.x+u.y)%this.options.subdomains.length;return this.options.subdomains[p]},_abortLoading:function(){var u,p;for(u in this._tiles)if(this._tiles[u].coords.z!==this._tileZoom&&((p=this._tiles[u].el).onload=q,p.onerror=q,!p.complete)){p.src=mt;var g=this._tiles[u].coords;ze(p),delete this._tiles[u],this.fire("tileabort",{tile:p,coords:g})}},_removeTile:function(u){var p=this._tiles[u];if(p)return p.el.setAttribute("src",mt),ln.prototype._removeTile.call(this,u)},_tileReady:function(u,p,g){if(this._map&&(!g||g.getAttribute("src")!==mt))return ln.prototype._tileReady.call(this,u,p,g)}});function ud(u,p){return new Ct(u,p)}var cd=Ct.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(u,p){this._url=u;var g=i({},this.defaultWmsParams);for(var w in p)w in this.options||(g[w]=p[w]);var S=(p=Y(this,p)).detectRetina&&Ee.retina?2:1,P=this.getTileSize();g.width=P.x*S,g.height=P.y*S,this.wmsParams=g},onAdd:function(u){this._crs=this.options.crs||u.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version),this.wmsParams[this._wmsVersion>=1.3?"crs":"srs"]=this._crs.code,Ct.prototype.onAdd.call(this,u)},getTileUrl:function(u){var p=this._tileCoordsToNwSe(u),g=this._crs,w=Kn(g.project(p[0]),g.project(p[1])),S=w.min,P=w.max,R=(this._wmsVersion>=1.3&&this._crs===ru?[S.y,S.x,P.y,P.x]:[S.x,S.y,P.x,P.y]).join(","),G=Ct.prototype.getTileUrl.call(this,u);return G+me(this.wmsParams,G,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+R},setParams:function(u,p){return i(this.wmsParams,u),p||this.redraw(),this}});Ct.WMS=cd,ud.wms=function Lp(u,p){return new cd(u,p)};var Rr=Te.extend({options:{padding:.1},initialize:function(u){Y(this,u),U(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&re(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 u={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(u.zoomanim=this._onAnimZoom),u},_onAnimZoom:function(u){this._updateTransform(u.center,u.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(u,p){var g=this._map.getZoomScale(p,this._zoom),w=this._map.getSize().multiplyBy(.5+this.options.padding),S=this._map.project(this._center,p),P=w.multiplyBy(-g).add(S).subtract(this._map._getNewPixelOrigin(u,p));Ee.any3d?mi(this._container,P,g):At(this._container,P)},_reset:function(){for(var u in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[u]._reset()},_onZoomEnd:function(){for(var u in this._layers)this._layers[u]._project()},_updatePaths:function(){for(var u in this._layers)this._layers[u]._update()},_update:function(){var u=this.options.padding,p=this._map.getSize(),g=this._map.containerPointToLayerPoint(p.multiplyBy(-u)).round();this._bounds=new kt(g,g.add(p.multiplyBy(1+2*u)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),dd=Rr.extend({options:{tolerance:0},getEvents:function(){var u=Rr.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Rr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var u=this._container=document.createElement("canvas");Ye(u,"mousemove",this._onMouseMove,this),Ye(u,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ye(u,"mouseout",this._handleMouseOut,this),u._leaflet_disable_events=!0,this._ctx=u.getContext("2d")},_destroyContainer:function(){Yn(this._redrawRequest),delete this._ctx,ze(this._container),ft(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var p in this._redrawBounds=null,this._layers)this._layers[p]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Rr.prototype._update.call(this);var u=this._bounds,p=this._container,g=u.getSize(),w=Ee.retina?2:1;At(p,u.min),p.width=w*g.x,p.height=w*g.y,p.style.width=g.x+"px",p.style.height=g.y+"px",Ee.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){Rr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(u){this._updateDashArray(u),this._layers[U(u)]=u;var p=u._order={layer:u,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=p),this._drawLast=p,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(u){this._requestRedraw(u)},_removePath:function(u){var p=u._order,g=p.next,w=p.prev;g?g.prev=w:this._drawLast=w,w?w.next=g:this._drawFirst=g,delete u._order,delete this._layers[U(u)],this._requestRedraw(u)},_updatePath:function(u){this._extendRedrawBounds(u),u._project(),u._update(),this._requestRedraw(u)},_updateStyle:function(u){this._updateDashArray(u),this._requestRedraw(u)},_updateDashArray:function(u){if("string"==typeof u.options.dashArray){var w,S,p=u.options.dashArray.split(/[, ]+/),g=[];for(S=0;S')}}catch{}return function(u){return document.createElement("<"+u+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),ka={_initContainer:function(){this._container=He("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Rr.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var p=u._container=bi("shape");re(p,"leaflet-vml-shape "+(this.options.className||"")),p.coordsize="1 1",u._path=bi("path"),p.appendChild(u._path),this._updateStyle(u),this._layers[U(u)]=u},_addPath:function(u){var p=u._container;this._container.appendChild(p),u.options.interactive&&u.addInteractiveTarget(p)},_removePath:function(u){var p=u._container;ze(p),u.removeInteractiveTarget(p),delete this._layers[U(u)]},_updateStyle:function(u){var p=u._stroke,g=u._fill,w=u.options,S=u._container;S.stroked=!!w.stroke,S.filled=!!w.fill,w.stroke?(p||(p=u._stroke=bi("stroke")),S.appendChild(p),p.weight=w.weight+"px",p.color=w.color,p.opacity=w.opacity,p.dashStyle=w.dashArray?te(w.dashArray)?w.dashArray.join(" "):w.dashArray.replace(/( *, *)/g," "):"",p.endcap=w.lineCap.replace("butt","flat"),p.joinstyle=w.lineJoin):p&&(S.removeChild(p),u._stroke=null),w.fill?(g||(g=u._fill=bi("fill")),S.appendChild(g),g.color=w.fillColor||w.color,g.opacity=w.fillOpacity):g&&(S.removeChild(g),u._fill=null)},_updateCircle:function(u){var p=u._point.round(),g=Math.round(u._radius),w=Math.round(u._radiusY||g);this._setPath(u,u._empty()?"M0 0":"AL "+p.x+","+p.y+" "+g+","+w+" 0,23592600")},_setPath:function(u,p){u._path.v=p},_bringToFront:function(u){zi(u._container)},_bringToBack:function(u){On(u._container)}},Wi=Ee.vml?bi:Vc,so=Rr.extend({_initContainer:function(){this._container=Wi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Wi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ze(this._container),ft(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 u=this._bounds,p=u.getSize(),g=this._container;(!this._svgSize||!this._svgSize.equals(p))&&(this._svgSize=p,g.setAttribute("width",p.x),g.setAttribute("height",p.y)),At(g,u.min),g.setAttribute("viewBox",[u.min.x,u.min.y,p.x,p.y].join(" ")),this.fire("update")}},_initPath:function(u){var p=u._path=Wi("path");u.options.className&&re(p,u.options.className),u.options.interactive&&re(p,"leaflet-interactive"),this._updateStyle(u),this._layers[U(u)]=u},_addPath:function(u){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(u._path),u.addInteractiveTarget(u._path)},_removePath:function(u){ze(u._path),u.removeInteractiveTarget(u._path),delete this._layers[U(u)]},_updatePath:function(u){u._project(),u._update()},_updateStyle:function(u){var p=u._path,g=u.options;p&&(g.stroke?(p.setAttribute("stroke",g.color),p.setAttribute("stroke-opacity",g.opacity),p.setAttribute("stroke-width",g.weight),p.setAttribute("stroke-linecap",g.lineCap),p.setAttribute("stroke-linejoin",g.lineJoin),g.dashArray?p.setAttribute("stroke-dasharray",g.dashArray):p.removeAttribute("stroke-dasharray"),g.dashOffset?p.setAttribute("stroke-dashoffset",g.dashOffset):p.removeAttribute("stroke-dashoffset")):p.setAttribute("stroke","none"),g.fill?(p.setAttribute("fill",g.fillColor||g.color),p.setAttribute("fill-opacity",g.fillOpacity),p.setAttribute("fill-rule",g.fillRule||"evenodd")):p.setAttribute("fill","none"))},_updatePoly:function(u,p){this._setPath(u,gs(u._parts,p))},_updateCircle:function(u){var p=u._point,g=Math.max(Math.round(u._radius),1),S="a"+g+","+(Math.max(Math.round(u._radiusY),1)||g)+" 0 1,0 ",P=u._empty()?"M0 0":"M"+(p.x-g)+","+p.y+S+2*g+",0 "+S+2*-g+",0 ";this._setPath(u,P)},_setPath:function(u,p){u._path.setAttribute("d",p)},_bringToFront:function(u){zi(u._path)},_bringToBack:function(u){On(u._path)}});function Fa(u){return Ee.svg||Ee.vml?new so(u):null}Ee.vml&&so.include(ka),ot.include({getRenderer:function(u){var p=u.options.renderer||this._getPaneRenderer(u.options.pane)||this.options.renderer||this._renderer;return p||(p=this._renderer=this._createRenderer()),this.hasLayer(p)||this.addLayer(p),p},_getPaneRenderer:function(u){if("overlayPane"===u||void 0===u)return!1;var p=this._paneRenderers[u];return void 0===p&&(p=this._createRenderer({pane:u}),this._paneRenderers[u]=p),p},_createRenderer:function(u){return this.options.preferCanvas&&Oa(u)||Fa(u)}});var hd=Gi.extend({initialize:function(u,p){Gi.prototype.initialize.call(this,this._boundsToLatLngs(u),p)},setBounds:function(u){return this.setLatLngs(this._boundsToLatLngs(u))},_boundsToLatLngs:function(u){return[(u=hn(u)).getSouthWest(),u.getNorthWest(),u.getNorthEast(),u.getSouthEast()]}});so.create=Wi,so.pointsToPath=gs,io.geometryToLayer=Ia,io.coordsToLatLng=vi,io.coordsToLatLngs=Pa,io.latLngToCoords=ro,io.latLngsToCoords=yi,io.getFeature=oo,io.asFeature=La,ot.mergeOptions({boxZoom:!0});var Go=lr.extend({initialize:function(u){this._map=u,this._container=u._container,this._pane=u._panes.overlayPane,this._resetStateTimeout=0,u.on("unload",this._destroy,this)},addHooks:function(){Ye(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){ft(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ze(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(u){if(!u.shiftKey||1!==u.which&&1!==u.button)return!1;this._clearDeferredResetState(),this._resetState(),No(),Qt(),this._startPoint=this._map.mouseEventToContainerPoint(u),Ye(document,{contextmenu:_n,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(u){this._moved||(this._moved=!0,this._box=He("div","leaflet-zoom-box",this._container),re(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(u);var p=new kt(this._point,this._startPoint),g=p.getSize();At(this._box,p.min),this._box.style.width=g.x+"px",this._box.style.height=g.y+"px"},_finish:function(){this._moved&&(ze(this._box),qe(this._container,"leaflet-crosshair")),$i(),Bo(),ft(document,{contextmenu:_n,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(u){if((1===u.which||1===u.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(M(this._resetState,this),0);var p=new Jn(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(p).fire("boxzoomend",{boxZoomBounds:p})}},_onKeyDown:function(u){27===u.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ot.addInitHook("addHandler","boxZoom",Go),ot.mergeOptions({doubleClickZoom:!0});var fd=lr.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(u){var p=this._map,g=p.getZoom(),w=p.options.zoomDelta,S=u.originalEvent.shiftKey?g-w:g+w;"center"===p.options.doubleClickZoom?p.setZoom(S):p.setZoomAround(u.containerPoint,S)}});ot.addInitHook("addHandler","doubleClickZoom",fd),ot.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Ra=lr.extend({addHooks:function(){if(!this._draggable){var u=this._map;this._draggable=new ur(u._mapPane,u._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),u.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),u.on("zoomend",this._onZoomEnd,this),u.whenReady(this._onZoomEnd,this))}re(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){qe(this._map._container,"leaflet-grab"),qe(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 u=this._map;if(u._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var p=hn(this._map.options.maxBounds);this._offsetLimit=Kn(this._map.latLngToContainerPoint(p.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(p.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;u.fire("movestart").fire("dragstart"),u.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(u){if(this._map.options.inertia){var p=this._lastTime=+new Date,g=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(g),this._times.push(p),this._prunePositions(p)}this._map.fire("move",u).fire("drag",u)},_prunePositions:function(u){for(;this._positions.length>1&&u-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var u=this._map.getSize().divideBy(2),p=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=p.subtract(u).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(u,p){return u-(u-p)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var u=this._draggable._newPos.subtract(this._draggable._startPos),p=this._offsetLimit;u.xp.max.x&&(u.x=this._viscousLimit(u.x,p.max.x)),u.y>p.max.y&&(u.y=this._viscousLimit(u.y,p.max.y)),this._draggable._newPos=this._draggable._startPos.add(u)}},_onPreDragWrap:function(){var u=this._worldWidth,p=Math.round(u/2),g=this._initialWorldOffset,w=this._draggable._newPos.x,S=(w-p+g)%u+p-g,P=(w+p+g)%u-p-g,R=Math.abs(S+g)0?P:-P))-p;this._delta=0,this._startTime=null,R&&("center"===u.options.scrollWheelZoom?u.setZoom(p+R):u.setZoomAround(this._lastMousePos,p+R))}});ot.addInitHook("addHandler","scrollWheelZoom",pd);ot.mergeOptions({tapHold:Ee.touchNative&&Ee.safari&&Ee.mobile,tapTolerance:15});var Wo=lr.extend({addHooks:function(){Ye(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){ft(this._map._container,"touchstart",this._onDown,this)},_onDown:function(u){if(clearTimeout(this._holdTimeout),1===u.touches.length){var p=u.touches[0];this._startPos=this._newPos=new ce(p.clientX,p.clientY),this._holdTimeout=setTimeout(M(function(){this._cancel(),this._isTapValid()&&(Ye(document,"touchend",Nt),Ye(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",p))},this),600),Ye(document,"touchend touchcancel contextmenu",this._cancel,this),Ye(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function u(){ft(document,"touchend",Nt),ft(document,"touchend touchcancel",u)},_cancel:function(){clearTimeout(this._holdTimeout),ft(document,"touchend touchcancel contextmenu",this._cancel,this),ft(document,"touchmove",this._onMove,this)},_onMove:function(u){var p=u.touches[0];this._newPos=new ce(p.clientX,p.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(u,p){var g=new MouseEvent(u,{bubbles:!0,cancelable:!0,view:window,screenX:p.screenX,screenY:p.screenY,clientX:p.clientX,clientY:p.clientY});g._simulated=!0,p.target.dispatchEvent(g)}});ot.addInitHook("addHandler","tapHold",Wo),ot.mergeOptions({touchZoom:Ee.touch,bounceAtZoomLimits:!0});var uu=lr.extend({addHooks:function(){re(this._map._container,"leaflet-touch-zoom"),Ye(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){qe(this._map._container,"leaflet-touch-zoom"),ft(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(u){var p=this._map;if(u.touches&&2===u.touches.length&&!p._animatingZoom&&!this._zooming){var g=p.mouseEventToContainerPoint(u.touches[0]),w=p.mouseEventToContainerPoint(u.touches[1]);this._centerPoint=p.getSize()._divideBy(2),this._startLatLng=p.containerPointToLatLng(this._centerPoint),"center"!==p.options.touchZoom&&(this._pinchStartLatLng=p.containerPointToLatLng(g.add(w)._divideBy(2))),this._startDist=g.distanceTo(w),this._startZoom=p.getZoom(),this._moved=!1,this._zooming=!0,p._stop(),Ye(document,"touchmove",this._onTouchMove,this),Ye(document,"touchend touchcancel",this._onTouchEnd,this),Nt(u)}},_onTouchMove:function(u){if(u.touches&&2===u.touches.length&&this._zooming){var p=this._map,g=p.mouseEventToContainerPoint(u.touches[0]),w=p.mouseEventToContainerPoint(u.touches[1]),S=g.distanceTo(w)/this._startDist;if(this._zoom=p.getScaleZoom(S,this._startZoom),!p.options.bounceAtZoomLimits&&(this._zoomp.getMaxZoom()&&S>1)&&(this._zoom=p._limitZoom(this._zoom)),"center"===p.options.touchZoom){if(this._center=this._startLatLng,1===S)return}else{var P=g._add(w)._divideBy(2)._subtract(this._centerPoint);if(1===S&&0===P.x&&0===P.y)return;this._center=p.unproject(p.project(this._pinchStartLatLng,this._zoom).subtract(P),this._zoom)}this._moved||(p._moveStart(!0,!1),this._moved=!0),Yn(this._animRequest);var R=M(p._move,p,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Ge(R,this,!0),Nt(u)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,Yn(this._animRequest),ft(document,"touchmove",this._onTouchMove,this),ft(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))):this._zooming=!1}});ot.addInitHook("addHandler","touchZoom",uu),ot.BoxZoom=Go,ot.DoubleClickZoom=fd,ot.Drag=Ra,ot.Keyboard=ao,ot.ScrollWheelZoom=pd,ot.TapHold=Wo,ot.TouchZoom=uu,F.Bounds=kt,F.Browser=Ee,F.CRS=di,F.Canvas=dd,F.Circle=su,F.CircleMarker=Ma,F.Class=gt,F.Control=Ke,F.DivIcon=Pp,F.DivOverlay=Mi,F.DomEvent=Xc,F.DomUtil=Kl,F.Draggable=ur,F.Evented=Dt,F.FeatureGroup=cr,F.GeoJSON=io,F.GridLayer=ln,F.Handler=lr,F.Icon=Ms,F.ImageOverlay=Ls,F.LatLng=yt,F.LatLngBounds=Jn,F.Layer=Te,F.LayerGroup=no,F.LineUtil=Ep,F.Map=ot,F.Marker=ne,F.Mixin=Fr,F.Path=dr,F.Point=ce,F.PolyUtil=zn,F.Polygon=Gi,F.Polyline=an,F.Popup=Aa,F.PosAnimation=Jl,F.Projection=Tp,F.Rectangle=hd,F.Renderer=Rr,F.SVG=so,F.SVGOverlay=od,F.TileLayer=Ct,F.Tooltip=As,F.Transformation=ma,F.Util=Qn,F.VideoOverlay=lu,F.bind=M,F.bounds=Kn,F.canvas=Oa,F.circle=function Ho(u,p,g){return new su(u,p,g)},F.circleMarker=function En(u,p){return new Ma(u,p)},F.control=Es,F.divIcon=function cv(u){return new Pp(u)},F.extend=i,F.featureGroup=function(u,p){return new cr(u,p)},F.geoJSON=Mp,F.geoJson=rd,F.gridLayer=function zo(u){return new ln(u)},F.icon=function xp(u){return new Ms(u)},F.imageOverlay=function(u,p,g){return new Ls(u,p,g)},F.latLng=Mt,F.latLngBounds=hn,F.layerGroup=function(u,p){return new no(u,p)},F.map=function G0(u,p){return new ot(u,p)},F.marker=function ut(u,p){return new ne(u,p)},F.point=Pe,F.polygon=function Ps(u,p){return new Gi(u,p)},F.polyline=function au(u,p){return new an(u,p)},F.popup=function(u,p){return new Aa(u,p)},F.rectangle=function $o(u,p){return new hd(u,p)},F.setOptions=Y,F.stamp=U,F.svg=Fa,F.svgOverlay=function sd(u,p,g){return new od(u,p,g)},F.tileLayer=ud,F.tooltip=function(u,p){return new As(u,p)},F.transformation=Zl,F.version="1.9.3",F.videoOverlay=function uv(u,p,g){return new lu(u,p,g)};var gd=window.L;F.noConflict=function(){return window.L=gd,this},window.L=F}(he)},498:(Je,he,F)=>{"use strict";F.d(he,{y:()=>q});var ue=F(489),E=F(668),M=F(292),U=F(821),W=F(843),Q=F(735);let q=(()=>{class z{constructor(Y){this._isScalar=!1,Y&&(this._subscribe=Y)}lift(Y){const me=new z;return me.source=this,me.operator=Y,me}subscribe(Y,me,rt){const{operator:_e}=this,te=function B(z,J,Y){if(z){if(z instanceof ue.L)return z;if(z[E.b])return z[E.b]()}return z||J||Y?new ue.L(z,J,Y):new ue.L(M.c)}(Y,me,rt);if(te.add(_e?_e.call(te,this.source):this.source||Q.v.useDeprecatedSynchronousErrorHandling&&!te.syncErrorThrowable?this._subscribe(te):this._trySubscribe(te)),Q.v.useDeprecatedSynchronousErrorHandling&&te.syncErrorThrowable&&(te.syncErrorThrowable=!1,te.syncErrorThrown))throw te.syncErrorValue;return te}_trySubscribe(Y){try{return this._subscribe(Y)}catch(me){Q.v.useDeprecatedSynchronousErrorHandling&&(Y.syncErrorThrown=!0,Y.syncErrorValue=me),function i(z){for(;z;){const{closed:J,destination:Y,isStopped:me}=z;if(J||me)return!1;z=Y&&Y instanceof ue.L?Y:null}return!0}(Y)?Y.error(me):console.warn(me)}}forEach(Y,me){return new(me=H(me))((rt,_e)=>{let te;te=this.subscribe(Ut=>{try{Y(Ut)}catch(mt){_e(mt),te&&te.unsubscribe()}},_e,rt)})}_subscribe(Y){const{source:me}=this;return me&&me.subscribe(Y)}[U.L](){return this}pipe(...Y){return 0===Y.length?this:(0,W.U)(Y)(this)}toPromise(Y){return new(Y=H(Y))((me,rt)=>{let _e;this.subscribe(te=>_e=te,te=>rt(te),()=>me(_e))})}}return z.create=J=>new z(J),z})();function H(z){if(z||(z=Q.v.Promise||Promise),!z)throw new Error("no Promise impl found");return z}},292:(Je,he,F)=>{"use strict";F.d(he,{c:()=>E});var ue=F(735),i=F(782);const E={closed:!0,next(M){},error(M){if(ue.v.useDeprecatedSynchronousErrorHandling)throw M;(0,i.z)(M)},complete(){}}},529:(Je,he,F)=>{"use strict";F.d(he,{xQ:()=>Q,Yc:()=>W});var ue=F(498),i=F(489),E=F(654),M=F(279);class B extends E.w{constructor(z,J){super(),this.subject=z,this.subscriber=J,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const z=this.subject,J=z.observers;if(this.subject=null,!J||0===J.length||z.isStopped||z.closed)return;const Y=J.indexOf(this.subscriber);-1!==Y&&J.splice(Y,1)}}var U=F(668);class W extends i.L{constructor(z){super(z),this.destination=z}}let Q=(()=>{class H extends ue.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[U.b](){return new W(this)}lift(J){const Y=new q(this,this);return Y.operator=J,Y}next(J){if(this.closed)throw new M.N;if(!this.isStopped){const{observers:Y}=this,me=Y.length,rt=Y.slice();for(let _e=0;_enew q(z,J),H})();class q extends Q{constructor(z,J){super(),this.destination=z,this.source=J}next(z){const{destination:J}=this;J&&J.next&&J.next(z)}error(z){const{destination:J}=this;J&&J.error&&this.destination.error(z)}complete(){const{destination:z}=this;z&&z.complete&&this.destination.complete()}_subscribe(z){const{source:J}=this;return J?this.source.subscribe(z):E.w.EMPTY}}},489:(Je,he,F)=>{"use strict";F.d(he,{L:()=>W});var ue=F(43),i=F(292),E=F(654),M=F(668),B=F(735),U=F(782);class W extends E.w{constructor(H,z,J){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.c;break;case 1:if(!H){this.destination=i.c;break}if("object"==typeof H){H instanceof W?(this.syncErrorThrowable=H.syncErrorThrowable,this.destination=H,H.add(this)):(this.syncErrorThrowable=!0,this.destination=new Q(this,H));break}default:this.syncErrorThrowable=!0,this.destination=new Q(this,H,z,J)}}[M.b](){return this}static create(H,z,J){const Y=new W(H,z,J);return Y.syncErrorThrowable=!1,Y}next(H){this.isStopped||this._next(H)}error(H){this.isStopped||(this.isStopped=!0,this._error(H))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(H){this.destination.next(H)}_error(H){this.destination.error(H),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:H}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=H,this}}class Q extends W{constructor(H,z,J,Y){super(),this._parentSubscriber=H;let me,rt=this;(0,ue.m)(z)?me=z:z&&(me=z.next,J=z.error,Y=z.complete,z!==i.c&&(rt=Object.create(z),(0,ue.m)(rt.unsubscribe)&&this.add(rt.unsubscribe.bind(rt)),rt.unsubscribe=this.unsubscribe.bind(this))),this._context=rt,this._next=me,this._error=J,this._complete=Y}next(H){if(!this.isStopped&&this._next){const{_parentSubscriber:z}=this;B.v.useDeprecatedSynchronousErrorHandling&&z.syncErrorThrowable?this.__tryOrSetError(z,this._next,H)&&this.unsubscribe():this.__tryOrUnsub(this._next,H)}}error(H){if(!this.isStopped){const{_parentSubscriber:z}=this,{useDeprecatedSynchronousErrorHandling:J}=B.v;if(this._error)J&&z.syncErrorThrowable?(this.__tryOrSetError(z,this._error,H),this.unsubscribe()):(this.__tryOrUnsub(this._error,H),this.unsubscribe());else if(z.syncErrorThrowable)J?(z.syncErrorValue=H,z.syncErrorThrown=!0):(0,U.z)(H),this.unsubscribe();else{if(this.unsubscribe(),J)throw H;(0,U.z)(H)}}}complete(){if(!this.isStopped){const{_parentSubscriber:H}=this;if(this._complete){const z=()=>this._complete.call(this._context);B.v.useDeprecatedSynchronousErrorHandling&&H.syncErrorThrowable?(this.__tryOrSetError(H,z),this.unsubscribe()):(this.__tryOrUnsub(z),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(H,z){try{H.call(this._context,z)}catch(J){if(this.unsubscribe(),B.v.useDeprecatedSynchronousErrorHandling)throw J;(0,U.z)(J)}}__tryOrSetError(H,z,J){if(!B.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{z.call(this._context,J)}catch(Y){return B.v.useDeprecatedSynchronousErrorHandling?(H.syncErrorValue=Y,H.syncErrorThrown=!0,!0):((0,U.z)(Y),!0)}return!1}_unsubscribe(){const{_parentSubscriber:H}=this;this._context=null,this._parentSubscriber=null,H.unsubscribe()}}},654:(Je,he,F)=>{"use strict";F.d(he,{w:()=>U});var ue=F(688),i=F(830),E=F(43);const B=(()=>{function Q(q){return Error.call(this),this.message=q?`${q.length} errors occurred during unsubscription:\n${q.map((H,z)=>`${z+1}) ${H.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=q,this}return Q.prototype=Object.create(Error.prototype),Q})();class U{constructor(q){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,q&&(this._ctorUnsubscribe=!0,this._unsubscribe=q)}unsubscribe(){let q;if(this.closed)return;let{_parentOrParents:H,_ctorUnsubscribe:z,_unsubscribe:J,_subscriptions:Y}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,H instanceof U)H.remove(this);else if(null!==H)for(let me=0;meq.concat(H instanceof B?H.errors:H),[])}U.EMPTY=((Q=new U).closed=!0,Q)},735:(Je,he,F)=>{"use strict";F.d(he,{v:()=>i});let ue=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(E){if(E){const M=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+M.stack)}else ue&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ue=E},get useDeprecatedSynchronousErrorHandling(){return ue}}},177:(Je,he,F)=>{"use strict";F.d(he,{Ds:()=>U,IY:()=>M,ft:()=>Q});var ue=F(489),i=F(498),E=F(249);class M extends ue.L{constructor(H){super(),this.parent=H}_next(H){this.parent.notifyNext(H)}_error(H){this.parent.notifyError(H),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class U extends ue.L{notifyNext(H){this.destination.next(H)}notifyError(H){this.destination.error(H)}notifyComplete(){this.destination.complete()}}function Q(q,H){if(H.closed)return;if(q instanceof i.y)return q.subscribe(H);let z;try{z=(0,E.s)(q)(H)}catch(J){H.error(J)}return z}},762:(Je,he,F)=>{"use strict";F.d(he,{N:()=>U,c:()=>B});var ue=F(529),i=F(498),E=F(654),M=F(327);class B extends i.y{constructor(z,J){super(),this.source=z,this.subjectFactory=J,this._refCount=0,this._isComplete=!1}_subscribe(z){return this.getSubject().subscribe(z)}getSubject(){const z=this._subject;return(!z||z.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let z=this._connection;return z||(this._isComplete=!1,z=this._connection=new E.w,z.add(this.source.subscribe(new W(this.getSubject(),this))),z.closed&&(this._connection=null,z=E.w.EMPTY)),z}refCount(){return(0,M.x)()(this)}}const U=(()=>{const H=B.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:H._subscribe},_isComplete:{value:H._isComplete,writable:!0},getSubject:{value:H.getSubject},connect:{value:H.connect},refCount:{value:H.refCount}}})();class W extends ue.Yc{constructor(z,J){super(z),this.connectable=J}_error(z){this._unsubscribe(),super._error(z)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const z=this.connectable;if(z){this.connectable=null;const J=z._connection;z._refCount=0,z._subject=null,z._connection=null,J&&J.unsubscribe()}}}},254:(Je,he,F)=>{"use strict";F.d(he,{D:()=>rt});var ue=F(498),i=F(249),E=F(654),M=F(821),W=F(454),Q=F(430),z=F(955),J=F(515);function rt(_e,te){return te?function me(_e,te){if(null!=_e){if(function H(_e){return _e&&"function"==typeof _e[M.L]}(_e))return function B(_e,te){return new ue.y(Ut=>{const mt=new E.w;return mt.add(te.schedule(()=>{const jn=_e[M.L]();mt.add(jn.subscribe({next(qn){mt.add(te.schedule(()=>Ut.next(qn)))},error(qn){mt.add(te.schedule(()=>Ut.error(qn)))},complete(){mt.add(te.schedule(()=>Ut.complete()))}}))})),mt})}(_e,te);if((0,z.t)(_e))return function U(_e,te){return new ue.y(Ut=>{const mt=new E.w;return mt.add(te.schedule(()=>_e.then(jn=>{mt.add(te.schedule(()=>{Ut.next(jn),mt.add(te.schedule(()=>Ut.complete()))}))},jn=>{mt.add(te.schedule(()=>Ut.error(jn)))}))),mt})}(_e,te);if((0,J.z)(_e))return(0,W.r)(_e,te);if(function Y(_e){return _e&&"function"==typeof _e[Q.hZ]}(_e)||"string"==typeof _e)return function q(_e,te){if(!_e)throw new Error("Iterable cannot be null");return new ue.y(Ut=>{const mt=new E.w;let jn;return mt.add(()=>{jn&&"function"==typeof jn.return&&jn.return()}),mt.add(te.schedule(()=>{jn=_e[Q.hZ](),mt.add(te.schedule(function(){if(Ut.closed)return;let qn,Se;try{const ci=jn.next();qn=ci.value,Se=ci.done}catch(ci){return void Ut.error(ci)}Se?Ut.complete():(Ut.next(qn),this.schedule())}))})),mt})}(_e,te)}throw new TypeError((null!==_e&&typeof _e||_e)+" is not observable")}(_e,te):_e instanceof ue.y?_e:new ue.y((0,i.s)(_e))}},9:(Je,he,F)=>{"use strict";F.d(he,{n:()=>M});var ue=F(498),i=F(650),E=F(454);function M(B,U){return U?(0,E.r)(B,U):new ue.y((0,i.V)(B))}},787:(Je,he,F)=>{"use strict";F.d(he,{T:()=>B});var ue=F(498),i=F(866),E=F(146),M=F(9);function B(...U){let W=Number.POSITIVE_INFINITY,Q=null,q=U[U.length-1];return(0,i.K)(q)?(Q=U.pop(),U.length>1&&"number"==typeof U[U.length-1]&&(W=U.pop())):"number"==typeof q&&(W=U.pop()),null===Q&&1===U.length&&U[0]instanceof ue.y?U[0]:(0,E.J)(W)((0,M.n)(U,Q))}},850:(Je,he,F)=>{"use strict";F.d(he,{U:()=>i});var ue=F(489);function i(B,U){return function(Q){if("function"!=typeof B)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return Q.lift(new E(B,U))}}class E{constructor(U,W){this.project=U,this.thisArg=W}call(U,W){return W.subscribe(new M(U,this.project,this.thisArg))}}class M extends ue.L{constructor(U,W,Q){super(U),this.project=W,this.count=0,this.thisArg=Q||this}_next(U){let W;try{W=this.project.call(this.thisArg,U,this.count++)}catch(Q){return void this.destination.error(Q)}this.destination.next(W)}}},146:(Je,he,F)=>{"use strict";F.d(he,{J:()=>E});var ue=F(709),i=F(379);function E(M=Number.POSITIVE_INFINITY){return(0,ue.zg)(i.y,M)}},709:(Je,he,F)=>{"use strict";F.d(he,{zg:()=>M});var ue=F(850),i=F(254),E=F(177);function M(Q,q,H=Number.POSITIVE_INFINITY){return"function"==typeof q?z=>z.pipe(M((J,Y)=>(0,i.D)(Q(J,Y)).pipe((0,ue.U)((me,rt)=>q(J,me,Y,rt))),H)):("number"==typeof q&&(H=q),z=>z.lift(new B(Q,H)))}class B{constructor(q,H=Number.POSITIVE_INFINITY){this.project=q,this.concurrent=H}call(q,H){return H.subscribe(new U(q,this.project,this.concurrent))}}class U extends E.Ds{constructor(q,H,z=Number.POSITIVE_INFINITY){super(q),this.project=H,this.concurrent=z,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(q){this.active0?this._next(q.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},327:(Je,he,F)=>{"use strict";F.d(he,{x:()=>i});var ue=F(489);function i(){return function(U){return U.lift(new E(U))}}class E{constructor(U){this.connectable=U}call(U,W){const{connectable:Q}=this;Q._refCount++;const q=new M(U,Q),H=W.subscribe(q);return q.closed||(q.connection=Q.connect()),H}}class M extends ue.L{constructor(U,W){super(U),this.connectable=W}_unsubscribe(){const{connectable:U}=this;if(!U)return void(this.connection=null);this.connectable=null;const W=U._refCount;if(W<=0)return void(this.connection=null);if(U._refCount=W-1,W>1)return void(this.connection=null);const{connection:Q}=this,q=U._connection;this.connection=null,q&&(!Q||q===Q)&&q.unsubscribe()}}},454:(Je,he,F)=>{"use strict";F.d(he,{r:()=>E});var ue=F(498),i=F(654);function E(M,B){return new ue.y(U=>{const W=new i.w;let Q=0;return W.add(B.schedule(function(){Q!==M.length?(U.next(M[Q++]),U.closed||W.add(this.schedule())):U.complete()})),W})}},430:(Je,he,F)=>{"use strict";F.d(he,{hZ:()=>i});const i=function ue(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},821:(Je,he,F)=>{"use strict";F.d(he,{L:()=>ue});const ue="function"==typeof Symbol&&Symbol.observable||"@@observable"},668:(Je,he,F)=>{"use strict";F.d(he,{b:()=>ue});const ue="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},279:(Je,he,F)=>{"use strict";F.d(he,{N:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return E.prototype=Object.create(Error.prototype),E})()},782:(Je,he,F)=>{"use strict";function ue(i){setTimeout(()=>{throw i},0)}F.d(he,{z:()=>ue})},379:(Je,he,F)=>{"use strict";function ue(i){return i}F.d(he,{y:()=>ue})},688:(Je,he,F)=>{"use strict";F.d(he,{k:()=>ue});const ue=Array.isArray||(i=>i&&"number"==typeof i.length)},515:(Je,he,F)=>{"use strict";F.d(he,{z:()=>ue});const ue=i=>i&&"number"==typeof i.length&&"function"!=typeof i},43:(Je,he,F)=>{"use strict";function ue(i){return"function"==typeof i}F.d(he,{m:()=>ue})},830:(Je,he,F)=>{"use strict";function ue(i){return null!==i&&"object"==typeof i}F.d(he,{K:()=>ue})},955:(Je,he,F)=>{"use strict";function ue(i){return!!i&&"function"!=typeof i.subscribe&&"function"==typeof i.then}F.d(he,{t:()=>ue})},866:(Je,he,F)=>{"use strict";function ue(i){return i&&"function"==typeof i.schedule}F.d(he,{K:()=>ue})},843:(Je,he,F)=>{"use strict";F.d(he,{U:()=>E,z:()=>i});var ue=F(379);function i(...M){return E(M)}function E(M){return 0===M.length?ue.y:1===M.length?M[0]:function(U){return M.reduce((W,Q)=>Q(W),U)}}},249:(Je,he,F)=>{"use strict";F.d(he,{s:()=>z});var ue=F(650),i=F(782),M=F(430),U=F(821),Q=F(515),q=F(955),H=F(830);const z=J=>{if(J&&"function"==typeof J[U.L])return(J=>Y=>{const me=J[U.L]();if("function"!=typeof me.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return me.subscribe(Y)})(J);if((0,Q.z)(J))return(0,ue.V)(J);if((0,q.t)(J))return(J=>Y=>(J.then(me=>{Y.closed||(Y.next(me),Y.complete())},me=>Y.error(me)).then(null,i.z),Y))(J);if(J&&"function"==typeof J[M.hZ])return(J=>Y=>{const me=J[M.hZ]();for(;;){let rt;try{rt=me.next()}catch(_e){return Y.error(_e),Y}if(rt.done){Y.complete();break}if(Y.next(rt.value),Y.closed)break}return"function"==typeof me.return&&Y.add(()=>{me.return&&me.return()}),Y})(J);{const me=`You provided ${(0,H.K)(J)?"an invalid object":`'${J}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(me)}}},650:(Je,he,F)=>{"use strict";F.d(he,{V:()=>ue});const ue=i=>E=>{for(let M=0,B=i.length;M{"use strict";F.r(he),F.d(he,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>kx,ANIMATION_MODULE_TYPE:()=>l1,APP_BOOTSTRAP_LISTENER:()=>kw,APP_ID:()=>Df,APP_INITIALIZER:()=>Sw,ApplicationInitStatus:()=>Cf,ApplicationModule:()=>R_,ApplicationRef:()=>aa,Attribute:()=>Np,COMPILER_OPTIONS:()=>xf,CUSTOM_ELEMENTS_SCHEMA:()=>Dv,ChangeDetectionStrategy:()=>Xn,ChangeDetectorRef:()=>Hw,Compiler:()=>f1,CompilerFactory:()=>p1,Component:()=>n1,ComponentFactory:()=>vo,ComponentFactoryResolver:()=>Ja,ComponentRef:()=>jr,ContentChild:()=>Rx,ContentChildren:()=>Fx,DEFAULT_CURRENCY_CODE:()=>d1,DebugElement:()=>Ec,DebugEventListener:()=>T1,DebugNode:()=>Uf,DefaultIterableDiffer:()=>qw,Directive:()=>Cw,ENVIRONMENT_INITIALIZER:()=>es,ElementRef:()=>Xa,EmbeddedViewRef:()=>E1,EnvironmentInjector:()=>Ws,ErrorHandler:()=>tl,EventEmitter:()=>xr,Host:()=>bu,HostBinding:()=>Dw,HostListener:()=>o1,INJECTOR:()=>gm,Inject:()=>_t,InjectFlags:()=>xe,Injectable:()=>rl,InjectionToken:()=>Ot,Injector:()=>ns,Input:()=>r1,IterableDiffers:()=>O_,KeyValueDiffers:()=>Gf,LOCALE_ID:()=>Ef,MissingTranslationStrategy:()=>Mr,ModuleWithComponentFactories:()=>Mw,NO_ERRORS_SCHEMA:()=>Hp,NgModule:()=>bf,NgModuleFactory:()=>Qh,NgModuleRef:()=>ls,NgProbeToken:()=>kf,NgZone:()=>tr,Optional:()=>yu,Output:()=>yf,PACKAGE_ROOT_URL:()=>xw,PLATFORM_ID:()=>Sf,PLATFORM_INITIALIZER:()=>Tw,Pipe:()=>g_,PlatformRef:()=>C_,Query:()=>gu,QueryList:()=>nf,ReflectiveInjector:()=>sl,ReflectiveKey:()=>Yi,Renderer2:()=>Sm,RendererFactory2:()=>Dm,RendererStyleFlags2:()=>pr,ResolvedReflectiveFactory:()=>Om,Sanitizer:()=>ny,SecurityContext:()=>on,Self:()=>Cd,SimpleChange:()=>Xl,SkipSelf:()=>Rs,TRANSLATIONS:()=>Tf,TRANSLATIONS_FORMAT:()=>h1,TemplateRef:()=>ra,Testability:()=>b1,TestabilityRegistry:()=>wc,Type:()=>Bp,VERSION:()=>iy,Version:()=>el,ViewChild:()=>Bx,ViewChildren:()=>Nx,ViewContainerRef:()=>oa,ViewEncapsulation:()=>Ei,ViewRef:()=>$w,asNativeElements:()=>jf,assertPlatform:()=>Bw,createComponent:()=>j1,createEnvironmentInjector:()=>Jh,createNgModule:()=>$b,createNgModuleRef:()=>Gb,createPlatform:()=>Rw,createPlatformFactory:()=>Nw,defineInjectable:()=>Vc,destroyPlatform:()=>C1,enableProdMode:()=>S_,forwardRef:()=>_e,getDebugNode:()=>xo,getModuleFactory:()=>Vf,getNgModuleById:()=>S1,getPlatform:()=>Dc,importProvidersFrom:()=>_m,inject:()=>ko,isDevMode:()=>D1,isStandalone:()=>pi,makeEnvironmentProviders:()=>Yv,platformCore:()=>k1,reflectComponentType:()=>U1,resolveForwardRef:()=>te,setTestabilityGetter:()=>y_,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>Af,\u0275APP_ID_RANDOM_PROVIDER:()=>a1,\u0275ComponentFactory:()=>vo,\u0275Console:()=>u1,\u0275DEFAULT_LOCALE_ID:()=>ia,\u0275INJECTOR_SCOPE:()=>vm,\u0275LContext:()=>xv,\u0275LifecycleHooksFeature:()=>Uy,\u0275LocaleDataIndex:()=>Ae,\u0275NG_COMP_DEF:()=>Fo,\u0275NG_DIR_DEF:()=>or,\u0275NG_ELEMENT_ID:()=>kr,\u0275NG_INJ_DEF:()=>_a,\u0275NG_MOD_DEF:()=>Ca,\u0275NG_PIPE_DEF:()=>Kr,\u0275NG_PROV_DEF:()=>Ao,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>Zd,\u0275NO_CHANGE:()=>Ne,\u0275NgModuleFactory:()=>Kh,\u0275NoopNgZone:()=>Aw,\u0275ReflectionCapabilities:()=>vv,\u0275Render3ComponentFactory:()=>$r,\u0275Render3ComponentRef:()=>wS,\u0275Render3NgModuleRef:()=>Ug,\u0275RuntimeError:()=>Se,\u0275TESTABILITY:()=>Ow,\u0275TESTABILITY_GETTER:()=>Lf,\u0275ViewRef:()=>cl,\u0275XSS_SECURITY_URL:()=>qn,\u0275_sanitizeHtml:()=>ID,\u0275_sanitizeUrl:()=>js,\u0275allowSanitizationBypassAndThrow:()=>Li,\u0275bypassSanitizationTrustHtml:()=>Pu,\u0275bypassSanitizationTrustResourceUrl:()=>Lu,\u0275bypassSanitizationTrustScript:()=>Vs,\u0275bypassSanitizationTrustStyle:()=>SD,\u0275bypassSanitizationTrustUrl:()=>ED,\u0275clearResolutionOfComponentResourcesQueue:()=>wv,\u0275coerceToBoolean:()=>F1,\u0275compileComponent:()=>pw,\u0275compileDirective:()=>h_,\u0275compileNgModule:()=>dw,\u0275compileNgModuleDefs:()=>hw,\u0275compileNgModuleFactory:()=>Of,\u0275compilePipe:()=>ww,\u0275convertToBitFlags:()=>ys,\u0275createInjector:()=>Im,\u0275defaultIterableDiffers:()=>F_,\u0275defaultKeyValueDiffers:()=>O1,\u0275detectChanges:()=>Wm,\u0275devModeEqual:()=>Yy,\u0275findLocaleData:()=>na,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>cw,\u0275formatRuntimeError:()=>ci,\u0275getDebugNode:()=>xo,\u0275getDebugNodeR2:()=>Zw,\u0275getDirectives:()=>Yb,\u0275getHostElement:()=>Gg,\u0275getInjectableDef:()=>Ar,\u0275getLContext:()=>ri,\u0275getLocaleCurrencyCode:()=>Db,\u0275getLocalePluralCase:()=>Eg,\u0275getSanitizationBypassType:()=>et,\u0275getUnknownElementStrictMode:()=>zx,\u0275getUnknownPropertyStrictMode:()=>Gx,\u0275global:()=>Lt,\u0275injectChangeDetectorRef:()=>zw,\u0275internalCreateApplication:()=>w1,\u0275isBoundToModule:()=>Fw,\u0275isEnvironmentProviders:()=>mt,\u0275isInjectable:()=>ga,\u0275isNgModule:()=>Ol,\u0275isObservable:()=>Xm,\u0275isPromise:()=>gl,\u0275isSubscribable:()=>Jm,\u0275makeDecorator:()=>Ii,\u0275noSideEffects:()=>fi,\u0275patchComponentDefWithScope:()=>d_,\u0275publishDefaultGlobalUtils:()=>If,\u0275publishGlobalUtil:()=>Ni,\u0275registerLocaleData:()=>Sg,\u0275resetCompiledComponents:()=>qE,\u0275resetJitOptions:()=>df,\u0275resolveComponentResources:()=>Vp,\u0275setAllowDuplicateNgModuleIdsForTest:()=>Td,\u0275setClassMetadata:()=>Qb,\u0275setCurrentInjector:()=>Qr,\u0275setDocument:()=>Vv,\u0275setLocaleId:()=>Mg,\u0275setUnknownElementStrictMode:()=>Hx,\u0275setUnknownPropertyStrictMode:()=>$x,\u0275store:()=>qm,\u0275stringify:()=>Y,\u0275transitiveScopesFor:()=>To,\u0275unregisterLocaleData:()=>GS,\u0275unwrapSafeValue:()=>qi,\u0275\u0275CopyDefinitionFeature:()=>LS,\u0275\u0275FactoryTarget:()=>Tn,\u0275\u0275HostDirectivesFeature:()=>Zy,\u0275\u0275InheritDefinitionFeature:()=>hh,\u0275\u0275NgOnChangesFeature:()=>ur,\u0275\u0275ProvidersFeature:()=>jg,\u0275\u0275StandaloneFeature:()=>ht,\u0275\u0275advance:()=>dy,\u0275\u0275attribute:()=>Dr,\u0275\u0275attributeInterpolate1:()=>Gm,\u0275\u0275attributeInterpolate2:()=>Qy,\u0275\u0275attributeInterpolate3:()=>mh,\u0275\u0275attributeInterpolate4:()=>gh,\u0275\u0275attributeInterpolate5:()=>_h,\u0275\u0275attributeInterpolate6:()=>vh,\u0275\u0275attributeInterpolate7:()=>yh,\u0275\u0275attributeInterpolate8:()=>bh,\u0275\u0275attributeInterpolateV:()=>wh,\u0275\u0275classMap:()=>ag,\u0275\u0275classMapInterpolate1:()=>mg,\u0275\u0275classMapInterpolate2:()=>Xi,\u0275\u0275classMapInterpolate3:()=>Vh,\u0275\u0275classMapInterpolate4:()=>mb,\u0275\u0275classMapInterpolate5:()=>gg,\u0275\u0275classMapInterpolate6:()=>gb,\u0275\u0275classMapInterpolate7:()=>zS,\u0275\u0275classMapInterpolate8:()=>_g,\u0275\u0275classMapInterpolateV:()=>_b,\u0275\u0275classProp:()=>yl,\u0275\u0275contentQuery:()=>ow,\u0275\u0275defineComponent:()=>Yl,\u0275\u0275defineDirective:()=>Sa,\u0275\u0275defineInjectable:()=>Dn,\u0275\u0275defineInjector:()=>gs,\u0275\u0275defineNgModule:()=>Ql,\u0275\u0275definePipe:()=>ws,\u0275\u0275directiveInject:()=>al,\u0275\u0275disableBindings:()=>nd,\u0275\u0275element:()=>Sh,\u0275\u0275elementContainer:()=>Eh,\u0275\u0275elementContainerEnd:()=>Qu,\u0275\u0275elementContainerStart:()=>Yu,\u0275\u0275elementEnd:()=>ml,\u0275\u0275elementStart:()=>qu,\u0275\u0275enableBindings:()=>Is,\u0275\u0275getCurrentView:()=>Th,\u0275\u0275getInheritedFactory:()=>Op,\u0275\u0275hostProperty:()=>So,\u0275\u0275i18n:()=>Ub,\u0275\u0275i18nApply:()=>zb,\u0275\u0275i18nAttributes:()=>Hb,\u0275\u0275i18nEnd:()=>Og,\u0275\u0275i18nExp:()=>kg,\u0275\u0275i18nPostprocess:()=>Fg,\u0275\u0275i18nStart:()=>Zh,\u0275\u0275inject:()=>Rt,\u0275\u0275injectAttribute:()=>Fp,\u0275\u0275invalidFactory:()=>Ty,\u0275\u0275invalidFactoryDep:()=>Oo,\u0275\u0275listener:()=>xh,\u0275\u0275loadQuery:()=>sa,\u0275\u0275namespaceHTML:()=>Lp,\u0275\u0275namespaceMathML:()=>cd,\u0275\u0275namespaceSVG:()=>ud,\u0275\u0275nextContext:()=>In,\u0275\u0275ngDeclareClassMetadata:()=>eC,\u0275\u0275ngDeclareComponent:()=>R1,\u0275\u0275ngDeclareDirective:()=>Wf,\u0275\u0275ngDeclareFactory:()=>Zf,\u0275\u0275ngDeclareInjectable:()=>tC,\u0275\u0275ngDeclareInjector:()=>B1,\u0275\u0275ngDeclareNgModule:()=>V1,\u0275\u0275ngDeclarePipe:()=>N_,\u0275\u0275pipe:()=>en,\u0275\u0275pipeBind1:()=>Yg,\u0275\u0275pipeBind2:()=>qt,\u0275\u0275pipeBind3:()=>pc,\u0275\u0275pipeBind4:()=>ef,\u0275\u0275pipeBindV:()=>Qg,\u0275\u0275projection:()=>Ju,\u0275\u0275projectionDef:()=>Mh,\u0275\u0275property:()=>Dh,\u0275\u0275propertyInterpolate:()=>tg,\u0275\u0275propertyInterpolate1:()=>_l,\u0275\u0275propertyInterpolate2:()=>ng,\u0275\u0275propertyInterpolate3:()=>Jy,\u0275\u0275propertyInterpolate4:()=>Xy,\u0275\u0275propertyInterpolate5:()=>eb,\u0275\u0275propertyInterpolate6:()=>tb,\u0275\u0275propertyInterpolate7:()=>nb,\u0275\u0275propertyInterpolate8:()=>ib,\u0275\u0275propertyInterpolateV:()=>rb,\u0275\u0275pureFunction0:()=>Kb,\u0275\u0275pureFunction1:()=>Jb,\u0275\u0275pureFunction2:()=>LE,\u0275\u0275pureFunction3:()=>AE,\u0275\u0275pureFunction4:()=>OE,\u0275\u0275pureFunction5:()=>kE,\u0275\u0275pureFunction6:()=>FE,\u0275\u0275pureFunction7:()=>Xb,\u0275\u0275pureFunction8:()=>RE,\u0275\u0275pureFunctionV:()=>qg,\u0275\u0275queryRefresh:()=>mc,\u0275\u0275reference:()=>Ym,\u0275\u0275registerNgModuleType:()=>Ed,\u0275\u0275resetView:()=>Ma,\u0275\u0275resolveBody:()=>ay,\u0275\u0275resolveDocument:()=>sy,\u0275\u0275resolveWindow:()=>qs,\u0275\u0275restoreView:()=>dr,\u0275\u0275sanitizeHtml:()=>Za,\u0275\u0275sanitizeResourceUrl:()=>Ud,\u0275\u0275sanitizeScript:()=>pm,\u0275\u0275sanitizeStyle:()=>qa,\u0275\u0275sanitizeUrl:()=>Xo,\u0275\u0275sanitizeUrlOrResourceUrl:()=>Zv,\u0275\u0275setComponentScope:()=>Gc,\u0275\u0275setNgModuleScope:()=>Wc,\u0275\u0275styleMap:()=>Sr,\u0275\u0275styleMapInterpolate1:()=>vg,\u0275\u0275styleMapInterpolate2:()=>vb,\u0275\u0275styleMapInterpolate3:()=>yg,\u0275\u0275styleMapInterpolate4:()=>jh,\u0275\u0275styleMapInterpolate5:()=>yb,\u0275\u0275styleMapInterpolate6:()=>Do,\u0275\u0275styleMapInterpolate7:()=>bb,\u0275\u0275styleMapInterpolate8:()=>ss,\u0275\u0275styleMapInterpolateV:()=>wb,\u0275\u0275styleProp:()=>nc,\u0275\u0275stylePropInterpolate1:()=>rc,\u0275\u0275stylePropInterpolate2:()=>bg,\u0275\u0275stylePropInterpolate3:()=>oc,\u0275\u0275stylePropInterpolate4:()=>Uh,\u0275\u0275stylePropInterpolate5:()=>wg,\u0275\u0275stylePropInterpolate6:()=>Dl,\u0275\u0275stylePropInterpolate7:()=>Cg,\u0275\u0275stylePropInterpolate8:()=>Hh,\u0275\u0275stylePropInterpolateV:()=>Dg,\u0275\u0275syntheticHostListener:()=>Nn,\u0275\u0275syntheticHostProperty:()=>ea,\u0275\u0275template:()=>Zm,\u0275\u0275templateRefExtractor:()=>cf,\u0275\u0275text:()=>Xs,\u0275\u0275textInterpolate:()=>ic,\u0275\u0275textInterpolate1:()=>Rh,\u0275\u0275textInterpolate2:()=>Nh,\u0275\u0275textInterpolate3:()=>db,\u0275\u0275textInterpolate4:()=>hb,\u0275\u0275textInterpolate5:()=>fb,\u0275\u0275textInterpolate6:()=>pb,\u0275\u0275textInterpolate7:()=>fg,\u0275\u0275textInterpolate8:()=>Bh,\u0275\u0275textInterpolateV:()=>pg,\u0275\u0275trustConstantHtml:()=>mm,\u0275\u0275trustConstantResourceUrl:()=>Hs,\u0275\u0275validateIframeAttribute:()=>lm,\u0275\u0275viewQuery:()=>i_});var ue=F(529),i=F(654),E=F(498),M=F(787),B=F(762);class W{constructor(a,l){this.subjectFactory=a,this.selector=l}call(a,l){const{selector:d}=this,f=this.subjectFactory(),m=d(f).subscribe(a);return m.add(l.subscribe(f)),m}}var Q=F(327);function q(){return new ue.xQ}function z(s){for(let a in s)if(s[a]===z)return a;throw Error("Could not find renamed property on target object.")}function J(s,a){for(const l in a)a.hasOwnProperty(l)&&!s.hasOwnProperty(l)&&(s[l]=a[l])}function Y(s){if("string"==typeof s)return s;if(Array.isArray(s))return"["+s.map(Y).join(", ")+"]";if(null==s)return""+s;if(s.overriddenName)return`${s.overriddenName}`;if(s.name)return`${s.name}`;const a=s.toString();if(null==a)return""+a;const l=a.indexOf("\n");return-1===l?a:a.substring(0,l)}function me(s,a){return null==s||""===s?null===a?"":a:null==a||""===a?s:s+" "+a}const rt=z({__forward_ref__:z});function _e(s){return s.__forward_ref__=_e,s.toString=function(){return Y(this())},s}function te(s){return Ut(s)?s():s}function Ut(s){return"function"==typeof s&&s.hasOwnProperty(rt)&&s.__forward_ref__===_e}function mt(s){return s&&!!s.\u0275providers}const qn="https://g.co/ng/security#xss";class Se extends Error{constructor(a,l){super(ci(a,l)),this.code=a}}function ci(s,a){return`NG0${Math.abs(s)}${a?": "+a.trim():""}`}function Ve(s){return"string"==typeof s?s:null==s?"":String(s)}function Ge(s){return"function"==typeof s?s.name||s.toString():"object"==typeof s&&null!=s&&"function"==typeof s.type?s.type.name||s.type.toString():Ve(s)}function xt(s,a){throw new Se(-201,!1)}function We(s,a,l,d){throw new Error(`ASSERTION ERROR: ${s}`+(null==d?"":` [Expected=> ${l} ${d} ${a} <=Actual]`))}function Dn(s){return{token:s.token,providedIn:s.providedIn||null,factory:s.factory,value:void 0}}const Vc=Dn;function gs(s){return{providers:s.providers||[],imports:s.imports||[]}}function Ar(s){return jc(s,Ao)||jc(s,Uc)}function ga(s){return null!==Ar(s)}function jc(s,a){return s.hasOwnProperty(a)?s[a]:null}function _s(s){return s&&(s.hasOwnProperty(_a)||s.hasOwnProperty(ql))?s[_a]:null}const Ao=z({\u0275prov:z}),_a=z({\u0275inj:z}),Uc=z({ngInjectableDef:z}),ql=z({ngInjectorDef:z});var xe=(()=>((xe=xe||{})[xe.Default=0]="Default",xe[xe.Host=1]="Host",xe[xe.Self=2]="Self",xe[xe.SkipSelf=4]="SkipSelf",xe[xe.Optional=8]="Optional",xe))();let va;function De(s){const a=va;return va=s,a}function Ze(s,a,l){const d=Ar(s);return d&&"root"==d.providedIn?void 0===d.value?d.value=d.factory():d.value:l&xe.Optional?null:void 0!==a?a:void xt(Y(s))}const Lt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),hi={},Ft="__NG_DI_FLAG__",ba="ngTempTokenPath",bt="ngTokenPath",Hc=/\n/gm,vs="\u0275",zc="__source";let Or;function Qr(s){const a=Or;return Or=s,a}function $c(s,a=xe.Default){if(void 0===Or)throw new Se(-203,!1);return null===Or?Ze(s,void 0,a):Or.get(s,a&xe.Optional?null:void 0,a)}function Rt(s,a=xe.Default){return(function nn(){return va}()||$c)(te(s),a)}function Oo(s){throw new Se(202,!1)}function ko(s,a=xe.Default){return Rt(s,ys(a))}function ys(s){return typeof s>"u"||"number"==typeof s?s:0|(s.optional&&8)|(s.host&&1)|(s.self&&2)|(s.skipSelf&&4)}function wa(s){const a=[];for(let l=0;l((Xn=Xn||{})[Xn.OnPush=0]="OnPush",Xn[Xn.Default=1]="Default",Xn))(),Ei=(()=>{return(s=Ei||(Ei={}))[s.Emulated=0]="Emulated",s[s.None=2]="None",s[s.ShadowDom=3]="ShadowDom",Ei;var s})();const ei={},nt=[],Fo=z({\u0275cmp:z}),or=z({\u0275dir:z}),Kr=z({\u0275pipe:z}),Ca=z({\u0275mod:z}),sr=z({\u0275fac:z}),kr=z({__NG_ELEMENT_ID__:z});let mp=0;function Yl(s){return fi(()=>{const a=ze(s),l={...a,decls:s.decls,vars:s.vars,template:s.template,consts:s.consts||null,ngContentSelectors:s.ngContentSelectors,onPush:s.changeDetection===Xn.OnPush,directiveDefs:null,pipeDefs:null,dependencies:a.standalone&&s.dependencies||null,getStandaloneInjector:null,data:s.data||{},encapsulation:s.encapsulation||Ei.Emulated,id:"c"+mp++,styles:s.styles||nt,_:null,schemas:s.schemas||null,tView:null};Cs(l);const d=s.dependencies;return l.directiveDefs=zi(d,!1),l.pipeDefs=zi(d,!0),l})}function Gc(s,a,l){const d=s.\u0275cmp;d.directiveDefs=zi(a,!1),d.pipeDefs=zi(l,!0)}function Ro(s){return at(s)||Sn(s)}function gp(s){return null!==s}function Ql(s){return fi(()=>({type:s.type,bootstrap:s.bootstrap||nt,declarations:s.declarations||nt,imports:s.imports||nt,exports:s.exports||nt,transitiveCompileScopes:null,schemas:s.schemas||null,id:s.id||null}))}function Wc(s,a){return fi(()=>{const l=He(s,!0);l.declarations=a.declarations||nt,l.imports=a.imports||nt,l.exports=a.exports||nt})}function Da(s,a){if(null==s)return ei;const l={};for(const d in s)if(s.hasOwnProperty(d)){let f=s[d],m=f;Array.isArray(f)&&(m=f[1],f=f[0]),l[f]=d,a&&(a[f]=m)}return l}function Sa(s){return fi(()=>{const a=ze(s);return Cs(a),a})}function ws(s){return{type:s.type,name:s.name,factory:null,pure:!1!==s.pure,standalone:!0===s.standalone,onDestroy:s.type.prototype.ngOnDestroy||null}}function at(s){return s[Fo]||null}function Sn(s){return s[or]||null}function An(s){return s[Kr]||null}function pi(s){const a=at(s)||Sn(s)||An(s);return null!==a&&a.standalone}function He(s,a){const l=s[Ca]||null;if(!l&&!0===a)throw new Error(`Type ${Y(s)} does not have '\u0275mod' property.`);return l}function ze(s){const a={};return{type:s.type,providersResolver:null,factory:null,hostBindings:s.hostBindings||null,hostVars:s.hostVars||0,hostAttrs:s.hostAttrs||null,contentQueries:s.contentQueries||null,declaredInputs:a,exportAs:s.exportAs||null,standalone:!0===s.standalone,selectors:s.selectors||nt,viewQuery:s.viewQuery||null,features:s.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Da(s.inputs,a),outputs:Da(s.outputs)}}function Cs(s){s.features?.forEach(a=>a(s))}function zi(s,a){if(!s)return null;const l=a?An:Ro;return()=>("function"==typeof s?s():s).map(d=>l(d)).filter(gp)}const On=0,ge=1,re=2,qe=3,ti=4,Fe=5,wt=6,Jr=7,St=8,mi=9,At=10,je=11,No=12,$i=13,Ea=14,gi=15,Qt=16,Bo=17,rn=18,_i=19,Xr=20,Ds=21,Et=22,Kl=1,Ye=2,fn=7,ft=8,eo=9,pn=10;function mn(s){return Array.isArray(s)&&"object"==typeof s[Kl]}function gn(s){return Array.isArray(s)&&!0===s[Kl]}function Ss(s){return 0!=(4&s.flags)}function ar(s){return s.componentOffset>-1}function Nt(s){return 1==(1&s.flags)}function _n(s){return!!s.template}function Yc(s){return 0!=(256&s[re])}function Fr(s,a){return s.hasOwnProperty(sr)?s[sr]:null}class Xl{constructor(a,l,d){this.previousValue=a,this.currentValue=l,this.firstChange=d}isFirstChange(){return this.firstChange}}function ur(){return eu}function eu(s){return s.type.prototype.ngOnChanges&&(s.setInput=tu),Cp}function Cp(){const s=Ta(this),a=s?.current;if(a){const l=s.previous;if(l===ei)s.previous=a;else for(let d in a)l[d]=a[d];s.current=null,this.ngOnChanges(a)}}function tu(s,a,l,d){const f=this.declaredInputs[l],m=Ta(s)||function Sp(s,a){return s[Dp]=a}(s,{previous:ei,current:null}),v=m.current||(m.current={}),b=m.previous,C=b[f];v[f]=new Xl(C&&C.currentValue,a,b===ei),s[d]=a}ur.ngInherit=!0;const Dp="__ngSimpleChanges__";function Ta(s){return s[Dp]||null}let xa=null;const Ts=s=>{xa=s},kn=function(s,a,l){xa?.(s,a,l)},Ti="svg",td="math";function Ht(s){for(;Array.isArray(s);)s=s[On];return s}function xs(s,a){return Ht(a[s])}function Hn(s,a){return Ht(a[s.index])}function nu(s,a){return s.data[a]}function jo(s,a){return s[a]}function zn(s,a){const l=a[s];return mn(l)?l:l[On]}function Uo(s){return 64==(64&s[re])}function to(s,a){return null==a?null:s[a]}function ru(s){s[rn]=0}function ou(s,a){s[Fe]+=a;let l=s,d=s[qe];for(;null!==d&&(1===a&&1===l[Fe]||-1===a&&0===l[Fe]);)d[Fe]+=a,l=d,d=d[qe]}const Te={lFrame:Aa(null),bindingsEnabled:!0};function xp(){return Te.bindingsEnabled}function Is(){Te.bindingsEnabled=!0}function nd(){Te.bindingsEnabled=!1}function ne(){return Te.lFrame.lView}function ut(){return Te.lFrame.tView}function dr(s){return Te.lFrame.contextLView=s,s[St]}function Ma(s){return Te.lFrame.contextLView=null,s}function En(){let s=su();for(;null!==s&&64===s.type;)s=s.parent;return s}function su(){return Te.lFrame.currentTNode}function Ho(){const s=Te.lFrame,a=s.currentTNode;return s.isParent?a:a.parent}function an(s,a){const l=Te.lFrame;l.currentTNode=s,l.isParent=a}function au(){return Te.lFrame.isParent}function Gi(){Te.lFrame.isParent=!1}function vn(){const s=Te.lFrame;let a=s.bindingRootIndex;return-1===a&&(a=s.bindingRootIndex=s.tView.bindingStartIndex),a}function vi(){return Te.lFrame.bindingIndex}function Pa(s){return Te.lFrame.bindingIndex=s}function ro(){return Te.lFrame.bindingIndex++}function yi(s){const a=Te.lFrame,l=a.bindingIndex;return a.bindingIndex=a.bindingIndex+s,l}function La(s){Te.lFrame.inI18n=s}function id(s,a){const l=Te.lFrame;l.bindingIndex=l.bindingRootIndex=s,rd(a)}function rd(s){Te.lFrame.currentDirectiveIndex=s}function Ls(s){const a=Te.lFrame.currentDirectiveIndex;return-1===a?null:s[a]}function Ip(){return Te.lFrame.currentQueryIndex}function lu(s){Te.lFrame.currentQueryIndex=s}function uv(s){const a=s[ge];return 2===a.type?a.declTNode:1===a.type?s[wt]:null}function od(s,a,l){if(l&xe.SkipSelf){let f=a,m=s;for(;!(f=f.parent,null!==f||l&xe.Host||(f=uv(m),null===f||(m=m[gi],10&f.type))););if(null===f)return!1;a=f,s=m}const d=Te.lFrame=Mi();return d.currentTNode=a,d.lView=s,!0}function sd(s){const a=Mi(),l=s[ge];Te.lFrame=a,a.currentTNode=l.firstChild,a.lView=s,a.tView=l,a.contextLView=s,a.bindingIndex=l.bindingStartIndex,a.inI18n=!1}function Mi(){const s=Te.lFrame,a=null===s?null:s.child;return null===a?Aa(s):a}function Aa(s){const a={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:s,child:null,inI18n:!1};return null!==s&&(s.child=a),a}function ad(){const s=Te.lFrame;return Te.lFrame=s.parent,s.currentTNode=null,s.lView=null,s}const As=ad;function ld(){const s=ad();s.isParent=!0,s.tView=null,s.selectedIndex=-1,s.contextLView=null,s.elementDepthCount=0,s.currentDirectiveIndex=-1,s.currentNamespace=null,s.bindingRootIndex=-1,s.bindingIndex=-1,s.currentQueryIndex=0}function ln(){return Te.lFrame.selectedIndex}function zo(s){Te.lFrame.selectedIndex=s}function Ct(){const s=Te.lFrame;return nu(s.tView,s.selectedIndex)}function ud(){Te.lFrame.currentNamespace=Ti}function cd(){Te.lFrame.currentNamespace=td}function Lp(){!function Rr(){Te.lFrame.currentNamespace=null}()}function bi(s,a){for(let l=a.directiveStart,d=a.directiveEnd;l=d)break}else a[C]<0&&(s[rn]+=65536),(b>11>16&&(3&s[re])===a){s[re]+=2048,kn(4,b,m);try{m.call(b)}finally{kn(5,b,m)}}}else{kn(4,b,m);try{m.call(b)}finally{kn(5,b,m)}}}const $o=-1;class Go{constructor(a,l,d){this.factory=a,this.resolving=!1,this.canSeeViewProviders=l,this.injectImpl=d}}function u(s,a,l){let d=0;for(;da){v=m-1;break}}}for(;m>16}(s),d=a;for(;l>0;)d=d[gi],l--;return d}let ie=!0;function fe(s){const a=ie;return ie=s,a}const it=255,$n=5;let Nr=0;const ni={};function lo(s,a){const l=du(s,a);if(-1!==l)return l;const d=a[ge];d.firstCreatePass&&(s.injectorIndex=a.length,cu(d.data,s),cu(a,null),cu(d.blueprint,null));const f=hu(s,a),m=s.injectorIndex;if(P(f)){const v=R(f),b=Z(f,a),C=b[ge].data;for(let T=0;T<8;T++)a[m+T]=b[v+T]|C[v+T]}return a[m+8]=f,m}function cu(s,a){s.push(0,0,0,0,0,0,0,0,a)}function du(s,a){return-1===s.injectorIndex||s.parent&&s.parent.injectorIndex===s.injectorIndex||null===a[s.injectorIndex+8]?-1:s.injectorIndex}function hu(s,a){if(s.parent&&-1!==s.parent.injectorIndex)return s.parent.injectorIndex;let l=0,d=null,f=a;for(;null!==f;){if(d=kp(f),null===d)return $o;if(l++,f=f[gi],-1!==d.injectorIndex)return d.injectorIndex|l<<16}return $o}function Na(s,a,l){!function Zi(s,a,l){let d;"string"==typeof l?d=l.charCodeAt(0)||0:l.hasOwnProperty(kr)&&(d=l[kr]),null==d&&(d=l[kr]=Nr++);const f=d⁢a.data[s+(f>>$n)]|=1<=0?a&it:fv:a}(l);if("function"==typeof m){if(!od(a,s,d))return d&xe.Host?Os(f,0,d):Kt(a,l,d,f);try{const v=m(d);if(null!=v||d&xe.Optional)return v;xt()}finally{As()}}else if("number"==typeof m){let v=null,b=du(s,a),C=$o,T=d&xe.Host?a[Qt][wt]:null;for((-1===b||d&xe.SkipSelf)&&(C=-1===b?hu(s,a):a[b+8],C!==$o&&hv(d,!1)?(v=a[ge],b=R(C),a=Z(C,a)):b=-1);-1!==b;){const I=a[ge];if(pu(m,b,I.data)){const O=dv(b,a,l,v,d,T);if(O!==ni)return O}C=a[b+8],C!==$o&&hv(d,a[ge].data[b+8]===T)&&pu(m,b,a)?(v=I,b=R(C),a=Z(C,a)):b=-1}}return f}function dv(s,a,l,d,f,m){const v=a[ge],b=v.data[s+8],I=Va(b,v,l,null==d?ar(b)&&ie:d!=v&&0!=(3&b.type),f&xe.Host&&m===b);return null!==I?hr(a,v,I,b):ni}function Va(s,a,l,d,f){const m=s.providerIndexes,v=a.data,b=1048575&m,C=s.directiveStart,I=m>>20,N=f?b+I:s.directiveEnd;for(let $=d?b:b+I;$=C&&X.type===l)return $}if(f){const $=v[C];if($&&_n($)&&$.type===l)return C}return null}function hr(s,a,l,d){let f=s[l];const m=a.data;if(function fd(s){return s instanceof Go}(f)){const v=f;v.resolving&&function Yn(s,a){const l=a?`. Dependency path: ${a.join(" > ")} > ${s}`:"";throw new Se(-200,`Circular dependency in DI detected for ${s}${l}`)}(Ge(m[l]));const b=fe(v.canSeeViewProviders);v.resolving=!0;const C=v.injectImpl?De(v.injectImpl):null;od(s,d,xe.Default);try{f=s[l]=v.factory(void 0,m,s,d),a.firstCreatePass&&l>=d.directiveStart&&function Oa(s,a,l){const{ngOnChanges:d,ngOnInit:f,ngDoCheck:m}=a.type.prototype;if(d){const v=eu(a);(l.preOrderHooks??(l.preOrderHooks=[])).push(s,v),(l.preOrderCheckHooks??(l.preOrderCheckHooks=[])).push(s,v)}f&&(l.preOrderHooks??(l.preOrderHooks=[])).push(0-s,f),m&&((l.preOrderHooks??(l.preOrderHooks=[])).push(s,m),(l.preOrderCheckHooks??(l.preOrderCheckHooks=[])).push(s,m))}(l,m[l],a)}finally{null!==C&&De(C),fe(b),v.resolving=!1,As()}}return f}function pu(s,a,l){return!!(l[a+(s>>$n)]&1<{const a=s.prototype.constructor,l=a[sr]||mu(a),d=Object.prototype;let f=Object.getPrototypeOf(s.prototype).constructor;for(;f&&f!==d;){const m=f[sr]||mu(f);if(m&&m!==l)return m;f=Object.getPrototypeOf(f)}return m=>new m})}function mu(s){return Ut(s)?()=>{const a=mu(te(s));return a&&a()}:Fr(s)}function kp(s){const a=s[ge],l=a.type;return 2===l?a.declTNode:1===l?s[wt]:null}function Fp(s){return function Ap(s,a){if("class"===a)return s.classes;if("style"===a)return s.styles;const l=s.attrs;if(l){const d=l.length;let f=0;for(;f{const m=Rp(a);function v(...b){if(this instanceof v)return m.call(this,...b),this;const C=new v(...b);return function(I){return f&&f(I,...b),(I.hasOwnProperty(ja)?I[ja]:Object.defineProperty(I,ja,{value:[]})[ja]).push(C),d&&d(I),I}}return l&&(v.prototype=Object.create(l.prototype)),v.prototype.ngMetadataName=s,v.annotationCls=v,v})}function Rp(s){return function(...l){if(s){const d=s(...l);for(const f in d)this[f]=d[f]}}}function Ua(s,a,l){return fi(()=>{const d=Rp(a);function f(...m){if(this instanceof f)return d.apply(this,m),this;const v=new f(...m);return b.annotation=v,b;function b(C,T,I){const O=C.hasOwnProperty(uo)?C[uo]:Object.defineProperty(C,uo,{value:[]})[uo];for(;O.length<=I;)O.push(null);return(O[I]=O[I]||[]).push(v),C}}return l&&(f.prototype=Object.create(l.prototype)),f.prototype.ngMetadataName=s,f.annotationCls=f,f})}function Br(s,a,l,d){return fi(()=>{const f=Rp(a);function m(...v){if(this instanceof m)return f.apply(this,v),this;const b=new m(...v);return function C(T,I){const O=T.constructor,N=O.hasOwnProperty(Fs)?O[Fs]:Object.defineProperty(O,Fs,{value:{}})[Fs];N[I]=N.hasOwnProperty(I)&&N[I]||[],N[I].unshift(b),d&&d(T,I,...v)}}return l&&(m.prototype=Object.create(l.prototype)),m.prototype.ngMetadataName=s,m.annotationCls=m,m})}const Np=Ua("Attribute",s=>({attributeName:s,__NG_ELEMENT_ID__:()=>Fp(s)}));class Ot{constructor(a,l){this._desc=a,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof l?this.__NG_ELEMENT_ID__=l:void 0!==l&&(this.\u0275prov=Dn({token:this,providedIn:l.providedIn||"root",factory:l.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const kx=new Ot("AnalyzeForEntryComponents");class gu{}const Fx=Br("ContentChildren",(s,a={})=>({selector:s,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0,...a}),gu),Rx=Br("ContentChild",(s,a={})=>({selector:s,first:!0,isViewQuery:!1,descendants:!0,...a}),gu),Nx=Br("ViewChildren",(s,a={})=>({selector:s,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0,...a}),gu),Bx=Br("ViewChild",(s,a)=>({selector:s,first:!0,isViewQuery:!0,descendants:!0,...a}),gu);var Tn=(()=>((Tn=Tn||{})[Tn.Directive=0]="Directive",Tn[Tn.Component=1]="Component",Tn[Tn.Injectable=2]="Injectable",Tn[Tn.Pipe=3]="Pipe",Tn[Tn.NgModule=4]="NgModule",Tn))();function xn(s){const a=Lt.ng;if(a&&a.\u0275compilerFacade)return a.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Bp=Function;function vd(s){return"function"==typeof s}function fr(s){return s.flat(Number.POSITIVE_INFINITY)}function Zo(s,a){s.forEach(l=>Array.isArray(l)?Zo(l,a):a(l))}function pv(s,a,l){a>=s.length?s.push(l):s.splice(a,0,l)}function _u(s,a){return a>=s.length-1?s.pop():s.splice(a,1)[0]}function yd(s,a){const l=[];for(let d=0;d=0?s[1|d]=l:(d=~d,function Y0(s,a,l,d){let f=s.length;if(f==a)s.push(l,d);else if(1===f)s.push(d,s[0]),s[0]=l;else{for(f--,s.push(s[f-1],s[f]);f>a;)s[f]=s[f-2],f--;s[a]=l,s[a+1]=d}}(s,d,a,l)),d}function co(s,a){const l=Ha(s,a);if(l>=0)return s[1|l]}function Ha(s,a){return function mv(s,a,l){let d=0,f=s.length>>l;for(;f!==d;){const m=d+(f-d>>1),v=s[m<a?f=m:d=m+1}return~(f<new a(...l)}_zipTypesAndAnnotations(a,l){let d;d=yd(typeof a>"u"?l.length:a.length);for(let f=0;f"u"?[]:a[f]&&a[f]!=Object?[a[f]]:[],l&&null!=l[f]&&(d[f]=d[f].concat(l[f]));return d}_ownParameters(a,l){if(function Gn(s){return gv.test(s)||_v.test(s)||K0.test(s)&&!J0.test(s)}(a.toString()))return null;if(a.parameters&&a.parameters!==l.parameters)return a.parameters;const f=a.ctorParameters;if(f&&f!==l.ctorParameters){const b="function"==typeof f?f():f,C=b.map(I=>I&&I.type),T=b.map(I=>I&&bd(I.decorators));return this._zipTypesAndAnnotations(C,T)}const m=a.hasOwnProperty(uo)&&a[uo],v=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",a);return v||m?this._zipTypesAndAnnotations(v,m):yd(a.length)}parameters(a){if(!vd(a))return[];const l=wd(a);let d=this._ownParameters(a,l);return!d&&l!==Object&&(d=this.parameters(l)),d||[]}_ownAnnotations(a,l){if(a.annotations&&a.annotations!==l.annotations){let d=a.annotations;return"function"==typeof d&&d.annotations&&(d=d.annotations),d}return a.decorators&&a.decorators!==l.decorators?bd(a.decorators):a.hasOwnProperty(ja)?a[ja]:null}annotations(a){if(!vd(a))return[];const l=wd(a),d=this._ownAnnotations(a,l)||[];return(l!==Object?this.annotations(l):[]).concat(d)}_ownPropMetadata(a,l){if(a.propMetadata&&a.propMetadata!==l.propMetadata){let d=a.propMetadata;return"function"==typeof d&&d.propMetadata&&(d=d.propMetadata),d}if(a.propDecorators&&a.propDecorators!==l.propDecorators){const d=a.propDecorators,f={};return Object.keys(d).forEach(m=>{f[m]=bd(d[m])}),f}return a.hasOwnProperty(Fs)?a[Fs]:null}propMetadata(a){if(!vd(a))return{};const l=wd(a),d={};if(l!==Object){const m=this.propMetadata(l);Object.keys(m).forEach(v=>{d[v]=m[v]})}const f=this._ownPropMetadata(a,l);return f&&Object.keys(f).forEach(m=>{const v=[];d.hasOwnProperty(m)&&v.push(...d[m]),v.push(...f[m]),d[m]=v}),d}ownPropMetadata(a){return vd(a)&&this._ownPropMetadata(a,wd(a))||{}}hasLifecycleHook(a,l){return a instanceof Bp&&l in a.prototype}}function bd(s){return s?s.map(a=>new(0,a.type.annotationCls)(...a.args?a.args:[])):[]}function wd(s){const a=s.prototype?Object.getPrototypeOf(s.prototype):null;return(a?a.constructor:null)||Object}const _t=bs(Ua("Inject",s=>({token:s})),-1),yu=bs(Ua("Optional"),8),Cd=bs(Ua("Self"),2),Rs=bs(Ua("SkipSelf"),4),bu=bs(Ua("Host"),1);let yv=null;function wu(){return yv=yv||new vv}function Dd(s){return bv(wu().parameters(s))}function bv(s){return s.map(a=>function Sd(s){const a={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(s)&&s.length>0)for(let l=0;l{const v=[];f.templateUrl&&v.push(d(f.templateUrl).then(O=>{f.template=O}));const b=f.styleUrls,C=f.styles||(f.styles=[]),T=f.styles.length;b&&b.forEach((O,N)=>{C.push(""),v.push(d(O).then($=>{C[T+N]=$,b.splice(b.indexOf(O),1),0==b.length&&(f.styleUrls=void 0)}))});const I=Promise.all(v).then(()=>function tD(s){Cu.delete(s)}(m));a.push(I)}),wv(),Promise.all(a).then(()=>{})}let ho=new Map;const Cu=new Set;function jp(s){return!!(s.templateUrl&&!s.hasOwnProperty("template")||s.styleUrls&&s.styleUrls.length)}function wv(){const s=ho;return ho=new Map,s}function ve(s){return"string"==typeof s?s:s.text()}const Du=new Map;let fo=!0;function Ed(s,a){(function Up(s,a,l){if(a&&a!==l&&fo)throw new Error(`Duplicate module registered for ${s} - ${Y(a)} vs ${Y(a.name)}`)})(a,Du.get(a)||null,s),Du.set(a,s)}function po(s){return Du.get(s)}function Td(s){fo=!s}const Dv={name:"custom-elements"},Hp={name:"no-errors-schema"};let Le=!1;function Hx(s){Le=s}function zx(){return Le}let Sv=!1;function $x(s){Sv=s}function Gx(){return Sv}var pr=(()=>((pr=pr||{})[pr.Important=1]="Important",pr[pr.DashCase=2]="DashCase",pr))();const iD=/^>|^->||--!>|)/,vt="\u200b$1\u200b";const Ci=new Map;let Wx=0;function ii(s){return Ci.get(s)||null}class xv{get lView(){return ii(this.lViewId)}constructor(a,l,d){this.lViewId=a,this.nodeIndex=l,this.native=d}}function ri(s){let a=Su(s);if(a){if(mn(a)){const l=a;let d,f,m;if(za(s)){if(d=Ld(l,s),-1==d)throw new Error("The provided component was not found in the application");f=s}else if(function oD(s){return s&&s.constructor&&s.constructor.\u0275dir}(s)){if(d=function sD(s,a){let l=s[ge].firstChild;for(;l;){const f=l.directiveEnd;for(let m=l.directiveStart;m=0){const b=Ht(m[v]),C=mr(m,v,b);Fn(b,C),a=C;break}}}}return a||null}function mr(s,a,l){return new xv(s[Xr],a,l)}function Mv(s){let l,a=Su(s);if(mn(a)){const d=a,f=Ld(d,s);l=zn(f,d);const m=mr(d,f,l[On]);m.component=s,Fn(s,m),Fn(m.native,m)}else l=zn(a.nodeIndex,a.lView);return l}const Id="__ngContext__";function Fn(s,a){mn(a)?(s[Id]=a[Xr],function Gp(s){Ci.set(s[Xr],s)}(a)):s[Id]=a}function Su(s){const a=s[Id];return"number"==typeof a?ii(a):a||null}function Iv(s){const a=Su(s);return a?mn(a)?a:a.lView:null}function za(s){return s&&s.constructor&&s.constructor.\u0275cmp}function Pd(s,a){const l=s[ge];for(let d=Et;da.replace(ke,vt))}(a))}function vr(s,a,l){return s.createElement(a,l)}function Kp(s,a){const l=s[eo],d=l.indexOf(a),f=a[qe];512&a[re]&&(a[re]&=-513,ou(f,-1)),l.splice(d,1)}function Jp(s,a){if(s.length<=pn)return;const l=pn+a,d=s[l];if(d){const f=d[Bo];null!==f&&f!==s&&Kp(f,d),a>0&&(s[l-1][ti]=d[ti]);const m=_u(s,pn+a);!function cD(s,a){Mu(s,a,a[je],2,null,null),a[On]=null,a[wt]=null}(d[ge],d);const v=m[_i];null!==v&&v.detachView(m[ge]),d[qe]=null,d[ti]=null,d[re]&=-65}return d}function Av(s,a){if(!(128&a[re])){const l=a[je];l.destroyNode&&Mu(s,a,l,3,null,null),function Od(s){let a=s[$i];if(!a)return Xp(s[ge],s);for(;a;){let l=null;if(mn(a))l=a[$i];else{const d=a[pn];d&&(l=d)}if(!l){for(;a&&!a[ti]&&a!==s;)mn(a)&&Xp(a[ge],a),a=a[qe];null===a&&(a=s),mn(a)&&Xp(a[ge],a),l=a&&a[ti]}a=l}}(a)}}function Xp(s,a){if(!(128&a[re])){a[re]&=-65,a[re]|=128,function qo(s,a){let l;if(null!=s&&null!=(l=s.destroyHooks))for(let d=0;d=0?d[f=v]():d[f=-v].unsubscribe(),m+=2}else{const v=d[f=l[m+1]];l[m].call(v)}if(null!==d){for(let m=f+1;m-1){const{encapsulation:m}=s.data[d.directiveStart+f];if(m===Ei.None||m===Ei.Emulated)return null}return Hn(d,l)}}function Bs(s,a,l,d,f){s.insertBefore(a,l,d,f)}function $t(s,a,l){s.appendChild(a,l)}function kv(s,a,l,d,f){null!==d?Bs(s,a,l,d,f):$t(s,a,l)}function kd(s,a){return s.parentNode(a)}function em(s,a,l){return Rv(s,a,l)}function Fv(s,a,l){return 40&s.type?Hn(s,l):null}let Tu,Qo,Rd,un,Rv=Fv;function Nv(s,a){Rv=s,Tu=a}function Fd(s,a,l,d){const f=Yo(s,d,a),m=a[je],b=em(d.parent||a[wt],d,a);if(null!=f)if(Array.isArray(l))for(let C=0;Cs,createScript:s=>s,createScriptURL:s=>s})}catch{}return Qo}function yr(s){return am()?.createHTML(s)||s}function lm(s,a,l){const d=ne(),f=Ct(),m=Hn(f,d);if(2===f.type&&"iframe"===a.toLowerCase()){const v=m;throw v.src="",v.srcdoc=yr(""),nm(d[je],v),new Se(-910,!1)}return s}function Vv(s){Rd=s}function wD(){return void 0!==Rd?Rd:typeof document<"u"?document:void 0}function Vr(){if(void 0===un&&(un=null,Lt.trustedTypes))try{un=Lt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch{}return un}function Iu(s){return Vr()?.createHTML(s)||s}function jv(s){return Vr()?.createScript(s)||s}function um(s){return Vr()?.createScriptURL(s)||s}class Ko{constructor(a){this.changingThisBreaksApplicationSecurity=a}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qn})`}}class CD extends Ko{getTypeName(){return"HTML"}}class Uv extends Ko{getTypeName(){return"Style"}}class DD extends Ko{getTypeName(){return"Script"}}class Hv extends Ko{getTypeName(){return"URL"}}class zv extends Ko{getTypeName(){return"ResourceURL"}}function qi(s){return s instanceof Ko?s.changingThisBreaksApplicationSecurity:s}function Li(s,a){const l=et(s);if(null!=l&&l!==a){if("ResourceURL"===l&&"URL"===a)return!0;throw new Error(`Required a safe ${a}, got a ${l} (see ${qn})`)}return l===a}function et(s){return s instanceof Ko&&s.getTypeName()||null}function Pu(s){return new CD(s)}function SD(s){return new Uv(s)}function Vs(s){return new DD(s)}function ED(s){return new Hv(s)}function Lu(s){return new zv(s)}function Nd(s){const a=new Bd(s);return function Au(){try{return!!(new window.DOMParser).parseFromString(yr(""),"text/html")}catch{return!1}}()?new TD(a):a}class TD{constructor(a){this.inertDocumentHelper=a}getInertBodyElement(a){a=""+a;try{const l=(new window.DOMParser).parseFromString(yr(a),"text/html").body;return null===l?this.inertDocumentHelper.getInertBodyElement(a):(l.removeChild(l.firstChild),l)}catch{return null}}}class Bd{constructor(a){this.defaultDoc=a,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(a){const l=this.inertDocument.createElement("template");return l.innerHTML=yr(a),l}}const $v=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function js(s){return(s=String(s)).match($v)?s:"unsafe:"+s}function _o(s){const a={};for(const l of s.split(","))a[l]=!0;return a}function Us(...s){const a={};for(const l of s)for(const d in l)l.hasOwnProperty(d)&&(a[d]=!0);return a}const Ou=_o("area,br,col,hr,img,wbr"),cm=_o("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),dm=_o("rp,rt"),Ga=Us(Ou,Us(cm,_o("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")),Us(dm,_o("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")),Us(dm,cm)),hm=_o("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Gv=Us(hm,_o("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"),_o("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")),xD=_o("script,style,template");class fm{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(a){let l=a.firstChild,d=!0;for(;l;)if(l.nodeType===Node.ELEMENT_NODE?d=this.startElement(l):l.nodeType===Node.TEXT_NODE?this.chars(l.nodeValue):this.sanitizedSomething=!0,d&&l.firstChild)l=l.firstChild;else for(;l;){l.nodeType===Node.ELEMENT_NODE&&this.endElement(l);let f=this.checkClobberedElement(l,l.nextSibling);if(f){l=f;break}l=this.checkClobberedElement(l,l.parentNode)}return this.buf.join("")}startElement(a){const l=a.nodeName.toLowerCase();if(!Ga.hasOwnProperty(l))return this.sanitizedSomething=!0,!xD.hasOwnProperty(l);this.buf.push("<"),this.buf.push(l);const d=a.attributes;for(let f=0;f"),!0}endElement(a){const l=a.nodeName.toLowerCase();Ga.hasOwnProperty(l)&&!Ou.hasOwnProperty(l)&&(this.buf.push(""))}chars(a){this.buf.push(Jo(a))}checkClobberedElement(a,l){if(l&&(a.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${a.outerHTML}`);return l}}const Vd=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,MD=/([^\#-~ |!])/g;function Jo(s){return s.replace(/&/g,"&").replace(Vd,function(a){return"&#"+(1024*(a.charCodeAt(0)-55296)+(a.charCodeAt(1)-56320)+65536)+";"}).replace(MD,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(//g,">")}let Wa;function ID(s,a){let l=null;try{Wa=Wa||Nd(s);let d=a?String(a):"";l=Wa.getInertBodyElement(d);let f=5,m=d;do{if(0===f)throw new Error("Failed to sanitize html because the input is unstable");f--,d=m,m=l.innerHTML,l=Wa.getInertBodyElement(d)}while(d!==m);return yr((new fm).sanitizeChildren(jd(l)||l))}finally{if(l){const d=jd(l)||l;for(;d.firstChild;)d.removeChild(d.firstChild)}}}function jd(s){return"content"in s&&function Wv(s){return s.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===s.nodeName}(s)?s.content:null}var on=(()=>((on=on||{})[on.NONE=0]="NONE",on[on.HTML=1]="HTML",on[on.STYLE=2]="STYLE",on[on.SCRIPT=3]="SCRIPT",on[on.URL=4]="URL",on[on.RESOURCE_URL=5]="RESOURCE_URL",on))();function Za(s){const a=zs();return a?Iu(a.sanitize(on.HTML,s)||""):Li(s,"HTML")?Iu(qi(s)):ID(wD(),Ve(s))}function qa(s){const a=zs();return a?a.sanitize(on.STYLE,s)||"":Li(s,"Style")?qi(s):Ve(s)}function Xo(s){const a=zs();return a?a.sanitize(on.URL,s)||"":Li(s,"URL")?qi(s):js(Ve(s))}function Ud(s){const a=zs();if(a)return um(a.sanitize(on.RESOURCE_URL,s)||"");if(Li(s,"ResourceURL"))return um(qi(s));throw new Se(904,!1)}function pm(s){const a=zs();if(a)return jv(a.sanitize(on.SCRIPT,s)||"");if(Li(s,"Script"))return jv(qi(s));throw new Se(905,!1)}function mm(s){return yr(s[0])}function Hs(s){return function bD(s){return am()?.createScriptURL(s)||s}(s[0])}function Zv(s,a,l){return function PD(s,a){return"src"===a&&("embed"===s||"frame"===s||"iframe"===s||"media"===s||"script"===s)||"href"===a&&("base"===s||"link"===s)?Ud:Xo}(a,l)(s)}function zs(){const s=ne();return s&&s[No]}const es=new Ot("ENVIRONMENT_INITIALIZER"),gm=new Ot("INJECTOR",-1),Hd=new Ot("INJECTOR_DEF_TYPES");class qv{get(a,l=hi){if(l===hi){const d=new Error(`NullInjectorError: No provider for ${Y(a)}!`);throw d.name="NullInjectorError",d}return l}}function Yv(s){return{\u0275providers:s}}function _m(...s){return{\u0275providers:Ya(0,s),\u0275fromNgModule:!0}}function Ya(s,...a){const l=[],d=new Set;let f;return Zo(a,m=>{const v=m;ku(v,l,[],d)&&(f||(f=[]),f.push(v))}),void 0!==f&&br(f,l),l}function br(s,a){for(let l=0;l{a.push(m)})}}function ku(s,a,l,d){if(!(s=te(s)))return!1;let f=null,m=_s(s);const v=!m&&at(s);if(m||v){if(v&&!v.standalone)return!1;f=s}else{const C=s.ngModule;if(m=_s(C),!m)return!1;f=C}const b=d.has(f);if(v){if(b)return!1;if(d.add(f),v.dependencies){const C="function"==typeof v.dependencies?v.dependencies():v.dependencies;for(const T of C)ku(T,a,l,d)}}else{if(!m)return!1;{if(null!=m.imports&&!b){let T;d.add(f);try{Zo(m.imports,I=>{ku(I,a,l,d)&&(T||(T=[]),T.push(I))})}finally{}void 0!==T&&br(T,a)}if(!b){const T=Fr(f)||(()=>new f);a.push({provide:f,useFactory:T,deps:nt},{provide:Hd,useValue:f,multi:!0},{provide:es,useValue:()=>Rt(f),multi:!0})}const C=m.providers;null==C||b||Qa(C,I=>{a.push(I)})}}return f!==s&&void 0!==s.providers}function Qa(s,a){for(let l of s)mt(l)&&(l=l.\u0275providers),Array.isArray(l)?Qa(l,a):a(l)}const zd=z({provide:String,useValue:z});function Fu(s){return null!==s&&"object"==typeof s&&zd in s}function Gs(s){return"function"==typeof s}const vm=new Ot("Set Injector scope."),$d={},OD={};let ym;function Gd(){return void 0===ym&&(ym=new qv),ym}class Ws{}class Jv extends Ws{get destroyed(){return this._destroyed}constructor(a,l,d,f){super(),this.parent=l,this.source=d,this.scopes=f,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ru(a,v=>this.processProvider(v)),this.records.set(gm,Ka(void 0,this)),f.has("environment")&&this.records.set(Ws,Ka(void 0,this));const m=this.records.get(vm);null!=m&&"string"==typeof m.value&&this.scopes.add(m.value),this.injectorDefTypes=new Set(this.get(Hd.multi,nt,xe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const a of this._ngOnDestroyHooks)a.ngOnDestroy();for(const a of this._onDestroyHooks)a()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(a){this._onDestroyHooks.push(a)}runInContext(a){this.assertNotDestroyed();const l=Qr(this),d=De(void 0);try{return a()}finally{Qr(l),De(d)}}get(a,l=hi,d=xe.Default){this.assertNotDestroyed(),d=ys(d);const f=Qr(this),m=De(void 0);try{if(!(d&xe.SkipSelf)){let b=this.records.get(a);if(void 0===b){const C=function bm(s){return"function"==typeof s||"object"==typeof s&&s instanceof Ot}(a)&&Ar(a);b=C&&this.injectableDefInScope(C)?Ka(Wd(a),$d):null,this.records.set(a,b)}if(null!=b)return this.hydrate(a,b)}return(d&xe.Self?Gd():this.parent).get(a,l=d&xe.Optional&&l===hi?null:l)}catch(v){if("NullInjectorError"===v.name){if((v[ba]=v[ba]||[]).unshift(Y(a)),f)throw v;return function Hi(s,a,l,d){const f=s[ba];throw a[zc]&&f.unshift(a[zc]),s.message=function Ee(s,a,l,d=null){s=s&&"\n"===s.charAt(0)&&s.charAt(1)==vs?s.slice(2):s;let f=Y(a);if(Array.isArray(a))f=a.map(Y).join(" -> ");else if("object"==typeof a){let m=[];for(let v in a)if(a.hasOwnProperty(v)){let b=a[v];m.push(v+":"+("string"==typeof b?JSON.stringify(b):Y(b)))}f=`{${m.join(", ")}}`}return`${l}${d?"("+d+")":""}[${f}]: ${s.replace(Hc,"\n ")}`}("\n"+s.message,f,l,d),s[bt]=f,s[ba]=null,s}(v,a,"R3InjectorError",this.source)}throw v}finally{De(m),Qr(f)}}resolveInjectorInitializers(){const a=Qr(this),l=De(void 0);try{const d=this.get(es.multi,nt,xe.Self);for(const f of d)f()}finally{Qr(a),De(l)}}toString(){const a=[],l=this.records;for(const d of l.keys())a.push(Y(d));return`R3Injector[${a.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Se(205,!1)}processProvider(a){let l=Gs(a=te(a))?a:te(a&&a.provide);const d=function FD(s){return Fu(s)?Ka(void 0,s.useValue):Ka(Xv(s),$d)}(a);if(Gs(a)||!0!==a.multi)this.records.get(l);else{let f=this.records.get(l);f||(f=Ka(void 0,$d,!0),f.factory=()=>wa(f.multi),this.records.set(l,f)),l=a,f.multi.push(a)}this.records.set(l,d)}hydrate(a,l){return l.value===$d&&(l.value=OD,l.value=l.factory()),"object"==typeof l.value&&l.value&&function ey(s){return null!==s&&"object"==typeof s&&"function"==typeof s.ngOnDestroy}(l.value)&&this._ngOnDestroyHooks.add(l.value),l.value}injectableDefInScope(a){if(!a.providedIn)return!1;const l=te(a.providedIn);return"string"==typeof l?"any"===l||this.scopes.has(l):this.injectorDefTypes.has(l)}}function Wd(s){const a=Ar(s),l=null!==a?a.factory:Fr(s);if(null!==l)return l;if(s instanceof Ot)throw new Se(204,!1);if(s instanceof Function)return function kD(s){const a=s.length;if(a>0)throw yd(a,"?"),new Se(204,!1);const l=function fp(s){const a=s&&(s[Ao]||s[Uc]);return a?(function Un(s){if(s.hasOwnProperty("name"))return s.name;(""+s).match(/^function\s*([^\s(]+)/)}(s),a):null}(s);return null!==l?()=>l.factory(s):()=>new s}(s);throw new Se(204,!1)}function Xv(s,a,l){let d;if(Gs(s)){const f=te(s);return Fr(f)||Wd(f)}if(Fu(s))d=()=>te(s.useValue);else if(function Kv(s){return!(!s||!s.useFactory)}(s))d=()=>s.useFactory(...wa(s.deps||[]));else if(function Qv(s){return!(!s||!s.useExisting)}(s))d=()=>Rt(te(s.useExisting));else{const f=te(s&&(s.useClass||s.provide));if(!function RD(s){return!!s.deps}(s))return Fr(f)||Wd(f);d=()=>new f(...wa(s.deps))}return d}function Ka(s,a,l=!1){return{factory:s,value:a,multi:l?[]:void 0}}function Ru(s,a){for(const l of s)Array.isArray(l)?Ru(l,a):l&&mt(l)?Ru(l.\u0275providers,a):a(l)}class jr{}class vo{}class Zs{resolveComponentFactory(a){throw function ty(s){const a=Error(`No component factory found for ${Y(s)}. Did you add it to @NgModule.entryComponents?`);return a.ngComponent=s,a}(a)}}let Ja=(()=>{class s{}return s.NULL=new Zs,s})();function ND(){return yo(En(),ne())}function yo(s,a){return new Xa(Hn(s,a))}let Xa=(()=>{class s{constructor(l){this.nativeElement=l}}return s.__NG_ELEMENT_ID__=ND,s})();function Cm(s){return s instanceof Xa?s.nativeElement:s}class Dm{}let Sm=(()=>{class s{}return s.__NG_ELEMENT_ID__=()=>function Em(){const s=ne(),l=zn(En().index,s);return(mn(l)?l:s)[je]}(),s})(),ny=(()=>{class s{}return s.\u0275prov=Dn({token:s,providedIn:"root",factory:()=>null}),s})();class el{constructor(a){this.full=a,this.major=a.split(".")[0],this.minor=a.split(".")[1],this.patch=a.split(".").slice(2).join(".")}}const iy=new el("15.2.7"),Zd={},Nu="ngOriginalError";function qd(s){return s[Nu]}class tl{constructor(){this._console=console}handleError(a){const l=this._findOriginalError(a);this._console.error("ERROR",a),l&&this._console.error("ORIGINAL ERROR",l)}_findOriginalError(a){let l=a&&qd(a);for(;l&&qd(l);)l=qd(l);return l||null}}function qs(s){return s.ownerDocument.defaultView}function sy(s){return s.ownerDocument}function ay(s){return s.ownerDocument.body}function Ur(s){return s instanceof Function?s():s}function ly(s,a,l){let d=s.length;for(;;){const f=s.indexOf(a,l);if(-1===f)return f;if(0===f||s.charCodeAt(f-1)<=32){const m=a.length;if(f+m===d||s.charCodeAt(f+m)<=32)return f}l=f+1}}const uy="ng-template";function Tm(s,a,l){let d=0,f=!0;for(;dm?"":f[O+1].toLowerCase();const $=8&d?N:null;if($&&-1!==ly($,T,0)||2&d&&T!==N){if(wr(d))return!1;v=!0}}}}else{if(!v&&!wr(d)&&!wr(C))return!1;if(v&&wr(C))continue;v=!1,d=C|1&d}}return wr(d)||v}function wr(s){return 0==(1&s)}function VD(s,a,l,d){if(null===a)return-1;let f=0;if(d||!l){let m=!1;for(;f-1)for(l++;l0?'="'+b+'"':"")+"]"}else 8&d?f+="."+v:4&d&&(f+=" "+v);else""!==f&&!wr(v)&&(a+=il(m,f),f=""),d=v,m=m||!wr(d);l++}return""!==f&&(a+=il(m,f)),a}const Ne={};function dy(s){hy(ut(),ne(),ln()+s,!1)}function hy(s,a,l,d){if(!d)if(3==(3&a[re])){const m=s.preOrderCheckHooks;null!==m&&ka(a,m,l)}else{const m=s.preOrderHooks;null!==m&&Wi(a,m,0,l)}zo(l)}const fy={\u0275\u0275defineInjectable:Dn,\u0275\u0275defineInjector:gs,\u0275\u0275inject:Rt,\u0275\u0275invalidFactoryDep:Oo,resolveForwardRef:te};const GD=z({provide:String,useValue:z});function py(s){return void 0!==s.useClass}function my(s){return void 0!==s.useFactory}const rl=Ii("Injectable",void 0,void 0,void 0,(s,a)=>function $D(s,a){let l=null,d=null;s.hasOwnProperty(Ao)||Object.defineProperty(s,Ao,{get:()=>(null===l&&(l=xn().compileInjectable(fy,`ng:///${s.name}/\u0275prov.js`,function Jd(s,a){const l=a||{providedIn:null},d={name:s.name,type:s,typeArgumentCount:0,providedIn:l.providedIn};return(py(l)||my(l))&&void 0!==l.deps&&(d.deps=bv(l.deps)),py(l)?d.useClass=l.useClass:function iM(s){return GD in s}(l)?d.useValue=l.useValue:my(l)?d.useFactory=l.useFactory:function Mm(s){return void 0!==s.useExisting}(l)&&(d.useExisting=l.useExisting),d}(s,a))),l)}),s.hasOwnProperty(sr)||Object.defineProperty(s,sr,{get:()=>{if(null===d){const f=xn();d=f.compileFactory(fy,`ng:///${s.name}/\u0275fac.js`,{name:s.name,type:s,typeArgumentCount:0,deps:Dd(s),target:f.FactoryTarget.Injectable})}return d},configurable:!0})}(s,a));function Im(s,a=null,l=null,d){const f=gy(s,a,l,d);return f.resolveInjectorInitializers(),f}function gy(s,a=null,l=null,d,f=new Set){const m=[l||nt,_m(s)];return d=d||("object"==typeof s?void 0:Y(s)),new Jv(m,a||Gd(),d||null,f)}let ns=(()=>{class s{static create(l,d){if(Array.isArray(l))return Im({name:""},d,l,"");{const f=l.name??"";return Im({name:f},l.parent,l.providers,f)}}}return s.THROW_IF_NOT_FOUND=hi,s.NULL=new qv,s.\u0275prov=Dn({token:s,providedIn:"any",factory:()=>Rt(gm)}),s.__NG_ELEMENT_ID__=-1,s})();function Pm(s){return s.length>1?" ("+function WD(s){const a=[];for(let l=0;l-1)return a.push(s[l]),a;a.push(s[l])}return a}(s.slice().reverse()).map(d=>Y(d.token)).join(" -> ")+")":""}function Lm(s,a,l,d){const f=[a],m=l(f),v=d?function ry(s,a){const l=`${s} caused by: ${a instanceof Error?a.message:a}`,d=Error(l);return d[Nu]=a,d}(m,d):Error(m);return v.addKey=ZD,v.keys=f,v.injectors=[s],v.constructResolvingMessage=l,v[Nu]=d,v}function ZD(s,a){this.injectors.push(s),this.keys.push(a),this.message=this.constructResolvingMessage(this.keys)}function Xd(s,a){const l=[];for(let d=0,f=a.length;dd,l=[eh.fromKey(Yi.get(s.useExisting))]):s.useFactory?(a=s.useFactory,l=function Cy(s,a){if(a){const l=a.map(d=>[d]);return a.map(d=>Sy(s,d,l))}return Dy(s)}(s.useFactory,s.deps)):(a=()=>s.useValue,l=JD);return new Om(a,l)}function th(s){return new Uu(Yi.get(s.provide),[by(s)],s.multi||!1)}function nh(s){const d=function wy(s,a){for(let l=0;l{if(l instanceof Bp)a.push({provide:l,useClass:l});else if(l&&"object"==typeof l&&void 0!==l.provide)a.push(l);else{if(!Array.isArray(l))throw function QD(s){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${s}`)}(l);ol(l,a)}}),a}function Dy(s){const a=wu().parameters(s);if(!a)return[];if(a.some(l=>null==l))throw Xd(s,a);return a.map(l=>Sy(s,l,a))}function Sy(s,a,l){let d=null,f=!1;if(!Array.isArray(a))return km(a instanceof _t?a.token:a,f,null);let m=null;for(let v=0;v{class s{constructor(l,d){this._constructionCounter=0,this._providers=l,this.parent=d||null;const f=l.length;this.keyIds=[],this.objs=[];for(let m=0;m=this._providers.length)throw function vy(s){return Error(`Index ${s} is out-of-bounds.`)}(l);return this._providers[l]}_new(l){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function YD(s,a){return Lm(s,a,function(l){return`Cannot instantiate cyclic dependency!${Pm(l)}`})}(this,l.key);return this._instantiateProvider(l)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(l){if(l.multiProvider){const d=[];for(let f=0;fthis._getByReflectiveDependency(b))}catch(b){throw b.addKey&&b.addKey(this,l.key),b}try{v=f(...m)}catch(b){throw function _y(s,a,l,d){return Lm(s,d,function(f){const m=Y(f[0].token);return`${a.message}: Error during instantiation of ${m}!${Pm(f)}.`},a)}(this,b,0,l.key)}return v}_getByReflectiveDependency(l){return this._getByKey(l.key,l.visibility,l.optional?null:hi)}_getByKey(l,d,f){return l===s.INJECTOR_KEY?this:d instanceof Cd?this._getByKeySelf(l,f):this._getByKeyDefault(l,f,d)}_getObjByKeyId(l){for(let d=0;d' "'+d.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return s.INJECTOR_KEY=Yi.get(ns),s})();function al(s,a=xe.Default){const l=ne();return null===l?Rt(s,a):Ba(En(),l,te(s),a)}function Ty(){throw new Error("invalid")}function xy(s,a){const l=s.contentQueries;if(null!==l)for(let d=0;dEt&&hy(s,a,Et,!1),kn(v?2:0,f),l(d,f)}finally{zo(m),kn(v?3:1,f)}}function Rm(s,a,l){if(Ss(a)){const f=a.directiveEnd;for(let m=a.directiveStart;m0;){const l=s[--a];if("number"==typeof l&&l<0)return l}return 0})(v)!=b&&v.push(b),v.push(l,d,m)}}(s,a,d,ul(s,l,f.hostVars,Ne),f)}function Hr(s,a,l,d,f,m){const v=Hn(s,a);Qs(a[je],v,m,s.value,l,d,f)}function Qs(s,a,l,d,f,m,v){if(null==m)s.removeAttribute(a,f,l);else{const b=null==v?Ve(m):v(m,d||"",f);s.setAttribute(a,f,b,l)}}function Fy(s,a,l,d,f,m){const v=m[a];if(null!==v){const b=d.setInput;for(let C=0;C0&&Zu(l)}}function Zu(s){for(let d=qp(s);null!==d;d=Pv(d))for(let f=pn;f0&&Zu(m)}const l=s[ge].components;if(null!==l)for(let d=0;d0&&Zu(f)}}function Ry(s,a){const l=zn(a,s),d=l[ge];(function Oi(s,a){for(let l=a.length;l-1&&(Jp(a,d),_u(l,d))}this._attachedToViewContainer=!1}Av(this._lView[ge],this._lView)}onDestroy(a){rh(this._lView[ge],this._lView,null,a)}markForCheck(){bo(this._cdRefInjectingView||this._lView)}detach(){this._lView[re]&=-65}reattach(){this._lView[re]|=64}detectChanges(){Hm(this._lView[ge],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Se(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Di(s,a){Mu(s,a,a[je],2,null,null)}(this._lView[ge],this._lView)}attachToAppRef(a){if(this._attachedToViewContainer)throw new Se(902,!1);this._appRef=a}}class Vy extends cl{constructor(a){super(a),this._view=a}detectChanges(){const a=this._view;Hm(a[ge],a,a[St],!1)}checkNoChanges(){}get context(){return null}}class jy extends Ja{constructor(a){super(),this.ngModule=a}resolveComponentFactory(a){const l=at(a);return new $r(l,this.ngModule)}}function bS(s){const a=[];for(let l in s)s.hasOwnProperty(l)&&a.push({propName:s[l],templateName:l});return a}class aM{constructor(a,l){this.injector=a,this.parentInjector=l}get(a,l,d){d=ys(d);const f=this.injector.get(a,Zd,d);return f!==Zd||l===Zd?f:this.parentInjector.get(a,l,d)}}class $r extends vo{get inputs(){return bS(this.componentDef.inputs)}get outputs(){return bS(this.componentDef.outputs)}constructor(a,l){super(),this.componentDef=a,this.ngModule=l,this.componentType=a.type,this.selector=function zD(s){return s.map(HD).join(",")}(a.selectors),this.ngContentSelectors=a.ngContentSelectors?a.ngContentSelectors:[],this.isBoundToModule=!!l}create(a,l,d,f){let m=(f=f||this.ngModule)instanceof Ws?f:f?.injector;m&&null!==this.componentDef.getStandaloneInjector&&(m=this.componentDef.getStandaloneInjector(m)||m);const v=m?new aM(a,m):a,b=v.get(Dm,null);if(null===b)throw new Se(407,!1);const C=v.get(ny,null),T=b.createRenderer(null,this.componentDef),I=this.componentDef.selectors[0][0]||"div",O=d?function Py(s,a,l){return s.selectRootElement(a,l===Ei.ShadowDom)}(T,d,this.componentDef.encapsulation):vr(T,I,function sM(s){const a=s.toLowerCase();return"svg"===a?Ti:"math"===a?td:null}(I)),N=this.componentDef.onPush?288:272,$=Vm(0,null,null,1,0,null,null,null,null,null),X=zu(null,$,null,N,null,null,b,T,C,v,null);let le,pe;sd(X);try{const be=this.componentDef;let Me,oe=null;be.findHostDirectiveDefs?(Me=[],oe=new Map,be.findHostDirectiveDefs(be,Me,oe),Me.push(be)):Me=[be];const $e=function DS(s,a){const l=s[ge],d=Et;return s[d]=a,ll(l,d,2,"#host",null)}(X,O),Bt=function SS(s,a,l,d,f,m,v,b){const C=f[ge];!function dh(s,a,l,d){for(const f of s)a.mergedAttrs=w(a.mergedAttrs,f.hostAttrs);null!==a.mergedAttrs&&(uh(a,a.mergedAttrs,!0),null!==l&&Qe(d,l,a))}(d,s,a,v);const T=m.createRenderer(a,l),I=zu(f,Iy(l),null,l.onPush?32:16,f[s.index],s,m,T,b||null,null,null);return C.firstCreatePass&&Wu(C,s,d.length-1),ah(f,I),f[s.index]=I}($e,O,be,Me,X,b,T);pe=nu($,Et),O&&function TS(s,a,l,d){if(d)u(s,l,["ng-version",iy.full]);else{const{attrs:f,classes:m}=function ju(s){const a=[],l=[];let d=1,f=2;for(;d0&&sm(s,l,m.join(" "))}}(T,be,O,d),void 0!==l&&function xS(s,a,l){const d=s.projection=[];for(let f=0;f=0;d--){const f=s[d];f.hostVars=a+=f.hostVars,f.hostAttrs=w(f.hostAttrs,l=w(l,f.hostAttrs))}}(d)}function zy(s){return s===ei?{}:s===nt?[]:s}function $y(s,a){const l=s.viewQuery;s.viewQuery=l?(d,f)=>{a(d,f),l(d,f)}:a}function IS(s,a){const l=s.contentQueries;s.contentQueries=l?(d,f,m)=>{a(d,f,m),l(d,f,m)}:a}function PS(s,a){const l=s.hostBindings;s.hostBindings=l?(d,f)=>{a(d,f),l(d,f)}:a}const Gy=["providersResolver"],Wy=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function LS(s){let l,a=Hy(s.type);l=_n(s)?a.\u0275cmp:a.\u0275dir;const d=s;for(const f of Gy)d[f]=l[f];if(_n(l))for(const f of Wy)d[f]=l[f]}function Zy(s){return a=>{a.findHostDirectiveDefs=Gt,a.hostDirectives=(Array.isArray(s)?s:s()).map(l=>"function"==typeof l?{directive:te(l),inputs:ei,outputs:ei}:{directive:te(l.directive),inputs:cn(l.inputs),outputs:cn(l.outputs)})}}function Gt(s,a,l){if(null!==s.hostDirectives)for(const d of s.hostDirectives){const f=Sn(d.directive);AS(f.declaredInputs,d.inputs),Gt(f,a,l),l.set(f,d),a.push(f)}}function cn(s){if(void 0===s||0===s.length)return ei;const a={};for(let l=0;l=s.data.length&&(s.data[l]=null,s.blueprint[l]=null),a[l]=d}function Ym(s){return jo(function Ps(){return Te.lFrame.contextLView}(),Et+s)}function Dh(s,a,l){const d=ne();return Rn(d,ro(),a)&&Wn(ut(),Ct(),d,s,a,d[je],l,!1),Dh}function Qm(s,a,l,d,f){const v=f?"class":"style";lh(s,l,a.inputs[v],v,d)}function qu(s,a,l,d){const f=ne(),m=ut(),v=Et+s,b=f[je],C=m.firstCreatePass?function Ky(s,a,l,d,f,m){const v=a.consts,C=ll(a,s,2,d,to(v,f));return jm(a,l,C,to(v,m)),null!==C.attrs&&uh(C,C.attrs,!1),null!==C.mergedAttrs&&uh(C,C.mergedAttrs,!0),null!==a.queries&&a.queries.elementStart(a,C),C}(v,m,f,a,l,d):m.data[v],T=f[v]=vr(b,a,function dd(){return Te.lFrame.currentNamespace}()),I=Nt(C);return an(C,!0),Qe(b,T,C),32!=(32&C.flags)&&Fd(m,f,T,C),0===function cr(){return Te.lFrame.elementDepthCount}()&&Fn(T,f),function zt(){Te.lFrame.elementDepthCount++}(),I&&(Nm(m,f,C),Rm(m,C,f)),null!==d&&Bm(f,C),qu}function ml(){let s=En();au()?Gi():(s=s.parent,an(s,!1));const a=s;!function Ms(){Te.lFrame.elementDepthCount--}();const l=ut();return l.firstCreatePass&&(bi(l,s),Ss(s)&&l.queries.elementEnd(s)),null!=a.classesWithoutHost&&function md(s){return 0!=(8&s.flags)}(a)&&Qm(l,a,ne(),a.classesWithoutHost,!0),null!=a.stylesWithoutHost&&function Wo(s){return 0!=(16&s.flags)}(a)&&Qm(l,a,ne(),a.stylesWithoutHost,!1),ml}function Sh(s,a,l,d){return qu(s,a,l,d),ml(),Sh}function Yu(s,a,l){const d=ne(),f=ut(),m=s+Et,v=f.firstCreatePass?function Km(s,a,l,d,f){const m=a.consts,v=to(m,d),b=ll(a,s,8,"ng-container",v);return null!==v&&uh(b,v,!0),jm(a,l,b,to(m,f)),null!==a.queries&&a.queries.elementStart(a,b),b}(m,f,d,a,l):f.data[m];an(v,!0);const b=d[m]=d[je].createComment("");return Fd(f,d,b,v),Fn(b,d),Nt(v)&&(Nm(f,d,v),Rm(f,v,d)),null!=l&&Bm(d,v),Yu}function Qu(){let s=En();const a=ut();return au()?Gi():(s=s.parent,an(s,!1)),a.firstCreatePass&&(bi(a,s),Ss(s)&&a.queries.elementEnd(s)),Qu}function Eh(s,a,l){return Yu(s,a,l),Qu(),Eh}function Th(){return ne()}function gl(s){return!!s&&"function"==typeof s.then}function Jm(s){return!!s&&"function"==typeof s.subscribe}const Xm=Jm;function xh(s,a,l,d){const f=ne(),m=ut(),v=En();return eg(m,f,f[je],v,s,a,d),xh}function Nn(s,a){const l=En(),d=ne(),f=ut();return eg(f,d,yS(Ls(f.data),l,d),l,s,a),Nn}function eg(s,a,l,d,f,m,v){const b=Nt(d),T=s.firstCreatePass&&vS(s),I=a[St],O=By(a);let N=!0;if(3&d.type||v){const le=Hn(d,a),pe=v?v(le):le,be=O.length,Me=v?$e=>v(Ht($e[d.index])):d.index;let oe=null;if(!v&&b&&(oe=function rs(s,a,l,d){const f=s.cleanup;if(null!=f)for(let m=0;mC?b[C]:null}"string"==typeof v&&(m+=2)}return null}(s,a,f,d.index)),null!==oe)(oe.__ngLastListenerFn__||oe).__ngNextListenerFn__=m,oe.__ngLastListenerFn__=m,N=!1;else{m=FS(d,a,I,m,!1);const $e=l.listen(pe,f,m);O.push(m,$e),T&&T.push(f,Me,be,be+1)}}else m=FS(d,a,I,m,!1);const $=d.outputs;let X;if(N&&null!==$&&(X=$[f])){const le=X.length;if(le)for(let pe=0;pe-1?zn(s.index,a):a);let C=kS(a,l,d,v),T=m.__ngNextListenerFn__;for(;T;)C=kS(a,l,T,v)&&C,T=T.__ngNextListenerFn__;return f&&!1===C&&(v.preventDefault(),v.returnValue=!1),C}}function In(s=1){return function Pp(s){return(Te.lFrame.contextLView=function cv(s,a){for(;s>0;)a=a[gi],s--;return a}(s,Te.lFrame.contextLView))[St]}(s)}function Ku(s,a){let l=null;const d=function Kd(s){const a=s.attrs;if(null!=a){const l=a.indexOf(5);if(!(1&l))return a[l+1]}return null}(s);for(let f=0;f>17&32767}function ig(s){return 2|s}function Co(s){return(131068&s)>>2}function Js(s,a){return-131069&s|a<<2}function os(s){return 1|s}function sb(s,a,l,d,f){const m=s[l+1],v=null===a;let b=d?wo(m):Co(m),C=!1;for(;0!==b&&(!1===C||v);){const I=s[b+1];Ah(s[b],a)&&(C=!0,s[b+1]=d?os(I):ig(I)),b=d?wo(I):Co(I)}C&&(s[l+1]=d?ig(m):os(m))}function Ah(s,a){return null===s||null==a||(Array.isArray(s)?s[1]:s)===a||!(!Array.isArray(s)||"string"!=typeof a)&&Ha(s,a)>=0}const dn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function og(s){return s.substring(dn.key,dn.keyEnd)}function Oh(s){return s.substring(dn.value,dn.valueEnd)}function VS(s,a){const l=dn.textEnd;return l===a?-1:(a=dn.keyEnd=function ec(s,a,l){for(;a32;)a++;return a}(s,dn.key=a,l),Ki(s,a,l))}function sg(s,a){const l=dn.textEnd;let d=dn.key=Ki(s,a,l);return l===d?-1:(d=dn.keyEnd=function kh(s,a,l){let d;for(;a=65&&(-33&d)<=90||d>=48&&d<=57);)a++;return a}(s,d,l),d=vl(s,d,l),d=dn.value=Ki(s,d,l),d=dn.valueEnd=function Fh(s,a,l){let d=-1,f=-1,m=-1,v=a,b=v;for(;v32&&(b=v),m=f,f=d,d=-33&C}return b}(s,d,l),vl(s,d,l))}function jS(s){dn.key=0,dn.keyEnd=0,dn.value=0,dn.valueEnd=0,dn.textEnd=s.length}function Ki(s,a,l){for(;a=0;l=sg(a,l))lb(s,og(a),Oh(a))}function ag(s){Er(wi,Wr,s,!0)}function Wr(s,a){for(let l=function Xu(s){return jS(s),VS(s,Ki(s,0,dn.textEnd))}(a);l>=0;l=VS(a,l))wi(s,og(a),!0)}function Ji(s,a,l,d){const f=ne(),m=ut(),v=yi(2);m.firstUpdatePass&&ab(m,s,v,d),a!==Ne&&Rn(f,v,a)&&ub(m,m.data[ln()],f,f[je],s,f[v+1]=function cb(s,a){return null==s||""===s||("string"==typeof a?s+=a:"object"==typeof s&&(s=Y(qi(s)))),s}(a,l),d,v)}function Er(s,a,l,d){const f=ut(),m=yi(2);f.firstUpdatePass&&ab(f,null,m,d);const v=ne();if(l!==Ne&&Rn(v,m,l)){const b=f.data[ln()];if(hg(b,d)&&!HS(f,m)){let C=d?b.classesWithoutHost:b.stylesWithoutHost;null!==C&&(l=me(C,l||"")),Qm(f,b,v,l,d)}else!function pM(s,a,l,d,f,m,v,b){f===Ne&&(f=nt);let C=0,T=0,I=0=s.expandoStartIndex}function ab(s,a,l,d){const f=s.data;if(null===f[l+1]){const m=f[ln()],v=HS(s,l);hg(m,d)&&null===a&&!v&&(a=!1),a=function lg(s,a,l,d){const f=Ls(s);let m=d?a.residualClasses:a.residualStyles;if(null===f)0===(d?a.classBindings:a.styleBindings)&&(l=bl(l=cg(null,s,a,l,d),a.attrs,d),m=null);else{const v=a.directiveStylingLast;if(-1===v||s[v]!==f)if(l=cg(f,s,a,l,d),null===m){let C=function hM(s,a,l){const d=l?a.classBindings:a.styleBindings;if(0!==Co(d))return s[wo(d)]}(s,a,d);void 0!==C&&Array.isArray(C)&&(C=cg(null,s,a,C[1],d),C=bl(C,a.attrs,d),function fM(s,a,l,d){s[wo(l?a.classBindings:a.styleBindings)]=d}(s,a,d,C))}else m=function ug(s,a,l){let d;const f=a.directiveEnd;for(let m=1+a.directiveStylingLast;m0)&&(T=!0)):I=l,f)if(0!==C){const N=wo(s[b+1]);s[d+1]=Ih(N,b),0!==N&&(s[N+1]=Js(s[N+1],d)),s[b+1]=function NS(s,a){return 131071&s|a<<17}(s[b+1],d)}else s[d+1]=Ih(b,0),0!==b&&(s[b+1]=Js(s[b+1],d)),b=d;else s[d+1]=Ih(C,0),0===b?b=d:s[C+1]=Js(s[C+1],d),C=d;T&&(s[d+1]=ig(s[d+1])),sb(s,I,d,!0),sb(s,I,d,!1),function rg(s,a,l,d,f){const m=f?s.residualClasses:s.residualStyles;null!=m&&"string"==typeof a&&Ha(m,a)>=0&&(l[d+1]=os(l[d+1]))}(a,I,s,d,m),v=Ih(b,C),m?a.classBindings=v:a.styleBindings=v}(f,m,a,l,v,d)}}function cg(s,a,l,d,f){let m=null;const v=l.directiveEnd;let b=l.directiveStylingLast;for(-1===b?b=l.directiveStart:b++;b0;){const C=s[f],T=Array.isArray(C),I=T?C[1]:C,O=null===I;let N=l[f+1];N===Ne&&(N=O?nt:void 0);let $=O?co(N,d):I===d?N:void 0;if(T&&!Cl($)&&($=co(C,d)),Cl($)&&(b=$,v))return b;const X=s[f+1];f=v?wo(X):Co(X)}if(null!==a){let C=m?a.residualClasses:a.residualStyles;null!=C&&(b=co(C,d))}return b}function Cl(s){return void 0!==s}function hg(s,a){return 0!=(s.flags&(a?8:16))}function Xs(s,a=""){const l=ne(),d=ut(),f=s+Et,m=d.firstCreatePass?ll(d,f,1,a,null):d.data[f],v=l[f]=Qp(l[je],a);Fd(d,l,v,m),an(m,!1)}function ic(s){return Rh("",s,""),ic}function Rh(s,a,l){const d=ne(),f=hl(d,s,a,l);return f!==Ne&&Cr(d,ln(),f),Rh}function Nh(s,a,l,d,f){const m=ne(),v=fl(m,s,a,l,d,f);return v!==Ne&&Cr(m,ln(),v),Nh}function db(s,a,l,d,f,m,v){const b=ne(),C=Si(b,s,a,l,d,f,m,v);return C!==Ne&&Cr(b,ln(),C),db}function hb(s,a,l,d,f,m,v,b,C){const T=ne(),I=pl(T,s,a,l,d,f,m,v,b,C);return I!==Ne&&Cr(T,ln(),I),hb}function fb(s,a,l,d,f,m,v,b,C,T,I){const O=ne(),N=Fi(O,s,a,l,d,f,m,v,b,C,T,I);return N!==Ne&&Cr(O,ln(),N),fb}function pb(s,a,l,d,f,m,v,b,C,T,I,O,N){const $=ne(),X=Ks($,s,a,l,d,f,m,v,b,C,T,I,O,N);return X!==Ne&&Cr($,ln(),X),pb}function fg(s,a,l,d,f,m,v,b,C,T,I,O,N,$,X){const le=ne(),pe=Jt(le,s,a,l,d,f,m,v,b,C,T,I,O,N,$,X);return pe!==Ne&&Cr(le,ln(),pe),fg}function Bh(s,a,l,d,f,m,v,b,C,T,I,O,N,$,X,le,pe){const be=ne(),Me=Ri(be,s,a,l,d,f,m,v,b,C,T,I,O,N,$,X,le,pe);return Me!==Ne&&Cr(be,ln(),Me),Bh}function pg(s){const a=ne(),l=dl(a,s);return l!==Ne&&Cr(a,ln(),l),pg}function mg(s,a,l){Er(wi,Wr,hl(ne(),s,a,l),!0)}function Xi(s,a,l,d,f){Er(wi,Wr,fl(ne(),s,a,l,d,f),!0)}function Vh(s,a,l,d,f,m,v){Er(wi,Wr,Si(ne(),s,a,l,d,f,m,v),!0)}function mb(s,a,l,d,f,m,v,b,C){Er(wi,Wr,pl(ne(),s,a,l,d,f,m,v,b,C),!0)}function gg(s,a,l,d,f,m,v,b,C,T,I){Er(wi,Wr,Fi(ne(),s,a,l,d,f,m,v,b,C,T,I),!0)}function gb(s,a,l,d,f,m,v,b,C,T,I,O,N){Er(wi,Wr,Ks(ne(),s,a,l,d,f,m,v,b,C,T,I,O,N),!0)}function zS(s,a,l,d,f,m,v,b,C,T,I,O,N,$,X){Er(wi,Wr,Jt(ne(),s,a,l,d,f,m,v,b,C,T,I,O,N,$,X),!0)}function _g(s,a,l,d,f,m,v,b,C,T,I,O,N,$,X,le,pe){Er(wi,Wr,Ri(ne(),s,a,l,d,f,m,v,b,C,T,I,O,N,$,X,le,pe),!0)}function _b(s){Er(wi,Wr,dl(ne(),s),!0)}function vg(s,a,l){Sr(hl(ne(),s,a,l))}function vb(s,a,l,d,f){Sr(fl(ne(),s,a,l,d,f))}function yg(s,a,l,d,f,m,v){Sr(Si(ne(),s,a,l,d,f,m,v))}function jh(s,a,l,d,f,m,v,b,C){Sr(pl(ne(),s,a,l,d,f,m,v,b,C))}function yb(s,a,l,d,f,m,v,b,C,T,I){Sr(Fi(ne(),s,a,l,d,f,m,v,b,C,T,I))}function Do(s,a,l,d,f,m,v,b,C,T,I,O,N){Sr(Ks(ne(),s,a,l,d,f,m,v,b,C,T,I,O,N))}function bb(s,a,l,d,f,m,v,b,C,T,I,O,N,$,X){Sr(Jt(ne(),s,a,l,d,f,m,v,b,C,T,I,O,N,$,X))}function ss(s,a,l,d,f,m,v,b,C,T,I,O,N,$,X,le,pe){Sr(Ri(ne(),s,a,l,d,f,m,v,b,C,T,I,O,N,$,X,le,pe))}function wb(s){Sr(dl(ne(),s))}function rc(s,a,l,d,f){return Ji(s,hl(ne(),a,l,d),f,!1),rc}function bg(s,a,l,d,f,m,v){return Ji(s,fl(ne(),a,l,d,f,m),v,!1),bg}function oc(s,a,l,d,f,m,v,b,C){return Ji(s,Si(ne(),a,l,d,f,m,v,b),C,!1),oc}function Uh(s,a,l,d,f,m,v,b,C,T,I){return Ji(s,pl(ne(),a,l,d,f,m,v,b,C,T),I,!1),Uh}function wg(s,a,l,d,f,m,v,b,C,T,I,O,N){return Ji(s,Fi(ne(),a,l,d,f,m,v,b,C,T,I,O),N,!1),wg}function Dl(s,a,l,d,f,m,v,b,C,T,I,O,N,$,X){return Ji(s,Ks(ne(),a,l,d,f,m,v,b,C,T,I,O,N,$),X,!1),Dl}function Cg(s,a,l,d,f,m,v,b,C,T,I,O,N,$,X,le,pe){return Ji(s,Jt(ne(),a,l,d,f,m,v,b,C,T,I,O,N,$,X,le),pe,!1),Cg}function Hh(s,a,l,d,f,m,v,b,C,T,I,O,N,$,X,le,pe,be,Me){return Ji(s,Ri(ne(),a,l,d,f,m,v,b,C,T,I,O,N,$,X,le,pe,be),Me,!1),Hh}function Dg(s,a,l){return Ji(s,dl(ne(),a),l,!1),Dg}function So(s,a,l){const d=ne();return Rn(d,ro(),a)&&Wn(ut(),Ct(),d,s,a,d[je],l,!0),So}function ea(s,a,l){const d=ne();if(Rn(d,ro(),a)){const m=ut(),v=Ct();Wn(m,v,d,s,a,yS(Ls(m.data),v,d),l,!0)}return ea}const ta=void 0;var $S=["en",[["a","p"],["AM","PM"],ta],[["AM","PM"],ta,ta],[["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"]],ta,[["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"]],ta,[["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}",ta,"{1} 'at' {0}",ta],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Cb(s){const l=Math.floor(Math.abs(s)),d=s.toString().replace(/^[^.]*\.?/,"").length;return 1===l&&0===d?1:5}];let sc={};function Sg(s,a,l){"string"!=typeof a&&(l=a,a=s[Ae.LocaleId]),a=a.toLowerCase().replace(/_/g,"-"),sc[a]=s,l&&(sc[a][Ae.ExtraData]=l)}function na(s){const a=function WS(s){return s.toLowerCase().replace(/_/g,"-")}(s);let l=as(a);if(l)return l;const d=a.split("-")[0];if(l=as(d),l)return l;if("en"===d)return $S;throw new Se(701,!1)}function Db(s){return na(s)[Ae.CurrencyCode]||null}function Eg(s){return na(s)[Ae.PluralCase]}function as(s){return s in sc||(sc[s]=Lt.ng&&Lt.ng.common&&Lt.ng.common.locales&&Lt.ng.common.locales[s]),sc[s]}function GS(){sc={}}var Ae=(()=>((Ae=Ae||{})[Ae.LocaleId=0]="LocaleId",Ae[Ae.DayPeriodsFormat=1]="DayPeriodsFormat",Ae[Ae.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ae[Ae.DaysFormat=3]="DaysFormat",Ae[Ae.DaysStandalone=4]="DaysStandalone",Ae[Ae.MonthsFormat=5]="MonthsFormat",Ae[Ae.MonthsStandalone=6]="MonthsStandalone",Ae[Ae.Eras=7]="Eras",Ae[Ae.FirstDayOfWeek=8]="FirstDayOfWeek",Ae[Ae.WeekendRange=9]="WeekendRange",Ae[Ae.DateFormat=10]="DateFormat",Ae[Ae.TimeFormat=11]="TimeFormat",Ae[Ae.DateTimeFormat=12]="DateTimeFormat",Ae[Ae.NumberSymbols=13]="NumberSymbols",Ae[Ae.NumberFormats=14]="NumberFormats",Ae[Ae.CurrencyCode=15]="CurrencyCode",Ae[Ae.CurrencySymbol=16]="CurrencySymbol",Ae[Ae.CurrencyName=17]="CurrencyName",Ae[Ae.Currencies=18]="Currencies",Ae[Ae.Directionality=19]="Directionality",Ae[Ae.PluralCase=20]="PluralCase",Ae[Ae.ExtraData=21]="ExtraData",Ae))();const Sb=["zero","one","two","few","many"],ia="en-US",ac={marker:"element"},zh={marker:"ICU"};var Wt=(()=>((Wt=Wt||{})[Wt.SHIFT=2]="SHIFT",Wt[Wt.APPEND_EAGERLY=1]="APPEND_EAGERLY",Wt[Wt.COMMENT=2]="COMMENT",Wt))();let xg=ia;function Mg(s){(function Cn(s,a){null==s&&We(a,s,null,"!=")})(s,"Expected localeId to be defined"),"string"==typeof s&&(xg=s.toLowerCase().replace(/_/g,"-"))}function Tb(s,a,l){const d=a.insertBeforeIndex,f=Array.isArray(d)?d[0]:d;return null===f?Fv(s,0,l):Ht(l[f])}function Ig(s,a,l,d,f){const m=a.insertBeforeIndex;if(Array.isArray(m)){let v=d,b=null;if(3&a.type||(b=v,v=f),null!==v&&-1===a.componentOffset)for(let C=1;C1)for(let l=s.length-2;l>=0;l--){const d=s[l];YS(d)||gM(d,a)&&null===xb(d)&&Pg(d,a.index)}}function YS(s){return!(64&s.type)}function gM(s,a){return YS(a)||s.index>a.index}function xb(s){const a=s.insertBeforeIndex;return Array.isArray(a)?a[0]:a}function Pg(s,a){const l=s.insertBeforeIndex;Array.isArray(l)?l[0]=a:(Nv(Tb,Ig),s.insertBeforeIndex=a)}function Sl(s,a){const l=s.data[a];return null===l||"string"==typeof l?null:l.hasOwnProperty("currentCaseLViewIndex")?l:l.value}function QS(s,a,l){const d=ih(s,l,64,null,null);return qS(a,d),d}function Lg(s,a){const l=a[s.currentCaseLViewIndex];return null===l?l:l<0?~l:l}function El(s){return s>>>17}function KS(s){return(131070&s)>>>1}let Bn=0,lc=0;function Ib(s,a,l,d){const f=l[je];let v,m=null;for(let b=0;b>>1,l),null,null,$,X,null)}else switch(C){case zh:const T=a[++b],I=a[++b];null===l[I]&&Fn(l[I]=uD(f,T),l);break;case ac:const O=a[++b],N=a[++b];null===l[N]&&Fn(l[N]=vr(f,O,null),l)}}}function $h(s,a,l,d,f){for(let m=0;m>>2;switch(3&I){case 1:const N=l[++T],$=l[++T],X=s.data[O];"string"==typeof X?Qs(a[je],a[O],null,X,N,C,$):Wn(s,X,a,N,C,a[je],$,!1);break;case 0:const le=a[O];null!==le&&Lv(a[je],le,C);break;case 2:tE(s,Sl(s,O),a,C);break;case 3:Pb(s,Sl(s,O),d,a)}}}}else{const C=l[m+1];if(C>0&&3==(3&C)){const I=Sl(s,C>>>2);a[I.currentCaseLViewIndex]<0&&Pb(s,I,d,a)}}m+=b}}function Pb(s,a,l,d){let f=d[a.currentCaseLViewIndex];if(null!==f){let m=Bn;f<0&&(f=d[a.currentCaseLViewIndex]=~f,m=-1),$h(s,d,a.update[f],l,m)}}function tE(s,a,l,d){const f=function nE(s,a){let l=s.cases.indexOf(a);if(-1===l)switch(s.type){case 1:{const d=function ZS(s,a){const l=Eg(a)(parseInt(s,10)),d=Sb[l];return void 0!==d?d:"other"}(a,function Eb(){return xg}());l=s.cases.indexOf(d),-1===l&&"other"!==d&&(l=s.cases.indexOf("other"));break}case 0:l=s.cases.indexOf("other")}return-1===l?null:l}(a,d);if(Lg(a,l)!==f&&(Lb(s,a,l),l[a.currentCaseLViewIndex]=null===f?null:~f,null!==f)){const v=l[a.anchorIdx];v&&Ib(s,a.create[f],l,v)}}function Lb(s,a,l){let d=Lg(a,l);if(null!==d){const f=a.remove[d];for(let m=0;m0){const b=xs(v,l);null!==b&&nm(l[je],b)}else Lb(s,Sl(s,~v),l)}}}function iE(){const s=[];let l,d,a=-1;function m(b,C){a=0;const T=Lg(b,C);d=null!==T?b.remove[T]:nt}function v(){if(a0?l[b]:(s.push(a,d),m(l[ge].data[~b],l),v())}return 0===s.length?null:(d=s.pop(),a=s.pop(),v())}return function f(b,C){for(l=C;s.length;)s.pop();return m(b.value,C),v}}const Wh=/\ufffd(\d+):?\d*\ufffd/gi,rE=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,oE=/\ufffd(\d+)\ufffd/,Ob=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,uc="\ufffd",sE=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,aE=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,lE=/\uE500/g;function kb(s,a,l,d,f,m,v){const b=ul(s,d,1,null);let C=b<l.length&&l.push(C)}return{type:d,mainBinding:f,cases:a,values:l}}function Ag(s){if(!s)return[];let a=0;const l=[],d=[],f=/[{}]/g;let m;for(f.lastIndex=0;m=f.exec(s);){const b=m.index;if("}"==m[0]){if(l.pop(),0==l.length){const C=s.substring(a,b);Ob.test(C)?d.push(mE(C)):d.push(C),a=b+1}}else{if(0==l.length){const C=s.substring(a,b);d.push(C),a=b+1}l.push("{")}}const v=s.substring(a);return d.push(v),d}function gE(s,a,l,d,f,m,v,b){const C=[],T=[],I=[];a.cases.push(m),a.create.push(C),a.remove.push(T),a.update.push(I);const N=Nd(wD()).getInertBodyElement(v),$=jd(N)||N;return $?Bb(s,a,l,d,C,T,I,$,f,b,0):0}function Bb(s,a,l,d,f,m,v,b,C,T,I){let O=0,N=b.firstChild;for(;N;){const $=ul(s,l,1,null);switch(N.nodeType){case Node.ELEMENT_NODE:const X=N,le=X.tagName.toLowerCase();if(Ga.hasOwnProperty(le)){Zn(f,ac,le,C,$),s.data[$]=le;const oe=X.attributes;for(let $e=0;$e>>Wt.SHIFT;let O=s[I];null===O&&(O=s[I]=(v&Wt.COMMENT)===Wt.COMMENT?f.createComment(b):Qp(f,b)),T&&null!==l&&Bs(f,l,O,d,!1)}})(f,C.create,I,b&&8&b.type?f[b.index]:null),La(!0)}function Og(){La(!1)}function Ub(s,a,l){Zh(s,a,l),Og()}function Hb(s,a){const l=ut(),d=to(l.consts,a);!function dE(s,a,l){const f=En().index,m=[];if(s.firstCreatePass&&null===s.data[a]){for(let v=0;v0){const d=s.data[l];$h(s,a,Array.isArray(d)?d:d.update,vi()-lc-1,Bn)}Bn=0,lc=0}(ut(),ne(),s+Et)}function Fg(s,a={}){return function SE(s,a={}){let l=s;if(si.test(s)){const d={},f=[hc];l=l.replace(bE,(m,v,b)=>{const C=v||b,T=d[C]||[];if(T.length||(C.split("|").forEach(le=>{const pe=le.match(DE),be=pe?parseInt(pe[1],10):hc,Me=jb.test(le);T.push([be,Me,le])}),d[C]=T),!T.length)throw new Error(`i18n postprocess: unmatched placeholder - ${C}`);const I=f[f.length-1];let O=0;for(let le=0;lea.hasOwnProperty(m)?`${f}${a[m]}${C}`:d),l=l.replace(CE,(d,f)=>a.hasOwnProperty(f)?a[f]:d),l=l.replace(Vb,(d,f)=>{if(a.hasOwnProperty(f)){const m=a[f];if(!m.length)throw new Error(`i18n postprocess: unmatched ICU - ${d} with key: ${f}`);return m.shift()}return d})),l}(s,a)}function Yh(s,a,l,d,f){if(s=te(s),Array.isArray(s))for(let m=0;m>20;if(Gs(s)||!s.multi){const $=new Go(C,f,al),X=Ng(b,a,f?I:I+N,O);-1===X?(Na(lo(T,v),m,b),fc(m,s,a.length),a.push(b),T.directiveStart++,T.directiveEnd++,f&&(T.providerIndexes+=1048576),l.push($),v.push($)):(l[X]=$,v[X]=$)}else{const $=Ng(b,a,I+N,O),X=Ng(b,a,I,I+N),pe=X>=0&&l[X];if(f&&!pe||!f&&!($>=0&&l[$])){Na(lo(T,v),m,b);const be=function Vg(s,a,l,d,f){const m=new Go(s,l,al);return m.multi=[],m.index=a,m.componentProviders=0,Rg(m,f,d&&!l),m}(f?EE:Bg,l.length,f,d,C);!f&&pe&&(l[X].providerFactory=be),fc(m,s,a.length,0),a.push(b),T.directiveStart++,T.directiveEnd++,f&&(T.providerIndexes+=1048576),l.push(be),v.push(be)}else fc(m,s,$>-1?$:X,Rg(l[f?X:$],C,!f&&d));!f&&d&&pe&&l[X].componentProviders++}}}function fc(s,a,l,d){const f=Gs(a),m=function AD(s){return!!s.useClass}(a);if(f||m){const C=(m?te(a.useClass):a).prototype.ngOnDestroy;if(C){const T=s.destroyHooks||(s.destroyHooks=[]);if(!f&&a.multi){const I=T.indexOf(l);-1===I?T.push(l,[d,C]):T[I+1].push(d,C)}else T.push(l,C)}}}function Rg(s,a,l){return l&&s.componentProviders++,s.multi.push(a)-1}function Ng(s,a,l,d){for(let f=l;f{l.providersResolver=(d,f)=>function qh(s,a,l){const d=ut();if(d.firstCreatePass){const f=_n(s);Yh(l,d.data,d.blueprint,f,!0),Yh(a,d.data,d.blueprint,f,!1)}}(d,f?f(s):s,a)}}class ls{}class Qh{}function $b(s,a){return new Ug(s,a??null)}const Gb=$b;class Ug extends ls{constructor(a,l){super(),this._parent=l,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new jy(this);const d=He(a);this._bootstrapComponents=Ur(d.bootstrap),this._r3Injector=gy(a,l,[{provide:ls,useValue:this},{provide:Ja,useValue:this.componentFactoryResolver}],Y(a),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(a)}get injector(){return this._r3Injector}destroy(){const a=this._r3Injector;!a.destroyed&&a.destroy(),this.destroyCbs.forEach(l=>l()),this.destroyCbs=null}onDestroy(a){this.destroyCbs.push(a)}}class Kh extends Qh{constructor(a){super(),this.moduleType=a}create(a){return new Ug(this.moduleType,a)}}class TE extends ls{constructor(a,l,d){super(),this.componentFactoryResolver=new jy(this),this.instance=null;const f=new Jv([...a,{provide:ls,useValue:this},{provide:Ja,useValue:this.componentFactoryResolver}],l||Gd(),d,new Set(["environment"]));this.injector=f,f.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(a){this.injector.onDestroy(a)}}function Jh(s,a,l=null){return new TE(s,a,l).injector}let xE=(()=>{class s{constructor(l){this._injector=l,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(l){if(!l.standalone)return null;if(!this.cachedInjectors.has(l.id)){const d=Ya(0,l.type),f=d.length>0?Jh([d],this._injector,`Standalone[${l.type.name}]`):null;this.cachedInjectors.set(l.id,f)}return this.cachedInjectors.get(l.id)}ngOnDestroy(){try{for(const l of this.cachedInjectors.values())null!==l&&l.destroy()}finally{this.cachedInjectors.clear()}}}return s.\u0275prov=Dn({token:s,providedIn:"environment",factory:()=>new s(Rt(Ws))}),s})();function ht(s){s.getStandaloneInjector=a=>a.get(xE).getOrCreateStandaloneInjector(s)}function Ml(s){const a=ri(s);if(null===a)return null;if(void 0===a.component){const l=a.lView;if(null===l)return null;a.component=function aD(s,a){const l=a[ge].data[s],{directiveStart:d,componentOffset:f}=l;return f>-1?a[d+f]:null}(a.nodeIndex,l)}return a.component}function Wb(s){!function PE(s){if(typeof Element<"u"&&!(s instanceof Element))throw new Error("Expecting instance of DOM Element")}(s);const a=ri(s),l=a?a.lView:null;return null===l?null:l[St]}function Hg(s){const a=ri(s);let d,l=a?a.lView:null;if(null===l)return null;for(;2===l[ge].type&&(d=Pi(l));)l=d;return 256&l[re]?null:l[St]}function Zb(s){const a=Iv(s);return null!==a?[lD(a)]:[]}function qb(s){const a=ri(s),l=a?a.lView:null;return null===l?ns.NULL:new ks(l[ge].data[a.nodeIndex],l)}function Yb(s){if(s instanceof Text)return[];const a=ri(s),l=a?a.lView:null;if(null===l)return[];const f=a.nodeIndex;return l[ge]?.data[f]?(void 0===a.directives&&(a.directives=Wp(f,l)),null===a.directives?[]:[...a.directives]):[]}function ME(s){const{constructor:a}=s;if(!a)throw new Error("Unable to find the instance constructor");const l=at(a);if(l)return{inputs:l.inputs,outputs:l.outputs,encapsulation:l.encapsulation,changeDetection:l.onPush?Xn.OnPush:Xn.Default};const d=Sn(a);return d?{inputs:d.inputs,outputs:d.outputs}:null}function Gg(s){return ri(s).native}function Zg(s){const a=ri(s),l=null===a?null:a.lView;if(null===l)return[];const f=l[Jr],m=l[ge].cleanup,v=[];if(m&&f)for(let b=0;b=0?"dom":"output"})}}return v.sort(IE),v}function IE(s,a){return s.name==a.name?0:s.name{const f=s;null!==a&&(f.hasOwnProperty("decorators")&&void 0!==f.decorators?f.decorators.push(...a):f.decorators=a),null!==l&&(f.ctorParameters=l),null!==d&&(f.propDecorators=f.hasOwnProperty("propDecorators")&&void 0!==f.propDecorators?{...f.propDecorators,...d}:d)})}function Kb(s,a,l){const d=vn()+s,f=ne();return f[d]===Ne?Gr(f,d,l?a.call(l):a()):is(f,d)}function Jb(s,a,l,d){return ew(ne(),vn(),s,a,l,d)}function LE(s,a,l,d,f){return tw(ne(),vn(),s,a,l,d,f)}function AE(s,a,l,d,f,m){return NE(ne(),vn(),s,a,l,d,f,m)}function OE(s,a,l,d,f,m,v){return Xt(ne(),vn(),s,a,l,d,f,m,v)}function kE(s,a,l,d,f,m,v,b){const C=vn()+s,T=ne(),I=Qi(T,C,l,d,f,m);return Rn(T,C+4,v)||I?Gr(T,C+5,b?a.call(b,l,d,f,m,v):a(l,d,f,m,v)):is(T,C+5)}function FE(s,a,l,d,f,m,v,b,C){const T=vn()+s,I=ne(),O=Qi(I,T,l,d,f,m);return ki(I,T+4,v,b)||O?Gr(I,T+6,C?a.call(C,l,d,f,m,v,b):a(l,d,f,m,v,b)):is(I,T+6)}function Xb(s,a,l,d,f,m,v,b,C,T){const I=vn()+s,O=ne();let N=Qi(O,I,l,d,f,m);return Mn(O,I+4,v,b,C)||N?Gr(O,I+7,T?a.call(T,l,d,f,m,v,b,C):a(l,d,f,m,v,b,C)):is(O,I+7)}function RE(s,a,l,d,f,m,v,b,C,T,I){const O=vn()+s,N=ne(),$=Qi(N,O,l,d,f,m);return Qi(N,O+4,v,b,C,T)||$?Gr(N,O+8,I?a.call(I,l,d,f,m,v,b,C,T):a(l,d,f,m,v,b,C,T)):is(N,O+8)}function qg(s,a,l,d){return Tr(ne(),vn(),s,a,l,d)}function Xh(s,a){const l=s[a];return l===Ne?void 0:l}function ew(s,a,l,d,f,m){const v=a+l;return Rn(s,v,f)?Gr(s,v+1,m?d.call(m,f):d(f)):Xh(s,v+1)}function tw(s,a,l,d,f,m,v){const b=a+l;return ki(s,b,f,m)?Gr(s,b+2,v?d.call(v,f,m):d(f,m)):Xh(s,b+2)}function NE(s,a,l,d,f,m,v,b){const C=a+l;return Mn(s,C,f,m,v)?Gr(s,C+3,b?d.call(b,f,m,v):d(f,m,v)):Xh(s,C+3)}function Xt(s,a,l,d,f,m,v,b,C){const T=a+l;return Qi(s,T,f,m,v,b)?Gr(s,T+4,C?d.call(C,f,m,v,b):d(f,m,v,b)):Xh(s,T+4)}function Tr(s,a,l,d,f,m){let v=a+l,b=!1;for(let C=0;C=0;l--){const d=a[l];if(s===d.name)return d}}(a,l.pipeRegistry),l.data[f]=d,d.onDestroy&&(l.destroyHooks??(l.destroyHooks=[])).push(f,d.onDestroy)):d=l.data[f];const m=d.factory||(d.factory=Fr(d.type)),v=De(al);try{const b=fe(!1),C=m();return fe(b),qm(l,ne(),f,C),C}finally{De(v)}}function Yg(s,a,l){const d=s+Et,f=ne(),m=jo(f,d);return Il(f,d)?ew(f,vn(),a,m.transform,l,m):m.transform(l)}function qt(s,a,l,d){const f=s+Et,m=ne(),v=jo(m,f);return Il(m,f)?tw(m,vn(),a,v.transform,l,d,v):v.transform(l,d)}function pc(s,a,l,d,f){const m=s+Et,v=ne(),b=jo(v,m);return Il(v,m)?NE(v,vn(),a,b.transform,l,d,f,b):b.transform(l,d,f)}function ef(s,a,l,d,f,m){const v=s+Et,b=ne(),C=jo(b,v);return Il(b,v)?Xt(b,vn(),a,C.transform,l,d,f,m,C):C.transform(l,d,f,m)}function Qg(s,a,l){const d=s+Et,f=ne(),m=jo(f,d);return Il(f,d)?Tr(f,vn(),a,m.transform,l,m):m.transform.apply(m,l)}function Il(s,a){return s[ge].data[a].pure}function Kg(s){return a=>{setTimeout(s,void 0,a)}}const xr=class tf extends ue.xQ{constructor(a=!1){super(),this.__isAsync=a}emit(a){super.next(a)}subscribe(a,l,d){let f=a,m=l||(()=>null),v=d;if(a&&"object"==typeof a){const C=a;f=C.next?.bind(C),m=C.error?.bind(C),v=C.complete?.bind(C)}this.__isAsync&&(m=Kg(m),f&&(f=Kg(f)),v&&(v=Kg(v)));const b=super.subscribe({next:f,error:m,complete:v});return a instanceof i.w&&a.add(b),b}};function BE(){return this._results[Symbol.iterator]()}class nf{get changes(){return this._changes||(this._changes=new xr)}constructor(a=!1){this._emitDistinctChangesOnly=a,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const l=nf.prototype;l[Symbol.iterator]||(l[Symbol.iterator]=BE)}get(a){return this._results[a]}map(a){return this._results.map(a)}filter(a){return this._results.filter(a)}find(a){return this._results.find(a)}reduce(a,l){return this._results.reduce(a,l)}forEach(a){this._results.forEach(a)}some(a){return this._results.some(a)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(a,l){const d=this;d.dirty=!1;const f=fr(a);(this._changesDetected=!function jx(s,a,l){if(s.length!==a.length)return!1;for(let d=0;d{class s{}return s.__NG_ELEMENT_ID__=Jg,s})();const VE=ra,jE=class extends VE{constructor(a,l,d){super(),this._declarationLView=a,this._declarationTContainer=l,this.elementRef=d}createEmbeddedView(a,l){const d=this._declarationTContainer.tView,f=zu(this._declarationLView,d,a,16,null,d.declTNode,null,null,null,null,l||null);f[Bo]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[_i];return null!==v&&(f[_i]=v.createEmbeddedView(d)),My(d,f,a),new cl(f)}};function Jg(){return rf(En(),ne())}function rf(s,a){return 4&s.type?new jE(a,s,yo(s,a)):null}let oa=(()=>{class s{}return s.__NG_ELEMENT_ID__=nw,s})();function nw(){return us(En(),ne())}const UE=oa,Xg=class extends UE{constructor(a,l,d){super(),this._lContainer=a,this._hostTNode=l,this._hostLView=d}get element(){return yo(this._hostTNode,this._hostLView)}get injector(){return new ks(this._hostTNode,this._hostLView)}get parentInjector(){const a=hu(this._hostTNode,this._hostLView);if(P(a)){const l=Z(a,this._hostLView),d=R(a);return new ks(l[ge].data[d+8],l)}return new ks(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(a){const l=Pl(this._lContainer);return null!==l&&l[a]||null}get length(){return this._lContainer.length-pn}createEmbeddedView(a,l,d){let f,m;"number"==typeof d?f=d:null!=d&&(f=d.index,m=d.injector);const v=a.createEmbeddedView(l||{},m);return this.insert(v,f),v}createComponent(a,l,d,f,m){const v=a&&!vd(a);let b;if(v)b=l;else{const O=l||{};b=O.index,d=O.injector,f=O.projectableNodes,m=O.environmentInjector||O.ngModuleRef}const C=v?a:new $r(at(a)),T=d||this.parentInjector;if(!m&&null==C.ngModule){const N=(v?T:this.parentInjector).get(Ws,null);N&&(m=N)}const I=C.create(T,f,void 0,m);return this.insert(I.hostView,b),I}insert(a,l){const d=a._lView,f=d[ge];if(function Tp(s){return gn(s[qe])}(d)){const I=this.indexOf(a);if(-1!==I)this.detach(I);else{const O=d[qe],N=new Xg(O,O[wt],O[qe]);N.detach(N.indexOf(a))}}const m=this._adjustIndex(l),v=this._lContainer;!function hD(s,a,l,d){const f=pn+d,m=l.length;d>0&&(l[f-1][ti]=a),d0)d.push(v[b/2]);else{const T=m[b+1],I=a[-C];for(let O=pn;O({\u0275\u0275attribute:Dr,\u0275\u0275attributeInterpolate1:Gm,\u0275\u0275attributeInterpolate2:Qy,\u0275\u0275attributeInterpolate3:mh,\u0275\u0275attributeInterpolate4:gh,\u0275\u0275attributeInterpolate5:_h,\u0275\u0275attributeInterpolate6:vh,\u0275\u0275attributeInterpolate7:yh,\u0275\u0275attributeInterpolate8:bh,\u0275\u0275attributeInterpolateV:wh,\u0275\u0275defineComponent:Yl,\u0275\u0275defineDirective:Sa,\u0275\u0275defineInjectable:Dn,\u0275\u0275defineInjector:gs,\u0275\u0275defineNgModule:Ql,\u0275\u0275definePipe:ws,\u0275\u0275directiveInject:al,\u0275\u0275getInheritedFactory:Op,\u0275\u0275inject:Rt,\u0275\u0275injectAttribute:Fp,\u0275\u0275invalidFactory:Ty,\u0275\u0275invalidFactoryDep:Oo,\u0275\u0275templateRefExtractor:cf,\u0275\u0275resetView:Ma,\u0275\u0275HostDirectivesFeature:Zy,\u0275\u0275NgOnChangesFeature:ur,\u0275\u0275ProvidersFeature:jg,\u0275\u0275CopyDefinitionFeature:LS,\u0275\u0275InheritDefinitionFeature:hh,\u0275\u0275StandaloneFeature:ht,\u0275\u0275nextContext:In,\u0275\u0275namespaceHTML:Lp,\u0275\u0275namespaceMathML:cd,\u0275\u0275namespaceSVG:ud,\u0275\u0275enableBindings:Is,\u0275\u0275disableBindings:nd,\u0275\u0275elementStart:qu,\u0275\u0275elementEnd:ml,\u0275\u0275element:Sh,\u0275\u0275elementContainerStart:Yu,\u0275\u0275elementContainerEnd:Qu,\u0275\u0275elementContainer:Eh,\u0275\u0275pureFunction0:Kb,\u0275\u0275pureFunction1:Jb,\u0275\u0275pureFunction2:LE,\u0275\u0275pureFunction3:AE,\u0275\u0275pureFunction4:OE,\u0275\u0275pureFunction5:kE,\u0275\u0275pureFunction6:FE,\u0275\u0275pureFunction7:Xb,\u0275\u0275pureFunction8:RE,\u0275\u0275pureFunctionV:qg,\u0275\u0275getCurrentView:Th,\u0275\u0275restoreView:dr,\u0275\u0275listener:xh,\u0275\u0275projection:Ju,\u0275\u0275syntheticHostProperty:ea,\u0275\u0275syntheticHostListener:Nn,\u0275\u0275pipeBind1:Yg,\u0275\u0275pipeBind2:qt,\u0275\u0275pipeBind3:pc,\u0275\u0275pipeBind4:ef,\u0275\u0275pipeBindV:Qg,\u0275\u0275projectionDef:Mh,\u0275\u0275hostProperty:So,\u0275\u0275property:Dh,\u0275\u0275propertyInterpolate:tg,\u0275\u0275propertyInterpolate1:_l,\u0275\u0275propertyInterpolate2:ng,\u0275\u0275propertyInterpolate3:Jy,\u0275\u0275propertyInterpolate4:Xy,\u0275\u0275propertyInterpolate5:eb,\u0275\u0275propertyInterpolate6:tb,\u0275\u0275propertyInterpolate7:nb,\u0275\u0275propertyInterpolate8:ib,\u0275\u0275propertyInterpolateV:rb,\u0275\u0275pipe:en,\u0275\u0275queryRefresh:mc,\u0275\u0275viewQuery:i_,\u0275\u0275loadQuery:sa,\u0275\u0275contentQuery:ow,\u0275\u0275reference:Ym,\u0275\u0275classMap:ag,\u0275\u0275classMapInterpolate1:mg,\u0275\u0275classMapInterpolate2:Xi,\u0275\u0275classMapInterpolate3:Vh,\u0275\u0275classMapInterpolate4:mb,\u0275\u0275classMapInterpolate5:gg,\u0275\u0275classMapInterpolate6:gb,\u0275\u0275classMapInterpolate7:zS,\u0275\u0275classMapInterpolate8:_g,\u0275\u0275classMapInterpolateV:_b,\u0275\u0275styleMap:Sr,\u0275\u0275styleMapInterpolate1:vg,\u0275\u0275styleMapInterpolate2:vb,\u0275\u0275styleMapInterpolate3:yg,\u0275\u0275styleMapInterpolate4:jh,\u0275\u0275styleMapInterpolate5:yb,\u0275\u0275styleMapInterpolate6:Do,\u0275\u0275styleMapInterpolate7:bb,\u0275\u0275styleMapInterpolate8:ss,\u0275\u0275styleMapInterpolateV:wb,\u0275\u0275styleProp:nc,\u0275\u0275stylePropInterpolate1:rc,\u0275\u0275stylePropInterpolate2:bg,\u0275\u0275stylePropInterpolate3:oc,\u0275\u0275stylePropInterpolate4:Uh,\u0275\u0275stylePropInterpolate5:wg,\u0275\u0275stylePropInterpolate6:Dl,\u0275\u0275stylePropInterpolate7:Cg,\u0275\u0275stylePropInterpolate8:Hh,\u0275\u0275stylePropInterpolateV:Dg,\u0275\u0275classProp:yl,\u0275\u0275advance:dy,\u0275\u0275template:Zm,\u0275\u0275text:Xs,\u0275\u0275textInterpolate:ic,\u0275\u0275textInterpolate1:Rh,\u0275\u0275textInterpolate2:Nh,\u0275\u0275textInterpolate3:db,\u0275\u0275textInterpolate4:hb,\u0275\u0275textInterpolate5:fb,\u0275\u0275textInterpolate6:pb,\u0275\u0275textInterpolate7:fg,\u0275\u0275textInterpolate8:Bh,\u0275\u0275textInterpolateV:pg,\u0275\u0275i18n:Ub,\u0275\u0275i18nAttributes:Hb,\u0275\u0275i18nExp:kg,\u0275\u0275i18nStart:Zh,\u0275\u0275i18nEnd:Og,\u0275\u0275i18nApply:zb,\u0275\u0275i18nPostprocess:Fg,\u0275\u0275resolveWindow:qs,\u0275\u0275resolveDocument:sy,\u0275\u0275resolveBody:ay,\u0275\u0275setComponentScope:Gc,\u0275\u0275setNgModuleScope:Wc,\u0275\u0275registerNgModuleType:Ed,\u0275\u0275sanitizeHtml:Za,\u0275\u0275sanitizeStyle:qa,\u0275\u0275sanitizeResourceUrl:Ud,\u0275\u0275sanitizeScript:pm,\u0275\u0275sanitizeUrl:Xo,\u0275\u0275sanitizeUrlOrResourceUrl:Zv,\u0275\u0275trustConstantHtml:mm,\u0275\u0275trustConstantResourceUrl:Hs,\u0275\u0275validateIframeAttribute:lm,forwardRef:_e,resolveForwardRef:te}))();let Al=null;function df(){Al=null}function Ol(s){return!!He(s)}const gc=[];let s_=!1;function cw(){if(!s_){s_=!0;try{for(let s=gc.length-1;s>=0;s--){const{moduleType:a,ngModule:l}=gc[s];l.declarations&&l.declarations.every(hf)&&(gc.splice(s,1),YE(a,l))}}finally{s_=!1}}}function hf(s){return Array.isArray(s)?s.every(hf):!!te(s)}function dw(s,a={}){hw(s,a),void 0!==a.id&&Ed(s,a.id),function uw(s,a){gc.push({moduleType:s,ngModule:a})}(s,a)}function hw(s,a,l=!1){const d=fr(a.declarations||nt);let f=null;Object.defineProperty(s,Ca,{configurable:!0,get:()=>(null===f&&(f=xn().compileNgModule(ai,`ng:///${s.name}/\u0275mod.js`,{type:s,bootstrap:fr(a.bootstrap||nt).map(te),declarations:d.map(te),imports:fr(a.imports||nt).map(te).map(fw),exports:fr(a.exports||nt).map(te).map(fw),schemas:a.schemas?fr(a.schemas):null,id:a.id||null}),f.schemas||(f.schemas=[])),f)});let m=null;Object.defineProperty(s,sr,{get:()=>{if(null===m){const b=xn();m=b.compileFactory(ai,`ng:///${s.name}/\u0275fac.js`,{name:s.name,type:s,deps:Dd(s),target:b.FactoryTarget.NgModule,typeArgumentCount:0})}return m},configurable:!1});let v=null;Object.defineProperty(s,_a,{get:()=>{if(null===v){const b={name:s.name,type:s,providers:a.providers||nt,imports:[(a.imports||nt).map(te),(a.exports||nt).map(te)]};v=xn().compileInjector(ai,`ng:///${s.name}/\u0275inj.js`,b)}return v},configurable:!1})}let ff=new WeakMap,kl=new WeakMap;function qE(){ff=new WeakMap,kl=new WeakMap,gc.length=0}function YE(s,a){const l=fr(a.declarations||nt),d=To(s);l.forEach(f=>{(f=te(f)).hasOwnProperty(Fo)?d_(at(f),d):!f.hasOwnProperty(or)&&!f.hasOwnProperty(Kr)&&(f.ngSelectorScope=s)})}function d_(s,a){s.directiveDefs=()=>Array.from(a.compilation.directives).map(l=>l.hasOwnProperty(Fo)?at(l):Sn(l)).filter(l=>!!l),s.pipeDefs=()=>Array.from(a.compilation.pipes).map(l=>An(l)),s.schemas=a.schemas,s.tView=null}function To(s){if(Ol(s))return function QE(s){const a=He(s,!0);if(null!==a.transitiveCompileScopes)return a.transitiveCompileScopes;const l={schemas:a.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Ur(a.imports).forEach(d=>{const f=To(d);f.exported.directives.forEach(m=>l.compilation.directives.add(m)),f.exported.pipes.forEach(m=>l.compilation.pipes.add(m))}),Ur(a.declarations).forEach(d=>{An(d)?l.compilation.pipes.add(d):l.compilation.directives.add(d)}),Ur(a.exports).forEach(d=>{const f=d;if(Ol(f)){const m=To(f);m.exported.directives.forEach(v=>{l.compilation.directives.add(v),l.exported.directives.add(v)}),m.exported.pipes.forEach(v=>{l.compilation.pipes.add(v),l.exported.pipes.add(v)})}else An(f)?l.exported.pipes.add(f):l.exported.directives.add(f)}),a.transitiveCompileScopes=l,l}(s);if(pi(s)){if(null!==(at(s)||Sn(s)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([s]),pipes:new Set}};if(null!==An(s))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([s])}}}throw new Error(`${s.name} does not have a module def (\u0275mod property)`)}function fw(s){return function lw(s){return void 0!==s.ngModule}(s)?s.ngModule:s}let vc=0;function pw(s,a){let l=null;(function X0(s,a){jp(a)&&(ho.set(s,a),Cu.add(s))})(s,a),mw(s,a),Object.defineProperty(s,Fo,{get:()=>{if(null===l){const d=xn();if(jp(a)){const T=[`Component '${s.name}' is not resolved:`];throw a.templateUrl&&T.push(` - templateUrl: ${a.templateUrl}`),a.styleUrls&&a.styleUrls.length&&T.push(` - styleUrls: ${JSON.stringify(a.styleUrls)}`),T.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(T.join("\n"))}const f=function WE(){return Al}();let m=a.preserveWhitespaces;void 0===m&&(m=null!==f&&void 0!==f.preserveWhitespaces&&f.preserveWhitespaces);let v=a.encapsulation;void 0===v&&(v=null!==f&&void 0!==f.defaultEncapsulation?f.defaultEncapsulation:Ei.Emulated);const b=a.templateUrl||`ng:///${s.name}/template.html`,C={...gf(s,a),typeSourceSpan:d.createParseSourceSpan("Component",s.name,b),template:a.template||"",preserveWhitespaces:m,styles:a.styles||nt,animations:a.animations,declarations:[],changeDetection:a.changeDetection,encapsulation:v,interpolation:a.interpolation,viewProviders:a.viewProviders||null};vc++;try{if(C.usesInheritance&&gw(s),l=d.compileComponent(ai,b,C),a.standalone){const T=fr(a.imports||nt),{directiveDefs:I,pipeDefs:O}=function JE(s,a){let l=null,d=null;return{directiveDefs:()=>{if(null===l){l=[at(s)];const v=new Set;for(const b of a){const C=te(b);if(!v.has(C))if(v.add(C),He(C)){const T=To(C);for(const I of T.exported.directives){const O=at(I)||Sn(I);O&&!v.has(I)&&(v.add(I),l.push(O))}}else{const T=at(C)||Sn(C);T&&l.push(T)}}}return l},pipeDefs:()=>{if(null===d){d=[];const v=new Set;for(const b of a){const C=te(b);if(!v.has(C))if(v.add(C),He(C)){const T=To(C);for(const I of T.exported.pipes){const O=An(I);O&&!v.has(I)&&(v.add(I),d.push(O))}}else{const T=An(C);T&&d.push(T)}}}return d}}}(s,T);l.directiveDefs=I,l.pipeDefs=O,l.dependencies=()=>T.map(te)}}finally{vc--}if(0===vc&&cw(),function mf(s){return void 0!==s.ngSelectorScope}(s)){const T=To(s.ngSelectorScope);d_(l,T)}if(a.schemas){if(!a.standalone)throw new Error(`The 'schemas' was specified for the ${Ge(s)} but is only valid on a component that is standalone.`);l.schemas=a.schemas}else a.standalone&&(l.schemas=[])}return l},configurable:!1})}function h_(s,a){let l=null;mw(s,a||{}),Object.defineProperty(s,or,{get:()=>{if(null===l){const d=f_(s,a||{});l=xn().compileDirective(ai,d.sourceMapUrl,d.metadata)}return l},configurable:!1})}function f_(s,a){const l=s&&s.name,d=`ng:///${l}/\u0275dir.js`,f=xn(),m=gf(s,a);return m.typeSourceSpan=f.createParseSourceSpan("Directive",l,d),m.usesInheritance&&gw(s),{metadata:m,sourceMapUrl:d}}function mw(s,a){let l=null;Object.defineProperty(s,sr,{get:()=>{if(null===l){const d=f_(s,a),f=xn();l=f.compileFactory(ai,`ng:///${s.name}/\u0275fac.js`,{name:d.metadata.name,type:d.metadata.type,typeArgumentCount:0,deps:Dd(s),target:f.FactoryTarget.Directive})}return l},configurable:!1})}function XE(s){return Object.getPrototypeOf(s.prototype)===Object.prototype}function gf(s,a){const l=wu(),d=l.ownPropMetadata(s);return{name:s.name,type:s,selector:void 0!==a.selector?a.selector:null,host:a.host||ei,propMetadata:d,inputs:a.inputs||nt,outputs:a.outputs||nt,queries:_w(s,d,m_),lifecycle:{usesOnChanges:l.hasLifecycleHook(s,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!XE(s),exportAs:_f(a.exportAs),providers:a.providers||null,viewQueries:_w(s,d,vw),isStandalone:!!a.standalone,hostDirectives:a.hostDirectives?.map(f=>"function"==typeof f?{directive:f}:f)||null}}function gw(s){const a=Object.prototype;let l=Object.getPrototypeOf(s.prototype).constructor;for(;l&&l!==a;)!Sn(l)&&!at(l)&&t1(l)&&h_(l,null),l=Object.getPrototypeOf(l)}function e1(s){return"string"==typeof s?yw(s):te(s)}function p_(s,a){return{propertyName:s,predicate:e1(a.selector),descendants:a.descendants,first:a.first,read:a.read?a.read:null,static:!!a.static,emitDistinctChangesOnly:!!a.emitDistinctChangesOnly}}function _w(s,a,l){const d=[];for(const f in a)if(a.hasOwnProperty(f)){const m=a[f];m.forEach(v=>{if(l(v)){if(!v.selector)throw new Error(`Can't construct a query for the property "${f}" of "${Ge(s)}" since the query selector wasn't defined.`);if(m.some(yc))throw new Error("Cannot combine @Input decorators with query decorators");d.push(p_(f,v))}})}return d}function _f(s){return void 0===s?null:yw(s)}function m_(s){const a=s.ngMetadataName;return"ContentChild"===a||"ContentChildren"===a}function vw(s){const a=s.ngMetadataName;return"ViewChild"===a||"ViewChildren"===a}function yc(s){return"Input"===s.ngMetadataName}function yw(s){return s.split(",").map(a=>a.trim())}const bw=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function t1(s){const a=wu();if(bw.some(d=>a.hasLifecycleHook(s,d)))return!0;const l=a.propMetadata(s);for(const d in l){const f=l[d];for(let m=0;m{if(null===d){const f=vf(s,a),m=xn();d=m.compileFactory(ai,`ng:///${f.name}/\u0275fac.js`,{name:f.name,type:f.type,typeArgumentCount:0,deps:Dd(s),target:m.FactoryTarget.Pipe})}return d},configurable:!1}),Object.defineProperty(s,Kr,{get:()=>{if(null===l){const f=vf(s,a);l=xn().compilePipe(ai,`ng:///${f.name}/\u0275pipe.js`,f)}return l},configurable:!1})}function vf(s,a){return{type:s,name:s.name,pipeName:a.name,pure:void 0===a.pure||a.pure,isStandalone:!!a.standalone}}const Cw=Ii("Directive",(s={})=>s,void 0,void 0,(s,a)=>h_(s,a)),n1=Ii("Component",(s={})=>({changeDetection:Xn.Default,...s}),Cw,void 0,(s,a)=>pw(s,a)),g_=Ii("Pipe",s=>({pure:!0,...s}),void 0,void 0,(s,a)=>ww(s,a)),r1=Br("Input",s=>({bindingPropertyName:s})),yf=Br("Output",s=>({bindingPropertyName:s})),Dw=Br("HostBinding",s=>({hostPropertyName:s})),o1=Br("HostListener",(s,a)=>({eventName:s,args:a})),bf=Ii("NgModule",s=>s,void 0,void 0,(s,a)=>dw(s,a));function wf(...s){}const Sw=new Ot("Application Initializer");let Cf=(()=>{class s{constructor(l){this.appInits=l,this.resolve=wf,this.reject=wf,this.initialized=!1,this.done=!1,this.donePromise=new Promise((d,f)=>{this.resolve=d,this.reject=f})}runInitializers(){if(this.initialized)return;const l=[],d=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let f=0;f{m.subscribe({complete:b,error:C})});l.push(v)}}Promise.all(l).then(()=>{d()}).catch(f=>{this.reject(f)}),0===l.length&&d(),this.initialized=!0}}return s.\u0275fac=function(l){return new(l||s)(Rt(Sw,8))},s.\u0275prov=Dn({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Df=new Ot("AppId",{providedIn:"root",factory:Ew});function Ew(){return`${bc()}${bc()}${bc()}`}const a1={provide:Df,useFactory:Ew,deps:[]};function bc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Tw=new Ot("Platform Initializer"),Sf=new Ot("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),xw=new Ot("Application Packages Root URL"),l1=new Ot("AnimationModuleType");let u1=(()=>{class s{log(l){console.log(l)}warn(l){console.warn(l)}}return s.\u0275fac=function(l){return new(l||s)},s.\u0275prov=Dn({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();const Ef=new Ot("LocaleId",{providedIn:"root",factory:()=>ko(Ef,xe.Optional|xe.SkipSelf)||function c1(){return typeof $localize<"u"&&$localize.locale||ia}()}),d1=new Ot("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),Tf=new Ot("Translations"),h1=new Ot("TranslationsFormat");var Mr=(()=>((Mr=Mr||{})[Mr.Error=0]="Error",Mr[Mr.Warning=1]="Warning",Mr[Mr.Ignore=2]="Ignore",Mr))();class Mw{constructor(a,l){this.ngModuleFactory=a,this.componentFactories=l}}let f1=(()=>{class s{compileModuleSync(l){return new Kh(l)}compileModuleAsync(l){return Promise.resolve(this.compileModuleSync(l))}compileModuleAndAllComponentsSync(l){const d=this.compileModuleSync(l),m=Ur(He(l).declarations).reduce((v,b)=>{const C=at(b);return C&&v.push(new $r(C)),v},[]);return new Mw(d,m)}compileModuleAndAllComponentsAsync(l){return Promise.resolve(this.compileModuleAndAllComponentsSync(l))}clearCache(){}clearCacheFor(l){}getModuleId(l){}}return s.\u0275fac=function(l){return new(l||s)},s.\u0275prov=Dn({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const xf=new Ot("compilerOptions");class p1{}function m1(s){bo(Mv(s)),Zb(s).forEach(a=>Wm(a))}const Mf="ng";let Iw=!1;function If(){Iw||(Iw=!0,Ni("\u0275setProfiler",Ts),Ni("getDirectiveMetadata",ME),Ni("getComponent",Ml),Ni("getContext",Wb),Ni("getListeners",Zg),Ni("getOwningComponent",Hg),Ni("getHostElement",Gg),Ni("getInjector",qb),Ni("getRootComponents",Zb),Ni("getDirectives",Yb),Ni("applyChanges",m1))}function Ni(s,a){if((typeof COMPILED>"u"||!COMPILED)&&Lt){let d=Lt[Mf];d||(d=Lt[Mf]={}),d[s]=a}}const g1=(()=>Promise.resolve(0))();function __(s){typeof Zone>"u"?g1.then(()=>{s&&s.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",s)}class tr{constructor({enableLongStackTrace:a=!1,shouldCoalesceEventChangeDetection:l=!1,shouldCoalesceRunChangeDetection:d=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xr(!1),this.onMicrotaskEmpty=new xr(!1),this.onStable=new xr(!1),this.onError=new xr(!1),typeof Zone>"u")throw new Se(908,!1);Zone.assertZonePatched();const f=this;f._nesting=0,f._outer=f._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(f._inner=f._inner.fork(new Zone.TaskTrackingZoneSpec)),a&&Zone.longStackTraceZoneSpec&&(f._inner=f._inner.fork(Zone.longStackTraceZoneSpec)),f.shouldCoalesceEventChangeDetection=!d&&l,f.shouldCoalesceRunChangeDetection=d,f.lastRequestAnimationFrameId=-1,f.nativeRequestAnimationFrame=function _1(){let s=Lt.requestAnimationFrame,a=Lt.cancelAnimationFrame;if(typeof Zone<"u"&&s&&a){const l=s[Zone.__symbol__("OriginalDelegate")];l&&(s=l);const d=a[Zone.__symbol__("OriginalDelegate")];d&&(a=d)}return{nativeRequestAnimationFrame:s,nativeCancelAnimationFrame:a}}().nativeRequestAnimationFrame,function Pw(s){const a=()=>{!function y1(s){s.isCheckStableRunning||-1!==s.lastRequestAnimationFrameId||(s.lastRequestAnimationFrameId=s.nativeRequestAnimationFrame.call(Lt,()=>{s.fakeTopEventTask||(s.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{s.lastRequestAnimationFrameId=-1,v_(s),s.isCheckStableRunning=!0,Fl(s),s.isCheckStableRunning=!1},void 0,()=>{},()=>{})),s.fakeTopEventTask.invoke()}),v_(s))}(s)};s._inner=s._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(l,d,f,m,v,b)=>{try{return Lw(s),l.invokeTask(f,m,v,b)}finally{(s.shouldCoalesceEventChangeDetection&&"eventTask"===m.type||s.shouldCoalesceRunChangeDetection)&&a(),Pf(s)}},onInvoke:(l,d,f,m,v,b,C)=>{try{return Lw(s),l.invoke(f,m,v,b,C)}finally{s.shouldCoalesceRunChangeDetection&&a(),Pf(s)}},onHasTask:(l,d,f,m)=>{l.hasTask(f,m),d===f&&("microTask"==m.change?(s._hasPendingMicrotasks=m.microTask,v_(s),Fl(s)):"macroTask"==m.change&&(s.hasPendingMacrotasks=m.macroTask))},onHandleError:(l,d,f,m)=>(l.handleError(f,m),s.runOutsideAngular(()=>s.onError.emit(m)),!1)})}(f)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!tr.isInAngularZone())throw new Se(909,!1)}static assertNotInAngularZone(){if(tr.isInAngularZone())throw new Se(909,!1)}run(a,l,d){return this._inner.run(a,l,d)}runTask(a,l,d,f){const m=this._inner,v=m.scheduleEventTask("NgZoneEvent: "+f,a,v1,wf,wf);try{return m.runTask(v,l,d)}finally{m.cancelTask(v)}}runGuarded(a,l,d){return this._inner.runGuarded(a,l,d)}runOutsideAngular(a){return this._outer.run(a)}}const v1={};function Fl(s){if(0==s._nesting&&!s.hasPendingMicrotasks&&!s.isStable)try{s._nesting++,s.onMicrotaskEmpty.emit(null)}finally{if(s._nesting--,!s.hasPendingMicrotasks)try{s.runOutsideAngular(()=>s.onStable.emit(null))}finally{s.isStable=!0}}}function v_(s){s.hasPendingMicrotasks=!!(s._hasPendingMicrotasks||(s.shouldCoalesceEventChangeDetection||s.shouldCoalesceRunChangeDetection)&&-1!==s.lastRequestAnimationFrameId)}function Lw(s){s._nesting++,s.isStable&&(s.isStable=!1,s.onUnstable.emit(null))}function Pf(s){s._nesting--,Fl(s)}class Aw{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xr,this.onMicrotaskEmpty=new xr,this.onStable=new xr,this.onError=new xr}run(a,l,d){return a.apply(l,d)}runGuarded(a,l,d){return a.apply(l,d)}runOutsideAngular(a){return a()}runTask(a,l,d,f){return a.apply(l,d)}}const Ow=new Ot(""),Lf=new Ot("");let b_,b1=(()=>{class s{constructor(l,d,f){this._ngZone=l,this.registry=d,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,b_||(y_(f),f.addToWindow(d)),this._watchAngularEvents(),l.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{tr.assertNotInAngularZone(),__(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())__(()=>{for(;0!==this._callbacks.length;){let l=this._callbacks.pop();clearTimeout(l.timeoutId),l.doneCb(this._didWork)}this._didWork=!1});else{let l=this.getPendingTasks();this._callbacks=this._callbacks.filter(d=>!d.updateCb||!d.updateCb(l)||(clearTimeout(d.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(l=>({source:l.source,creationLocation:l.creationLocation,data:l.data})):[]}addCallback(l,d,f){let m=-1;d&&d>0&&(m=setTimeout(()=>{this._callbacks=this._callbacks.filter(v=>v.timeoutId!==m),l(this._didWork,this.getPendingTasks())},d)),this._callbacks.push({doneCb:l,timeoutId:m,updateCb:f})}whenStable(l,d,f){if(f&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(l,d,f),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(l){this.registry.registerApplication(l,this)}unregisterApplication(l){this.registry.unregisterApplication(l)}findProviders(l,d,f){return[]}}return s.\u0275fac=function(l){return new(l||s)(Rt(tr),Rt(wc),Rt(Lf))},s.\u0275prov=Dn({token:s,factory:s.\u0275fac}),s})(),wc=(()=>{class s{constructor(){this._applications=new Map}registerApplication(l,d){this._applications.set(l,d)}unregisterApplication(l){this._applications.delete(l)}unregisterAllApplications(){this._applications.clear()}getTestability(l){return this._applications.get(l)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(l,d=!0){return b_?.findTestabilityInTree(this,l,d)??null}}return s.\u0275fac=function(l){return new(l||s)},s.\u0275prov=Dn({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();function y_(s){b_=s}const nr=!1;let cs=null;const Af=new Ot("AllowMultipleToken"),w_=new Ot("PlatformDestroyListeners"),kw=new Ot("appBootstrapListener");function Of(s,a,l){const d=new Kh(l);return Promise.resolve(d)}function Fw(s){return s.isBoundToModule}class kf{constructor(a,l){this.name=a,this.token=l}}function Rw(s){if(cs&&!cs.get(Af,!1))throw new Se(400,!1);cs=s;const a=s.get(C_);return Rf(s),a}function Rf(s){const a=s.get(Tw,null);a&&a.forEach(l=>l())}function w1(s){const{rootComponent:a,appProviders:l,platformProviders:d}=s;nr&&void 0!==a&&function eM(s){if(function tM(s){if(!at(s))throw new Se(906,`The ${Ge(s)} is not an Angular component, make sure it has the \`@Component\` decorator.`)}(s),!at(s).standalone)throw new Se(907,`The ${Ge(s)} component is not marked as standalone, but Angular expects to have a standalone component here. Please make sure the ${Ge(s)} component has the \`standalone: true\` flag in the decorator.`)}(a);const f=function Ff(s=[]){if(cs)return cs;const a=Cc(s);return cs=a,Rf(a),a}(d),m=Nf("zone.js",Vw());return m.run(()=>{const b=Jh([{provide:tr,useValue:m},...l||[]],f,"Environment Injector"),C=b.get(tl,null);if(nr&&!C)throw new Se(402,"No `ErrorHandler` found in the Dependency Injection tree.");let T;m.runOutsideAngular(()=>{T=m.onError.subscribe({next:N=>{C.handleError(N)}})});const I=()=>b.destroy(),O=f.get(w_);return O.add(I),b.onDestroy(()=>{T.unsubscribe(),O.delete(I)}),jw(C,m,()=>{const N=b.get(Cf);return N.runInitializers(),N.donePromise.then(()=>{Mg(b.get(Ef,ia)||ia);const X=b.get(aa);return void 0!==a&&X.bootstrap(a),X})})})}function Nw(s,a,l=[]){const d=`Platform: ${a}`,f=new Ot(d);return(m=[])=>{let v=Dc();if(!v||v.injector.get(Af,!1)){const b=[...l,...m,{provide:f,useValue:!0}];s?s(b):Rw(Cc(b,d))}return Bw()}}function Bw(s){const a=Dc();if(!a)throw new Se(401,!1);return a}function Cc(s=[],a){return ns.create({name:a,providers:[{provide:vm,useValue:"platform"},{provide:w_,useValue:new Set([()=>cs=null])},...s]})}function C1(){Dc()?.destroy()}function Dc(){return cs?.get(C_)??null}let C_=(()=>{class s{constructor(l){this._injector=l,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(l,d){const f=Nf(d?.ngZone,Vw(d)),m=[{provide:tr,useValue:f}];return f.run(()=>{const v=ns.create({providers:m,parent:this.injector,name:l.moduleType.name}),b=l.create(v),C=b.injector.get(tl,null);if(!C)throw new Se(402,!1);return f.runOutsideAngular(()=>{const T=f.onError.subscribe({next:I=>{C.handleError(I)}});b.onDestroy(()=>{Bf(this._modules,b),T.unsubscribe()})}),jw(C,f,()=>{const T=b.injector.get(Cf);return T.runInitializers(),T.donePromise.then(()=>(Mg(b.injector.get(Ef,ia)||ia),this._moduleDoBootstrap(b),b))})})}bootstrapModule(l,d=[]){const f=Uw({},d);return Of(0,0,l).then(m=>this.bootstrapModuleFactory(m,f))}_moduleDoBootstrap(l){const d=l.injector.get(aa);if(l._bootstrapComponents.length>0)l._bootstrapComponents.forEach(f=>d.bootstrap(f));else{if(!l.instance.ngDoBootstrap)throw new Se(-403,!1);l.instance.ngDoBootstrap(d)}this._modules.push(l)}onDestroy(l){this._destroyListeners.push(l)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Se(404,!1);this._modules.slice().forEach(d=>d.destroy()),this._destroyListeners.forEach(d=>d());const l=this._injector.get(w_,null);l&&(l.forEach(d=>d()),l.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return s.\u0275fac=function(l){return new(l||s)(Rt(ns))},s.\u0275prov=Dn({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();function Vw(s){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!s||!s.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!s||!s.ngZoneRunCoalescing)||!1}}function Nf(s,a){let l;return l="noop"===s?new Aw:("zone.js"===s?void 0:s)||new tr(a),l}function jw(s,a,l){try{const d=l();return gl(d)?d.catch(f=>{throw a.runOutsideAngular(()=>s.handleError(f)),f}):d}catch(d){throw a.runOutsideAngular(()=>s.handleError(d)),d}}function Uw(s,a){return Array.isArray(a)?a.reduce(Uw,s):{...s,...a}}let aa=(()=>{class s{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(l,d,f){this._zone=l,this._injector=d,this._exceptionHandler=f,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const m=new E.y(b=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{b.next(this._stable),b.complete()})}),v=new E.y(b=>{let C;this._zone.runOutsideAngular(()=>{C=this._zone.onStable.subscribe(()=>{tr.assertNotInAngularZone(),__(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,b.next(!0))})})});const T=this._zone.onUnstable.subscribe(()=>{tr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{b.next(!1)}))});return()=>{C.unsubscribe(),T.unsubscribe()}});this.isStable=(0,M.T)(m,v.pipe(function H(){return s=>(0,Q.x)()(function U(s,a){return function(d){let f;if(f="function"==typeof s?s:function(){return s},"function"==typeof a)return d.lift(new W(f,a));const m=Object.create(d,B.N);return m.source=d,m.subjectFactory=f,m}}(q)(s))}()))}bootstrap(l,d){nr&&this.warnIfDestroyed();const f=l instanceof vo;if(!this._injector.get(Cf).done){const $="Cannot bootstrap as there are still asynchronous initializers running."+(!f&&pi(l)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new Se(405,nr&&$)}let v;v=f?l:this._injector.get(Ja).resolveComponentFactory(l),this.componentTypes.push(v.componentType);const b=Fw(v)?void 0:this._injector.get(ls),T=v.create(ns.NULL,[],d||v.selector,b),I=T.location.nativeElement,O=T.injector.get(Ow,null);return O?.registerApplication(I),T.onDestroy(()=>{this.detachView(T.hostView),Bf(this.components,T),O?.unregisterApplication(I)}),this._loadComponent(T),T}tick(){if(nr&&this.warnIfDestroyed(),this._runningTick)throw new Se(101,!1);try{this._runningTick=!0;for(let l of this._views)l.detectChanges()}catch(l){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(l))}finally{this._runningTick=!1}}attachView(l){nr&&this.warnIfDestroyed();const d=l;this._views.push(d),d.attachToAppRef(this)}detachView(l){nr&&this.warnIfDestroyed();const d=l;Bf(this._views,d),d.detachFromAppRef()}_loadComponent(l){this.attachView(l.hostView),this.tick(),this.components.push(l);const d=this._injector.get(kw,[]);d.push(...this._bootstrapListeners),d.forEach(f=>f(l))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(l=>l()),this._views.slice().forEach(l=>l.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(l){return nr&&this.warnIfDestroyed(),this._destroyListeners.push(l),()=>Bf(this._destroyListeners,l)}destroy(){if(this._destroyed)throw new Se(406,!1);const l=this._injector;l.destroy&&!l.destroyed&&l.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){nr&&this._destroyed&&console.warn(ci(406,"This instance of the `ApplicationRef` has already been destroyed."))}}return s.\u0275fac=function(l){return new(l||s)(Rt(tr),Rt(Ws),Rt(tl))},s.\u0275prov=Dn({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Bf(s,a){const l=s.indexOf(a);l>-1&&s.splice(l,1)}function D1(){return!1}function S_(){}function Vf(s){const a=po(s);if(!a)throw E_(s);return new Kh(a)}function S1(s){const a=po(s);if(!a)throw E_(s);return a}function E_(s){return new Error(`No module with ID ${s} loaded`)}let Hw=(()=>{class s{}return s.__NG_ELEMENT_ID__=zw,s})();function zw(s){return function T_(s,a,l){if(ar(s)&&!l){const d=zn(s.index,a);return new cl(d,d)}return 47&s.type?new cl(a[Qt],a):null}(En(),ne(),16==(16&s))}class $w extends Hw{}class E1 extends $w{}class T1{constructor(a,l){this.name=a,this.callback=l}}function jf(s){return s.map(a=>a.nativeElement)}class Uf{constructor(a){this.nativeNode=a}get parent(){const a=this.nativeNode.parentNode;return a?new Ec(a):null}get injector(){return qb(this.nativeNode)}get componentInstance(){const a=this.nativeNode;return a&&(Ml(a)||Hg(a))}get context(){return Ml(this.nativeNode)||Wb(this.nativeNode)}get listeners(){return Zg(this.nativeNode).filter(a=>"dom"===a.type)}get references(){return function $g(s){const a=ri(s);if(null===a)return{};if(void 0===a.localRefs){const l=a.lView;if(null===l)return{};a.localRefs=function Eu(s,a){const l=s[ge].data[a];if(l&&l.localNames){const d={};let f=l.index+1;for(let m=0;m1){let I=C[1];for(let O=1;Oa[m]=!0),a}get childNodes(){const a=this.nativeNode.childNodes,l=[];for(let d=0;d{if(m.name===a){const v=m.callback;v.call(d,l),f.push(v)}}),"function"==typeof d.eventListeners&&d.eventListeners(a).forEach(m=>{if(-1!==m.toString().indexOf("__ngUnwrap__")){const v=m("__ngUnwrap__");return-1===f.indexOf(v)&&v.call(d,l)}})}}function x1(s){return"string"==typeof s||"boolean"==typeof s||"number"==typeof s||null===s}function x_(s,a,l,d){const f=ri(s.nativeNode),m=f?f.lView:null;null!==m?la(m[ge].data[f.nodeIndex],m,a,l,d,s.nativeNode):M_(s.nativeNode,a,l,d)}function la(s,a,l,d,f,m){const v=function Ep(s,a){const l=null===s?-1:s.index;return-1!==l?Ht(a[l]):null}(s,a);if(11&s.type){if(Tc(v,l,d,f,m),ar(s)){const C=zn(s.index,a);C&&C[ge].firstChild&&la(C[ge].firstChild,C,l,d,f,m)}else s.child&&la(s.child,a,l,d,f,m),v&&M_(v,l,d,f);const b=a[s.index];gn(b)&&Ww(b,l,d,f,m)}else if(4&s.type){const b=a[s.index];Tc(b[fn],l,d,f,m),Ww(b,l,d,f,m)}else if(16&s.type){const b=a[Qt],T=b[wt].projection[s.projection];if(Array.isArray(T))for(let I of T)Tc(I,l,d,f,m);else if(T){const I=b[qe];la(I[ge].data[T.index],I,l,d,f,m)}}else s.child&&la(s.child,a,l,d,f,m);if(m!==v){const b=2&s.flags?s.projectionNext:s.next;b&&la(b,a,l,d,f,m)}}function Ww(s,a,l,d,f){for(let m=pn;ma;class qw{constructor(a){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=a||I1}forEachItem(a){let l;for(l=this._itHead;null!==l;l=l._next)a(l)}forEachOperation(a){let l=this._itHead,d=this._removalsHead,f=0,m=null;for(;l||d;){const v=!d||l&&l.currentIndex{v=this._trackByFn(f,b),null!==l&&Object.is(l.trackById,v)?(d&&(l=this._verifyReinsertion(l,b,v,f)),Object.is(l.item,b)||this._addIdentityChange(l,b)):(l=this._mismatch(l,b,v,f),d=!0),l=l._next,f++}),this.length=f;return this._truncate(l),this.collection=a,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let a;for(a=this._previousItHead=this._itHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;null!==a;a=a._nextAdded)a.previousIndex=a.currentIndex;for(this._additionsHead=this._additionsTail=null,a=this._movesHead;null!==a;a=a._nextMoved)a.previousIndex=a.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(a,l,d,f){let m;return null===a?m=this._itTail:(m=a._prev,this._remove(a)),null!==(a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(d,null))?(Object.is(a.item,l)||this._addIdentityChange(a,l),this._reinsertAfter(a,m,f)):null!==(a=null===this._linkedRecords?null:this._linkedRecords.get(d,f))?(Object.is(a.item,l)||this._addIdentityChange(a,l),this._moveAfter(a,m,f)):a=this._addAfter(new A_(l,d),m,f),a}_verifyReinsertion(a,l,d,f){let m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(d,null);return null!==m?a=this._reinsertAfter(m,a._prev,f):a.currentIndex!=f&&(a.currentIndex=f,this._addToMoves(a,f)),a}_truncate(a){for(;null!==a;){const l=a._next;this._addToRemovals(this._unlink(a)),a=l}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(a,l,d){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(a);const f=a._prevRemoved,m=a._nextRemoved;return null===f?this._removalsHead=m:f._nextRemoved=m,null===m?this._removalsTail=f:m._prevRemoved=f,this._insertAfter(a,l,d),this._addToMoves(a,d),a}_moveAfter(a,l,d){return this._unlink(a),this._insertAfter(a,l,d),this._addToMoves(a,d),a}_addAfter(a,l,d){return this._insertAfter(a,l,d),this._additionsTail=null===this._additionsTail?this._additionsHead=a:this._additionsTail._nextAdded=a,a}_insertAfter(a,l,d){const f=null===l?this._itHead:l._next;return a._next=f,a._prev=l,null===f?this._itTail=a:f._prev=a,null===l?this._itHead=a:l._next=a,null===this._linkedRecords&&(this._linkedRecords=new Yw),this._linkedRecords.put(a),a.currentIndex=d,a}_remove(a){return this._addToRemovals(this._unlink(a))}_unlink(a){null!==this._linkedRecords&&this._linkedRecords.remove(a);const l=a._prev,d=a._next;return null===l?this._itHead=d:l._next=d,null===d?this._itTail=l:d._prev=l,a}_addToMoves(a,l){return a.previousIndex===l||(this._movesTail=null===this._movesTail?this._movesHead=a:this._movesTail._nextMoved=a),a}_addToRemovals(a){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Yw),this._unlinkedRecords.put(a),a.currentIndex=null,a._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=a,a._prevRemoved=null):(a._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=a),a}_addIdentityChange(a,l){return a.item=l,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=a:this._identityChangesTail._nextIdentityChange=a,a}}class A_{constructor(a,l){this.item=a,this.trackById=l,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class P1{constructor(){this._head=null,this._tail=null}add(a){null===this._head?(this._head=this._tail=a,a._nextDup=null,a._prevDup=null):(this._tail._nextDup=a,a._prevDup=this._tail,a._nextDup=null,this._tail=a)}get(a,l){let d;for(d=this._head;null!==d;d=d._nextDup)if((null===l||l<=d.currentIndex)&&Object.is(d.trackById,a))return d;return null}remove(a){const l=a._prevDup,d=a._nextDup;return null===l?this._head=d:l._nextDup=d,null===d?this._tail=l:d._prevDup=l,null===this._head}}class Yw{constructor(){this.map=new Map}put(a){const l=a.trackById;let d=this.map.get(l);d||(d=new P1,this.map.set(l,d)),d.add(a)}get(a,l){const f=this.map.get(a);return f?f.get(a,l):null}remove(a){const l=a.trackById;return this.map.get(l).remove(a)&&this.map.delete(l),a}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function zf(s,a,l){const d=s.previousIndex;if(null===d)return d;let f=0;return l&&d{if(l&&l.key===f)this._maybeAddToChanges(l,d),this._appendAfter=l,l=l._next;else{const m=this._getOrCreateRecordForKey(f,d);l=this._insertBeforeOrAppend(l,m)}}),l){l._prev&&(l._prev._next=null),this._removalsHead=l;for(let d=l;null!==d;d=d._nextRemoved)d===this._mapHead&&(this._mapHead=null),this._records.delete(d.key),d._nextRemoved=d._next,d.previousValue=d.currentValue,d.currentValue=null,d._prev=null,d._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(a,l){if(a){const d=a._prev;return l._next=a,l._prev=d,a._prev=l,d&&(d._next=l),a===this._mapHead&&(this._mapHead=l),this._appendAfter=a,a}return this._appendAfter?(this._appendAfter._next=l,l._prev=this._appendAfter):this._mapHead=l,this._appendAfter=l,null}_getOrCreateRecordForKey(a,l){if(this._records.has(a)){const f=this._records.get(a);this._maybeAddToChanges(f,l);const m=f._prev,v=f._next;return m&&(m._next=v),v&&(v._prev=m),f._next=null,f._prev=null,f}const d=new Kw(a);return this._records.set(a,d),d.currentValue=l,this._addToAdditions(d),d}_reset(){if(this.isDirty){let a;for(this._previousMapHead=this._mapHead,a=this._previousMapHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;null!==a;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;null!=a;a=a._nextAdded)a.previousValue=a.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(a,l){Object.is(l,a.currentValue)||(a.previousValue=a.currentValue,a.currentValue=l,this._addToChanges(a))}_addToAdditions(a){null===this._additionsHead?this._additionsHead=this._additionsTail=a:(this._additionsTail._nextAdded=a,this._additionsTail=a)}_addToChanges(a){null===this._changesHead?this._changesHead=this._changesTail=a:(this._changesTail._nextChanged=a,this._changesTail=a)}_forEach(a,l){a instanceof Map?a.forEach(l):Object.keys(a).forEach(d=>l(a[d],d))}}class Kw{constructor(a){this.key=a,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 Jw(){return new O_([new L_])}let O_=(()=>{class s{constructor(l){this.factories=l}static create(l,d){if(null!=d){const f=d.factories.slice();l=l.concat(f)}return new s(l)}static extend(l){return{provide:s,useFactory:d=>s.create(l,d||Jw()),deps:[[s,new Rs,new yu]]}}find(l){const d=this.factories.find(f=>f.supports(l));if(null!=d)return d;throw new Se(901,!1)}}return s.\u0275prov=Dn({token:s,providedIn:"root",factory:Jw}),s})();function Xw(){return new Gf([new Qw])}let Gf=(()=>{class s{constructor(l){this.factories=l}static create(l,d){if(d){const f=d.factories.slice();l=l.concat(f)}return new s(l)}static extend(l){return{provide:s,useFactory:d=>s.create(l,d||Xw()),deps:[[s,new Rs,new yu]]}}find(l){const d=this.factories.find(f=>f.supports(l));if(d)return d;throw new Se(901,!1)}}return s.\u0275prov=Dn({token:s,providedIn:"root",factory:Xw}),s})();const L1=[new Qw],F_=new O_([new L_]),O1=new Gf(L1),k1=Nw(null,"core",[]);let R_=(()=>{class s{constructor(l){}}return s.\u0275fac=function(l){return new(l||s)(Rt(aa))},s.\u0275mod=Ql({type:s}),s.\u0275inj=gs({}),s})();function F1(s){return"boolean"==typeof s?s:null!=s&&"false"!==s}function Wf(s){return xn().compileDirectiveDeclaration(ai,`ng:///${s.type.name}/\u0275fac.js`,s)}function eC(s){Qb(s.type,s.decorators,s.ctorParameters??null,s.propDecorators??null)}function R1(s){return xn().compileComponentDeclaration(ai,`ng:///${s.type.name}/\u0275cmp.js`,s)}function Zf(s){return xn(function N1(s){switch(s){case Tn.Directive:return"directive";case Tn.Component:return"component";case Tn.Injectable:return"injectable";case Tn.Pipe:return"pipe";case Tn.NgModule:return"NgModule"}}(s.target)).compileFactoryDeclaration(ai,`ng:///${s.type.name}/\u0275fac.js`,s)}function tC(s){return xn().compileInjectableDeclaration(ai,`ng:///${s.type.name}/\u0275prov.js`,s)}function B1(s){return xn().compileInjectorDeclaration(ai,`ng:///${s.type.name}/\u0275inj.js`,s)}function V1(s){return xn().compileNgModuleDeclaration(ai,`ng:///${s.type.name}/\u0275mod.js`,s)}function N_(s){return xn().compilePipeDeclaration(ai,`ng:///${s.type.name}/\u0275pipe.js`,s)}function j1(s,a){const l=at(s),d=a.elementInjector||Gd();return new $r(l).create(d,a.projectableNodes,a.hostElement,a.environmentInjector)}function U1(s){const a=at(s);if(!a)return null;const l=new $r(a);return{get selector(){return l.selector},get type(){return l.componentType},get inputs(){return l.inputs},get outputs(){return l.outputs},get ngContentSelectors(){return l.ngContentSelectors},get isStandalone(){return a.standalone}}}}},Je=>{Je(Je.s=923)}]); \ No newline at end of file diff --git a/main.6089e2e5d9c7467c.js b/main.6089e2e5d9c7467c.js new file mode 100644 index 00000000..1a0e6018 --- /dev/null +++ b/main.6089e2e5d9c7467c.js @@ -0,0 +1 @@ +(self.webpackChunkstyleguide=self.webpackChunkstyleguide||[]).push([[179],{923:(Je,he,R)=>{"use strict";var ue={};R.r(ue),R.d(ue,{BasemapLayer:()=>_w,DynamicMapLayer:()=>mL,FeatureLayer:()=>gL,FeatureLayerService:()=>hL,FeatureManager:()=>yw,Find:()=>tL,Identify:()=>gw,IdentifyFeatures:()=>iL,IdentifyImage:()=>oL,ImageMapLayer:()=>pL,ImageService:()=>cL,MapService:()=>aL,Query:()=>XP,RasterLayer:()=>tM,Service:()=>K_,Support:()=>Ul,Task:()=>Q_,TiledMapLayer:()=>eM,Util:()=>n5,VERSION:()=>_5,basemapLayer:()=>d5,dynamicMapLayer:()=>m5,featureLayer:()=>g5,featureLayerService:()=>fL,find:()=>nL,get:()=>cw,identify:()=>o5,identifyFeatures:()=>rL,identifyImage:()=>sL,imageMapLayer:()=>p5,imageService:()=>dL,mapService:()=>lL,options:()=>VP,post:()=>HP,query:()=>eL,request:()=>G1,service:()=>l5,task:()=>i5,tiledMapLayer:()=>h5});var i=R(62);let S=null;function x(){return S}class H{}const W=new i.InjectionToken("DocumentToken");let Q=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(){return function q(){return(0,i.\u0275\u0275inject)(z)}()},providedIn:"platform"}),t})();const U=new i.InjectionToken("Location Initialized");let z=(()=>{class t extends Q{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return x().getBaseHref(this._doc)}onPopState(e){const r=x().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){const r=x().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,r,o){J()?this._history.pushState(e,r,o):this._location.hash=o}replaceState(e,r,o){J()?this._history.replaceState(e,r,o):this._location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(W))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(){return function Y(){return new z((0,i.\u0275\u0275inject)(W))}()},providedIn:"platform"}),t})();function J(){return!!window.history.pushState}function me(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function rt(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function _e(t){return t&&"?"!==t[0]?"?"+t:t}let te=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(){return(0,i.inject)(mt)},providedIn:"root"}),t})();const Ht=new i.InjectionToken("appBaseHref");let mt=(()=>{class t extends te{constructor(e,r){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??(0,i.inject)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return me(this._baseHref,e)}path(e=!1){const r=this._platformLocation.pathname+_e(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${r}${o}`:r}pushState(e,r,o,c){const h=this.prepareExternalUrl(o+_e(c));this._platformLocation.pushState(e,r,h)}replaceState(e,r,o,c){const h=this.prepareExternalUrl(o+_e(c));this._platformLocation.replaceState(e,r,h)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(Q),i.\u0275\u0275inject(Ht,8))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),jn=(()=>{class t extends te{constructor(e,r){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(e){const r=me(this._baseHref,e);return r.length>0?"#"+r:r}pushState(e,r,o,c){let h=this.prepareExternalUrl(o+_e(c));0==h.length&&(h=this._platformLocation.pathname),this._platformLocation.pushState(e,r,h)}replaceState(e,r,o,c){let h=this.prepareExternalUrl(o+_e(c));0==h.length&&(h=this._platformLocation.pathname),this._platformLocation.replaceState(e,r,h)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(Q),i.\u0275\u0275inject(Ht,8))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),qn=(()=>{class t{constructor(e){this._subject=new i.EventEmitter,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const r=this._locationStrategy.getBaseHref();this._basePath=function Ge(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(rt(Ve(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(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+_e(r))}normalize(e){return t.stripTrailingSlash(function ci(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,Ve(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,r="",o=null){this._locationStrategy.pushState(o,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+_e(r)),o)}replaceState(e,r="",o=null){this._locationStrategy.replaceState(o,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+_e(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(o=>o(e,r))}subscribe(e,r,o){return this._subject.subscribe({next:e,error:r,complete:o})}}return t.normalizeQueryParams=_e,t.joinWithSlash=me,t.stripTrailingSlash=rt,t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(te))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(){return function De(){return new qn((0,i.\u0275\u0275inject)(te))}()},providedIn:"root"}),t})();function Ve(t){return t.replace(/\/index.html$/,"")}var Mt=(()=>((Mt=Mt||{})[Mt.Format=0]="Format",Mt[Mt.Standalone=1]="Standalone",Mt))(),we=(()=>((we=we||{})[we.Narrow=0]="Narrow",we[we.Abbreviated=1]="Abbreviated",we[we.Wide=2]="Wide",we[we.Short=3]="Short",we))(),Et=(()=>((Et=Et||{})[Et.Short=0]="Short",Et[Et.Medium=1]="Medium",Et[Et.Long=2]="Long",Et[Et.Full=3]="Full",Et))(),ce=(()=>((ce=ce||{})[ce.Decimal=0]="Decimal",ce[ce.Group=1]="Group",ce[ce.List=2]="List",ce[ce.PercentSign=3]="PercentSign",ce[ce.PlusSign=4]="PlusSign",ce[ce.MinusSign=5]="MinusSign",ce[ce.Exponential=6]="Exponential",ce[ce.SuperscriptingExponent=7]="SuperscriptingExponent",ce[ce.PerMille=8]="PerMille",ce[ce.Infinity=9]="Infinity",ce[ce.NaN=10]="NaN",ce[ce.TimeSeparator=11]="TimeSeparator",ce[ce.CurrencyDecimal=12]="CurrencyDecimal",ce[ce.CurrencyGroup=13]="CurrencyGroup",ce))();function di(t,n){return Hn((0,i.\u0275findLocaleData)(t)[i.\u0275LocaleDataIndex.DateFormat],n)}function Vi(t,n){return Hn((0,i.\u0275findLocaleData)(t)[i.\u0275LocaleDataIndex.TimeFormat],n)}function wn(t,n){return Hn((0,i.\u0275findLocaleData)(t)[i.\u0275LocaleDataIndex.DateTimeFormat],n)}function We(t,n){const e=(0,i.\u0275findLocaleData)(t),r=e[i.\u0275LocaleDataIndex.NumberSymbols][n];if(typeof r>"u"){if(n===ce.CurrencyDecimal)return e[i.\u0275LocaleDataIndex.NumberSymbols][ce.Decimal];if(n===ce.CurrencyGroup)return e[i.\u0275LocaleDataIndex.NumberSymbols][ce.Group]}return r}function Ar(t){if(!t[i.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[i.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Hn(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function _s(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const ql=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Me={},va=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var nn=(()=>((nn=nn||{})[nn.Short=0]="Short",nn[nn.ShortGMT=1]="ShortGMT",nn[nn.Long=2]="Long",nn[nn.Extended=3]="Extended",nn))(),Ee=(()=>((Ee=Ee||{})[Ee.FullYear=0]="FullYear",Ee[Ee.Month=1]="Month",Ee[Ee.Date=2]="Date",Ee[Ee.Hours=3]="Hours",Ee[Ee.Minutes=4]="Minutes",Ee[Ee.Seconds=5]="Seconds",Ee[Ee.FractionalSeconds=6]="FractionalSeconds",Ee[Ee.Day=7]="Day",Ee))(),Ze=(()=>((Ze=Ze||{})[Ze.DayPeriods=0]="DayPeriods",Ze[Ze.Days=1]="Days",Ze[Ze.Months=2]="Months",Ze[Ze.Eras=3]="Eras",Ze))();function ov(t,n,e,r){let o=function Ui(t){if(fi(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[o,c=1,h=1]=t.split("-").map(y=>+y);return Lt(o,c-1,h)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let r;if(r=t.match(ql))return function Se(t){const n=new Date(0);let e=0,r=0;const o=t[8]?n.setUTCFullYear:n.setFullYear,c=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),r=Number(t[9]+t[11])),o.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const h=Number(t[4]||0)-e,y=Number(t[5]||0)-r,E=Number(t[6]||0),M=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return c.call(n,h,y,E,M),n}(r)}const n=new Date(t);if(!fi(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=ji(e,n)||n;let y,h=[];for(;n;){if(y=va.exec(n),!y){h.push(n);break}{h=h.concat(y.slice(1));const A=h.pop();if(!A)break;n=A}}let E=o.getTimezoneOffset();r&&(E=Ca(r,E),o=function pp(t,n,e){const r=e?-1:1,o=t.getTimezoneOffset();return function bs(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,r*(Ca(n,o)-o))}(o,r,!0));let M="";return h.forEach(A=>{const k=function ys(t){if(ko[t])return ko[t];let n;switch(t){case"G":case"GG":case"GGG":n=bt(Ze.Eras,we.Abbreviated);break;case"GGGG":n=bt(Ze.Eras,we.Wide);break;case"GGGGG":n=bt(Ze.Eras,we.Narrow);break;case"y":n=Rt(Ee.FullYear,1,0,!1,!0);break;case"yy":n=Rt(Ee.FullYear,2,0,!0,!0);break;case"yyy":n=Rt(Ee.FullYear,3,0,!1,!0);break;case"yyyy":n=Rt(Ee.FullYear,4,0,!1,!0);break;case"Y":n=Oo(1);break;case"YY":n=Oo(2,!0);break;case"YYY":n=Oo(3);break;case"YYYY":n=Oo(4);break;case"M":case"L":n=Rt(Ee.Month,1,1);break;case"MM":case"LL":n=Rt(Ee.Month,2,1);break;case"MMM":n=bt(Ze.Months,we.Abbreviated);break;case"MMMM":n=bt(Ze.Months,we.Wide);break;case"MMMMM":n=bt(Ze.Months,we.Narrow);break;case"LLL":n=bt(Ze.Months,we.Abbreviated,Mt.Standalone);break;case"LLLL":n=bt(Ze.Months,we.Wide,Mt.Standalone);break;case"LLLLL":n=bt(Ze.Months,we.Narrow,Mt.Standalone);break;case"w":n=Ft(1);break;case"ww":n=Ft(2);break;case"W":n=Ft(1,!0);break;case"d":n=Rt(Ee.Date,1);break;case"dd":n=Rt(Ee.Date,2);break;case"c":case"cc":n=Rt(Ee.Day,1);break;case"ccc":n=bt(Ze.Days,we.Abbreviated,Mt.Standalone);break;case"cccc":n=bt(Ze.Days,we.Wide,Mt.Standalone);break;case"ccccc":n=bt(Ze.Days,we.Narrow,Mt.Standalone);break;case"cccccc":n=bt(Ze.Days,we.Short,Mt.Standalone);break;case"E":case"EE":case"EEE":n=bt(Ze.Days,we.Abbreviated);break;case"EEEE":n=bt(Ze.Days,we.Wide);break;case"EEEEE":n=bt(Ze.Days,we.Narrow);break;case"EEEEEE":n=bt(Ze.Days,we.Short);break;case"a":case"aa":case"aaa":n=bt(Ze.DayPeriods,we.Abbreviated);break;case"aaaa":n=bt(Ze.DayPeriods,we.Wide);break;case"aaaaa":n=bt(Ze.DayPeriods,we.Narrow);break;case"b":case"bb":case"bbb":n=bt(Ze.DayPeriods,we.Abbreviated,Mt.Standalone,!0);break;case"bbbb":n=bt(Ze.DayPeriods,we.Wide,Mt.Standalone,!0);break;case"bbbbb":n=bt(Ze.DayPeriods,we.Narrow,Mt.Standalone,!0);break;case"B":case"BB":case"BBB":n=bt(Ze.DayPeriods,we.Abbreviated,Mt.Format,!0);break;case"BBBB":n=bt(Ze.DayPeriods,we.Wide,Mt.Format,!0);break;case"BBBBB":n=bt(Ze.DayPeriods,we.Narrow,Mt.Format,!0);break;case"h":n=Rt(Ee.Hours,1,-12);break;case"hh":n=Rt(Ee.Hours,2,-12);break;case"H":n=Rt(Ee.Hours,1);break;case"HH":n=Rt(Ee.Hours,2);break;case"m":n=Rt(Ee.Minutes,1);break;case"mm":n=Rt(Ee.Minutes,2);break;case"s":n=Rt(Ee.Seconds,1);break;case"ss":n=Rt(Ee.Seconds,2);break;case"S":n=Rt(Ee.FractionalSeconds,1);break;case"SS":n=Rt(Ee.FractionalSeconds,2);break;case"SSS":n=Rt(Ee.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=vs(nn.Short);break;case"ZZZZZ":n=vs(nn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=vs(nn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=vs(nn.Long);break;default:return null}return ko[t]=n,n}(A);M+=k?k(o,e,E):"''"===A?"'":A.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),M}function Lt(t,n,e){const r=new Date(0);return r.setFullYear(t,n,e),r.setHours(0,0,0),r}function ji(t,n){const e=function Pe(t){return(0,i.\u0275findLocaleData)(t)[i.\u0275LocaleDataIndex.LocaleId]}(t);if(Me[e]=Me[e]||{},Me[e][n])return Me[e][n];let r="";switch(n){case"shortDate":r=di(t,Et.Short);break;case"mediumDate":r=di(t,Et.Medium);break;case"longDate":r=di(t,Et.Long);break;case"fullDate":r=di(t,Et.Full);break;case"shortTime":r=Vi(t,Et.Short);break;case"mediumTime":r=Vi(t,Et.Medium);break;case"longTime":r=Vi(t,Et.Long);break;case"fullTime":r=Vi(t,Et.Full);break;case"short":const o=ji(t,"shortTime"),c=ji(t,"shortDate");r=ya(wn(t,Et.Short),[o,c]);break;case"medium":const h=ji(t,"mediumTime"),y=ji(t,"mediumDate");r=ya(wn(t,Et.Medium),[h,y]);break;case"long":const E=ji(t,"longTime"),M=ji(t,"longDate");r=ya(wn(t,Et.Long),[E,M]);break;case"full":const A=ji(t,"fullTime"),k=ji(t,"fullDate");r=ya(wn(t,Et.Full),[A,k])}return r&&(Me[e][n]=r),r}function ya(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,r){return null!=n&&r in n?n[r]:e})),t}function Hi(t,n,e="-",r,o){let c="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,c=e));let h=String(t);for(;h.length0||y>-e)&&(y+=e),t===Ee.Hours)0===y&&-12===e&&(y=12);else if(t===Ee.FractionalSeconds)return function hi(t,n){return Hi(t,3).substring(0,n)}(y,n);const E=We(h,ce.MinusSign);return Hi(y,n,E,r,o)}}function bt(t,n,e=Mt.Format,r=!1){return function(o,c){return function Uc(t,n,e,r,o,c){switch(e){case Ze.Months:return function Jn(t,n,e){const r=(0,i.\u0275findLocaleData)(t),c=Hn([r[i.\u0275LocaleDataIndex.MonthsFormat],r[i.\u0275LocaleDataIndex.MonthsStandalone]],n);return Hn(c,e)}(n,o,r)[t.getMonth()];case Ze.Days:return function Kn(t,n,e){const r=(0,i.\u0275findLocaleData)(t),c=Hn([r[i.\u0275LocaleDataIndex.DaysFormat],r[i.\u0275LocaleDataIndex.DaysStandalone]],n);return Hn(c,e)}(n,o,r)[t.getDay()];case Ze.DayPeriods:const h=t.getHours(),y=t.getMinutes();if(c){const M=function ga(t){const n=(0,i.\u0275findLocaleData)(t);return Ar(n),(n[i.\u0275LocaleDataIndex.ExtraData][2]||[]).map(r=>"string"==typeof r?_s(r):[_s(r[0]),_s(r[1])])}(n),A=function jc(t,n,e){const r=(0,i.\u0275findLocaleData)(t);Ar(r);const c=Hn([r[i.\u0275LocaleDataIndex.ExtraData][0],r[i.\u0275LocaleDataIndex.ExtraData][1]],n)||[];return Hn(c,e)||[]}(n,o,r),k=M.findIndex(j=>{if(Array.isArray(j)){const[V,K]=j,se=h>=V.hours&&y>=V.minutes,ae=h0?Math.floor(o/60):Math.ceil(o/60);switch(t){case nn.Short:return(o>=0?"+":"")+Hi(h,2,c)+Hi(Math.abs(o%60),2,c);case nn.ShortGMT:return"GMT"+(o>=0?"+":"")+Hi(h,1,c);case nn.Long:return"GMT"+(o>=0?"+":"")+Hi(h,2,c)+":"+Hi(Math.abs(o%60),2,c);case nn.Extended:return 0===r?"Z":(o>=0?"+":"")+Hi(h,2,c)+":"+Hi(Math.abs(o%60),2,c);default:throw new Error(`Unknown zone width "${t}"`)}}}const zc=0,Or=4;function $c(t){return Lt(t.getFullYear(),t.getMonth(),t.getDate()+(Or-t.getDay()))}function Ft(t,n=!1){return function(e,r){let o;if(n){const c=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,h=e.getDate();o=1+Math.floor((h+c)/7)}else{const c=$c(e),h=function Qr(t){const n=Lt(t,zc,1).getDay();return Lt(t,0,1+(n<=Or?Or:Or+7)-n)}(c.getFullYear()),y=c.getTime()-h.getTime();o=1+Math.round(y/6048e5)}return Hi(o,t,We(r,ce.MinusSign))}}function Oo(t,n=!1){return function(e,r){return Hi($c(e).getFullYear(),t,We(r,ce.MinusSign),n)}}const ko={};function Ca(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function fi(t){return t instanceof Date&&!isNaN(t.valueOf())}const pi=/\s+/,Ue=[];let ze=(()=>{class t{constructor(e,r,o,c){this._iterableDiffers=e,this._keyValueDiffers=r,this._ngEl=o,this._renderer=c,this.initialClasses=Ue,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(pi):Ue}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(pi):e}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const r of e)this._updateState(r,!0);else if(null!=e)for(const r of Object.keys(e))this._updateState(r,Boolean(e[r]));this._applyStateDiff()}_updateState(e,r){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(e,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const r=e[0],o=e[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(e,r){(e=e.trim()).length>0&&e.split(pi).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(i.KeyValueDiffers),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class ge{constructor(n,e,r,o){this.$implicit=n,this.ngForOf=e,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let re=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,r,o){this._viewContainer=e,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const r=this._viewContainer;e.forEachOperation((o,c,h)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new ge(o.item,this._ngForOf,-1,-1),null===h?void 0:h);else if(null==h)r.remove(null===c?void 0:c);else if(null!==c){const y=r.get(c);r.move(y,h),qe(y,o)}});for(let o=0,c=r.length;o{qe(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,r){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function qe(t,n){t.context.$implicit=n.item}let Re=(()=>{class t{constructor(e,r){this._viewContainer=e,this._context=new Ct,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Jr("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Jr("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,r){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class Ct{constructor(){this.$implicit=null,this.ngIf=null}}function Jr(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.\u0275stringify)(n)}'.`)}let gi=(()=>{class t{constructor(e,r,o){this._ngEl=e,this._differs=r,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,r){const[o,c]=e.split("."),h=-1===o.indexOf("-")?void 0:i.RendererStyleFlags2.DashCase;null!=r?this._renderer.setStyle(this._ngEl.nativeElement,o,c?`${r}${c}`:r,h):this._renderer.removeStyle(this._ngEl.nativeElement,o,h)}_applyChanges(e){e.forEachRemovedItem(r=>this._setStyle(r.key,null)),e.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),e.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.KeyValueDiffers),i.\u0275\u0275directiveInject(i.Renderer2))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),Qt=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:c,ngTemplateOutletInjector:h}=this;this._viewRef=r.createEmbeddedView(o,c,h?{injector:h}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[i.\u0275\u0275NgOnChangesFeature]}),t})();function rn(t,n){return new i.\u0275RuntimeError(2100,!1)}const Ye=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let fn=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw rn();return e.replace(Ye,r=>r[0].toUpperCase()+r.slice(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.\u0275\u0275definePipe({name:"titlecase",type:t,pure:!0,standalone:!0}),t})();const pn=new i.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE"),qc=new i.InjectionToken("DATE_PIPE_DEFAULT_OPTIONS");let mn=(()=>{class t{constructor(e,r,o){this.locale=e,this.defaultTimezone=r,this.defaultOptions=o}transform(e,r,o,c){if(null==e||""===e||e!=e)return null;try{return ov(e,r??this.defaultOptions?.dateFormat??"mediumDate",c||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(h){throw rn()}}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16),i.\u0275\u0275directiveInject(pn,24),i.\u0275\u0275directiveInject(qc,24))},t.\u0275pipe=i.\u0275\u0275definePipe({name:"date",type:t,pure:!0,standalone:!0}),t})(),Nt=(()=>{class t{transform(e){return JSON.stringify(e,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.\u0275\u0275definePipe({name:"json",type:t,pure:!1,standalone:!0}),t})(),ot=(()=>{class t{transform(e,r,o){if(null==e)return null;if(!this.supports(e))throw rn();return e.slice(r,o)}supports(e){return"string"==typeof e||Array.isArray(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.\u0275\u0275definePipe({name:"slice",type:t,pure:!1,standalone:!0}),t})(),Ke=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({}),t})();const Ss="browser";function Vo(t){return t===Ss}let lv=(()=>{class t{}return t.\u0275prov=(0,i.\u0275\u0275defineInjectable)({token:t,providedIn:"root",factory:()=>new lr((0,i.\u0275\u0275inject)(W),window)}),t})();class lr{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function Xl(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const c=o.shadowRoot;if(c){const h=c.getElementById(n)||c.querySelector(`[name="${n}"]`);if(h)return h}o=r.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),r=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,c=this.offset();this.window.scrollTo(r-c[0],o-c[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=Rr(this.window.history)||Rr(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Rr(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class dd extends H{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Oa extends dd{static makeCurrent(){!function B(t){S||(S=t)}(new Oa)}onAndCancel(n,e,r){return n.addEventListener(e,r,!1),()=>{n.removeEventListener(e,r,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function ka(){return bi=bi||document.querySelector("base"),bi?bi.getAttribute("href"):null}();return null==e?null:function so(t){Wi=Wi||document.createElement("a"),Wi.setAttribute("href",t);const n=Wi.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){bi=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function An(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const r=e.indexOf("="),[o,c]=-1==r?[e,""]:[e.slice(0,r),e.slice(r+1)];if(o.trim()===n)return decodeURIComponent(c)}return null}(document.cookie,n)}}let Wi,bi=null;const Ra=new i.InjectionToken("TRANSITION_ID"),$o=[{provide:i.APP_INITIALIZER,useFactory:function hd(t,n,e){return()=>{e.get(i.ApplicationInitStatus).donePromise.then(()=>{const r=x(),o=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let c=0;c{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const Fa=new i.InjectionToken("EventManagerPlugins");let ao=(()=>{class t{constructor(e,r){this._zone=r,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,r,o){return this._findPluginFor(r).addEventListener(e,r,o)}addGlobalEventListener(e,r,o){return this._findPluginFor(r).addGlobalEventListener(e,r,o)}getZone(){return this._zone}_findPluginFor(e){const r=this._eventNameToPlugin.get(e);if(r)return r;const o=this._plugins;for(let c=0;c{class t{constructor(){this.usageCount=new Map}addStyles(e){for(const r of e)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(e){for(const r of e)0===this.changeUsageCount(r,-1)&&this.onStyleRemoved(r)}onStyleRemoved(e){}onStyleAdded(e){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(e,r){const o=this.usageCount;let c=o.get(e)??0;return c+=r,c>0?o.set(e,c):o.delete(e),c}ngOnDestroy(){for(const e of this.getAllStyles())this.onStyleRemoved(e);this.usageCount.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),Wo=(()=>{class t extends md{constructor(e){super(),this.doc=e,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(e){for(const r of this.hostNodes)this.addStyleToHost(r,e)}onStyleRemoved(e){const r=this.styleRef;r.get(e)?.forEach(c=>c.remove()),r.delete(e)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const r of this.getAllStyles())this.addStyleToHost(e,r)}removeHost(e){this.hostNodes.delete(e)}addStyleToHost(e,r){const o=this.doc.createElement("style");o.textContent=r,e.appendChild(o);const c=this.styleRef.get(r);c?c.push(o):this.styleRef.set(r,[o])}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(W))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const uu={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/"},gd=/%COMP%/g,p="%COMP%",g=`_nghost-${p}`,C=`_ngcontent-${p}`,P=new i.InjectionToken("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Z(t,n){return n.flat(100).map(e=>e.replace(gd,t))}function ie(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let fe=(()=>{class t{constructor(e,r,o,c){this.eventManager=e,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=c,this.rendererByCompId=new Map,this.defaultRenderer=new Fe(e)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;const o=this.getOrCreateRenderer(e,r);return o instanceof lo?o.applyToHost(e):o instanceof Zi&&o.applyStyles(),o}getOrCreateRenderer(e,r){const o=this.rendererByCompId;let c=o.get(r.id);if(!c){const h=this.eventManager,y=this.sharedStylesHost,E=this.removeStylesOnCompDestory;switch(r.encapsulation){case i.ViewEncapsulation.Emulated:c=new lo(h,y,r,this.appId,E);break;case i.ViewEncapsulation.ShadowDom:return new ni(h,y,e,r);default:c=new Zi(h,y,r,E)}c.onDestroy=()=>o.delete(r.id),o.set(r.id,c)}return c}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(ao),i.\u0275\u0275inject(Wo),i.\u0275\u0275inject(i.APP_ID),i.\u0275\u0275inject(P))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();class Fe{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(uu[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(Nr(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(Nr(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let r="string"==typeof n?document.querySelector(n):n;if(!r)throw new Error(`The selector "${n}" did not match any elements`);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,o){if(o){e=o+":"+e;const c=uu[o];c?n.setAttributeNS(c,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){const o=uu[r];o?n.removeAttributeNS(o,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,o){o&(i.RendererStyleFlags2.DashCase|i.RendererStyleFlags2.Important)?n.style.setProperty(e,r,o&i.RendererStyleFlags2.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&i.RendererStyleFlags2.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n[e]=r}setValue(n,e){n.nodeValue=e}listen(n,e,r){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,ie(r)):this.eventManager.addEventListener(n,e,ie(r))}}function Nr(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class ni extends Fe{constructor(n,e,r,o){super(n),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=Z(o.id,o.styles);for(const h of c){const y=document.createElement("style");y.textContent=h,this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Zi extends Fe{constructor(n,e,r,o,c=r.id){super(n),this.sharedStylesHost=e,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=Z(c,r.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class lo extends Zi{constructor(n,e,r,o,c){const h=o+"-"+r.id;super(n,e,r,c,h),this.contentAttr=function F(t){return C.replace(gd,t)}(h),this.hostAttr=function G(t){return g.replace(gd,t)}(h)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}}let cu=(()=>{class t extends pd{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,o){return e.addEventListener(r,o,!1),()=>this.removeEventListener(e,r,o)}removeEventListener(e,r,o){return e.removeEventListener(r,o)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(W))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const du=["alt","control","meta","shift"],hu={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Na={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Ap=(()=>{class t extends pd{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,r,o){const c=t.parseEventName(r),h=t.eventCallback(c.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>x().onAndCancel(e,c.domEventName,h))}static parseEventName(e){const r=e.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const c=t._normalizeKey(r.pop());let h="",y=r.indexOf("code");if(y>-1&&(r.splice(y,1),h="code."),du.forEach(M=>{const A=r.indexOf(M);A>-1&&(r.splice(A,1),h+=M+".")}),h+=c,0!=r.length||0===c.length)return null;const E={};return E.domEventName=o,E.fullKey=h,E}static matchEventFullKeyCode(e,r){let o=hu[e.key]||e.key,c="";return r.indexOf("code.")>-1&&(o=e.code,c="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),du.forEach(h=>{h!==o&&(0,Na[h])(e)&&(c+=h+".")}),c+=o,c===r)}static eventCallback(e,r,o){return c=>{t.matchEventFullKeyCode(c,e)&&o.runGuarded(()=>r(c))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(W))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const hv=(0,i.createPlatformFactory)(i.platformCore,"browser",[{provide:i.PLATFORM_ID,useValue:Ss},{provide:i.PLATFORM_INITIALIZER,useValue:function Va(){Oa.makeCurrent()},multi:!0},{provide:W,useFactory:function _d(){return(0,i.\u0275setDocument)(document),document},deps:[]}]),ks=new i.InjectionToken(""),fv=[{provide:i.\u0275TESTABILITY_GETTER,useClass:class Go{addToWindow(n){i.\u0275global.getAngularTestability=(r,o=!0)=>{const c=n.findTestabilityInTree(r,o);if(null==c)throw new Error("Could not find testability for element.");return c},i.\u0275global.getAllAngularTestabilities=()=>n.getAllTestabilities(),i.\u0275global.getAllAngularRootElements=()=>n.getAllRootElements(),i.\u0275global.frameworkStabilizers||(i.\u0275global.frameworkStabilizers=[]),i.\u0275global.frameworkStabilizers.push(r=>{const o=i.\u0275global.getAllAngularTestabilities();let c=o.length,h=!1;const y=function(E){h=h||E,c--,0==c&&r(h)};o.forEach(function(E){E.whenStable(y)})})}findTestabilityInTree(n,e,r){return null==e?null:n.getTestability(e)??(r?x().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:i.\u0275TESTABILITY,useClass:i.Testability,deps:[i.NgZone,i.TestabilityRegistry,i.\u0275TESTABILITY_GETTER]},{provide:i.Testability,useClass:i.Testability,deps:[i.NgZone,i.TestabilityRegistry,i.\u0275TESTABILITY_GETTER]}],Op=[{provide:i.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:i.ErrorHandler,useFactory:function hr(){return new i.ErrorHandler},deps:[]},{provide:Fa,useClass:cu,multi:!0,deps:[W,i.NgZone,i.PLATFORM_ID]},{provide:Fa,useClass:Ap,multi:!0,deps:[W]},{provide:fe,useClass:fe,deps:[ao,Wo,i.APP_ID,P]},{provide:i.RendererFactory2,useExisting:fe},{provide:md,useExisting:Wo},{provide:Wo,useClass:Wo,deps:[W]},{provide:ao,useClass:ao,deps:[Fa,i.NgZone]},{provide:class eu{},useClass:fd,deps:[]},[]];let mu=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:i.APP_ID,useValue:e.appId},{provide:Ra,useExisting:i.APP_ID},$o]}}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(ks,12))},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({providers:[...Op,...fv],imports:[Ke,i.ApplicationModule]}),t})(),kp=(()=>{class t{constructor(e){this._doc=e,this._dom=x()}addTag(e,r=!1){return e?this._getOrCreateElement(e,r):null}addTags(e,r=!1){return e?e.reduce((o,c)=>(c&&o.push(this._getOrCreateElement(c,r)),o),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const r=this._doc.querySelectorAll(`meta[${e}]`);return r?[].slice.call(r):[]}updateTag(e,r){if(!e)return null;r=r||this._parseSelector(e);const o=this.getTag(r);return o?this._setMetaElementAttributes(e,o):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,r=!1){if(!r){const h=this._parseSelector(e),y=this.getTags(h).filter(E=>this._containsAttributes(e,E))[0];if(void 0!==y)return y}const o=this._dom.createElement("meta");return this._setMetaElementAttributes(e,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(e,r){return Object.keys(e).forEach(o=>r.setAttribute(this._getMetaKeyMap(o),e[o])),r}_parseSelector(e){const r=e.name?"name":"property";return`${r}="${e[r]}"`}_containsAttributes(e,r){return Object.keys(e).every(o=>r.getAttribute(this._getMetaKeyMap(o))===e[o])}_getMetaKeyMap(e){return Rp[e]||e}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(W))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(e){let r=null;return r=e?new e:function Zw(){return new kp((0,i.\u0275\u0275inject)(W))}(),r},providedIn:"root"}),t})();const Rp={httpEquiv:"http-equiv"};let uo=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(W))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(e){let r=null;return r=e?new e:function ja(){return new uo((0,i.\u0275\u0275inject)(W))}(),r},providedIn:"root"}),t})();typeof window<"u"&&window;let Zo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(e){let r=null;return r=e?new(e||t):i.\u0275\u0275inject(_u),r},providedIn:"root"}),t})(),_u=(()=>{class t extends Zo{constructor(e){super(),this._doc=e}sanitize(e,r){if(null==r)return null;switch(e){case i.SecurityContext.NONE:return r;case i.SecurityContext.HTML:return(0,i.\u0275allowSanitizationBypassAndThrow)(r,"HTML")?(0,i.\u0275unwrapSafeValue)(r):(0,i.\u0275_sanitizeHtml)(this._doc,String(r)).toString();case i.SecurityContext.STYLE:return(0,i.\u0275allowSanitizationBypassAndThrow)(r,"Style")?(0,i.\u0275unwrapSafeValue)(r):r;case i.SecurityContext.SCRIPT:if((0,i.\u0275allowSanitizationBypassAndThrow)(r,"Script"))return(0,i.\u0275unwrapSafeValue)(r);throw new Error("unsafe value used in a script context");case i.SecurityContext.URL:return(0,i.\u0275allowSanitizationBypassAndThrow)(r,"URL")?(0,i.\u0275unwrapSafeValue)(r):(0,i.\u0275_sanitizeUrl)(String(r));case i.SecurityContext.RESOURCE_URL:if((0,i.\u0275allowSanitizationBypassAndThrow)(r,"ResourceURL"))return(0,i.\u0275unwrapSafeValue)(r);throw new Error(`unsafe value used in a resource URL context (see ${i.\u0275XSS_SECURITY_URL})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${i.\u0275XSS_SECURITY_URL})`)}}bypassSecurityTrustHtml(e){return(0,i.\u0275bypassSanitizationTrustHtml)(e)}bypassSecurityTrustStyle(e){return(0,i.\u0275bypassSanitizationTrustStyle)(e)}bypassSecurityTrustScript(e){return(0,i.\u0275bypassSanitizationTrustScript)(e)}bypassSecurityTrustUrl(e){return(0,i.\u0275bypassSanitizationTrustUrl)(e)}bypassSecurityTrustResourceUrl(e){return(0,i.\u0275bypassSanitizationTrustResourceUrl)(e)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(W))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(e){let r=null;return r=e?new e:function pv(t){return new _u(t.get(W))}(i.\u0275\u0275inject(i.Injector)),r},providedIn:"root"}),t})();function vu(t){return(vu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(t)}function _(t,n,e){return(n=function Yw(t){var n=function HM(t,n){if("object"!==vu(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!==vu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===vu(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}let co={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Qw=/[&<>"']/,mv=new RegExp(Qw.source,"g"),gv=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Kw=new RegExp(gv.source,"g"),Jw={"&":"&","<":"<",">":">",'"':""","'":"'"},_v=t=>Jw[t];function Gn(t,n){if(n){if(Qw.test(t))return t.replace(mv,_v)}else if(gv.test(t))return t.replace(Kw,_v);return t}const vv=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function bd(t){return t.replace(vv,(n,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):"")}const Cd=/(^|[^\[])\^/g;function _t(t,n){t="string"==typeof t?t:t.source,n=n||"";const e={replace:(r,o)=>(o=(o=o.source||o).replace(Cd,"$1"),t=t.replace(r,o),e),getRegex:()=>new RegExp(t,n)};return e}const yu=/[^\w:]/g,wd=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Fs(t,n,e){if(t){let r;try{r=decodeURIComponent(bd(e)).replace(yu,"").toLowerCase()}catch{return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}n&&!wd.test(e)&&(e=function bv(t,n){bu[" "+t]||(bu[" "+t]=yv.test(t)?t+"/":ho(t,"/",!0));const e=-1===(t=bu[" "+t]).indexOf(":");return"//"===n.substring(0,2)?e?n:t.replace(Cu,"$1")+n:"/"===n.charAt(0)?e?n:t.replace(Ed,"$1")+n:t+n}(n,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const bu={},yv=/^[^:]+:\/*[^/]*$/,Cu=/^([^:]+:)[\s\S]*$/,Ed=/^([^:]+:\/*[^/]*)[\s\S]*$/,Dd={exec:function(){}};function Vp(t,n){const r=t.replace(/\|/g,(c,h,y)=>{let E=!1,M=h;for(;--M>=0&&"\\"===y[M];)E=!E;return E?"|":" |"}).split(/ \|/);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>n)r.splice(n);else for(;r.length1;)1&n&&(e+=t),n>>=1,t+=t;return e+t}function jp(t,n,e,r){const o=n.href,c=n.title?Gn(n.title):null,h=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){r.state.inLink=!0;const y={type:"link",raw:e,href:o,title:c,text:h,tokens:r.inlineTokens(h)};return r.state.inLink=!1,y}return{type:"image",raw:e,href:o,title:c,text:Gn(h)}}class wv{constructor(n){this.options=n||co}space(n){const e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){const e=this.rules.block.code.exec(n);if(e){const r=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?r:ho(r,"\n")}}}fences(n){const e=this.rules.block.fences.exec(n);if(e){const r=e[0],o=function Cv(t,n){const e=t.match(/^(\s+)(?:```)/);if(null===e)return n;const r=e[1];return n.split("\n").map(o=>{const c=o.match(/^\s+/);if(null===c)return o;const[h]=c;return h.length>=r.length?o.slice(r.length):o}).join("\n")}(r,e[3]||"");return{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline._escapes,"$1"):e[2],text:o}}}heading(n){const e=this.rules.block.heading.exec(n);if(e){let r=e[2].trim();if(/#$/.test(r)){const o=ho(r,"#");(this.options.pedantic||!o||/ $/.test(o))&&(r=o.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(n){const e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:e[0]}}blockquote(n){const e=this.rules.block.blockquote.exec(n);if(e){const r=e[0].replace(/^ *>[ \t]?/gm,""),o=this.lexer.state.top;this.lexer.state.top=!0;const c=this.lexer.blockTokens(r);return this.lexer.state.top=o,{type:"blockquote",raw:e[0],tokens:c,text:r}}}list(n){let e=this.rules.block.list.exec(n);if(e){let r,o,c,h,y,E,M,A,k,j,V,K,se=e[1].trim();const ae=se.length>1,de={type:"list",raw:"",ordered:ae,start:ae?+se.slice(0,-1):"",loose:!1,items:[]};se=ae?`\\d{1,9}\\${se.slice(-1)}`:`\\${se}`,this.options.pedantic&&(se=ae?se:"[*+-]");const ye=new RegExp(`^( {0,3}${se})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;n&&(K=!1,(e=ye.exec(n))&&!this.rules.block.hr.test(n));){if(r=e[0],n=n.substring(r.length),A=e[2].split("\n",1)[0].replace(/^\t+/,tt=>" ".repeat(3*tt.length)),k=n.split("\n",1)[0],this.options.pedantic?(h=2,V=A.trimLeft()):(h=e[2].search(/[^ ]/),h=h>4?1:h,V=A.slice(h),h+=e[1].length),E=!1,!A&&/^ *$/.test(k)&&(r+=k+"\n",n=n.substring(k.length+1),K=!0),!K){const tt=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),pt=new RegExp(`^ {0,${Math.min(3,h-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),He=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:\`\`\`|~~~)`),dt=new RegExp(`^ {0,${Math.min(3,h-1)}}#`);for(;n&&(j=n.split("\n",1)[0],k=j,this.options.pedantic&&(k=k.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(He.test(k)||dt.test(k)||tt.test(k)||pt.test(n)));){if(k.search(/[^ ]/)>=h||!k.trim())V+="\n"+k.slice(h);else{if(E||A.search(/[^ ]/)>=4||He.test(A)||dt.test(A)||pt.test(A))break;V+="\n"+k}!E&&!k.trim()&&(E=!0),r+=j+"\n",n=n.substring(j.length+1),A=k.slice(h)}}de.loose||(M?de.loose=!0:/\n *\n *$/.test(r)&&(M=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(V),o&&(c="[ ] "!==o[0],V=V.replace(/^\[[ xX]\] +/,""))),de.items.push({type:"list_item",raw:r,task:!!o,checked:c,loose:!1,text:V}),de.raw+=r}de.items[de.items.length-1].raw=r.trimRight(),de.items[de.items.length-1].text=V.trimRight(),de.raw=de.raw.trimRight();const lt=de.items.length;for(y=0;y"space"===He.type),pt=tt.length>0&&tt.some(He=>/\n.*\n/.test(He.raw));de.loose=pt}if(de.loose)for(y=0;y$/,"$1").replace(this.rules.inline._escapes,"$1"):"",c=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline._escapes,"$1"):e[3];return{type:"def",tag:r,raw:e[0],href:o,title:c}}}table(n){const e=this.rules.block.table.exec(n);if(e){const r={type:"table",header:Vp(e[1]).map(o=>({text:o})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=e[0];let c,h,y,E,o=r.align.length;for(c=0;c({text:M}));for(o=r.header.length,h=0;h/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):Gn(e[0]):e[0]}}link(n){const e=this.rules.inline.link.exec(n);if(e){const r=e[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;const h=ho(r.slice(0,-1),"\\");if((r.length-h.length)%2==0)return}else{const h=function wu(t,n){if(-1===t.indexOf(n[1]))return-1;const e=t.length;let r=0,o=0;for(;o-1){const E=(0===e[0].indexOf("!")?5:4)+e[1].length+h;e[2]=e[2].substring(0,h),e[0]=e[0].substring(0,E).trim(),e[3]=""}}let o=e[2],c="";if(this.options.pedantic){const h=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);h&&(o=h[1],c=h[3])}else c=e[3]?e[3].slice(1,-1):"";return o=o.trim(),/^$/.test(r)?o.slice(1):o.slice(1,-1)),jp(e,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:c&&c.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}reflink(n,e){let r;if((r=this.rules.inline.reflink.exec(n))||(r=this.rules.inline.nolink.exec(n))){let o=(r[2]||r[1]).replace(/\s+/g," ");if(o=e[o.toLowerCase()],!o){const c=r[0].charAt(0);return{type:"text",raw:c,text:c}}return jp(r,o,r[0],this.lexer)}}emStrong(n,e,r=""){let o=this.rules.inline.emStrong.lDelim.exec(n);if(!o||o[3]&&r.match(/[\p{L}\p{N}]/u))return;const c=o[1]||o[2]||"";if(!c||c&&(""===r||this.rules.inline.punctuation.exec(r))){const h=o[0].length-1;let y,E,M=h,A=0;const k="*"===o[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(k.lastIndex=0,e=e.slice(-1*n.length+h);null!=(o=k.exec(e));){if(y=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!y)continue;if(E=y.length,o[3]||o[4]){M+=E;continue}if((o[5]||o[6])&&h%3&&!((h+E)%3)){A+=E;continue}if(M-=E,M>0)continue;E=Math.min(E,E+M+A);const j=n.slice(0,h+o.index+(o[0].length-y.length)+E);if(Math.min(h,E)%2){const K=j.slice(1,-1);return{type:"em",raw:j,text:K,tokens:this.lexer.inlineTokens(K)}}const V=j.slice(2,-2);return{type:"strong",raw:j,text:V,tokens:this.lexer.inlineTokens(V)}}}}codespan(n){const e=this.rules.inline.code.exec(n);if(e){let r=e[2].replace(/\n/g," ");const o=/[^ ]/.test(r),c=/^ /.test(r)&&/ $/.test(r);return o&&c&&(r=r.substring(1,r.length-1)),r=Gn(r,!0),{type:"codespan",raw:e[0],text:r}}}br(n){const e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n){const e=this.rules.inline.del.exec(n);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(n,e){const r=this.rules.inline.autolink.exec(n);if(r){let o,c;return"@"===r[2]?(o=Gn(this.options.mangle?e(r[1]):r[1]),c="mailto:"+o):(o=Gn(r[1]),c=o),{type:"link",raw:r[0],text:o,href:c,tokens:[{type:"text",raw:o,text:o}]}}}url(n,e){let r;if(r=this.rules.inline.url.exec(n)){let o,c;if("@"===r[2])o=Gn(this.options.mangle?e(r[0]):r[0]),c="mailto:"+o;else{let h;do{h=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(h!==r[0]);o=Gn(r[0]),c="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:o,href:c,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(n,e){const r=this.rules.inline.text.exec(n);if(r){let o;return o=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Gn(r[0]):r[0]:Gn(this.options.smartypants?e(r[0]):r[0]),{type:"text",raw:r[0],text:o}}}}const Oe={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Dd,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Oe.def=_t(Oe.def).replace("label",Oe._label).replace("title",Oe._title).getRegex(),Oe.bullet=/(?:[*+-]|\d{1,9}[.)])/,Oe.listItemStart=_t(/^( *)(bull) */).replace("bull",Oe.bullet).getRegex(),Oe.list=_t(Oe.list).replace(/bull/g,Oe.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Oe.def.source+")").getRegex(),Oe._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Oe._comment=/|$)/,Oe.html=_t(Oe.html,"i").replace("comment",Oe._comment).replace("tag",Oe._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Oe.paragraph=_t(Oe._paragraph).replace("hr",Oe.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Oe._tag).getRegex(),Oe.blockquote=_t(Oe.blockquote).replace("paragraph",Oe.paragraph).getRegex(),Oe.normal={...Oe},Oe.gfm={...Oe.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Oe.gfm.table=_t(Oe.gfm.table).replace("hr",Oe.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Oe._tag).getRegex(),Oe.gfm.paragraph=_t(Oe._paragraph).replace("hr",Oe.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Oe.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Oe._tag).getRegex(),Oe.pedantic={...Oe.normal,html:_t("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Oe._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Dd,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:_t(Oe.normal._paragraph).replace("hr",Oe.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Oe.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const ve={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Dd,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Dd,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}ve._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",ve.punctuation=_t(ve.punctuation).replace(/punctuation/g,ve._punctuation).getRegex(),ve.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,ve.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,ve._comment=_t(Oe._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),ve.emStrong.lDelim=_t(ve.emStrong.lDelim).replace(/punct/g,ve._punctuation).getRegex(),ve.emStrong.rDelimAst=_t(ve.emStrong.rDelimAst,"g").replace(/punct/g,ve._punctuation).getRegex(),ve.emStrong.rDelimUnd=_t(ve.emStrong.rDelimUnd,"g").replace(/punct/g,ve._punctuation).getRegex(),ve._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ve._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ve._email=/[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])?)+(?![-_])/,ve.autolink=_t(ve.autolink).replace("scheme",ve._scheme).replace("email",ve._email).getRegex(),ve._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ve.tag=_t(ve.tag).replace("comment",ve._comment).replace("attribute",ve._attribute).getRegex(),ve._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ve._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,ve._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ve.link=_t(ve.link).replace("label",ve._label).replace("href",ve._href).replace("title",ve._title).getRegex(),ve.reflink=_t(ve.reflink).replace("label",ve._label).replace("ref",Oe._label).getRegex(),ve.nolink=_t(ve.nolink).replace("ref",Oe._label).getRegex(),ve.reflinkSearch=_t(ve.reflinkSearch,"g").replace("reflink",ve.reflink).replace("nolink",ve.nolink).getRegex(),ve.normal={...ve},ve.pedantic={...ve.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:_t(/^!?\[(label)\]\((.*?)\)/).replace("label",ve._label).getRegex(),reflink:_t(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ve._label).getRegex()},ve.gfm={...ve.normal,escape:_t(ve.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\E+" ".repeat(M.length));n;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(y=>!!(r=y.call({lexer:this},n,e))&&(n=n.substring(r.raw.length),e.push(r),!0)))){if(r=this.tokenizer.space(n)){n=n.substring(r.raw.length),1===r.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(r);continue}if(r=this.tokenizer.code(n)){n=n.substring(r.raw.length),o=e[e.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?e.push(r):(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(r=this.tokenizer.fences(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.heading(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.hr(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.blockquote(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.list(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.html(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.def(n)){n=n.substring(r.raw.length),o=e[e.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(o.raw+="\n"+r.raw,o.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(r=this.tokenizer.table(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.lheading(n)){n=n.substring(r.raw.length),e.push(r);continue}if(c=n,this.options.extensions&&this.options.extensions.startBlock){let y=1/0;const E=n.slice(1);let M;this.options.extensions.startBlock.forEach(function(A){M=A.call({lexer:this},E),"number"==typeof M&&M>=0&&(y=Math.min(y,M))}),y<1/0&&y>=0&&(c=n.substring(0,y+1))}if(this.state.top&&(r=this.tokenizer.paragraph(c))){o=e[e.length-1],h&&"paragraph"===o.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(r),h=c.length!==n.length,n=n.substring(r.raw.length);continue}if(r=this.tokenizer.text(n)){n=n.substring(r.raw.length),o=e[e.length-1],o&&"text"===o.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(r);continue}if(n){const y="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(y);break}throw new Error(y)}}return this.state.top=!0,e}inline(n,e=[]){return this.inlineQueue.push({src:n,tokens:e}),e}inlineTokens(n,e=[]){let r,o,c,y,E,M,h=n;if(this.tokens.links){const A=Object.keys(this.tokens.links);if(A.length>0)for(;null!=(y=this.tokenizer.rules.inline.reflinkSearch.exec(h));)A.includes(y[0].slice(y[0].lastIndexOf("[")+1,-1))&&(h=h.slice(0,y.index)+"["+eE("a",y[0].length-2)+"]"+h.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(y=this.tokenizer.rules.inline.blockSkip.exec(h));)h=h.slice(0,y.index)+"["+eE("a",y[0].length-2)+"]"+h.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(y=this.tokenizer.rules.inline.escapedEmSt.exec(h));)h=h.slice(0,y.index+y[0].length-2)+"++"+h.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;n;)if(E||(M=""),E=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(A=>!!(r=A.call({lexer:this},n,e))&&(n=n.substring(r.raw.length),e.push(r),!0)))){if(r=this.tokenizer.escape(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.tag(n)){n=n.substring(r.raw.length),o=e[e.length-1],o&&"text"===r.type&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):e.push(r);continue}if(r=this.tokenizer.link(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(r.raw.length),o=e[e.length-1],o&&"text"===r.type&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):e.push(r);continue}if(r=this.tokenizer.emStrong(n,h,M)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.codespan(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.br(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.del(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.autolink(n,Eu)){n=n.substring(r.raw.length),e.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(n,Eu))){n=n.substring(r.raw.length),e.push(r);continue}if(c=n,this.options.extensions&&this.options.extensions.startInline){let A=1/0;const k=n.slice(1);let j;this.options.extensions.startInline.forEach(function(V){j=V.call({lexer:this},k),"number"==typeof j&&j>=0&&(A=Math.min(A,j))}),A<1/0&&A>=0&&(c=n.substring(0,A+1))}if(r=this.tokenizer.inlineText(c,tE)){n=n.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(M=r.raw.slice(-1)),E=!0,o=e[e.length-1],o&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):e.push(r);continue}if(n){const A="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(A);break}throw new Error(A)}}return e}}class Hp{constructor(n){this.options=n||co}code(n,e,r){const o=(e||"").match(/\S*/)[0];if(this.options.highlight){const c=this.options.highlight(n,o);null!=c&&c!==n&&(r=!0,n=c)}return n=n.replace(/\n$/,"")+"\n",o?'
    '+(r?n:Gn(n,!0))+"
    \n":"
    "+(r?n:Gn(n,!0))+"
    \n"}blockquote(n){return`
    \n${n}
    \n`}html(n){return n}heading(n,e,r,o){return this.options.headerIds?`${n}\n`:`${n}\n`}hr(){return this.options.xhtml?"
    \n":"
    \n"}list(n,e,r){const o=e?"ol":"ul";return"<"+o+(e&&1!==r?' start="'+r+'"':"")+">\n"+n+"\n"}listitem(n){return`
  • ${n}
  • \n`}checkbox(n){return" "}paragraph(n){return`

    ${n}

    \n`}table(n,e){return e&&(e=`${e}`),"\n\n"+n+"\n"+e+"
    \n"}tablerow(n){return`\n${n}\n`}tablecell(n,e){const r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+n+`\n`}strong(n){return`${n}`}em(n){return`${n}`}codespan(n){return`${n}`}br(){return this.options.xhtml?"
    ":"
    "}del(n){return`${n}`}link(n,e,r){if(null===(n=Fs(this.options.sanitize,this.options.baseUrl,n)))return r;let o='",o}image(n,e,r){if(null===(n=Fs(this.options.sanitize,this.options.baseUrl,n)))return r;let o=`${r}":">",o}text(n){return n}}class Sd{strong(n){return n}em(n){return n}codespan(n){return n}del(n){return n}html(n){return n}text(n){return n}link(n,e,r){return""+r}image(n,e,r){return""+r}br(){return""}}class nE{constructor(){this.seen={}}serialize(n){return n.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(n,e){let r=n,o=0;if(this.seen.hasOwnProperty(r)){o=this.seen[n];do{o++,r=n+"-"+o}while(this.seen.hasOwnProperty(r))}return e||(this.seen[n]=o,this.seen[r]=0),r}slug(n,e={}){const r=this.serialize(n);return this.getNextSafeSlug(r,e.dryrun)}}class po{constructor(n){this.options=n||co,this.options.renderer=this.options.renderer||new Hp,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Sd,this.slugger=new nE}static parse(n,e){return new po(e).parse(n)}static parseInline(n,e){return new po(e).parseInline(n)}parse(n,e=!0){let o,c,h,y,E,M,A,k,j,V,K,se,ae,de,ye,lt,tt,pt,He,r="";const dt=n.length;for(o=0;o0&&"paragraph"===ye.tokens[0].type?(ye.tokens[0].text=pt+" "+ye.tokens[0].text,ye.tokens[0].tokens&&ye.tokens[0].tokens.length>0&&"text"===ye.tokens[0].tokens[0].type&&(ye.tokens[0].tokens[0].text=pt+" "+ye.tokens[0].tokens[0].text)):ye.tokens.unshift({type:"text",text:pt}):de+=pt),de+=this.parse(ye.tokens,ae),j+=this.renderer.listitem(de,tt,lt);r+=this.renderer.list(j,K,se);continue;case"html":r+=this.renderer.html(V.text);continue;case"paragraph":r+=this.renderer.paragraph(this.parseInline(V.tokens));continue;case"text":for(j=V.tokens?this.parseInline(V.tokens):V.text;o+1{"function"==typeof r&&(o=r,r=null);const c={...r},h=function Ev(t,n,e){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",t){const o="

    An error occurred:

    "+Gn(r.message+"",!0)+"
    ";return n?Promise.resolve(o):e?void e(null,o):o}if(n)return Promise.reject(r);if(!e)throw r;e(r)}}((r={...Le.defaults,...c}).silent,r.async,o);if(typeof e>"u"||null===e)return h(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return h(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(function Xw(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(r),r.hooks&&(r.hooks.options=r),o){const y=r.highlight;let E;try{r.hooks&&(e=r.hooks.preprocess(e)),E=t(e,r)}catch(k){return h(k)}const M=function(k){let j;if(!k)try{r.walkTokens&&Le.walkTokens(E,r.walkTokens),j=n(E,r),r.hooks&&(j=r.hooks.postprocess(j))}catch(V){k=V}return r.highlight=y,k?h(k):o(null,j)};if(!y||y.length<3||(delete r.highlight,!E.length))return M();let A=0;return Le.walkTokens(E,function(k){"code"===k.type&&(A++,setTimeout(()=>{y(k.text,k.lang,function(j,V){if(j)return M(j);null!=V&&V!==k.text&&(k.text=V,k.escaped=!0),A--,0===A&&M()})},0))}),void(0===A&&M())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(e):e).then(y=>t(y,r)).then(y=>r.walkTokens?Promise.all(Le.walkTokens(y,r.walkTokens)).then(()=>y):y).then(y=>n(y,r)).then(y=>r.hooks?r.hooks.postprocess(y):y).catch(h);try{r.hooks&&(e=r.hooks.preprocess(e));const y=t(e,r);r.walkTokens&&Le.walkTokens(y,r.walkTokens);let E=n(y,r);return r.hooks&&(E=r.hooks.postprocess(E)),E}catch(y){return h(y)}}}function Le(t,n,e){return Up(fo.lex,po.parse)(t,n,e)}_(Td,"passThroughHooks",new Set(["preprocess","postprocess"])),Le.options=Le.setOptions=function(t){return function Ua(t){co=t}(Le.defaults={...Le.defaults,...t}),Le},Le.getDefaults=function Ci(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},Le.defaults=co,Le.use=function(...t){const n=Le.defaults.extensions||{renderers:{},childTokens:{}};t.forEach(e=>{const r={...e};if(r.async=Le.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){const c=n.renderers[o.name];n.renderers[o.name]=c?function(...h){let y=o.renderer.apply(this,h);return!1===y&&(y=c.apply(this,h)),y}:o.renderer}if(o.tokenizer){if(!o.level||"block"!==o.level&&"inline"!==o.level)throw new Error("extension level must be 'block' or 'inline'");n[o.level]?n[o.level].unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&("block"===o.level?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:"inline"===o.level&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),r.extensions=n),e.renderer){const o=Le.defaults.renderer||new Hp;for(const c in e.renderer){const h=o[c];o[c]=(...y)=>{let E=e.renderer[c].apply(o,y);return!1===E&&(E=h.apply(o,y)),E}}r.renderer=o}if(e.tokenizer){const o=Le.defaults.tokenizer||new wv;for(const c in e.tokenizer){const h=o[c];o[c]=(...y)=>{let E=e.tokenizer[c].apply(o,y);return!1===E&&(E=h.apply(o,y)),E}}r.tokenizer=o}if(e.hooks){const o=Le.defaults.hooks||new Td;for(const c in e.hooks){const h=o[c];o[c]=Td.passThroughHooks.has(c)?y=>{if(Le.defaults.async)return Promise.resolve(e.hooks[c].call(o,y)).then(M=>h.call(o,M));const E=e.hooks[c].call(o,y);return h.call(o,E)}:(...y)=>{let E=e.hooks[c].apply(o,y);return!1===E&&(E=h.apply(o,y)),E}}r.hooks=o}if(e.walkTokens){const o=Le.defaults.walkTokens;r.walkTokens=function(c){let h=[];return h.push(e.walkTokens.call(this,c)),o&&(h=h.concat(o.call(this,c))),h}}Le.setOptions(r)})},Le.walkTokens=function(t,n){let e=[];for(const r of t)switch(e=e.concat(n.call(Le,r)),r.type){case"table":for(const o of r.header)e=e.concat(Le.walkTokens(o.tokens,n));for(const o of r.rows)for(const c of o)e=e.concat(Le.walkTokens(c.tokens,n));break;case"list":e=e.concat(Le.walkTokens(r.items,n));break;default:Le.defaults.extensions&&Le.defaults.extensions.childTokens&&Le.defaults.extensions.childTokens[r.type]?Le.defaults.extensions.childTokens[r.type].forEach(function(o){e=e.concat(Le.walkTokens(r[o],n))}):r.tokens&&(e=e.concat(Le.walkTokens(r.tokens,n)))}return e},Le.parseInline=Up(fo.lexInline,po.parseInline),Le.Parser=po,Le.parser=po.parse,Le.Renderer=Hp,Le.TextRenderer=Sd,Le.Lexer=fo,Le.lexer=fo.lex,Le.Tokenizer=wv,Le.Slugger=nE,Le.Hooks=Td,Le.parse=Le;var zp=R(153);function Sv(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"pre")(1,"code"),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.codeSnippet)}}function $p(t,n){if(1&t&&i.\u0275\u0275element(0,"div",3),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("innerHTML",e.codeSnippet,i.\u0275\u0275sanitizeHtml)}}let Tt=(()=>{class t{constructor(e,r,o){_(this,"platformId",void 0),_(this,"el",void 0),_(this,"highlightJsService",void 0),_(this,"setClass",!0),_(this,"codeSnippet",void 0),_(this,"processMarkdown",!1),_(this,"scrollable",!0),this.platformId=e,this.el=r,this.highlightJsService=o}ngOnChanges(){this.processMarkdown&&(this.codeSnippet=Le(this.codeSnippet))}ngAfterViewInit(){if(Vo(this.platformId)){const e=this.el.nativeElement.querySelectorAll("pre");for(const r of e)r.classList.contains("a-pre")||(r.className+=" a-pre",this.scrollable&&(r.className+=" a-pre--scrollable")),this.highlightJsService.highlight(r)}}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.PLATFORM_ID),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(zp.vp))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-code-snippet"]],hostVars:2,hostBindings:function(e,r){2&e&&i.\u0275\u0275classProp("ngx-code-snippet",r.setClass)},inputs:{codeSnippet:"codeSnippet",processMarkdown:"processMarkdown",scrollable:"scrollable"},features:[i.\u0275\u0275NgOnChangesFeature],decls:3,vars:2,consts:[[1,"aui-code-snippet__inner"],[4,"ngIf"],["class","code-snippet-md",3,"innerHTML",4,"ngIf"],[1,"code-snippet-md",3,"innerHTML"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,Sv,3,1,"pre",1),i.\u0275\u0275template(2,$p,1,1,"div",2),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.processMarkdown),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.processMarkdown))},dependencies:[Re],encapsulation:2,changeDetection:0})),t})();var yn=R(254),Md=R(866),pr=R(9),iE=R(454);function ke(...t){let n=t[t.length-1];return(0,Md.K)(n)?(t.pop(),(0,iE.r)(t,n)):(0,pr.n)(t)}var vt=R(529),Tv=R(279);class wi extends vt.xQ{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Tv.N;return this._value}next(n){super.next(this._value=n)}}const xd=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var Gp=R(688),ii=R(489);class rE extends ii.L{notifyNext(n,e,r,o,c){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class Mv extends ii.L{constructor(n,e,r){super(),this.parent=n,this.outerValue=e,this.outerIndex=r,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var ri=R(249),mr=R(498);function xv(t,n,e,r,o=new Mv(t,e,r)){if(!o.closed)return n instanceof mr.y?n.subscribe(o):(0,ri.s)(n)(o)}const Id={};function Rn(...t){let n,e;return(0,Md.K)(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&(0,Gp.k)(t[0])&&(t=t[0]),(0,pr.n)(t,e).lift(new Du(n))}class Du{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new Iv(n,this.resultSelector))}}class Iv extends rE{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(Id),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let r=0;rt.complete());function Ld(t){return t?function sE(t){return new mr.y(n=>t.schedule(()=>n.complete()))}(t):Ns}function Wp(t){return new mr.y(n=>{let e;try{e=t()}catch(o){return void n.error(o)}return(e?(0,yn.D)(e):Ld()).subscribe(n)})}var aE=R(843);function Su(t,n){return new mr.y(n?e=>n.schedule(Zp,0,{error:t,subscriber:e}):e=>e.error(t))}function Zp({error:t,subscriber:n}){n.error(t)}var Ad=R(762),Xe=R(850),Pi=R(177);function gr(t,n){return"function"==typeof n?e=>e.pipe(gr((r,o)=>(0,yn.D)(t(r,o)).pipe((0,Xe.U)((c,h)=>n(r,c,o,h))))):e=>e.lift(new lE(t))}class lE{constructor(n){this.project=n}call(n,e){return e.subscribe(new qp(n,this.project))}}class qp extends Pi.Ds{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const r=this.index++;try{e=this.project(n,r)}catch(o){return void this.destination.error(o)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const r=new Pi.IY(this),o=this.destination;o.add(r),this.innerSubscription=(0,Pi.ft)(n,r),this.innerSubscription!==r&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const Yp=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function _r(t){return n=>0===t?Ld():n.lift(new Qp(t))}class Qp{constructor(n){if(this.total=n,this.total<0)throw new Yp}call(n,e){return e.subscribe(new Lv(n,this.total))}}class Lv extends ii.L{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,r=++this.count;r<=e&&(this.destination.next(n),r===e&&(this.destination.complete(),this.unsubscribe()))}}function vr(t,n){return function(r){return r.lift(new cE(t,n))}}class cE{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new dE(n,this.predicate,this.thisArg))}}class dE extends ii.L{constructor(n,e,r){super(n),this.predicate=e,this.thisArg=r,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(r){return void this.destination.error(r)}e&&this.destination.next(n)}}var Ei=R(709);function Od(t=null){return n=>n.lift(new hE(t))}class hE{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new fE(n,this.defaultValue))}}class fE extends ii.L{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Kp(t=Xp){return n=>n.lift(new Jp(t))}class Jp{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new Av(n,this.errorFactory))}}class Av extends ii.L{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function Xp(){return new xd}var Ov=R(379);function qo(t,n){const e=arguments.length>=2;return r=>r.pipe(t?vr((o,c)=>t(o,c,r)):Ov.y,_r(1),e?Od(n):Kp(()=>new xd))}function Yo(t,n){return(0,Ei.zg)(t,n,1)}function mo(){}var Bs=R(43);function $t(t,n,e){return function(o){return o.lift(new kv(t,n,e))}}class kv{constructor(n,e,r){this.nextOrObserver=n,this.error=e,this.complete=r}call(n,e){return e.subscribe(new pE(n,this.nextOrObserver,this.error,this.complete))}}class pE extends ii.L{constructor(n,e,r,o){super(n),this._tapNext=mo,this._tapError=mo,this._tapComplete=mo,this._tapError=r||mo,this._tapComplete=o||mo,(0,Bs.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||mo,this._tapError=e.error||mo,this._tapComplete=e.complete||mo)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function $a(t){return function(e){const r=new kd(t),o=e.lift(r);return r.caught=o}}class kd{constructor(n){this.selector=n}call(n,e){return e.subscribe(new mE(n,this.selector,this.caught))}}class mE extends Pi.Ds{constructor(n,e,r){super(n),this.selector=e,this.caught=r}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(c){return void super.error(c)}this._unsubscribeAndRecycle();const r=new Pi.IY(this);this.add(r);const o=(0,Pi.ft)(e,r);o!==r&&this.add(o)}}}function em(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(o){return o.lift(new Rv(t,n,e))}}class Rv{constructor(n,e,r=!1){this.accumulator=n,this.seed=e,this.hasSeed=r}call(n,e){return e.subscribe(new Fv(n,this.accumulator,this.seed,this.hasSeed))}}class Fv extends ii.L{constructor(n,e,r,o){super(n),this.accumulator=e,this._seed=r,this.hasSeed=o,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let r;try{r=this.accumulator(this.seed,n,e)}catch(o){this.destination.error(o)}this.seed=r,this.destination.next(r)}}function Tu(t){return function(e){return 0===t?Ld():e.lift(new Nv(t))}}class Nv{constructor(n){if(this.total=n,this.total<0)throw new Yp}call(n,e){return e.subscribe(new Rd(n,this.total))}}class Rd extends ii.L{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,r=this.total,o=this.count++;e.length0){const r=this.count>=this.total?this.total:this.count,o=this.ring;for(let c=0;c=2;return r=>r.pipe(t?vr((o,c)=>t(o,c,r)):Ov.y,Tu(1),e?Od(n):Kp(()=>new xd))}class tm{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new nm(n,this.predicate,this.inclusive))}}class nm extends ii.L{constructor(n,e,r){super(n),this.predicate=e,this.inclusive=r,this.index=0}_next(n){const e=this.destination;let r;try{r=this.predicate(n,this.index++)}catch(o){return void e.error(o)}this.nextOrComplete(n,r)}nextOrComplete(n,e){const r=this.destination;Boolean(e)?r.next(n):(this.inclusive&&r.next(n),r.complete())}}class xu{constructor(n){this.value=n}call(n,e){return e.subscribe(new gE(n,this.value))}}class gE extends ii.L{constructor(n,e){super(n),this.value=e}_next(n){this.destination.next(this.value)}}var rm=R(654);function om(t){return n=>n.lift(new _E(t))}class _E{constructor(n){this.callback=n}call(n,e){return e.subscribe(new vE(n,this.callback))}}class vE extends ii.L{constructor(n,e){super(n),this.add(new rm.w(e))}}var sm=R(327);const Qe="primary",Qo=Symbol("RouteTitle");class am{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function yr(t){return new am(t)}function yE(t,n,e){const r=e.path.split("/");if(r.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||r.lengthr[c]===o)}return t===n}function Fd(t){return Array.prototype.concat.apply([],t)}function Vv(t){return t.length>0?t[t.length-1]:null}function un(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Vr(t){return(0,i.\u0275isObservable)(t)?t:(0,i.\u0275isPromise)(t)?(0,yn.D)(Promise.resolve(t)):ke(t)}const Iu=!1,jv={exact:function Hv(t,n,e){if(!Vs(t.segments,n.segments)||!qi(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!t.children[r]||!Hv(t.children[r],n.children[r],e))return!1;return!0},subset:Uv},um={exact:function wE(t,n){return go(t,n)},subset:function EE(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>lm(t[e],n[e]))},ignored:()=>!0};function Ko(t,n,e){return jv[e.paths](t.root,n.root,e.matrixParams)&&um[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function Uv(t,n,e){return zv(t,n,n.segments,e)}function zv(t,n,e,r){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Vs(o,e)||n.hasChildren()||!qi(o,e,r))}if(t.segments.length===e.length){if(!Vs(t.segments,e)||!qi(t.segments,e,r))return!1;for(const o in n.children)if(!t.children[o]||!Uv(t.children[o],n.children[o],r))return!1;return!0}{const o=e.slice(0,t.segments.length),c=e.slice(t.segments.length);return!!(Vs(t.segments,o)&&qi(t.segments,o,r)&&t.children[Qe])&&zv(t.children[Qe],n,c,r)}}function qi(t,n,e){return n.every((r,o)=>um[e](t[o].parameters,r.parameters))}class Li{constructor(n=new et([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=yr(this.queryParams)),this._queryParamMap}toString(){return TE.serialize(this)}}class et{constructor(n,e){this.segments=n,this.children=e,this.parent=null,un(e,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bd(this)}}class Pu{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=yr(this.parameters)),this._parameterMap}toString(){return dm(this)}}function Vs(t,n){return t.length===n.length&&t.every((e,r)=>e.path===n[r].path)}let Lu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(){return new Nd},providedIn:"root"}),t})();class Nd{parse(n){const e=new ME(n);return new Li(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${Au(n.root,!0)}`,r=function qM(t){const n=Object.keys(t).map(e=>{const r=t[e];return Array.isArray(r)?r.map(o=>`${js(e)}=${js(o)}`).join("&"):`${js(e)}=${js(r)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${r}${"string"==typeof n.fragment?`#${function _o(t){return encodeURI(t)}(n.fragment)}`:""}`}}const TE=new Nd;function Bd(t){return t.segments.map(n=>dm(n)).join("/")}function Au(t,n){if(!t.hasChildren())return Bd(t);if(n){const e=t.children[Qe]?Au(t.children[Qe],!1):"",r=[];return un(t.children,(o,c)=>{c!==Qe&&r.push(`${c}:${Au(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}{const e=function SE(t,n){let e=[];return un(t.children,(r,o)=>{o===Qe&&(e=e.concat(n(r,o)))}),un(t.children,(r,o)=>{o!==Qe&&(e=e.concat(n(r,o)))}),e}(t,(r,o)=>o===Qe?[Au(t.children[Qe],!1)]:[`${o}:${Au(r,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Qe]?`${Bd(t)}/${e[0]}`:`${Bd(t)}/(${e.join("//")})`}}function $v(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function js(t){return $v(t).replace(/%3B/gi,";")}function Hs(t){return $v(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ou(t){return decodeURIComponent(t)}function cm(t){return Ou(t.replace(/\+/g,"%20"))}function dm(t){return`${Hs(t.path)}${function ZM(t){return Object.keys(t).map(n=>`;${Hs(n)}=${Hs(t[n])}`).join("")}(t.parameters)}`}const YM=/^[^\/()?;=#]+/;function Ga(t){const n=t.match(YM);return n?n[0]:""}const hm=/^[^=?&#]+/,KM=/^[^&#]+/;class ME{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new et([],{}):new et([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[Qe]=new et(n,e)),r}parseSegment(){const n=Ga(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new i.\u0275RuntimeError(4009,Iu);return this.capture(n),new Pu(Ou(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=Ga(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const o=Ga(this.remaining);o&&(r=o,this.capture(r))}n[Ou(e)]=Ou(r)}parseQueryParam(n){const e=function QM(t){const n=t.match(hm);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const h=function Gv(t){const n=t.match(KM);return n?n[0]:""}(this.remaining);h&&(r=h,this.capture(r))}const o=cm(e),c=cm(r);if(n.hasOwnProperty(o)){let h=n[o];Array.isArray(h)||(h=[h],n[o]=h),h.push(c)}else n[o]=c}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Ga(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new i.\u0275RuntimeError(4010,Iu);let c;r.indexOf(":")>-1?(c=r.slice(0,r.indexOf(":")),this.capture(c),this.capture(":")):n&&(c=Qe);const h=this.parseChildren();e[c]=1===Object.keys(h).length?h[Qe]:new et([],h),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new i.\u0275RuntimeError(4011,Iu)}}function fm(t){return t.segments.length>0?new et([],{[Qe]:t}):t}function Vd(t){const n={};for(const r of Object.keys(t.children)){const c=Vd(t.children[r]);(c.segments.length>0||c.hasChildren())&&(n[r]=c)}return function xE(t){if(1===t.numberOfChildren&&t.children[Qe]){const n=t.children[Qe];return new et(t.segments.concat(n.segments),n.children)}return t}(new et(t.segments,n))}function Jo(t){return t instanceof Li}const Wa=!1;function on(t,n,e,r,o){if(0===e.length)return Xo(n.root,n.root,n.root,r,o);const c=function mm(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new pm(!0,0,t);let n=0,e=!1;const r=t.reduce((o,c,h)=>{if("object"==typeof c&&null!=c){if(c.outlets){const y={};return un(c.outlets,(E,M)=>{y[M]="string"==typeof E?E.split("/"):E}),[...o,{outlets:y}]}if(c.segmentPath)return[...o,c.segmentPath]}return"string"!=typeof c?[...o,c]:0===h?(c.split("/").forEach((y,E)=>{0==E&&"."===y||(0==E&&""===y?e=!0:".."===y?n++:""!=y&&o.push(y))}),o):[...o,c]},[]);return new pm(e,n,r)}(e);return c.toRoot()?Xo(n.root,n.root,new et([],{}),r,o):function h(E){const M=function Zv(t,n,e,r){if(t.isAbsolute)return new Us(n.root,!0,0);if(-1===r)return new Us(e,e===n.root,0);return function LE(t,n,e){let r=t,o=n,c=e;for(;c>o;){if(c-=o,r=r.parent,!r)throw new i.\u0275RuntimeError(4005,Wa&&"Invalid number of '../'");o=r.segments.length}return new Us(r,!1,o-c)}(e,r+(Za(t.commands[0])?0:1),t.numberOfDoubleDots)}(c,n,t.snapshot?._urlSegment,E),A=M.processChildren?es(M.segmentGroup,M.index,c.commands):zs(M.segmentGroup,M.index,c.commands);return Xo(n.root,M.segmentGroup,A,r,o)}(t.snapshot?._lastPathIndex)}function Za(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function qa(t){return"object"==typeof t&&null!=t&&t.outlets}function Xo(t,n,e,r,o){let h,c={};r&&un(r,(E,M)=>{c[M]=Array.isArray(E)?E.map(A=>`${A}`):`${E}`}),h=t===n?e:Hd(t,n,e);const y=fm(Vd(h));return new Li(y,c,o)}function Hd(t,n,e){const r={};return un(t.children,(o,c)=>{r[c]=o===n?e:Hd(o,n,e)}),new et(t.segments,r)}class pm{constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&Za(r[0]))throw new i.\u0275RuntimeError(4003,Wa&&"Root segment cannot have matrix parameters");const o=r.find(qa);if(o&&o!==Vv(r))throw new i.\u0275RuntimeError(4004,Wa&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Us{constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}}function zs(t,n,e){if(t||(t=new et([],{})),0===t.segments.length&&t.hasChildren())return es(t,n,e);const r=function gm(t,n,e){let r=0,o=n;const c={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return c;const h=t.segments[o],y=e[r];if(qa(y))break;const E=`${y}`,M=r0&&void 0===E)break;if(E&&M&&"object"==typeof M&&void 0===M.outlets){if(!_m(E,M,h))return c;r+=2}else{if(!_m(E,{},h))return c;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,n,e),o=e.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof c&&(c=[c]),null!==c&&(o[h]=zs(t.children[h],n,c))}),un(t.children,(c,h)=>{void 0===r[h]&&(o[h]=c)}),new et(t.segments,o)}}function Ud(t,n,e){const r=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof e&&(e=[e]),null!==e&&(n[r]=Ud(new et([],{}),0,e))}),n}function Yv(t){const n={};return un(t,(e,r)=>n[r]=`${e}`),n}function _m(t,n,e){return t==e.path&&go(n,e.parameters)}const Ya="imperative";class br{constructor(n,e){this.id=n,this.url=e}}class ku extends br{constructor(n,e,r="imperative",o=null){super(n,e),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class $s extends br{constructor(n,e,r){super(n,e),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Qa extends br{constructor(n,e,r,o){super(n,e),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class zd extends br{constructor(n,e,r,o){super(n,e),this.reason=r,this.code=o,this.type=16}}class Ru extends br{constructor(n,e,r,o){super(n,e),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Qv extends br{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Kv extends br{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gs extends br{constructor(n,e,r,o,c){super(n,e),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=c,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class AE extends br{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vm extends br{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $d{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class OE{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ym{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gd{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ws{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jv{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wd{constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Xv=(()=>{class t{createUrlTree(e,r,o,c,h,y){return on(e||r.root,o,c,h,y)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),FE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(n){return Xv.\u0275fac(n)},providedIn:"root"}),t})();class ey{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=bm(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){const e=bm(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=Fu(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return Fu(n,this._root).map(e=>e.value)}}function bm(t,n){if(t===n.value)return n;for(const e of n.children){const r=bm(t,e);if(r)return r}return null}function Fu(t,n){if(t===n.value)return[n];for(const e of n.children){const r=Fu(t,e);if(r.length)return r.unshift(n),r}return[]}class jr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function vo(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class ty extends ey{constructor(n,e){super(n),this.snapshot=e,wm(this,n)}toString(){return this.snapshot.toString()}}function Cm(t,n){const e=function XM(t,n){const h=new yo([],{},{},"",{},Qe,n,null,t.root,-1,{});return new Xa("",new jr(h,[]))}(t,n),r=new wi([new Pu("",{})]),o=new wi({}),c=new wi({}),h=new wi({}),y=new wi(""),E=new Zs(r,o,h,y,c,Qe,n,e.root);return E.snapshot=e.root,new ty(new jr(E,[]),e)}class Zs{constructor(n,e,r,o,c,h,y,E){this.url=n,this.params=e,this.queryParams=r,this.fragment=o,this.data=c,this.outlet=h,this.component=y,this.title=this.data?.pipe((0,Xe.U)(M=>M[Qo]))??ke(void 0),this._futureSnapshot=E}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Xe.U)(n=>yr(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Xe.U)(n=>yr(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ja(t,n="emptyOnly"){const e=t.pathFromRoot;let r=0;if("always"!==n)for(r=e.length-1;r>=1;){const o=e[r],c=e[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(c.component)break;r--}}return function NE(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(r))}class yo{get title(){return this.data?.[Qo]}constructor(n,e,r,o,c,h,y,E,M,A,k){this.url=n,this.params=e,this.queryParams=r,this.fragment=o,this.data=c,this.outlet=h,this.component=y,this.routeConfig=E,this._urlSegment=M,this._lastPathIndex=A,this._resolve=k}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=yr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=yr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Xa extends ey{constructor(n,e){super(e),this.url=n,wm(this,e)}toString(){return Em(this._root)}}function wm(t,n){n.value._routerState=t,n.children.forEach(e=>wm(t,e))}function Em(t){const n=t.children.length>0?` { ${t.children.map(Em).join(", ")} } `:"";return`${t.value}${n}`}function Dm(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,go(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),go(n.params,e.params)||t.params.next(e.params),function bE(t,n){if(t.length!==n.length)return!1;for(let e=0;ego(e.parameters,n[r].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||Sm(t.parent,n.parent))}function el(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const r=e.value;r._futureSnapshot=n.value;const o=function iy(t,n,e){return n.children.map(r=>{for(const o of e.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return el(t,r,o);return el(t,r)})}(t,n,e);return new jr(r,o)}{if(t.shouldAttach(n.value)){const c=t.retrieve(n.value);if(null!==c){const h=c.route;return h.value._futureSnapshot=n.value,h.children=n.children.map(y=>el(t,y)),h}}const r=function Zd(t){return new Zs(new wi(t.url),new wi(t.params),new wi(t.queryParams),new wi(t.fragment),new wi(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(c=>el(t,c));return new jr(r,o)}}const Nu="ngNavigationCancelingError";function ry(t,n){const{redirectTo:e,navigationBehaviorOptions:r}=Jo(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=qd(!1,0,n);return o.url=e,o.navigationBehaviorOptions=r,o}function qd(t,n,e){const r=new Error("NavigationCancelingError: "+(t||""));return r[Nu]=!0,r.cancellationCode=n,e&&(r.url=e),r}function tl(t){return oy(t)&&Jo(t.url)}function oy(t){return t&&t[Nu]}class BE{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Bu,this.attachRef=null}}let Bu=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,r){const o=this.getOrCreateContext(e);o.outlet=r,this.contexts.set(e,o)}onChildOutletDestroyed(e){const r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new BE,this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Yd=!1;let qs=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Qe,this.activateEvents=new i.EventEmitter,this.deactivateEvents=new i.EventEmitter,this.attachEvents=new i.EventEmitter,this.detachEvents=new i.EventEmitter,this.parentContexts=(0,i.inject)(Bu),this.location=(0,i.inject)(i.ViewContainerRef),this.changeDetector=(0,i.inject)(i.ChangeDetectorRef),this.environmentInjector=(0,i.inject)(i.EnvironmentInjector)}ngOnChanges(e){if(e.name){const{firstChange:r,previousValue:o}=e.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)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.\u0275RuntimeError(4012,Yd);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.\u0275RuntimeError(4012,Yd);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.\u0275RuntimeError(4012,Yd);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new i.\u0275RuntimeError(4013,Yd);this._activatedRoute=e;const o=this.location,h=e.snapshot.component,y=this.parentContexts.getOrCreateContext(this.name).children,E=new sy(e,y,o.injector);if(r&&function ay(t){return!!t.resolveComponentFactory}(r)){const M=r.resolveComponentFactory(h);this.activated=o.createComponent(M,o.length,E)}else this.activated=o.createComponent(h,{index:o.length,injector:E,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[i.\u0275\u0275NgOnChangesFeature]}),t})();class sy{constructor(n,e,r){this.route=n,this.childContexts=e,this.parent=r}get(n,e){return n===Zs?this.route:n===Bu?this.childContexts:this.parent.get(n,e)}}let ts=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],standalone:!0,features:[i.\u0275\u0275StandaloneFeature],decls:1,vars:0,template:function(e,r){1&e&&i.\u0275\u0275element(0,"router-outlet")},dependencies:[qs],encapsulation:2}),t})();function Hr(t,n){return t.providers&&!t._injector&&(t._injector=(0,i.createEnvironmentInjector)(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Tm(t){const n=t.children&&t.children.map(Tm),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Qe&&(e.component=ts),e}function Ai(t){return t.outlet||Qe}function cy(t,n){const e=t.filter(r=>Ai(r)===n);return e.push(...t.filter(r=>Ai(r)!==n)),e}function Vu(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class VE{constructor(n,e,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=o}activate(n){const e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Dm(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){const o=vo(e);n.children.forEach(c=>{const h=c.value.outlet;this.deactivateRoutes(c,o[h],r),delete o[h]}),un(o,(c,h)=>{this.deactivateRouteAndItsChildren(c,r)})}deactivateRoutes(n,e,r){const o=n.value,c=e?e.value:null;if(o===c)if(o.component){const h=r.getContext(o.outlet);h&&this.deactivateChildRoutes(n,e,h.children)}else this.deactivateChildRoutes(n,e,r);else c&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const r=e.getContext(n.value.outlet),o=r&&n.value.component?r.children:e,c=vo(n);for(const h of Object.keys(c))this.deactivateRouteAndItsChildren(c[h],o);if(r&&r.outlet){const h=r.outlet.detach(),y=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:h,route:n,contexts:y})}}deactivateRouteAndOutlet(n,e){const r=e.getContext(n.value.outlet),o=r&&n.value.component?r.children:e,c=vo(n);for(const h of Object.keys(c))this.deactivateRouteAndItsChildren(c[h],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(n,e,r){const o=vo(e);n.children.forEach(c=>{this.activateRoutes(c,o[c.value.outlet],r),this.forwardEvent(new Jv(c.value.snapshot))}),n.children.length&&this.forwardEvent(new Gd(n.value.snapshot))}activateRoutes(n,e,r){const o=n.value,c=e?e.value:null;if(Dm(o),o===c)if(o.component){const h=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,h.children)}else this.activateChildRoutes(n,e,r);else if(o.component){const h=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const y=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),h.children.onOutletReAttached(y.contexts),h.attachRef=y.componentRef,h.route=y.route.value,h.outlet&&h.outlet.attach(y.componentRef,y.route.value),Dm(y.route.value),this.activateChildRoutes(n,null,h.children)}else{const y=Vu(o.snapshot),E=y?.get(i.ComponentFactoryResolver)??null;h.attachRef=null,h.route=o,h.resolver=E,h.injector=y,h.outlet&&h.outlet.activateWith(o,h.injector),this.activateChildRoutes(n,null,h.children)}}else this.activateChildRoutes(n,null,r)}}class Mm{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Kd{constructor(n,e){this.component=n,this.route=e}}function jE(t,n,e){const r=t._root;return il(r,n?n._root:null,e,[r.value])}function nl(t,n){const e=Symbol(),r=n.get(t,e);return r===e?"function"!=typeof t||(0,i.\u0275isInjectable)(t)?n.get(t):t:r}function il(t,n,e,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const c=vo(n);return t.children.forEach(h=>{(function UE(t,n,e,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const c=t.value,h=n?n.value:null,y=e?e.getContext(t.value.outlet):null;if(h&&c.routeConfig===h.routeConfig){const E=function zE(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Vs(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Vs(t.url,n.url)||!go(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Sm(t,n)||!go(t.queryParams,n.queryParams);default:return!Sm(t,n)}}(h,c,c.routeConfig.runGuardsAndResolvers);E?o.canActivateChecks.push(new Mm(r)):(c.data=h.data,c._resolvedData=h._resolvedData),il(t,n,c.component?y?y.children:null:e,r,o),E&&y&&y.outlet&&y.outlet.isActivated&&o.canDeactivateChecks.push(new Kd(y.outlet.component,h))}else h&&ju(n,y,o),o.canActivateChecks.push(new Mm(r)),il(t,null,c.component?y?y.children:null:e,r,o)})(h,c[h.value.outlet],e,r.concat([h.value]),o),delete c[h.value.outlet]}),un(c,(h,y)=>ju(h,e.getContext(y),o)),o}function ju(t,n,e){const r=vo(t),o=t.value;un(r,(c,h)=>{ju(c,o.component?n?n.children.getContext(h):null:n,e)}),e.canDeactivateChecks.push(new Kd(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function Ne(t){return"function"==typeof t}function xm(t){return t instanceof xd||"EmptyError"===t?.name}const Jd=Symbol("INITIAL_VALUE");function rl(){return gr(t=>Rn(t.map(n=>n.pipe(_r(1),function uE(...t){const n=t[t.length-1];return(0,Md.K)(n)?(t.pop(),e=>Pd(t,e,n)):e=>Pd(t,e)}(Jd)))).pipe((0,Xe.U)(n=>{for(const e of n)if(!0!==e){if(e===Jd)return Jd;if(!1===e||e instanceof Li)return e}return!0}),vr(n=>n!==Jd),_r(1)))}function _y(t){return(0,aE.z)($t(n=>{if(Jo(n))throw ry(0,n)}),(0,Xe.U)(n=>!0===n))}const Xd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vy(t,n,e,r,o){const c=Am(t,n,e);return c.matched?function QE(t,n,e,r){const o=n.canMatch;return o&&0!==o.length?ke(o.map(h=>{const y=nl(h,t);return Vr(function py(t){return t&&Ne(t.canMatch)}(y)?y.canMatch(n,e):t.runInContext(()=>y(n,e)))})).pipe(rl(),_y()):ke(!0)}(r=Hr(n,r),n,e).pipe((0,Xe.U)(h=>!0===h?c:{...Xd})):ke(c)}function Am(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...Xd}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||yE)(e,t,n);if(!o)return{...Xd};const c={};un(o.posParams,(y,E)=>{c[E]=y.path});const h=o.consumed.length>0?{...c,...o.consumed[o.consumed.length-1].parameters}:c;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:h,positionalParamSegments:o.posParams??{}}}function Yi(t,n,e,r){if(e.length>0&&function eh(t,n,e){return e.some(r=>Hu(t,n,r)&&Ai(r)!==Qe)}(t,e,r)){const c=new et(n,function yy(t,n,e,r){const o={};o[Qe]=r,r._sourceSegment=t,r._segmentIndexShift=n.length;for(const c of e)if(""===c.path&&Ai(c)!==Qe){const h=new et([],{});h._sourceSegment=t,h._segmentIndexShift=n.length,o[Ai(c)]=h}return o}(t,n,r,new et(e,t.children)));return c._sourceSegment=t,c._segmentIndexShift=n.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function JE(t,n,e){return e.some(r=>Hu(t,n,r))}(t,e,r)){const c=new et(t.segments,function KE(t,n,e,r,o){const c={};for(const h of r)if(Hu(t,e,h)&&!o[Ai(h)]){const y=new et([],{});y._sourceSegment=t,y._segmentIndexShift=n.length,c[Ai(h)]=y}return{...o,...c}}(t,n,e,r,t.children));return c._sourceSegment=t,c._segmentIndexShift=n.length,{segmentGroup:c,slicedSegments:e}}const o=new et(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}function Hu(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function Om(t,n,e,r){return!!(Ai(t)===r||r!==Qe&&Hu(n,e,t))&&("**"===t.path||Am(n,t,e).matched)}function by(t,n,e){return 0===n.length&&!t.children[e]}const th=!1;class nh{constructor(n){this.segmentGroup=n||null}}class Cy{constructor(n){this.urlTree=n}}function ol(t){return Su(new nh(t))}function wy(t){return Su(new Cy(t))}class Uu{constructor(n,e,r,o,c){this.injector=n,this.configLoader=e,this.urlSerializer=r,this.urlTree=o,this.config=c,this.allowRedirects=!0}apply(){const n=Yi(this.urlTree.root,[],[],this.config).segmentGroup,e=new et(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,Qe).pipe((0,Xe.U)(c=>this.createUrlTree(Vd(c),this.urlTree.queryParams,this.urlTree.fragment))).pipe($a(c=>{if(c instanceof Cy)return this.allowRedirects=!1,this.match(c.urlTree);throw c instanceof nh?this.noMatchError(c):c}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,Qe).pipe((0,Xe.U)(o=>this.createUrlTree(Vd(o),n.queryParams,n.fragment))).pipe($a(o=>{throw o instanceof nh?this.noMatchError(o):o}))}noMatchError(n){return new i.\u0275RuntimeError(4002,th)}createUrlTree(n,e,r){const o=fm(n);return new Li(o,e,r)}expandSegmentGroup(n,e,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(n,e,r).pipe((0,Xe.U)(c=>new et([],c))):this.expandSegment(n,r,e,r.segments,o,!0)}expandChildren(n,e,r){const o=[];for(const c of Object.keys(r.children))"primary"===c?o.unshift(c):o.push(c);return(0,yn.D)(o).pipe(Yo(c=>{const h=r.children[c],y=cy(e,c);return this.expandSegmentGroup(n,y,h,c).pipe((0,Xe.U)(E=>({segment:E,outlet:c})))}),em((c,h)=>(c[h.outlet]=h.segment,c),{}),Mu())}expandSegment(n,e,r,o,c,h){return(0,yn.D)(r).pipe(Yo(y=>this.expandSegmentAgainstRoute(n,e,r,y,o,c,h).pipe($a(M=>{if(M instanceof nh)return ke(null);throw M}))),qo(y=>!!y),$a((y,E)=>{if(xm(y))return by(e,o,c)?ke(new et([],{})):ol(e);throw y}))}expandSegmentAgainstRoute(n,e,r,o,c,h,y){return Om(o,e,c,h)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(n,e,o,c,h):y&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,r,o,c,h):ol(e):ol(e)}expandSegmentAgainstRouteUsingRedirect(n,e,r,o,c,h){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,o,h):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,r,o,c,h)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,r,o){const c=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?wy(c):this.lineralizeSegments(r,c).pipe((0,Ei.zg)(h=>{const y=new et(h,{});return this.expandSegment(n,y,e,h,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,r,o,c,h){const{matched:y,consumedSegments:E,remainingSegments:M,positionalParamSegments:A}=Am(e,o,c);if(!y)return ol(e);const k=this.applyRedirectCommands(E,o.redirectTo,A);return o.redirectTo.startsWith("/")?wy(k):this.lineralizeSegments(o,k).pipe((0,Ei.zg)(j=>this.expandSegment(n,e,r,j.concat(M),h,!1)))}matchSegmentAgainstRoute(n,e,r,o,c){return"**"===r.path?(n=Hr(r,n),r.loadChildren?(r._loadedRoutes?ke({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(n,r)).pipe((0,Xe.U)(y=>(r._loadedRoutes=y.routes,r._loadedInjector=y.injector,new et(o,{})))):ke(new et(o,{}))):vy(e,r,o,n).pipe(gr(({matched:h,consumedSegments:y,remainingSegments:E})=>h?this.getChildConfig(n=r._injector??n,r,o).pipe((0,Ei.zg)(A=>{const k=A.injector??n,j=A.routes,{segmentGroup:V,slicedSegments:K}=Yi(e,y,E,j),se=new et(V.segments,V.children);if(0===K.length&&se.hasChildren())return this.expandChildren(k,j,se).pipe((0,Xe.U)(lt=>new et(y,lt)));if(0===j.length&&0===K.length)return ke(new et(y,{}));const ae=Ai(r)===c;return this.expandSegment(k,se,j,K,ae?Qe:c,!0).pipe((0,Xe.U)(ye=>new et(y.concat(ye.segments),ye.children)))})):ol(e)))}getChildConfig(n,e,r){return e.children?ke({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?ke({routes:e._loadedRoutes,injector:e._loadedInjector}):function YE(t,n,e,r){const o=n.canLoad;return void 0===o||0===o.length?ke(!0):ke(o.map(h=>{const y=nl(h,t);return Vr(function hy(t){return t&&Ne(t.canLoad)}(y)?y.canLoad(n,e):t.runInContext(()=>y(n,e)))})).pipe(rl(),_y())}(n,e,r).pipe((0,Ei.zg)(o=>o?this.configLoader.loadChildren(n,e).pipe($t(c=>{e._loadedRoutes=c.routes,e._loadedInjector=c.injector})):function Dy(t){return Su(qd(th,3))}())):ke({routes:[],injector:n})}lineralizeSegments(n,e){let r=[],o=e.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return ke(r);if(o.numberOfChildren>1||!o.children[Qe])return n.redirectTo,Su(new i.\u0275RuntimeError(4e3,th));o=o.children[Qe]}}applyRedirectCommands(n,e,r){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r)}applyRedirectCreateUrlTree(n,e,r,o){const c=this.createSegmentGroup(n,e.root,r,o);return new Li(c,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const r={};return un(n,(o,c)=>{if("string"==typeof o&&o.startsWith(":")){const y=o.substring(1);r[c]=e[y]}else r[c]=o}),r}createSegmentGroup(n,e,r,o){const c=this.createSegments(n,e.segments,r,o);let h={};return un(e.children,(y,E)=>{h[E]=this.createSegmentGroup(n,y,r,o)}),new et(c,h)}createSegments(n,e,r,o){return e.map(c=>c.path.startsWith(":")?this.findPosParam(n,c,o):this.findOrReturn(c,r))}findPosParam(n,e,r){const o=r[e.path.substring(1)];if(!o)throw new i.\u0275RuntimeError(4001,th);return o}findOrReturn(n,e){let r=0;for(const o of e){if(o.path===n.path)return e.splice(r),o;r++}return n}}class XE{}class eD{constructor(n,e,r,o,c,h,y){this.injector=n,this.rootComponentType=e,this.config=r,this.urlTree=o,this.url=c,this.paramsInheritanceStrategy=h,this.urlSerializer=y}recognize(){const n=Yi(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Qe).pipe((0,Xe.U)(e=>{if(null===e)return null;const r=new yo([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Qe,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new jr(r,e),c=new Xa(this.url,o);return this.inheritParamsAndData(c._root),c}))}inheritParamsAndData(n){const e=n.value,r=Ja(e,this.paramsInheritanceStrategy);e.params=Object.freeze(r.params),e.data=Object.freeze(r.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,e,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,e,r):this.processSegment(n,e,r,r.segments,o)}processChildren(n,e,r){return(0,yn.D)(Object.keys(r.children)).pipe(Yo(o=>{const c=r.children[o],h=cy(e,o);return this.processSegmentGroup(n,h,c,o)}),em((o,c)=>o&&c?(o.push(...c),o):null),function Bv(t,n=!1){return e=>e.lift(new tm(t,n))}(o=>null!==o),Od(null),Mu(),(0,Xe.U)(o=>{if(null===o)return null;const c=zu(o);return function My(t){t.sort((n,e)=>n.value.outlet===Qe?-1:e.value.outlet===Qe?1:n.value.outlet.localeCompare(e.value.outlet))}(c),c}))}processSegment(n,e,r,o,c){return(0,yn.D)(e).pipe(Yo(h=>this.processSegmentAgainstRoute(h._injector??n,h,r,o,c)),qo(h=>!!h),$a(h=>{if(xm(h))return by(r,o,c)?ke([]):ke(null);throw h}))}processSegmentAgainstRoute(n,e,r,o,c){if(e.redirectTo||!Om(e,r,o,c))return ke(null);let h;if("**"===e.path){const y=o.length>0?Vv(o).parameters:{},E=ul(r)+o.length;h=ke({snapshot:new yo(o,y,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$u(e),Ai(e),e.component??e._loadedComponent??null,e,ih(r),E,Rm(e)),consumedSegments:[],remainingSegments:[]})}else h=vy(r,e,o,n).pipe((0,Xe.U)(({matched:y,consumedSegments:E,remainingSegments:M,parameters:A})=>{if(!y)return null;const k=ul(r)+E.length;return{snapshot:new yo(E,A,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,$u(e),Ai(e),e.component??e._loadedComponent??null,e,ih(r),k,Rm(e)),consumedSegments:E,remainingSegments:M}}));return h.pipe(gr(y=>{if(null===y)return ke(null);const{snapshot:E,consumedSegments:M,remainingSegments:A}=y;n=e._injector??n;const k=e._loadedInjector??n,j=function tD(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:V,slicedSegments:K}=Yi(r,M,A,j.filter(ae=>void 0===ae.redirectTo));if(0===K.length&&V.hasChildren())return this.processChildren(k,j,V).pipe((0,Xe.U)(ae=>null===ae?null:[new jr(E,ae)]));if(0===j.length&&0===K.length)return ke([new jr(E,[])]);const se=Ai(e)===c;return this.processSegment(k,j,V,K,se?Qe:c).pipe((0,Xe.U)(ae=>null===ae?null:[new jr(E,ae)]))}))}}function nD(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function zu(t){const n=[],e=new Set;for(const r of t){if(!nD(r)){n.push(r);continue}const o=n.find(c=>r.value.routeConfig===c.value.routeConfig);void 0!==o?(o.children.push(...r.children),e.add(o)):n.push(r)}for(const r of e){const o=zu(r.children);n.push(new jr(r.value,o))}return n.filter(r=>!e.has(r))}function ih(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function ul(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function $u(t){return t.data||{}}function Rm(t){return t.resolve||{}}function Py(t){return"string"==typeof t.title||null===t.title}function rh(t){return gr(n=>{const e=t(n);return e?(0,yn.D)(e).pipe((0,Xe.U)(()=>n)):ke(n)})}const Ys=new i.InjectionToken("ROUTES");let oh=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,i.inject)(i.Compiler)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ke(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const r=Vr(e.loadComponent()).pipe((0,Xe.U)(Ay),$t(c=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=c}),om(()=>{this.componentLoaders.delete(e)})),o=new Ad.c(r,()=>new vt.xQ).pipe((0,sm.x)());return this.componentLoaders.set(e,o),o}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return ke({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const c=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe((0,Xe.U)(y=>{this.onLoadEndListener&&this.onLoadEndListener(r);let E,M,A=!1;Array.isArray(y)?M=y:(E=y.create(e).injector,M=Fd(E.get(Ys,[],i.InjectFlags.Self|i.InjectFlags.Optional)));return{routes:M.map(Tm),injector:E}}),om(()=>{this.childrenLoaders.delete(r)})),h=new Ad.c(c,()=>new vt.xQ).pipe((0,sm.x)());return this.childrenLoaders.set(r,h),h}loadModuleFactoryOrRoutes(e){return Vr(e()).pipe((0,Xe.U)(Ay),(0,Ei.zg)(r=>r instanceof i.NgModuleFactory||Array.isArray(r)?ke(r):(0,yn.D)(this.compiler.compileModuleAsync(r))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Ay(t){return function rD(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let sh=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new vt.xQ,this.configLoader=(0,i.inject)(oh),this.environmentInjector=(0,i.inject)(i.EnvironmentInjector),this.urlSerializer=(0,i.inject)(Lu),this.rootContexts=(0,i.inject)(Bu),this.navigationId=0,this.afterPreactivation=()=>ke(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new OE(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new $d(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:r})}setupNavigations(e){return this.transitions=new wi({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ya,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(vr(r=>0!==r.id),(0,Xe.U)(r=>({...r,extractedUrl:e.urlHandlingStrategy.extract(r.rawUrl)})),gr(r=>{let o=!1,c=!1;return ke(r).pipe($t(h=>{this.currentNavigation={id:h.id,initialUrl:h.rawUrl,extractedUrl:h.extractedUrl,trigger:h.source,extras:h.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),gr(h=>{const y=e.browserUrlTree.toString(),E=!e.navigated||h.extractedUrl.toString()!==y||y!==e.currentUrlTree.toString();if(!E&&"reload"!==(h.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const A="";return this.events.next(new zd(h.id,e.serializeUrl(r.rawUrl),A,0)),e.rawUrlTree=h.rawUrl,h.resolve(null),Ns}if(e.urlHandlingStrategy.shouldProcessUrl(h.rawUrl))return Oy(h.source)&&(e.browserUrlTree=h.extractedUrl),ke(h).pipe(gr(A=>{const k=this.transitions?.getValue();return this.events.next(new ku(A.id,this.urlSerializer.serialize(A.extractedUrl),A.source,A.restoredState)),k!==this.transitions?.getValue()?Ns:Promise.resolve(A)}),function sl(t,n,e,r){return gr(o=>function km(t,n,e,r,o){return new Uu(t,n,e,r,o).apply()}(t,n,e,o.extractedUrl,r).pipe((0,Xe.U)(c=>({...o,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),$t(A=>{this.currentNavigation={...this.currentNavigation,finalUrl:A.urlAfterRedirects},r.urlAfterRedirects=A.urlAfterRedirects}),function Fm(t,n,e,r,o){return(0,Ei.zg)(c=>function Ty(t,n,e,r,o,c,h="emptyOnly"){return new eD(t,n,e,r,o,h,c).recognize().pipe(gr(y=>null===y?function al(t){return new mr.y(n=>n.error(t))}(new XE):ke(y)))}(t,n,e,c.urlAfterRedirects,r.serialize(c.urlAfterRedirects),r,o).pipe((0,Xe.U)(h=>({...c,targetSnapshot:h}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),$t(A=>{if(r.targetSnapshot=A.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!A.extras.skipLocationChange){const j=e.urlHandlingStrategy.merge(A.urlAfterRedirects,A.rawUrl);e.setBrowserUrl(j,A)}e.browserUrlTree=A.urlAfterRedirects}const k=new Qv(A.id,this.urlSerializer.serialize(A.extractedUrl),this.urlSerializer.serialize(A.urlAfterRedirects),A.targetSnapshot);this.events.next(k)}));if(E&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:A,extractedUrl:k,source:j,restoredState:V,extras:K}=h,se=new ku(A,this.urlSerializer.serialize(k),j,V);this.events.next(se);const ae=Cm(k,this.rootComponentType).snapshot;return ke(r={...h,targetSnapshot:ae,urlAfterRedirects:k,extras:{...K,skipLocationChange:!1,replaceUrl:!1}})}{const A="";return this.events.next(new zd(h.id,e.serializeUrl(r.extractedUrl),A,1)),e.rawUrlTree=h.rawUrl,h.resolve(null),Ns}}),$t(h=>{const y=new Kv(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(y)}),(0,Xe.U)(h=>r={...h,guards:jE(h.targetSnapshot,h.currentSnapshot,this.rootContexts)}),function Im(t,n){return(0,Ei.zg)(e=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:c,canDeactivateChecks:h}}=e;return 0===h.length&&0===c.length?ke({...e,guardsResult:!0}):function gy(t,n,e,r){return(0,yn.D)(t).pipe((0,Ei.zg)(o=>function qE(t,n,e,r,o){const c=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return c&&0!==c.length?ke(c.map(y=>{const E=Vu(n)??o,M=nl(y,E);return Vr(function GE(t){return t&&Ne(t.canDeactivate)}(M)?M.canDeactivate(t,n,e,r):E.runInContext(()=>M(t,n,e,r))).pipe(qo())})).pipe(rl()):ke(!0)}(o.component,o.route,e,n,r)),qo(o=>!0!==o,!0))}(h,r,o,t).pipe((0,Ei.zg)(y=>y&&function dy(t){return"boolean"==typeof t}(y)?function ns(t,n,e,r){return(0,yn.D)(n).pipe(Yo(o=>Pd(function Pm(t,n){return null!==t&&n&&n(new ym(t)),ke(!0)}(o.route.parent,r),function WE(t,n){return null!==t&&n&&n(new Ws(t)),ke(!0)}(o.route,r),function ZE(t,n,e){const r=n[n.length-1],c=n.slice(0,n.length-1).reverse().map(h=>function HE(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(h)).filter(h=>null!==h).map(h=>Wp(()=>ke(h.guards.map(E=>{const M=Vu(h.node)??e,A=nl(E,M);return Vr(function $E(t){return t&&Ne(t.canActivateChild)}(A)?A.canActivateChild(r,t):M.runInContext(()=>A(r,t))).pipe(qo())})).pipe(rl())));return ke(c).pipe(rl())}(t,o.path,e),function Lm(t,n,e){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return ke(!0);const o=r.map(c=>Wp(()=>{const h=Vu(n)??e,y=nl(c,h);return Vr(function fy(t){return t&&Ne(t.canActivate)}(y)?y.canActivate(n,t):h.runInContext(()=>y(n,t))).pipe(qo())}));return ke(o).pipe(rl())}(t,o.route,e))),qo(o=>!0!==o,!0))}(r,c,t,n):ke(y)),(0,Xe.U)(y=>({...e,guardsResult:y})))})}(this.environmentInjector,h=>this.events.next(h)),$t(h=>{if(r.guardsResult=h.guardsResult,Jo(h.guardsResult))throw ry(0,h.guardsResult);const y=new Gs(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot,!!h.guardsResult);this.events.next(y)}),vr(h=>!!h.guardsResult||(e.restoreHistory(h),this.cancelNavigationTransition(h,"",3),!1)),rh(h=>{if(h.guards.canActivateChecks.length)return ke(h).pipe($t(y=>{const E=new AE(y.id,this.urlSerializer.serialize(y.extractedUrl),this.urlSerializer.serialize(y.urlAfterRedirects),y.targetSnapshot);this.events.next(E)}),gr(y=>{let E=!1;return ke(y).pipe(function Nm(t,n){return(0,Ei.zg)(e=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=e;if(!o.length)return ke(e);let c=0;return(0,yn.D)(o).pipe(Yo(h=>function Bm(t,n,e,r){const o=t.routeConfig,c=t._resolve;return void 0!==o?.title&&!Py(o)&&(c[Qo]=o.title),function Iy(t,n,e,r){const o=function Vm(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===o.length)return ke({});const c={};return(0,yn.D)(o).pipe((0,Ei.zg)(h=>function iD(t,n,e,r){const o=Vu(n)??r,c=nl(t,o);return Vr(c.resolve?c.resolve(n,e):o.runInContext(()=>c(n,e)))}(t[h],n,e,r).pipe(qo(),$t(y=>{c[h]=y}))),Tu(1),function im(t){return n=>n.lift(new xu(t))}(c),$a(h=>xm(h)?Ns:Su(h)))}(c,t,n,r).pipe((0,Xe.U)(h=>(t._resolvedData=h,t.data=Ja(t,e).resolve,o&&Py(o)&&(t.data[Qo]=o.title),null)))}(h.route,r,t,n)),$t(()=>c++),Tu(1),(0,Ei.zg)(h=>c===o.length?ke(e):Ns))})}(e.paramsInheritanceStrategy,this.environmentInjector),$t({next:()=>E=!0,complete:()=>{E||(e.restoreHistory(y),this.cancelNavigationTransition(y,"",2))}}))}),$t(y=>{const E=new vm(y.id,this.urlSerializer.serialize(y.extractedUrl),this.urlSerializer.serialize(y.urlAfterRedirects),y.targetSnapshot);this.events.next(E)}))}),rh(h=>{const y=E=>{const M=[];E.routeConfig?.loadComponent&&!E.routeConfig._loadedComponent&&M.push(this.configLoader.loadComponent(E.routeConfig).pipe($t(A=>{E.component=A}),(0,Xe.U)(()=>{})));for(const A of E.children)M.push(...y(A));return M};return Rn(y(h.targetSnapshot.root)).pipe(Od(),_r(1))}),rh(()=>this.afterPreactivation()),(0,Xe.U)(h=>{const y=function ny(t,n,e){const r=el(t,n._root,e?e._root:void 0);return new ty(r,n)}(e.routeReuseStrategy,h.targetSnapshot,h.currentRouterState);return r={...h,targetRouterState:y}}),$t(h=>{e.currentUrlTree=h.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl),e.routerState=h.targetRouterState,"deferred"===e.urlUpdateStrategy&&(h.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,h),e.browserUrlTree=h.urlAfterRedirects)}),((t,n,e)=>(0,Xe.U)(r=>(new VE(n,r.targetRouterState,r.currentRouterState,e).activate(t),r)))(this.rootContexts,e.routeReuseStrategy,h=>this.events.next(h)),_r(1),$t({next:h=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new $s(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(h.targetRouterState.snapshot),h.resolve(!0)},complete:()=>{o=!0}}),om(()=>{o||c||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),$a(h=>{if(c=!0,oy(h)){tl(h)||(e.navigated=!0,e.restoreHistory(r,!0));const y=new Qa(r.id,this.urlSerializer.serialize(r.extractedUrl),h.message,h.cancellationCode);if(this.events.next(y),tl(h)){const E=e.urlHandlingStrategy.merge(h.url,e.rawUrlTree),M={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||Oy(r.source)};e.scheduleNavigation(E,Ya,null,M,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{e.restoreHistory(r,!0);const y=new Ru(r.id,this.urlSerializer.serialize(r.extractedUrl),h,r.targetSnapshot??void 0);this.events.next(y);try{r.resolve(e.errorHandler(h))}catch(E){r.reject(E)}}return Ns}))}))}cancelNavigationTransition(e,r,o){const c=new Qa(e.id,this.urlSerializer.serialize(e.extractedUrl),r,o);this.events.next(c),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Oy(t){return t!==Ya}let oD=(()=>{class t{buildTitle(e){let r,o=e.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(c=>c.outlet===Qe);return r}getResolvedTitleForRoute(e){return e.data[Qo]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(){return(0,i.inject)(jm)},providedIn:"root"}),t})(),jm=(()=>{class t extends oD{constructor(e){super(),this.title=e}updateTitle(e){const r=this.buildTitle(e);void 0!==r&&this.title.setTitle(r)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(uo))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ky=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(){return(0,i.inject)(aD)},providedIn:"root"}),t})();class sD{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let aD=(()=>{class t extends sD{}return t.\u0275fac=function(){let n;return function(r){return(n||(n=i.\u0275\u0275getInheritedFactory(t)))(r||t)}}(),t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Gu=new i.InjectionToken("",{providedIn:"root",factory:()=>({})});let uD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:function(){return(0,i.inject)(cD)},providedIn:"root"}),t})(),cD=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function dD(t){throw t}function hD(t,n,e){return n.parse("/")}const fD={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},pD={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let oi=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,i.inject)(i.\u0275Console),this.isNgZoneEnabled=!1,this.options=(0,i.inject)(Gu,{optional:!0})||{},this.errorHandler=this.options.errorHandler||dD,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||hD,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,i.inject)(uD),this.routeReuseStrategy=(0,i.inject)(ky),this.urlCreationStrategy=(0,i.inject)(FE),this.titleStrategy=(0,i.inject)(oD),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=Fd((0,i.inject)(Ys,{optional:!0})??[]),this.navigationTransitions=(0,i.inject)(sh),this.urlSerializer=(0,i.inject)(Lu),this.location=(0,i.inject)(qn),this.isNgZoneEnabled=(0,i.inject)(i.NgZone)instanceof i.NgZone&&i.NgZone.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Li,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Cm(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Ya,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const r="popstate"===e.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,r,e.state)},0)}))}navigateToSyncWithBrowser(e,r,o){const c={replaceUrl:!0},h=o?.navigationId?o:null;if(o){const E={...o};delete E.navigationId,delete E.\u0275routerPageId,0!==Object.keys(E).length&&(c.state=E)}const y=this.parseUrl(e);this.scheduleNavigation(y,r,h,c)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(Tm),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,r={}){const{relativeTo:o,queryParams:c,fragment:h,queryParamsHandling:y,preserveFragment:E}=r,M=E?this.currentUrlTree.fragment:h;let A=null;switch(y){case"merge":A={...this.currentUrlTree.queryParams,...c};break;case"preserve":A=this.currentUrlTree.queryParams;break;default:A=c||null}return null!==A&&(A=this.removeEmptyProps(A)),this.urlCreationStrategy.createUrlTree(o,this.routerState,this.currentUrlTree,e,A,M??null)}navigateByUrl(e,r={skipLocationChange:!1}){const o=Jo(e)?e:this.parseUrl(e),c=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(c,Ya,null,r)}navigate(e,r={skipLocationChange:!1}){return function Ur(t){for(let n=0;n{const c=e[o];return null!=c&&(r[o]=c),r},{})}scheduleNavigation(e,r,o,c,h){if(this.disposed)return Promise.resolve(!1);let y,E,M,A;return h?(y=h.resolve,E=h.reject,M=h.promise):M=new Promise((k,j)=>{y=k,E=j}),A="computed"===this.canceledNavigationResolution?o&&o.\u0275routerPageId?o.\u0275routerPageId:c.replaceUrl||c.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:A,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:c,resolve:y,reject:E,promise:M,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),M.catch(k=>Promise.reject(k))}setBrowserUrl(e,r){const o=this.urlSerializer.serialize(e),c={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl?this.location.replaceState(o,"",c):this.location.go(o,"",c)}restoreHistory(e,r=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===o?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Qs=(()=>{class t{constructor(e,r,o,c,h,y){this.router=e,this.route=r,this.tabIndexAttribute=o,this.renderer=c,this.el=h,this.locationStrategy=y,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new vt.xQ;const E=h.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===E||"area"===E,this.isAnchorElement?this.subscription=e.events.subscribe(M=>{M instanceof $s&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=(0,i.\u0275coerceToBoolean)(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=(0,i.\u0275coerceToBoolean)(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=(0,i.\u0275coerceToBoolean)(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,r,o,c,h){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||r||o||c||h||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:(0,i.\u0275\u0275sanitizeUrlOrResourceUrl)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,r){const o=this.renderer,c=this.el.nativeElement;null!==r?o.setAttribute(c,e,r):o.removeAttribute(c,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(oi),i.\u0275\u0275directiveInject(Zs),i.\u0275\u0275injectAttribute("tabindex"),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(te))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("click",function(c){return r.onClick(c.button,c.ctrlKey,c.shiftKey,c.altKey,c.metaKey)}),2&e&&i.\u0275\u0275attribute("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[i.\u0275\u0275NgOnChangesFeature]}),t})(),Ry=(()=>{class t{get isActive(){return this._isActive}constructor(e,r,o,c,h){this.router=e,this.element=r,this.renderer=o,this.cdr=c,this.link=h,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new i.EventEmitter,this.routerEventsSubscription=e.events.subscribe(y=>{y instanceof $s&&this.update()})}ngAfterContentInit(){ke(this.links.changes,ke(null)).pipe((0,za.J)()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=(0,yn.D)(e).pipe((0,za.J)()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){const r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const r=function mD(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&e.isActive(o.urlTree,r)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(oi),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(Qs,8))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(e,r,o){if(1&e&&i.\u0275\u0275contentQuery(o,Qs,5),2&e){let c;i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.links=c)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[i.\u0275\u0275NgOnChangesFeature]}),t})();class Hm{}let gD=(()=>{class t{constructor(e,r,o,c,h){this.router=e,this.injector=o,this.preloadingStrategy=c,this.loader=h}setUpPreloading(){this.subscription=this.router.events.pipe(vr(e=>e instanceof $s),Yo(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){const o=[];for(const c of r){c.providers&&!c._injector&&(c._injector=(0,i.createEnvironmentInjector)(c.providers,e,`Route: ${c.path}`));const h=c._injector??e,y=c._loadedInjector??h;(c.loadChildren&&!c._loadedRoutes&&void 0===c.canLoad||c.loadComponent&&!c._loadedComponent)&&o.push(this.preloadConfig(h,c)),(c.children||c._loadedRoutes)&&o.push(this.processRoutes(y,c.children??c._loadedRoutes))}return(0,yn.D)(o).pipe((0,za.J)())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(e,r):ke(null);const c=o.pipe((0,Ei.zg)(h=>null===h?ke(void 0):(r._loadedRoutes=h.routes,r._loadedInjector=h.injector,this.processRoutes(h.injector??e,h.routes))));if(r.loadComponent&&!r._loadedComponent){const h=this.loader.loadComponent(r);return(0,yn.D)([c,h]).pipe((0,za.J)())}return c})}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(oi),i.\u0275\u0275inject(i.Compiler),i.\u0275\u0275inject(i.EnvironmentInjector),i.\u0275\u0275inject(Hm),i.\u0275\u0275inject(oh))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Zu=new i.InjectionToken("");let Fy=(()=>{class t{constructor(e,r,o,c,h={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=o,this.zone=c,this.options=h,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},h.scrollPositionRestoration=h.scrollPositionRestoration||"disabled",h.anchorScrolling=h.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ku?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof $s&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Wd&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Wd(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){i.\u0275\u0275invalidFactory()},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();var Oi=(()=>((Oi=Oi||{})[Oi.COMPLETE=0]="COMPLETE",Oi[Oi.FAILED=1]="FAILED",Oi[Oi.REDIRECTING=2]="REDIRECTING",Oi))();const bo=!1;function zr(t,n){return{\u0275kind:t,\u0275providers:n}}const Ny=new i.InjectionToken("",{providedIn:"root",factory:()=>!1});function zm(){const t=(0,i.inject)(i.Injector);return n=>{const e=t.get(i.ApplicationRef);if(n!==e.components[0])return;const r=t.get(oi),o=t.get(lh);1===t.get(wr)&&r.initialNavigation(),t.get(Vy,null,i.InjectFlags.Optional)?.setUpPreloading(),t.get(Zu,null,i.InjectFlags.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const lh=new i.InjectionToken(bo?"bootstrap done indicator":"",{factory:()=>new vt.xQ}),wr=new i.InjectionToken(bo?"initial navigation":"",{providedIn:"root",factory:()=>1});function cl(){let t=[];return t=bo?[{provide:i.ENVIRONMENT_INITIALIZER,multi:!0,useFactory:()=>{const n=(0,i.inject)(oi);return()=>n.events.subscribe(e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function kE(t){if(!("type"in t))return`Unknown Router Event: ${t.constructor.name}`;switch(t.type){case 14:return`ActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${t.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${t.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state}, shouldActivate: ${t.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 2:return`NavigationCancel(id: ${t.id}, url: '${t.url}')`;case 16:return`NavigationSkipped(id: ${t.id}, url: '${t.url}')`;case 1:return`NavigationEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${t.id}, url: '${t.url}', error: ${t.error})`;case 0:return`NavigationStart(id: ${t.id}, url: '${t.url}')`;case 6:return`ResolveEnd(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 5:return`ResolveStart(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 10:return`RouteConfigLoadEnd(path: ${t.route.path})`;case 9:return`RouteConfigLoadStart(path: ${t.route.path})`;case 4:return`RoutesRecognized(id: ${t.id}, url: '${t.url}', urlAfterRedirects: '${t.urlAfterRedirects}', state: ${t.state})`;case 15:return`Scroll(anchor: '${t.anchor}', position: '${t.position?`${t.position[0]}, ${t.position[1]}`:null}')`}}(e)),console.log(e),console.groupEnd?.()})}}]:[],zr(1,t)}const Vy=new i.InjectionToken(bo?"router preloader":"");function jy(t){return zr(0,[{provide:Vy,useExisting:gD},{provide:Hm,useExisting:t}])}const $r=!1,wD=new i.InjectionToken($r?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),ED=[qn,{provide:Lu,useClass:Nd},oi,Bu,{provide:Zs,useFactory:function _D(t){return t.routerState.root},deps:[oi]},oh,$r?{provide:Ny,useValue:!0}:[]];function DD(){return new i.NgProbeToken("Router",oi)}let dh=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[ED,$r&&r?.enableTracing?cl().\u0275providers:[],{provide:Ys,multi:!0,useValue:e},{provide:wD,useFactory:Hy,deps:[[oi,new i.Optional,new i.SkipSelf]]},{provide:Gu,useValue:r||{}},r?.useHash?{provide:te,useClass:jn}:{provide:te,useClass:mt},{provide:Zu,useFactory:()=>{const t=(0,i.inject)(lv),n=(0,i.inject)(i.NgZone),e=(0,i.inject)(Gu),r=(0,i.inject)(sh),o=(0,i.inject)(Lu);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Fy(o,r,t,n,e)}},r?.preloadingStrategy?jy(r.preloadingStrategy).\u0275providers:[],{provide:i.NgProbeToken,multi:!0,useFactory:DD},r?.initialNavigation?Uy(r):[],[{provide:hh,useFactory:zm},{provide:i.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:hh}]]}}static forChild(e){return{ngModule:t,providers:[{provide:Ys,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(wD,8))},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({imports:[ts]}),t})();function Hy(t){if($r&&t)throw new i.\u0275RuntimeError(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Uy(t){return["disabled"===t.initialNavigation?zr(3,[{provide:i.APP_INITIALIZER,multi:!0,useFactory:()=>{const n=(0,i.inject)(oi);return()=>{n.setUpLocationChangeListener()}}},{provide:wr,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?zr(2,[{provide:wr,useValue:0},{provide:i.APP_INITIALIZER,multi:!0,deps:[i.Injector],useFactory:n=>{const e=n.get(U,Promise.resolve());return()=>e.then(()=>new Promise(r=>{const o=n.get(oi),c=n.get(lh);(function ah(t,n){t.events.pipe(vr(e=>e instanceof $s||e instanceof Qa||e instanceof Ru||e instanceof zd),(0,Xe.U)(e=>e instanceof $s||e instanceof zd?Oi.COMPLETE:e instanceof Qa&&(0===e.code||1===e.code)?Oi.REDIRECTING:Oi.FAILED),vr(e=>e!==Oi.REDIRECTING),_r(1)).subscribe(()=>{n()})})(o,()=>{r(!0)}),n.get(sh).afterPreactivation=()=>(r(!0),c.closed?ke(void 0):c),o.initialNavigation()}))}}]).\u0275providers:[]]}const hh=new i.InjectionToken($r?"Router Initializer":"");let $y=(()=>{class t{constructor(e){_(this,"router",void 0),_(this,"title","Ga naar homepage."),_(this,"src","https://cdn.antwerpen.be/core_branding_scss/6.2.2/assets/images/a-logo.svg"),_(this,"link",void 0),_(this,"onClick",void 0),this.router=e}logoClicked(e){e.preventDefault(),this.link&&"#"!==this.link&&(e.metaKey?this.router.navigate([]).then(r=>{window.open(this.link,"_blank")}):this.router.navigate([this.link])),this.onClick&&this.onClick(e)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(oi))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-logo"]],inputs:{title:"title",src:"src",link:"link",onClick:"onClick"},decls:2,vars:2,consts:[["href","#",1,"o-header__logo",3,"click"],[3,"alt","src"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"a",0),i.\u0275\u0275listener("click",function(c){return r.logoClicked(c)}),i.\u0275\u0275element(1,"img",1),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("alt",r.title)("src",r.src,i.\u0275\u0275sanitizeUrl))},encapsulation:2})),t})(),ID=(()=>{class t{constructor(){_(this,"imgTitle","Title for logo"),_(this,"imgSrc","https://robohash.org/antwerp-ui"),_(this,"imgLink","#"),_(this,"javascript1","import { LogoModule } from '@acpaas-ui/ngx-logo';\n\n@NgModule({\n\timports: [\n\t\tLogoModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"javascript2","public imgTitle = 'Title for logo';\npublic imgSrc = 'https://robohash.org/antwerp-ui';\npublic imgLink = '#';\n\npublic imgClicked(event) {\n\talert('Logo was clicked');\n}"),_(this,"html",'')}imgClicked(e){alert("Logo was clicked")}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:10,vars:6,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom","p-fix-position"],[3,"link","src","title","click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Logo"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",3)(9,"aui-logo",4),i.\u0275\u0275listener("click",function(c){return r.imgClicked(c)}),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.javascript1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.javascript2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.html),i.\u0275\u0275advance(2),i.\u0275\u0275property("link",r.imgLink)("src",r.imgSrc)("title",r.imgTitle))},dependencies:[Tt,$y],encapsulation:2})),t})(),PD=(()=>{class t{constructor(){_(this,"codeExampleJS1","\nimport { CodeSnippetModule } from '@acpaas-ui/ngx-code-snippet';\n\n@NgModule({\n\timports: [\n\t\tCodeSnippetModule\n\t]\n})\n\nexport class AppModule {}"),_(this,"codeExampleHTML1",'
    \n\t
    \n\t\t

    \n\t
    \n
    '),_(this,"html2",'public codeExampleJSON = [\n\t{\n\t\t"title": "apples",\n\t\t"count": [12000, 20000],\n\t\t"description": {"text": "...", "sensitive": false}\n\t},\n\t{\n\t\t"title": "oranges",\n\t\t"count": [17500, null],\n\t\t"description": {"text": "...", "sensitive": false}\n\t}\n];'),_(this,"html3","public codeExampleJS =\n\tfunction greetMe(yourName) {\n\t\talert('Hello ' + yourName);\n\t}\n\tgreetMe('World');"),_(this,"html4",'public codeExampleJSON = [\n\t\t{\n\t\t\t"title": "apples",\n\t\t\t"count": [12000, 20000],\n\t\t\t"description": {"text": "...", "sensitive": false}\n\t\t},\n\t\t{\n\t\t\t"title": "oranges",\n\t\t\t"count": [17500, null],\n\t\t\t"description": {"text": "...", "sensitive": false}\n\t\t}\n\t];\n\npublic codeExampleJS =\n\tfunction greetMe(yourName) {\n\t\talert(\'Hello \' + yourName);\n\t}\n\tgreetMe(\'World\');'),_(this,"html5","import { Injectable } from '@angular/core';\nimport { Http } from '@angular/http';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n@Injectable()\nexport class ContentService {\n\tconstructor(\n\t\tprivate http: Http\n\t) {}\n\n\tgetMarkdown(): any {\n\t\treturn this.http.get('/example.md')\n\t\t.pipe(map((res) => res.text()));\n\t}\n}"),_(this,"example1",'
    \n\t
    \n\t\t\n\t
    \n\t\n\t
    \n\t\t\n\t
    \n
    '),_(this,"example2",'
    \n\t
    \n\t\t\n\t
    \n\t\n\t
    \n\t\t\n\t
    \n
    '),_(this,"example3",'
    \n\t
    \n\t\t\n\t
    \n\t\n\t
    \n\t\t\n\t
    \n
    '),_(this,"example4",''),_(this,"example5",''),_(this,"codeExampleJSON",'[\n\t{\n\t\t"title": "apples",\n\t\t"count": [12000, 20000],\n\t\t"description": {"text": "...", "sensitive": false}\n\t},\n\t{\n\t\t"title": "oranges",\n\t\t"count": [17500, null],\n\t\t"description": {"text": "...", "sensitive": false}\n\t}\n]'),_(this,"codeExampleJS","\nfunction greetMe(yourName) {\n\talert('Hello ' + yourName);\n}\ngreetMe('World');"),_(this,"codeExamples",[this.codeExampleJS,this.codeExampleJSON]),_(this,"codeExampleMarkdown","public mdExample: string;\n\nconstructor(\n\tprivate contentService: ContentService\n) {\n\tcontentService.getMarkdown().subscribe(data => this.mdExample = data);\n}")}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:50,vars:16,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom-l"],[1,"h4","u-margin-bottom"],[1,"u-margin-bottom-xs"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Code snippet"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",3),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"h3",4),i.\u0275\u0275text(7,"Single text"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",1)(9,"div",5)(10,"h4"),i.\u0275\u0275element(11,"aui-code-snippet",2),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(12,"div",3),i.\u0275\u0275element(13,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(14,"h3",4),i.\u0275\u0275text(15,"JSON"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(16,"div",1)(17,"div",5),i.\u0275\u0275element(18,"aui-code-snippet",2),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(19,"div",1),i.\u0275\u0275element(20,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(21,"div",3),i.\u0275\u0275element(22,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(23,"h3",4),i.\u0275\u0275text(24,"JavaScript"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(25,"div",1)(26,"div",5),i.\u0275\u0275element(27,"aui-code-snippet",2),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(28,"div",1),i.\u0275\u0275element(29,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(30,"div",3),i.\u0275\u0275element(31,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(32,"h3",4),i.\u0275\u0275text(33,"Multiple code snippets"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(34,"div",1)(35,"div",5),i.\u0275\u0275element(36,"aui-code-snippet",2),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(37,"div",1),i.\u0275\u0275element(38,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(39,"div",3),i.\u0275\u0275element(40,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(41,"h3",4),i.\u0275\u0275text(42,"Markdown file"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(43,"div",1),i.\u0275\u0275element(44,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(45,"div",1)(46,"div",5),i.\u0275\u0275element(47,"aui-code-snippet",2),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(48,"div",1),i.\u0275\u0275element(49,"aui-code-snippet",2),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.codeExampleJS1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML1),i.\u0275\u0275advance(6),i.\u0275\u0275property("codeSnippet","Single text example"),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.example1),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.codeExampleJSON),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.example2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.html2),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.codeExampleJS),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.example3),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.html3),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.codeExamples),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.example4),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.html4),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.html5),i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.codeExampleMarkdown),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.example5))},dependencies:[Tt],encapsulation:2})),t})();function Gy(t,n,e,r,o,c,h){try{var y=t[c](h),E=y.value}catch(M){return void e(M)}y.done?n(E):Promise.resolve(E).then(r,o)}function Wy(t){return function(){var n=this,e=arguments;return new Promise(function(r,o){var c=t.apply(n,e);function h(E){Gy(c,r,o,h,y,"next",E)}function y(E){Gy(c,r,o,h,y,"throw",E)}h(void 0)})}}function Zy(t,n){if(1&t&&(i.\u0275\u0275namespaceSVG(),i.\u0275\u0275namespaceHTML(),i.\u0275\u0275elementStart(0,"span",3),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.ariaLabel)}}let Gt=(()=>{class t{get classes(){return["ai",this.className,this.name].filter(Boolean).join(" ")}constructor(e){var r=this;this.renderer=e,this.className="",this.fetchAntwerpIcons=Wy(function*(){try{const h=yield(yield fetch("https://cdn.antwerpen.be/core_branding_scss/6.2.2/assets/images/ai.svg")).text(),y=r.renderer.createElement("svg");r.renderer.setAttribute(y,"id","aiSvg");const E=(new DOMParser).parseFromString(h,"text/html").querySelector("body > svg");r.renderer.appendChild(y,E),document.getElementById("aiSvg")||r.renderer.appendChild(document.body,y)}catch(o){throw new Error(o)}})}ngOnInit(){document.getElementById("aiSvg")||this.fetchAntwerpIcons()}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.Renderer2))},t.\u0275cmp=i.\u0275\u0275defineComponent({type:t,selectors:[["aui-icon"]],hostVars:1,hostBindings:function(e,r){2&e&&i.\u0275\u0275attribute("class",r.classes)},inputs:{name:"name",ariaLabel:"ariaLabel",className:"className"},decls:4,vars:2,consts:[[1,"ai"],["aria-hidden","true"],["class","u-screen-reader-only",4,"ngIf"],[1,"u-screen-reader-only"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"span",0),i.\u0275\u0275namespaceSVG(),i.\u0275\u0275elementStart(1,"svg",1),i.\u0275\u0275element(2,"use"),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(3,Zy,2,1,"span",2),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(2),i.\u0275\u0275attribute("href","#"+r.name),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.ariaLabel))},dependencies:[Re],styles:["[_nghost-%COMP%]{display:inline-flex}"]}),t})(),cn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({imports:[Ke]}),t})();function AD(t,n){if(1&t&&i.\u0275\u0275element(0,"img",5),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("alt",e.title)("src",e.image,i.\u0275\u0275sanitizeUrl)}}function lx(t,n){if(1&t&&i.\u0275\u0275element(0,"aui-icon",6),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("name",e.icon)}}function qy(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span",7),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.letter)}}function ux(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.title)}}const fh=function(t,n,e,r){return[t,n,e,r]};var ph=(()=>{return(t=ph||(ph={})).S="S",t.M="M",t.L="L",ph;var t})();let OD=(()=>{class t{constructor(){_(this,"title",""),_(this,"image",void 0),_(this,"icon",void 0),_(this,"letter",""),_(this,"className",""),_(this,"size",ph.M),_(this,"rounded",!1),_(this,"avatarSizes",{S:"a-avatar--s",M:"",L:"a-avatar--l"})}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-avatar"]],inputs:{title:"title",image:"image",icon:"icon",letter:"letter",className:"className",size:"size",rounded:"rounded"},decls:5,vars:10,consts:[[1,"a-avatar",3,"ngClass"],["class","a-avatar__image",3,"alt","src",4,"ngIf"],["class","a-avatar__icon",3,"name",4,"ngIf"],["aria-hidden","true","class","a-avatar__letter",4,"ngIf"],["class","u-screen-reader-only",4,"ngIf"],[1,"a-avatar__image",3,"alt","src"],[1,"a-avatar__icon",3,"name"],["aria-hidden","true",1,"a-avatar__letter"],[1,"u-screen-reader-only"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,AD,1,2,"img",1),i.\u0275\u0275template(2,lx,1,1,"aui-icon",2),i.\u0275\u0275template(3,qy,2,1,"span",3),i.\u0275\u0275template(4,ux,2,1,"span",4),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction4(5,fh,r.className,r.avatarSizes[r.size],r.letter?"a-avatar--primary":"",r.rounded?"a-avatar--rounded":"")),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.image),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.icon),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.letter),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.icon||r.letter))},dependencies:[ze,Re,Gt],encapsulation:2})),t})(),$m=(()=>{class t{constructor(){_(this,"importModule","import { AvatarModule } from '@acpaas-ui/ngx-avatar';\n\n@NgModule({\n\timports: [\n\t\tAvatarModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"example1",'\n\n'),_(this,"example2",'\n\n'),_(this,"example3",'\n\n'),_(this,"example4",'\n\n')}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:28,vars:5,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom-xs"],["icon","ai-alarm-bell","title","An alarm bell icon","size","S"],["icon","ai-alarm-bell","title","An alarm bell icon"],["icon","ai-alarm-bell","title","An alarm bell icon","size","L"],["image","https://www.publicdomainpictures.net/pictures/270000/velka/avatar-people-person-business-u.jpg","title","A robot avatar","size","S"],["image","https://www.publicdomainpictures.net/pictures/270000/velka/avatar-people-person-business-u.jpg","title","A robot avatar"],["image","https://www.publicdomainpictures.net/pictures/270000/velka/avatar-people-person-business-u.jpg","title","A robot avatar","size","L"],["letter","T","title","A letter T avatar","size","S"],["letter","T","title","A letter T avatar"],["letter","T","title","A letter T avatar","size","L"],["icon","ai-alarm-bell","title","An alarm bell icon","size","S","rounded","true"],["letter","T","title","A letter T avatar","rounded","true"],["image","https://www.publicdomainpictures.net/pictures/270000/velka/avatar-people-person-business-u.jpg","title","A robot avatar","size","L","rounded","true"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Avatar"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementStart(6,"div",3),i.\u0275\u0275element(7,"aui-avatar",4)(8,"aui-avatar",5)(9,"aui-avatar",6),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(10,"div",1),i.\u0275\u0275element(11,"aui-code-snippet",2),i.\u0275\u0275elementStart(12,"div",3),i.\u0275\u0275element(13,"aui-avatar",7)(14,"aui-avatar",8)(15,"aui-avatar",9),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(16,"div",1),i.\u0275\u0275element(17,"aui-code-snippet",2),i.\u0275\u0275elementStart(18,"div",3),i.\u0275\u0275element(19,"aui-avatar",10)(20,"aui-avatar",11)(21,"aui-avatar",12),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(22,"div",1),i.\u0275\u0275element(23,"aui-code-snippet",2),i.\u0275\u0275elementStart(24,"div",3),i.\u0275\u0275element(25,"aui-avatar",13)(26,"aui-avatar",14)(27,"aui-avatar",15),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.importModule),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.example1),i.\u0275\u0275advance(6),i.\u0275\u0275property("codeSnippet",r.example2),i.\u0275\u0275advance(6),i.\u0275\u0275property("codeSnippet",r.example3),i.\u0275\u0275advance(6),i.\u0275\u0275property("codeSnippet",r.example4))},dependencies:[Tt,OD],encapsulation:2})),t})();var Yy=R(830);function is(t,n){return new mr.y(e=>{const r=t.length;if(0===r)return void e.complete();const o=new Array(r);let c=0,h=0;for(let y=0;y{M||(M=!0,h++),o[y]=A},error:A=>e.error(A),complete:()=>{c++,(c===r||!M)&&(h===r&&e.next(n?n.reduce((A,k,j)=>(A[k]=o[j],A),{}):o),e.complete())}}))}})}let Fn=(()=>{class t{constructor(e,r){this._renderer=e,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t}),t})(),ki=(()=>{class t extends Fn{}return t.\u0275fac=function(){let n;return function(r){return(n||(n=i.\u0275\u0275getInheritedFactory(t)))(r||t)}}(),t.\u0275dir=i.\u0275\u0275defineDirective({type:t,features:[i.\u0275\u0275InheritDefinitionFeature]}),t})();const xn=new i.InjectionToken("NgValueAccessor"),Qi={provide:xn,useExisting:(0,i.forwardRef)(()=>Er),multi:!0};let Er=(()=>{class t extends ki{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=i.\u0275\u0275getInheritedFactory(t)))(r||t)}}(),t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("change",function(c){return r.onChange(c.target.checked)})("blur",function(){return r.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([Qi]),i.\u0275\u0275InheritDefinitionFeature]}),t})();const dl={provide:xn,useExisting:(0,i.forwardRef)(()=>Di),multi:!0},fl=new i.InjectionToken("CompositionEventMode");let Di=(()=>{class t extends Fn{constructor(e,r,o){super(e,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function hl(){const t=x()?x().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(fl,8))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,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(e,r){1&e&&i.\u0275\u0275listener("input",function(c){return r._handleInput(c.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(c){return r._compositionEnd(c.target.value)})},features:[i.\u0275\u0275ProvidersFeature([dl]),i.\u0275\u0275InheritDefinitionFeature]}),t})();const pl=!1,Jt=new i.InjectionToken("NgValidators"),Fi=new i.InjectionToken("NgAsyncValidators");function Zm(t){return null!=t}function qm(t){const n=(0,i.\u0275isPromise)(t)?(0,yn.D)(t):t;if(pl&&!(0,i.\u0275isObservable)(n)){let e="Expected async validator to return Promise or Observable.";throw"object"==typeof t&&(e+=" Are you using a synchronous validator where an async validator is expected?"),new i.\u0275RuntimeError(-1101,e)}return n}function Ym(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function Eh(t,n){return n.map(e=>e(t))}function Ky(t){return t.map(n=>function Qm(t){return!t.validate}(n)?n:e=>n.validate(e))}function ml(t){return null!=t?function qu(t){if(!t)return null;const n=t.filter(Zm);return 0==n.length?null:function(e){return Ym(Eh(e,n))}}(Ky(t)):null}function Km(t){return null!=t?function Dh(t){if(!t)return null;const n=t.filter(Zm);return 0==n.length?null:function(e){return function Gr(...t){if(1===t.length){const n=t[0];if((0,Gp.k)(n))return is(n,null);if((0,Yy.K)(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return is(e.map(r=>n[r]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return is(t=1===t.length&&(0,Gp.k)(t[0])?t[0]:t,null).pipe((0,Xe.U)(e=>n(...e)))}return is(t,null)}(Eh(e,n).map(qm)).pipe((0,Xe.U)(Ym))}}(Ky(t)):null}function Yu(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function Qu(t){return t._rawValidators}function Sh(t){return t._rawAsyncValidators}function Th(t){return t?Array.isArray(t)?t:[t]:[]}function gl(t,n){return Array.isArray(t)?t.includes(n):t===n}function Jm(t,n){const e=Th(n);return Th(t).forEach(o=>{gl(e,o)||e.push(o)}),e}function Xm(t,n){return Th(n).filter(e=>!gl(t,e))}class Mh{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(n){this._rawValidators=n||[],this._composedValidatorFn=ml(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Km(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Nn extends Mh{get formDirective(){return null}get path(){return null}}class rs extends Mh{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class eg{constructor(n){this._cd=n}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}}let In=(()=>{class t extends eg{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(rs,2))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,r){2&e&&i.\u0275\u0275classProp("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[i.\u0275\u0275InheritDefinitionFeature]}),t})(),Ku=(()=>{class t extends eg{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(Nn,10))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,r){2&e&&i.\u0275\u0275classProp("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[i.\u0275\u0275InheritDefinitionFeature]}),t})();function Co(t,n){return t?`with name: '${n}'`:`at index: ${n}`}const wo=!1,Js="VALID",Ph="INVALID",os="PENDING",Lh="DISABLED";function ob(t){return(Ah(t)?t.validators:t)||null}function rg(t,n){return(Ah(n)?n.asyncValidators:t)||null}function Ah(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function dn(t,n,e){const r=t.controls;if(!(n?Object.keys(r):r).length)throw new i.\u0275RuntimeError(1e3,wo?function FD(t){return`\n There are no form controls registered with this ${t?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!r[e])throw new i.\u0275RuntimeError(1001,wo?function ND(t,n){return`Cannot find form control ${Co(t,n)}`}(n,e):"")}function og(t,n,e){t._forEachChild((r,o)=>{if(void 0===e[o])throw new i.\u0275RuntimeError(1002,wo?function ig(t,n){return`Must supply a value for form control ${Co(t,n)}`}(n,o):"")})}class Oh{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Js}get invalid(){return this.status===Ph}get pending(){return this.status==os}get disabled(){return this.status===Lh}get enabled(){return this.status!==Lh}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Jm(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Jm(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Xm(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Xm(n,this._rawAsyncValidators))}hasValidator(n){return gl(this._rawValidators,n)}hasAsyncValidator(n){return gl(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=os,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Lh,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Js,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Js||this.status===os)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Lh:Js}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=os,this._hasOwnPendingAsyncValidator=!0;const e=qm(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((r,o)=>r&&r._find(o),this)}getError(n,e){const r=e?this.get(e):this;return r&&r.errors?r.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?Lh:this.errors?Ph:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(os)?os:this._anyControlsHaveStatus(Ph)?Ph:Js}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Ah(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function BD(t){return Array.isArray(t)?ml(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function sb(t){return Array.isArray(t)?Km(t):t||null}(this._rawAsyncValidators)}}class Xu extends Oh{constructor(n,e,r){super(ob(e),rg(r,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,r={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){og(this,!0,n),Object.keys(n).forEach(r=>{dn(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(r=>{const o=this.controls[r];o&&o.patchValue(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((r,o)=>{r.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,r)=>(n[r]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,r)=>!!r._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const r=this.controls[e];r&&n(r,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,r]of Object.entries(this.controls))if(this.contains(e)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,r,o)=>((r.enabled||this.disabled)&&(e[o]=r.value),e))}_reduceChildren(n,e){let r=n;return this._forEachChild((o,c)=>{r=e(r,o,c)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class sg extends Xu{}const Ki=new i.InjectionToken("CallSetDisabledState",{providedIn:"root",factory:()=>ec}),ec="always";function kh(t,n){return[...n.path,t]}function vl(t,n,e=ec){nc(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function Dr(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&ag(t,n)})}(t,n),function Wr(t,n){const e=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function HD(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&ag(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function dx(t,n){if(n.valueAccessor.setDisabledState){const e=r=>{n.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function Rh(t,n,e=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),yl(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function tc(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function nc(t,n){const e=Qu(t);null!==n.validator?t.setValidators(Yu(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const r=Sh(t);null!==n.asyncValidator?t.setAsyncValidators(Yu(r,n.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const o=()=>t.updateValueAndValidity();tc(n._rawValidators,o),tc(n._rawAsyncValidators,o)}function yl(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=Qu(t);if(Array.isArray(o)&&o.length>0){const c=o.filter(h=>h!==n.validator);c.length!==o.length&&(e=!0,t.setValidators(c))}}if(null!==n.asyncValidator){const o=Sh(t);if(Array.isArray(o)&&o.length>0){const c=o.filter(h=>h!==n.asyncValidator);c.length!==o.length&&(e=!0,t.setAsyncValidators(c))}}}const r=()=>{};return tc(n._rawValidators,r),tc(n._rawAsyncValidators,r),e}function ag(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ug(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function dg(t,n){if(!n)return null;let e,r,o;return Array.isArray(n),n.forEach(c=>{c.constructor===Di?e=c:function cg(t){return Object.getPrototypeOf(t.constructor)===ki}(c)?r=c:o=c}),o||r||e||null}function cb(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function hg(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const Xs=class extends Oh{constructor(n=null,e,r){super(ob(e),rg(r,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ah(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=hg(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){cb(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){cb(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){hg(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},ic=Xs,pg={provide:rs,useExisting:(0,i.forwardRef)(()=>Xi)},mg=(()=>Promise.resolve())();let Xi=(()=>{class t extends rs{constructor(e,r,o,c,h,y){super(),this._changeDetectorRef=h,this.callSetDisabledState=y,this.control=new Xs,this._registered=!1,this.update=new i.EventEmitter,this._parent=e,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=dg(0,c)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),ug(e,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(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){vl(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){mg.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const r=e.isDisabled.currentValue,o=0!==r&&(0,i.\u0275coerceToBoolean)(r);mg.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?kh(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(Nn,9),i.\u0275\u0275directiveInject(Jt,10),i.\u0275\u0275directiveInject(Fi,10),i.\u0275\u0275directiveInject(xn,10),i.\u0275\u0275directiveInject(i.ChangeDetectorRef,8),i.\u0275\u0275directiveInject(Ki,8))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.\u0275\u0275ProvidersFeature([pg]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),t})(),Vh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),_g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({}),t})();const jh=new i.InjectionToken("NgModelWithFormControlWarning"),yb={provide:rs,useExisting:(0,i.forwardRef)(()=>Eo)};let Eo=(()=>{class t extends rs{set isDisabled(e){}constructor(e,r,o,c,h){super(),this._ngModelWarningConfig=c,this.callSetDisabledState=h,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(r),this.valueAccessor=dg(0,o)}ngOnChanges(e){if(this._isControlChanged(e)){const r=e.form.previousValue;r&&Rh(r,this,!1),vl(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ug(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Rh(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(Jt,10),i.\u0275\u0275directiveInject(Fi,10),i.\u0275\u0275directiveInject(xn,10),i.\u0275\u0275directiveInject(jh,8),i.\u0275\u0275directiveInject(Ki,8))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([yb]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),t})();const bb={provide:Nn,useExisting:(0,i.forwardRef)(()=>ss)};let ss=(()=>{class t extends Nn{constructor(e,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.EventEmitter,this._setValidators(e),this._setAsyncValidators(r)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(yl(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const r=this.form.get(e.path);return vl(r,e,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){Rh(e.control||null,e,!1),function lb(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,r){this.form.get(e.path).setValue(r)}onSubmit(e){return this.submitted=!0,function bl(t,n){t._syncPendingControls(),n.forEach(e=>{const r=e.control;"submit"===r.updateOn&&r._pendingChange&&(e.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const r=e.control,o=this.form.get(e.path);r!==o&&(Rh(r||null,e),(t=>t instanceof Xs)(o)&&(vl(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const r=this.form.get(e.path);(function Ji(t,n){nc(t,n)})(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const r=this.form.get(e.path);r&&function Sr(t,n){return yl(t,n)}(r,e)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){nc(this.form,this),this._oldForm&&yl(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(Jt,10),i.\u0275\u0275directiveInject(Fi,10),i.\u0275\u0275directiveInject(Ki,8))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("submit",function(c){return r.onSubmit(c)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([bb]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),t})();const Cg={provide:rs,useExisting:(0,i.forwardRef)(()=>El)};let El=(()=>{class t extends rs{set isDisabled(e){}constructor(e,r,o,c,h){super(),this._ngModelWarningConfig=h,this._added=!1,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=dg(0,c)}ngOnChanges(e){this._added||this._setUpControl(),ug(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return kh(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(Nn,13),i.\u0275\u0275directiveInject(Jt,10),i.\u0275\u0275directiveInject(Fi,10),i.\u0275\u0275directiveInject(xn,10),i.\u0275\u0275directiveInject(jh,8))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.\u0275\u0275ProvidersFeature([Cg]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),t})();const wg={provide:xn,useExisting:(0,i.forwardRef)(()=>Do),multi:!0};function Uh(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Do=(()=>{class t extends ki{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const o=Uh(this._getOptionId(e),e);this.setProperty("value",o)}registerOnChange(e){this.onChange=r=>{this.value=this._getOptionValue(r),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r),e))return r;return null}_getOptionValue(e){const r=function Eg(t){return t.split(":")[0]}(e);return this._optionMap.has(r)?this._optionMap.get(r):e}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=i.\u0275\u0275getInheritedFactory(t)))(r||t)}}(),t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("change",function(c){return r.onChange(c.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([wg]),i.\u0275\u0275InheritDefinitionFeature]}),t})(),ea=(()=>{class t{constructor(e,r,o){this._element=e,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(Uh(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Do,9))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const ta={provide:xn,useExisting:(0,i.forwardRef)(()=>Dg),multi:!0};function wb(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Dg=(()=>{class t extends ki{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let r;if(this.value=e,Array.isArray(e)){const o=e.map(c=>this._getOptionId(c));r=(c,h)=>{c._setSelected(o.indexOf(h.toString())>-1)}}else r=(o,c)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(e){this.onChange=r=>{const o=[],c=r.selectedOptions;if(void 0!==c){const h=c;for(let y=0;y{class t{constructor(e,r,o){this._element=e,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(wb(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(wb(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Dg,9))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),Mb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({imports:[_g]}),t})();class Pg extends Oh{constructor(n,e,r){super(ob(e),rg(r,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,r={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,e={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,r={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){og(this,!1,n),n.forEach((r,o)=>{dn(this,!1,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((r,o)=>{r.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,r)=>!!r._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,r)=>{n(e,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}const Dl=Pg;function xb(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let QD=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,r=null){const o=this._reduceControls(e);let c={};return xb(r)?c=r:null!==r&&(c.validators=r.validator,c.asyncValidators=r.asyncValidator),new Xu(o,c)}record(e,r=null){const o=this._reduceControls(e);return new sg(o,r)}control(e,r,o){let c={};return this.useNonNullable?(xb(r)?c=r:(c.validators=r,c.asyncValidators=o),new Xs(e,{...c,nonNullable:!0})):new Xs(e,r,o)}array(e,r,o){const c=e.map(h=>this._createControl(h));return new Pg(c,r,o)}_reduceControls(e){const r={};return Object.keys(e).forEach(o=>{r[o]=this._createControl(e[o])}),r}_createControl(e){return e instanceof Xs||e instanceof Oh?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Sl=(()=>{class t extends QD{group(e,r=null){return super.group(e,r)}control(e,r,o){return super.control(e,r,o)}array(e,r,o){return super.array(e,r,o)}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=i.\u0275\u0275getInheritedFactory(t)))(r||t)}}(),t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),er=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ki,useValue:e.callSetDisabledState??ec}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({imports:[Mb]}),t})(),Tl=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:jh,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Ki,useValue:e.callSetDisabledState??ec}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({imports:[Mb]}),t})();function Bn(t){return n=>n.lift(new lc(t))}class lc{constructor(n){this.notifier=n}call(n,e){const r=new JD(n),o=(0,Pi.ft)(this.notifier,new Pi.IY(r));return o&&!r.seenValue?(r.add(o),e.subscribe(r)):r}}class JD extends Pi.Ds{constructor(n){super(n),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}var XD={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function $h(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.width?String(n.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}const iS={date:$h({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:$h({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:$h({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var vx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Gh(t){return function(n,e){var o;if("formatting"===(null!=e&&e.context?String(e.context):"standalone")&&t.formattingValues){var c=t.defaultFormattingWidth||t.defaultWidth,h=null!=e&&e.width?String(e.width):c;o=t.formattingValues[h]||t.formattingValues[c]}else{var y=t.defaultWidth,E=null!=e&&e.width?String(e.width):t.defaultWidth;o=t.values[E]||t.values[y]}return o[t.argumentCallback?t.argumentCallback(n):n]}}const lS={ordinalNumber:function(n,e){var r=Number(n),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Gh({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Gh({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(n){return n-1}}),month:Gh({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Gh({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Gh({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function cc(t){return function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.width,c=n.match(r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth]);if(!c)return null;var M,h=c[0],y=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],E=Array.isArray(y)?function uS(t,n){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:{},r=n.match(t.matchPattern);if(!r)return null;var o=r[0],c=n.match(t.parsePattern);if(!c)return null;var h=t.valueCallback?t.valueCallback(c[0]):c[0];return{value:h=e.valueCallback?e.valueCallback(h):h,rest:n.slice(o.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(n){return parseInt(n,10)}}),era:cc({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:cc({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(n){return n+1}}),month:cc({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:cc({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:cc({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const yS={code:"en-US",formatDistance:function(n,e,r){var o,c=XD[n];return o="string"==typeof c?c:1===e?c.one:c.other.replace("{{count}}",e.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o},formatLong:iS,formatRelative:function(n,e,r,o){return vx[n]},localize:lS,match:Bb,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Zn(t){if(null===t||!0===t||!1===t)return NaN;var n=Number(t);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function bn(t,n){if(n.length1?"s":"")+" required, but only "+n.length+" present")}function hc(t){return(hc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function si(t){bn(1,arguments);var n=Object.prototype.toString.call(t);return t instanceof Date||"object"===hc(t)&&"[object Date]"===n?new Date(t.getTime()):"number"==typeof t||"[object Number]"===n?new Date(t):(("string"==typeof t||"[object String]"===n)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function wS(t,n){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}var Vb=function(n,e){switch(n){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},jb=function(n,e){switch(n){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}};const Zh={p:jb,P:function(n,e){var h,r=n.match(/(P+)(p+)?/)||[],o=r[1],c=r[2];if(!c)return Vb(n,e);switch(o){case"P":h=e.dateTime({width:"short"});break;case"PP":h=e.dateTime({width:"medium"});break;case"PPP":h=e.dateTime({width:"long"});break;default:h=e.dateTime({width:"full"})}return h.replace("{{date}}",Vb(o,e)).replace("{{time}}",jb(c,e))}};var Hb=["D","DD"],Ub=["YY","YYYY"];function Rg(t,n,e){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}function qh(t){return(qh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function Yh(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&fc(t,n)}function fc(t,n){return(fc=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r})(t,n)}function Fg(t){var n=function SS(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=Ml(t);if(n){var c=Ml(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function Ng(t,n){return!n||"object"!==qh(n)&&"function"!=typeof n?Bg(t):n}(this,o)}}function Bg(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ml(t){return(Ml=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(t)}function Vg(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function jg(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=Wg(t);if(n){var c=Wg(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function xS(t,n){return!n||"object"!==xl(n)&&"function"!=typeof n?$g(t):n}(this,o)}}(e);function e(){var r;!function Wb(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h0,r=e?n:1-n;if(r<=50)o=t||100;else{var c=r+50;o=t+100*Math.floor(c/100)-(t>=c%100?100:0)}return e?o:1-o}function Il(t){return t%400==0||t%4==0&&t%100!=0}function tf(t){return(tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function Mr(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=oa(t);if(n){var c=oa(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function jS(t,n){return!n||"object"!==tf(n)&&"function"!=typeof n?Jg(t):n}(this,o)}}(e);function e(){var r;!function Kg(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h0}},{key:"set",value:function(o,c,h){var y=o.getUTCFullYear();if(h.isTwoDigitYear){var E=Qg(h.year,y);return o.setUTCFullYear(E,0,1),o.setUTCHours(0,0,0,0),o}return o.setUTCFullYear("era"in c&&1!==c.era?1-h.year:h.year,0,1),o.setUTCHours(0,0,0,0),o}}]),e}(ht),Xg={};function Pl(){return Xg}function us(t,n){var e,r,o,c,h,y,E,M;bn(1,arguments);var A=Pl(),k=Zn(null!==(e=null!==(r=null!==(o=null!==(c=n?.weekStartsOn)&&void 0!==c?c:null==n||null===(h=n.locale)||void 0===h||null===(y=h.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==o?o:A.weekStartsOn)&&void 0!==r?r:null===(E=A.locale)||void 0===E||null===(M=E.options)||void 0===M?void 0:M.weekStartsOn)&&void 0!==e?e:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var j=si(t),V=j.getUTCDay(),K=(V=1&&V<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var K=new Date(0);K.setUTCFullYear(k+1,0,V),K.setUTCHours(0,0,0,0);var se=us(K,n),ae=new Date(0);ae.setUTCFullYear(k,0,V),ae.setUTCHours(0,0,0,0);var de=us(ae,n);return A.getTime()>=se.getTime()?k+1:A.getTime()>=de.getTime()?k:k-1}function Ll(t){return(Ll="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function af(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=mc(t);if(n){var c=mc(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function $S(t,n){return!n||"object"!==Ll(n)&&"function"!=typeof n?lf(t):n}(this,o)}}(e);function e(){var r;!function o0(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h0}},{key:"set",value:function(o,c,h,y){var E=sf(o,y);if(h.isTwoDigitYear){var M=Qg(h.year,E);return o.setUTCFullYear(M,0,y.firstWeekContainsDate),o.setUTCHours(0,0,0,0),us(o,y)}return o.setUTCFullYear("era"in c&&1!==c.era?1-h.year:h.year,0,y.firstWeekContainsDate),o.setUTCHours(0,0,0,0),us(o,y)}}]),e}(ht);function sa(t){bn(1,arguments);var e=si(t),r=e.getUTCDay(),o=(r<1?7:0)+r-1;return e.setUTCDate(e.getUTCDate()-o),e.setUTCHours(0,0,0,0),e}function uf(t){return(uf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function r_(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=df(t);if(n){var c=df(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function Al(t,n){return!n||"object"!==uf(n)&&"function"!=typeof n?o_(t):n}(this,o)}}(e);function e(){var r;!function a0(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=_c(t);if(n){var c=_c(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function f0(t,n){return!n||"object"!==Ol(n)&&"function"!=typeof n?a_(t):n}(this,o)}}(e);function e(){var r;!function gc(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=pf(t);if(n){var c=pf(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function p0(t,n){return!n||"object"!==kl(n)&&"function"!=typeof n?vc(t):n}(this,o)}}(e);function e(){var r;!function qS(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=1&&c<=4}},{key:"set",value:function(o,c,h){return o.setUTCMonth(3*(h-1),1),o.setUTCHours(0,0,0,0),o}}]),e}(ht);function mf(t){return(mf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function f_(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=_f(t);if(n){var c=_f(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function eT(t,n){return!n||"object"!==mf(n)&&"function"!=typeof n?p_(t):n}(this,o)}}(e);function e(){var r;!function h_(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=1&&c<=4}},{key:"set",value:function(o,c,h){return o.setUTCMonth(3*(h-1),1),o.setUTCHours(0,0,0,0),o}}]),e}(ht);function yc(t){return(yc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function C0(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=yf(t);if(n){var c=yf(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function nT(t,n){return!n||"object"!==yc(n)&&"function"!=typeof n?g_(t):n}(this,o)}}(e);function e(){var r;!function b0(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=0&&c<=11}},{key:"set",value:function(o,c,h){return o.setUTCMonth(h,1),o.setUTCHours(0,0,0,0),o}}]),e}(ht);function bf(t){return(bf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function oT(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=Df(t);if(n){var c=Df(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function sT(t,n){return!n||"object"!==bf(n)&&"function"!=typeof n?bc(t):n}(this,o)}}(e);function e(){var r;!function Cf(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=0&&c<=11}},{key:"set",value:function(o,c,h){return o.setUTCMonth(h,1),o.setUTCHours(0,0,0,0),o}}]),e}(ht),uT=6048e5;function Tf(t){return(Tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function xr(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=If(t);if(n){var c=If(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function pT(t,n){return!n||"object"!==Tf(n)&&"function"!=typeof n?xf(t):n}(this,o)}}(e);function e(){var r;!function dT(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=1&&c<=53}},{key:"set",value:function(o,c,h,y){return us(function cT(t,n,e){bn(2,arguments);var r=si(t),o=Zn(n),c=function Sf(t,n){bn(1,arguments);var e=si(t),r=us(e,n).getTime()-function lT(t,n){var e,r,o,c,h,y,E,M;bn(1,arguments);var A=Pl(),k=Zn(null!==(e=null!==(r=null!==(o=null!==(c=n?.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(h=n.locale)||void 0===h||null===(y=h.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==o?o:A.firstWeekContainsDate)&&void 0!==r?r:null===(E=A.locale)||void 0===E||null===(M=E.options)||void 0===M?void 0:M.firstWeekContainsDate)&&void 0!==e?e:1),j=sf(t,n),V=new Date(0);return V.setUTCFullYear(j,0,k),V.setUTCHours(0,0,0,0),us(V,n)}(e,n).getTime();return Math.round(r/uT)+1}(r,e)-o;return r.setUTCDate(r.getUTCDate()-7*c),r}(o,h,y),y)}}]),e}(ht);var Sx=6048e5;function _T(t,n){bn(2,arguments);var e=si(t),r=Zn(n),o=function tr(t){bn(1,arguments);var n=si(t),e=sa(n).getTime()-function gT(t){bn(1,arguments);var n=function __(t){bn(1,arguments);var n=si(t),e=n.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(e+1,0,4),r.setUTCHours(0,0,0,0);var o=sa(r),c=new Date(0);c.setUTCFullYear(e,0,4),c.setUTCHours(0,0,0,0);var h=sa(c);return n.getTime()>=o.getTime()?e+1:n.getTime()>=h.getTime()?e:e-1}(t),e=new Date(0);return e.setUTCFullYear(n,0,4),e.setUTCHours(0,0,0,0),sa(e)}(n).getTime();return Math.round(e/Sx)+1}(e)-r;return e.setUTCDate(e.getUTCDate()-7*o),e}function Rl(t){return(Rl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function L0(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=Cc(t);if(n){var c=Cc(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function k0(t,n){return!n||"object"!==Rl(n)&&"function"!=typeof n?Lf(t):n}(this,o)}}(e);function e(){var r;!function vT(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=1&&c<=53}},{key:"set",value:function(o,c,h){return sa(_T(o,h))}}]),e}(ht);function nr(t){return(nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function Af(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=Rf(t);if(n){var c=Rf(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function F0(t,n){return!n||"object"!==nr(n)&&"function"!=typeof n?kf(t):n}(this,o)}}(e);function e(){var r;!function cs(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=1&&c<=B0[E]:c>=1&&c<=bT[E]}},{key:"set",value:function(o,c,h){return o.setUTCDate(h),o.setUTCHours(0,0,0,0),o}}]),e}(ht);function wc(t){return(wc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function Ec(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=Dc(t);if(n){var c=Dc(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function U0(t,n){return!n||"object"!==wc(n)&&"function"!=typeof n?aa(t):n}(this,o)}}(e);function e(){var r;!function CT(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=1&&c<=366:c>=1&&c<=365}},{key:"set",value:function(o,c,h){return o.setUTCMonth(0,h),o.setUTCHours(0,0,0,0),o}}]),e}(ht);function D_(t,n,e){var r,o,c,h,y,E,M,A;bn(2,arguments);var k=Pl(),j=Zn(null!==(r=null!==(o=null!==(c=null!==(h=e?.weekStartsOn)&&void 0!==h?h:null==e||null===(y=e.locale)||void 0===y||null===(E=y.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==c?c:k.weekStartsOn)&&void 0!==o?o:null===(M=k.locale)||void 0===M||null===(A=M.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==r?r:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var V=si(t),K=Zn(n),ye=((K%7+7)%7"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=jf(t);if(n){var c=jf(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function DT(t,n){return!n||"object"!==Vf(n)&&"function"!=typeof n?W0(t):n}(this,o)}}(e);function e(){var r;!function ET(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=0&&c<=6}},{key:"set",value:function(o,c,h,y){return(o=D_(o,h,y)).setUTCHours(0,0,0,0),o}}]),e}(ht);function Uf(t){return(Uf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function M_(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=Mo(t);if(n){var c=Mo(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function MT(t,n){return!n||"object"!==Uf(n)&&"function"!=typeof n?Mc(t):n}(this,o)}}(e);function e(){var r;!function TT(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=0&&c<=6}},{key:"set",value:function(o,c,h,y){return(o=D_(o,h,y)).setUTCHours(0,0,0,0),o}}]),e}(ht);function P_(t){return(P_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function L_(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=$f(t);if(n){var c=$f(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function Q0(t,n){return!n||"object"!==P_(n)&&"function"!=typeof n?zf(t):n}(this,o)}}(e);function e(){var r;!function xx(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=0&&c<=6}},{key:"set",value:function(o,c,h,y){return(o=D_(o,h,y)).setUTCHours(0,0,0,0),o}}]),e}(ht);function k_(t){return(k_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function Gf(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=Wf(t);if(n){var c=Wf(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function OT(t,n){return!n||"object"!==k_(n)&&"function"!=typeof n?F_(t):n}(this,o)}}(e);function e(){var r;!function eC(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=1&&c<=7}},{key:"set",value:function(o,c,h){return o=function O_(t,n){bn(2,arguments);var e=Zn(n);e%7==0&&(e-=7);var o=si(t),E=((e%7+7)%7<1?7:0)+e-o.getUTCDay();return o.setUTCDate(o.getUTCDate()+E),o}(o,h),o.setUTCHours(0,0,0,0),o}}]),e}(ht);function Zf(t){return(Zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function nC(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=l(t);if(n){var c=l(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function jT(t,n){return!n||"object"!==Zf(n)&&"function"!=typeof n?s(t):n}(this,o)}}(e);function e(){var r;!function FT(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=le(t);if(n){var c=le(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function N(t,n){return!n||"object"!==m(n)&&"function"!=typeof n?$(t):n}(this,o)}}(e);function e(){var r;!function v(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=rC(t);if(n){var c=rC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function WA(t,n){return!n||"object"!==xe(n)&&"function"!=typeof n?HT(t):n}(this,o)}}(e);function e(){var r;!function oe(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=sC(t);if(n){var c=sC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function XA(t,n){return!n||"object"!==oC(n)&&"function"!=typeof n?zT(t):n}(this,o)}}(e);function e(){var r;!function YA(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=1&&c<=12}},{key:"set",value:function(o,c,h){var y=o.getUTCHours()>=12;return o.setUTCHours(y&&h<12?h+12:y||12!==h?h:0,0,0,0),o}}]),e}(ht);function aC(t){return(aC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function Ax(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=lC(t);if(n){var c=lC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function sO(t,n){return!n||"object"!==aC(n)&&"function"!=typeof n?GT(t):n}(this,o)}}(e);function e(){var r;!function nO(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=0&&c<=23}},{key:"set",value:function(o,c,h){return o.setUTCHours(h,0,0,0),o}}]),e}(ht);function uC(t){return(uC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function kx(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=cC(t);if(n){var c=cC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function fO(t,n){return!n||"object"!==uC(n)&&"function"!=typeof n?ZT(t):n}(this,o)}}(e);function e(){var r;!function uO(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=0&&c<=11}},{key:"set",value:function(o,c,h){var y=o.getUTCHours()>=12;return o.setUTCHours(y&&h<12?h+12:h,0,0,0),o}}]),e}(ht);function dC(t){return(dC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function Fx(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=hC(t);if(n){var c=hC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function bO(t,n){return!n||"object"!==dC(n)&&"function"!=typeof n?YT(t):n}(this,o)}}(e);function e(){var r;!function gO(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=1&&c<=24}},{key:"set",value:function(o,c,h){return o.setUTCHours(h<=24?h%24:h,0,0,0),o}}]),e}(ht);function fC(t){return(fC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function Bx(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=pC(t);if(n){var c=pC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function MO(t,n){return!n||"object"!==fC(n)&&"function"!=typeof n?KT(t):n}(this,o)}}(e);function e(){var r;!function EO(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=0&&c<=59}},{key:"set",value:function(o,c,h){return o.setUTCMinutes(h,0,0),o}}]),e}(ht);function mC(t){return(mC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function jx(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=gC(t);if(n){var c=gC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function kO(t,n){return!n||"object"!==mC(n)&&"function"!=typeof n?XT(t):n}(this,o)}}(e);function e(){var r;!function PO(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h=0&&c<=59}},{key:"set",value:function(o,c,h){return o.setUTCSeconds(h,0),o}}]),e}(ht);function _C(t){return(_C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function Ux(t,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=vC(t);if(n){var c=vC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function HO(t,n){return!n||"object"!==_C(n)&&"function"!=typeof n?t1(t):n}(this,o)}}(e);function e(){var r;!function NO(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=bC(t);if(n){var c=bC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function qO(t,n){return!n||"object"!==yC(n)&&"function"!=typeof n?r1(t):n}(this,o)}}(e);function e(){var r;!function $O(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=wC(t);if(n){var c=wC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function tk(t,n){return!n||"object"!==CC(n)&&"function"!=typeof n?s1(t):n}(this,o)}}(e);function e(){var r;!function KO(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=DC(t);if(n){var c=DC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function lk(t,n){return!n||"object"!==EC(n)&&"function"!=typeof n?l1(t):n}(this,o)}}(e);function e(){var r;!function rk(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var o,r=TC(t);if(n){var c=TC(this).constructor;o=Reflect.construct(r,arguments,c)}else o=r.apply(this,arguments);return function mk(t,n){return!n||"object"!==SC(n)&&"function"!=typeof n?c1(t):n}(this,o)}}(e);function e(){var r;!function dk(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=new Array(o),h=0;h"u"||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=function yk(t,n){if(t){if("string"==typeof t)return Xx(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Xx(t,n)}}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(M){throw M},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var y,c=!0,h=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var M=e.next();return c=M.done,M},e:function(M){h=!0,y=M},f:function(){try{!c&&null!=e.return&&e.return()}finally{if(h)throw y}}}}function Xx(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e=1&&Lr<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var cp=Zn(null!==(K=null!==(se=null!==(ae=null!==(de=r?.weekStartsOn)&&void 0!==de?de:null==r||null===(ye=r.locale)||void 0===ye||null===(lt=ye.options)||void 0===lt?void 0:lt.weekStartsOn)&&void 0!==ae?ae:tn.weekStartsOn)&&void 0!==se?se:null===(tt=tn.locale)||void 0===tt||null===(pt=tt.options)||void 0===pt?void 0:pt.weekStartsOn)&&void 0!==K?K:0);if(!(cp>=0&&cp<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===dt)return""===He?si(e):new Date(NaN);var Ie,pa={firstWeekContainsDate:Lr,weekStartsOn:cp,locale:li},Po=[new Kh],zw=dt.match(Ck).map(function(jt){var st=jt[0];return st in Zh?(0,Zh[st])(jt,li.formatLong):jt}).join("").match(bk),dp=[],Ce=Jx(zw);try{var Be=function(){var st=Ie.value;!(null!=r&&r.useAdditionalWeekYearTokens)&&function zb(t){return-1!==Ub.indexOf(t)}(st)&&Rg(st,dt,t),(null==r||!r.useAdditionalDayOfYearTokens)&&function kg(t){return-1!==Hb.indexOf(t)}(st)&&Rg(st,dt,t);var ui=st[0],Wl=vk[ui];if(Wl){var FA=Wl.incompatibleTokens;if(Array.isArray(FA)){var NA=dp.find(function(BA){return FA.includes(BA.token)||BA.token===ui});if(NA)throw new RangeError("The format string mustn't contain `".concat(NA.fullToken,"` and `").concat(st,"` at the same time"))}else if("*"===Wl.incompatibleTokens&&dp.length>0)throw new RangeError("The format string mustn't contain `".concat(st,"` and any other token at the same time"));dp.push({token:ui,fullToken:st});var OM=Wl.run(He,st,li.match,pa);if(!OM)return{v:new Date(NaN)};Po.push(OM.setter),He=OM.rest}else{if(ui.match(Sk))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ui+"`");if("''"===st?st="'":"'"===ui&&(st=function Mk(t){return t.match(wk)[1].replace(Ek,"'")}(st)),0!==He.indexOf(st))return{v:new Date(NaN)};He=He.slice(st.length)}};for(Ce.s();!(Ie=Ce.n()).done;){var ct=Be();if("object"===MC(ct))return ct.v}}catch(jt){Ce.e(jt)}finally{Ce.f()}if(He.length>0&&Dk.test(He))return new Date(NaN);var Ln=Po.map(function(jt){return jt.priority}).sort(function(jt,st){return st-jt}).filter(function(jt,st,ui){return ui.indexOf(jt)===st}).map(function(jt){return Po.filter(function(st){return st.priority===jt}).sort(function(st,ui){return ui.subPriority-st.subPriority})}).map(function(jt){return jt[0]}),rr=si(e);if(isNaN(rr.getTime()))return new Date(NaN);var iv,Vn=function CS(t,n){return bn(2,arguments),function bS(t,n){bn(2,arguments);var e=si(t).getTime(),r=Zn(n);return new Date(e+r)}(t,-Zn(n))}(rr,function Og(t){var n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),t.getTime()-n.getTime()}(rr)),Lo={},Pt=Jx(Ln);try{for(Pt.s();!(iv=Pt.n()).done;){var $w=iv.value;if(!$w.validate(Vn,pa))return new Date(NaN);var Cn=$w.set(Vn,Lo,pa);Array.isArray(Cn)?(Vn=Cn[0],wS(Lo,Cn[1])):Vn=Cn}}catch(jt){Pt.e(jt)}finally{Pt.f()}return Vn}let Fk=(()=>{class t{transform(e,r){return r&&e?((t,n)=>{if(!n)return t;const r=new RegExp(`%{(${Object.keys(n).map(o=>o.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")).join("|")})}`,"g");return t.replace(r,(o,c)=>n[c]?String(n[c]):"")})(e,r):e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.\u0275\u0275definePipe({name:"interpolateLabel",type:t,pure:!0}),t})(),eI=(()=>{class t{transform(e,r){return e&&"string"!=typeof e?1===r?e.singular:e.plural:e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.\u0275\u0275definePipe({name:"pluralizeLabel",type:t,pure:!0}),t})(),Nk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({}),t})();new i.InjectionToken("WindowToken");class tI{constructor(n,e){this.min=n,this.max=e,this.bound="bounded",this.meaning="OR"}}class zk extends tI{checkIsInRange(n){switch(this.type){case"closed":return n>=this.min&&n<=this.max;case"open":return n>this.min&&nthis.min&&n<=this.max:"unbounded"===this.bound&&n<=this.max;case"rightopen":return"bounded"===this.bound?n>=this.min&&n=this.min;default:return!1}}isInRange(n){return"OR"===this.meaning?this.checkIsInRange(n):!this.checkIsInRange(n)}toString(){return String(`\n ${"closed"===this.type||"rightopen"===this.type?"[":"]"}\n ${"unbounded"===this.bound&&"leftopen"===this.type?"-infinity":this.min}\n ,\n ${"unbounded"===this.bound&&"rightopen"===this.type?"+infinity":this.max}\n ${"closed"===this.type||"leftopen"===this.type?"]":"["}\n `).replace(/\n/g,"").replace(/ /g,"").trim()}}class Zr extends tI{constructor(n,e){if(super(n,e),!n&&!e)throw new Error("Error creating date interval, please provide at least min or max.");n?e?this.type="closed":(this.bound="unbounded",this.type="rightopen"):(this.bound="unbounded",this.type="leftopen")}static isSameOrAfter(n,e){return e.getTime()>=n.getTime()}static isSameOrBefore(n,e){return e.getTime()<=n.getTime()}static isAfter(n,e){return e.getTime()>n.getTime()}static isBefore(n,e){return e.getTime(){const n=String(t);return n.length>=2?n:0===n.length?"00":`0${n}`},ir=(t,n=null)=>{if(null==t||!t||t instanceof Array)return null;if(t instanceof Date)return isNaN(t.valueOf())?null:t;const e=n?Tk(t,n,new Date):new Date(Date.parse(t));return isNaN(e.getTime())?null:function xk(t){if(bn(1,arguments),"string"==typeof t){var n=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return n?new Date(Date.UTC(+n[1],+n[2]-1,+n[3],+n[4]-(+n[9]||0)*("-"==n[8]?-1:1),+n[5]-(+n[10]||0)*("-"==n[8]?-1:1),+n[6],+((n[7]||"0")+"00").substring(0,3))):new Date(NaN)}return si(t)}(e)},xc=t=>{if(!ir(t))return-1;const n=new Date(t),e=new Date(t);return n.setDate(1),e.setMonth(n.getMonth()+1,1),Math.round((e.getTime()-n.getTime())/864e5)},$k=(t,n)=>{if(!ir(t))return null;if(!n||!Array.isArray(n))return new Date(t);const e=xc(t),r=Array.from(Array(e),(y,E)=>E+1).filter(y=>n.indexOf(y)<0),o=t.getDate(),c=r.reduce((y,E)=>Math.abs(E-o)!!ir(t)&&(!n||!Array.isArray(n)||n.indexOf(t.getDate())<0),nI=(t=[],n)=>n in new Date&&t.map(e=>ir(e)?e[n]():-1).reduce((e,r,o)=>0===o?e=r:e>=0&&r>=0&&e===r?e:-1)>=0,iI=(t=[],n="value")=>{if(!t.length)return!1;const e={Y:"getFullYear",M:"getMonth",D:"getDate",h:"getHours",m:"getMinutes",s:"getSeconds",ms:"getMilliseconds",value:"valueOf"},r=(o,c)=>{const h=e.hasOwnProperty(c)?e[c]:e.value;return nI(o,h)};if(Array.isArray(n)){for(let o=0;o{if(!ir(t))return-1;const e=(t.getDay()-n)%7;return e<0?e+7:e},Zk=(t,n="",e={})=>{const r=ir(t);if(!r)return null;const o={...Wk,...e},c={YY:h=>xo(String(h.getFullYear()).substr(2)),YYYY:h=>xo(h.getFullYear()),MM:h=>xo(h.getMonth()+1),MMMM:h=>xo(o.monthLabels[h.getMonth()]),DD:h=>xo(h.getDate()),DDDD:h=>xo(o.weekdayLabels[xC(h,e.startOfWeek)]),hh:h=>xo(h.getHours()),mm:h=>xo(h.getMinutes()),ss:h=>xo(h.getSeconds()),ms:h=>xo(h.getMilliseconds())};return n.split(/[^YMDhms]/).reduce((h,y)=>c.hasOwnProperty(y)?h.replace(y,c[y](r)):h,n)},h1=(t,n=0)=>{if(!ir(t))return-1;const e=new Date(t);return e.setDate(1),xC(e,n)},rI=(t,n=0)=>{if(!ir(t))return-1;const e=new Date(t),r=xc(e);return e.setDate(r),xC(e,n)},oI=(t,n)=>{if(!ir(t)||isNaN(parseInt(n,10)))return t;const e=new Date(t),r=xc(e);return e.setDate(n>r?r:n),e},sI=(t,n)=>{if(!ir(t)||isNaN(parseInt(n,10)))return t;const e=new Date(t),r=e.getDate();let o=e.getFullYear();return n>11?(o+=1,n-=12):n<0&&(o-=1,n+=12),e.setDate(1),e.setMonth(n),e.setFullYear(o),oI(e,r)},IC=(t,n={},e=[])=>{const r=n.hasOwnProperty("offset")?n.offset:0,o=n.hasOwnProperty("dayOffset")?n.dayOffset:0,c=n.hasOwnProperty("padding")&&n.padding,h=n.hasOwnProperty("fromStart")&&n.fromStart,y=A=>!!c&&(h?At+(6-r)),E=c?7:7-r,M=[];for(let A=t=t||(o>0?0:1);A{const r=[];if(!ir(t))return r;const o=sI(t,e?t.getMonth()-1:t.getMonth()+1),c=xc(o);for(let h=0;h=c));h+=1);return r},qk=(t,n={})=>{if(!ir(t))return[];const e=n.startOfWeek||0,r=xc(t),o=h1(t,e),c=rI(t,e),y=r-c,E=IC(0,{offset:o,dayOffset:e,fromStart:!0,padding:n.padding},n.generatePadding?f1(t,o,!0):[]),M=IC(y,{offset:6-c,padding:n.padding},n.generatePadding?f1(t,y):[]),A=Math.floor((M[0].date-E[E.length-1].date)/7),k=[E];for(let j=0;j{if(!ir(t)||!n||n&&!n.length)return[];let c=[];const h=[];return n.forEach(y=>{if(y instanceof Date){const E=((y,E)=>E instanceof Date&&iI([y,E],["Y","M"])?E.getDate():null)(t,y);return!!E&&c.push(E)}isNaN(parseInt(y,10))||h.push(y)}),h.length&&(c=c.concat(((y,E,{startOfWeek:M=0})=>{const A=h1(t,M),k=xc(t),j=[];for(let V=0;V=0&&j.push(V+1);return j})(0,h,e))),c.reduce((y,E)=>y.indexOf(E)>=0?y:y.concat(E),[]).sort((y,E)=>y-E)};let It=(()=>{class t{}return t.addLeadingZero=xo,t.closestDateForRange=$k,t.dateOutOfRange=Gk,t.datesAreEqual=iI,t.dateValuesAreEqual=nI,t.formatDate=Zk,t.getFirstWeekdayOfMonth=h1,t.getLastWeekdayOfMonth=rI,t.getMonthLength=xc,t.getWeekday=xC,t.parseDate=ir,t.updateDate=oI,t.updateMonth=sI,t})(),ds=(()=>{class t{}return t.generateMonth=qk,t.generatePadding=f1,t.generateRange=Yk,t.generateWeek=IC,t})();function p1(t,n){bn(2,arguments);var e=si(t),r=Zn(n);return isNaN(r)?new Date(NaN):(r&&e.setDate(e.getDate()+r),e)}const PC=["Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag","Zondag"],LC=["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],AC=new i.InjectionToken("weekdayLabels"),OC=new i.InjectionToken("monthLabels"),Yf="CALENDAR_VIEW_MONTH",kC="CALENDAR_VIEW_YEAR",RC="CALENDAR_VIEW_DECENNIA";let FC=(()=>{class t{constructor(){_(this,"months",{}),_(this,"currentYear",void 0)}getMonth(e,r){if(r&&(this.currentYear!==r&&(this.months={}),this.currentYear=r),this.months.hasOwnProperty(e))return[...this.months[e]];const o=new Date;o.setMonth(e,1),r&&o.setFullYear(r);const c=ds.generateMonth(o,{startOfWeek:1,padding:!0,generatePadding:!0});return this.months[e]=c,[...c]}getMonthForDate(e){return this.getMonth(e.getMonth(),e.getFullYear())}getRangeForDate(e,r){return ds.generateRange(e,r,{startOfWeek:1})}getRangesForDate(e,r){const o={startOfWeek:1},c=It.updateMonth(e,e.getMonth()-1),h=It.updateMonth(e,e.getMonth()+1);return{before:ds.generateRange(c,r,o),current:ds.generateRange(e,r,o),after:ds.generateRange(h,r,o)}}getClosestDateForRange(e=new Date,r){const o=this.getRangeForDate(e,r);return It.dateOutOfRange(e,o)?e:It.closestDateForRange(e,o)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})();const Fl=Array.isArray,aI="object"==typeof global&&global&&global.Object===Object&&global;var Jk="object"==typeof self&&self&&self.Object===Object&&self;const Io=aI||Jk||Function("return this")(),hs=Io.Symbol;var lI=Object.prototype,tR=lI.hasOwnProperty,nR=lI.toString,B_=hs?hs.toStringTag:void 0;var sR=Object.prototype.toString;var uI=hs?hs.toStringTag:void 0;const Qf=function dR(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":uI&&uI in Object(t)?function iR(t){var n=tR.call(t,B_),e=t[B_];try{t[B_]=void 0;var r=!0}catch{}var o=nR.call(t);return r&&(n?t[B_]=e:delete t[B_]),o}(t):function aR(t){return sR.call(t)}(t)},Nl=function hR(t){return null!=t&&"object"==typeof t};const NC=function pR(t){return"symbol"==typeof t||Nl(t)&&"[object Symbol]"==Qf(t)};var mR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gR=/^\w*$/;const ua=function yR(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)};const cI=function DR(t){if(!ua(t))return!1;var n=Qf(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n};var t,SR=Io["__core-js_shared__"],dI=(t=/[^.]+$/.exec(SR&&SR.keys&&SR.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";var IR=Function.prototype.toString;const Ic=function PR(t){if(null!=t){try{return IR.call(t)}catch{}try{return t+""}catch{}}return""};var AR=/^\[object .+?Constructor\]$/,NR=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const VR=function BR(t){return!(!ua(t)||function TR(t){return!!dI&&dI in t}(t))&&(cI(t)?NR:AR).test(Ic(t))},Pc=function UR(t,n){var e=function jR(t,n){return t?.[n]}(t,n);return VR(e)?e:void 0},V_=Pc(Object,"create");var QR=Object.prototype.hasOwnProperty;var eF=Object.prototype.hasOwnProperty;function Kf(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n-1},Jf.prototype.set=function vF(t,n){var e=this.__data__,r=VC(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this};const jC=Jf,j_=Pc(Io,"Map"),HC=function SF(t,n){var e=t.__data__;return function EF(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}(n)?e["string"==typeof n?"string":"hash"]:e.map};function Xf(t){var n=-1,e=null==t?0:t.length;for(this.clear();++no?0:o+n),(e=e>o?o:e)<0&&(e+=o),o=n>e?0:e-n>>>0,n>>>=0;for(var c=Array(o);++r-1&&t%1==0&&t<=9007199254740991},_1=function l2(t){return null!=t&&gI(t.length)&&!cI(t)};var c2=/^(?:0|[1-9]\d*)$/;const _I=function d2(t,n){var e=typeof t;return!!(n=n??9007199254740991)&&("number"==e||"symbol"!=e&&c2.test(t))&&t>-1&&t%1==0&&t{class t{constructor(){_(this,"selectedDate",void 0),_(this,"activeDate",void 0),_(this,"selectDate",new i.EventEmitter),_(this,"years",[]),_(this,"selectedYear",-1),_(this,"current",-1)}ngOnInit(){this.current=(new Date).getFullYear()}ngOnChanges(e){const r=Bi(e,"activeDate.currentValue"),o=Bi(e,"activeDate.previousValue"),c=r instanceof Date?r.getFullYear():-1,h=o instanceof Date?o.getFullYear():-1;c>=0&&(h>c||h+17{class t{constructor(e=PC,r){_(this,"moduleWeekdayLabels",void 0),_(this,"calendarService",void 0),_(this,"selectedDate",void 0),_(this,"activeDate",void 0),_(this,"range",void 0),_(this,"interval",void 0),_(this,"weekdayLabels",PC),_(this,"selectDate",new i.EventEmitter),_(this,"dates",[]),_(this,"selectedDay",-1),_(this,"current",void 0),this.moduleWeekdayLabels=e,this.calendarService=r}ngOnInit(){this.weekdayLabels=this.weekdayLabels||this.moduleWeekdayLabels}ngOnChanges(e){const r=this.hasChanged(e,"selectedDate"),o=!!e.interval&&e.interval.currentValue!==e.interval.previousValue,c=this.hasChanged(e,"activeDate"),h=c&&!It.datesAreEqual([e.activeDate.currentValue,e.activeDate.previousValue],"M"),y=this.selectedDate&&this.activeDate.getMonth()===this.selectedDate.getMonth();this.current=this.getCurrentDate(),this.selectedDay=y?this.selectedDate.getDate():-1;let E=[];if(!(r||o||c&&h))return;E=this.calendarService.getMonthForDate(this.activeDate);const M=this.calendarService.getRangesForDate(this.activeDate,this.range);this.dates=E.map(A=>A.map(k=>{const j=new Date;this.activeDate.setHours(j.getHours(),j.getMinutes(),j.getSeconds());const V=new Date(this.activeDate);k.padding&&V.setMonth(k.date>20?this.activeDate.getMonth()-1:this.activeDate.getMonth()+1),V.setDate(k.date);const K=this.dayIsAvailableForRange(k,M)&&(!this.interval||!this.interval.isInRange(V));return{...k,available:K}}))}pickDate(e,r){e.stopPropagation();let o=new Date(this.activeDate);if(r.padding){const c=r.date>20?-1:1;o=It.updateMonth(o,o.getMonth()+c)}this.selectDate.emit(It.updateDate(o,r.date))}hasChanged(e,r){const o=Bi(e,`${r}.currentValue`),c=Bi(e,`${r}.previousValue`),h=o instanceof Date?o.valueOf():0,y=c instanceof Date?c.valueOf():0;return!!h&&h!==y}getCurrentDate(){const e=new Date;return It.datesAreEqual([this.activeDate,e],["M","Y"])?e.getDate():-1}dayIsAvailableForRange(e,r){if(!r)return!0;let o=r.current;return e.padding&&(o=e.date>20?r.before:r.after),o.indexOf(e.date)<0}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(AC),i.\u0275\u0275directiveInject(FC))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-calendar-month"]],inputs:{selectedDate:"selectedDate",activeDate:"activeDate",range:"range",interval:"interval",weekdayLabels:"weekdayLabels"},outputs:{selectDate:"selectDate"},features:[i.\u0275\u0275NgOnChangesFeature],decls:7,vars:2,consts:[[1,"m-datepicker__grid"],[1,"m-datepicker__grid-head"],["scope","col",4,"ngFor","ngForOf"],[1,"m-datepicker__grid-body"],[4,"ngFor","ngForOf"],["scope","col"],[1,"u-text-capitalize",3,"title"],["type","button",3,"disabled","ngClass","click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"table")(2,"thead")(3,"tr",1),i.\u0275\u0275template(4,N2,4,6,"th",2),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(5,"tbody",3),i.\u0275\u0275template(6,j2,2,1,"tr",4),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(4),i.\u0275\u0275property("ngForOf",r.weekdayLabels),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngForOf",r.dates))},dependencies:[ze,re,ot],encapsulation:2,changeDetection:0})),t})();const U2=function(t,n){return{"is-current":t,"is-selected":n}};function z2(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"td")(1,"button",3),i.\u0275\u0275listener("click",function(o){const h=i.\u0275\u0275restoreView(e).$implicit,y=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(y.pickDate(o,h))}),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"titlecase"),i.\u0275\u0275elementEnd()()}if(2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction2(4,U2,e===r.current,e===r.monthLabels[r.selectedMonth])),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(3,2,e)," ")}}function $2(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"tr"),i.\u0275\u0275template(1,z2,4,7,"td",2),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e)}}let G2=(()=>{class t{constructor(e=LC){_(this,"moduleMonthLabels",void 0),_(this,"selectedDate",void 0),_(this,"activeDate",void 0),_(this,"monthLabels",LC),_(this,"selectDate",new i.EventEmitter),_(this,"selectedMonth",-1),_(this,"current",""),_(this,"months",[]),this.moduleMonthLabels=e}ngOnChanges(e){const r=Bi(e,"activeDate.currentValue"),o=r instanceof Date?r.getFullYear():-1,c=this.selectedDate&&this.selectedDate.getFullYear()===this.activeDate.getFullYear(),h=new Date;this.current=o===h.getFullYear()?this.monthLabels[h.getMonth()]:"",this.selectedMonth=c?this.selectedDate.getMonth():-1,e.monthLabels&&(this.monthLabels=this.monthLabels||this.moduleMonthLabels,this.months=zC(this.monthLabels,2))}pickDate(e,r){e.stopPropagation();let o=new Date(this.activeDate);o=It.updateMonth(o,this.monthLabels.indexOf(r)),this.selectDate.emit(o)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(OC))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-calendar-year"]],inputs:{selectedDate:"selectedDate",activeDate:"activeDate",monthLabels:"monthLabels"},outputs:{selectDate:"selectDate"},features:[i.\u0275\u0275NgOnChangesFeature],decls:4,vars:1,consts:[[1,"m-datepicker__list"],[1,"m-datepicker__list-body"],[4,"ngFor","ngForOf"],["type","button",3,"ngClass","click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"table")(2,"tbody",1),i.\u0275\u0275template(3,$2,2,1,"tr",2),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("ngForOf",r.months))},dependencies:[ze,re,fn],encapsulation:2,changeDetection:0})),t})();function W2(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"aui-calendar-month",10),i.\u0275\u0275listener("selectDate",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.pickDate(o))}),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("activeDate",e.activeDate)("range",e.range)("interval",e.interval)("selectedDate",e.selectedDate)("weekdayLabels",e.weekdayLabels)}}function Z2(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"aui-calendar-year",11),i.\u0275\u0275listener("selectDate",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.pickDate(o))}),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("activeDate",e.activeDate)("monthLabels",e.monthLabels)("selectedDate",e.selectedDate)}}function q2(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"aui-calendar-decennia",12),i.\u0275\u0275listener("selectDate",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.pickDate(o))}),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("activeDate",e.activeDate)("selectedDate",e.selectedDate)}}let Y2=(()=>{class t{constructor(e=LC,r=PC,o){_(this,"moduleMonthLabels",void 0),_(this,"moduleWeekdayLabels",void 0),_(this,"calendarService",void 0),_(this,"role","application"),_(this,"ariahidden","false"),_(this,"ariaPreviousLabels",["Ga naar vorige maand","Ga naar vorig jaar","Ga naar vorige 18 jaren"]),_(this,"ariaNextLabels",["Ga naar volgende maand","Ga naar volgend jaar","Ga naar volgende 18 jaren"]),_(this,"selectedDate",void 0),_(this,"range",void 0),_(this,"interval",void 0),_(this,"weekdayLabels",void 0),_(this,"monthLabels",void 0),_(this,"selectDate",new i.EventEmitter),_(this,"CALENDAR_VIEW_MONTH",Yf),_(this,"CALENDAR_VIEW_YEAR",kC),_(this,"CALENDAR_VIEW_DECENNIA",RC),_(this,"activeDate",void 0),_(this,"activeView",Yf),_(this,"headerLabel",""),_(this,"ariaPreviousLabel",this.ariaPreviousLabels[0]),_(this,"ariaNextLabel",this.ariaNextLabels[0]),this.moduleMonthLabels=e,this.moduleWeekdayLabels=r,this.calendarService=o}ngOnInit(){this.initControl()}ngOnChanges(e){const r=e.selectedDate&&e.selectedDate.currentValue?e.selectedDate:null;if(typeof this.monthLabels<"u"&&r&&!It.datesAreEqual(r.currentValue,r.previousValue))this.activeDate=this.selectedDate,this.updateHeaderLabel();else{let o=new Date;this.interval&&this.interval.isInRange(o)&&(o=this.interval.min),this.activeDate=It.parseDate(o),this.initControl()}}updateActiveDate(e=0){const r=this.activeDate?new Date(this.activeDate):new Date;switch(this.activeView){case Yf:r.setMonth(r.getMonth()+e);break;case kC:r.setFullYear(r.getFullYear()+e);break;case RC:r.setFullYear(r.getFullYear()+18*e)}this.activeDate=r,this.updateHeaderLabel()}switchView(e=1){const r=[Yf,kC,RC],o=r.indexOf(this.activeView);let c=o+e>=r.length?0:o+e;c=c<0?r.length-1:c,this.activeView=r[c],this.selectedDate&&0===c&&1===e&&(this.activeDate=this.selectedDate),this.updateHeaderLabel()}updateHeaderLabel(){switch(this.activeView){case Yf:this.headerLabel=this.monthLabels[this.activeDate.getMonth()]+" "+this.activeDate.getFullYear(),this.ariaPreviousLabel=this.ariaPreviousLabels[0],this.ariaNextLabel=this.ariaNextLabels[0];break;case kC:this.headerLabel=String(this.activeDate.getFullYear()),this.ariaPreviousLabel=this.ariaPreviousLabels[1],this.ariaNextLabel=this.ariaNextLabels[1];break;case RC:const e=this.activeDate.getFullYear();this.headerLabel=`${e} - ${e+17}`,this.ariaPreviousLabel=this.ariaPreviousLabels[2],this.ariaNextLabel=this.ariaNextLabels[2]}}pickDate(e){const r=this.activeView===Yf;this.selectDate.emit({date:e,complete:r}),r||(this.activeDate=e,this.switchView(-1))}initControl(){this.weekdayLabels=this.weekdayLabels||this.moduleWeekdayLabels,this.monthLabels=this.monthLabels||this.moduleMonthLabels,this.activeDate=this.calendarService.getClosestDateForRange(this.activeDate,this.range),this.selectedDate&&(this.activeDate=this.selectedDate,this.updateActiveDate()),this.updateHeaderLabel()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(OC),i.\u0275\u0275directiveInject(AC),i.\u0275\u0275directiveInject(FC))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-calendar"]],hostVars:2,hostBindings:function(e,r){2&e&&i.\u0275\u0275attribute("role",r.role)("aria-hidden",r.ariahidden)},inputs:{ariaPreviousLabels:"ariaPreviousLabels",ariaNextLabels:"ariaNextLabels",selectedDate:"selectedDate",range:"range",interval:"interval",weekdayLabels:"weekdayLabels",monthLabels:"monthLabels"},outputs:{selectDate:"selectDate"},features:[i.\u0275\u0275NgOnChangesFeature],decls:13,vars:8,consts:[[1,"m-datepicker__nav"],["type","button",1,"m-datepicker__nav-title",3,"click"],["name","ai-arrow-down-1"],[1,"m-datepicker__nav-pagination"],["type","button",1,"a-button","a-button--text","a-button--primary","has-icon",3,"click"],["name","ai-arrow-left-1"],["name","ai-arrow-right-1"],[3,"activeDate","range","interval","selectedDate","weekdayLabels","selectDate",4,"ngIf"],[3,"activeDate","monthLabels","selectedDate","selectDate",4,"ngIf"],[3,"activeDate","selectedDate","selectDate",4,"ngIf"],[3,"activeDate","range","interval","selectedDate","weekdayLabels","selectDate"],[3,"activeDate","monthLabels","selectedDate","selectDate"],[3,"activeDate","selectedDate","selectDate"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"button",1),i.\u0275\u0275listener("click",function(){return r.switchView()}),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"titlecase"),i.\u0275\u0275element(4,"aui-icon",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(5,"div",3)(6,"button",4),i.\u0275\u0275listener("click",function(){return r.updateActiveDate(-1)}),i.\u0275\u0275element(7,"aui-icon",5),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"button",4),i.\u0275\u0275listener("click",function(){return r.updateActiveDate(1)}),i.\u0275\u0275element(9,"aui-icon",6),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275template(10,W2,1,5,"aui-calendar-month",7),i.\u0275\u0275template(11,Z2,1,3,"aui-calendar-year",8),i.\u0275\u0275template(12,q2,1,2,"aui-calendar-decennia",9)),2&e&&(i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(3,6,r.headerLabel)," "),i.\u0275\u0275advance(4),i.\u0275\u0275attribute("aria-label",r.ariaPreviousLabel),i.\u0275\u0275advance(2),i.\u0275\u0275attribute("aria-label",r.ariaNextLabel),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",r.activeView===r.CALENDAR_VIEW_MONTH),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.activeView===r.CALENDAR_VIEW_YEAR),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.activeView===r.CALENDAR_VIEW_DECENNIA))},dependencies:[Re,Gt,F2,H2,G2,fn],encapsulation:2,changeDetection:0})),t})(),Q2=(()=>{class t{constructor(){_(this,"clickedDate",new Date),_(this,"range",[1,6]),_(this,"interval",qf.dateInterval(p1(new Date,1),p1(new Date,3)).closedInterval().build()),_(this,"javascript1","import { CalendarModule } from '@acpaas-ui/ngx-calendar;'\n\n@NgModule({\n\timports: [\n\t\tCalendarModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"javascript2","import { CalendarModule } from '@acpaas-ui/ngx-calendar;'\n\n@NgModule({\n\timports: [\n\t\tCalendarModule.forChild([\n\t\t\t'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday',\n\t\t], [\n\t\t\t'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December',\n\t\t])\n\t]\n});\n\nexport class AppModule {};"),_(this,"javascript3","import { DateRange } from '@acpaas-ui/ngx-utils';\n\npublic clickedDate: Date = new Date();\npublic range: DateRange = [1, 6];\n// date-fns is used to created the dates but do note that a Date object is passed through\npublic interval = IntervalBuilder\n .dateInterval(addDays(new Date(), 1), addDays(new Date(), 3))\n .closedInterval()\n .build();\n\nselectDate(event) {\n\tif (event.complete) {\n\t\tthis.clickedDate = event.date;\n\t}\n}"),_(this,"html",'\n')}changeDate(e){e.complete&&(this.clickedDate=e.date)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:21,vars:7,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom-xs"],[3,"codeSnippet"],[1,"u-margin-bottom"],["routerLink","/modules/utils/interval/"],[1,"m-datepicker","is-open"],[3,"range","interval","selectedDate","selectDate"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Calendar"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"p",1),i.\u0275\u0275text(5,"Or override the default values (Dutch labels are used by default):"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",3),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",3),i.\u0275\u0275element(9,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",3),i.\u0275\u0275element(11,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"div",3)(13,"blockquote"),i.\u0275\u0275text(14," For more information about using intervals to (dis)allow date selection, click "),i.\u0275\u0275elementStart(15,"a",4),i.\u0275\u0275text(16,"here"),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(17,". "),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(18,"div",3)(19,"div",5)(20,"aui-calendar",6),i.\u0275\u0275listener("selectDate",function(c){return r.changeDate(c)}),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.javascript1),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.javascript2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.javascript3),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.html),i.\u0275\u0275advance(9),i.\u0275\u0275property("range",r.range)("interval",r.interval)("selectedDate",r.clickedDate))},dependencies:[Tt,Y2,Qs],encapsulation:2})),t})();const $C=new i.InjectionToken("contextConfig"),bI={useTitleSuffix:!1,extendTitle:!1,titleDelimiter:" | ",defaults:{},routerContext:!0};let GC=(()=>{class t{constructor(e,r,o){_(this,"metaConfig",void 0),_(this,"document",void 0),_(this,"titleService",void 0),this.metaConfig=e,this.document=r,this.titleService=o,this.metaConfig={...bI,...e}}updateMetaTags(e={}){if(e.disableUpdate)return;const r={...e,...this.metaConfig.defaults,title:this.getTitle(e)};Object.keys(r).forEach(o=>{this.setTag(o,r)})}setTag(e,r={}){switch(e){case"title":case"titleSuffix":return this.setTitle(r.title,r.titleSuffix);case"favIcon":return this.setFavIcon(r.favIcon);default:return this.setTagDefault(e,r[e])}}setTitle(e,r=this.metaConfig.defaults.titleSuffix){let o=this.isDefined(e)?e:this.metaConfig.defaults.title;this.metaConfig.useTitleSuffix&&this.isDefined(r)&&(o+=r),this.titleService.setTitle(o)}setFavIcon(e){this.updateFavIcon("apple-touch-icon",e),this.updateFavIcon("shortcut icon",e)}updateFavIcon(e,r,o){const c=this.document.querySelector(`link[rel="${e}"]`);if(c&&c.getAttribute("href")===r)return;const h=this.document.createElement("link");h.setAttribute("rel",e),h.setAttribute("href",r),o&&Object.keys(o).forEach(y=>{h.setAttribute(y,o[y])}),c&&this.document.head.removeChild(c),this.document.head.appendChild(h)}setTagDefault(e,r){const o=this.getOrCreateMetaTag(e),c=this.isDefined(r)?r:this.metaConfig.defaults[e]||"";o.setAttribute("content",c),"description"===e&&this.getOrCreateMetaTag("og:description").setAttribute("content",c)}isDefined(e){return typeof e<"u"}getOrCreateMetaTag(e){let r=this.document.querySelector(`meta[name='${e}']`);return r||(r=this.document.createElement("meta"),r.setAttribute("name",e),this.document.head.appendChild(r)),r}getTitle(e={}){return this.metaConfig.extendTitle&&e.parent?[e.title,e.parent].join(this.metaConfig.titleDelimiter):e.title}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275inject($C),i.\u0275\u0275inject(W),i.\u0275\u0275inject(uo))}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})(),H_=(()=>{class t{constructor(e){_(this,"contextWriter",void 0),_(this,"context$",new wi(null)),this.contextWriter=e}updateContext(e){this.contextWriter.updateMetaTags(e),this.context$.next(e)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275inject(GC))}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})();class CI{static getParentTitle(n,e=[]){if(!n)return e;const r=this.verifyPath(n,"parent.data.meta.title"),o=r?e.concat(r):e;return n.parent?this.getParentTitle(n.parent,o):o}static verifyPath(n,e){let r=n;const o=e.split(".");for(const c of o){if(!r[c])return null;r=r[c]}return r}static findLastChild(n){let r=n.snapshot.firstChild;for(;null!==r.firstChild;)r=r.firstChild;return r}}let wI=(()=>{class t{constructor(e,r,o,c,h){_(this,"contextService",void 0),_(this,"contextWriterService",void 0),_(this,"router",void 0),_(this,"activatedRoute",void 0),_(this,"contextConfig",void 0),this.contextService=e,this.contextWriterService=r,this.router=o,this.activatedRoute=c,this.contextConfig=h,h.routerContext||!h.defaults?this.router.events.pipe(vr(y=>y instanceof $s),(0,Xe.U)(()=>CI.findLastChild(this.activatedRoute))).subscribe(y=>{y.data=y.data||{},y.data.meta=y.data.meta||{},y.data.meta.parent=CI.getParentTitle(y),this.contextService.updateContext(y.data.meta)}):Object.keys(h.defaults).forEach(y=>{this.contextWriterService.setTag(y,h.defaults)})}static forRoot(e){return{ngModule:t,providers:[{provide:$C,useValue:e},H_,GC]}}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275inject(H_),i.\u0275\u0275inject(GC),i.\u0275\u0275inject(oi),i.\u0275\u0275inject(Zs),i.\u0275\u0275inject($C))}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[H_,GC,{provide:$C,useValue:bI}],imports:[dh]})),t})(),K2=(()=>{class t{constructor(e,r,o){_(this,"contextService",void 0),_(this,"meta",void 0),_(this,"titleService",void 0),_(this,"importModule","import { ContextModule } from '@acpaas-ui/ngx-context';\n\n@NgModule({\n\timports: [\n\t\tContextModule\n\t]\n})"),_(this,"codeExampleJS1","@NgModule({\n\timports: [\n\t\tContextModule.forRoot({\n\t\t\tuseTitleSuffix: true,\n\t\t\textendTitle: true,\n\t\t\ttitleDelimiter: ' | ',\n\t\t\tdefaults: {\n\t\t\t\ttitleSuffix: 'Context Module',\n\t\t\t},\n\t\t\trouterContext: true,\n\t\t}),\n\t]\n})"),_(this,"codeExampleJS2","export const CONTEXT_EXAMPLES_ROUTES: Routes = [\n\t{\n\t\tpath: '',\n\t\tcomponent: ContextDemoPageComponent,\n\t\tpathMatch: 'full',\n\t\tdata: {\n\t\t\tmeta: {\n\t\t\t\tpage: 'Context example page',\n\t\t\t\ttitle: 'Context',\n\t\t\t\tdescription: 'Description of the context example page',\n\t\t\t\tmetatags: 'Antwerp UI, Angular, context',\n\t\t\t},\n\t\t},\n\t},\n];"),_(this,"codeExampleJS3","import { ContextService } from '@acpaas-ui/ngx-context';\n\n@Component({\n\tproviders: [\n\t\tContextService,\n\t],\n})\n\nexport class ContextDemoPageComponent {\n\tconstructor(private contextService: ContextService) {}\n\n\tpublic setTitle() {\n\t\tthis.contextService.updateContext({\n\t\t\ttitle: 'New context example title',\n\t\t});\n\t}\n}"),_(this,"codeExampleHTML",''),_(this,"pageTitle",void 0),_(this,"pageDescription",void 0),this.contextService=e,this.meta=r,this.titleService=o}setTitle(){this.contextService.updateContext({title:"New context example title"}),this.pageTitle=this.titleService.getTitle()}ngOnInit(){this.pageTitle=this.titleService.getTitle(),this.pageDescription=this.meta.getTag('name = "description"').content}ngOnDestroy(){this.contextService.updateContext({title:"Antwerp UI Angular"})}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(H_),i.\u0275\u0275directiveInject(kp),i.\u0275\u0275directiveInject(uo))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],features:[i.\u0275\u0275ProvidersFeature([H_])],decls:34,vars:7,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"h4","u-margin-bottom"],[1,"m-alert"],[1,"a-definition-list","u-margin-bottom"],[1,"a-pre","a-pre--scrollable"],["type","button",1,"a-button",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Context"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"h3",3),i.\u0275\u0275text(5,"Set defaults"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"h3",3),i.\u0275\u0275text(9,"Set tags on routes"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",1),i.\u0275\u0275element(11,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"div",1)(13,"div",4),i.\u0275\u0275text(14," The following page properties were defined on the Angular routes. "),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(15,"dl",5)(16,"dt"),i.\u0275\u0275text(17,"Page title:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(18,"dd")(19,"pre",6),i.\u0275\u0275text(20),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(21,"dt"),i.\u0275\u0275text(22,"Page description:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(23,"dd")(24,"pre",6),i.\u0275\u0275text(25),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(26,"h3",3),i.\u0275\u0275text(27,"Set tags in a component"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(28,"div",1),i.\u0275\u0275element(29,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(30,"div",1),i.\u0275\u0275element(31,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(32,"button",7),i.\u0275\u0275listener("click",function(){return r.setTitle()}),i.\u0275\u0275text(33,"Update page title"),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.importModule),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.codeExampleJS1),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.codeExampleJS2),i.\u0275\u0275advance(9),i.\u0275\u0275textInterpolate(r.pageTitle),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate(r.pageDescription),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.codeExampleJS3),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML))},dependencies:[Tt],encapsulation:2})),t})();var WC=(()=>(function(t){t.Auto="auto",t.Small="small",t.Medium="medium",t.Large="large",t.Full="full"}(WC||(WC={})),WC))(),ca=(()=>(function(t){t[t.OPEN=0]="OPEN",t[t.CLOSED=1]="CLOSED"}(ca||(ca={})),ca))();const U_=(t,n,e)=>!!t.code&&t.code.toLowerCase()===n&&(void 0===e||t.keyCode===e||t.which===e);var EI=R(787);function DI(t,n){return e=>e.lift(new J2(t,n))}class J2{constructor(n,e){this.compare=n,this.keySelector=e}call(n,e){return e.subscribe(new X2(n,this.compare,this.keySelector))}}class X2 extends ii.L{constructor(n,e,r){super(n),this.keySelector=r,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(n,e){return n===e}_next(n){let e;try{const{keySelector:o}=this;e=o?o(n):n}catch(o){return this.destination.error(o)}let r=!1;if(this.hasKey)try{const{compare:o}=this;r=o(this.key,e)}catch(o){return this.destination.error(o)}else this.hasKey=!0;r||(this.key=e,this.destination.next(n))}}let y1=(()=>{class t{constructor(e){_(this,"elementRef",void 0),_(this,"class",!0),_(this,"auiFlyoutZone",void 0),_(this,"isExpanded",!1),_(this,"element",void 0),this.elementRef=e,this.element=this.elementRef.nativeElement}get flyoutZoneIsExpanded(){return this.isExpanded}contains(e){return!1!==this.auiFlyoutZone&&this.element.contains(e)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ElementRef))}),_(t,"\u0275dir",i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFlyoutZone",""]],hostVars:3,hostBindings:function(e,r){2&e&&(i.\u0275\u0275attribute("aria-expanded",r.flyoutZoneIsExpanded),i.\u0275\u0275classProp("m-flyout__content",r.class))},inputs:{auiFlyoutZone:"auiFlyoutZone"},exportAs:["auiFlyoutZone"]})),t})(),SI=(()=>{class t{constructor(){_(this,"state$",new vt.xQ)}close(){this.state$.next(ca.CLOSED)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})(),ZC=(()=>{class t{constructor(e,r,o,c){_(this,"document",void 0),_(this,"flyoutService",void 0),_(this,"cdr",void 0),_(this,"ref",void 0),_(this,"flyoutClass",!0),_(this,"flyoutTabIndex","-1"),_(this,"flyoutAriaPop",!0),_(this,"size",WC.Auto),_(this,"align",void 0),_(this,"toggleClick",!0),_(this,"activateOnFocus",!1),_(this,"opened",new i.EventEmitter),_(this,"closed",new i.EventEmitter),_(this,"flyoutZone",void 0),_(this,"isOpened",!1),_(this,"state$",new vt.xQ),_(this,"destroyed$",new vt.xQ),this.document=e,this.flyoutService=r,this.cdr=o,this.ref=c,this.handleKeyUp=this.handleKeyUp.bind(this),this.state$.next(ca.CLOSED),(0,EI.T)(this.state$,this.flyoutService.state$).pipe(Bn(this.destroyed$),DI()).subscribe(h=>{this.isOpened=h===ca.OPEN,this.flyoutZone&&(this.flyoutZone.isExpanded=this.isOpened),this.isOpened?this.opened.emit():this.closed.emit()})}get flyoutAlignRight(){return"right"===this.align}get flyoutSmall(){return"small"===this.size}get flyoutMedium(){return"medium"===this.size}get flyoutLarge(){return"large"===this.size}get flyoutFull(){return"full"===this.size}get flyoutOpen(){return this.isOpened}ngOnDestroy(){this.destroyed$.next(!0)}open(){this.state$.next(ca.OPEN),this.document.addEventListener("keyup",this.handleKeyUp),this.cdr.detectChanges()}close(){this.state$.next(ca.CLOSED),this.cdr.markForCheck()}isInClosableZone(e){if(!e)return!1;const r=this.flyoutZone&&this.flyoutZone.contains(e),o=this.ref.nativeElement===e||this.ref.nativeElement.contains(e);return r||o}handleKeyUp(e){U_(e,"escape",27)&&(this.document.removeEventListener("keyup",this.handleKeyUp),this.close(),this.cdr.markForCheck())}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(W),i.\u0275\u0275directiveInject(SI),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.ElementRef))}),_(t,"\u0275dir",i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFlyout",""]],contentQueries:function(e,r,o){if(1&e&&i.\u0275\u0275contentQuery(o,y1,7),2&e){let c;i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.flyoutZone=c.first)}},hostVars:16,hostBindings:function(e,r){2&e&&(i.\u0275\u0275attribute("tabindex",r.flyoutTabIndex)("aria-haspopup",r.flyoutAriaPop),i.\u0275\u0275classProp("m-flyout",r.flyoutClass)("m-flyout--right",r.flyoutAlignRight)("m-flyout--s",r.flyoutSmall)("m-flyout--md",r.flyoutMedium)("m-flyout--l",r.flyoutLarge)("m-flyout--full",r.flyoutFull)("is-open",r.flyoutOpen))},inputs:{size:"size",align:"align",toggleClick:"toggleClick",activateOnFocus:"activateOnFocus"},outputs:{opened:"opened",closed:"closed"},exportAs:["auiFlyout"]})),t})(),TI=(()=>{class t{constructor(e,r,o,c){_(this,"flyout",void 0),_(this,"document",void 0),_(this,"elementRef",void 0),_(this,"class",!0),_(this,"openOnFocus",!0),_(this,"disabled",void 0),_(this,"isPlatformBrowser",void 0),_(this,"destroyed$",new vt.xQ),this.flyout=e,this.document=o,this.elementRef=c,this.isPlatformBrowser=Vo(r),this.closeIfInClosableZone=this.closeIfInClosableZone.bind(this),this.onBlur=this.onBlur.bind(this)}get tabIndex(){return this.disabled?"-1":"0"}ngOnInit(){this.flyout.state$.pipe(Bn(this.destroyed$)).subscribe(e=>{e===ca.OPEN?setTimeout(()=>{this.addEventListeners()},100):this.removeEventListeners()})}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete(),this.isPlatformBrowser&&this.document.removeEventListener("click",this.closeIfInClosableZone,!0)}onMousedown(e){e.stopImmediatePropagation(),this.flyout.isOpened&&this.flyout.toggleClick?this.close():this.open()}onFocus(){!this.openOnFocus||!this.isPlatformBrowser||this.flyout.isOpened||this.open()}onKeyDown(e){(U_(e,"space",32)||U_(e,"enter",13))&&this.open()}onBlur(e){this.isPlatformBrowser&&this.flyout.isOpened&&e.relatedTarget&&!this.flyout.isInClosableZone(e.relatedTarget)&&e.relatedTarget!==this.elementRef.nativeElement&&this.close()}open(){!this.isPlatformBrowser||this.flyout.isOpened||this.flyout.open()}close(){!this.isPlatformBrowser||!this.flyout.isOpened||this.flyout.close()}addEventListeners(){this.document.addEventListener("click",this.closeIfInClosableZone,!0),this.document.addEventListener("focusout",this.onBlur,!0)}removeEventListeners(){this.document.removeEventListener("click",this.closeIfInClosableZone,!0),this.document.removeEventListener("focusout",this.onBlur,!0)}checkIfInClosableZone(e){const r=this.flyout.isInClosableZone(e.target),o=e.target===this.elementRef.nativeElement,c=this.elementRef.nativeElement.contains(e.target);return!r&&!o&&!c}closeIfInClosableZone(e){this.isPlatformBrowser&&this.checkIfInClosableZone(e)&&this.close()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(ZC,1),i.\u0275\u0275directiveInject(i.PLATFORM_ID),i.\u0275\u0275directiveInject(W),i.\u0275\u0275directiveInject(i.ElementRef))}),_(t,"\u0275dir",i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFlyoutAction",""]],hostVars:3,hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("mousedown",function(c){return r.onMousedown(c)})("focus",function(){return r.onFocus()})("keydown",function(c){return r.onKeyDown(c)}),2&e&&(i.\u0275\u0275attribute("tabindex",r.tabIndex),i.\u0275\u0275classProp("ngx-flyout-action",r.class))},inputs:{openOnFocus:"openOnFocus",disabled:"disabled"},exportAs:["auiFlyoutAction"]})),t})(),eN=(()=>{class t{constructor(e){_(this,"flyout",void 0),this.flyout=e}onClick(){this.flyout.close()}onKeyDown(e){(U_(e,"space",32)||U_(e,"enter",13))&&this.flyout.close()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(ZC,1))}),_(t,"\u0275dir",i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFlyoutClose",""]],hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("click",function(){return r.onClick()})("keydown",function(c){return r.onKeyDown(c)})},exportAs:["auiFlyoutClose"]})),t})();var qC=(()=>(function(t){t.Auto="auto",t.Tiny="tiny",t.Small="small",t.Large="large"}(qC||(qC={})),qC))();function tN(t,n){1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275projection(1),i.\u0275\u0275elementContainerEnd())}const nN=function(t){return[t]},iN=function(t,n,e,r){return["a-button",t,n,e,r]},rN=["*"];let oN=(()=>{class t{constructor(){_(this,"buttonClassNames",{tiny:"a-button--s",small:"a-button--s",auto:"",large:"a-button--l"}),_(this,"title",void 0),_(this,"label",void 0),_(this,"icon",void 0),_(this,"align",void 0),_(this,"buttonSize",qC.Auto),_(this,"flyoutSize",void 0),_(this,"outline",!1),_(this,"flyoutOpen",!1)}handleFlyoutChanged(e){this.flyoutOpen=e}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-flyout-button"]],inputs:{title:"title",label:"label",icon:"icon",align:"align",buttonSize:"buttonSize",flyoutSize:"flyoutSize",outline:"outline"},ngContentSelectors:rN,decls:6,vars:14,consts:[["auiFlyout","",3,"ngClass","size","closed","opened"],["auiFlyoutAction","","type","button",3,"ngClass","title"],[3,"name"],["auiFlyoutZone",""],[4,"ngIf"]],template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275listener("closed",function(){return r.handleFlyoutChanged(!1)})("opened",function(){return r.handleFlyoutChanged(!0)}),i.\u0275\u0275elementStart(1,"button",1),i.\u0275\u0275element(2,"aui-icon",2),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",3),i.\u0275\u0275template(5,tN,2,0,"ng-container",4),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(7,nN,"right"===r.align?"m-flyout--bottom-right":""))("size",r.flyoutSize),i.\u0275\u0275advance(1),i.\u0275\u0275propertyInterpolate("title",r.title),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction4(9,iN,r.buttonClassNames[r.buttonSize],r.icon&&r.label?"has-icon-left":"",r.icon&&!r.label?"has-icon":"",r.outline?"a-button--outline":"a-button")),i.\u0275\u0275advance(1),i.\u0275\u0275property("name",r.icon),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",r.label," "),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",r.flyoutOpen))},dependencies:[ze,Re,TI,y1,ZC,Gt],encapsulation:2})),t})(),sN=(()=>{class t{constructor(){_(this,"codeExampleJS1","import { FlyoutModule } from '@acpaas-ui/ngx-flyout';\n\n@NgModule({\n\timports: [\n\t\tFlyoutModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"codeExampleJS2","import { FlyoutModule } from '@acpaas-ui/ngx-flyout';"),_(this,"codeExampleHTML1",'
    \n\t\n\t
    \n\t\t
    \n\t\t\t

    Hello world!

    \n\t\t
    \n\t\t
    \n\t\t\t\n\t\t
    \n\t
    \n
    '),_(this,"codeExampleJS3","import { FlyoutButtonModule } from '@acpaas-ui/ngx-flyout';\n\n@NgModule({\n\timports: [\n\t\tFlyoutButtonModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"codeExampleJS4","import { FlyoutButtonModule } from '@acpaas-ui/ngx-flyout';"),_(this,"codeExampleHTML2",'\n\t
    \n\t\t

    Hello world!

    \n\t
    \n')}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:34,vars:6,consts:[[1,"h3","u-margin-bottom"],[1,"h4","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom-l"],["auiFlyout","","data-align","left","size","small"],["auiFlyoutAction","","type","button",1,"a-button"],["auiFlyoutZone","",1,"has-padding","u-text-center"],["auiFlyoutClose","","type","button",1,"a-button"],[1,"u-margin-bottom-3xl","u-text-right"],["buttonSize","large","align","right","flyoutSize","small","icon","ai-single-neutral","label","Open flyout","outline","true","title","Click to open!"],[1,"u-margin","u-text-center"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Flyout"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"h3",1),i.\u0275\u0275text(3,"Basic flyout"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",2),i.\u0275\u0275element(5,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",2),i.\u0275\u0275element(7,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",2),i.\u0275\u0275element(9,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",4)(11,"div",5)(12,"button",6),i.\u0275\u0275text(13,"Open flyout"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(14,"div",7)(15,"div",2)(16,"p"),i.\u0275\u0275text(17,"Hello world!"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(18,"div")(19,"button",8),i.\u0275\u0275text(20,"Close flyout"),i.\u0275\u0275elementEnd()()()()(),i.\u0275\u0275elementStart(21,"h3",1),i.\u0275\u0275text(22,"Flyout Button"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(23,"div",2),i.\u0275\u0275element(24,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(25,"div",2),i.\u0275\u0275element(26,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(27,"div",2),i.\u0275\u0275element(28,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(29,"div",9)(30,"aui-flyout-button",10)(31,"div",11)(32,"p"),i.\u0275\u0275text(33,"Hello world!"),i.\u0275\u0275elementEnd()()()()),2&e&&(i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.codeExampleJS1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML1),i.\u0275\u0275advance(15),i.\u0275\u0275property("codeSnippet",r.codeExampleJS3),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS4),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML2))},dependencies:[Tt,TI,eN,y1,ZC,oN],encapsulation:2})),t})();function aN(t,n){if(1&t&&(i.\u0275\u0275namespaceSVG(),i.\u0275\u0275namespaceHTML(),i.\u0275\u0275elementStart(0,"span",3),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.ariaLabel)}}let Bl=(()=>{class t{get classes(){return["ai",this.className,this.name].filter(Boolean).join(" ")}constructor(e){var r=this;_(this,"renderer",void 0),_(this,"name",void 0),_(this,"ariaLabel",void 0),_(this,"className",""),_(this,"fetchAntwerpIcons",Wy(function*(){try{const h=yield(yield fetch("https://cdn.antwerpen.be/core_branding_scss/6.2.2/assets/images/ai.svg")).text(),y=r.renderer.createElement("svg");r.renderer.setAttribute(y,"id","aiSvg");const E=(new DOMParser).parseFromString(h,"text/html").querySelector("body > svg");r.renderer.appendChild(y,E),document.getElementById("aiSvg")||r.renderer.appendChild(document.body,y)}catch(o){throw new Error(o)}})),this.renderer=e}ngOnInit(){document.getElementById("aiSvg")||this.fetchAntwerpIcons()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.Renderer2))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-icon"]],hostVars:1,hostBindings:function(e,r){2&e&&i.\u0275\u0275attribute("class",r.classes)},inputs:{name:"name",ariaLabel:"ariaLabel",className:"className"},decls:4,vars:2,consts:[[1,"ai"],["aria-hidden","true"],["class","u-screen-reader-only",4,"ngIf"],[1,"u-screen-reader-only"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"span",0),i.\u0275\u0275namespaceSVG(),i.\u0275\u0275elementStart(1,"svg",1),i.\u0275\u0275element(2,"use"),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(3,aN,2,1,"span",2),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(2),i.\u0275\u0275attribute("href","#"+r.name),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.ariaLabel))},dependencies:[Re],styles:["[_nghost-%COMP%]{display:inline-flex}"]})),t})(),lN=(()=>{class t{constructor(){_(this,"javascript","import { IconModule } from '@acpaas-ui/ngx-icon';\n\n@NgModule({\n\timports: [\n\t\tIconModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"html",'')}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:8,vars:2,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],["name","ai-alarm-bell","ariaLabel","This is a bell","className","u-text-primary",2,"font-size","2rem"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Icon"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-icon",3),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.javascript),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.html))},dependencies:[Tt,Bl],encapsulation:2})),t})();const b1=function(t){return{"m-pagination--outline":t}},ep=function(t){return{"is-disabled":t}};function uN(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"ul",2)(1,"li",3)(2,"a",4),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(o.prev())}),i.\u0275\u0275element(3,"aui-icon",5),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(4,"li",6)(5,"a",4),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(o.next())}),i.\u0275\u0275element(6,"aui-icon",7),i.\u0275\u0275elementEnd()()()}if(2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(11,b1,"outlined"===e.styling)),i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate1("id","pagination-",e.instanceId,"-prev-page"),i.\u0275\u0275property("href",e.currentPage>1?"#":null,i.\u0275\u0275sanitizeUrl)("ngClass",i.\u0275\u0275pureFunction1(13,ep,e.currentPage<=1)),i.\u0275\u0275attribute("aria-label",e.ariaPreviousLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ariaLabel",e.ariaPreviousLabel),i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate1("id","pagination-",e.instanceId,"-next-page"),i.\u0275\u0275property("href",e.currentPage=e.totalPages)),i.\u0275\u0275attribute("aria-label",e.ariaNextLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ariaLabel",e.ariaNextLabel)}}function cN(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"ul",2)(1,"li",3)(2,"a",4),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(o.prev())}),i.\u0275\u0275element(3,"aui-icon",5),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(4,"li",8),i.\u0275\u0275text(5),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"li",6)(7,"a",4),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(o.next())}),i.\u0275\u0275element(8,"aui-icon",7),i.\u0275\u0275elementEnd()()()}if(2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(13,b1,"outlined"===e.styling)),i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate1("id","pagination-",e.instanceId,"-prev-page"),i.\u0275\u0275property("href",e.currentPage>1?"#":null,i.\u0275\u0275sanitizeUrl)("ngClass",i.\u0275\u0275pureFunction1(15,ep,e.currentPage<=1)),i.\u0275\u0275attribute("aria-label",e.ariaPreviousLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ariaLabel",e.ariaPreviousLabel),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate2("",e.currentPage," - ",e.totalPages,""),i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate1("id","pagination-",e.instanceId,"-next-page"),i.\u0275\u0275property("href",e.currentPage=e.totalPages)),i.\u0275\u0275attribute("aria-label",e.ariaNextLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ariaLabel",e.ariaNextLabel)}}const dN=function(t){return{"is-active":t}};function hN(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"li")(1,"a",10),i.\u0275\u0275listener("click",function(){const c=i.\u0275\u0275restoreView(e).$implicit,h=i.\u0275\u0275nextContext(3);return i.\u0275\u0275resetView(h.onUpdate(c))}),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()}if(2&t){const e=n.$implicit,r=n.index,o=i.\u0275\u0275nextContext(3);i.\u0275\u0275advance(1),i.\u0275\u0275propertyInterpolate2("id","pagination-",o.instanceId,"-button-",r,""),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(6,dN,e===o.currentPage+"")),i.\u0275\u0275attribute("aria-current",e===o.currentPage+""?"page":null)("aria-label",o.ariaCurrentLabel+" "+e),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e)}}function fN(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"ul",2)(1,"li",3)(2,"a",4),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(o.prev())}),i.\u0275\u0275element(3,"aui-icon",5),i.\u0275\u0275elementEnd()(),i.\u0275\u0275template(4,hN,3,8,"li",9),i.\u0275\u0275elementStart(5,"li",6)(6,"a",4),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(o.next())}),i.\u0275\u0275element(7,"aui-icon",7),i.\u0275\u0275elementEnd()()()}if(2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(12,b1,"outlined"===e.styling)),i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate1("id","pagination-",e.instanceId,"-prev-page"),i.\u0275\u0275property("href",e.currentPage>1?"#":null,i.\u0275\u0275sanitizeUrl)("ngClass",i.\u0275\u0275pureFunction1(14,ep,e.currentPage<=1)),i.\u0275\u0275attribute("aria-label",e.ariaPreviousLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ariaLabel",e.ariaPreviousLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e.numbers),i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate1("id","pagination-",e.instanceId,"-next-page"),i.\u0275\u0275property("href",e.currentPage=e.totalPages)),i.\u0275\u0275attribute("aria-label",e.ariaNextLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ariaLabel",e.ariaNextLabel)}}function pN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"nav"),i.\u0275\u0275template(1,uN,7,17,"ul",1),i.\u0275\u0275template(2,cN,9,19,"ul",1),i.\u0275\u0275template(3,fN,8,18,"ul",1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275attribute("aria-label",e.ariaNavigationLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf","basic"===e.display),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf","text"===e.display),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf","numbers"===e.display)}}let mN=(()=>{class t{constructor(){_(this,"ariaNavigationLabel","Paginering"),_(this,"ariaPreviousLabel","Ga naar de vorige pagina"),_(this,"ariaNextLabel","Ga naar de volgende pagina"),_(this,"ariaCurrentLabel","Pagina"),_(this,"currentPage",void 0),_(this,"display","basic"),_(this,"itemsPerPage",void 0),_(this,"styling","outlined"),_(this,"totalValues",void 0),_(this,"update",new i.EventEmitter),_(this,"totalPages",0),_(this,"numbers",[]),_(this,"instanceId",Math.random().toString(36).substr(2,9))}ngOnChanges(){this.setValues()}next(){return this.currentPage1&&this.onUpdate(this.currentPage-1),!1}onUpdate(e){const r=parseInt(e,10);return r&&this.update.emit(r),!1}setValues(){if(this.totalValues&&this.itemsPerPage){this.currentPage=Number(this.currentPage),this.totalPages=Math.ceil(this.totalValues/this.itemsPerPage);const e=Array(this.totalPages).fill("").map((r,o)=>String(o+1));if(e.length<8)return this.numbers=e;this.numbers=this.currentPage<5?e.slice(0,5):this.currentPage>this.totalPages-4?e.slice(this.totalPages-5):e.slice(this.currentPage-2,this.currentPage+1),-1===this.numbers.indexOf("1")&&this.numbers.unshift("1"),-1===this.numbers.indexOf(String(this.totalPages))&&this.numbers.push(String(this.totalPages)),-1===this.numbers.indexOf("2")&&this.numbers.splice(1,0,"..."),-1===this.numbers.indexOf(String(this.totalPages-1))&&this.numbers.splice(this.numbers.length-1,0,"...")}}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-pagination"]],inputs:{ariaNavigationLabel:"ariaNavigationLabel",ariaPreviousLabel:"ariaPreviousLabel",ariaNextLabel:"ariaNextLabel",ariaCurrentLabel:"ariaCurrentLabel",currentPage:"currentPage",display:"display",itemsPerPage:"itemsPerPage",styling:"styling",totalValues:"totalValues"},outputs:{update:"update"},features:[i.\u0275\u0275NgOnChangesFeature],decls:1,vars:1,consts:[[4,"ngIf"],["class","m-pagination",3,"ngClass",4,"ngIf"],[1,"m-pagination",3,"ngClass"],[1,"m-pagination__prev"],[3,"href","ngClass","id","click"],["name","ai-arrow-left-1",3,"ariaLabel"],[1,"m-pagination__next"],["name","ai-arrow-right-1",3,"ariaLabel"],[1,"m-pagination__label"],[4,"ngFor","ngForOf"],["href","#",3,"ngClass","id","click"]],template:function(e,r){1&e&&i.\u0275\u0275template(0,pN,4,4,"nav",0),2&e&&i.\u0275\u0275property("ngIf",r.totalPages>1)},dependencies:[ze,re,Re,Gt],encapsulation:2})),t})();const C1=new i.InjectionToken("itemCounterLabels"),w1=new i.InjectionToken("itemsPerPageLabels"),gN=function(t,n,e){return{currentFrom:t,currentTo:n,totalAmount:e}};let _N=(()=>{class t{constructor(e){_(this,"setClass",!0),_(this,"currentPage",void 0),_(this,"totalAmount",void 0),_(this,"amountPerPage",0),_(this,"label",void 0),_(this,"currentFrom",1),_(this,"currentTo",this.amountPerPage),e&&!this.label?this.label=e:this.label||(this.label={singular:"%{currentFrom} - %{currentTo} van %{totalAmount} item",plural:"%{currentFrom} - %{currentTo} van %{totalAmount} items"})}setFromTo(){this.currentFrom=this.amountPerPage*(this.currentPage-1)+1,this.currentTo=this.amountPerPage*this.currentPage<=this.totalAmount?this.amountPerPage*this.currentPage:this.totalAmount}ngOnInit(){this.setFromTo()}ngOnChanges(){this.setFromTo()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(C1))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-item-counter"]],hostVars:2,hostBindings:function(e,r){2&e&&i.\u0275\u0275classProp("aui-item-counter",r.setClass)},inputs:{currentPage:"currentPage",totalAmount:"totalAmount",amountPerPage:"amountPerPage",label:"label"},features:[i.\u0275\u0275NgOnChangesFeature],decls:4,vars:11,consts:[[1,"m-item-counter"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275text(1),i.\u0275\u0275pipe(2,"interpolateLabel"),i.\u0275\u0275pipe(3,"pluralizeLabel"),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind2(2,1,i.\u0275\u0275pipeBind2(3,4,r.label,r.totalAmount),i.\u0275\u0275pureFunction3(7,gN,r.currentFrom,r.currentTo,r.totalAmount)),"\n"))},dependencies:[eI,Fk],styles:["[_nghost-%COMP%]{align-items:center;display:flex}"],changeDetection:0})),t})();function vN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"option",7),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;i.\u0275\u0275property("value",e),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e)}}const yN=function(t){return[t]};var YC=(()=>(function(t){t.S="S",t.R="R",t.L="L"}(YC||(YC={})),YC))();let bN=(()=>{class t{constructor(e){_(this,"inputSizes",{S:"a-input--small",R:"",L:"a-input--large"}),_(this,"id",void 0),_(this,"setClass",!0),_(this,"label",void 0),_(this,"size",YC.R),_(this,"selectOptions",void 0),_(this,"amountPerPage",void 0),_(this,"returnAmount",new i.EventEmitter),this.id="ngx-pagination-"+Math.random().toString(36).substring(2),e&&!this.label?this.label=e:this.label||(this.label={singular:"item per pagina",plural:"items per pagina"})}setAmount(e){this.amountPerPage=e,this.returnAmount.emit(this.amountPerPage)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(w1))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-items-per-page"]],hostVars:2,hostBindings:function(e,r){2&e&&i.\u0275\u0275classProp("aui-items-per-page",r.setClass)},inputs:{label:"label",size:"size",selectOptions:"selectOptions",amountPerPage:"amountPerPage"},outputs:{returnAmount:"returnAmount"},decls:9,vars:12,consts:[[1,"m-items-per-page"],[1,"a-input","has-icon-right",3,"ngClass"],[1,"a-input__wrapper"],[3,"id","name","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["name","ai-arrow-down-1"],[1,"a-input__label",3,"for"],[3,"value"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"select",3),i.\u0275\u0275listener("ngModelChange",function(c){return r.setAmount(c)}),i.\u0275\u0275template(4,vN,2,2,"option",4),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(5,"aui-icon",5),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"label",6),i.\u0275\u0275text(7),i.\u0275\u0275pipe(8,"pluralizeLabel"),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(10,yN,r.inputSizes[r.size])),i.\u0275\u0275advance(2),i.\u0275\u0275property("id",r.id)("name",r.id)("ngModel",r.amountPerPage),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",r.selectOptions),i.\u0275\u0275advance(2),i.\u0275\u0275property("for",r.id),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind2(8,7,r.label,r.amountPerPage)))},dependencies:[ze,re,ea,na,Do,In,Xi,Gt,eI],styles:["[_nghost-%COMP%]{align-items:center;display:flex}"],changeDetection:0})),t})();function CN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"li"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.name)}}let wN=(()=>{class t{constructor(){_(this,"currentPage",1),_(this,"itemsPerPage",2),_(this,"visibleHeroes",void 0),_(this,"itemsPerPageOptions",[1,2,4]),_(this,"javascript1","import { PaginationModule } from '@acpaas-ui/ngx-pagination';\n\n@NgModule({\n\timports: [\n\t\tPaginationModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"javascript2","public currentPage = 1;\npublic itemsPerPage = 2;\nprivate heroes = [\n\t{ name: 'Batman' },\n\t{ name: 'Superman' },\n\t{ name: 'Iron man' },\n\t{ name: 'Wolverine' },\n\t{ name: 'Wonder woman' },\n\t{ name: 'Deadpool' }\n];\npublic visibleHeroes: any[];\npublic totalValues = this.heroes.length;\n\npublic ngOnInit() {\n\tthis.selectHeroes();\n}\n\npublic onUpdatePage(page) {\n\tthis.currentPage = page;\n\tthis.selectHeroes();\n}\n\nprivate selectHeroes() {\n\tthis.visibleHeroes = this.heroes.slice((this.currentPage * this.itemsPerPage)\n\t\t- this.itemsPerPage, (this.currentPage * this.itemsPerPage));\n}"),_(this,"html1",'\n'),_(this,"javascript3","import { ItemCounterModule } from '@acpaas-ui/ngx-pagination';\n\n@NgModule({\n\timports: [\n\t\tItemCounterModule.forChild({\n\t\t\tsingular: '%{currentFrom} - %{currentTo} of %{totalAmount} item',\n\t\t\tplural: '%{currentFrom} - %{currentTo} of %{totalAmount} items',\n\t\t},\n\t\t{\n\t\t\tsingular: 'item per page',\n\t\t\tplural: 'items per page',\n\t\t})\n\t]\n});\n\nexport class AppModule {};"),_(this,"javascript4","public itemsPerPageOptions = [1, 2, 4];\n\npublic onUpdateItems(count) {\n\tthis.itemsPerPage = count;\n\tthis.selectHeroes();\n}"),_(this,"html2",'\n\n\n\n'),_(this,"heroes",[{name:"Batman"},{name:"Superman"},{name:"Iron man"},{name:"Wolverine"},{name:"Wonder woman"},{name:"Deadpool"}]),_(this,"totalValues",this.heroes.length)}ngOnInit(){this.selectHeroes()}onUpdatePage(e){this.currentPage=e,this.selectHeroes()}onUpdateItems(e){this.itemsPerPage=e,this.selectHeroes()}selectHeroes(){this.visibleHeroes=this.heroes.slice(this.currentPage*this.itemsPerPage-this.itemsPerPage,this.currentPage*this.itemsPerPage)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:29,vars:15,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"h5"],[4,"ngFor","ngForOf"],["display","numbers","styling","basic",3,"currentPage","itemsPerPage","totalValues","update"],[1,"h4","u-margin-bottom","u-margin-top-l"],[1,"m-alert","u-margin-bottom"],[1,"u-margin-bottom-x"],[3,"amountPerPage","selectOptions","returnAmount"],[1,"u-margin-bottom","u-margin-top"],[3,"amountPerPage","currentPage","totalAmount"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Pagination"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",1)(9,"h3",3),i.\u0275\u0275text(10,"Heroes"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(11,"ul"),i.\u0275\u0275template(12,CN,2,1,"li",4),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(13,"aui-pagination",5),i.\u0275\u0275listener("update",function(c){return r.onUpdatePage(c)}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(14,"h3",6),i.\u0275\u0275text(15,"Item counter & items per page"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(16,"div",7)(17,"p"),i.\u0275\u0275text(18,"Note that the following code is an extension of the code above."),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(19,"div",1),i.\u0275\u0275element(20,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(21,"div",1),i.\u0275\u0275element(22,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(23,"div",1),i.\u0275\u0275element(24,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(25,"div",8)(26,"aui-items-per-page",9),i.\u0275\u0275listener("returnAmount",function(c){return r.onUpdateItems(c)}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(27,"div",10),i.\u0275\u0275element(28,"aui-item-counter",11),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.javascript1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.javascript2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.html1),i.\u0275\u0275advance(5),i.\u0275\u0275property("ngForOf",r.visibleHeroes),i.\u0275\u0275advance(1),i.\u0275\u0275property("currentPage",r.currentPage)("itemsPerPage",r.itemsPerPage)("totalValues",r.totalValues),i.\u0275\u0275advance(7),i.\u0275\u0275property("codeSnippet",r.javascript3),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.javascript4),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.html2),i.\u0275\u0275advance(2),i.\u0275\u0275property("amountPerPage",r.itemsPerPage)("selectOptions",r.itemsPerPageOptions),i.\u0275\u0275advance(2),i.\u0275\u0275property("amountPerPage",r.itemsPerPage)("currentPage",r.currentPage)("totalAmount",r.totalValues))},dependencies:[Tt,mN,_N,bN,re],encapsulation:2})),t})();const EN=function(t){return{width:t}};let DN=(()=>{class t{constructor(){_(this,"value",0),_(this,"max",0)}calcProgress(){return this.max>0&&this.value>0?Math.floor(this.value/this.max*100)+"%":0}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-progress-bar"]],inputs:{value:"value",max:"max"},decls:3,vars:5,consts:[[1,"aui-progress-bar","a-progress"],[1,"a-progress__inner"],["aria-valuemin","0","role","progressbar",1,"a-progress__bar",3,"ngStyle"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1),i.\u0275\u0275element(2,"div",2),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(2),i.\u0275\u0275property("ngStyle",i.\u0275\u0275pureFunction1(3,EN,r.calcProgress())),i.\u0275\u0275attribute("aria-valuemax",r.max)("aria-valuenow",r.value))},dependencies:[gi],encapsulation:2})),t})(),SN=(()=>{class t{constructor(){_(this,"uploadProgress",20),_(this,"maxValue",100),_(this,"codeExampleJS1","import { ProgressBarModule } from '@acpaas-ui/ngx-progress-bar';\n\n@NgModule({\n imports: [\n ProgressBarModule\n ]\n});\n\nexport class AppModule {};"),_(this,"codeExampleJS2","public uploadProgress = 20;\npublic maxValue = 100;"),_(this,"codeExampleHTML",'\n')}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:10,vars:5,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"a-input"],[3,"max","value"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Progress bar"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",3),i.\u0275\u0275element(9,"aui-progress-bar",4),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.codeExampleJS1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML),i.\u0275\u0275advance(2),i.\u0275\u0275property("max",r.maxValue)("value",r.uploadProgress))},dependencies:[Tt,DN],encapsulation:2})),t})(),TN=(()=>{class t{constructor(){_(this,"data",void 0)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:2,vars:1,consts:[["type","button",1,"a-button","has-icon",3,"title"],["name","ai-view-1"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"button",0),i.\u0275\u0275element(1,"aui-icon",1),i.\u0275\u0275elementEnd()),2&e&&i.\u0275\u0275propertyInterpolate1("title","View ",null==r.data?null:r.data.firstName,"'s profile")},dependencies:[Bl],encapsulation:2})),t})(),E1=(()=>{class t{getLabel(e){return e.hasOwnProperty("label")?e.label:e}getValue(e){return e.hasOwnProperty("value")?e.value:e}getClass(e){return e.hasOwnProperty("classList")?e.classList.join(" "):e}formatValue(e,r,o){const c=e[this.getValue(r)];return r.format?r.format(c,r,e,o):c}getColumnClass(e,r,o){const c=e[this.getValue(r)];return r.columnClass?r.columnClass(c,r,e):""}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})();function MI(t){return!!Object.keys(t).find(n=>"metadata"===n)}function PN(t,n){}function LN(t,n){1&t&&i.\u0275\u0275template(0,PN,0,0,"ng-template")}function AN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.value)}}function ON(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span",2),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("ngClass",e.columnClass),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.value)}}let kN=(()=>{class t{constructor(e,r,o,c){_(this,"tableHelper",void 0),_(this,"viewContainerRef",void 0),_(this,"componentFactoryResolver",void 0),_(this,"changeDetectionRef",void 0),_(this,"component",void 0),_(this,"columnClass",void 0),_(this,"value",void 0),this.tableHelper=e,this.viewContainerRef=r,this.componentFactoryResolver=o,this.changeDetectionRef=c}ngOnChanges(e){e.component&&e.component.currentValue!==e.component.previousValue&&(this.loadComponent(this.component),this.changeDetectionRef.detectChanges())}hasComponent(){return!!this.component}loadComponent(e){const r=MI(e)?this.componentFactoryResolver.resolveComponentFactory(e.instance):this.componentFactoryResolver.resolveComponentFactory(e);this.viewContainerRef.clear();const o=this.viewContainerRef.createComponent(r);return o.instance.data=this.value,MI(e)&&(o.instance.metadata=e.metadata),o}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(E1),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ComponentFactoryResolver),i.\u0275\u0275directiveInject(i.ChangeDetectorRef))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-table-cell"]],inputs:{component:"component",columnClass:"columnClass",value:"value"},features:[i.\u0275\u0275NgOnChangesFeature],decls:3,vars:3,consts:[[4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(e,r){1&e&&(i.\u0275\u0275template(0,LN,1,0,null,0),i.\u0275\u0275template(1,AN,2,1,"span",0),i.\u0275\u0275template(2,ON,2,2,"span",1)),2&e&&(i.\u0275\u0275property("ngIf",r.hasComponent()),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.hasComponent()&&!r.columnClass),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.hasComponent()&&r.columnClass))},dependencies:[ze,Re],encapsulation:2})),t})();function RN(t,n){}function FN(t,n){1&t&&i.\u0275\u0275template(0,RN,0,0,"ng-template")}function NN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.label)}}let BN=(()=>{class t{constructor(e,r,o){_(this,"viewContainerRef",void 0),_(this,"componentFactoryResolver",void 0),_(this,"changeDetectionRef",void 0),_(this,"component",void 0),_(this,"label",void 0),_(this,"value",void 0),this.viewContainerRef=e,this.componentFactoryResolver=r,this.changeDetectionRef=o}ngOnChanges(){this.component&&this.loadComponent()}hasComponent(){return!!this.component}loadComponent(){const e=this.componentFactoryResolver.resolveComponentFactory(this.component),r=this.viewContainerRef;r.clear(),r.createComponent(e).instance.data=this.value,this.changeDetectionRef.detectChanges()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ComponentFactoryResolver),i.\u0275\u0275directiveInject(i.ChangeDetectorRef))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-table-header"]],inputs:{component:"component",label:"label",value:"value"},features:[i.\u0275\u0275NgOnChangesFeature],decls:2,vars:2,consts:[[4,"ngIf"]],template:function(e,r){1&e&&(i.\u0275\u0275template(0,FN,1,0,null,0),i.\u0275\u0275template(1,NN,2,1,"span",0)),2&e&&(i.\u0275\u0275property("ngIf",r.hasComponent()),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.hasComponent()))},dependencies:[Re],encapsulation:2})),t})();function VN(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275element(1,"aui-table-header",3),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext().$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("component",e.headerComponent)("label",r.tableHelper.getLabel(e))("value",r.tableHelper.getValue(e))}}function jN(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",7),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(3).$implicit,c=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(c.sort(o,"asc"))}),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext(3).$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",r.tableHelper.getLabel(e)," ")}}function HN(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",8),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(3).$implicit,c=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(c.sort(o,"asc"))}),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext(3).$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",r.tableHelper.getLabel(e)," ")}}function UN(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",9),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(3).$implicit,c=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(c.sort(o,"desc"))}),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext(3).$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",r.tableHelper.getLabel(e)," ")}}function zN(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext(3).$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",r.tableHelper.getLabel(e)," ")}}function $N(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275template(1,jN,2,1,"button",4),i.\u0275\u0275template(2,HN,2,1,"button",5),i.\u0275\u0275template(3,UN,2,1,"button",6),i.\u0275\u0275template(4,zN,2,1,"ng-container",1),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext(2).$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!e.disableSorting&&r.tableHelper.getValue(e)!==(null==r.activeSorting?null:r.activeSorting.key)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!e.disableSorting&&r.tableHelper.getValue(e)===(null==r.activeSorting?null:r.activeSorting.key)&&"desc"===(null==r.activeSorting?null:r.activeSorting.order)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!e.disableSorting&&r.tableHelper.getValue(e)===(null==r.activeSorting?null:r.activeSorting.key)&&"asc"===(null==r.activeSorting?null:r.activeSorting.order)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.disableSorting)}}function GN(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext(2).$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",r.tableHelper.getLabel(e)," ")}}function WN(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275template(1,$N,5,4,"ng-container",1),i.\u0275\u0275template(2,GN,2,1,"ng-container",1),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext(3);i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.activeSorting),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!e.activeSorting)}}function ZN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"th",0),i.\u0275\u0275template(1,VN,2,3,"ng-container",1),i.\u0275\u0275template(2,WN,3,2,"ng-container",1),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("ngClass",r.tableHelper.getClass(e)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.headerComponent),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!e.headerComponent)}}function qN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"thead")(1,"tr"),i.\u0275\u0275template(2,ZN,3,3,"th",2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275property("ngForOf",e.columns)}}function YN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"tr")(1,"td",10)(2,"div",11)(3,"div",12),i.\u0275\u0275element(4,"span",13),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(5,"div"),i.\u0275\u0275text(6),i.\u0275\u0275elementEnd()()()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("colSpan",e.columns.length),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate1(" ",e.loadDataMessage," ")}}function QN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"tr")(1,"td"),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.noColumnsMessage)}}function KN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"tr")(1,"td",10),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("colSpan",e.columns.length),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.noDataMessage)}}function JN(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"td",0),i.\u0275\u0275element(1,"aui-table-cell",16),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext(),o=r.$implicit,c=r.index,h=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("ngClass",h.tableHelper.getClass(e)),i.\u0275\u0275advance(1),i.\u0275\u0275property("component",e.component)("columnClass",h.tableHelper.getColumnClass(o,e,c))("value",h.tableHelper.formatValue(o,e,c))}}const XN=function(t){return{"a-table--clickable":t}};function e3(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"tr",15),i.\u0275\u0275listener("click",function(){const c=i.\u0275\u0275restoreView(e).$implicit,h=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(h.clickRow(c))}),i.\u0275\u0275template(1,JN,2,4,"td",2),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(2,XN,e.hasClickAction)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e.columns)}}function t3(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275template(1,e3,2,4,"tr",14),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e.rows)}}const n3=function(t,n,e){return{"a-table-responsive-wrapper":t,"has-first-column-fixed":n,"has-last-column-fixed":e}},r3=function(t,n){return{"a-table":!0,"aui-table":!0,"a-table--striped":t,"a-table--open":n}};let o3=(()=>{class t{constructor(e){_(this,"tableHelper",void 0),_(this,"rows",[]),_(this,"columns",[]),_(this,"loading",!1),_(this,"striped",!1),_(this,"open",!1),_(this,"responsive",!0),_(this,"fixedColumnLeft",!1),_(this,"fixedColumnRight",!1),_(this,"hasClickAction",!1),_(this,"activeSorting",void 0),_(this,"noDataMessage","No data available."),_(this,"loadDataMessage","Loading data..."),_(this,"noColumnsMessage","No columns available."),_(this,"orderBy",new i.EventEmitter),_(this,"rowClicked",new i.EventEmitter),this.tableHelper=e}sort(e,r){const o=this.tableHelper.getValue(e);this.activeSorting={key:o,order:r},this.orderBy.emit({key:o,order:r})}clickRow(e){this.hasClickAction&&this.rowClicked.emit(e)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(E1))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-table"]],inputs:{rows:"rows",columns:"columns",loading:"loading",striped:"striped",open:"open",responsive:"responsive",fixedColumnLeft:"fixedColumnLeft",fixedColumnRight:"fixedColumnRight",hasClickAction:"hasClickAction",activeSorting:"activeSorting",noDataMessage:"noDataMessage",loadDataMessage:"loadDataMessage",noColumnsMessage:"noColumnsMessage"},outputs:{orderBy:"orderBy",rowClicked:"rowClicked"},decls:8,vars:14,consts:[[3,"ngClass"],[4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"component","label","value"],["class","a-table__sort-button a-table__sort-button--unsorted","type","button",3,"click",4,"ngIf"],["class","a-table__sort-button a-table__sort-button--sorted-desc","type","button",3,"click",4,"ngIf"],["class","a-table__sort-button a-table__sort-button--sorted-asc","type","button",3,"click",4,"ngIf"],["type","button",1,"a-table__sort-button","a-table__sort-button--unsorted",3,"click"],["type","button",1,"a-table__sort-button","a-table__sort-button--sorted-desc",3,"click"],["type","button",1,"a-table__sort-button","a-table__sort-button--sorted-asc",3,"click"],[3,"colSpan"],[1,"table-loading","u-text-center","u-margin-top-3xl","u-margin-bottom-3xl"],["role","alert",1,"a-spinner","u-margin-bottom-xs"],[1,"a-spinner__circle"],[3,"ngClass","click",4,"ngFor","ngForOf"],[3,"ngClass","click"],[3,"component","columnClass","value"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"table",0),i.\u0275\u0275template(2,qN,3,1,"thead",1),i.\u0275\u0275elementStart(3,"tbody"),i.\u0275\u0275template(4,YN,7,2,"tr",1),i.\u0275\u0275template(5,QN,3,1,"tr",1),i.\u0275\u0275template(6,KN,3,2,"tr",1),i.\u0275\u0275template(7,t3,2,1,"ng-container",1),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction3(7,n3,r.responsive,r.fixedColumnLeft,r.fixedColumnRight)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction2(11,r3,r.striped,r.open)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.columns.length>0),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",r.loading),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.loading&&0===r.columns.length),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!(r.loading||r.rows&&0!==r.rows.length)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.loading&&r.columns.length>0))},dependencies:[ze,re,Re,kN,BN],encapsulation:2,changeDetection:0})),t})(),s3=(()=>{class t{constructor(e){_(this,"datePipe",void 0),_(this,"columns",[{label:"#",value:"id",columnClass:(r,o,c)=>this.makeBold(r,o,c)},{label:"First Name",value:"firstName",columnClass:(r,o,c)=>this.makeBold(r,o,c)},{label:"Last Name",value:"lastName",columnClass:(r,o,c)=>this.makeBold(r,o,c)},{label:"Registered",value:"registeredAt",columnClass:(r,o,c)=>this.makeBold(r,o,c),format:r=>this.datePipe.transform(r,"dd/MM/yyyy")},{label:"Actions",component:TN}]),_(this,"rows",[{id:0,firstName:"Wyatt",lastName:"Cooper",registeredAt:"Sat Feb 07 1981 01:04:46 GMT+0000 (UTC)"},{id:1,firstName:"Mullen",lastName:"Ballard",registeredAt:"Fri Aug 31 2001 06:47:22 GMT+0000 (UTC)"},{id:2,firstName:"Sonia",lastName:"Bass",registeredAt:"Sat Jul 12 1975 16:00:43 GMT+0000 (UTC)"},{id:3,firstName:"Kristen",lastName:"Moore",registeredAt:"Mon Nov 09 2015 16:11:21 GMT+0000 (UTC)"},{id:4,firstName:"Moss",lastName:"Bowen",registeredAt:"Thu Aug 04 1977 05:52:52 GMT+0000 (UTC)"},{id:5,firstName:"Elaine",lastName:"Michael",registeredAt:"Wed Mar 30 1977 01:48:30 GMT+0000 (UTC)"},{id:6,firstName:"Jerri",lastName:"Hicks",registeredAt:"Wed Jul 10 2013 22:53:48 GMT+0000 (UTC)"},{id:7,firstName:"Sharron",lastName:"Castro",registeredAt:"Mon Sep 27 1976 07:55:10 GMT+0000 (UTC)"},{id:8,firstName:"Harriett",lastName:"Horton",registeredAt:"Wed Aug 18 2010 14:06:33 GMT+0000 (UTC)"},{id:9,firstName:"Griffin",lastName:"Navarro",registeredAt:"Tue Oct 24 2017 23:45:35 GMT+0000 (UTC)"}]),_(this,"importModule","import { TableModule } from '@acpaas-ui/ngx-table';\n\n@NgModule({\n\timports: [\n\t\tTableModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"exampleComp",'\nimport { Component } from \'@angular/core\';\nimport { Cell } from \'@acpaas-ui/ngx-table\';\n\n@Component({\n\ttemplate: `\n\t\t\n\t`,\n})\nexport class TableActionComponent implements Cell {\n\tpublic data: any;\n}\n\t'),_(this,"exampleCols","\npublic columns: TableColumn[] = [\n\t{\n\t\tlabel: '#',\n\t\tvalue: 'id',\n\t\tcolumnClass: (index, col, row) => this.makeBold(index, col, row)\n\t},\n\t{\n\t\tlabel: 'First Name',\n\t\tvalue: 'firstName',\n\t\tcolumnClass: (index, col, row) => this.makeBold(index, col, row)\n\t},\n\t{\n\t\tlabel: 'Last Name',\n\t\tvalue: 'lastName',\n\t\tcolumnClass: (index, col, row) => this.makeBold(index, col, row)\n\t},\n\t{\n\t\tlabel: 'Registered',\n\t\tvalue: 'registeredAt',\n\t\tcolumnClass: (index, col, row) => this.makeBold(index, col, row)\n\t\tformat: (value) => this.datePipe.transform(value, 'dd/MM/yyyy'),\n\t},\n\t{\n\t\tlabel: 'Actions',\n\t\tcomponent: TableActionComponent,\n\t},\n];\n\npublic makeBold(index, col, row) {\n return row.firstName === 'Sonia' ? 'u-text-bold' : '';\n }\n\npublic rows = [\n\t{\n\t\t'id': 0,\n\t\t'firstName': 'Wyatt',\n\t\t'lastName': 'Cooper',\n\t\t'registeredAt': 'Sat Feb 07 1981 01:04:46 GMT+0000 (UTC)',\n\t},\n\t{\n\t\t'id': 1,\n\t\t'firstName': 'Mullen',\n\t\t'lastName': 'Ballard',\n\t\t'registeredAt': 'Fri Aug 31 2001 06:47:22 GMT+0000 (UTC)',\n\t},\n\t{\n\t\t'id': 2,\n\t\t'firstName': 'Sonia',\n\t\t'lastName': 'Bass',\n\t\t'registeredAt': 'Sat Jul 12 1975 16:00:43 GMT+0000 (UTC)',\n\t},\n\t{\n\t\t'id': 3,\n\t\t'firstName': 'Kristen',\n\t\t'lastName': 'Moore',\n\t\t'registeredAt': 'Mon Nov 09 2015 16:11:21 GMT+0000 (UTC)',\n\t},\n\t{\n\t\t'id': 4,\n\t\t'firstName': 'Moss',\n\t\t'lastName': 'Bowen',\n\t\t'registeredAt': 'Thu Aug 04 1977 05:52:52 GMT+0000 (UTC)',\n\t},\n\t{\n\t\t'id': 5,\n\t\t'firstName': 'Elaine',\n\t\t'lastName': 'Michael',\n\t\t'registeredAt': 'Wed Mar 30 1977 01:48:30 GMT+0000 (UTC)',\n\t},\n\t{\n\t\t'id': 6,\n\t\t'firstName': 'Jerri',\n\t\t'lastName': 'Hicks',\n\t\t'registeredAt': 'Wed Jul 10 2013 22:53:48 GMT+0000 (UTC)',\n\t},\n\t{\n\t\t'id': 7,\n\t\t'firstName': 'Sharron',\n\t\t'lastName': 'Castro',\n\t\t'registeredAt': 'Mon Sep 27 1976 07:55:10 GMT+0000 (UTC)',\n\t},\n\t{\n\t\t'id': 8,\n\t\t'firstName': 'Harriett',\n\t\t'lastName': 'Horton',\n\t\t'registeredAt': 'Wed Aug 18 2010 14:06:33 GMT+0000 (UTC)',\n\t},\n\t{\n\t\t'id': 9,\n\t\t'firstName': 'Griffin',\n\t\t'lastName': 'Navarro',\n\t\t'registeredAt': 'Tue Oct 24 2017 23:45:35 GMT+0000 (UTC)',\n\t},\n];\n\npublic loading = false;\n\nconstructor(\n\tprivate datePipe: DatePipe\n) { }\n\t"),_(this,"exampleHTML",'\n\n\t'),_(this,"loading",!1),this.datePipe=e}makeBold(e,r,o){return"Sonia"===o.firstName?"u-text-bold":""}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(mn))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],features:[i.\u0275\u0275ProvidersFeature([mn])],decls:15,vars:9,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"m-alert"],[1,"u-margin-bottom-3xl"],["loadDataMessage","Loading...","noColumsMessage","There are no columns!","noDataMessage","There is no data!",3,"open","striped","columns","loading","rows"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Table"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1)(7,"div",3),i.\u0275\u0275text(8,"The TableActionComponent is used for actions in the table"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(9,"div",1),i.\u0275\u0275element(10,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(11,"div",1),i.\u0275\u0275element(12,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(13,"div",4),i.\u0275\u0275element(14,"aui-table",5),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.importModule),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.exampleCols),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.exampleComp),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.exampleHTML),i.\u0275\u0275advance(2),i.\u0275\u0275property("open",!0)("striped",!0)("columns",r.columns)("loading",r.loading)("rows",r.rows))},dependencies:[Tt,o3],encapsulation:2})),t})();var tp=(()=>(function(t){t.Auto="auto",t.Small="small",t.Medium="medium",t.Large="large",t.Full="full"}(tp||(tp={})),tp))(),da=(()=>(function(t){t[t.OPEN=0]="OPEN",t[t.CLOSED=1]="CLOSED"}(da||(da={})),da))();const z_=(t,n,e)=>!!t.code&&t.code.toLowerCase()===n&&(void 0===e||t.keyCode===e||t.which===e);let Vl=(()=>{class t{constructor(e){this.elementRef=e,this.class=!0,this.isExpanded=!1,this.element=this.elementRef.nativeElement}get flyoutZoneIsExpanded(){return this.isExpanded}contains(e){return!1!==this.auiFlyoutZone&&this.element.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ElementRef))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFlyoutZone",""]],hostVars:3,hostBindings:function(e,r){2&e&&(i.\u0275\u0275attribute("aria-expanded",r.flyoutZoneIsExpanded),i.\u0275\u0275classProp("m-flyout__content",r.class))},inputs:{auiFlyoutZone:"auiFlyoutZone"},exportAs:["auiFlyoutZone"]}),t})(),xI=(()=>{class t{constructor(){this.state$=new vt.xQ}close(){this.state$.next(da.CLOSED)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),fs=(()=>{class t{constructor(e,r,o,c){this.document=e,this.flyoutService=r,this.cdr=o,this.ref=c,this.flyoutClass=!0,this.flyoutTabIndex="-1",this.flyoutAriaPop=!0,this.size=tp.Auto,this.toggleClick=!0,this.activateOnFocus=!1,this.opened=new i.EventEmitter,this.closed=new i.EventEmitter,this.isOpened=!1,this.state$=new vt.xQ,this.destroyed$=new vt.xQ,this.handleKeyUp=this.handleKeyUp.bind(this),this.state$.next(da.CLOSED),(0,EI.T)(this.state$,this.flyoutService.state$).pipe(Bn(this.destroyed$),DI()).subscribe(h=>{this.isOpened=h===da.OPEN,this.flyoutZone&&(this.flyoutZone.isExpanded=this.isOpened),this.isOpened?this.opened.emit():this.closed.emit()})}get flyoutAlignRight(){return"right"===this.align}get flyoutSmall(){return"small"===this.size}get flyoutMedium(){return"medium"===this.size}get flyoutLarge(){return"large"===this.size}get flyoutFull(){return"full"===this.size}get flyoutOpen(){return this.isOpened}ngOnDestroy(){this.destroyed$.next(!0)}open(){this.state$.next(da.OPEN),this.document.addEventListener("keyup",this.handleKeyUp),this.cdr.detectChanges()}close(){this.state$.next(da.CLOSED),this.cdr.markForCheck()}isInClosableZone(e){if(!e)return!1;const r=this.flyoutZone&&this.flyoutZone.contains(e),o=this.ref.nativeElement===e||this.ref.nativeElement.contains(e);return r||o}handleKeyUp(e){z_(e,"escape",27)&&(this.document.removeEventListener("keyup",this.handleKeyUp),this.close(),this.cdr.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(W),i.\u0275\u0275directiveInject(xI),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.ElementRef))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFlyout",""]],contentQueries:function(e,r,o){if(1&e&&i.\u0275\u0275contentQuery(o,Vl,7),2&e){let c;i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.flyoutZone=c.first)}},hostVars:16,hostBindings:function(e,r){2&e&&(i.\u0275\u0275attribute("tabindex",r.flyoutTabIndex)("aria-haspopup",r.flyoutAriaPop),i.\u0275\u0275classProp("m-flyout",r.flyoutClass)("m-flyout--right",r.flyoutAlignRight)("m-flyout--s",r.flyoutSmall)("m-flyout--md",r.flyoutMedium)("m-flyout--l",r.flyoutLarge)("m-flyout--full",r.flyoutFull)("is-open",r.flyoutOpen))},inputs:{size:"size",align:"align",toggleClick:"toggleClick",activateOnFocus:"activateOnFocus"},outputs:{opened:"opened",closed:"closed"},exportAs:["auiFlyout"]}),t})(),np=(()=>{class t{constructor(e,r,o,c){this.flyout=e,this.document=o,this.elementRef=c,this.class=!0,this.openOnFocus=!0,this.destroyed$=new vt.xQ,this.isPlatformBrowser=Vo(r),this.closeIfInClosableZone=this.closeIfInClosableZone.bind(this),this.onBlur=this.onBlur.bind(this)}get tabIndex(){return this.disabled?"-1":"0"}ngOnInit(){this.flyout.state$.pipe(Bn(this.destroyed$)).subscribe(e=>{e===da.OPEN?setTimeout(()=>{this.addEventListeners()},100):this.removeEventListeners()})}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete(),this.isPlatformBrowser&&this.document.removeEventListener("click",this.closeIfInClosableZone,!0)}onMousedown(e){e.stopImmediatePropagation(),this.flyout.isOpened&&this.flyout.toggleClick?this.close():this.open()}onFocus(){!this.openOnFocus||!this.isPlatformBrowser||this.flyout.isOpened||this.open()}onKeyDown(e){(z_(e,"space",32)||z_(e,"enter",13))&&this.open()}onBlur(e){this.isPlatformBrowser&&this.flyout.isOpened&&e.relatedTarget&&!this.flyout.isInClosableZone(e.relatedTarget)&&e.relatedTarget!==this.elementRef.nativeElement&&this.close()}open(){!this.isPlatformBrowser||this.flyout.isOpened||this.flyout.open()}close(){!this.isPlatformBrowser||!this.flyout.isOpened||this.flyout.close()}addEventListeners(){this.document.addEventListener("click",this.closeIfInClosableZone,!0),this.document.addEventListener("focusout",this.onBlur,!0)}removeEventListeners(){this.document.removeEventListener("click",this.closeIfInClosableZone,!0),this.document.removeEventListener("focusout",this.onBlur,!0)}checkIfInClosableZone(e){const r=this.flyout.isInClosableZone(e.target),o=e.target===this.elementRef.nativeElement,c=this.elementRef.nativeElement.contains(e.target);return!r&&!o&&!c}closeIfInClosableZone(e){this.isPlatformBrowser&&this.checkIfInClosableZone(e)&&this.close()}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(fs,1),i.\u0275\u0275directiveInject(i.PLATFORM_ID),i.\u0275\u0275directiveInject(W),i.\u0275\u0275directiveInject(i.ElementRef))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFlyoutAction",""]],hostVars:3,hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("mousedown",function(c){return r.onMousedown(c)})("focus",function(){return r.onFocus()})("keydown",function(c){return r.onKeyDown(c)}),2&e&&(i.\u0275\u0275attribute("tabindex",r.tabIndex),i.\u0275\u0275classProp("ngx-flyout-action",r.class))},inputs:{openOnFocus:"openOnFocus",disabled:"disabled"},exportAs:["auiFlyoutAction"]}),t})(),II=(()=>{class t{constructor(e){this.flyout=e}onClick(){this.flyout.close()}onKeyDown(e){(z_(e,"space",32)||z_(e,"enter",13))&&this.flyout.close()}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(fs,1))},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFlyoutClose",""]],hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("click",function(){return r.onClick()})("keydown",function(c){return r.onKeyDown(c)})},exportAs:["auiFlyoutClose"]}),t})(),ip=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({providers:[xI],imports:[Ke]}),t})();function d3(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275elementStart(1,"button",2),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.login$.next())}),i.\u0275\u0275element(2,"aui-icon",3),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementContainerEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275attribute("aria-label",e.translations.login),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",e.translations.login," ")}}function h3(t,n){if(1&t&&i.\u0275\u0275element(0,"img",12),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("src",null==e.user?null:e.user.avatarUrl,i.\u0275\u0275sanitizeUrl),i.\u0275\u0275attribute("alt",e.translations.userAvatar)}}function f3(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span",13),i.\u0275\u0275element(1,"aui-icon",14),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("ariaLabel",e.translations.userAvatar)}}function p3(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span",15),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.notificationsCount?e.notificationsCount:0)}}function m3(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",16),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(o.logout$.next())}),i.\u0275\u0275element(1,"aui-icon",17),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275attribute("aria-label",e.translations.logout),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",e.translations.logout," ")}}function g3(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275elementStart(1,"div",4)(2,"button",5)(3,"span",6),i.\u0275\u0275template(4,h3,1,2,"img",7),i.\u0275\u0275template(5,f3,2,1,"span",8),i.\u0275\u0275template(6,p3,2,1,"span",9),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(7),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",10),i.\u0275\u0275projection(9),i.\u0275\u0275template(10,m3,3,2,"button",11),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275classMap(e.flyoutClassBuilder(e.direction,e.flyoutSize)),i.\u0275\u0275attribute("data-align",e.direction)("size",e.flyoutSize),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngIf",null==e.user?null:e.user.avatarUrl),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!(null!=e.user&&e.user.avatarUrl)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.notificationsCount>0),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate2(" ",null==e.user?null:e.user.firstName," ",null==e.user?null:e.user.lastName," "),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngIf",e.showLogoutButton)}}const _3=["*"];let v3=(()=>{class t{constructor(){_(this,"user",null),_(this,"direction","right"),_(this,"flyoutSize",tp.Small),_(this,"notificationsCount",null),_(this,"showLogoutButton",!0),_(this,"translations",{login:"Aanmelden",logout:"Afmelden",userAvatar:"Gebruiker avatar"}),_(this,"logout$",new i.EventEmitter),_(this,"login$",new i.EventEmitter)}flyoutClassBuilder(e,r){return`m-user-menu-flyout${"right"===e?" m-flyout--bottom-right":""}${r?` m-flyout--${r[0].toLowerCase()}`:""}`}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-user-menu"]],inputs:{user:"user",direction:"direction",flyoutSize:"flyoutSize",notificationsCount:"notificationsCount",showLogoutButton:"showLogoutButton",translations:"translations"},outputs:{logout$:"logout$",login$:"login$"},ngContentSelectors:_3,decls:3,vars:2,consts:[[1,"m-user-menu-container"],[4,"ngIf"],[1,"a-button","a-button-login","has-icon-left",3,"click"],["name","ai-single-neutral"],["auiFlyout",""],["auiFlyoutAction","",1,"a-button","primary","a-button-avatar"],[1,"a-avatar","u-margin-right-xs"],[3,"src",4,"ngIf"],["class","a-avatar__icon",4,"ngIf"],["class","a-badge a-badge-primary",4,"ngIf"],["auiFlyoutZone",""],["auiFlyoutClose","","class","a-button-logout a-button a-button--danger a-button--full has-icon-left",3,"click",4,"ngIf"],[3,"src"],[1,"a-avatar__icon"],["name","ai-single-neutral",3,"ariaLabel"],[1,"a-badge","a-badge-primary"],["auiFlyoutClose","",1,"a-button-logout","a-button","a-button--danger","a-button--full","has-icon-left",3,"click"],["name","ai-power-button"]],template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,d3,4,2,"ng-container",1),i.\u0275\u0275template(2,g3,11,10,"ng-container",1),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.user),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.user))},dependencies:[Re,Gt,np,II,Vl,fs],styles:['[_ngcontent-%COMP%]:root{--THEME1-800: var(--theme1-800, #002855);--THEME1-700: var(--theme1-700, #003865);--THEME1-600: var(--theme1-600, #0057b7);--THEME1-500: var(--theme1-500, #009cde);--THEME1-400: var(--theme1-400, #41b6e6);--THEME1-300: var(--theme1-300, #99d6ea);--THEME1-200: var(--theme1-200, #96b5e4);--THEME1-100: var(--theme1-100, #e0ebf6);--THEME2-800: var(--theme2-800,);--THEME2-700: var(--theme2-700,);--THEME2-600: var(--theme2-600, #7c2629);--THEME2-500: var(--theme2-500, #862633);--THEME2-400: var(--theme2-400, #cf0039);--THEME2-300: var(--theme2-300, #df4661);--THEME2-200: var(--theme2-200, #ffb1bb);--THEME2-100: var(--theme2-100, #f5dadf);--INFO-800: var(--info-800, var(--THEME1-800));--INFO-700: var(--info-700, var(--THEME1-700));--INFO-600: var(--info-600, var(--THEME1-600));--INFO-500: var(--info-500, var(--THEME1-500));--INFO-400: var(--info-400, var(--THEME1-400));--INFO-300: var(--info-300, var(--THEME1-300));--INFO-200: var(--info-200, var(--THEME1-200));--INFO-100: var(--info-100, var(--THEME1-100));--SUCCESS-800: var(--success-800, #004721);--SUCCESS-700: var(--success-700, #006e33);--SUCCESS-600: var(--success-600, #4c8d2b);--SUCCESS-500: var(--success-500, #6cc24a);--SUCCESS-400: var(--success-400, #97d700);--SUCCESS-300: var(--success-300, #bce194);--SUCCESS-200: var(--success-200, #d0debb);--SUCCESS-100: var(--success-100, #edf8e9);--WARNING-800: var(--warning-800,);--WARNING-700: var(--warning-700,);--WARNING-600: var(--warning-600,);--WARNING-500: var(--warning-500, #8f3400);--WARNING-400: var(--warning-400, #ce4c00);--WARNING-300: var(--warning-300,);--WARNING-200: var(--warning-200,);--WARNING-100: var(--warning-100, #ffe4d6);--DANGER-800: var(--danger-800,);--DANGER-700: var(--danger-700, #7c2629);--DANGER-600: var(--danger-600, #af272f);--DANGER-500: var(--danger-500, #e03c31);--DANGER-400: var(--danger-400, #e56a54);--DANGER-300: var(--danger-300, #e6baa8);--DANGER-200: var(--danger-200, #f3cfb3);--DANGER-100: var(--danger-100, #fbe8e6);--TEXT-COLOR: var(--text-color, #000);--TEXT-COLOR-LIGHT: var(--text-color-light, #6f6f6f);--TEXT-COLOR-INVERTED: var(--text-color-inverted, #fff);--TEXT-COLOR-XLIGHT: var(--text-color-xlight, var(--TEXT-COLOR-INVERTED));--BG-COLOR: var(--bg-color, #f3f3f3);--BG-COLOR-LIGHT: var(--bg-color-light, #fff);--BG-COLOR-INVERTED: var(--bg-color-inverted, #424242);--BORDER-COLOR: var(--border-color, #949494);--BORDER-COLOR-LIGHT: var(--border-color-light, #d8d8d8);--OVERLAY-COLOR: var(--overlay-color, rgba(0, 0, 0, .75));--BOX-SHADOW-COLOR: var(--box-shadow-color, rgba(20, 20, 20, .12));--LINK-COLOR: var(--link-color, var(--THEME1-600));--LINK-HOVER-COLOR: var(--link-hover-color, var(--THEME1-700));--STATE-INFO: var(--state-info, var(--INFO-600));--STATE-SUCCESS: var(--state-success, var(--SUCCESS-700));--STATE-WARNING: var(--state-warning, var(--WARNING-400));--STATE-DANGER: var(--state-danger, var(--DANGER-600));--STATE-DISABLED: var(--state-disabled, #6f6f6f);--SPACER: var(--spacer, 1.5rem);--SPACER-3XL: var(--spacer-3xl, calc(var(--SPACER) * 4));--SPACER-XXL: var(--spacer-xxl, calc(var(--SPACER) * 2.5));--SPACER-XL: var(--spacer-xl, calc(var(--SPACER) * 2));--SPACER-L: var(--spacer-l, calc(var(--SPACER) * 1.5));--SPACER-S: var(--spacer-s, calc(var(--SPACER) / 1.5));--SPACER-XS: var(--spacer-xs, calc(var(--SPACER) / 2));--SPACER-XXS: var(--spacer-xxs, calc(var(--SPACER) / 3));--SPACER-3XS: var(--spacer-3xs, calc(var(--SPACER) / 6));--SCREEN-XS: var(--screen-xs, 30rem);--SCREEN-S: var(--screen-s, 45rem);--SCREEN-L: var(--screen-l, 62rem);--SCREEN-XL: var(--screen-xl, 75rem);--SCREEN-XS-MAX: var(--screen-xs-max, 44.9375rem);--SCREEN-S-MAX: var(--screen-s-max, 61.9375rem);--SCREEN-L-MAX: var(--screen-l-max, 74.9375rem);--SCREEN-XL-MAX: var(--screen-xl-max, 89.9375rem);--SCREEN-XXL: var(--screen-xxl, calc(var(--SCREEN-XL) + calc(var(--SPACER-3XL) * 2) + calc(var(--SPACER) * 2)));--FONT-FAMILY-BASE: var(--font-family-base, "Sun Antwerpen", sans-serif);--FONT-FAMILY-HEADINGS: var(--font-family-headings, "Antwerpen Regular", sans-serif);--FONT-FAMILY-MONOSPACE: var(--font-family-monospace, "Menlo", "Monaco", "Consolas", "Courier New", monospace);--FONT-WEIGHT-LIGHT: var(--font-weight-light, 300);--FONT-WEIGHT-NORMAL: var(--font-weight-normal, 500);--FONT-WEIGHT-BOLD: var(--font-weight-bold, 700);--FONT-WEIGHT-EXTRA-BOLD: var(--font-weight-extra-bold, 800);--FONT-WEIGHT-H1: var(--font-weight-h1, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H2: var(--font-weight-h2, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H3: var(--font-weight-h3, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H4: var(--font-weight-h4, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H5: var(--font-weight-h5, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H6: var(--font-weight-h6, var(--FONT-WEIGHT-BOLD));--FONT-SIZE-BASE: var(--font-size-base, 16px);--FONT-SIZE-SMALL: var(--font-size-small, 14px);--FONT-SIZE-LARGE: var(--font-size-large, 18px);--FONT-SIZE-H1: var(--font-size-h1, 36px);--FONT-SIZE-H2: var(--font-size-h2, 28px);--FONT-SIZE-H3: var(--font-size-h3, 23px);--FONT-SIZE-H4: var(--font-size-h4, 21px);--FONT-SIZE-H5: var(--font-size-h5, 19px);--FONT-SIZE-H6: var(--font-size-h6, 17px);--LINE-HEIGHT-BASE: var(--line-height-base, 1);--LINE-HEIGHT-HEADING: var(--line-height-heading, 1.1);--LINE-HEIGHT-PARAGRAPH: var(--line-height-paragraph, 1.3);--BORDER-RADIUS: var(--border-radius, 0);--BORDER-WIDTH: var(--border-width, 1px);--ANIMATION-DURATION: var(--animation-duration, .2s);--ANIMATION-EASING: var(--animation-easing, ease-in-out);--ANIMATION-NORMAL: var(--animation-normal, var(--ANIMATION-DURATION) var(--ANIMATION-EASING));--BOX-SHADOW-BOTTOM-LEFT: var(--box-shadow-bottom-left, calc(var(--SPACER) / -2) calc(var(--SPACER) / 2) 0 var(--BOX-SHADOW-COLOR));--BOX-SHADOW-BOTTOM-RIGHT: var(--box-shadow-bottom-right, calc(var(--SPACER) / 2) calc(var(--SPACER) / 2) 0 var(--BOX-SHADOW-COLOR));--BOX-SHADOW-TOP-LEFT: var(--box-shadow-top-left, calc(var(--SPACER) / -2) calc(var(--SPACER) / -2) 0 var(--BOX-SHADOW-COLOR));--BOX-SHADOW-TOP-RIGHT: var(--box-shadow-top-right, calc(var(--SPACER) / 2) calc(var(--SPACER) / -2) 0 var(--BOX-SHADOW-COLOR));--BOX-SHADOW: var(--box-shadow, var(--BOX-SHADOW-BOTTOM-RIGHT))}[_ngcontent-%COMP%]:root{--shared-avatar-size-s: var(--SPACER-L);--shared-avatar-size: var(--SPACER-XL);--shared-avatar-size-l: var(--SPACER-XXL);--shared-copyright-color: var(--TEXT-COLOR-INVERTED);--shared-copyright-height: var(--SPACER-L);--shared-header-height: var(--SPACER-XL);--shared-slideshow-footer-color-light: var(--TEXT-COLOR-INVERTED)}[_nghost-%COMP%]{display:inline-block}.a-button-avatar[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:row;padding-bottom:0;padding-left:0;padding-top:0}.a-button-avatar[_ngcontent-%COMP%] .a-avatar[_ngcontent-%COMP%]{align-content:center;display:flex;flex-direction:row;justify-content:center;overflow:visible;position:relative}.a-button-avatar[_ngcontent-%COMP%] .a-avatar[_ngcontent-%COMP%] .a-badge[_ngcontent-%COMP%]{--badge-bg-color: var(--theme2-400);--badge-border-color: var(--theme2-400);bottom:calc(var(--badge-size) / -2);position:absolute;z-index:5}']})),t})(),y3=(()=>{class t{constructor(){_(this,"mockUser",{firstName:"John",lastName:"Doe",avatarUrl:"https://gravatar.com/avatar/66f865ee03bc019d2f06af6ec0c434ce?s=200"}),_(this,"translations",{login:"Login",logout:"Logout",userAvatar:"User avatar"}),_(this,"importModuleSnippet","import { UserMenuModule } from '@acpaas-ui/ngx-user-menu';\n\n@NgModule({\n\timports: [\n\t\tUserMenuModule\n\t]\n})\nexport class AppModule { }"),_(this,"componentInputs","public mockUser: UserMenu.IUser = {\n\tfirstName: 'John',\n\tlastName: 'Doe',\n\tavatarUrl: 'https://gravatar.com/avatar/66f865ee03bc019d2f06af6ec0c434ce?s=200'\n};\n\npublic translations: UserMenu.ITranslations = {\n\tlogin: 'Login',\n\tloginAlt: 'Click here to login',\n\tuserAvatar: 'User avatar'\n};\n\npublic logoutUser(){\n\talert('User is logged out!');\n}\n\npublic loginUser(){\n\talert('User is logged in!');\n}"),_(this,"useComponentTagSnippet",'\n\t
    \n\t\tYour Content Here\n\t
    \n
    ')}logoutUser(){alert("User is logged out!")}loginUser(){alert("User is logged in!")}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:33,vars:7,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[3,"translations","login$"],[1,"u-margin-bottom-l"],["flyoutSize","Small","direction","left",3,"notificationsCount","translations","user","logout$"],[1,"u-margin-l","u-text-center"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"User Menu"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",1)(9,"aui-user-menu",3),i.\u0275\u0275listener("login$",function(){return r.loginUser()}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(10,"div",4)(11,"aui-user-menu",5),i.\u0275\u0275listener("logout$",function(){return r.logoutUser()}),i.\u0275\u0275elementStart(12,"div",6),i.\u0275\u0275text(13,"Your Content Here"),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(14,"p",1),i.\u0275\u0275text(15," The User Menu component can be used on a webpage to provide visual login and logout buttons. If logged out, the component displays a single button enabling the user to login. If logged in, the component provides an avatar button, displaying a flyout where a logout button is featured.\n"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(16,"p",1),i.\u0275\u0275text(17," This component uses content projection inside its tag, meaning whatever html is included between the "),i.\u0275\u0275elementStart(18,"code"),i.\u0275\u0275text(19,"aui-user-menu"),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(20," tag will be inserted in the flyout section. The logout button is displayed by default but can be disabled if you wish to implement your custom logout button.\n"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(21,"div",1)(22,"p"),i.\u0275\u0275text(23,"Two output events may be used to hook to login or logout functionality to the interface:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(24,"ul")(25,"li")(26,"code"),i.\u0275\u0275text(27,"login$"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(28,"li")(29,"code"),i.\u0275\u0275text(30,"logout$"),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(31,"p"),i.\u0275\u0275text(32," You are responsible for providing login and logout callback functionality, this component only provides visuals. "),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.importModuleSnippet),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.componentInputs),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.useComponentTagSnippet),i.\u0275\u0275advance(2),i.\u0275\u0275property("translations",r.translations),i.\u0275\u0275advance(2),i.\u0275\u0275property("notificationsCount",100)("translations",r.translations)("user",r.mockUser))},dependencies:[Tt,v3],encapsulation:2})),t})();function b3(t,n){if(1&t&&i.\u0275\u0275element(0,"span",6),2&t){const e=i.\u0275\u0275nextContext().$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275property("innerHTML",r.formatLabel(e),i.\u0275\u0275sanitizeHtml)}}function C3(t,n){}const w3=function(t){return{item:t}};function E3(t,n){if(1&t&&i.\u0275\u0275template(0,C3,0,0,"ng-template",7),2&t){const e=i.\u0275\u0275nextContext().$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275property("ngTemplateOutletContext",i.\u0275\u0275pureFunction1(2,w3,e))("ngTemplateOutlet",r.template)}}function D3(t,n){}const S3=function(t){return{$implicit:t}};function T3(t,n){if(1&t&&i.\u0275\u0275template(0,D3,0,0,"ng-template",7),2&t){const e=i.\u0275\u0275nextContext().$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275property("ngTemplateOutletContext",i.\u0275\u0275pureFunction1(2,S3,e))("ngTemplateOutlet",r.itemTemplate)}}function M3(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"li",2),i.\u0275\u0275listener("click",function(){const c=i.\u0275\u0275restoreView(e).$implicit,h=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(h.selectItem(c))}),i.\u0275\u0275elementStart(1,"a",3),i.\u0275\u0275template(2,b3,1,1,"span",4),i.\u0275\u0275template(3,E3,1,4,null,5),i.\u0275\u0275template(4,T3,1,4,null,5),i.\u0275\u0275elementEnd()()}if(2&t){const e=n.index,r=i.\u0275\u0275nextContext();i.\u0275\u0275attribute("aria-selected",e===r.index),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",e===r.index?"is-active":""),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.template&&!r.itemTemplate),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.template),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.itemTemplate)}}let x3=(()=>{class t{constructor(){_(this,"items",void 0),_(this,"index",0),_(this,"search",void 0),_(this,"label",void 0),_(this,"itemTemplate",void 0),_(this,"selected",new i.EventEmitter),_(this,"template",void 0)}selectItem(e){this.selected.emit(e)}formatLabel(e){const r=this.label?e[this.label]:e;if(!this.search)return r;const o=new RegExp(this.search,"ig");return r.replace(o,""+this.search+"")}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-selectable-list"]],contentQueries:function(e,r,o){if(1&e&&i.\u0275\u0275contentQuery(o,i.TemplateRef,7),2&e){let c;i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.template=c.first)}},inputs:{items:"items",index:"index",search:"search",label:"label",itemTemplate:"itemTemplate"},outputs:{selected:"selected"},decls:2,vars:1,consts:[[1,"aui-selectable-list","a-list","a-list--lined","a-list--flushed"],["class","a-list__item",3,"click",4,"ngFor","ngForOf"],[1,"a-list__item",3,"click"],[1,"a-list__content",3,"ngClass"],["class","a-list__text",3,"innerHTML",4,"ngIf"],[4,"ngIf"],[1,"a-list__text",3,"innerHTML"],[3,"ngTemplateOutletContext","ngTemplateOutlet"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"ul",0),i.\u0275\u0275template(1,M3,5,5,"li",1),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",r.items))},dependencies:[ze,re,Re,Qt],encapsulation:2})),t})();function I3(t,n){if(1&t&&(i.\u0275\u0275text(0," Template for: "),i.\u0275\u0275elementStart(1,"strong"),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()),2&t){const e=n.item;i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.name)}}let P3=(()=>{class t{constructor(){_(this,"index",0),_(this,"heroes",[{name:"Spiderman"},{name:"Wolverine"},{name:"Iron man"}]),_(this,"activeHero",this.heroes[this.index]),_(this,"javascript1","import { SelectableListModule } from '@acpaas-ui/ngx-selectable-list';\n\n@NgModule({\n\timports: [\n\t\tSelectableListModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"javascript2","public index = 0;\n\npublic heroes = [\n\t{ name: 'spiderman' },\n\t{ name: 'wolverine' },\n\t{ name: 'ironman' }\n];\n\npublic activeHero = this.heroes[this.index];\n\npublic onSelect(item) {\n\tthis.index = this.heroes.findIndex(hero => hero.name === item.name);\n\tthis.activeHero = item;\n}"),_(this,"html",'

    Select your hero

    \n\n \n\t Template for: {{ item.name }}\n \n\n

    Active hero: {{ activeHero.name }}

    ')}onSelect(e){this.index=this.heroes.findIndex(r=>r.name===e.name),this.activeHero=e}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:17,vars:6,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom-l"],[1,"h4","u-margin-bottom"],[3,"index","items","selected"],[1,"u-margin-top"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Selectable list"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",3),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",1)(9,"h3",4),i.\u0275\u0275text(10,"Select your hero"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(11,"aui-selectable-list",5),i.\u0275\u0275listener("selected",function(c){return r.onSelect(c)}),i.\u0275\u0275template(12,I3,3,1,"ng-template"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(13,"p",6)(14,"strong"),i.\u0275\u0275text(15,"Active hero"),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(16),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.javascript1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.javascript2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.html),i.\u0275\u0275advance(4),i.\u0275\u0275property("index",r.index)("items",r.heroes),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate1(": ",r.activeHero.name,""))},dependencies:[Tt,x3],encapsulation:2})),t})(),L3=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:3,vars:0,consts:[[1,"h3","u-margin-bottom"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Forms"),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(2,"router-outlet"))},dependencies:[qs],encapsulation:2})),t})();class A3 extends rm.w{constructor(n,e){super()}schedule(n,e=0){return this}}let PI=(()=>{class t{constructor(e,r=t.now){this.SchedulerAction=e,this.now=r}schedule(e,r=0,o){return new this.SchedulerAction(this,e).schedule(o,r)}}return t.now=()=>Date.now(),t})();class jl extends PI{constructor(n,e=PI.now){super(n,()=>jl.delegate&&jl.delegate!==this?jl.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,r){return jl.delegate&&jl.delegate!==this?jl.delegate.schedule(n,e,r):super.schedule(n,e,r)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let r;this.active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,r){for(;n=e.shift();)n.unsubscribe();throw r}}}const k3=new jl(class O3 extends A3{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(o,this.id,e),this}requestAsyncId(n,e,r=0){return setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,e,r=0){if(null!==r&&this.delay===r&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,r=!1;try{this.work(n)}catch(c){r=!0,o=!!c&&c||new Error(c)}if(r)return this.unsubscribe(),o}_unsubscribe(){const n=this.id,e=this.scheduler,r=e.actions,o=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==o&&r.splice(o,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}});class F3{constructor(n,e){this.dueTime=n,this.scheduler=e}call(n,e){return e.subscribe(new N3(n,this.dueTime,this.scheduler))}}class N3 extends ii.L{constructor(n,e,r){super(n),this.dueTime=e,this.scheduler=r,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(n){this.clearDebounce(),this.lastValue=n,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(B3,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:n}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(n)}}clearDebounce(){const n=this.debouncedSubscription;null!==n&&(this.remove(n),n.unsubscribe(),this.debouncedSubscription=null)}}function B3(t){t.debouncedNext()}function rp(t){var n=this.__data__=new jC(t);this.size=n.size}rp.prototype.clear=function V3(){this.__data__=new jC,this.size=0},rp.prototype.delete=function H3(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},rp.prototype.get=function z3(t){return this.__data__.get(t)},rp.prototype.has=function G3(t){return this.__data__.has(t)},rp.prototype.set=function q3(t,n){var e=this.__data__;if(e instanceof jC){var r=e.__data__;if(!j_||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new UC(r)}return e.set(t,n),this.size=e.size,this};const KC=rp;function JC(t){var n=-1,e=null==t?0:t.length;for(this.__data__=new UC;++ny))return!1;var M=c.get(t),A=c.get(n);if(M&&A)return M==n&&A==t;var k=-1,j=!0,V=2&e?new tB:void 0;for(c.set(t,n),c.set(n,t);++k{class t{constructor(){_(this,"matchItemWithSearchString",(e,r)=>String(e).toLowerCase().indexOf(r.toLowerCase())>-1)}search(e,r={}){const o=r.hasOwnProperty("query")?r.query:"",c=r.hasOwnProperty("minLength")?r.minLength:0,h=r.hasOwnProperty("key")?r.key:"";return!o&&r.showAllByDefault||o.lengthh&&!y.hasOwnProperty(h)?console.error(`"${h}" does not exist in item ${JSON.stringify(y,null,2)}`):this.matchItemWithSearchString(h?y[h]:y,o))}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})();function lj(t,n){if(1&t&&i.\u0275\u0275element(0,"span",6),2&t){const e=i.\u0275\u0275nextContext().$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275property("innerHTML",r.formatLabel(e),i.\u0275\u0275sanitizeHtml)}}function uj(t,n){}const cj=function(t){return{item:t}};function dj(t,n){if(1&t&&i.\u0275\u0275template(0,uj,0,0,"ng-template",7),2&t){const e=i.\u0275\u0275nextContext().$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275property("ngTemplateOutletContext",i.\u0275\u0275pureFunction1(2,cj,e))("ngTemplateOutlet",r.template)}}function hj(t,n){}const fj=function(t){return{$implicit:t}};function pj(t,n){if(1&t&&i.\u0275\u0275template(0,hj,0,0,"ng-template",7),2&t){const e=i.\u0275\u0275nextContext().$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275property("ngTemplateOutletContext",i.\u0275\u0275pureFunction1(2,fj,e))("ngTemplateOutlet",r.itemTemplate)}}function mj(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"li",2),i.\u0275\u0275listener("click",function(){const c=i.\u0275\u0275restoreView(e).$implicit,h=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(h.selectItem(c))}),i.\u0275\u0275elementStart(1,"a",3),i.\u0275\u0275template(2,lj,1,1,"span",4),i.\u0275\u0275template(3,dj,1,4,null,5),i.\u0275\u0275template(4,pj,1,4,null,5),i.\u0275\u0275elementEnd()()}if(2&t){const e=n.index,r=i.\u0275\u0275nextContext();i.\u0275\u0275attribute("aria-selected",e===r.index),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",e===r.index?"is-active":""),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.template&&!r.itemTemplate),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.template),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.itemTemplate)}}let gj=(()=>{class t{constructor(){this.index=0,this.selected=new i.EventEmitter}selectItem(e){this.selected.emit(e)}formatLabel(e){const r=this.label?e[this.label]:e;if(!this.search)return r;const o=new RegExp(this.search,"ig");return r.replace(o,""+this.search+"")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.\u0275\u0275defineComponent({type:t,selectors:[["aui-selectable-list"]],contentQueries:function(e,r,o){if(1&e&&i.\u0275\u0275contentQuery(o,i.TemplateRef,7),2&e){let c;i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.template=c.first)}},inputs:{items:"items",index:"index",search:"search",label:"label",itemTemplate:"itemTemplate"},outputs:{selected:"selected"},decls:2,vars:1,consts:[[1,"aui-selectable-list","a-list","a-list--lined","a-list--flushed"],["class","a-list__item",3,"click",4,"ngFor","ngForOf"],[1,"a-list__item",3,"click"],[1,"a-list__content",3,"ngClass"],["class","a-list__text",3,"innerHTML",4,"ngIf"],[4,"ngIf"],[1,"a-list__text",3,"innerHTML"],[3,"ngTemplateOutletContext","ngTemplateOutlet"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"ul",0),i.\u0275\u0275template(1,mj,5,5,"li",1),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",r.items))},dependencies:[ze,re,Re,Qt],encapsulation:2}),t})(),_j=(()=>{class t{constructor(){this.keyArrowUp=new i.EventEmitter,this.keyArrowDown=new i.EventEmitter,this.keyEnter=new i.EventEmitter,this.keyEscape=new i.EventEmitter}onKeyDown(e){switch(e.key){case"ArrowUp":e.preventDefault(),this.keyArrowUp.emit(e);break;case"ArrowDown":e.preventDefault(),this.keyArrowDown.emit(e);break;case"Enter":this.keyEnter.emit(e);break;case"Escape":this.keyEscape.emit(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.\u0275\u0275defineDirective({type:t,selectors:[["","auiSelectableActions",""]],hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("keydown",function(c){return r.onKeyDown(c)})},outputs:{keyArrowUp:"keyArrowUp",keyArrowDown:"keyArrowDown",keyEnter:"keyEnter",keyEscape:"keyEscape"},exportAs:["auiSelectableActions"]}),t})(),vj=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({imports:[Ke]}),t})();function yj(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span",7),i.\u0275\u0275element(1,"span",8),i.\u0275\u0275elementStart(2,"span",9),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(e.loadingText)}}function bj(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span",10),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.searchIncentiveText)}}function Cj(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span",10),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.noResultsText)}}function wj(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"aui-selectable-list",11),i.\u0275\u0275listener("selected",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(c.onSelect(o))}),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("index",e.index)("itemTemplate",e.template)("items",e.results)("label",e.label)("search",e.query)}}function Ej(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",3),i.\u0275\u0275template(1,yj,4,1,"span",4),i.\u0275\u0275template(2,bj,2,1,"span",5),i.\u0275\u0275template(3,Cj,2,1,"span",5),i.\u0275\u0275template(4,wj,1,5,"aui-selectable-list",6),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.focused&&e.loadingText&&e.searching),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.focused&&e.searchIncentiveText&&!e.searching&&!e.query&&!e.results.length),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.focused&&e.noResultsText&&!e.searching&&e.query&&!e.results.length),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.results.length>0&&!(e.focused&&e.loadingText&&e.searching))}}let Dj=(()=>{class t{constructor(e,r){_(this,"ref",void 0),_(this,"searchService",void 0),_(this,"id",void 0),_(this,"placeholder",void 0),_(this,"description",void 0),_(this,"inputLabel",void 0),_(this,"results",[]),_(this,"data",[]),_(this,"remote",!1),_(this,"minCharacters",0),_(this,"clearInvalid",!1),_(this,"searchIncentiveText",void 0),_(this,"loadingText",void 0),_(this,"noResultsText",void 0),_(this,"showAllByDefault",!1),_(this,"autoComplete","off"),_(this,"label",void 0),_(this,"value",void 0),_(this,"search",new i.EventEmitter),_(this,"select",new i.EventEmitter),_(this,"flyout",void 0),_(this,"flyoutZone",void 0),_(this,"template",void 0),_(this,"query",""),_(this,"index",-1),_(this,"selectedItem",null),_(this,"searching",!1),_(this,"focused",!1),_(this,"isDisabled",!1),_(this,"remoteValue",!1),_(this,"updateModel",o=>{}),this.ref=e,this.searchService=r}writeValue(e=""){if(this.value){const r=this.data.find(o=>o[this.value]===e);if(r)return this.query=r[this.label];this.remote&&e&&(this.remoteValue=!0)}this.query=e}registerOnChange(e){this.updateModel=e}registerOnTouched(){}setDisabledState(e){this.isDisabled=e}ngOnInit(){Array.isArray(this.data)&&this.data.length>0&&!this.query&&this.showAllByDefault&&(this.results=[...this.data])}ngOnChanges(e){if(!e)return;const r=Bi(e,"data.currentValue",[]);aj(r,Bi(e,"data.previousValue",[]))||(this.remote?this.remoteSearch():this.localSearch()),e.results&&e.results.currentValue&&(this.searching=!1)}propagateChange(e){if(this.query=null!==e?this.label?e[this.label]:e:"",this.select.emit(e),!e)return;const r=this.value?this.value:this.label?this.label:null;this.updateModel(r?e[r]||"":e),this.selectedItem=e}doSearch(){this.index=-1,this.searching=!0,this.remote?this.search.emit(this.query):this.localSearch(),this.openFlyout()}onSelect(e){this.propagateChange(e),this.closeFlyout()}onFlyoutClosed(){return this.index>=0&&1===this.results.length?this.onSelect(this.results[0]):!this.query&&this.index<0?this.onSelect(null):void(this.clearInvalid&&this.query&&!this.results.length&&this.index<0&&(this.query=this.selectedItem?this.label?this.selectedItem[this.label]:this.selectedItem:""))}onKeyArrowDown(){this.index=0&&this.scrollList(-1)}onKeyEnter(e){e.preventDefault(),this.propagateChange(this.index>=0?this.results[this.index]:this.query),this.closeFlyout()}onKeyEscape(){this.closeFlyout()}onFocus(){this.focused=!0,this.openFlyout()}openFlyout(){this.flyout&&this.flyout.open()}closeFlyout(){this.flyout&&this.flyout.close(),this.focused=!1}localSearch(){this.results=this.searchService.search(this.data,{minLength:this.minCharacters,key:this.label,query:this.query,showAllByDefault:this.showAllByDefault}),1===this.results.length&&this.query===this.results[0][this.label]&&(this.index=0),this.searching=!1}remoteSearch(){if(!this.remoteValue||!this.data)return;const e=this.data.find(r=>this.value?r[this.value]===this.query:r===this.query);this.query=e?this.label?e[this.label]:e:"",this.remoteValue=!1}scrollList(e){if(this.index+=e,!this.flyoutZone)return;const r=this.flyoutZone.element.getElementsByTagName("li"),o=r[1]?r[1].offsetHeight:r[0].offsetHeight;this.flyoutZone.element.scrollTop=this.index*o-this.flyoutZone.element.offsetHeight/o/2*o}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(nP))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-auto-complete"]],contentQueries:function(e,r,o){if(1&e&&i.\u0275\u0275contentQuery(o,i.TemplateRef,7),2&e){let c;i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.template=c.first)}},viewQuery:function(e,r){if(1&e&&(i.\u0275\u0275viewQuery(fs,7),i.\u0275\u0275viewQuery(Vl,7)),2&e){let o;i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.flyout=o.first),i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.flyoutZone=o.first)}},inputs:{id:"id",placeholder:"placeholder",description:"description",inputLabel:"inputLabel",results:"results",data:"data",remote:"remote",minCharacters:"minCharacters",clearInvalid:"clearInvalid",searchIncentiveText:"searchIncentiveText",loadingText:"loadingText",noResultsText:"noResultsText",showAllByDefault:"showAllByDefault",autoComplete:"autoComplete",label:"label",value:"value"},outputs:{search:"search",select:"select"},features:[i.\u0275\u0275ProvidersFeature([{provide:xn,useExisting:(0,i.forwardRef)(()=>t),multi:!0}]),i.\u0275\u0275NgOnChangesFeature],decls:3,vars:7,consts:[["aria-haspopup","listbox","auiFlyout","",1,"m-flyout","m-flyout--scrollable","m-flyout--full","o-auto-complete",3,"toggleClick","closed"],["aria-autocomplete","list","auiFlyoutAction","","auiSelectableActions","","type","text",1,"a-input",3,"ngModel","disabled","id","placeholder","autocomplete","focus","keyArrowDown","keyArrowUp","keyEnter","keyEscape","ngModelChange"],["auiFlyoutZone","",4,"ngIf"],["auiFlyoutZone",""],["class","a-spinner a-spinner--s u-margin-xs","role","alert",4,"ngIf"],["class","o-auto-complete__info u-text-light u-margin-xs",4,"ngIf"],[3,"index","itemTemplate","items","label","search","selected",4,"ngIf"],["role","alert",1,"a-spinner","a-spinner--s","u-margin-xs"],[1,"a-spinner__circle"],[1,"a-spinner__text"],[1,"o-auto-complete__info","u-text-light","u-margin-xs"],[3,"index","itemTemplate","items","label","search","selected"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275listener("closed",function(){return r.onFlyoutClosed()}),i.\u0275\u0275elementStart(1,"input",1),i.\u0275\u0275listener("focus",function(){return r.onFocus()})("keyArrowDown",function(){return r.onKeyArrowDown()})("keyArrowUp",function(){return r.onKeyArrowUp()})("keyEnter",function(c){return r.onKeyEnter(c)})("keyEscape",function(){return r.onKeyEscape()})("ngModelChange",function(c){return r.query=c})("ngModelChange",function(){return r.doSearch()}),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(2,Ej,5,4,"div",2),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275property("toggleClick",!1),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngModel",r.query)("disabled",!!r.isDisabled||null)("id",r.id)("placeholder",r.placeholder)("autocomplete",r.autoComplete),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.isDisabled))},dependencies:[Re,Di,In,Xi,np,Vl,fs,gj,_j],styles:[".o-auto-complete[_ngcontent-%COMP%], .o-auto-complete__info[_ngcontent-%COMP%]{display:block}"]})),t})();function Sj(t,n){if(1&t&&i.\u0275\u0275element(0,"div",19),2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275property("innerHTML",r.formatLabel(e),i.\u0275\u0275sanitizeHtml)}}function Tj(t,n){if(1&t&&i.\u0275\u0275element(0,"div",19),2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275property("innerHTML",r.formatLabel(e),i.\u0275\u0275sanitizeHtml)}}let Mj=(()=>{class t{constructor(){_(this,"autocompleteImportExample","import { AutoCompleteModule } from '@acpaas-ui/ngx-forms';\n\n@NgModule({\n\timports: [\n\t\tAutoCompleteModule,\n\t]\n});\n\nexport class AppModule {};"),_(this,"autocompleteExampleJS1","public heroList = [\n\t{name: 'Batman'},\n\t{name: 'Wonder Woman'},\n\t{name: 'Wolverine'},\n\t{name: 'Iron Man'},\n\t{name: 'Deadpool'},\n];\n\npublic setSelectedUser(hero): void {\n\t// Do something\n}"),_(this,"autocompleteExampleHTML1",'\n\t\t\n\t\t\n'),_(this,"autocompleteExampleJS2","public results = [];\npublic heroList = [\n\t{name: 'Batman'},\n\t{name: 'Wonder Woman'},\n\t{name: 'Wolverine'},\n\t{name: 'Iron Man'},\n\t{name: 'Deadpool'},\n];\npublic searchValue = '';\npublic selectedItem = '';\n\npublic searchItems(search: string): void {\n\tthis.searchValue = search;\n\t// Do search\n\tthis.debouncer.next(search);\n}\n\npublic setSelectedItem(hero: {name}): void {\n\tthis.selectedItem = hero;\n}\n\npublic formatLabel(input: any) {\n\tconst inputString = input.name;\n\n\tif (!this.searchValue) {\n\t\treturn inputString;\n\t}\n\n\t// Highlight searchValue in result\n\tconst regEx = new RegExp(this.searchValue, 'ig');\n\tconst inputStringHighlighted = (inputString.replace(regEx, '' + this.searchValue + ''));\n return `${inputStringHighlighted}`;\n}"),_(this,"autocompleteExampleHTML2",'\n\t\t\n\t\t\t\n\t\t\t\t
    \n\t\t\t
    \n\t\t\n'),_(this,"results",[]),_(this,"heroList",[{name:"Batman"},{name:"Wonder Woman"},{name:"Wolverine"},{name:"Iron Man"},{name:"Deadpool"}]),_(this,"disabledModel","Batman"),_(this,"isDisabled",!0),_(this,"searchValue",""),_(this,"selectedItem1","-"),_(this,"selectedItem2","-"),_(this,"debouncer",new vt.xQ),_(this,"componentDestroyed$",new vt.xQ)}ngOnInit(){this.debouncer.pipe(Bn(this.componentDestroyed$),function R3(t,n=k3){return e=>e.lift(new F3(t,n))}(1e3)).subscribe(e=>{this.results=e?this.heroList.filter(r=>r.name.localeCompare(e,"en",{sensitivity:"base"})):[]})}ngOnDestroy(){this.componentDestroyed$.next(!0),this.componentDestroyed$.complete()}searchItems(e){this.searchValue=e,this.debouncer.next(e)}setSelectedItem1(e){this.selectedItem1=e&&e.name?e.name:"-"}setSelectedItem2(e){this.selectedItem2=e&&e.name?e.name:"-"}formatLabel(e){const r=e.name;if(!this.searchValue)return r;const o=new RegExp(this.searchValue,"ig");return`${r.replace(o,""+this.searchValue+"")}`}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:51,vars:13,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom-l"],[3,"codeSnippet"],[1,"h5","u-margin-bottom"],[1,"u-margin-bottom"],[1,"a-input"],["for","hero-names",1,"a-input__label"],[1,"a-input__wrapper"],["clearInvalid","true","data-id","hero-names","label","name","minCharacters","3","placeholder","Choose your hero\u2026","showAllByDefault","true","value","",3,"data","select"],[1,"u-margin-top"],["for","hero",1,"a-input__label"],["data-id","hero","key","id","label","name","loadingText","Loading\u2026","noResultsText","No results found","placeholder","Choose your hero\u2026","remote","true","searchIncentiveText","Type one or more keywords to start searching",3,"results","search","select"],[1,"u-margin-bottom-3xl"],[1,"a-input","u-margin-bottom"],["for","hero-disabled",1,"a-input__label"],["data-id","hero-disabled","key","id","label","name","loadingText","Loading\u2026","noResultsText","No results found","placeholder","Choose your hero...","remote","true","searchIncentiveText","Type one or more keywords to start searching",3,"ngModel","disabled","results","search","select","ngModelChange"],[1,"a-input__checkbox"],["id","isDisabled","type","checkbox",3,"ngModel","ngModelChange"],["for","isDisabled"],[1,"has-icon-left",3,"innerHTML"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Autocomplete"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"h4",3),i.\u0275\u0275text(5,"Local search"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",4),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",4),i.\u0275\u0275element(9,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",1)(11,"div",5)(12,"label",6),i.\u0275\u0275text(13,"Hero"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(14,"div",7)(15,"aui-auto-complete",8),i.\u0275\u0275listener("select",function(c){return r.setSelectedItem1(c)}),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(16,"p",9)(17,"strong"),i.\u0275\u0275text(18,"Selected hero"),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(19),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(20,"h4",3),i.\u0275\u0275text(21,"Remote search with template"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(22,"div",4),i.\u0275\u0275element(23,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(24,"div",4),i.\u0275\u0275element(25,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(26,"div",4)(27,"div",5)(28,"label",10),i.\u0275\u0275text(29,"Hero"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(30,"div",7)(31,"aui-auto-complete",11),i.\u0275\u0275listener("search",function(c){return r.searchItems(c)})("select",function(c){return r.setSelectedItem2(c)}),i.\u0275\u0275template(32,Sj,1,1,"ng-template"),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(33,"p",9)(34,"strong"),i.\u0275\u0275text(35,"Selected hero"),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(36),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(37,"h4",3),i.\u0275\u0275text(38,"Disabled state"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(39,"div",12)(40,"div",13)(41,"label",14),i.\u0275\u0275text(42,"Hero"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(43,"div",7)(44,"aui-auto-complete",15),i.\u0275\u0275listener("search",function(c){return r.searchItems(c)})("select",function(c){return r.setSelectedItem2(c)})("ngModelChange",function(c){return r.disabledModel=c}),i.\u0275\u0275template(45,Tj,1,1,"ng-template"),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(46,"div",5)(47,"div",16)(48,"input",17),i.\u0275\u0275listener("ngModelChange",function(c){return r.isDisabled=c}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(49,"label",18),i.\u0275\u0275text(50,"Toggle disabled state"),i.\u0275\u0275elementEnd()()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.autocompleteImportExample),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.autocompleteExampleJS1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.autocompleteExampleHTML1),i.\u0275\u0275advance(6),i.\u0275\u0275property("data",r.heroList),i.\u0275\u0275advance(4),i.\u0275\u0275textInterpolate1(": ",r.selectedItem1,""),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.autocompleteExampleJS2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.autocompleteExampleHTML2),i.\u0275\u0275advance(6),i.\u0275\u0275property("results",r.results),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate1(": ",r.selectedItem2,""),i.\u0275\u0275advance(8),i.\u0275\u0275property("ngModel",r.disabledModel)("disabled",r.isDisabled)("results",r.results),i.\u0275\u0275advance(4),i.\u0275\u0275property("ngModel",r.isDisabled))},dependencies:[Tt,Dj,Er,In,Xi],encapsulation:2})),t})();const sp="CALENDAR_VIEW_MONTH",nw="CALENDAR_VIEW_YEAR",iw="CALENDAR_VIEW_DECENNIA";let W_=(()=>{class t{constructor(){this.months={}}getMonth(e,r){if(r&&(this.currentYear!==r&&(this.months={}),this.currentYear=r),this.months.hasOwnProperty(e))return[...this.months[e]];const o=new Date;o.setMonth(e,1),r&&o.setFullYear(r);const c=ds.generateMonth(o,{startOfWeek:1,padding:!0,generatePadding:!0});return this.months[e]=c,[...c]}getMonthForDate(e){return this.getMonth(e.getMonth(),e.getFullYear())}getRangeForDate(e,r){return ds.generateRange(e,r,{startOfWeek:1})}getRangesForDate(e,r){const o={startOfWeek:1},c=It.updateMonth(e,e.getMonth()-1),h=It.updateMonth(e,e.getMonth()+1);return{before:ds.generateRange(c,r,o),current:ds.generateRange(e,r,o),after:ds.generateRange(h,r,o)}}getClosestDateForRange(e=new Date,r){const o=this.getRangeForDate(e,r);return It.dateOutOfRange(e,o)?e:It.closestDateForRange(e,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const ap=["Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag","Zondag"],lp=["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],Ac=new i.InjectionToken("weekdayLabels"),Oc=new i.InjectionToken("monthLabels"),Ij=function(t,n){return{"is-current":t,"is-selected":n}};function Pj(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"td")(1,"button",3),i.\u0275\u0275listener("click",function(o){const h=i.\u0275\u0275restoreView(e).$implicit,y=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(y.pickDate(o,h))}),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()}if(2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction2(2,Ij,e===r.current,e===r.selectedYear)),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",e," ")}}function Lj(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"tr"),i.\u0275\u0275template(1,Pj,3,5,"td",2),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e)}}let Aj=(()=>{class t{constructor(){this.selectDate=new i.EventEmitter,this.years=[],this.selectedYear=-1,this.current=-1}ngOnInit(){this.current=(new Date).getFullYear()}ngOnChanges(e){const r=Bi(e,"activeDate.currentValue"),o=Bi(e,"activeDate.previousValue"),c=r instanceof Date?r.getFullYear():-1,h=o instanceof Date?o.getFullYear():-1;c>=0&&(h>c||h+17{class t{constructor(e=ap,r){this.moduleWeekdayLabels=e,this.calendarService=r,this.weekdayLabels=ap,this.selectDate=new i.EventEmitter,this.dates=[],this.selectedDay=-1}ngOnInit(){this.weekdayLabels=this.weekdayLabels||this.moduleWeekdayLabels}ngOnChanges(e){const r=this.hasChanged(e,"selectedDate"),o=!!e.interval&&e.interval.currentValue!==e.interval.previousValue,c=this.hasChanged(e,"activeDate"),h=c&&!It.datesAreEqual([e.activeDate.currentValue,e.activeDate.previousValue],"M"),y=this.selectedDate&&this.activeDate.getMonth()===this.selectedDate.getMonth();this.current=this.getCurrentDate(),this.selectedDay=y?this.selectedDate.getDate():-1;let E=[];if(!(r||o||c&&h))return;E=this.calendarService.getMonthForDate(this.activeDate);const M=this.calendarService.getRangesForDate(this.activeDate,this.range);this.dates=E.map(A=>A.map(k=>{const j=new Date;this.activeDate.setHours(j.getHours(),j.getMinutes(),j.getSeconds());const V=new Date(this.activeDate);k.padding&&V.setMonth(k.date>20?this.activeDate.getMonth()-1:this.activeDate.getMonth()+1),V.setDate(k.date);const K=this.dayIsAvailableForRange(k,M)&&(!this.interval||!this.interval.isInRange(V));return{...k,available:K}}))}pickDate(e,r){e.stopPropagation();let o=new Date(this.activeDate);if(r.padding){const c=r.date>20?-1:1;o=It.updateMonth(o,o.getMonth()+c)}this.selectDate.emit(It.updateDate(o,r.date))}hasChanged(e,r){const o=Bi(e,`${r}.currentValue`),c=Bi(e,`${r}.previousValue`),h=o instanceof Date?o.valueOf():0,y=c instanceof Date?c.valueOf():0;return!!h&&h!==y}getCurrentDate(){const e=new Date;return It.datesAreEqual([this.activeDate,e],["M","Y"])?e.getDate():-1}dayIsAvailableForRange(e,r){if(!r)return!0;let o=r.current;return e.padding&&(o=e.date>20?r.before:r.after),o.indexOf(e.date)<0}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(Ac),i.\u0275\u0275directiveInject(W_))},t.\u0275cmp=i.\u0275\u0275defineComponent({type:t,selectors:[["aui-calendar-month"]],inputs:{selectedDate:"selectedDate",activeDate:"activeDate",range:"range",interval:"interval",weekdayLabels:"weekdayLabels"},outputs:{selectDate:"selectDate"},features:[i.\u0275\u0275NgOnChangesFeature],decls:7,vars:2,consts:[[1,"m-datepicker__grid"],[1,"m-datepicker__grid-head"],["scope","col",4,"ngFor","ngForOf"],[1,"m-datepicker__grid-body"],[4,"ngFor","ngForOf"],["scope","col"],[1,"u-text-capitalize",3,"title"],["type","button",3,"disabled","ngClass","click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"table")(2,"thead")(3,"tr",1),i.\u0275\u0275template(4,Oj,4,6,"th",2),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(5,"tbody",3),i.\u0275\u0275template(6,Fj,2,1,"tr",4),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(4),i.\u0275\u0275property("ngForOf",r.weekdayLabels),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngForOf",r.dates))},dependencies:[ze,re,ot],encapsulation:2,changeDetection:0}),t})();const Bj=function(t,n){return{"is-current":t,"is-selected":n}};function Vj(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"td")(1,"button",3),i.\u0275\u0275listener("click",function(o){const h=i.\u0275\u0275restoreView(e).$implicit,y=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(y.pickDate(o,h))}),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"titlecase"),i.\u0275\u0275elementEnd()()}if(2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction2(4,Bj,e===r.current,e===r.monthLabels[r.selectedMonth])),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(3,2,e)," ")}}function jj(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"tr"),i.\u0275\u0275template(1,Vj,4,7,"td",2),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e)}}let Hj=(()=>{class t{constructor(e=lp){this.moduleMonthLabels=e,this.monthLabels=lp,this.selectDate=new i.EventEmitter,this.selectedMonth=-1,this.current="",this.months=[]}ngOnChanges(e){const r=Bi(e,"activeDate.currentValue"),o=r instanceof Date?r.getFullYear():-1,c=this.selectedDate&&this.selectedDate.getFullYear()===this.activeDate.getFullYear(),h=new Date;this.current=o===h.getFullYear()?this.monthLabels[h.getMonth()]:"",this.selectedMonth=c?this.selectedDate.getMonth():-1,e.monthLabels&&(this.monthLabels=this.monthLabels||this.moduleMonthLabels,this.months=zC(this.monthLabels,2))}pickDate(e,r){e.stopPropagation();let o=new Date(this.activeDate);o=It.updateMonth(o,this.monthLabels.indexOf(r)),this.selectDate.emit(o)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(Oc))},t.\u0275cmp=i.\u0275\u0275defineComponent({type:t,selectors:[["aui-calendar-year"]],inputs:{selectedDate:"selectedDate",activeDate:"activeDate",monthLabels:"monthLabels"},outputs:{selectDate:"selectDate"},features:[i.\u0275\u0275NgOnChangesFeature],decls:4,vars:1,consts:[[1,"m-datepicker__list"],[1,"m-datepicker__list-body"],[4,"ngFor","ngForOf"],["type","button",3,"ngClass","click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"table")(2,"tbody",1),i.\u0275\u0275template(3,jj,2,1,"tr",2),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("ngForOf",r.months))},dependencies:[ze,re,fn],encapsulation:2,changeDetection:0}),t})();function Uj(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"aui-calendar-month",10),i.\u0275\u0275listener("selectDate",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.pickDate(o))}),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("activeDate",e.activeDate)("range",e.range)("interval",e.interval)("selectedDate",e.selectedDate)("weekdayLabels",e.weekdayLabels)}}function zj(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"aui-calendar-year",11),i.\u0275\u0275listener("selectDate",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.pickDate(o))}),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("activeDate",e.activeDate)("monthLabels",e.monthLabels)("selectedDate",e.selectedDate)}}function $j(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"aui-calendar-decennia",12),i.\u0275\u0275listener("selectDate",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.pickDate(o))}),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("activeDate",e.activeDate)("selectedDate",e.selectedDate)}}let Gj=(()=>{class t{constructor(e=lp,r=ap,o){this.moduleMonthLabels=e,this.moduleWeekdayLabels=r,this.calendarService=o,this.role="application",this.ariahidden="false",this.ariaPreviousLabels=["Ga naar vorige maand","Ga naar vorig jaar","Ga naar vorige 18 jaren"],this.ariaNextLabels=["Ga naar volgende maand","Ga naar volgend jaar","Ga naar volgende 18 jaren"],this.selectDate=new i.EventEmitter,this.CALENDAR_VIEW_MONTH=sp,this.CALENDAR_VIEW_YEAR=nw,this.CALENDAR_VIEW_DECENNIA=iw,this.activeView=sp,this.headerLabel="",this.ariaPreviousLabel=this.ariaPreviousLabels[0],this.ariaNextLabel=this.ariaNextLabels[0]}ngOnInit(){this.initControl()}ngOnChanges(e){const r=e.selectedDate&&e.selectedDate.currentValue?e.selectedDate:null;if(typeof this.monthLabels<"u"&&r&&!It.datesAreEqual(r.currentValue,r.previousValue))this.activeDate=this.selectedDate,this.updateHeaderLabel();else{let o=new Date;this.interval&&this.interval.isInRange(o)&&(o=this.interval.min),this.activeDate=It.parseDate(o),this.initControl()}}updateActiveDate(e=0){const r=this.activeDate?new Date(this.activeDate):new Date;switch(this.activeView){case sp:r.setMonth(r.getMonth()+e);break;case nw:r.setFullYear(r.getFullYear()+e);break;case iw:r.setFullYear(r.getFullYear()+18*e)}this.activeDate=r,this.updateHeaderLabel()}switchView(e=1){const r=[sp,nw,iw],o=r.indexOf(this.activeView);let c=o+e>=r.length?0:o+e;c=c<0?r.length-1:c,this.activeView=r[c],this.selectedDate&&0===c&&1===e&&(this.activeDate=this.selectedDate),this.updateHeaderLabel()}updateHeaderLabel(){switch(this.activeView){case sp:this.headerLabel=this.monthLabels[this.activeDate.getMonth()]+" "+this.activeDate.getFullYear(),this.ariaPreviousLabel=this.ariaPreviousLabels[0],this.ariaNextLabel=this.ariaNextLabels[0];break;case nw:this.headerLabel=String(this.activeDate.getFullYear()),this.ariaPreviousLabel=this.ariaPreviousLabels[1],this.ariaNextLabel=this.ariaNextLabels[1];break;case iw:const e=this.activeDate.getFullYear();this.headerLabel=`${e} - ${e+17}`,this.ariaPreviousLabel=this.ariaPreviousLabels[2],this.ariaNextLabel=this.ariaNextLabels[2]}}pickDate(e){const r=this.activeView===sp;this.selectDate.emit({date:e,complete:r}),r||(this.activeDate=e,this.switchView(-1))}initControl(){this.weekdayLabels=this.weekdayLabels||this.moduleWeekdayLabels,this.monthLabels=this.monthLabels||this.moduleMonthLabels,this.activeDate=this.calendarService.getClosestDateForRange(this.activeDate,this.range),this.selectedDate&&(this.activeDate=this.selectedDate,this.updateActiveDate()),this.updateHeaderLabel()}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(Oc),i.\u0275\u0275directiveInject(Ac),i.\u0275\u0275directiveInject(W_))},t.\u0275cmp=i.\u0275\u0275defineComponent({type:t,selectors:[["aui-calendar"]],hostVars:2,hostBindings:function(e,r){2&e&&i.\u0275\u0275attribute("role",r.role)("aria-hidden",r.ariahidden)},inputs:{ariaPreviousLabels:"ariaPreviousLabels",ariaNextLabels:"ariaNextLabels",selectedDate:"selectedDate",range:"range",interval:"interval",weekdayLabels:"weekdayLabels",monthLabels:"monthLabels"},outputs:{selectDate:"selectDate"},features:[i.\u0275\u0275NgOnChangesFeature],decls:13,vars:8,consts:[[1,"m-datepicker__nav"],["type","button",1,"m-datepicker__nav-title",3,"click"],["name","ai-arrow-down-1"],[1,"m-datepicker__nav-pagination"],["type","button",1,"a-button","a-button--text","a-button--primary","has-icon",3,"click"],["name","ai-arrow-left-1"],["name","ai-arrow-right-1"],[3,"activeDate","range","interval","selectedDate","weekdayLabels","selectDate",4,"ngIf"],[3,"activeDate","monthLabels","selectedDate","selectDate",4,"ngIf"],[3,"activeDate","selectedDate","selectDate",4,"ngIf"],[3,"activeDate","range","interval","selectedDate","weekdayLabels","selectDate"],[3,"activeDate","monthLabels","selectedDate","selectDate"],[3,"activeDate","selectedDate","selectDate"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"button",1),i.\u0275\u0275listener("click",function(){return r.switchView()}),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"titlecase"),i.\u0275\u0275element(4,"aui-icon",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(5,"div",3)(6,"button",4),i.\u0275\u0275listener("click",function(){return r.updateActiveDate(-1)}),i.\u0275\u0275element(7,"aui-icon",5),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"button",4),i.\u0275\u0275listener("click",function(){return r.updateActiveDate(1)}),i.\u0275\u0275element(9,"aui-icon",6),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275template(10,Uj,1,5,"aui-calendar-month",7),i.\u0275\u0275template(11,zj,1,3,"aui-calendar-year",8),i.\u0275\u0275template(12,$j,1,2,"aui-calendar-decennia",9)),2&e&&(i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(3,6,r.headerLabel)," "),i.\u0275\u0275advance(4),i.\u0275\u0275attribute("aria-label",r.ariaPreviousLabel),i.\u0275\u0275advance(2),i.\u0275\u0275attribute("aria-label",r.ariaNextLabel),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",r.activeView===r.CALENDAR_VIEW_MONTH),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.activeView===r.CALENDAR_VIEW_YEAR),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.activeView===r.CALENDAR_VIEW_DECENNIA))},dependencies:[Re,Gt,Aj,Nj,Hj,fn],encapsulation:2,changeDetection:0}),t})(),Wj=(()=>{class t{static forChild(e,r){return{ngModule:t,providers:[W_,{provide:Ac,useValue:e},{provide:Oc,useValue:r}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({providers:[W_,{provide:Ac,useValue:ap},{provide:Oc,useValue:lp}],imports:[Ke,cn]}),t})();const R1=new i.InjectionToken("errorLabels"),iP={ERRORS_INVALID_DATE:"INVALID_DATE",ERRORS_INVALID_RANGE:"INVALID_RANGE"};function qj(t,n){1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275element(1,"aui-icon",6),i.\u0275\u0275elementContainerEnd())}function Yj(t,n){1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275element(1,"aui-icon",7),i.\u0275\u0275elementContainerEnd()),2&t&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("openOnFocus",!1))}function Qj(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275elementStart(1,"div",8)(2,"aui-calendar",9),i.\u0275\u0275listener("selectDate",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.selectDateFromCalendar(o))}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementContainerEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275property("range",e.range)("selectedDate",e.selectedDate)("interval",e.interval)("weekdayLabels",e.weekdayLabels)("monthLabels",e.monthLabels)}}let Kj=(()=>{class t{constructor(e=lp,r=ap,o=iP,c,h,y){_(this,"moduleMonthLabels",void 0),_(this,"moduleWeekdayLabels",void 0),_(this,"errorLabels",void 0),_(this,"calendarService",void 0),_(this,"formBuilder",void 0),_(this,"ref",void 0),_(this,"flyout",void 0),_(this,"id",void 0),_(this,"name",void 0),_(this,"placeholder","dd/mm/yyyy"),_(this,"label",void 0),_(this,"description",void 0),_(this,"range",void 0),_(this,"min",void 0),_(this,"max",void 0),_(this,"autocomplete",void 0),_(this,"weekdayLabels",void 0),_(this,"monthLabels",void 0),_(this,"blur",new i.EventEmitter),_(this,"formControl",void 0),_(this,"selectedDate",void 0),_(this,"isDisabled",!1),_(this,"interval",void 0),_(this,"componentDestroyed$",new vt.xQ),_(this,"onChange",()=>{}),_(this,"onTouched",()=>{}),this.moduleMonthLabels=e,this.moduleWeekdayLabels=r,this.errorLabels=o,this.calendarService=c,this.formBuilder=h,this.ref=y}ngOnInit(){this.weekdayLabels=this.weekdayLabels||this.moduleWeekdayLabels,this.monthLabels=this.monthLabels||this.moduleMonthLabels,this.createInterval(),this.formControl=this.formBuilder.control({value:"",disabled:this.isDisabled}),this.formControl.valueChanges.pipe(Bn(this.componentDestroyed$)).subscribe(e=>{if(e){const r=e.split("/").reverse().join("-"),o=It.parseDate(r,"yyyy-MM-dd");o?(this.selectedDate=o,this.onChange(o.toISOString())):this.onChange(e)}else this.selectedDate=null,this.onChange("")})}ngOnChanges(e){(e.min||e.max)&&this.createInterval()}ngOnDestroy(){this.componentDestroyed$.next(!0),this.componentDestroyed$.complete()}createInterval(){!this.min&&!this.max||(this.interval=qf.dateInterval(this.min?new Date(this.min):null,this.max?new Date(this.max):null).not().build())}writeValue(e){this.selectedDate="string"==typeof e?this.isISODateFormat(e)?new Date(e):It.parseDate(e,"dd/MM/yyyy"):e;const r=this.selectedDate?this.formatDate(this.selectedDate):"";this.formControl.setValue(r)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.isDisabled=e,this.formControl&&(e&&this.formControl.enabled?this.formControl.disable():!e&&this.formControl.disabled&&this.formControl.enable()),this.ref.markForCheck()}selectDateFromCalendar(e){e.complete&&(this.formControl.setValue(this.formatDate(e.date)),this.flyout.close())}formatDate(e){return It.formatDate(e,"DD/MM/YYYY",{leadingZero:!0,monthLabels:this.monthLabels,weekdayLabels:this.weekdayLabels})}validate(e){if(""===e.value||null===e.value)return null;const r=It.parseDate(e.value);return r?this.range&&this.range.length&&this.calendarService.getRangeForDate(r,this.range).indexOf(r.getDate())>=0?{range:this.errorLabels.ERRORS_INVALID_RANGE}:null:{format:this.errorLabels.ERRORS_INVALID_DATE}}handleBlur(e){this.blur.emit(e),this.onTouched(e)}isISODateFormat(e){return"string"==typeof e&&e.match(/\d{4}-\d{2}-\d{2}T.*/)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(Oc),i.\u0275\u0275directiveInject(Ac),i.\u0275\u0275directiveInject(R1),i.\u0275\u0275directiveInject(W_),i.\u0275\u0275directiveInject(Sl),i.\u0275\u0275directiveInject(i.ChangeDetectorRef))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-datepicker"]],viewQuery:function(e,r){if(1&e&&i.\u0275\u0275viewQuery(fs,7),2&e){let o;i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.flyout=o.first)}},inputs:{id:"id",name:"name",placeholder:"placeholder",label:"label",description:"description",range:"range",min:"min",max:"max",autocomplete:"autocomplete",weekdayLabels:"weekdayLabels",monthLabels:"monthLabels"},outputs:{blur:"blur"},features:[i.\u0275\u0275ProvidersFeature([{provide:xn,useExisting:(0,i.forwardRef)(()=>t),multi:!0},{provide:Jt,useExisting:(0,i.forwardRef)(()=>t),multi:!0}]),i.\u0275\u0275NgOnChangesFeature],decls:10,vars:11,consts:[["aria-haspopup","grid","auiFlyout","",1,"aui-datepicker","a-input","has-icon-right"],["for","id",1,"a-input__label"],["id","id",1,"a-input__description"],[1,"a-input__wrapper"],["label","Pick date","description","Description","type","text",3,"autocomplete","formControl","id","name","placeholder","blur"],[4,"ngIf"],["name","ai-calendar","role","button","tabindex","0"],["auiFlyoutAction","","name","ai-calendar","className","is-clickable","role","button","tabindex","0",3,"openOnFocus"],["auiFlyoutZone","","role","dialog",1,"m-datepicker","m-datepicker--fixed"],[3,"range","selectedDate","interval","weekdayLabels","monthLabels","selectDate"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"label",1),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"small",2),i.\u0275\u0275text(4),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(5,"div",3)(6,"input",4),i.\u0275\u0275listener("blur",function(c){return r.handleBlur(c)}),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(7,qj,2,0,"ng-container",5),i.\u0275\u0275template(8,Yj,2,1,"ng-container",5),i.\u0275\u0275template(9,Qj,3,5,"ng-container",5),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(r.label),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",r.description,""),i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate("id",r.id),i.\u0275\u0275propertyInterpolate("name",r.name),i.\u0275\u0275propertyInterpolate("placeholder",r.placeholder),i.\u0275\u0275property("autocomplete",r.autocomplete)("formControl",r.formControl),i.\u0275\u0275attribute("disabled",!!r.isDisabled||null),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.isDisabled),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.isDisabled),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.isDisabled))},dependencies:[Re,Di,In,Eo,Gj,Gt,np,Vl,fs],styles:["[_nghost-%COMP%], .aui-datepicker[_ngcontent-%COMP%]{display:block}.m-flyout.is-open[_ngcontent-%COMP%] .m-datepicker[_ngcontent-%COMP%]{opacity:1;transform:translateY(calc(var(--BORDER-WIDTH) * -1));transition-delay:0s;visibility:visible}"],changeDetection:0})),t})();const Jj=["datepicker"];function Xj(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"p"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.dateForm.controls.inputDate.errors.format)}}function eH(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"p"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.dateForm.controls.inputDate.errors.range)}}function tH(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",14),i.\u0275\u0275template(1,Xj,2,1,"p",15),i.\u0275\u0275template(2,eH,2,1,"p",15),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.dateForm.controls.inputDate.errors.format),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.dateForm.controls.inputDate.errors.range)}}const nH=function(t){return{"has-error":t}};let iH=(()=>{class t{constructor(e){_(this,"fb",void 0),_(this,"datepicker",void 0),_(this,"dateForm",void 0),_(this,"min",new Date),_(this,"max",function xj(t,n){return bn(2,arguments),p1(t,7*Zn(n))}(new Date,2)),_(this,"datepickerImportExample","import { DatepickerModule } from '@acpaas-ui/ngx-forms';\n\n@NgModule({\n\timports: [\n\t\tDatepickerModule.forChild([\n\t\t\t'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag', 'Zondag',\n\t\t], [\n\t\t\t'Januari', 'Februari', 'Maart', 'April', 'Mei', 'Juni', 'Juli', 'Augustus', 'September', 'Oktober', 'November', 'December',\n\t\t], {\n\t\t\tERRORS_INVALID_DATE: 'Ongeldige datum',\n\t\t\tERRORS_INVALID_RANGE: 'Deze datum kan niet gekozen worden',\n\t\t}),\n\t],\n})\n\nexport class AppModule {};"),_(this,"datepickerExampleTypescript","import { FormBuilder, FormGroup } from '@angular/forms';\n\nimport { DateRange } from '@acpaas-ui/ngx-utils';\nimport { addWeeks } from 'date-fns'; // date-fns is an external library and can be replaced by a library of your choice\n\nconstructor(private fb: FormBuilder) { }\n\n// Since we only pass through a min date, the past will be disabled\npublic min = new Date();\npublic max = addWeeks(new Date(), 2);\npublic dateForm: FormGroup;\n\nthis.dateForm = this.fb.group({\n\tinputDate: [''],\n});"),_(this,"datepickerExampleHTML",'
    \n\t
    \n\t\t\n\t\t\n\t\t\n\t\t
    \n\t\t\t

    {{ dateForm.controls[\'inputDate\'].errors.format }}

    \n\t\t\t

    {{ dateForm.controls[\'inputDate\'].errors.range }}

    \n\t\t
    \n\t
    \n
    '),_(this,"destroyed$",new vt.xQ),this.fb=e}openFlyout(){this.datepicker?.flyout?.open()}ngOnInit(){this.dateForm=this.fb.group({inputDate:[(new Date).toISOString()],isDisabled:!1}),this.dateForm.get("isDisabled").valueChanges.pipe(Bn(this.destroyed$)).subscribe(e=>{e?this.dateForm.get("inputDate").disable():this.dateForm.get("inputDate").enable()})}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(Sl))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],viewQuery:function(e,r){if(1&e&&i.\u0275\u0275viewQuery(Jj,7),2&e){let o;i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.datepicker=o.first)}},decls:22,vars:13,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-datepicker"],[3,"formGroup"],[1,"a-input","has-icon-right","u-margin-bottom",3,"ngClass"],["autocomplete","off","label","Pick date","description","description","data-id","input-datepicker","formControlName","inputDate","name","input-datepicker","placeholder","dd/mm/jjjj",3,"min","max"],["datepicker",""],["class","u-text-danger u-margin-top-xs u-margin-bottom",4,"ngIf"],[1,"a-input","u-margin-bottom"],[1,"a-input__checkbox"],["formControlName","isDisabled","id","isDisabled","type","checkbox"],["for","isDisabled"],[1,"a-pre"],[1,"u-text-danger","u-margin-top-xs","u-margin-bottom"],[4,"ngIf"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Datepicker"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",3)(9,"div",4)(10,"div",5),i.\u0275\u0275element(11,"aui-datepicker",6,7),i.\u0275\u0275template(13,tH,3,2,"div",8),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(14,"div",9)(15,"div",10),i.\u0275\u0275element(16,"input",11),i.\u0275\u0275elementStart(17,"label",12),i.\u0275\u0275text(18,"Toggle disabled state"),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(19,"pre",13),i.\u0275\u0275text(20),i.\u0275\u0275pipe(21,"json"),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.datepickerImportExample),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.datepickerExampleTypescript),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.datepickerExampleHTML),i.\u0275\u0275advance(2),i.\u0275\u0275property("formGroup",r.dateForm),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(11,nH,r.dateForm.controls.inputDate.dirty&&r.dateForm.controls.inputDate.invalid)),i.\u0275\u0275advance(1),i.\u0275\u0275property("min",r.min)("max",r.max),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",r.dateForm.controls.inputDate.errors),i.\u0275\u0275advance(7),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind1(21,9,r.dateForm.controls.inputDate.value)))},dependencies:[Tt,Kj,ze,Re,Er,In,Ku,ss,El,Nt],encapsulation:2})),t})();function rH(t,n){1&t&&i.\u0275\u0275element(0,"div",11)}function oH(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"span",12),i.\u0275\u0275listener("blur",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.toggleFocus(!1,null,o))})("dragexit",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.onMouseUp(o))})("focus",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.toggleFocus(!0,"end",o))})("mousedown",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.onMouseDown("end"))})("touchstart",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.onMouseDown("end"))}),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("left",e.endPercentage+"%"),i.\u0275\u0275attribute("aria-label",e.ariaLabelMax)}}let sH=(()=>{class t{constructor(e){_(this,"elRef",void 0),_(this,"coreBranding",!0),_(this,"min",0),_(this,"max",100),_(this,"minimalDistance",1),_(this,"step",0),_(this,"label",""),_(this,"labelBefore",""),_(this,"labelAfter",""),_(this,"ariaLabelMin","Minimum"),_(this,"ariaLabelMax","Maximum"),_(this,"start",0),_(this,"end",!1),_(this,"steps",[]),_(this,"startPercentage",void 0),_(this,"endPercentage",void 0),_(this,"active",null),_(this,"isDisabled",!1),_(this,"hasFocus",!1),_(this,"click",!1),_(this,"propagateChange",r=>{}),this.elRef=e}get disabledClass(){return this.isDisabled}ngOnInit(){if(this.step>0)for(let e=0;e<=this.max;e+=Number(this.step))this.steps.push(e);this.startPercentage=this.startToPercentage(),this.end&&(this.endPercentage=this.endToPercentage())}writeValue(e){e&&e.start?this.start=e.start:isNaN(e)||""===e?this.setStart(Number(this.min)):this.start=Number(e),this.startPercentage=this.startToPercentage(),e&&e.end&&(this.end=e.end,this.endPercentage=this.endToPercentage())}registerOnTouched(){}registerOnChange(e){this.propagateChange=e}setDisabledState(e){this.isDisabled=e}onMouseDown(e){this.isDisabled||(this.hasFocus=!0,this.active=e)}toggleFocus(e,r,o){this.isDisabled||(o.preventDefault(),this.hasFocus=e,this.active=r)}onKeyDown(e){if(!this.hasFocus)return;const r=e.keyCode,o={end:35,home:36,left:37,up:38,right:39,down:40};if(-1===Object.keys(o).map(y=>o[y]).indexOf(r))return;let c=this.minimalDistance;this.step>0&&(c=Number(this.step));const h=y=>{let E="start"===this.active?this.start:Number(this.end);"up"===y?E+=c:E-=c;let M=(E-this.min)/(this.max-this.min)*100;return M>100&&(M=100),M<0&&(M=0),M};switch(r){case o.right:case o.up:this.updateHandle(h("up")),e.preventDefault();break;case o.left:case o.down:this.updateHandle(h("down")),e.preventDefault();break;case o.end:this.updateHandle(100),e.preventDefault();break;case o.home:this.updateHandle(0),e.preventDefault()}}onMouseUp(e){"start"===this.active&&(this.setStart(this.round(this.start,this.step,0)),this.startPercentage=this.startToPercentage()),"end"===this.active&&(this.setEnd(this.round(this.end,this.step,0)),this.endPercentage=this.endToPercentage()),this.click=!1}mouseDown(e){this.click=!0}onMouseMove(e){if(!this.active||!this.click)return;e.preventDefault();const r=void 0!==e.x?e.x:e.targetTouches[0].pageX,o=this.elRef.nativeElement.getBoundingClientRect(),c=this.calcPercentage(r,o.width,o.left);this.updateHandle(c)}updateHandle(e){"start"===this.active&&(this.startPercentage=e,this.setStart(this.percentageToStart()),this.minimalDistanceNotRespected()&&(this.setStart(Number(this.end)-Number(this.minimalDistance)),this.startPercentage=this.startToPercentage())),"end"===this.active&&this.endPercentage&&(this.endPercentage=e,this.setEnd(this.percentageToEnd()),this.minimalDistanceNotRespected()&&(this.setEnd(Number(this.start)+Number(this.minimalDistance)),this.endPercentage=this.endToPercentage()))}setStart(e){this.start=e,this.propagateChange(this.end?{start:this.start,end:this.end}:this.start)}setEnd(e){this.end=e,this.propagateChange({start:this.start,end:this.end})}round(e,r,o){return r>0?Math.round((e-o)/r)*r+o:e}startToPercentage(){return Math.round((this.start-this.min)/(this.max-this.min)*100)}percentageToStart(){return Math.round(this.startPercentage/100*(this.max-this.min)+Number(this.min))}endToPercentage(){return Math.round((Number(this.end)-this.min)/(this.max-this.min)*100)}percentageToEnd(){return Math.round(this.endPercentage/100*(this.max-this.min)+Number(this.min))}minimalDistanceNotRespected(){return this.minimalDistance>=0&&this.end&&this.start>Number(this.end)-this.minimalDistance}calcPercentage(e,r,o){let h=Math.round((e-o)/r*100);return h>100&&(h=100),h<0&&(h=0),h}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ElementRef))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-range-slider"]],hostVars:4,hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("keydown",function(c){return r.onKeyDown(c)},!1,i.\u0275\u0275resolveDocument)("touchend",function(c){return r.onMouseUp(c)})("mouseup",function(c){return r.onMouseUp(c)})("touchstart",function(c){return r.mouseDown(c)})("mousedown",function(c){return r.mouseDown(c)})("touchmove",function(c){return r.onMouseMove(c)})("mousemove",function(c){return r.onMouseMove(c)}),2&e&&i.\u0275\u0275classProp("m-range-slider",r.coreBranding)("is-disabled",r.disabledClass)},inputs:{min:"min",max:"max",minimalDistance:"minimalDistance",step:"step",label:"label",labelBefore:"labelBefore",labelAfter:"labelAfter",ariaLabelMin:"ariaLabelMin",ariaLabelMax:"ariaLabelMax"},features:[i.\u0275\u0275ProvidersFeature([{provide:xn,useExisting:(0,i.forwardRef)(()=>t),multi:!0}])],decls:15,vars:16,consts:[[1,"a-range-slider"],[1,"a-range-slider__labels"],[1,"a-range-slider__label"],[1,"a-range-slider__inner"],[1,"a-range-slider__tickmarks"],["class","a-range-slider__tickmark",4,"ngFor","ngForOf"],[1,"a-range-slider__bar"],["tabindex","0",1,"a-range-slider__handle",3,"blur","dragexit","focus","mousedown","touchstart"],["class","a-range-slider__handle","name","a-range-slider__handle__end","tabindex","0",3,"left","blur","dragexit","focus","mousedown","touchstart",4,"ngIf"],[1,"a-range-slider__descriptions"],[1,"a-range-slider__description","small"],[1,"a-range-slider__tickmark"],["name","a-range-slider__handle__end","tabindex","0",1,"a-range-slider__handle",3,"blur","dragexit","focus","mousedown","touchstart"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(4,"div",3)(5,"div",4),i.\u0275\u0275template(6,rH,1,0,"div",5),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(7,"div",6),i.\u0275\u0275elementStart(8,"span",7),i.\u0275\u0275listener("blur",function(c){return r.toggleFocus(!1,null,c)})("dragexit",function(c){return r.onMouseUp(c)})("focus",function(c){return r.toggleFocus(!0,"start",c)})("mousedown",function(){return r.onMouseDown("start")})("touchstart",function(){return r.onMouseDown("start")}),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(9,oH,1,3,"span",8),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",9)(11,"div",10),i.\u0275\u0275text(12),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(13,"div",10),i.\u0275\u0275text(14),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(r.label),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngForOf",r.steps),i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("left",!!r.endPercentage&&r.startPercentage+"%")("width",r.endPercentage?r.endPercentage-r.startPercentage+"%":r.startPercentage+"%"),i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("left",r.startPercentage+"%"),i.\u0275\u0275attribute("aria-label",r.ariaLabelMin),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.end),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate3("",r.labelBefore,"",r.min,"",r.labelAfter,""),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate3("",r.labelBefore,"",r.max,"",r.labelAfter,""))},dependencies:[re,Re],styles:["[_nghost-%COMP%]{display:block;position:relative}.is-disabled[_nghost-%COMP%]{cursor:not-allowed}.is-disabled[_nghost-%COMP%] .m-range-slider__handle[_ngcontent-%COMP%]:hover{cursor:not-allowed}"]})),t})(),aH=(()=>{class t{constructor(){_(this,"mySlider",{start:400,end:500}),_(this,"rangesliderImportExample","import { RangeSliderModule } from '@acpaas-ui/ngx-forms';\nimport { FormsModule } from '@angular/forms';\n\t@NgModule({\n\t\timports: [\n\t\t\tRangeSliderModule,\n\t\t\tFormsModule,\n\t\t]\n\t});\nexport class AppModule {};"),_(this,"rangesliderExampleHTML1",''),_(this,"rangesliderExampleHTML2",'\n'),_(this,"rangesliderExampleTypescript3","public mySlider = {start: 400, end: 500};"),_(this,"rangesliderExampleHTML3",'\n'),_(this,"isDisabled",!1),_(this,"disabledSlider",{start:350,end:450}),_(this,"range",{start:40})}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:34,vars:10,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom-l"],[3,"codeSnippet"],[1,"h5","u-margin-bottom"],["label","Basic"],["label","Step","labelAfter","%","step","20",3,"ngModel","ngModelChange"],[1,"u-margin-bottom"],[1,"u-margin-bottom","col-md-6","col-xs-12"],["label","Min/max","labelBefore","\u20ac","max","600","min","300",3,"ngModel","ngModelChange"],[1,"u-margin-bottom-3xl","col-md-6","col-xs-12"],["label","Disabled","labelBefore","\u20ac","max","600","min","300",3,"ngModel","disabled","ngModelChange"],[1,"a-input","u-margin-bottom"],[1,"a-input__checkbox"],["id","isDisabled","type","checkbox",3,"ngModel","ngModelChange"],["for","isDisabled"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Range slider"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"h4",3),i.\u0275\u0275text(5,"Basic"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",1),i.\u0275\u0275element(9,"aui-range-slider",4),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"h4",3),i.\u0275\u0275text(11,"Step"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"div",1),i.\u0275\u0275element(13,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(14,"div",1)(15,"aui-range-slider",5),i.\u0275\u0275listener("ngModelChange",function(c){return r.range=c}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(16,"h4",3),i.\u0275\u0275text(17,"Min/max"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(18,"div",6),i.\u0275\u0275element(19,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(20,"div",1),i.\u0275\u0275element(21,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(22,"div",7)(23,"aui-range-slider",8),i.\u0275\u0275listener("ngModelChange",function(c){return r.mySlider=c}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(24,"h4",3),i.\u0275\u0275text(25,"Disabled"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(26,"div",9)(27,"div",6)(28,"aui-range-slider",10),i.\u0275\u0275listener("ngModelChange",function(c){return r.disabledSlider=c}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(29,"div",11)(30,"div",12)(31,"input",13),i.\u0275\u0275listener("ngModelChange",function(c){return r.isDisabled=c}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(32,"label",14),i.\u0275\u0275text(33,"Toggle disabled state"),i.\u0275\u0275elementEnd()()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.rangesliderImportExample),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.rangesliderExampleHTML1),i.\u0275\u0275advance(6),i.\u0275\u0275property("codeSnippet",r.rangesliderExampleHTML2),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngModel",r.range),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.rangesliderExampleTypescript3),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.rangesliderExampleHTML3),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngModel",r.mySlider),i.\u0275\u0275advance(5),i.\u0275\u0275property("ngModel",r.disabledSlider)("disabled",r.isDisabled),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngModel",r.isDisabled))},dependencies:[Tt,sH,Er,In,Xi],encapsulation:2})),t})();const F1=function(){return Io.Date.now()};var cH=Math.max,dH=Math.min;const pH=function(t,n){return{"a-button--l":t,"a-button--s":n}};function mH(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",12),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.clear())}),i.\u0275\u0275element(1,"aui-icon",13),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction2(2,pH,"large"===e.size,"small"===e.size)),i.\u0275\u0275attribute("disabled",e.isDisabled||e.closeDisabled?"":null)}}function gH(t,n){1&t&&i.\u0275\u0275element(0,"aui-icon",13)}function _H(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"p",14),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.labelResults)}}function vH(t,n){1&t&&i.\u0275\u0275element(0,"div",15)}function yH(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"li",19)(1,"p",20),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.labelNoResults)}}function bH(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"li",19)(1,"div",21)(2,"div",22)(3,"input",23),i.\u0275\u0275listener("change",function(){const c=i.\u0275\u0275restoreView(e).$implicit,h=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(h.toggleSelected(c.label))}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"label",24),i.\u0275\u0275text(5),i.\u0275\u0275elementEnd()()()()}if(2&t){const e=n.$implicit,r=n.index,o=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(3),i.\u0275\u0275propertyInterpolate("id","checkbox--"+r+"--"+o.id),i.\u0275\u0275propertyInterpolate("name","checkbox--"+r+"--"+o.id),i.\u0275\u0275property("checked",o.selectedItems.indexOf(e.label)>=0),i.\u0275\u0275attribute("disabled",!!o.isDisabled||null),i.\u0275\u0275advance(1),i.\u0275\u0275propertyInterpolate("for","checkbox--"+r+"--"+o.id),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.label)}}function CH(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"ul",16),i.\u0275\u0275template(1,yH,3,1,"li",17),i.\u0275\u0275template(2,bH,6,6,"li",18),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!e.filteredChoices.length),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e.filteredChoices)}}const wH=function(t,n,e){return{"a-input--l":t,"a-input--s":n,"has-icon-right":e}};let EH=(()=>{class t{constructor(){_(this,"id",void 0),_(this,"name",void 0),_(this,"flyoutSize",tp.Small),_(this,"flyoutAlign",void 0),_(this,"label",void 0),_(this,"description",void 0),_(this,"labelDeselect","Alles deselecteren"),_(this,"labelResults","Resultaten"),_(this,"labelNoResults","Geen resultaten gevonden."),_(this,"choices",[]),_(this,"remote",void 0),_(this,"inputDelay",150),_(this,"onSelect",()=>{}),_(this,"onClear",()=>{}),_(this,"size","default"),_(this,"search",new i.EventEmitter),_(this,"query",""),_(this,"selectedItems",[]),_(this,"filteredChoices",[]),_(this,"loading",!1),_(this,"isDisabled",!1),_(this,"closeDisabled",!1),_(this,"filterDataFromSearch",void 0),_(this,"updateModel",()=>{}),this.filterDataFromSearch=function hH(t,n,e){var r,o,c,h,y,E,M=0,A=!1,k=!1,j=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function V(He){var dt=r,tn=o;return r=o=void 0,M=He,h=t.apply(tn,dt)}function ae(He){var dt=He-E;return void 0===E||dt>=n||dt<0||k&&He-M>=c}function de(){var He=F1();if(ae(He))return ye(He);y=setTimeout(de,function se(He){var li=n-(He-E);return k?dH(li,c-(He-M)):li}(He))}function ye(He){return y=void 0,j&&r?V(He):(r=o=void 0,h)}function pt(){var He=F1(),dt=ae(He);if(r=arguments,o=this,E=He,dt){if(void 0===y)return function K(He){return M=He,y=setTimeout(de,n),A?V(He):h}(E);if(k)return clearTimeout(y),y=setTimeout(de,n),V(E)}return void 0===y&&(y=setTimeout(de,n)),h}return n=v1(n)||0,ua(e)&&(A=!!e.leading,c=(k="maxWait"in e)?cH(v1(e.maxWait)||0,n):c,j="trailing"in e?!!e.trailing:j),pt.cancel=function lt(){void 0!==y&&clearTimeout(y),M=0,r=E=o=y=void 0},pt.flush=function tt(){return void 0===y?h:ye(F1())},pt}(this.filterData.bind(this),this.inputDelay)}writeValue(e){this.selectedItems=Array.isArray(e)?e:[]}registerOnChange(e){this.updateModel=e}registerOnTouched(){}setDisabledState(e){this.isDisabled=e}ngOnChanges(e){const r=Bi(e,"choices.currentValue",null);r&&(this.remote?(this.filteredChoices=[...r],this.loading=!1):this.filterData())}filterData(){if(this.remote)return this.loading=!0,this.search.emit(this.query);this.filterChoices()}clear(){this.selectedItems=[],this.query="",this.filterData(),this.updateModel(this.selectedItems),this.onClear()}toggleSelected(e){const r=this.selectedItems.indexOf(e);this.selectedItems=r<0?this.selectedItems.concat(e):[...this.selectedItems.slice(0,r),...this.selectedItems.slice(r+1)],this.updateModel(this.selectedItems),this.onSelect()}filterChoices(){this.filteredChoices=this.choices.filter(e=>this.selectedItems.indexOf(e.value)<0&&e.label.toLowerCase().indexOf(this.query.toLowerCase())>=0)}hasClose(){return this.filteredChoices?.length&&this.query?.length>1}getSelectedLabels(){return this.selectedItems.length?(this.closeDisabled=!1,this.selectedItems.map(e=>e).join(", ")):(this.closeDisabled=!0,null)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-search-filter"]],inputs:{id:"id",name:"name",flyoutSize:"flyoutSize",flyoutAlign:"flyoutAlign",label:"label",description:"description",labelDeselect:"labelDeselect",labelResults:"labelResults",labelNoResults:"labelNoResults",choices:"choices",remote:"remote",inputDelay:"inputDelay",onSelect:"onSelect",onClear:"onClear",size:"size"},outputs:{search:"search"},features:[i.\u0275\u0275ProvidersFeature([{provide:xn,useExisting:(0,i.forwardRef)(()=>t),multi:!0}]),i.\u0275\u0275NgOnChangesFeature],decls:14,vars:22,consts:[["aria-haspopup","listbox","auiFlyout","",1,"m-search-filter",3,"align","size"],[1,"a-input",3,"ngClass"],[1,"a-input__label",3,"for"],[1,"a-input__description",3,"id"],[1,"m-search-filter__input"],["aria-autocomplete","list","type","text","auiFlyoutAction","",3,"ngModel","id","name","value","input","ngModelChange"],["class","a-button a-button--outlined has-icon m-search-filter__button a-button--danger","aria-label","Zoekopdracht wissen","type","button",3,"ngClass","click",4,"ngIf"],["name","ai-close",4,"ngIf"],["auiFlyoutZone","",1,"m-search-filter__search","m-search-filter__search--scroll"],["class","h6 m-search-filter__results-title u-margin-bottom-xs",4,"ngIf"],["class","u-text-center u-padding a-spinner",4,"ngIf"],["class","a-checkbox-list a-checkbox-list--flushed",4,"ngIf"],["aria-label","Zoekopdracht wissen","type","button",1,"a-button","a-button--outlined","has-icon","m-search-filter__button","a-button--danger",3,"ngClass","click"],["name","ai-close"],[1,"h6","m-search-filter__results-title","u-margin-bottom-xs"],[1,"u-text-center","u-padding","a-spinner"],[1,"a-checkbox-list","a-checkbox-list--flushed"],["class","a-checkbox-list__item",4,"ngIf"],["class","a-checkbox-list__item",4,"ngFor","ngForOf"],[1,"a-checkbox-list__item"],[1,"u-margin-xs"],[1,"a-input","a-checkbox-list__checkbox"],[1,"a-input__checkbox"],["type","checkbox",3,"checked","id","name","change"],[3,"for"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"label",2),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"small",3),i.\u0275\u0275text(5),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",4)(7,"input",5),i.\u0275\u0275listener("input",function(){return r.filterDataFromSearch()})("ngModelChange",function(c){return r.query=c}),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(8,mH,2,5,"button",6),i.\u0275\u0275template(9,gH,1,0,"aui-icon",7),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(10,"div",8),i.\u0275\u0275template(11,_H,2,1,"p",9),i.\u0275\u0275template(12,vH,1,0,"div",10),i.\u0275\u0275template(13,CH,3,2,"ul",11),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275property("align",r.flyoutAlign)("size",r.flyoutSize),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction3(18,wH,"large"===r.size,"small"===r.size,r.hasClose)),i.\u0275\u0275advance(1),i.\u0275\u0275propertyInterpolate("for",r.id+"-search"),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(r.label),i.\u0275\u0275advance(1),i.\u0275\u0275propertyInterpolate("id",r.id+"-description"),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(r.description),i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate("id",r.id+"-search"),i.\u0275\u0275propertyInterpolate("name",r.name+"-search"),i.\u0275\u0275propertyInterpolate("value",r.getSelectedLabels()),i.\u0275\u0275property("ngModel",r.query),i.\u0275\u0275attribute("aria-labelledby",r.id+"-label")("disabled",r.isDisabled?"":null),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.hasClose),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.hasClose),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",r.labelResults),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.loading),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.loading))},dependencies:[ze,re,Re,np,Vl,fs,Di,In,Xi,Gt],styles:[".m-search-filter[_ngcontent-%COMP%]{display:block}.m-search-filter__input[_ngcontent-%COMP%]{display:flex;padding:0}.m-search-filter__input[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-right:none}.m-search-filter__button[_ngcontent-%COMP%]{display:inline-block;padding:0;position:relative;vertical-align:middle}.m-search-filter__button[_ngcontent-%COMP%] .ai[_ngcontent-%COMP%]{position:relative;transform:none!important;top:0}"]})),t})(),DH=(()=>{class t{constructor(){_(this,"stuff",[{label:"First item",value:"one"},{label:"Second item",value:"two"},{label:"Third item",value:"three"},{label:"Fourth item",value:"four"}]),_(this,"selectedItems",[]),_(this,"isDisabled",!1),_(this,"searchfilterImportExample","import { SearchFilterModule } from '@acpaas-ui/ngx-forms';\n\n@NgModule({\n\timports: [\n\t\tSearchFilterModule,\n\t]\n});\n\nexport class AppModule {};"),_(this,"searchfilterExampleJS1",'import { SearchFilterChoice } from \'@acpaas-ui/ngx-forms\';\n\n\tpublic stuff: SearchFilterChoice[] = [{\n\t\tlabel: "First item",\n\t\tvalue: "one",\n\t}, {\n\t\tlabel: "Second item",\n\t\tvalue: "two",\n\t}, {\n\t\tlabel: "Third item",\n\t\tvalue: "three",\n\t}, {\n\t\tlabel: "Fourth item",\n\t\tvalue: "four",\n}];'),_(this,"searchfilterExampleHTML1",'\n')}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:20,vars:7,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom-l"],[3,"codeSnippet"],[1,"h5","u-margin-bottom"],[1,"u-margin-bottom"],[1,"u-margin-bottom-xs"],["id","test","inputDelay","0","label","Find stuff","labelDeselect","Clear stuff","labelNoResults","Couldn't find stuff!","labelResults","","name","test","description","Look for stuff",3,"ngModel","choices","disabled","ngModelChange"],[1,"a-input"],[1,"a-input__checkbox"],["id","isDisabled","type","checkbox",3,"ngModel","ngModelChange"],["for","isDisabled"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Search filter"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"h4",3),i.\u0275\u0275text(5,"Basic"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",4),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",1),i.\u0275\u0275element(9,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",4)(11,"h4",5),i.\u0275\u0275text(12,"Normal search filter"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(13,"div",4)(14,"aui-search-filter",6),i.\u0275\u0275listener("ngModelChange",function(c){return r.selectedItems=c}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(15,"div",7)(16,"div",8)(17,"input",9),i.\u0275\u0275listener("ngModelChange",function(c){return r.isDisabled=c}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(18,"label",10),i.\u0275\u0275text(19,"Toggle disabled state"),i.\u0275\u0275elementEnd()()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.searchfilterImportExample),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.searchfilterExampleJS1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.searchfilterExampleHTML1),i.\u0275\u0275advance(5),i.\u0275\u0275property("ngModel",r.selectedItems)("choices",r.stuff)("disabled",r.isDisabled),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngModel",r.isDisabled))},dependencies:[Tt,EH,Er,In,Xi],encapsulation:2})),t})();var rw=(()=>(function(t){t.Auto="auto",t.Small="small",t.Large="large"}(rw||(rw={})),rw))();function SH(t,n){1&t&&i.\u0275\u0275element(0,"aui-icon",8)}const N1=function(t){return{"has-error":t}},TH=function(t){return{"is-error":t}};function MH(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",3)(1,"label",4),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"small",5),i.\u0275\u0275template(4,SH,1,0,"aui-icon",6),i.\u0275\u0275text(5),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(6,"input",7),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275classMap("a-input--"+e.size),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(10,N1,e.hasError)),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.label),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(12,TH,e.hasError)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.hasError),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",e.description,""),i.\u0275\u0275advance(1),i.\u0275\u0275property("formControl",e.timeControl)("id",e.id),i.\u0275\u0275attribute("aria-label",e.ariaLabelHours+":"+e.ariaLabelMinutes)}}function xH(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"option",17),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;i.\u0275\u0275property("value",e),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e)}}function IH(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"option",17),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;i.\u0275\u0275property("value",e),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e)}}function PH(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",9)(1,"div",10)(2,"div",11)(3,"select",12)(4,"option",13),i.\u0275\u0275text(5),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(6,xH,2,2,"option",14),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(7,"aui-icon",15),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(8,"div",10)(9,"div",11)(10,"select",16)(11,"option",13),i.\u0275\u0275text(12),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(13,IH,2,2,"option",14),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(14,"aui-icon",15),i.\u0275\u0275elementEnd()()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("formGroup",e.fallbackForm),i.\u0275\u0275advance(1),i.\u0275\u0275classMap("a-input--"+e.size),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(14,N1,e.hasError)),i.\u0275\u0275advance(2),i.\u0275\u0275property("id",e.id),i.\u0275\u0275attribute("aria-label",e.ariaLabelHours),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.hoursPlaceholder),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e.hours),i.\u0275\u0275advance(2),i.\u0275\u0275classMap("a-input--"+e.size),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(16,N1,e.hasError)),i.\u0275\u0275advance(2),i.\u0275\u0275attribute("aria-label",e.ariaLabelMinutes),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.minutesPlaceholder),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e.minutes)}}let LH=(()=>{class t{constructor(e,r){_(this,"formBuilder",void 0),_(this,"renderer",void 0),_(this,"id","aui-timepicker-"+Math.random().toString(36).substring(2)),_(this,"hoursPlaceholder","uu"),_(this,"minutesPlaceholder","mm"),_(this,"hasError",!1),_(this,"size",rw.Auto),_(this,"ariaLabelHours","Uur"),_(this,"ariaLabelMinutes","Minuten"),_(this,"label",void 0),_(this,"description",void 0),_(this,"shouldUseFallback",!1),_(this,"minutes",[]),_(this,"hours",[]),_(this,"updateModel",void 0),_(this,"timeControl",new ic),_(this,"fallbackForm",void 0),_(this,"componentDestroyed$",new vt.xQ),this.formBuilder=e,this.renderer=r}ngOnInit(){this.shouldUseFallback=this.supportsNativeTimepicker(),this.minutes=this.getMinutes(),this.hours=this.getHours(),this.fallbackForm=this.formBuilder.group({hours:null,minutes:null}),this.fallbackForm.valueChanges.pipe(Bn(this.componentDestroyed$)).subscribe(e=>{this.updateModel(e.hours&&e.minutes?`${e.hours}:${e.minutes}`:"")}),this.timeControl.valueChanges.pipe(Bn(this.componentDestroyed$)).subscribe(e=>{this.updateModel(e)})}ngOnDestroy(){this.componentDestroyed$.next(!0),this.componentDestroyed$.complete()}writeValue(e){if(this.timeControl.setValue(e,{emitEvent:!1}),e){const r=e.split(":");this.fallbackForm.get("hours").setValue(r[0],{emitEvent:!1}),this.fallbackForm.get("minutes").setValue(r[1],{emitEvent:!1})}}registerOnChange(e){this.updateModel=e}registerOnTouched(){}setDisabledState(e){e?(this.timeControl.disable({emitEvent:!1}),this.fallbackForm.disable({emitEvent:!1})):(this.timeControl.enable({emitEvent:!1}),this.fallbackForm.enable({emitEvent:!1}))}supportsNativeTimepicker(){const e=this.renderer.createElement("input");return e.type="time","text"===e.type}getMinutes(){return Array(60).fill("").map((e,r)=>It.addLeadingZero(r))}getHours(){return Array(24).fill("").map((e,r)=>It.addLeadingZero(r))}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(Sl),i.\u0275\u0275directiveInject(i.Renderer2))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-timepicker"]],inputs:{id:"id",hoursPlaceholder:"hoursPlaceholder",minutesPlaceholder:"minutesPlaceholder",hasError:"hasError",size:"size",ariaLabelHours:"ariaLabelHours",ariaLabelMinutes:"ariaLabelMinutes",label:"label",description:"description"},features:[i.\u0275\u0275ProvidersFeature([{provide:xn,useExisting:(0,i.forwardRef)(()=>t),multi:!0}])],decls:3,vars:2,consts:[[1,"m-timepicker"],["class","a-input",3,"class","ngClass",4,"ngIf"],[3,"formGroup",4,"ngIf"],[1,"a-input",3,"ngClass"],["for","id",1,"a-input__label"],["id","id",1,"a-input__description",3,"ngClass"],["name","ai-alert-triangle",4,"ngIf"],["type","time",3,"formControl","id"],["name","ai-alert-triangle"],[3,"formGroup"],[1,"a-input","has-icon-right",3,"ngClass"],[1,"a-input__wrapper"],["formControlName","hours",3,"id"],["disabled","","value","null"],[3,"value",4,"ngFor","ngForOf"],["name","ai-arrow-down-1"],["formControlName","minutes"],[3,"value"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,MH,7,14,"div",1),i.\u0275\u0275template(2,PH,15,18,"div",2),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.shouldUseFallback),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.shouldUseFallback))},dependencies:[ea,na,Di,Do,In,Ku,Eo,ss,El,ze,re,Re,Gt],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})),t})();function AH(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",1)(1,"pre",16),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.time1)}}function OH(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",1)(1,"pre",16),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.time2)}}function kH(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",4)(1,"pre",16),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.time3)}}function RH(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",4)(1,"pre",16),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.time4)}}let FH=(()=>{class t{constructor(){_(this,"time1","10:30"),_(this,"time2","20:30"),_(this,"time3",""),_(this,"time4",""),_(this,"isDisabled",!1),_(this,"timepickerImportExample","import { TimepickerModule } from '@acpaas-ui/ngx-forms';\n\t@NgModule({\n\t\timports: [\n\t\t\tTimepickerModule,\n\t\t]\n\t});\nexport class AppModule {};"),_(this,"timepickerExampleTypescript",'public time1 = "10:30";'),_(this,"timepickerExampleHTML1",'
    \n\t\n\t\n\t\n
    '),_(this,"timepickerExampleTypescript2",'public time2 = "20:30";'),_(this,"timepickerExampleHTML2",'
    \n\t\n\t\n\t\n
    '),_(this,"timepickerExampleHTML3",'
    \n\t\n\t\n\t\n
    '),_(this,"timepickerExampleHTML4",'
    \n\t\n\t\n\t\n
    \n
    \n\t
    \n\t\t\n\t\t\n\t
    \n
    ')}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:43,vars:16,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom-l"],[3,"codeSnippet"],[1,"h5","u-margin-bottom"],[1,"u-margin-bottom"],[1,"a-input"],["label","time","description","Pick a time","ariaLabelHours","Hours","ariaLabelMinutes","Minutes","data-id","timepicker1","hoursPlaceholder","HH",3,"ngModel","ngModelChange"],["class","u-margin-bottom-l",4,"ngIf"],["label","time","description","Pick a time","ariaLabelHours","Hours","ariaLabelMinutes","Minutes","data-id","timepicker2","hoursPlaceholder","HH","size","small",3,"ngModel","ngModelChange"],["label","time","description","Pick a time","ariaLabelHours","Hours","ariaLabelMinutes","Minutes","data-id","timepicker3","hasError","true","hoursPlaceholder","HH","size","large",3,"ngModel","ngModelChange"],["class","u-margin-bottom",4,"ngIf"],[1,"a-input","u-margin-bottom"],["label","time","description","Pick a time","ariaLabelHours","Hours","ariaLabelMinutes","Minutes","data-id","timepicker4","hoursPlaceholder","HH",3,"ngModel","disabled","ngModelChange"],[1,"a-input__checkbox"],["id","isDisabled","type","checkbox",3,"ngModel","ngModelChange"],["for","isDisabled"],[1,"a-pre"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Timepicker"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"h4",3),i.\u0275\u0275text(5,"Basic"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",4),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",4),i.\u0275\u0275element(9,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",4)(11,"div",5)(12,"aui-timepicker",6),i.\u0275\u0275listener("ngModelChange",function(c){return r.time1=c}),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275template(13,AH,3,1,"div",7),i.\u0275\u0275elementStart(14,"h4",3),i.\u0275\u0275text(15,"Predefined hours and minutes"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(16,"div",4),i.\u0275\u0275element(17,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(18,"div",4),i.\u0275\u0275element(19,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(20,"div",4)(21,"div",5)(22,"aui-timepicker",8),i.\u0275\u0275listener("ngModelChange",function(c){return r.time2=c}),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275template(23,OH,3,1,"div",7),i.\u0275\u0275elementStart(24,"h4",3),i.\u0275\u0275text(25,"Validation"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(26,"div",4),i.\u0275\u0275element(27,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(28,"div",4)(29,"div",5)(30,"aui-timepicker",9),i.\u0275\u0275listener("ngModelChange",function(c){return r.time3=c}),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275template(31,kH,3,1,"div",10),i.\u0275\u0275elementStart(32,"h4",3),i.\u0275\u0275text(33,"Disabled"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(34,"div",4)(35,"div",11)(36,"aui-timepicker",12),i.\u0275\u0275listener("ngModelChange",function(c){return r.time4=c}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(37,"div",5)(38,"div",13)(39,"input",14),i.\u0275\u0275listener("ngModelChange",function(c){return r.isDisabled=c}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(40,"label",15),i.\u0275\u0275text(41,"Toggle disabled state"),i.\u0275\u0275elementEnd()()()(),i.\u0275\u0275template(42,RH,3,1,"div",10)),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.timepickerImportExample),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.timepickerExampleTypescript),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.timepickerExampleHTML1),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngModel",r.time1),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.time1),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.timepickerExampleTypescript2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.timepickerExampleHTML2),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngModel",r.time2),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.time2),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.timepickerExampleHTML3),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngModel",r.time3),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.time3),i.\u0275\u0275advance(5),i.\u0275\u0275property("ngModel",r.time4)("disabled",r.isDisabled),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngModel",r.isDisabled),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngIf",r.time4))},dependencies:[Tt,LH,Re,Er,In,Xi],encapsulation:2})),t})(),rP=(()=>{class t{static forChild(e,r,o){return{ngModule:t,providers:[{provide:Ac,useValue:e},{provide:Oc,useValue:r},{provide:R1,useValue:o}]}}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[{provide:Ac,useValue:ap},{provide:Oc,useValue:lp},{provide:R1,useValue:iP}],imports:[Ke,er,Tl,Wj,cn,ip]})),t})();const oP={allowedMimeTypes:[],allowedFileTypes:[],autoUpload:!1,maxFileSize:0,queueLimit:0,type:"drop",url:""},B1=new i.InjectionToken("uploadValidationMessages");class sP{constructor(n){_(this,"options",oP),this.setOptions(n)}setOptions(n){this.options=Object.assign({},this.options,n)}uploadFiles(n){const e=this.filesToFormData(n);return new mr.y(r=>{const o=new XMLHttpRequest;o.upload.addEventListener("progress",c=>{c.lengthComputable&&r.next({progress:c.loaded/c.total,data:null})}),o.onload=()=>{r.next({progress:1,data:o.response})},o.responseType="json",o.open("post",this.options.url),o.send(e)})}validateFiles(n){const e=[],r=[];if(n.length>0)for(const o of n){const c=[];this.validateFileType(o)||c.push("INVALID_FILE_TYPE"),this.validateFileSize(o)||c.push("INVALID_FILE_SIZE"),this.validateMimeType(o)||c.push("INVALID_MIME_TYPE"),0===c.length?e.push(o):r.push({reasons:c,file:o})}return{validFiles:e,invalidFiles:r}}filesToFormData(n){const e=new FormData;if(!this.options.url||""===this.options.url)throw new Error("Define the upload url.");for(const r of n)e.append("file",r);return e}getFileExtension(n){return n.name.split(".")[n.name.split(".").length-1]}validateFileType(n){const e=this.options.allowedFileTypes,r=this.getFileExtension(n);return!Array.isArray(e)||0===e.length||-1!==e.map(h=>h.toUpperCase()).lastIndexOf(r.toUpperCase())}validateFileSize(n){const e=this.options.maxFileSize;return!e||0===e||e>n.size}validateMimeType(n){const e=this.options.allowedMimeTypes;return!Array.isArray(e)||0===e.length||-1!==e.lastIndexOf(n.type)}}function NH(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"li"),i.\u0275\u0275element(1,"aui-icon",3),i.\u0275\u0275elementStart(2,"span",4),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"button",5),i.\u0275\u0275listener("click",function(){const c=i.\u0275\u0275restoreView(e).index,h=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(h.remove(c))}),i.\u0275\u0275element(5,"aui-icon",6),i.\u0275\u0275elementEnd()()}if(2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(e.name),i.\u0275\u0275advance(2),i.\u0275\u0275property("ariaLabel",r.ariaLabelRemove)}}function BH(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",7),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.uploadFiles())}),i.\u0275\u0275text(1,"Upload"),i.\u0275\u0275elementEnd()}}let aP=(()=>{class t{constructor(){_(this,"files",void 0),_(this,"uploader",void 0),_(this,"ariaLabelRemove","Verwijder"),_(this,"uploadedFiles",new i.EventEmitter),_(this,"uploadProgress",0)}remove(e){this.files.splice(e,1)}uploadFiles(){this.uploader.uploadFiles(this.files).subscribe(o=>{o.progress&&(this.uploadProgress=Math.floor(100*o.progress)),o.data&&(this.uploadedFiles.emit(o.data),this.files=[])})}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-upload-queue"]],inputs:{files:"files",uploader:"uploader",ariaLabelRemove:"ariaLabelRemove"},outputs:{uploadedFiles:"uploadedFiles"},decls:3,vars:2,consts:[[1,"m-upload__files","u-margin-bottom-xs"],[4,"ngFor","ngForOf"],["class","a-button","type","button",3,"click",4,"ngIf"],["name","ai-common-file-empty"],[1,"m-upload__filename"],["type","button",1,"m-upload__delete","a-button","a-button--text","a-button--neutral","a-button--s","has-icon",3,"click"],["name","ai-close",3,"ariaLabel"],["type","button",1,"a-button",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"ul",0),i.\u0275\u0275template(1,NH,6,2,"li",1),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(2,BH,2,0,"button",2)),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",r.files),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.files.length>0))},dependencies:[re,Re,Gt],encapsulation:2})),t})();const VH=function(t){return{width:t}};let jH=(()=>{class t{constructor(){this.value=0,this.max=0}calcProgress(){return this.max>0&&this.value>0?Math.floor(this.value/this.max*100)+"%":0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.\u0275\u0275defineComponent({type:t,selectors:[["aui-progress-bar"]],inputs:{value:"value",max:"max"},decls:3,vars:5,consts:[[1,"aui-progress-bar","a-progress"],[1,"a-progress__inner"],["aria-valuemin","0","role","progressbar",1,"a-progress__bar",3,"ngStyle"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1),i.\u0275\u0275element(2,"div",2),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(2),i.\u0275\u0275property("ngStyle",i.\u0275\u0275pureFunction1(3,VH,r.calcProgress())),i.\u0275\u0275attribute("aria-valuemax",r.max)("aria-valuenow",r.value))},dependencies:[gi],encapsulation:2}),t})(),HH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({imports:[Ke]}),t})();const UH=["fileInput"];function zH(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",10)(1,"label",11),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"p",12),i.\u0275\u0275text(4),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("for",e.ariaId),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",e.label," "),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(e.uploadedFilesString)}}function $H(t,n){1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1,","),i.\u0275\u0275elementContainerEnd())}function GH(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275template(2,$H,2,0,"ng-container",8),i.\u0275\u0275elementContainerEnd()),2&t){const e=n.$implicit,r=n.last;i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",e.name," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r)}}function WH(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275elementStart(1,"p",13),i.\u0275\u0275template(2,GH,3,2,"ng-container",14),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(3,"aui-progress-bar",15),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(2),i.\u0275\u0275property("ngForOf",e.uploadingFiles),i.\u0275\u0275advance(1),i.\u0275\u0275property("value",e.uploadProgress)}}function ZH(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",2)(1,"div",3)(2,"div",4)(3,"input",5,6),i.\u0275\u0275listener("click",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.onFileClick(o))})("change",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.updateFiles())}),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(5,zH,5,3,"div",7),i.\u0275\u0275template(6,WH,4,2,"ng-container",8),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(7,"small",9),i.\u0275\u0275text(8),i.\u0275\u0275elementEnd()()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275classProp("is-disabled",e.disabled),i.\u0275\u0275advance(3),i.\u0275\u0275property("id",e.id),i.\u0275\u0275attribute("aria-labelledby",e.ariaId),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",!e.uploadProgress||0===e.uploadProgress),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.uploadProgress>0),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",e.description," ")}}function qH(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",16),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.triggerFile())}),i.\u0275\u0275elementStart(1,"span",17),i.\u0275\u0275projection(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"input",5,6),i.\u0275\u0275listener("click",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.onFileClick(o))})("change",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.updateFiles())}),i.\u0275\u0275elementEnd()()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("disabled",e.disabled),i.\u0275\u0275advance(1),i.\u0275\u0275property("id",e.ariaId),i.\u0275\u0275advance(2),i.\u0275\u0275property("id",e.id),i.\u0275\u0275attribute("aria-labelledby",e.ariaId)}}const YH=[[["",8,"m-upload__button"]]],QH=[".m-upload__button"];let lP=(()=>{class t{onDragOver(e){this.preventAndStop(e),this.hasDragOver=!0}onDragLeave(e){this.preventAndStop(e),this.hasDragOver=!1}onDrop(e){this.preventAndStop(e),this.hasDragOver=!1;const r=this.fileListToArray(e.dataTransfer.files);this.handleFiles(r)}constructor(e){_(this,"renderer",void 0),_(this,"fileInput",void 0),_(this,"uploader",void 0),_(this,"id",""),_(this,"accept",[]),_(this,"capture",""),_(this,"ariaId",""),_(this,"disabled",!1),_(this,"multiple",!0),_(this,"label",""),_(this,"description",""),_(this,"uploadedFiles",new i.EventEmitter),_(this,"queuedFiles",new i.EventEmitter),_(this,"invalidFiles",new i.EventEmitter),_(this,"hasDragOver",!1),_(this,"classNames",void 0),_(this,"uploadProgress",0),_(this,"uploadingFiles",void 0),_(this,"uploadedFilesString",void 0),this.renderer=e}triggerFile(){this.fileInput.nativeElement.click()}updateFiles(){const e=this.fileListToArray(this.fileInput.nativeElement.files);this.uploadedFilesString=e.map(r=>r.name).join(", "),this.handleFiles(e)}onFileClick(e){e.target.value=""}ngAfterViewInit(){!1!==this.multiple&&this.renderer.setProperty(this.fileInput.nativeElement,"multiple","multiple"),this.accept.length&&this.renderer.setProperty(this.fileInput.nativeElement,"accept",this.accept.join()),this.disabled&&this.renderer.setProperty(this.fileInput.nativeElement,"disabled","disabled"),""!==this.capture&&this.renderer.setAttribute(this.fileInput.nativeElement,"capture",this.capture)}handleFiles(e){const r=this.uploader.validateFiles(e);this.invalidFiles.emit(r.invalidFiles),this.uploader.options.autoUpload&&r.validFiles.length>0?this.uploadFiles(r.validFiles):this.queuedFiles.emit(r.validFiles)}uploadFiles(e){this.uploadProgress=0,this.uploadingFiles=e,this.uploader.uploadFiles(e).subscribe(r=>{r.progress&&(this.uploadProgress=Math.floor(100*r.progress)),r.data&&this.uploadedFiles.emit(r.data)},r=>{console.log(r)})}fileListToArray(e){return Array.from(e)}preventAndStop(e){e.preventDefault(),e.stopPropagation()}uploadedFilesToString(){return console.log("UPLOADS TO STRING"),this.fileInput.nativeElement.files.map(e=>e.name).join("")}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.Renderer2))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-upload-zone"]],viewQuery:function(e,r){if(1&e&&i.\u0275\u0275viewQuery(UH,5),2&e){let o;i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.fileInput=o.first)}},hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("dragover",function(c){return r.onDragOver(c)})("dragleave",function(c){return r.onDragLeave(c)})("drop",function(c){return r.onDrop(c)})},inputs:{uploader:"uploader",id:"id",accept:"accept",capture:"capture",ariaId:"ariaId",disabled:"disabled",multiple:"multiple",label:"label",description:"description"},outputs:{uploadedFiles:"uploadedFiles",queuedFiles:"queuedFiles",invalidFiles:"invalidFiles"},ngContentSelectors:QH,decls:2,vars:2,consts:[["class","m-upload",3,"is-disabled",4,"ngIf"],["class","a-button m-upload__button","type","button",3,"disabled","click",4,"ngIf"],[1,"m-upload"],[1,"m-upload__inner"],[1,"m-upload__dropzone"],["type","file",1,"m-upload__input",3,"id","click","change"],["fileInput",""],["class","m-upload__content",4,"ngIf"],[4,"ngIf"],[1,"m-upload__description"],[1,"m-upload__content"],[1,"m-upload__message",3,"for"],[1,"m-upload__uploads","u-text-bold"],[1,"m-upload__uploads","u-text-bold","u-margin-bottom-xs"],[4,"ngFor","ngForOf"],["max","100",3,"value"],["type","button",1,"a-button","m-upload__button",3,"disabled","click"],[3,"id"]],template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(YH),i.\u0275\u0275template(0,ZH,9,7,"div",0),i.\u0275\u0275template(1,qH,5,4,"button",1)),2&e&&(i.\u0275\u0275property("ngIf","drop"===r.uploader.options.type),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf","button"===r.uploader.options.type))},dependencies:[re,Re,jH],styles:[".m-upload__button[_ngcontent-%COMP%]{position:relative}"]})),t})(),uP=(()=>{class t{constructor(e){_(this,"initValues",void 0),_(this,"INVALID_FILE_TYPE","INVALID_FILE_TYPE"),_(this,"INVALID_FILE_SIZE","INVALID_FILE_SIZE"),_(this,"INVALID_MIME_TYPE","INVALID_MIME_TYPE"),this.initValues=e,e.INVALID_FILE_TYPE&&(this.INVALID_FILE_TYPE=e.INVALID_FILE_TYPE),e.INVALID_FILE_SIZE&&(this.INVALID_FILE_SIZE=e.INVALID_FILE_SIZE),e.INVALID_MIME_TYPE&&(this.INVALID_MIME_TYPE=e.INVALID_MIME_TYPE)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275inject(B1))}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})();function KH(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"li",2),i.\u0275\u0275element(1,"aui-icon",3),i.\u0275\u0275elementStart(2,"span",4),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"span",5),i.\u0275\u0275text(5),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"button",6),i.\u0275\u0275listener("click",function(){const c=i.\u0275\u0275restoreView(e).index,h=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(h.remove(c))}),i.\u0275\u0275element(7,"aui-icon",7),i.\u0275\u0275elementEnd()()}if(2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(e.file.name),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(r.formatReasons(e.reasons)),i.\u0275\u0275advance(2),i.\u0275\u0275property("ariaLabel",r.ariaLabelRemove)}}let JH=(()=>{class t{constructor(e){_(this,"messagesService",void 0),_(this,"invalidFiles",[]),_(this,"ariaLabelRemove","Verwijder"),this.messagesService=e}remove(e){this.invalidFiles.splice(e,1)}formatReasons(e){const r=[];for(const o of e)r.push(this.messagesService[o]);return r.join(", ")}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(uP))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-validation-list"]],inputs:{invalidFiles:"invalidFiles",ariaLabelRemove:"ariaLabelRemove"},decls:2,vars:1,consts:[[1,"m-upload__files"],["class","is-error",4,"ngFor","ngForOf"],[1,"is-error"],["name","ai-alert-triangle"],[1,"m-upload__filename"],[1,"m-upload__error"],["type","button",1,"m-upload__delete","a-button","a-button--text","a-button--danger","a-button--s","has-icon",3,"click"],["name","ai-close",3,"ariaLabel"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"ul",0),i.\u0275\u0275template(1,KH,8,3,"li",1),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",r.invalidFiles))},dependencies:[re,Gt],encapsulation:2})),t})();function XH(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"aui-upload-queue",5),i.\u0275\u0275listener("uploadedFiles",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.onUploadedFiles(o))}),i.\u0275\u0275elementEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275property("ariaLabelRemove",e.ariaLabelRemove)("files",e.queuedFiles)("uploader",e.uploader)}}const eU=[[["",8,"m-upload__button"]]],tU=[".m-upload__button"];let nU=(()=>{class t{constructor(){_(this,"id",""),_(this,"accept",[]),_(this,"capture",""),_(this,"ariaLabelRemove","Verwijder"),_(this,"disabled",!1),_(this,"multiple",!0),_(this,"label",""),_(this,"description",""),_(this,"options",oP),_(this,"selectUploadedFiles",new i.EventEmitter),_(this,"uploader",void 0),_(this,"ariaId",void 0),_(this,"uploadedFiles",[]),_(this,"invalidFiles",[]),_(this,"queuedFiles",[])}ngOnInit(){this.id||(this.ariaId="aui-upload-"+Math.random().toString(36).substring(2),this.id=this.ariaId),this.uploader=new sP(this.options)}onUploadedFiles(e){this.uploadedFiles=this.uploadedFiles.concat(e),this.selectUploadedFiles.emit(this.uploadedFiles)}onInvalidFiles(e){this.invalidFiles=e}onQueuedFiles(e){this.queuedFiles=this.queuedFiles.concat(e)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-upload"]],inputs:{id:"id",accept:"accept",capture:"capture",ariaLabelRemove:"ariaLabelRemove",disabled:"disabled",multiple:"multiple",label:"label",description:"description",options:"options"},outputs:{selectUploadedFiles:"selectUploadedFiles"},ngContentSelectors:tU,decls:6,vars:12,consts:[[1,"m-upload","aui-upload"],[3,"id","accept","capture","ariaId","disabled","multiple","uploader","label","description","invalidFiles","queuedFiles","uploadedFiles"],[1,"m-upload__button"],[3,"ariaLabelRemove","invalidFiles"],[3,"ariaLabelRemove","files","uploader","uploadedFiles",4,"ngIf"],[3,"ariaLabelRemove","files","uploader","uploadedFiles"]],template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(eU),i.\u0275\u0275elementStart(0,"div",0)(1,"aui-upload-zone",1),i.\u0275\u0275listener("invalidFiles",function(c){return r.onInvalidFiles(c)})("queuedFiles",function(c){return r.onQueuedFiles(c)})("uploadedFiles",function(c){return r.onUploadedFiles(c)}),i.\u0275\u0275elementStart(2,"div",2),i.\u0275\u0275projection(3),i.\u0275\u0275elementEnd()(),i.\u0275\u0275element(4,"aui-validation-list",3),i.\u0275\u0275template(5,XH,1,3,"aui-upload-queue",4),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("id",r.id)("accept",r.accept)("capture",r.capture)("ariaId",r.ariaId)("disabled",r.disabled)("multiple",r.multiple)("uploader",r.uploader)("label",r.label)("description",r.description),i.\u0275\u0275advance(3),i.\u0275\u0275property("ariaLabelRemove",r.ariaLabelRemove)("invalidFiles",r.invalidFiles),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!(null!=r.options&&r.options.autoUpload)))},dependencies:[Re,aP,lP,JH],styles:[".m-upload__button[_ngcontent-%COMP%]{position:relative}"]})),t})(),cP=(()=>{class t{static forChild(e={}){return{ngModule:t,providers:[{provide:B1,useValue:e}]}}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[uP,{provide:B1,useValue:{}}],imports:[Ke,HH,er,cn]})),t})();function iU(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",14)(1,"ul",15)(2,"li",16),i.\u0275\u0275element(3,"aui-icon",17),i.\u0275\u0275elementStart(4,"span",18),i.\u0275\u0275text(5),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"span",19),i.\u0275\u0275text(7,"This file extension is not allowed."),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"button",20),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.reloadErrors())}),i.\u0275\u0275element(9,"aui-icon",21),i.\u0275\u0275elementEnd()()()()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate(e.fileName)}}let rU=(()=>{class t{constructor(){_(this,"files",[]),_(this,"accept",["image/*"]),_(this,"capture","environment"),_(this,"invalidFiles",[]),_(this,"queuedFiles",[]),_(this,"uploadedFiles",[]),_(this,"uploader",new sP({allowedFileTypes:["jpg","jpeg","png"],type:"drop"})),_(this,"showError",!1),_(this,"fileName",""),_(this,"dropzone1",{allowedMimeTypes:["image/jpeg","image/gif","image/png"],maxFileSize:1e7,queueLimit:2,type:"drop"}),_(this,"dropzone2",{type:"button",allowedFileTypes:[".jpg","jpeg","png"],autoUpload:!0,maxFileSize:2e6}),_(this,"uploadImportExample","import { UploadModule } from '@acpaas-ui/ngx-forms';\n\n@NgModule({\n\timports: [\n\t\tUploadModule,\n\t]\n});\n\nexport class AppModule {};"),_(this,"uploadExampleJS1","public accept = ['image/*'];\npublic dropzone1: UploadOptions = {\n\tallowedMimeTypes: ['image/jpeg', 'image/gif', 'image/png'],\n\tmaxFileSize: 10000000,\n\tqueueLimit: 2,\n\ttype: 'drop',\n\turl: 'api/upload',\n};"),_(this,"uploadExampleHTML1",'\n\n'),_(this,"uploadExampleJS2","public dropzone2: UploadOptions = {\n\ttype: 'button',\n\tallowedFileTypes: ['.jpg', 'jpeg', 'png'],\n\tautoUpload: true,\n\tmaxFileSize: 2000000,\n\turl: 'api/upload',\n};"),_(this,"uploadExampleHTML2",'\n\t
    \n\t\tSelect your files to upload\n\t
    \n'),_(this,"uploadExampleJS3","public files = [];\npublic invalidFiles: InvalidFile[] = [];\npublic queuedFiles: File[] = [];\npublic uploadedFiles: File[] = [];\n// Pass created options into new instance of Uploader\npublic uploader = new Uploader({\n\tallowedFileTypes: ['jpg', 'jpeg', 'png'],\n\ttype: 'drop',\n\turl: 'api/upload',\n});\npublic showError = false;\npublic fileName = '';\npublic capture = 'environment';\n});"),_(this,"uploadExampleJS4","public onQueuedFiles(files: File[]) {\n\tif (!files.length) {\n\t\treturn;\n\t}\n\n\tthis.queuedFiles = this.queuedFiles.concat(files);\n}\n\npublic onUploadedFiles(files) {\n\tthis.uploadedFiles = this.uploadedFiles.concat(files);\n}\n\npublic onInvalidFiles(errorFiles: InvalidFile[]) {\n\tthis.invalidFiles = errorFiles;\n\tif (errorFiles.length > 0) {\n\t\tthis.fileName = this.invalidFiles[0]['file'].name;\n\t\tthis.showError = true;\n\t\tthis.invalidFiles = [];\n\t} else {\n\t\tthis.showError = false;\n\t}\n}\n\npublic reloadErrors() {\n\tthis.showError = false;\n\tif (!this.queuedFiles.length) {\n\t\treturn;\n\t}\n}\n\n/**\n* Using the uploader url option\n*/\n\npublic uploadFiles(): void {\n// Upload files returns an obervable\nthis.uploader.uploadFiles(this.queuedFiles).subscribe(\n\t(response) => {\n\t\t// Response has a progress property to use with a progress bar\n\t\tif (response.progress) {\n\t\t\tconsole.log('response.progress = ', response.progress);\n\t\t}\n\t\t// Response had a data property with an array of uploaded files: UploadedFile[]\n\t\tif (response.data) {\n\t\t\tconsole.log('response.data = ', response.data);\n\t\t}\n\t\tthis.uploadedFiles = response.data;\n\t},\n\t(err) => {\n\t\tconsole.log('HTTP Error', err);\n\t});\n}\n\n/**\n * Using a custom upload service\n */\n\npublic uploadFiles(): void {\n\tif (!this.queuedFiles.length) {\n\t\treturn;\n\t}\n\tthis.customService.postFile(this.queuedFiles).subscribe(res => {\n\t\tthis.result = res;\n\t}, (error) => {\n\t\tconsole.log(error);\n\t});\n}"),_(this,"uploadExampleSCSS","// don't display the default upload button\n::ng-deep .a-upload-queue__wrapper {\n\t.a-button {\n\t\tdisplay: none;\n\t}\n}"),_(this,"uploadExampleHTML3",'\n\n\n
    \n
      \n
    • \n \n {{ fileName }}\n This file extension is not allowed.\n \n \n \n
    • \n
    \n
    ')}onUpload(e){this.files=this.files.concat(e)}onQueuedFiles(e){e.length&&(this.queuedFiles=this.queuedFiles.concat(e))}onUploadedFiles(e){this.uploadedFiles=this.uploadedFiles.concat(e)}onInvalidFiles(e){this.invalidFiles=e,e.length>0?(this.fileName=this.invalidFiles[0].file.name,this.showError=!0,this.invalidFiles=[]):this.showError=!1}reloadErrors(){this.showError=!1}uploadFiles(){this.uploader.uploadFiles(this.queuedFiles).subscribe(e=>{e.progress&&console.log("response.progress = ",e.progress),e.data&&console.log("response.data = ",e.data),this.uploadedFiles=e.data},e=>{console.log("HTTP Error",e)})}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:42,vars:17,consts:[[1,"h4","u-margin-bottom"],[1,"m-alert","u-margin-bottom"],[1,"u-margin-bottom-l"],[3,"codeSnippet"],[1,"h5","u-margin-bottom"],[1,"u-margin-bottom"],["for","my-upload",1,"a-input__label"],["data-id","my-upload","label","Drag your files here or click upload","description","Optional description message",3,"options","accept","selectUploadedFiles"],[3,"options","selectUploadedFiles"],[1,"m-upload__button"],["ariaId","my-other-upload","multiple","false","label","Drag your files here or click to upload","description","Maximum filesize: 10 MB, File extension: jps, jpeg, png",3,"uploader","capture","invalidFiles","queuedFiles","uploadedFiles"],[1,"a-upload-queue__wrapper",3,"files"],["class","m-upload u-margin-bottom",4,"ngIf"],["id","uploadButton","type","button",1,"a-button",3,"disabled","click"],[1,"m-upload","u-margin-bottom"],[1,"m-upload__files"],[1,"is-error"],["name","ai-alert-triangle"],[1,"m-upload__filename"],[1,"m-upload__error"],["type","button",1,"m-upload__delete","a-button","a-button--text","a-button--danger","a-button--s","has-icon",3,"click"],["name","ai-close","ariaLabel","Remove"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Upload"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1)(3,"p"),i.\u0275\u0275text(4,"The following examples only have a visual purpose since they don't have a backend to talk to."),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(5,"div",2),i.\u0275\u0275element(6,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(7,"h4",4),i.\u0275\u0275text(8,"Basic upload"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(9,"div",5),i.\u0275\u0275element(10,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(11,"div",5),i.\u0275\u0275element(12,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(13,"div",2)(14,"label",6),i.\u0275\u0275text(15,"Upload files"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(16,"aui-upload",7),i.\u0275\u0275listener("selectUploadedFiles",function(c){return r.onUpload(c)}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(17,"h4",4),i.\u0275\u0275text(18,"Upload as a button"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(19,"div",5),i.\u0275\u0275element(20,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(21,"div",5),i.\u0275\u0275element(22,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(23,"div",2)(24,"aui-upload",8),i.\u0275\u0275listener("selectUploadedFiles",function(c){return r.onUpload(c)}),i.\u0275\u0275elementStart(25,"div",9),i.\u0275\u0275text(26,"Select your files to upload"),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(27,"h4",4),i.\u0275\u0275text(28,"Custom upload"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(29,"div",5),i.\u0275\u0275element(30,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(31,"div",5),i.\u0275\u0275element(32,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(33,"div",5),i.\u0275\u0275element(34,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(35,"div",5),i.\u0275\u0275element(36,"aui-code-snippet",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(37,"aui-upload-zone",10),i.\u0275\u0275listener("invalidFiles",function(c){return r.onInvalidFiles(c)})("queuedFiles",function(c){return r.onQueuedFiles(c)})("uploadedFiles",function(c){return r.onUploadedFiles(c)}),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(38,"aui-upload-queue",11),i.\u0275\u0275template(39,iU,10,1,"div",12),i.\u0275\u0275elementStart(40,"button",13),i.\u0275\u0275listener("click",function(){return r.uploadFiles()}),i.\u0275\u0275text(41," Send\n"),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(6),i.\u0275\u0275property("codeSnippet",r.uploadImportExample),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.uploadExampleJS1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.uploadExampleHTML1),i.\u0275\u0275advance(4),i.\u0275\u0275property("options",r.dropzone1)("accept",r.accept),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.uploadExampleJS2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.uploadExampleHTML2),i.\u0275\u0275advance(2),i.\u0275\u0275property("options",r.dropzone2),i.\u0275\u0275advance(6),i.\u0275\u0275property("codeSnippet",r.uploadExampleJS3),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.uploadExampleJS4),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.uploadExampleSCSS),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.uploadExampleHTML3),i.\u0275\u0275advance(1),i.\u0275\u0275property("uploader",r.uploader)("capture",r.capture),i.\u0275\u0275advance(1),i.\u0275\u0275property("files",r.queuedFiles),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.showError),i.\u0275\u0275advance(1),i.\u0275\u0275property("disabled",0===r.queuedFiles.length))},dependencies:[Tt,Bl,nU,aP,lP,Re],encapsulation:2})),t})(),oU=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:3,vars:0,consts:[[1,"h3","u-margin-bottom"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Layout"),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(2,"router-outlet"))},dependencies:[qs],encapsulation:2})),t})(),dP=(()=>{class t{constructor(){_(this,"domain",void 0),_(this,"currentYear",(new Date).getFullYear())}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-copyright"]],inputs:{domain:"domain"},decls:2,vars:2,template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"span"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate2("\xa9 ",r.currentYear," ",r.domain,""))},encapsulation:2,changeDetection:0})),t})(),V1=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275dir",i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFooterContent",""]]})),t})();const sU=[[["","auiFooterContent",""]],[["","auiFooterBottom",""]]],aU=function(t){return{extended:t}},lU=["[auiFooterContent]","[auiFooterBottom]"];let hP=(()=>{class t{constructor(e){_(this,"ref",void 0),_(this,"footerContent",void 0),_(this,"isExtended",!1),this.ref=e}ngAfterContentChecked(){const e=void 0!==this.footerContent;e!==this.isExtended&&(this.isExtended=e,this.ref.markForCheck())}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ChangeDetectorRef))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-footer"]],contentQueries:function(e,r,o){if(1&e&&i.\u0275\u0275contentQuery(o,V1,7),2&e){let c;i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.footerContent=c.first)}},ngContentSelectors:lU,decls:3,vars:3,consts:[[1,"aui-footer",3,"ngClass"]],template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(sU),i.\u0275\u0275elementStart(0,"footer",0),i.\u0275\u0275projection(1),i.\u0275\u0275projection(2,1),i.\u0275\u0275elementEnd()),2&e&&i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(1,aU,r.isExtended))},dependencies:[ze],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})),t})();const uU=["*"];let fP=(()=>{class t{constructor(){_(this,"ariaGoUpLabel","Ga terug naar boven")}goToTop(){window.scrollTo(0,0)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-subfooter"]],inputs:{ariaGoUpLabel:"ariaGoUpLabel"},ngContentSelectors:uU,decls:5,vars:1,consts:[[1,"o-footer"],[1,"o-footer__label"],["type","button",1,"o-footer__button","a-button","a-button--secondary","has-icon",3,"click"],["name","ai-arrow-up-1"]],template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"div",0)(1,"div",1),i.\u0275\u0275projection(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"button",2),i.\u0275\u0275listener("click",function(){return r.goToTop()}),i.\u0275\u0275element(4,"aui-icon",3),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275attribute("aria-label",r.ariaGoUpLabel))},dependencies:[Gt],encapsulation:2,changeDetection:0})),t})(),pP=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275dir",i.\u0275\u0275defineDirective({type:t,selectors:[["","auiFooterBottom",""]]})),t})(),cU=(()=>{class t{constructor(){_(this,"footer1","import { FooterModule } from '@acpaas-ui/ngx-layout';\n\n@NgModule({\n\timports: [\n\t\tFooterModule,\n\t]\n});\n\nexport class AppModule {};"),_(this,"footer2",'\n\t
    \n\t\t
    \n\t\t\tFooter content goes here\n\t\t
    \n\t\t
    \n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
    \n\t
    \n
    ')}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:14,vars:2,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom-3xl"],["isExtended","false"],[1,"u-margin-bottom","u-margin-top"],["auiFooterContent",""],["auiFooterBottom",""],["domain","Digipolis"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Footer"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",3)(7,"aui-footer",4)(8,"div",5)(9,"div",6),i.\u0275\u0275text(10,"Footer content goes here"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(11,"div",7)(12,"aui-subfooter"),i.\u0275\u0275element(13,"aui-copyright",8),i.\u0275\u0275elementEnd()()()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.footer1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.footer2))},dependencies:[dP,hP,fP,pP,V1,Tt],encapsulation:2})),t})(),dU=(()=>{class t{constructor(){_(this,"header1","import { HeaderModule } from '@acpaas-ui/ngx-layout';\n\n@NgModule({\n\timports: [\n\t\tHeaderModule,\n\t]\n});\n\nexport class AppModule {};"),_(this,"header2",'\n\t
    \n\t\t\n\t
    \n\t
    \x3c!-- Optional --\x3e
    \n\t
    \n\n')}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:10,vars:2,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom-3xl"],[1,"m-alert"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Header"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",3)(7,"div",4)(8,"p"),i.\u0275\u0275text(9,"The header on this page is a working example of the demo code."),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.header1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.header2))},dependencies:[Tt],encapsulation:2})),t})();class mP{constructor(n){_(this,"modalService",void 0),_(this,"ref",null),this.modalService=n}closeModal(){this.modalService.closeModal(this.ref)}}var pU=function(){try{var t=Pc(Object,"defineProperty");return t({},"",{}),t}catch{}}();const gP=pU,_P=function mU(t,n,e){"__proto__"==n&&gP?gP(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e};var _U=Object.prototype.hasOwnProperty;const vP=function vU(t,n,e){var r=t[n];(!_U.call(t,n)||!BC(r,e)||void 0===e&&!(n in t))&&_P(t,n,e)},ow=function yU(t,n,e,r){var o=!e;e||(e={});for(var c=-1,h=n.length;++c{class t{constructor(e){_(this,"ref",void 0),_(this,"mouseDownInsideOverlay",void 0),_(this,"theme","dark"),_(this,"title","Modal"),_(this,"modal",void 0),this.ref=e}get overlayClass(){return`m-overlay m-overlay--${this.theme} is-active`}get ariaLabel(){return this.title}mouseDownHandler(e){const r=this.ref.nativeElement.querySelector(".m-modal");this.mouseDownInsideOverlay=r&&(e.target===r||r.contains(e.target))}mouseUpHandler(e){const r=this.ref.nativeElement.querySelector(".m-modal");r&&(e.target===r||r.contains(e.target))||this.mouseDownInsideOverlay||this.modal.instance.closeModal()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(i.ElementRef))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-modal-overlay"]],hostVars:3,hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("touchstart",function(c){return r.mouseDownHandler(c)})("mousedown",function(c){return r.mouseDownHandler(c)})("touchend",function(c){return r.mouseUpHandler(c)})("mouseup",function(c){return r.mouseUpHandler(c)}),2&e&&(i.\u0275\u0275attribute("aria-label",r.ariaLabel),i.\u0275\u0275classMap(r.overlayClass))},ngContentSelectors:y4,decls:2,vars:0,template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"section"),i.\u0275\u0275projection(1),i.\u0275\u0275elementEnd())},encapsulation:2})),t})(),aw=(()=>{class t{constructor(e,r,o){_(this,"injector",void 0),_(this,"resolver",void 0),_(this,"appRef",void 0),_(this,"activeModals",[]),this.injector=e,this.resolver=r,this.appRef=o}openModal(e,r,o,c={}){const h=this.createRef(e);h.instance.ref=h,h.instance.modalData=function m4(t){return h4(t,5)}(r),h.instance.modalActions=o;const y=this.createRef(b4,[[h.location.nativeElement]]);return y.instance.modal=h,y.instance.title=h.instance.modalData&&h.instance.modalData.title?h.instance.modalData.title:"Modal",y.instance.theme=c.theme||"dark",this.activeModals.push({modal:h,overlay:y}),this.appendRefs(y),h}closeModal(e){const r=this.activeModals.findIndex(c=>c.modal===e);if(r<0)return;const o=this.activeModals[r];o.modal.destroy(),o.overlay.destroy(),this.activeModals.splice(r,1)}closeLast(){const e=function _4(t){var n=null==t?0:t.length;return n?t[n-1]:void 0}(this.activeModals);e&&this.closeModal(e.modal)}createRef(e,r){const c=this.resolver.resolveComponentFactory(e).create(this.injector,r);return this.appRef.attachView(c.hostView),c.onDestroy(()=>this.appRef.detachView(c.hostView)),c}appendRefs(...e){const r=Bi(this.appRef,"components[0].location.nativeElement",null);r&&e.forEach(o=>{r.appendChild(o.location.nativeElement)})}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275inject(i.Injector),i.\u0275\u0275inject(i.ComponentFactoryResolver),i.\u0275\u0275inject(i.ApplicationRef))}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})(),C4=(()=>{class t extends mP{constructor(e){super(e),_(this,"modalService",void 0),_(this,"modalData",void 0),this.modalService=e}submitAndCloseModal(){console.log("Submit!"),this.closeModal()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(aw))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-modal"]],features:[i.\u0275\u0275InheritDefinitionFeature],decls:15,vars:2,consts:[["role","dialog","aria-modal","true","aria-labelledby","myModalTitle","aria-describedby","myModelDesc",1,"m-modal"],[1,"m-modal__content"],[1,"m-modal__header","u-margin-bottom-xs"],["type","button",1,"m-modal__close","a-button","a-button--text","a-button--neutral","has-icon",3,"click"],["name","ai-close"],["id","myModalTitle"],[1,"u-margin-bottom"],["id","myModelDesc"],[1,"m-modal__footer"],["type","button",1,"a-button",3,"click"],["type","button",1,"a-button","a-button--outlined",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),i.\u0275\u0275listener("click",function(){return r.closeModal()}),i.\u0275\u0275element(4,"aui-icon",4),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(5,"h6",5),i.\u0275\u0275text(6),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(7,"div",6)(8,"p",7),i.\u0275\u0275text(9),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(10,"div",8)(11,"button",9),i.\u0275\u0275listener("click",function(){return r.submitAndCloseModal()}),i.\u0275\u0275text(12,"Close Modal"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(13,"button",10),i.\u0275\u0275listener("click",function(){return r.closeModal()}),i.\u0275\u0275text(14,"Cancel"),i.\u0275\u0275elementEnd()()()()),2&e&&(i.\u0275\u0275advance(6),i.\u0275\u0275textInterpolate(r.modalData.title),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(r.modalData.text))},dependencies:[Bl],encapsulation:2})),t})();const w4=["titleContainer"];let E4=(()=>{class t extends mP{constructor(e){super(e),_(this,"modalService",void 0),_(this,"titleContainer",void 0),_(this,"modalData",void 0),_(this,"modalActions",void 0),_(this,"titleId",void 0),_(this,"descId",void 0),_(this,"closeButtonAriaLabel","Sluiten"),_(this,"headerElement",void 0),_(this,"headerTag","h4"),_(this,"headerTags",{h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"}),this.modalService=e}ngOnInit(){this.titleId="aui-modal-"+Math.random().toString(36).substring(2),this.descId="aui-modal-"+Math.random().toString(36).substring(2),this.modalData=this.modalData||{question:"Vraag?",description:"Beschrijving\u2026",approve:"OK",reject:"Annuleren",closeButtonAriaLabel:"Sluiten",headerTag:"h4"},this.header(this.headerTags[this.modalData.headerTag||this.headerTag])}submit(){this.verifyAction("approve").then(()=>this.closeModal())}close(){this.verifyAction("reject").then(()=>this.closeModal())}verifyAction(e){return Bi(this.modalActions,e)?this.modalActions[e]():Promise.resolve()}header(e){this.headerElement=document.createElement(e),this.headerElement.id=this.titleId,this.headerElement.innerHTML=this.modalData.question,this.titleContainer.nativeElement.appendChild(this.headerElement)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(aw))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-approve-modal"]],viewQuery:function(e,r){if(1&e&&i.\u0275\u0275viewQuery(w4,7),2&e){let o;i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.titleContainer=o.first)}},features:[i.\u0275\u0275InheritDefinitionFeature],decls:14,vars:8,consts:[["aria-modal","true","role","dialog",1,"m-modal"],[1,"m-modal__content"],[1,"m-modal__header","u-margin-bottom-xs"],["titleContainer",""],["type","button",1,"m-modal__close","a-button","a-button--text","a-button--neutral","has-icon",3,"click"],["name","ai-close",3,"ariaLabel"],[1,"u-margin-bottom"],[3,"id"],[1,"m-modal__footer"],["type","button",1,"a-button",3,"click"],["type","button",1,"a-button","a-button--outlined",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2,3)(4,"button",4),i.\u0275\u0275listener("click",function(){return r.close()}),i.\u0275\u0275element(5,"aui-icon",5),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(6,"div",6)(7,"p",7),i.\u0275\u0275text(8),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(9,"div",8)(10,"button",9),i.\u0275\u0275listener("click",function(){return r.close()}),i.\u0275\u0275text(11),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"button",10),i.\u0275\u0275listener("click",function(){return r.submit()}),i.\u0275\u0275text(13),i.\u0275\u0275elementEnd()()()()),2&e&&(i.\u0275\u0275attribute("aria-describedby",r.descId)("aria-labelledby",r.titleId),i.\u0275\u0275advance(4),i.\u0275\u0275attribute("aria-label",r.modalData.closeButtonAriaLabel||r.closeButtonAriaLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ariaLabel",r.modalData.reject),i.\u0275\u0275advance(2),i.\u0275\u0275property("id",r.descId),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(r.modalData.description),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(r.modalData.reject),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(r.modalData.approve))},dependencies:[Gt],encapsulation:2})),t})(),D4=(()=>{class t{constructor(e){_(this,"modalService",void 0),_(this,"modal1",'import { Component, Input } from \'@angular/core\';\nimport { ModalAbstract, ModalService } from \'@acpaas-ui/ngx-layout\';\n\n@Component({\n selector: \'aui-modal\',\n template: ``,\n})\nexport class AUIDemoModalComponent extends ModalAbstract {\n public modalData: any;\n\n constructor(\n public modalService: ModalService\n ) {\n super(modalService);\n }\n\n public submitAndCloseModal() {\n console.log(\'Submit!\');\n this.closeModal();\n }\n}\n'),_(this,"modal2","constructor(\n private modalService: ModalService\n) {}\n\npublic openModal() {\n this.modalService.openModal(\n AUIDemoModalComponent,\n {\n title: 'Modal demo',\n text: 'Are you sure you want to see a demo of this modal?',\n }, {\n confirm: () => this.doSomething(),\n }\n );\n}\n\nprivate doSomething() {\n return new Promise((resolve, reject) => {\n return resolve();\n });\n}"),_(this,"modal3",''),_(this,"modal4","import { ApproveModalComponent } from '@acpaas-ui/ngx-layout';"),_(this,"modal5","public openApproveModal() {\n this.modalService.openModal(ApproveModalComponent, {\n question: 'Are you sure you want to close this demo modal?',\n description: 'This action can be undone.',\n approve: 'Close demo modal',\n reject: 'Cancel'\n }, {\n approve: () => this.doSomething(),\n reject: () => this.doSomethingElse()\n });\n\n private doSomething() {\n return new Promise((resolve, reject) => {\n return resolve();\n });\n }\n\n private doSomethingElse() {\n return new Promise((resolve, reject) => {\n return resolve();\n });\n }\n}"),_(this,"modal6",''),this.modalService=e}openModal(){this.modalService.openModal(C4,{title:"Modal demo",text:"Are you sure you want to see a demo of this modal?"},{confirm:()=>this.doSomething()})}openApproveModal(){this.modalService.openModal(E4,{question:"Are you sure you want to close this demo modal?",description:"This action can be undone.",approve:"Close demo modal",reject:"Cancel",closeButtonAriaLabel:"Sluiten",headerTag:"h6"},{approve:()=>this.doSomething(),reject:()=>this.doSomethingElse()})}doSomething(){return new Promise((e,r)=>e(null))}doSomethingElse(){return new Promise((e,r)=>e(null))}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(aw))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:34,vars:6,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom-l"],["type","button",1,"a-button",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Modal"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1)(3,"p"),i.\u0275\u0275text(4,"First, create a separate modal controller."),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(5,"div",1),i.\u0275\u0275element(6,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(7,"div",1)(8,"p"),i.\u0275\u0275text(9,"Then, integrate the modal into your page."),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(10,"div",1),i.\u0275\u0275element(11,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"div",1),i.\u0275\u0275element(13,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(14,"div",3)(15,"button",4),i.\u0275\u0275listener("click",function(){return r.openModal()}),i.\u0275\u0275text(16,"Open modal"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(17,"h3",0),i.\u0275\u0275text(18,"Approve modal"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(19,"div",1)(20,"p"),i.\u0275\u0275text(21,"In your controller:"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(22,"div",1),i.\u0275\u0275element(23,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(24,"div",1),i.\u0275\u0275element(25,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(26,"div",1)(27,"p"),i.\u0275\u0275text(28,"In your template:"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(29,"div",1),i.\u0275\u0275element(30,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(31,"div",1)(32,"button",4),i.\u0275\u0275listener("click",function(){return r.openApproveModal()}),i.\u0275\u0275text(33,"Open approve modal"),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(6),i.\u0275\u0275property("codeSnippet",r.modal1),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.modal2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.modal3),i.\u0275\u0275advance(10),i.\u0275\u0275property("codeSnippet",r.modal4),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.modal5),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.modal6))},dependencies:[Tt],encapsulation:2})),t})(),S4=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:3,vars:0,consts:[[1,"h3","u-margin-bottom"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Utils"),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(2,"router-outlet"))},dependencies:[qs],encapsulation:2})),t})(),OP=(()=>{class t{filterData(e,r){return r.forEach(o=>{e=o.parseData(e)}),e}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})(),kP=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[OP],imports:[Ke,cn,er,Tl]})),t})();class U1{constructor(){_(this,"id",void 0),_(this,"name",void 0),_(this,"options",void 0),_(this,"value",void 0),_(this,"parse",void 0)}parseData(n){return this.parse(n,this.value)}}const RP=(t,n)=>{if(!n)return t;const r=new RegExp(`%{(${Object.keys(n).map(o=>o.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")).join("|")})}`,"g");return t.replace(r,(o,c)=>n[c]?String(n[c]):"")};let FP=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({})),t})();const NP=new i.InjectionToken("WindowToken");class z1{get nativeWindow(){throw new Error("Not implemented.")}}const I4={provide:NP,useFactory:function M4(t,n){return Vo(n)?t.nativeWindow:{}},deps:[z1,i.PLATFORM_ID]},P4=[{provide:z1,useClass:class T4 extends z1{constructor(){super()}get nativeWindow(){return window}}},I4];let BP=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[P4]})),t})();function L4(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"li",3)(1,"form",4)(2,"div",5)(3,"div",6),i.\u0275\u0275element(4,"input",7),i.\u0275\u0275elementStart(5,"label",8),i.\u0275\u0275text(6),i.\u0275\u0275elementEnd()()()()()),2&t){const e=n.$implicit,r=n.index,o=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275property("formGroup",o.form),i.\u0275\u0275advance(3),i.\u0275\u0275property("formControl",e)("id",o.filter.options[r].id)("name",o.filter.options[r].name),i.\u0275\u0275advance(1),i.\u0275\u0275property("for",o.filter.options[r].id),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(o.filter.options[r].name)}}function A4(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"ul",1),i.\u0275\u0275template(1,L4,7,6,"li",2),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e.options.controls)}}let O4=(()=>{class t{constructor(e){_(this,"formBuilder",void 0),_(this,"filter",void 0),_(this,"update",new i.EventEmitter),_(this,"form",void 0),_(this,"value",void 0),_(this,"destroy$",new vt.xQ),this.formBuilder=e}ngOnInit(){this.form=this.formBuilder.group({options:this.buildCheckboxes(this.filter.options)}),this.filter&&(this.value=this.filter.value),this.options.valueChanges.pipe((0,Xe.U)(e=>e.map((r,o)=>!0===r?this.filter.options[o]:null)),(0,Xe.U)(e=>e.filter(r=>null!==r)),$t(e=>this.value=e),$t(e=>this.update.next(e)),Bn(this.destroy$)).subscribe()}buildCheckboxes(e){return new Dl([...e.map(r=>this.formBuilder.control(r.checked))])}get options(){return this.form.get("options")}onFilter(e){this.update.emit(e)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(Sl))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-checkbox-filter"]],inputs:{filter:"filter"},outputs:{update:"update"},decls:1,vars:1,consts:[["class","a-checkbox-list aui-checkbox-filter",4,"ngIf"],[1,"a-checkbox-list","aui-checkbox-filter"],["class","a-checkbox-list__item",4,"ngFor","ngForOf"],[1,"a-checkbox-list__item"],[3,"formGroup"],[1,"a-input","a-checkbox-list__checkbox"],[1,"a-input__checkbox"],["type","checkbox",3,"formControl","id","name"],[3,"for"]],template:function(e,r){1&e&&i.\u0275\u0275template(0,A4,2,1,"ul",0),2&e&&i.\u0275\u0275property("ngIf",r.filter&&r.filter.options&&r.filter.id)},dependencies:[re,Re,Vh,Er,In,Ku,Eo,ss],encapsulation:2})),t})();function k4(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275elementStart(1,"div",2)(2,"input",3),i.\u0275\u0275listener("ngModelChange",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.onFilter(o.value))})("ngModelChange",function(o){i.\u0275\u0275restoreView(e);const c=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(c.value=o)}),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(3,"aui-icon",4),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementContainerEnd()}if(2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275property("ngModel",e.value)("id",e.filter.id)("placeholder",e.filter.name),i.\u0275\u0275attribute("aria-label",e.filter.name)}}let R4=(()=>{class t{constructor(){_(this,"filter",void 0),_(this,"update",new i.EventEmitter),_(this,"value",void 0)}ngOnInit(){this.filter&&(this.value=this.filter.value)}onFilter(e){this.update.emit(e)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-input-filter"]],inputs:{filter:"filter"},outputs:{update:"update"},decls:2,vars:1,consts:[[1,"a-input","has-icon-right","aui-input-filter"],[4,"ngIf"],[1,"a-input__wrapper"],["type","text",3,"ngModel","id","placeholder","ngModelChange"],["name","ai-search"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,k4,4,4,"ng-container",1),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.filter))},dependencies:[Re,Gt,Di,In,Xi],encapsulation:2})),t})();function F4(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"option",7),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit;i.\u0275\u0275property("value",e.id),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.name)}}function N4(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275elementStart(1,"label",2),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"div",3)(4,"select",4),i.\u0275\u0275template(5,F4,2,2,"option",5),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(6,"aui-icon",6),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("for",e.filter.id),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("",e.filter.name,": "),i.\u0275\u0275advance(2),i.\u0275\u0275property("formControl",e.select)("id",e.filter.id)("name",e.filter.id),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",e.filter.options)}}let B4=(()=>{class t{constructor(){_(this,"filter",void 0),_(this,"update",new i.EventEmitter),_(this,"select",new ic),_(this,"value",void 0),_(this,"destroy$",new vt.xQ)}ngOnInit(){this.filter&&this.filter.value&&(this.value=this.filter.value,this.select.setValue(this.filter.value.id)),this.select.valueChanges.pipe((0,Xe.U)(e=>this.filter.options.find(r=>r.id===e)),$t(e=>this.update.next(e)),Bn(this.destroy$)).subscribe()}onFilter(e){this.update.emit(e)}ngOnDestroy(){this.destroy$.next(void 0),this.destroy$.complete()}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-select-filter"]],inputs:{filter:"filter"},outputs:{update:"update"},decls:2,vars:1,consts:[[1,"a-input","has-icon-right","aui-select-filter"],[4,"ngIf"],[1,"a-input__label","a-input__label--inline",3,"for"],[1,"a-input__wrapper","a-input__wrapper--inline"],[3,"formControl","id","name"],[3,"value",4,"ngFor","ngForOf"],["name","ai-arrow-down-1"],[3,"value"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,N4,7,6,"ng-container",1),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.filter&&r.filter.options&&r.filter.id))},dependencies:[re,Re,Gt,ea,na,Do,In,Eo],encapsulation:2})),t})(),V4=(()=>{class t{constructor(e){_(this,"filterService",void 0),_(this,"searchFilter",new U1),_(this,"checkFilter",new U1),_(this,"selectFilter",new U1),_(this,"searchResults",[]),_(this,"checkResults",[]),_(this,"selectResults",[]),_(this,"heroList",[{id:"id1",name:"Batman"},{id:"id2",name:"Wonder Woman"},{id:"id3",name:"Wolverine"},{id:"id4",name:"Iron Man"},{id:"id5",name:"Deadpool"}]),_(this,"importModule","import { FilterModule } from '@acpaas-ui/ngx-utils';\n\n\t@NgModule({\n\t\timports: [\n\t\t\tFilterModule\n\t\t]\n\t})"),_(this,"codeExampleJS1","import { Filter, FilterService } from '@acpaas-ui/ngx-utils';\n\n\tpublic searchFilter = new Filter();\n\tpublic checkFilter = new Filter();\n\tpublic selectFilter = new Filter();\n\tpublic heroList = [\n\t\t{ id: 'id1', name: 'Batman' },\n\t\t{ id: 'id2', name: 'Wonder Woman' },\n\t\t{ id: 'id3', name: 'Wolverine' },\n\t\t{ id: 'id4', name: 'Iron Man' },\n\t\t{ id: 'id5', name: 'Deadpool' },\n\t];"),_(this,"codeExampleJS2","constructor(public filterService: FilterService) {}"),_(this,"codeExampleJS3","this.checkFilter.id = 'checkFilter';\nthis.checkFilter.name = 'Checkbox filter';\nthis.checkFilter.options = this.heroList;\nthis.checkFilter.value = [];\nthis.checkFilter.parse = (data, value) => {\n\tif (!value || value.length === 0) {\n\t\t\treturn;\n\t}\n\tconst result = [];\n\tdata.filter((o) => {\n\t\tvalue.forEach( i => {\n\t\t\tif ((o.id.toLowerCase()).indexOf(i.id.toLowerCase()) !== -1) {\n\t\t\t\tresult.push(i);\n\t\t\t}\n\t\t});\n\t});\n\treturn result;\n};\n\npublic changeCheckFilter(value) {\n\t// Update filter value\n\tthis.checkFilter.value = value;\n\t// Filter data\n\tthis.checkResults = this.filterService.filterData(this.heroList, [this.checkFilter]);\n}"),_(this,"codeExampleJS4","this.searchFilter.id = 'searchFilter';\nthis.searchFilter.name = 'Search here...';\nthis.searchFilter.value = '';\nthis.searchFilter.parse = (data, value) => {\n\tif (!value || value.length === 0) {\n\t\treturn ;\n\t\t}\n\t\treturn data.filter((o) => {\n\t\t\treturn (o.name.toLowerCase()).indexOf(value.toLowerCase()) !== -1;\n\t\t});\n};\n\npublic changeSearchFilter(value) {\n\tthis.searchFilter.value = value;\n\tthis.searchResults = this.filterService.filterData(this.heroList, [this.searchFilter]);\n}"),_(this,"codeExampleJS5","this.selectFilter.id = 'selectFilter';\nthis.selectFilter.name = 'Select your hero';\nthis.selectFilter.options = this.heroList;\nthis.selectFilter.value = [];\nthis.selectFilter.parse = (data, value) => {\n\tif (!value || value.length === 0) {\n\t\treturn;\n\t}\n\n\treturn data.filter((o) => {\n\t\treturn (o.id.toLowerCase()).indexOf(value.id.toLowerCase()) !== -1;\n\t});\n};\n\npublic changeSelectFilter(value) {\n\tthis.selectFilter.value = value;\n\tthis.selectResults = this.filterService.filterData(this.heroList, [this.selectFilter]);\n}"),_(this,"codeExampleHTML1",''),_(this,"codeExampleHTML2",''),_(this,"codeExampleHTML3",''),this.filterService=e}ngOnInit(){this.checkFilter.id="checkFilter",this.checkFilter.name="Checkbox filter",this.checkFilter.options=this.heroList,this.checkFilter.value=[],this.checkFilter.parse=(e,r)=>{if(!r||0===r.length)return;const o=[];return e.filter(c=>{r.forEach(h=>{-1!==c.id.toLowerCase().indexOf(h.id.toLowerCase())&&o.push(h)})}),o},this.searchFilter.id="searchFilter",this.searchFilter.name="Search here...",this.searchFilter.value="",this.searchFilter.parse=(e,r)=>{if(r&&0!==r.length)return e.filter(o=>-1!==o.name.toLowerCase().indexOf(r.toLowerCase()))},this.selectFilter.id="selectFilter",this.selectFilter.name="Select your hero",this.selectFilter.options=this.heroList,this.selectFilter.value=[],this.selectFilter.parse=(e,r)=>{if(r&&0!==r.length)return e.filter(o=>-1!==o.id.toLowerCase().indexOf(r.id.toLowerCase()))}}changeSearchFilter(e){this.searchFilter.value=e,this.searchResults=this.filterService.filterData(this.heroList,[this.searchFilter])}changeCheckFilter(e){this.checkFilter.value=e,this.checkResults=this.filterService.filterData(this.heroList,[this.checkFilter])}changeSelectFilter(e){this.selectFilter.value=e,this.selectResults=this.filterService.filterData(this.heroList,[this.selectFilter])}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(OP))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:44,vars:21,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"h5","u-margin-bottom"],[3,"filter","update"],[1,"a-pre","a-pre--scrollable"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Filter"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"h4",3),i.\u0275\u0275text(9,"Checkbox filter"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",1),i.\u0275\u0275element(11,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"div",1),i.\u0275\u0275element(13,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(14,"div",1)(15,"aui-checkbox-filter",4),i.\u0275\u0275listener("update",function(c){return r.changeCheckFilter(c)}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(16,"div",1)(17,"pre",5),i.\u0275\u0275text(18),i.\u0275\u0275pipe(19,"json"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(20,"h4",3),i.\u0275\u0275text(21,"Input filter"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(22,"div",1),i.\u0275\u0275element(23,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(24,"div",1),i.\u0275\u0275element(25,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(26,"div",1)(27,"aui-input-filter",4),i.\u0275\u0275listener("update",function(c){return r.changeSearchFilter(c)}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(28,"div",1)(29,"pre",5),i.\u0275\u0275text(30),i.\u0275\u0275pipe(31,"json"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(32,"h4",3),i.\u0275\u0275text(33,"Select filter"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(34,"div",1),i.\u0275\u0275element(35,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(36,"div",1),i.\u0275\u0275element(37,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(38,"div",1)(39,"aui-select-filter",4),i.\u0275\u0275listener("update",function(c){return r.changeSelectFilter(c)}),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(40,"div",1)(41,"pre",5),i.\u0275\u0275text(42),i.\u0275\u0275pipe(43,"json"),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.importModule),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS2),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.codeExampleJS3),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML1),i.\u0275\u0275advance(2),i.\u0275\u0275property("filter",r.checkFilter),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind1(19,15,r.checkResults)),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.codeExampleJS4),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML2),i.\u0275\u0275advance(2),i.\u0275\u0275property("filter",r.searchFilter),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind1(31,17,r.searchResults)),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.codeExampleJS5),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML3),i.\u0275\u0275advance(2),i.\u0275\u0275property("filter",r.selectFilter),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind1(43,19,r.selectResults)))},dependencies:[Tt,O4,R4,B4,Nt],encapsulation:2})),t})(),j4=(()=>{class t{transform(e,r){return e&&"string"!=typeof e?1===r?e.singular:e.plural:e}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275pipe",i.\u0275\u0275definePipe({name:"pluralizeLabel",type:t,pure:!0})),t})(),H4=(()=>{class t{transform(e,r){return r&&e?RP(e,r):e}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275pipe",i.\u0275\u0275definePipe({name:"interpolateLabel",type:t,pure:!0})),t})(),U4=(()=>{class t{constructor(){_(this,"interpolateMessage","This %{text} requires your attention."),_(this,"interpolateString",{text:"message"}),_(this,"pluralizeMessage",{singular:"This %{text} requires your attention.",plural:"These %{text}s require your attention."}),_(this,"pluralizeMail",{singular:"This mail requires your attention.",plural:"These mails require your attention."}),_(this,"remainingMessages",{remaining:3}),_(this,"toggle",!0),_(this,"importModule","import { LabelsModule } from '@acpaas-ui/ngx-utils';\n\n@NgModule({\n\timports: [\n\t\tLabelsModule\n\t],\n})\n\nexport class AppModule {};"),_(this,"codeExampleJS1","import { Label, interpolate } from '@acpaas-ui/ngx-utils';"),_(this,"codeExampleJS2","public interpolateValue() {\n\tconst interpolatedValue = interpolate('This is number %{number} of an interpolated %{text}.', {text: 'message', number: 1});\n\treturn interpolatedValue;\n}"),_(this,"codeExampleJS3","public interpolateMessage = 'This %{text} requires your attention.';\n\npublic interpolateString = {\n\ttext: 'message',\n};"),_(this,"codeExampleJS4","public pluralizeMail: Label = {\n\tsingular: 'This mail requires your attention.',\n\tplural: 'These mails require your attention.',\n};\n\npublic get amount() { return this.toggle ? { value: 1 } : { value: 0 }; }\n\npublic toggleAmount() { this.toggle = !this.toggle; }"),_(this,"codeExampleJS5","public interpolateString = {\n\ttext: 'message',\n};\n\npublic pluralizeMessage: Label = {\n\tsingular: 'This %{text} requires your attention.',\n\tplural: 'These %{text}s require your attention.',\n};\n\npublic remainingMessages = {\n\tremaining: 3,\n};"),_(this,"codeExampleHTML1","{{ interpolateValue() }}"),_(this,"codeExampleHTML2",''),_(this,"codeExampleHTML3",'\n\n{{ pluralizeMail | pluralizeLabel:amount.value }}'),_(this,"codeExampleHTML4","{{ pluralizeMessage | pluralizeLabel:remainingMessages.remaining | interpolateLabel:interpolateString }}")}get amount(){return this.toggle?{description:"singular",value:1}:{description:"plural",value:0}}interpolateValue(){return RP("This is number %{number} of an interpolated %{text}.",{text:"message",number:1})}toggleAmount(){this.toggle=!this.toggle}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:56,vars:27,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom-l"],[1,"h5","u-margin-bottom"],[1,"u-text-bold"],[1,"a-pre","a-pre--scrollable"],[3,"innerHTML"],["type","button",1,"a-button","u-margin-bottom",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Labels"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",3),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"h4",4),i.\u0275\u0275text(7,"Interpolate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",1),i.\u0275\u0275element(9,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",1),i.\u0275\u0275element(11,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"div",3)(13,"p",5),i.\u0275\u0275text(14,"String interpolated through function:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(15,"pre",6),i.\u0275\u0275text(16),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(17,"h4",4),i.\u0275\u0275text(18,"InterpolateLabelPipe"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(19,"div",1),i.\u0275\u0275element(20,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(21,"div",1),i.\u0275\u0275element(22,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(23,"div",3)(24,"p",5),i.\u0275\u0275text(25,"String interpolated through pipe:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(26,"pre",6),i.\u0275\u0275element(27,"span",7),i.\u0275\u0275pipe(28,"interpolateLabel"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(29,"h4",4),i.\u0275\u0275text(30,"PluralizeLabelPipe"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(31,"div",1),i.\u0275\u0275element(32,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(33,"div",1),i.\u0275\u0275element(34,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(35,"button",8),i.\u0275\u0275listener("click",function(){return r.toggleAmount()}),i.\u0275\u0275text(36,"Toggle amount"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(37,"div",3)(38,"p",5),i.\u0275\u0275text(39),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(40,"pre",6),i.\u0275\u0275text(41),i.\u0275\u0275pipe(42,"pluralizeLabel"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(43,"h4",4),i.\u0275\u0275text(44,"Combine label pipes"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(45,"div",1),i.\u0275\u0275element(46,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(47,"div",1),i.\u0275\u0275element(48,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(49,"div",1)(50,"p",5),i.\u0275\u0275text(51,"Interpolated and pluralized string:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(52,"pre",6),i.\u0275\u0275text(53),i.\u0275\u0275pipe(54,"interpolateLabel"),i.\u0275\u0275pipe(55,"pluralizeLabel"),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.importModule),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS1),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.codeExampleJS2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML1),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate(r.interpolateValue()),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.codeExampleJS3),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML2),i.\u0275\u0275advance(5),i.\u0275\u0275property("innerHTML",i.\u0275\u0275pipeBind2(28,15,r.interpolateMessage,r.interpolateString),i.\u0275\u0275sanitizeHtml),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.codeExampleJS4),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML3),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate1("Interpolated string in ",r.amount.description,":"),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind2(42,18,r.pluralizeMail,r.amount.value)),i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.codeExampleJS5),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML4),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind2(54,21,i.\u0275\u0275pipeBind2(55,24,r.pluralizeMessage,r.remainingMessages.remaining),r.interpolateString)))},dependencies:[Tt,j4,H4],encapsulation:2})),t})(),z4=(()=>{class t{constructor(e){_(this,"window",void 0),_(this,"importModule","import { WindowModule, WINDOW_PROVIDERS } from '@acpaas-ui/ngx-utils';\n\n@NgModule({\n\timports: [\n\t\tWindowModule\n\t],\n\tproviders: [WINDOW_PROVIDERS],\n})\n\nexport class AppModule {};"),_(this,"codeExampleJS1","import { WINDOW } from '@acpaas-ui/ngx-utils';"),_(this,"codeExampleJS2","constructor(\n\t@Inject(WINDOW) public window\n) {}"),_(this,"codeExampleHTML",'
    \n\t
    Height:
    \n\t\t
    {{ window.innerHeight }}
    \n\t
    Width:
    \n\t\t
    {{ window.innerWidth }}
    \n
    '),this.window=e}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(NP))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:25,vars:6,consts:[[1,"h4","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-bottom-xs"],[1,"a-definition-list","u-margin-bottom"],[1,"a-pre","a-pre--scrollable"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Window"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"p",1),i.\u0275\u0275text(3," Utility to reference the global window object indirectly.\n"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",1),i.\u0275\u0275element(9,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",1),i.\u0275\u0275element(11,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"p",3),i.\u0275\u0275text(13," These are the window's current height and width:\n"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(14,"dl",4)(15,"dt"),i.\u0275\u0275text(16,"Height:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(17,"dd")(18,"pre",5),i.\u0275\u0275text(19),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(20,"dt"),i.\u0275\u0275text(21,"Width:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(22,"dd")(23,"pre",5),i.\u0275\u0275text(24),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(5),i.\u0275\u0275property("codeSnippet",r.importModule),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML),i.\u0275\u0275advance(8),i.\u0275\u0275textInterpolate(null==r.window?null:r.window.innerHeight),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate(null==r.window?null:r.window.innerWidth))},dependencies:[Tt],encapsulation:2})),t})();var ee=R(407),lw=window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest,Hl=""===document.documentElement.style.pointerEvents,Ul={cors:lw,pointerEvents:Hl},VP={attributionWidthOffset:55},jP=0;function uw(t){var n="";for(var e in t.f=t.f||"json",t)if(Object.prototype.hasOwnProperty.call(t,e)){var c,r=t[e],o=Object.prototype.toString.call(r);n.length&&(n+="&"),c="[object Array]"===o?"[object Object]"===Object.prototype.toString.call(r[0])?JSON.stringify(r):r.join(","):"[object Object]"===o?JSON.stringify(r):"[object Date]"===o?r.valueOf():r,n+=encodeURIComponent(e)+"="+encodeURIComponent(c)}return n}function $1(t,n){var e=new window.XMLHttpRequest;return e.onerror=function(r){e.onreadystatechange=ee.Util.falseFn,t.call(n,{error:{code:500,message:"XMLHttpRequest error"}},null)},e.onreadystatechange=function(){var r,o;if(4===e.readyState){try{r=JSON.parse(e.responseText)}catch{r=null,o={code:500,message:"Could not parse response as JSON. This could also be caused by a CORS or XMLHttpRequest error."}}!o&&r.error&&(o=r.error,r=null),e.onerror=ee.Util.falseFn,t.call(n,o,r)}},e.ontimeout=function(){this.onerror()},e}function HP(t,n,e,r){var o=$1(e,r);return o.open("POST",t),typeof r<"u"&&null!==r&&typeof r.options<"u"&&(o.timeout=r.options.timeout),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),o.send(uw(n)),o}function UP(t,n,e,r){var o=$1(e,r);return o.open("GET",t+"?"+uw(n),!0),typeof r<"u"&&null!==r&&typeof r.options<"u"&&(o.timeout=r.options.timeout,r.options.withCredentials&&(o.withCredentials=!0)),o.send(null),o}function G1(t,n,e,r){var o=uw(n),c=$1(e,r),h=(t+"?"+o).length;if(h<=2e3&&Ul.cors?c.open("GET",t+"?"+o):h>2e3&&Ul.cors&&(c.open("POST",t),c.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8")),typeof r<"u"&&null!==r&&typeof r.options<"u"&&(c.timeout=r.options.timeout,r.options.withCredentials&&(c.withCredentials=!0)),h<=2e3&&Ul.cors)c.send(null);else{if(!(h>2e3&&Ul.cors))return h<=2e3&&!Ul.cors?W1(t,n,e,r):void zl("a request to "+t+" was longer then 2000 characters and this browser cannot make a cross-domain post request. Please use a proxy https://developers.arcgis.com/esri-leaflet/api-reference/request/");c.send(o)}return c}function W1(t,n,e,r){window._EsriLeafletCallbacks=window._EsriLeafletCallbacks||{};var o="c"+jP;n.callback="window._EsriLeafletCallbacks."+o,window._EsriLeafletCallbacks[o]=function(h){if(!0!==window._EsriLeafletCallbacks[o]){var y,E=Object.prototype.toString.call(h);"[object Object]"===E||"[object Array]"===E||(y={error:{code:500,message:"Expected array or object as JSONP response"}},h=null),!y&&h.error&&(y=h,h=null),e.call(r,y,h),window._EsriLeafletCallbacks[o]=!0}};var c=ee.DomUtil.create("script",null,document.body);return c.type="text/javascript",c.src=t+"?"+uw(n),c.id=o,c.onerror=function(h){h&&!0!==window._EsriLeafletCallbacks[o]&&(e.call(r,{error:{code:500,message:"An unknown error occurred"}}),window._EsriLeafletCallbacks[o]=!0)},ee.DomUtil.addClass(c,"esri-leaflet-jsonp"),jP++,{id:o,url:c.src,abort:function(){window._EsriLeafletCallbacks._callback[o]({code:0,message:"Request aborted."})}}}var cw=Ul.cors?UP:W1;function zl(){console&&console.warn&&console.warn.apply(console,arguments)}cw.CORS=UP,cw.JSONP=W1;const dw={request:G1,get:cw,post:HP};var W4=function(n,e,r,o){var y=(o[1]-r[1])*(e[0]-n[0])-(o[0]-r[0])*(e[1]-n[1]);if(0!==y){var E=((o[0]-r[0])*(n[1]-r[1])-(o[1]-r[1])*(n[0]-r[0]))/y,M=((e[0]-n[0])*(n[1]-r[1])-(e[1]-n[1])*(n[0]-r[0]))/y;if(E>=0&&E<=1&&M>=0&&M<=1)return!0}return!1},zP=function(n,e){for(var r=0;r=0},$P=function(n){var e={};for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r]);return e},Y4=function(n,e){var r=zP(n,e),o=function(n,e){for(var r=!1,o=-1,c=n.length,h=c-1;++o=0;o--)if(Y4(e[o][0],h)){e[o].push(h),k=!0;break}k||A.push(h)}for(;A.length;){h=A.pop();var j=!1;for(o=e.length-1;o>=0;o--)if(zP(e[o][0],h)){e[o].push(h),j=!0;break}j||e.push([h.reverse()])}return 1===e.length?{type:"Polygon",coordinates:e[0]}:{type:"MultiPolygon",coordinates:e}}(n.rings.slice(0))),"number"==typeof n.xmin&&"number"==typeof n.ymin&&"number"==typeof n.xmax&&"number"==typeof n.ymax&&(r.type="Polygon",r.coordinates=[[[n.xmax,n.ymax],[n.xmin,n.ymax],[n.xmin,n.ymin],[n.xmax,n.ymin],[n.xmax,n.ymax]]]),(n.geometry||n.attributes)&&(r.type="Feature",r.geometry=n.geometry?t(n.geometry):null,r.properties=n.attributes?$P(n.attributes):null,n.attributes))try{r.id=function(n,e){for(var r=e?[e,"OBJECTID","FID"]:["OBJECTID","FID"],o=0;o=4){q1(o)||o.reverse(),e.push(o);for(var c=0;c=4&&(q1(h)&&h.reverse(),e.push(h))}}return e},e5=function t(n,e){e=e||"OBJECTID";var c,r={wkid:4326},o={};switch(n.type){case"Point":o.x=n.coordinates[0],o.y=n.coordinates[1],null!=n.coordinates[2]&&(o.z=n.coordinates[2]),o.spatialReference=r;break;case"MultiPoint":o.points=n.coordinates.slice(0),null!=n.coordinates[0][2]&&(o.hasZ=!0),o.spatialReference=r;break;case"LineString":o.paths=[n.coordinates.slice(0)],null!=n.coordinates[0][2]&&(o.hasZ=!0),o.spatialReference=r;break;case"MultiLineString":o.paths=n.coordinates.slice(0),null!=n.coordinates[0][0][2]&&(o.hasZ=!0),o.spatialReference=r;break;case"Polygon":o.rings=GP(n.coordinates.slice(0)),null!=n.coordinates[0][0][2]&&(o.hasZ=!0),o.spatialReference=r;break;case"MultiPolygon":o.rings=function(n){for(var e=[],r=0;r=0;c--){var h=o[c].slice(0);e.push(h)}return e}(n.coordinates.slice(0)),null!=n.coordinates[0][0][0][2]&&(o.hasZ=!0),o.spatialReference=r;break;case"Feature":n.geometry&&(o.geometry=t(n.geometry,e)),o.attributes=n.properties?$P(n.properties):{},n.id&&(o.attributes[e]=n.id);break;case"FeatureCollection":for(o=[],c=0;c=0;h--){var y=ZP(r[h],e||QP(r[h]));c.features.push(y)}return c}function hw(t){return"/"!==(t=ee.Util.trim(t))[t.length-1]&&(t+="/"),t}function kc(t){if(-1!==t.url.indexOf("?")){t.requestParams=t.requestParams||{};var n=t.url.substring(t.url.indexOf("?")+1);t.url=t.url.split("?")[0],t.requestParams=JSON.parse('{"'+decodeURI(n).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"')+'"}')}return t.url=hw(t.url.split("?")[0]),t}function KP(t){return/^(?!.*utility\.arcgis\.com).*\.arcgis\.com.*FeatureServer/i.test(t)}function K1(t){var n;switch(t){case"Point":n="esriGeometryPoint";break;case"MultiPoint":n="esriGeometryMultipoint";break;case"LineString":case"MultiLineString":n="esriGeometryPolyline";break;case"Polygon":case"MultiPolygon":n="esriGeometryPolygon"}return n}function fw(t){return t.getSize().x-VP.attributionWidthOffset+"px"}function Y_(t){if(t.attributionControl){if(t.attributionControl._esriAttributionLayerCount||(t.attributionControl._esriAttributionLayerCount=0),0===t.attributionControl._esriAttributionLayerCount){if(!t.attributionControl._esriAttributionAddedOnce){var n=document.createElement("style");n.type="text/css",n.innerHTML=".esri-truncated-attribution:hover {white-space: normal;}",document.getElementsByTagName("head")[0].appendChild(n);var e=document.createElement("style");e.type="text/css",e.innerHTML=".esri-truncated-attribution {vertical-align: -3px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;display: inline-block;transition: 0s white-space;transition-delay: 1s;max-width: "+fw(t)+";}",document.getElementsByTagName("head")[0].appendChild(e),t.on("resize",function(r){t.attributionControl&&(t.attributionControl._container.style.maxWidth=fw(r.target))}),t.attributionControl._esriAttributionAddedOnce=!0}t.attributionControl.setPrefix(WP+" | "+t5),ee.DomUtil.addClass(t.attributionControl._container,"esri-truncated-attribution:hover"),ee.DomUtil.addClass(t.attributionControl._container,"esri-truncated-attribution")}t.attributionControl._esriAttributionLayerCount=t.attributionControl._esriAttributionLayerCount+1}}function pw(t){t.attributionControl&&(t.attributionControl._esriAttributionLayerCount&&1===t.attributionControl._esriAttributionLayerCount&&(t.attributionControl.setPrefix(WP),ee.DomUtil.removeClass(t.attributionControl._container,"esri-truncated-attribution:hover"),ee.DomUtil.removeClass(t.attributionControl._container,"esri-truncated-attribution")),t.attributionControl._esriAttributionLayerCount=t.attributionControl._esriAttributionLayerCount-1)}function J1(t){var n={geometry:null,geometryType:null};return t instanceof ee.LatLngBounds?(n.geometry=Q1(t),n.geometryType="esriGeometryEnvelope",n):(t.getLatLng&&(t=t.getLatLng()),t instanceof ee.LatLng&&(t={type:"Point",coordinates:[t.lng,t.lat]}),t instanceof ee.GeoJSON&&(t=t.getLayers()[0].feature.geometry,n.geometry=Z_(t),n.geometryType=K1(t.type)),t.toGeoJSON&&(t=t.toGeoJSON()),"Feature"===t.type&&(t=t.geometry),"Point"===t.type||"LineString"===t.type||"Polygon"===t.type||"MultiPolygon"===t.type?(n.geometry=Z_(t),n.geometryType=K1(t.type),n):void zl("invalid geometry passed to spatial query. Should be L.LatLng, L.LatLngBounds, L.Marker or a GeoJSON Point, Line, Polygon or MultiPolygon object"))}function JP(t,n){Ul.cors&&G1(t,{},ee.Util.bind(function(e,r){if(!e){n._esriAttributions=[];for(var o=0;o=M.minZoom&&y<=M.maxZoom&&(o+=", "+A)}o=o.substr(2),r.innerHTML=o,r.style.maxWidth=fw(n),n.fire("attributionupdated",{attribution:o})}}}var n5={warn:zl,cleanUrl:hw,getUrlParams:kc,isArcgisOnline:KP,geojsonTypeToArcGIS:K1,responseToFeatureCollection:q_,geojsonToArcGIS:Z_,arcgisToGeoJSON:ZP,boundsToExtent:Q1,extentToBounds:Y1,calcAttributionWidth:fw,setEsriAttribution:Y_,_setGeometry:J1,_getAttributionData:JP,_updateMapAttribution:mw,_findIdAttributeFromFeature:QP,_findIdAttributeFromResponse:YP},Q_=ee.Class.extend({options:{proxy:!1,useCors:lw},generateSetter:function(t,n){return ee.Util.bind(function(e){return this.params[t]=e,this},n)},initialize:function(t){if(t.request&&t.options?(this._service=t,ee.Util.setOptions(this,t.options)):(ee.Util.setOptions(this,t),this.options.url=hw(t.url)),this.params=ee.Util.extend({},this.params||{}),this.setters)for(var n in this.setters)this[n]=this.generateSetter(this.setters[n],this)},token:function(t){return this._service?this._service.authenticate(t):this.params.token=t,this},apikey:function(t){return this.token(t)},format:function(t){return this.params.returnUnformattedValues=!t,this},request:function(t,n){return this.options.requestParams&&ee.Util.extend(this.params,this.options.requestParams),this._service?this._service.request(this.path,this.params,t,n):this._request("request",this.path,this.params,t,n)},_request:function(t,n,e,r,o){var c=this.options.proxy?this.options.proxy+"?"+this.options.url+n:this.options.url+n;return"get"!==t&&"request"!==t||this.options.useCors?dw[t](c,e,r,o):dw.get.JSONP(c,e,r,o)}});function i5(t){return t=kc(t),new Q_(t)}var XP=Q_.extend({setters:{offset:"resultOffset",limit:"resultRecordCount",fields:"outFields",precision:"geometryPrecision",featureIds:"objectIds",returnGeometry:"returnGeometry",returnM:"returnM",transform:"datumTransformation",token:"token"},path:"query",params:{returnGeometry:!0,where:"1=1",outSR:4326,outFields:"*"},within:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelContains",this},intersects:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelIntersects",this},contains:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelWithin",this},crosses:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelCrosses",this},touches:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelTouches",this},overlaps:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelOverlaps",this},bboxIntersects:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelEnvelopeIntersects",this},indexIntersects:function(t){return this._setGeometryParams(t),this.params.spatialRel="esriSpatialRelIndexIntersects",this},nearby:function(t,n){return t=(0,ee.latLng)(t),this.params.geometry=[t.lng,t.lat],this.params.geometryType="esriGeometryPoint",this.params.spatialRel="esriSpatialRelIntersects",this.params.units="esriSRUnit_Meter",this.params.distance=n,this.params.inSR=4326,this},where:function(t){return this.params.where=t,this},between:function(t,n){return this.params.time=[t.valueOf(),n.valueOf()],this},simplify:function(t,n){var e=Math.abs(t.getBounds().getWest()-t.getBounds().getEast());return this.params.maxAllowableOffset=e/t.getSize().y*n,this},orderBy:function(t,n){return n=n||"ASC",this.params.orderByFields=this.params.orderByFields?this.params.orderByFields+",":"",this.params.orderByFields+=[t,n].join(" "),this},run:function(t,n){return this._cleanParams(),this.options.isModern||KP(this.options.url)&&void 0===this.options.isModern?(this.params.f="geojson",this.request(function(e,r){this._trapSQLerrors(e),t.call(n,e,r,r)},this)):this.request(function(e,r){this._trapSQLerrors(e),t.call(n,e,r&&q_(r),r)},this)},count:function(t,n){return this._cleanParams(),this.params.returnCountOnly=!0,this.request(function(e,r){t.call(this,e,r&&r.count,r)},n)},ids:function(t,n){return this._cleanParams(),this.params.returnIdsOnly=!0,this.request(function(e,r){t.call(this,e,r&&r.objectIds,r)},n)},bounds:function(t,n){return this._cleanParams(),this.params.returnExtentOnly=!0,this.request(function(e,r){r&&r.extent&&Y1(r.extent)?t.call(n,e,Y1(r.extent),r):t.call(n,e={message:"Invalid Bounds"},null,r)},n)},distinct:function(){return this.params.returnGeometry=!1,this.params.returnDistinctValues=!0,this},pixelSize:function(t){var n=(0,ee.point)(t);return this.params.pixelSize=[n.x,n.y],this},layer:function(t){return this.path=t+"/query",this},_trapSQLerrors:function(t){t&&"400"===t.code&&zl("one common syntax error in query requests is encasing string values in double quotes instead of single quotes")},_cleanParams:function(){delete this.params.returnIdsOnly,delete this.params.returnExtentOnly,delete this.params.returnCountOnly},_setGeometryParams:function(t){this.params.inSR=4326;var n=J1(t);this.params.geometry=n.geometry,this.params.geometryType=n.geometryType}});function eL(t){return new XP(t)}const X1=eL;var tL=Q_.extend({setters:{contains:"contains",text:"searchText",fields:"searchFields",spatialReference:"sr",sr:"sr",layers:"layers",returnGeometry:"returnGeometry",maxAllowableOffset:"maxAllowableOffset",precision:"geometryPrecision",dynamicLayers:"dynamicLayers",returnZ:"returnZ",returnM:"returnM",gdbVersion:"gdbVersion",token:"token"},path:"find",params:{sr:4326,contains:!0,returnGeometry:!0,returnZ:!0,returnM:!1},layerDefs:function(t,n){return this.params.layerDefs=this.params.layerDefs?this.params.layerDefs+";":"",this.params.layerDefs+=[t,n].join(":"),this},simplify:function(t,n){var e=Math.abs(t.getBounds().getWest()-t.getBounds().getEast());return this.params.maxAllowableOffset=e/t.getSize().y*n,this},run:function(t,n){return this.request(function(e,r){t.call(n,e,r&&q_(r),r)},n)}});function nL(t){return new tL(t)}const r5=nL;var gw=Q_.extend({path:"identify",between:function(t,n){return this.params.time=[t.valueOf(),n.valueOf()],this}});function o5(t){return new gw(t)}var iL=gw.extend({setters:{layers:"layers",precision:"geometryPrecision",tolerance:"tolerance",returnGeometry:"returnGeometry"},params:{sr:4326,layers:"all",tolerance:3,returnGeometry:!0},on:function(t){var n=Q1(t.getBounds()),e=t.getSize();return this.params.imageDisplay=[e.x,e.y,96],this.params.mapExtent=[n.xmin,n.ymin,n.xmax,n.ymax],this},at:function(t){return 2===t.length&&(t=(0,ee.latLng)(t)),this._setGeometryParams(t),this},layerDef:function(t,n){return this.params.layerDefs=this.params.layerDefs?this.params.layerDefs+";":"",this.params.layerDefs+=[t,n].join(":"),this},simplify:function(t,n){var e=Math.abs(t.getBounds().getWest()-t.getBounds().getEast());return this.params.maxAllowableOffset=e/t.getSize().y*n,this},run:function(t,n){return this.request(function(e,r){if(e)t.call(n,e,void 0,r);else{var o=q_(r);r.results=r.results.reverse();for(var c=0;c=0;c--)o.catalogItems.features[c].properties.catalogItemVisibility=r[c];return o}});function sL(t){return new oL(t)}const a5=sL;var K_=ee.Evented.extend({options:{proxy:!1,useCors:lw,timeout:0},initialize:function(t){t=t||{},this._requestQueue=[],this._authenticating=!1,ee.Util.setOptions(this,t),this.options.url=hw(this.options.url)},get:function(t,n,e,r){return this._request("get",t,n,e,r)},post:function(t,n,e,r){return this._request("post",t,n,e,r)},request:function(t,n,e,r){return this._request("request",t,n,e,r)},metadata:function(t,n){return this._request("get","",{},t,n)},authenticate:function(t){return this._authenticating=!1,this.options.token=t,this._runQueue(),this},getTimeout:function(){return this.options.timeout},setTimeout:function(t){this.options.timeout=t},_request:function(t,n,e,r,o){this.fire("requeststart",{url:this.options.url+n,params:e,method:t},!0);var c=this._createServiceCallback(t,n,e,r,o);if(this.options.token&&(e.token=this.options.token),this.options.requestParams&&ee.Util.extend(e,this.options.requestParams),!this._authenticating){var h=this.options.proxy?this.options.proxy+"?"+this.options.url+n:this.options.url+n;return"get"!==t&&"request"!==t||this.options.useCors?dw[t](h,e,c,o):dw.get.JSONP(h,e,c,o)}this._requestQueue.push([t,n,e,r,o])},_createServiceCallback:function(t,n,e,r,o){return ee.Util.bind(function(c,h){c&&(499===c.code||498===c.code)&&(this._authenticating=!0,this._requestQueue.push([t,n,e,r,o]),this.fire("authenticationrequired",{authenticate:ee.Util.bind(this.authenticate,this)},!0),c.authenticate=ee.Util.bind(this.authenticate,this)),r.call(o,c,h),c?this.fire("requesterror",{url:this.options.url+n,params:e,message:c.message,code:c.code,method:t},!0):this.fire("requestsuccess",{url:this.options.url+n,params:e,response:h,method:t},!0),this.fire("requestend",{url:this.options.url+n,params:e,method:t},!0)},this)},_runQueue:function(){for(var t=this._requestQueue.length-1;t>=0;t--){var n=this._requestQueue[t];this[n.shift()].apply(this,n)}this._requestQueue=[]}});function l5(t){return t=kc(t),new K_(t)}var aL=K_.extend({identify:function(){return s5(this)},find:function(){return r5(this)},query:function(){return X1(this)}});function lL(t){return new aL(t)}const uL=lL;var cL=K_.extend({query:function(){return X1(this)},identify:function(){return a5(this)}});function dL(t){return new cL(t)}const u5=dL;var hL=K_.extend({options:{idAttribute:"OBJECTID"},query:function(){return X1(this)},addFeature:function(t,n,e){this.addFeatures(t,n,e)},addFeatures:function(t,n,e){for(var r=t.features?t.features:[t],o=r.length-1;o>=0;o--)delete r[o].id;return t=Z_(t),this.post("addFeatures",{features:t=r.length>1?t:[t]},function(c,h){n&&n.call(e,c||h.addResults[0].error,h&&h.addResults?h.addResults.length>1?h.addResults:h.addResults[0]:void 0)},e)},updateFeature:function(t,n,e){this.updateFeatures(t,n,e)},updateFeatures:function(t,n,e){var r=t.features?t.features:[t];return t=Z_(t,this.options.idAttribute),this.post("updateFeatures",{features:t=r.length>1?t:[t]},function(o,c){n&&n.call(e,o||c.updateResults[0].error,c&&c.updateResults?c.updateResults.length>1?c.updateResults:c.updateResults[0]:void 0)},e)},deleteFeature:function(t,n,e){this.deleteFeatures(t,n,e)},deleteFeatures:function(t,n,e){return this.post("deleteFeatures",{objectIds:t},function(r,o){n&&n.call(e,r||o.deleteResults[0].error,o&&o.deleteResults?o.deleteResults.length>1?o.deleteResults:o.deleteResults[0]:void 0)},e)}});function fL(t){return new hL(t)}const c5=fL;var Pn="https:"!==window.location.protocol?"http:":"https:",_w=ee.TileLayer.extend({statics:{TILES:{Streets:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],attribution:"USGS, NOAA",attributionUrl:"https://static.arcgis.com/attribution/World_Street_Map"}},Topographic:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],attribution:"USGS, NOAA",attributionUrl:"https://static.arcgis.com/attribution/World_Topo_Map"}},Oceans:{urlTemplate:Pn+"//{s}.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"USGS, NOAA",attributionUrl:"https://static.arcgis.com/attribution/Ocean_Basemap"}},OceansLabels:{urlTemplate:Pn+"//{s}.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],pane:Hl?"esri-labels":"tilePane",attribution:""}},NationalGeographic:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"National Geographic, DeLorme, HERE, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, increment P Corp."}},DarkGray:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"HERE, DeLorme, MapmyIndia, © OpenStreetMap contributors"}},DarkGrayLabels:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Reference/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],pane:Hl?"esri-labels":"tilePane",attribution:""}},Gray:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"HERE, DeLorme, MapmyIndia, © OpenStreetMap contributors"}},GrayLabels:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:16,subdomains:["server","services"],pane:Hl?"esri-labels":"tilePane",attribution:""}},Imagery:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],attribution:"DigitalGlobe, GeoEye, i-cubed, USDA, USGS, AEX, Getmapping, Aerogrid, IGN, IGP, swisstopo, and the GIS User Community",attributionUrl:"https://static.arcgis.com/attribution/World_Imagery"}},ImageryLabels:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],pane:Hl?"esri-labels":"tilePane",attribution:""}},ImageryTransportation:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Transportation/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,subdomains:["server","services"],pane:Hl?"esri-labels":"tilePane",attribution:""}},ShadedRelief:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:13,subdomains:["server","services"],attribution:"USGS"}},ShadedReliefLabels:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places_Alternate/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:12,subdomains:["server","services"],pane:Hl?"esri-labels":"tilePane",attribution:""}},Terrain:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:13,subdomains:["server","services"],attribution:"USGS, NOAA"}},TerrainLabels:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:13,subdomains:["server","services"],pane:Hl?"esri-labels":"tilePane",attribution:""}},USATopo:{urlTemplate:Pn+"//{s}.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:15,subdomains:["server","services"],attribution:"USGS, National Geographic Society, i-cubed"}},ImageryClarity:{urlTemplate:Pn+"//clarity.maptiles.arcgis.com/arcgis/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,attribution:"Esri, DigitalGlobe, GeoEye, Earthstar Geographics, CNES/Airbus DS, USDA, USGS, AeroGRID, IGN, and the GIS User Community"}},Physical:{urlTemplate:Pn+"//{s}.arcgisonline.com/arcgis/rest/services/World_Physical_Map/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:8,subdomains:["server","services"],attribution:"U.S. National Park Service"}},ImageryFirefly:{urlTemplate:Pn+"//fly.maptiles.arcgis.com/arcgis/rest/services/World_Imagery_Firefly/MapServer/tile/{z}/{y}/{x}",options:{minZoom:1,maxZoom:19,attribution:"Esri, DigitalGlobe, GeoEye, Earthstar Geographics, CNES/Airbus DS, USDA, USGS, AeroGRID, IGN, and the GIS User Community",attributionUrl:"https://static.arcgis.com/attribution/World_Imagery"}}}},initialize:function(t,n){var e;if("object"==typeof t&&t.urlTemplate&&t.options)e=t;else{if("string"!=typeof t||!_w.TILES[t])throw new Error('L.esri.BasemapLayer: Invalid parameter. Use one of "Streets", "Topographic", "Oceans", "OceansLabels", "NationalGeographic", "Physical", "Gray", "GrayLabels", "DarkGray", "DarkGrayLabels", "Imagery", "ImageryLabels", "ImageryTransportation", "ImageryClarity", "ImageryFirefly", ShadedRelief", "ShadedReliefLabels", "Terrain", "TerrainLabels" or "USATopo"');e=_w.TILES[t]}var r=ee.Util.extend(e.options,n);ee.Util.setOptions(this,r),this.options.ignoreDeprecationWarning||console.warn("WARNING: L.esri.BasemapLayer uses data services that are in mature support and are not being updated. Please use L.esri.Vector.vectorBasemapLayer instead. More info: https://esriurl.com/esri-leaflet-basemap"),this.options.token&&-1===e.urlTemplate.indexOf("token=")&&(e.urlTemplate+="?token="+this.options.token),this.options.proxy&&(e.urlTemplate=this.options.proxy+"?"+e.urlTemplate),ee.TileLayer.prototype.initialize.call(this,e.urlTemplate,r)},onAdd:function(t){Y_(t),"esri-labels"===this.options.pane&&this._initPane(),this.options.attributionUrl&&JP((this.options.proxy?this.options.proxy+"?":"")+this.options.attributionUrl,t),t.on("moveend",mw),ee.TileLayer.prototype.onAdd.call(this,t)},onRemove:function(t){pw(t),t.off("moveend",mw),ee.TileLayer.prototype.onRemove.call(this,t)},_initPane:function(){if(!this._map.getPane(this.options.pane)){var t=this._map.createPane(this.options.pane);t.style.pointerEvents="none",t.style.zIndex=500}},getAttribution:function(){if(this.options.attribution)var t=''+this.options.attribution+"";return t}});function d5(t,n){return new _w(t,n)}var eM=ee.TileLayer.extend({options:{zoomOffsetAllowance:.1,errorTileUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEABAMAAACuXLVVAAAAA1BMVEUzNDVszlHHAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAAAAAAAAAB6mUWpAAAADZJREFUeJztwQEBAAAAgiD/r25IQAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA7waBAAABw08RwAAAAABJRU5ErkJggg=="},statics:{MercatorZoomLevels:{0:156543.033928,1:78271.5169639999,2:39135.7584820001,3:19567.8792409999,4:9783.93962049996,5:4891.96981024998,6:2445.98490512499,7:1222.99245256249,8:611.49622628138,9:305.748113140558,10:152.874056570411,11:76.4370282850732,12:38.2185141425366,13:19.1092570712683,14:9.55462853563415,15:4.77731426794937,16:2.38865713397468,17:1.19432856685505,18:.597164283559817,19:.298582141647617,20:.14929107082381,21:.07464553541191,22:.0373227677059525,23:.0186613838529763}},initialize:function(t){t=kc(t=ee.Util.setOptions(this,t)),this.tileUrl=(t.proxy?t.proxy+"?":"")+t.url+"tile/{z}/{y}/{x}"+(t.requestParams&&Object.keys(t.requestParams).length>0?ee.Util.getParamString(t.requestParams):""),-1!==t.url.indexOf("{s}")&&t.subdomains&&(t.url=t.url.replace("{s}",t.subdomains[0])),this.service=uL(t),this.service.addEventParent(this),new RegExp(/tiles.arcgis(online)?\.com/g).test(t.url)&&(this.tileUrl=this.tileUrl.replace("://tiles","://tiles{s}"),t.subdomains=["1","2","3","4"]),this.options.token&&(this.tileUrl+="?token="+this.options.token),ee.TileLayer.prototype.initialize.call(this,this.tileUrl,t)},getTileUrl:function(t){var n=this._getZoomForUrl();return ee.Util.template(this.tileUrl,ee.Util.extend({s:this._getSubdomain(t),x:t.x,y:t.y,z:this._lodMap&&this._lodMap[n]?this._lodMap[n]:n},this.options))},createTile:function(t,n){var e=document.createElement("img");return ee.DomEvent.on(e,"load",ee.Util.bind(this._tileOnLoad,this,n,e)),ee.DomEvent.on(e,"error",ee.Util.bind(this._tileOnError,this,n,e)),this.options.crossOrigin&&(e.crossOrigin=""),e.alt="",!this._lodMap||this._lodMap&&this._lodMap[this._getZoomForUrl()]?e.src=this.getTileUrl(t):this.once("lodmap",function(){e.src=this.getTileUrl(t)},this),e},onAdd:function(t){Y_(t),this._lodMap||this.metadata(function(n,e){if(!n&&e.spatialReference){var r=e.spatialReference.latestWkid||e.spatialReference.wkid;if(!this.options.attribution&&t.attributionControl&&e.copyrightText&&(this.options.attribution=e.copyrightText,t.attributionControl.addAttribution(this.getAttribution())),t.options.crs!==ee.CRS.EPSG3857||102100!==r&&3857!==r)t.options.crs&&t.options.crs.code&&t.options.crs.code.indexOf(r)>-1||zl("L.esri.TiledMapLayer is using a non-mercator spatial reference. Support may be available through Proj4Leaflet https://developers.arcgis.com/esri-leaflet/samples/non-mercator-projection/");else{this._lodMap={};for(var o=e.tileInfo.lods,c=eM.MercatorZoomLevels,h=0;hthis.options.maxZoom||t0||cr&&this._retainParent(o,c,h,r))},_retainChildren:function(t,n,e,r){for(var o=2*t;o<2*t+2;o++)for(var c=2*n;c<2*n+2;c++){var h=new ee.Point(o,c);h.z=e+1;var y=this._cellCoordsToKey(h),E=this._cells[y];E&&E.active?E.retain=!0:(E&&E.loaded&&(E.retain=!0),e+11)return void this._setView(t,e);for(var k=o.min.y;k<=o.max.y;k++)for(var j=o.min.x;j<=o.max.x;j++){var V=new ee.Point(j,k);if(V.z=this._cellZoom,this._isValidCell(V)){var K=this._cells[this._cellCoordsToKey(V)];K?K.current=!0:h.push(V)}}if(h.sort(function(de,ye){return de.distanceTo(c)-ye.distanceTo(c)}),0!==h.length)for(this._loading||(this._loading=!0),j=0;je.max.x)||!n.wrapLat&&(t.ye.max.y))return!1}if(!this.options.bounds)return!0;var r=this._cellCoordsToBounds(t);return(0,ee.toLatLngBounds)(this.options.bounds).overlaps(r)},_keyToBounds:function(t){return this._cellCoordsToBounds(this._keyToCellCoords(t))},_cellCoordsToNwSe:function(t){var n=this._map,e=this.getCellSize(),r=t.scaleBy(e),o=r.add(e);return[n.unproject(r,t.z),n.unproject(o,t.z)]},_cellCoordsToBounds:function(t){var n=this._cellCoordsToNwSe(t),e=new ee.LatLngBounds(n[0],n[1]);return this.options.noWrap||(e=this._map.wrapLatLngBounds(e)),e},_cellCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToCellCoords:function(t){var n=t.split(":"),e=new ee.Point(+n[0],+n[1]);return e.z=+n[2],e},_removeCell:function(t){var n=this._cells[t];if(n){var e=this._keyToCellCoords(t),r=this._wrapCoords(e),o=this._cellCoordsToBounds(this._wrapCoords(e));n.current=!1,delete this._cells[t],this._activeCells[t]=n,this.cellLeave(o,r,t),this.fire("cellleave",{key:t,coords:r,bounds:o})}},_reuseCell:function(t){var n=this._cellCoordsToKey(t);this._cells[n]=this._activeCells[n],this._cells[n].current=!0;var e=this._wrapCoords(t),r=this._cellCoordsToBounds(this._wrapCoords(t));this.cellEnter(r,e,n),this.fire("cellenter",{key:n,coords:e,bounds:r})},_createCell:function(t){var n=this._cellCoordsToKey(t),e=this._wrapCoords(t),r=this._cellCoordsToBounds(this._wrapCoords(t));this.createCell(r,e,n),this.fire("cellcreate",{key:n,coords:e,bounds:r}),this._cells[n]={coords:t,current:!0},ee.Util.requestAnimFrame(this._pruneCells,this)},_cellReady:function(t,n,e){var r=this._cellCoordsToKey(t);(e=this._cells[r])&&(e.loaded=+new Date,e.active=!0)},_getCellPos:function(t){return t.scaleBy(this.getCellSize())},_wrapCoords:function(t){var n=new ee.Point(this._wrapX?ee.Util.wrapNum(t.x,this._wrapX):t.x,this._wrapY?ee.Util.wrapNum(t.y,this._wrapY):t.y);return n.z=t.z,n},_pxBoundsToCellRange:function(t){var n=this.getCellSize();return new ee.Bounds(t.min.unscaleBy(n).floor(),t.max.unscaleBy(n).ceil().subtract([1,1]))}});function Rc(t){this.values=[].concat(t||[])}Rc.prototype.query=function(t){var n=this.getIndex(t);return this.values[n]},Rc.prototype.getIndex=function(n){this.dirty&&this.sort();for(var o,c,e=0,r=this.values.length-1;e<=r;)if(o=(e+r)/2|0,+(c=this.values[Math.round(o)]).value<+n)e=o+1;else{if(!(+c.value>+n))return o;r=o-1}return Math.abs(~r)},Rc.prototype.between=function(n,e){var r=this.getIndex(n),o=this.getIndex(e);if(0===r&&0===o)return[];for(;this.values[r-1]&&this.values[r-1].value===n;)r--;for(;this.values[o+1]&&this.values[o+1].value===e;)o++;return this.values[o]&&this.values[o].value===e&&this.values[o+1]&&o++,this.values.slice(r,o)},Rc.prototype.insert=function(n){return this.values.splice(this.getIndex(n.value),0,n),this},Rc.prototype.bulkAdd=function(n,e){return this.values=this.values.concat([].concat(n||[])),e?this.sort():this.dirty=!0,this},Rc.prototype.sort=function(){return this.values.sort(function(n,e){return+e.value-+n.value}).reverse(),this.dirty=!1,this};const nM=Rc;var yw=vw.extend({options:{attribution:null,where:"1=1",fields:["*"],from:!1,to:!1,timeField:!1,timeFilterMode:"server",simplifyFactor:0,precision:6,fetchAllFeatures:!1},initialize:function(t){if(vw.prototype.initialize.call(this,t),t=kc(t),t=ee.Util.setOptions(this,t),this.service=c5(t),this.service.addEventParent(this),"*"!==this.options.fields[0]){for(var n=!1,e=0;e=0;r--){var o=t[r].id;-1===this._currentSnapshot.indexOf(o)&&this._currentSnapshot.push(o),typeof e<"u"&&-1===this._cache[e].indexOf(o)&&this._cache[e].push(o)}this.options.timeField&&this._buildTimeIndexes(t),this.createLayers(t)},_buildQuery:function(t,n){var e=this.service.query().intersects(t).where(this.options.where).fields(this.options.fields).precision(this.options.precision);return this.options.fetchAllFeatures&&!isNaN(parseInt(n))&&(e=e.offset(n)),e.params.resultType="tile",this.options.requestParams&&ee.Util.extend(e.params,this.options.requestParams),this.options.simplifyFactor&&e.simplify(this._map,this.options.simplifyFactor),"server"===this.options.timeFilterMode&&this.options.from&&this.options.to&&e.between(this.options.from,this.options.to),e},setWhere:function(t,n,e){this.options.where=t&&t.length?t:"1=1";for(var r=[],o=[],c=0,h=null,y=ee.Util.bind(function(j,V){if(j&&(h=j),V)for(var K=V.features.length-1;K>=0;K--)o.push(V.features[K].id);--c<=0&&this._visibleZoom()&&t===this.options.where&&(this._currentSnapshot=o,ee.Util.requestAnimFrame(ee.Util.bind(function(){this.removeLayers(r),this.addLayers(o),n&&n.call(e,h)},this)))},this),E=this._currentSnapshot.length-1;E>=0;E--)r.push(this._currentSnapshot[E]);for(var M in this._cache={},this._cells){c++;var A=this._keyToCellCoords(M),k=this._cellCoordsToBounds(A);this._requestFeatures(k,A,y)}return this},getWhere:function(){return this.options.where},getTimeRange:function(){return[this.options.from,this.options.to]},setTimeRange:function(t,n,e,r){var o=this.options.from,c=this.options.to,h=0,y=null,E=ee.Util.bind(function(j){j&&(y=j),this._filterExistingFeatures(o,c,t,n),h--,e&&h<=0&&e.call(r,y)},this);if(this.options.from=t,this.options.to=n,this._filterExistingFeatures(o,c,t,n),"server"===this.options.timeFilterMode)for(var M in this._cells){h++;var A=this._keyToCellCoords(M),k=this._cellCoordsToBounds(A);this._requestFeatures(k,A,E)}return this},refresh:function(){this.setWhere(this.options.where)},_filterExistingFeatures:function(t,n,e,r){var o=t&&n?this._getFeaturesInTimeRange(t,n):this._currentSnapshot,c=this._getFeaturesInTimeRange(e,r);if(c.indexOf)for(var h=0;h=0&&o.splice(y,1)}ee.Util.requestAnimFrame(ee.Util.bind(function(){this.removeLayers(o),this.addLayers(c)},this))},_getFeaturesInTimeRange:function(t,n){var r,e=[];if(this.options.timeField.start&&this.options.timeField.end){var o=this._startTimeIndex.between(t,n),c=this._endTimeIndex.between(t,n);r=o.concat(c)}else{if(!this._timeIndex)return zl("You must set timeField in the layer constructor in order to manipulate the start and end time filter."),[];r=this._timeIndex.between(t,n)}for(var h=r.length-1;h>=0;h--)e.push(r[h].id);return e},_buildTimeIndexes:function(t){var n,e;if(this.options.timeField.start&&this.options.timeField.end){var r=[],o=[];for(n=t.length-1;n>=0;n--)r.push({id:(e=t[n]).id,value:new Date(e.properties[this.options.timeField.start])}),o.push({id:e.id,value:new Date(e.properties[this.options.timeField.end])});this._startTimeIndex.bulkAdd(r),this._endTimeIndex.bulkAdd(o)}else{var c=[];for(n=t.length-1;n>=0;n--)c.push({id:(e=t[n]).id,value:new Date(e.properties[this.options.timeField])});this._timeIndex.bulkAdd(c)}},_featureWithinTimeRange:function(t){if(!this.options.from||!this.options.to)return!0;var n=+this.options.from.valueOf(),e=+this.options.to.valueOf();if("string"==typeof this.options.timeField){var r=+t.properties[this.options.timeField];return r>=n&&r<=e}if(this.options.timeField.start&&this.options.timeField.end){var o=+t.properties[this.options.timeField.start],c=+t.properties[this.options.timeField.end];return o>=n&&o<=e||c>=n&&c<=e||o<=n&&c>=e}},_visibleZoom:function(){if(!this._map)return!1;var t=this._map.getZoom();return!(t>this.options.maxZoom||t=0;E--)c[E].properties[o.objectIdField]=c.length>1?y[E].objectId:y.objectId,c[E].id=c.length>1?y[E].objectId:y.objectId;this._addFeatures(c)}n&&n.call(e,h,y)},this))}},this))},updateFeature:function(t,n,e){this.updateFeatures(t,n,e)},updateFeatures:function(t,n,e){var r=t.features?t.features:[t];this.service.updateFeatures(t,function(o,c){if(!o){for(var h=r.length-1;h>=0;h--)this.removeLayers([r[h].id],!0);this._addFeatures(r)}n&&n.call(e,o,c)},this)},deleteFeature:function(t,n,e){this.deleteFeatures(t,n,e)},deleteFeatures:function(t,n,e){return this.service.deleteFeatures(t,function(r,o){var c=o.length?o:[o];if(!r&&c.length>0)for(var h=c.length-1;h>=0;h--)this.removeLayers([c[h].objectId],!0);n&&n.call(e,r,o)},this)}}),gL=yw.extend({options:{cacheLayers:!0},initialize:function(t){t.apikey&&(t.token=t.apikey),yw.prototype.initialize.call(this,t),this._originalStyle=this.options.style,this._layers={}},onRemove:function(t){for(var n in this._layers)t.removeLayer(this._layers[n]),this.fire("removefeature",{feature:this._layers[n].feature,permanent:!1},!0);return yw.prototype.onRemove.call(this,t)},createNewLayer:function(t){var n=ee.GeoJSON.geometryToLayer(t,this.options);return n&&(n.defaultOptions=n.options),n},_updateLayer:function(t,n){var e=[],r=this.options.coordsToLatLng||ee.GeoJSON.coordsToLatLng;switch(n.properties&&(t.feature.properties=n.properties),n.geometry.type){case"Point":e=ee.GeoJSON.coordsToLatLng(n.geometry.coordinates),t.setLatLng(e);break;case"LineString":e=ee.GeoJSON.coordsToLatLngs(n.geometry.coordinates,0,r),t.setLatLngs(e);break;case"MultiLineString":case"Polygon":e=ee.GeoJSON.coordsToLatLngs(n.geometry.coordinates,1,r),t.setLatLngs(e);break;case"MultiPolygon":e=ee.GeoJSON.coordsToLatLngs(n.geometry.coordinates,2,r),t.setLatLngs(e)}this.redraw(t.feature.id)},createLayers:function(t){for(var n=t.length-1;n>=0;n--){var o,e=t[n],r=this._layers[e.id];this._visibleZoom()&&r&&!this._map.hasLayer(r)&&(!this.options.timeField||this._featureWithinTimeRange(e))&&(this._map.addLayer(r),this.fire("addfeature",{feature:r.feature},!0)),r&&(r.setLatLngs||r.setLatLng)&&this._updateLayer(r,e),r||((o=this.createNewLayer(e))?(o.feature=e,o.addEventParent(this),this.options.onEachFeature&&this.options.onEachFeature(o.feature,o),this._layers[o.feature.id]=o,this.setFeatureStyle(o.feature.id,this.options.style),this.fire("createfeature",{feature:o.feature},!0),this._visibleZoom()&&(!this.options.timeField||this.options.timeField&&this._featureWithinTimeRange(e))&&this._map.addLayer(o)):zl("invalid GeoJSON encountered"))}},addLayers:function(t){for(var n=t.length-1;n>=0;n--){var e=this._layers[t[n]];e&&(!this.options.timeField||this._featureWithinTimeRange(e.feature))&&(this._map.addLayer(e),this.fire("addfeature",{feature:e.feature},!0))}},removeLayers:function(t,n){for(var e=t.length-1;e>=0;e--){var r=t[e],o=this._layers[r];o&&(this.fire("removefeature",{feature:o.feature,permanent:n},!0),this._map.removeLayer(o)),o&&n&&delete this._layers[r]}},cellEnter:function(t,n){this._visibleZoom()&&!this._zooming&&this._map&&ee.Util.requestAnimFrame(ee.Util.bind(function(){var e=this._cacheKey(n),r=this._cellCoordsToKey(n),o=this._cache[e];this._activeCells[r]&&o&&this.addLayers(o)},this))},cellLeave:function(t,n){this._zooming||ee.Util.requestAnimFrame(ee.Util.bind(function(){if(this._map){var e=this._cacheKey(n),r=this._cellCoordsToKey(n),o=this._cache[e],c=this._map.getBounds();if(!this._activeCells[r]&&o){for(var h=!0,y=0;y{class t{constructor(e){_(this,"platformId",void 0),_(this,"L",null),_(this,"esri",null),this.platformId=e,this.requireMap()}requireMap(){Vo(this.platformId)&&(this.L=ee,this.esri=ue)}isAvailable(){return!!Vo(this.platformId)}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275inject(i.PLATFORM_ID))}),_(t,"\u0275prov",i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac})),t})();class y5{constructor(n,e){_(this,"options",void 0),_(this,"mapService",void 0),_(this,"map",void 0),_(this,"locating",!1),_(this,"fullScreen",!1),_(this,"onInit",new i.EventEmitter),_(this,"modes",{DRAGGING:0,DRAWING_POLYGON:1,DRAWING_LINE:2}),_(this,"mode",this.modes.DRAGGING),_(this,"initialized",!1),_(this,"polygonDrawer",void 0),_(this,"lineDrawer",void 0),_(this,"editingLayer",void 0),_(this,"switchToDragging",()=>{this.mapService.isAvailable()&&(this.mode=this.modes.DRAGGING,this.polygonDrawer&&(this.polygonDrawer.disable(),this.polygonDrawer=void 0),this.lineDrawer&&(this.lineDrawer.disable(),this.lineDrawer=void 0),this.map.off(this.mapService.L.Draw.Event.CREATED),this.map.off(this.mapService.L.Draw.Event.DRAWSTOP))}),_(this,"handleDrawPolygon",r=>{this.map.addLayer(r.layer),this.options.onAddPolygon(r.layer),this.switchToDragging()}),_(this,"handleDrawLine",r=>{this.map.addLayer(r.layer),this.options.onAddLine(r.layer),this.switchToDragging()}),_(this,"stopEditLayer",()=>{this.editingLayer&&(this.editingLayer.editing.disable(),this.editingLayer.off("edit")),this.map.off("click",this.stopEditLayer)}),this.options=n,this.mapService=e}init(n){this.mapService.isAvailable()&&(this.initialized=!0,this.map=this.mapService.L.map(n,{center:this.options.center,zoom:this.options.zoom,attributionControl:!1,zoomControl:!1,scrollWheelZoom:!1}),this.onInit.emit())}addTileLayer(n){if(this.mapService.isAvailable()){const e=this.mapService.L.tileLayer(n.url,n.options);return this.map.addLayer(e),e}}addFeatureLayer(n){if(this.mapService.isAvailable()){const e=new this.mapService.esri.featureLayer(n);return this.map.addLayer(e),e}}addGeoJSON(n,e){if(this.mapService.isAvailable()){const r=this.mapService.L.geoJSON(n,e);return r.addTo(this.map),r}}fitFeatureLayers(n){if(this.mapService.isAvailable()){const e=this.mapService.L.latLngBounds([]);let r=0;n.forEach(o=>{o.once("load",()=>{r++,o.eachFeature(c=>{e.extend(c.getBounds())}),r===n.length&&e.isValid()&&this.map.fitBounds(e)})})}}removeLayer(n){this.map.removeLayer(n)}toggleFullScreen(){this.fullScreen=!this.fullScreen,setTimeout(()=>{this.update()})}update(){this.initialized&&this.map.invalidateSize()}zoomIn(){this.initialized&&this.map.zoomIn()}zoomInDisabled(){return!this.initialized||this.map.getMaxZoom()<=this.map.getZoom()}zoomOut(){this.initialized&&this.map.zoomOut()}zoomOutDisabled(){return!this.initialized||this.map.getMinZoom()>=this.map.getZoom()}locate(n){!this.locating&&this.initialized&&(this.locating=!0,this.map.locate(),this.map.on("locationfound",e=>{this.locating=!1,this.map.setView(e.latlng,n),this.map.off("locationfound")}))}setView(n,e){this.initialized&&this.map.setView(n,e)}switchToPolygon(){this.mapService.isAvailable()&&(this.switchToDragging(),this.mode=this.modes.DRAWING_POLYGON,this.polygonDrawer||(this.polygonDrawer=new this.mapService.L.Draw.Polygon(this.map,{shapeOptions:this.options.polygonColor?{color:this.options.polygonColor}:{}}),this.polygonDrawer.enable(),this.map.on(this.mapService.L.Draw.Event.CREATED,this.handleDrawPolygon),this.map.on(this.mapService.L.Draw.Event.DRAWSTOP,this.switchToDragging)))}switchToLine(){this.mapService.isAvailable()&&(this.switchToDragging(),this.mode=this.modes.DRAWING_LINE,this.lineDrawer||(this.lineDrawer=new this.mapService.L.Draw.Polyline(this.map,{shapeOptions:this.options.lineColor?{color:this.options.lineColor}:{}}),this.lineDrawer.enable(),this.map.on(this.mapService.L.Draw.Event.CREATED,this.handleDrawLine),this.map.on(this.mapService.L.Draw.Event.DRAWSTOP,this.switchToDragging)))}startEditLayer(n){this.stopEditLayer(),this.editingLayer=n,this.editingLayer.options.editing=this.editingLayer.options.editing||(this.editingLayer.options.editing={}),this.editingLayer.editing.enable(),this.map.on("click",this.stopEditLayer),this.editingLayer.on("edit",()=>{this.editingLayer.feature=this.editingLayer.toGeoJSON(),this.options.onEditFeature(this.editingLayer.toGeoJSON())})}addMarker(n,e){if(this.mapService.isAvailable())return this.mapService.L.marker(n,e).addTo(this.map)}addHtmlMarker(n,e){if(this.mapService.isAvailable()){const r=this.mapService.L.divIcon({html:e,className:"aui-leaflet__html-icon"});return this.mapService.L.marker(n,{icon:r}).addTo(this.map)}}}const b5={name:"Base world gray",url:"https://{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}",options:{subdomains:["server","services"],maxNativeZoom:16}},C5={name:"Base antwerp",url:"https://basemap.antwerpen.be/tile/{z}/{y}/{x}",options:{minZoom:13,maxNativeZoom:19,maxZoom:21}};let _L=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke,er,Tl,cn,ip]})),t})(),bw=(()=>{class t{constructor(){_(this,"icon",void 0),_(this,"disabled",void 0),_(this,"ariaLabel","")}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-leaflet-control"]],inputs:{icon:"icon",disabled:"disabled",ariaLabel:"ariaLabel"},decls:2,vars:3,consts:[["type","button",1,"o-leaflet__control","a-button","a-button--small","has-icon",3,"disabled"],[3,"name"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"button",0),i.\u0275\u0275element(1,"aui-icon",1),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275property("disabled",r.disabled),i.\u0275\u0275attribute("aria-label",r.ariaLabel),i.\u0275\u0275advance(1),i.\u0275\u0275property("name",r.icon))},dependencies:[Gt],encapsulation:2})),t})(),vL=(()=>{class t{constructor(){_(this,"map",void 0)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-leaflet-drag-control"]],decls:1,vars:0,consts:[["icon","ai-direction-button-arrows","ariaLabel","Sleepmodus (de)activeren",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"aui-leaflet-control",0),i.\u0275\u0275listener("click",function(){return null==r.map?null:r.map.switchToDragging()}),i.\u0275\u0275elementEnd())},dependencies:[bw],encapsulation:2})),t})(),yL=(()=>{class t{constructor(){_(this,"map",void 0)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-leaflet-draw-control"]],decls:11,vars:0,consts:[["auiFlyout",""],["auiFlyoutAction","","type","button","aria-label","Tekenen",1,"a-button","a-button--small","has-icon"],["name","ai-pencil-1","ariaLabel","Tekenen"],["auiFlyoutZone",""],[1,"a-list","a-list--lined"],["auiFlyoutClose","",1,"a-list__item"],[1,"a-list__content",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"button",1),i.\u0275\u0275element(2,"aui-icon",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"div",3)(4,"ul",4)(5,"li",5)(6,"a",6),i.\u0275\u0275listener("click",function(){return null==r.map?null:r.map.switchToPolygon()}),i.\u0275\u0275text(7,"Vorm intekenen"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(8,"li",5)(9,"a",6),i.\u0275\u0275listener("click",function(){return null==r.map?null:r.map.switchToLine()}),i.\u0275\u0275text(10,"Lijn/route intekenen"),i.\u0275\u0275elementEnd()()()()())},dependencies:[Gt,np,II,Vl,fs],encapsulation:2})),t})(),bL=(()=>{class t{constructor(){_(this,"map",void 0)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-leaflet-fullscreen-control"]],decls:1,vars:0,consts:[["icon","ai-expand-1","ariaLabel","Volledig scherm (de)activeren",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"aui-leaflet-control",0),i.\u0275\u0275listener("click",function(){return null==r.map?null:r.map.toggleFullScreen()}),i.\u0275\u0275elementEnd())},dependencies:[bw],encapsulation:2})),t})(),CL=(()=>{class t{constructor(){_(this,"zoomLevel",19),_(this,"map",void 0)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-leaflet-locate-control"]],inputs:{zoomLevel:"zoomLevel"},decls:1,vars:1,consts:[["icon","ai-location-target-1","ariaLabel","Huidige positie",3,"disabled","click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"aui-leaflet-control",0),i.\u0275\u0275listener("click",function(){return null==r.map?null:r.map.locate(r.zoomLevel)}),i.\u0275\u0275elementEnd()),2&e&&i.\u0275\u0275property("disabled",null==r.map?null:r.map.locating)},dependencies:[bw],encapsulation:2})),t})(),wL=(()=>{class t{constructor(){_(this,"map",void 0)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-leaflet-zoom-control"]],decls:2,vars:2,consts:[["icon","ai-add","ariaLabel","Inzoomen",1,"o-leaflet__zoom-control",3,"disabled","click"],["icon","ai-subtract","ariaLabel","Uitzoomen",1,"o-leaflet__zoom-control",3,"disabled","click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"aui-leaflet-control",0),i.\u0275\u0275listener("click",function(){return null==r.map?null:r.map.zoomIn()}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(1,"aui-leaflet-control",1),i.\u0275\u0275listener("click",function(){return null==r.map?null:r.map.zoomOut()}),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275property("disabled",null==r.map?null:r.map.zoomInDisabled()),i.\u0275\u0275advance(1),i.\u0275\u0275property("disabled",null==r.map?null:r.map.zoomOutDisabled()))},dependencies:[bw],encapsulation:2})),t})();const w5=["map"],E5=["content"],D5=["*",[["","controls","","top","","left",""]],[["","controls","","top","","right",""]],[["","controls","","bottom","","right",""]],[["","controls","","bottom","","left",""]]],S5=function(t){return{"is-full-screen":t}},T5=function(t){return{"has-content":t}},M5=["*","[controls][top][left]","[controls][top][right]","[controls][bottom][right]","[controls][bottom][left]"];let x5=(()=>{class t{constructor(){_(this,"map",void 0),_(this,"content",void 0),_(this,"fullScreenControl",void 0),_(this,"zoomControl",void 0),_(this,"locateControl",void 0),_(this,"dragControl",void 0),_(this,"drawControl",void 0),_(this,"leafletMap",void 0),_(this,"hasSidebar",!1)}ngAfterViewInit(){setTimeout(()=>{this.leafletMap.init(this.map.nativeElement)})}ngAfterContentInit(){[this.fullScreenControl,this.zoomControl,this.locateControl,this.dragControl,this.drawControl].forEach(e=>e?e.map=this.leafletMap:null)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-leaflet"]],contentQueries:function(e,r,o){if(1&e&&(i.\u0275\u0275contentQuery(o,bL,5),i.\u0275\u0275contentQuery(o,wL,5),i.\u0275\u0275contentQuery(o,CL,5),i.\u0275\u0275contentQuery(o,vL,5),i.\u0275\u0275contentQuery(o,yL,5)),2&e){let c;i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.fullScreenControl=c.first),i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.zoomControl=c.first),i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.locateControl=c.first),i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.dragControl=c.first),i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.drawControl=c.first)}},viewQuery:function(e,r){if(1&e&&(i.\u0275\u0275viewQuery(w5,7),i.\u0275\u0275viewQuery(E5,7)),2&e){let o;i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.map=o.first),i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.content=o.first)}},inputs:{leafletMap:"leafletMap",hasSidebar:"hasSidebar"},ngContentSelectors:M5,decls:15,vars:6,consts:[[1,"aui-leaflet","o-leaflet",3,"ngClass"],[1,"o-leaflet__content",3,"ngClass"],["content",""],[1,"o-leaflet__wrapper"],[1,"o-leaflet__map"],["map",""],[1,"o-leaflet__controls","o-leaflet__controls--top-left"],[1,"o-leaflet__controls","o-leaflet__controls--top-right"],[1,"o-leaflet__controls","o-leaflet__controls--bottom-right"],[1,"o-leaflet__controls","o-leaflet__controls--bottom-left"]],template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(D5),i.\u0275\u0275elementStart(0,"div",0)(1,"div",1,2),i.\u0275\u0275projection(3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",3),i.\u0275\u0275element(5,"div",4,5),i.\u0275\u0275elementStart(7,"div",6),i.\u0275\u0275projection(8,1),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(9,"div",7),i.\u0275\u0275projection(10,2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(11,"div",8),i.\u0275\u0275projection(12,3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(13,"div",9),i.\u0275\u0275projection(14,4),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(2,S5,r.leafletMap.fullScreen)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(4,T5,r.hasSidebar)))},dependencies:[ze],styles:[":host{display:flex}\n"],encapsulation:2})),t})(),I5=(()=>{class t{constructor(){_(this,"importModule","import { LeafletModule } from '@acpaas-ui/ngx-leaflet';\n\n@NgModule({\n\timports: [\n\t\tLeafletModule\n\t]\n});\n\nexport class AppModule {};"),_(this,"codeExampleJS1",'"styles": [\n\t"node_modules/leaflet/dist/leaflet.css",\n\t"node_modules/leaflet-draw/dist/leaflet.draw.css"\n]'),_(this,"codeExampleJS2","import { LeafletMap, baseMapWorldGray, baseMapAntwerp, MapService } from '@acpaas-ui/ngx-leaflet';\n\nconstructor(public mapService: MapService) {\n}\n\npublic leafletMap: LeafletMap = new LeafletMap({\n\tzoom: 13, // default zoom level\n\tcenter: [51.215, 4.425], // default center point\n\tonAddPolygon: (layer) => {},\n\tonAddLine: (layer) => {},\n\tonEditFeature: (feature) => {},\n}, this.mapService);\n\npublic ngOnInit(): void {\n\tthis.leafletMap.onInit.subscribe(() => {\n\t\tthis.leafletMap.addTileLayer(baseMapWorldGray);\n\t\tthis.leafletMap.addTileLayer(baseMapAntwerp);\n });\n}"),_(this,"codeExampleHTML1",'\n\t
    \n\t\t\n\t\t\n\t
    \n\t
    \n\t\t\n\t
    \n\t
    \n\t\t\n\t
    \n\t
    \n\t\t\n\t
    \n\t
    \n\t\tContent displayed in sidebar\n\t
    \n
    '),_(this,"mapMockService",new v5("browser")),_(this,"leafletMap",new y5({zoom:13,center:[51.215,4.425],onAddPolygon:e=>{},onAddLine:e=>{},onEditFeature:e=>{}},this.mapMockService))}ngOnInit(){this.leafletMap.onInit.subscribe(()=>{this.leafletMap.addTileLayer(b5),this.leafletMap.addTileLayer(C5)})}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["ng-component"]],decls:23,vars:6,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[3,"leafletMap","hasSidebar"],["controls","","top","","left",""],["controls","","top","","right",""],["controls","","bottom","","left",""],["zoomLevel","16"],["controls","","bottom","","right",""]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Map"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",1),i.\u0275\u0275element(5,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",1),i.\u0275\u0275element(7,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",1),i.\u0275\u0275element(9,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",1)(11,"aui-leaflet",3)(12,"div",4),i.\u0275\u0275element(13,"aui-leaflet-drag-control")(14,"aui-leaflet-draw-control"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(15,"div",5),i.\u0275\u0275element(16,"aui-leaflet-fullscreen-control"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(17,"div",6),i.\u0275\u0275element(18,"aui-leaflet-locate-control",7),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(19,"div",8),i.\u0275\u0275element(20,"aui-leaflet-zoom-control"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(21,"div"),i.\u0275\u0275text(22," Content displayed in sidebar "),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.importModule),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS1),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleJS2),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.codeExampleHTML1),i.\u0275\u0275advance(2),i.\u0275\u0275property("leafletMap",r.leafletMap)("hasSidebar",!0))},dependencies:[Tt,vL,yL,bL,CL,wL,x5],encapsulation:2})),t})(),P5=(()=>{class t{constructor(){_(this,"createInterval","\n import { IntervalBuilder } from '@acpaas-ui/ngx-utils';\n\n const interval = IntervalBuilder.numberInterval(0, 10)\n .closedInterval()\n .bounded()\n .build();\n"),_(this,"dateInterval","\n import { IntervalBuilder } from '@acpaas-ui/ngx-utils';\n import { subDays } from 'date-fns';\n\n const today = new Date();\n const yesterday = subDays(new Date(), 1);\n const interval = IntervalBuilder.dateInterval(yesterday, today)\n .openInterval()\n .build();\n "),_(this,"notThePast","\n import { IntervalBuilder } from '@acpaas-ui/ngx-utils';\n\n const today = new Date();\n\n // This interval amounts to ]-infinity, today], so the past will be disabled\n const interval = IntervalBuilder.dateInterval(null, today)\n .leftOpenInterval()\n .unbounded()\n .not()\n .build();\n ")}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["app-interval-page"]],decls:22,vars:3,consts:[[1,"h4","u-margin-bottom"],["target","_blank","href","https://en.wikipedia.org/wiki/Interval_(mathematics)"],[1,"u-margin-bottom","u-margin-top"],[1,"u-margin-bottom"],[3,"codeSnippet"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h3",0),i.\u0275\u0275text(1,"Interval"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"blockquote"),i.\u0275\u0275text(3," For more information about the theoretical approach of intervals, see "),i.\u0275\u0275elementStart(4,"a",1),i.\u0275\u0275text(5,"here"),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(6,".\n"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(7,"div",2),i.\u0275\u0275text(8," The utils package allows you to create intervals which can be used in other packages. Ao: "),i.\u0275\u0275elementStart(9,"ul")(10,"li"),i.\u0275\u0275text(11,"ngx-calendar"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"li"),i.\u0275\u0275text(13,"ngx-forms Datepicker"),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(14,"div",3),i.\u0275\u0275element(15,"aui-code-snippet",4),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(16,"div",3),i.\u0275\u0275element(17,"aui-code-snippet",4),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(18,"p",3),i.\u0275\u0275text(19," The IntervalBuilder supports left and right open intervals, bounded and unbounded intervals and interval inversion by using the not() method.\n"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(20,"div",3),i.\u0275\u0275element(21,"aui-code-snippet",4),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275advance(15),i.\u0275\u0275property("codeSnippet",r.createInterval),i.\u0275\u0275advance(2),i.\u0275\u0275property("codeSnippet",r.dateInterval),i.\u0275\u0275advance(4),i.\u0275\u0275property("codeSnippet",r.notThePast))},dependencies:[Tt],encapsulation:2})),t})();class EL{}class L5{}const ha="*";function DL(t,n){return{type:7,name:t,definitions:n,options:{}}}function Cw(t,n=null){return{type:4,styles:n,timings:t}}function SL(t,n=null){return{type:2,steps:t,options:n}}function ps(t){return{type:6,styles:t,offset:null}}function ww(t,n,e){return{type:0,name:t,styles:n,options:e}}function TL(t){return{type:5,steps:t}}function Ew(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function ML(t){Promise.resolve().then(t)}class J_{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ML(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}class xL{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,r=0,o=0;const c=this.players.length;0==c?ML(()=>this._onFinish()):this.players.forEach(h=>{h.onDone(()=>{++e==c&&this._onFinish()}),h.onDestroy(()=>{++r==c&&this._onDestroy()}),h.onStart(()=>{++o==c&&this._onStart()})}),this.totalTime=this.players.reduce((h,y)=>Math.max(h,y.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(r=>{const o=r.totalTime?Math.min(1,e/r.totalTime):1;r.setPosition(o)})}getPosition(){const n=this.players.reduce((e,r)=>null===e||r.totalTime>e.totalTime?r:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}const iM="!",IL=["toast-component",""];function A5(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.remove())}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd()()}}function O5(t,n){if(1&t&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&t){const e=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",e.duplicatesCount+1,"]")}}function k5(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,O5,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(e.options.titleClass),i.\u0275\u0275attribute("aria-label",e.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",e.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",e.duplicatesCount)}}function R5(t,n){if(1&t&&i.\u0275\u0275element(0,"div",7),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(e.options.messageClass),i.\u0275\u0275property("innerHTML",e.message,i.\u0275\u0275sanitizeHtml)}}function F5(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(e.options.messageClass),i.\u0275\u0275attribute("aria-label",e.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",e.message," ")}}function N5(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",e.width+"%")}}class $5{constructor(n,e){this.component=n,this.injector=e}attach(n,e){return this._attachedHost=n,n.attach(this,e)}detach(){const n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class G5{attach(n,e){return this._attachedPortal=n,this.attachComponentPortal(n,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}}class W5{constructor(n){this._overlayRef=n,this.duplicatesCount=0,this._afterClosed=new vt.xQ,this._activate=new vt.xQ,this._manualClose=new vt.xQ,this._resetTimeout=new vt.xQ,this._countDuplicate=new vt.xQ}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,e){n&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class Dw{constructor(n,e,r,o,c,h){this.toastId=n,this.config=e,this.message=r,this.title=o,this.toastType=c,this.toastRef=h,this._onTap=new vt.xQ,this._onAction=new vt.xQ,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}}const LL=new i.InjectionToken("ToastConfig");class Z5 extends G5{constructor(n,e,r){super(),this._hostDomElement=n,this._componentFactoryResolver=e,this._appRef=r}attachComponentPortal(n,e){const r=this._componentFactoryResolver.resolveComponentFactory(n.component);let o;return o=r.create(n.injector),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.detachView(o.hostView),o.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(o),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(o)),o}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let q5=(()=>{class t{constructor(){this._document=(0,i.inject)(W)}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.createElement("div");e.classList.add("overlay-container"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),this._containerElement=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Y5{constructor(n){this._portalHost=n}attach(n,e=!0){return this._portalHost.attach(n,e)}detach(){return this._portalHost.detach()}}let Q5=(()=>{class t{constructor(){this._overlayContainer=(0,i.inject)(q5),this._componentFactoryResolver=(0,i.inject)(i.ComponentFactoryResolver),this._appRef=(0,i.inject)(i.ApplicationRef),this._document=(0,i.inject)(W),this._paneElements=new Map}create(e,r){return this._createOverlayRef(this.getPaneElement(e,r))}getPaneElement(e="",r){return this._paneElements.get(r)||this._paneElements.set(r,{}),this._paneElements.get(r)[e]||(this._paneElements.get(r)[e]=this._createPaneElement(e,r)),this._paneElements.get(r)[e]}_createPaneElement(e,r){const o=this._document.createElement("div");return o.id="toast-container",o.classList.add(e),o.classList.add("toast-container"),r?r.getContainerElement().appendChild(o):this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalHost(e){return new Z5(e,this._componentFactoryResolver,this._appRef)}_createOverlayRef(e){return new Y5(this._createPortalHost(e))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),rM=(()=>{class t{constructor(e,r,o,c,h){this.overlay=r,this._injector=o,this.sanitizer=c,this.ngZone=h,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig={...e.default,...e.config},e.config.iconClasses&&(this.toastrConfig.iconClasses={...e.default.iconClasses,...e.config.iconClasses})}show(e,r,o={},c=""){return this._preBuildNotification(c,e,r,this.applyConfig(o))}success(e,r,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",e,r,this.applyConfig(o))}error(e,r,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",e,r,this.applyConfig(o))}info(e,r,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",e,r,this.applyConfig(o))}warning(e,r,o={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",e,r,this.applyConfig(o))}clear(e){for(const r of this.toasts)if(void 0!==e){if(r.toastId===e)return void r.toastRef.manualClose()}else r.toastRef.manualClose()}remove(e){const r=this._findToast(e);if(!r||(r.activeToast.toastRef.close(),this.toasts.splice(r.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(e,r,o,c)):this._buildNotification(e,r,o,c)}_buildNotification(e,r,o,c){if(!c.toastComponent)throw new Error("toastComponent required");const h=this.findDuplicate(o,r,this.toastrConfig.resetTimeoutOnDuplicate&&c.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&o||r)&&this.toastrConfig.preventDuplicates&&null!==h)return h;this.previousToastMessage=r;let y=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(y=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const E=this.overlay.create(c.positionClass,this.overlayContainer);this.index=this.index+1;let M=r;r&&c.enableHtml&&(M=this.sanitizer.sanitize(i.SecurityContext.HTML,r));const A=new W5(E),k=new Dw(this.index,c,M,o,e,A),V=i.Injector.create({providers:[{provide:Dw,useValue:k}],parent:this._injector}),K=new $5(c.toastComponent,V),se=E.attach(K,c.newestOnTop);A.componentInstance=se.instance;const ae={toastId:this.index,title:o||"",message:r||"",toastRef:A,onShown:A.afterActivate(),onHidden:A.afterClosed(),onTap:k.onTap(),onAction:k.onAction(),portal:se};return y||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{ae.toastRef.activate()})),this.toasts.push(ae),ae}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(LL),i.\u0275\u0275inject(Q5),i.\u0275\u0275inject(i.Injector),i.\u0275\u0275inject(Zo),i.\u0275\u0275inject(i.NgZone))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),oM=(()=>{class t{get displayStyle(){if("inactive"===this.state.value)return"none"}constructor(e,r,o){this.toastrService=e,this.toastPackage=r,this.ngZone=o,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(c=>{this.duplicatesCount=c})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const e=(new Date).getTime();this.width=(this.hideTime-e)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(e,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(e),r)):this.timeout=setTimeout(()=>e(),r)}outsideInterval(e,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(e),r)):this.intervalId=setInterval(()=>e(),r)}runInsideAngular(e){this.ngZone?this.ngZone.run(()=>e()):e()}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275directiveInject(rM),i.\u0275\u0275directiveInject(Dw),i.\u0275\u0275directiveInject(i.NgZone))},t.\u0275cmp=i.\u0275\u0275defineComponent({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,r){1&e&&i.\u0275\u0275listener("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),2&e&&(i.\u0275\u0275syntheticHostProperty("@flyInOut",r.state),i.\u0275\u0275classMap(r.toastClasses),i.\u0275\u0275styleProp("display",r.displayStyle))},standalone:!0,features:[i.\u0275\u0275StandaloneFeature],attrs:IL,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,r){1&e&&(i.\u0275\u0275template(0,A5,3,0,"button",0),i.\u0275\u0275template(1,k5,3,5,"div",1),i.\u0275\u0275template(2,R5,1,3,"div",2),i.\u0275\u0275template(3,F5,2,4,"div",3),i.\u0275\u0275template(4,N5,2,2,"div",4)),2&e&&(i.\u0275\u0275property("ngIf",r.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.message&&r.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.message&&!r.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.options.progressBar))},dependencies:[Re],encapsulation:2,data:{animation:[DL("flyInOut",[ww("inactive",ps({opacity:0})),ww("active",ps({opacity:1})),ww("removed",ps({opacity:0})),Ew("inactive => active",Cw("{{ easeTime }}ms {{ easing }}")),Ew("active => removed",Cw("{{ easeTime }}ms {{ easing }}"))])]}}),t})();const K5={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:oM},J5=(t={})=>(0,i.makeEnvironmentProviders)([{provide:LL,useValue:{default:K5,config:t}}]);let X5=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[J5(e)]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({imports:[oM]}),t})();const sM=[{path:"",pathMatch:"full",redirectTo:"modules/avatar"},{path:"modules/avatar",component:$m,data:{meta:{title:"Avatar"}}},{path:"modules/calendar",component:Q2,data:{meta:{title:"Calendar"}}},{path:"modules/code-snippet",component:PD,data:{meta:{title:"Code Snippets"}}},{path:"modules/context",component:K2,data:{meta:{title:"Context"}}},{path:"modules/flyout",component:sN,data:{meta:{title:"Flyout"}}},{component:L3,path:"modules/forms",data:{meta:{title:"Forms"}},children:[{path:"",pathMatch:"full",redirectTo:"autocomplete"},{path:"autocomplete",pathMatch:"full",component:Mj,data:{meta:{title:"Autocomplete"}}},{path:"datepicker",pathMatch:"full",component:iH,data:{meta:{title:"Datepicker"}}},{path:"range-slider",pathMatch:"full",component:aH,data:{meta:{title:"Range Slider"}}},{path:"search-filter",pathMatch:"full",component:DH,data:{meta:{title:"Search Filter"}}},{path:"timepicker",pathMatch:"full",component:FH,data:{meta:{title:"Timepicker"}}},{path:"upload",pathMatch:"full",component:rU,data:{meta:{title:"Upload"}}}]},{path:"modules/icon",component:lN,data:{meta:{title:"Icon"}}},{component:oU,path:"modules/layout",data:{meta:{title:"Layout"}},children:[{path:"",pathMatch:"full",redirectTo:"footer"},{path:"footer",pathMatch:"full",component:cU,data:{meta:{title:"Footer"}}},{path:"header",pathMatch:"full",component:dU,data:{meta:{title:"Header"}}},{path:"modal",pathMatch:"full",component:D4,data:{meta:{title:"Modal"}}}]},{path:"modules/leaflet",component:I5,data:{meta:{title:"Leaflet"}}},{path:"modules/logo",component:ID,data:{meta:{title:"Logo"}}},{path:"modules/notifications",component:(()=>{class t{constructor(e){_(this,"notificationsService",void 0),_(this,"importModule","import { NotificationsModule } from '@acpaas-ui/ngx-notifications';\n\n@NgModule({\n imports: [ NotificationsModule, BrowserAnimationsModule ]\n})\nexport class AppModule { }\n "),_(this,"showNotification","import { NotificationsService } from '@acpaas-ui/ngx-notifications';\n\n@Component({...})\nexport class Component {\n\n constructor(private service: NotificationsService) {}\n\n showInfoNotification() {\n this.notificationsService.info('This is the body of an info notification.', 'Info', { /* Extra options */ });\n }\n\n showSuccessNotification() {\n this.notificationsService.success('This is the body of a success notification.', 'Success', { /* Extra options */ });\n }\n\n showWarningNotification() {\n this.notificationsService.warning('This is the body of a warning notification', 'Warning', { /* Extra options */ });\n }\n\n showErrorNotification() {\n this.notificationsService.error('This is the body of an error notification', 'Error', { /* Extra options */ });\n }\n}\n "),this.notificationsService=e}showInfoNotification(){this.notificationsService.info("This is the body of an info notification.","Info")}showSuccessNotification(){this.notificationsService.success("This is the body of a success notification.","Success")}showWarningNotification(){this.notificationsService.warning("This is the body of a warning notification","Warning")}showErrorNotification(){this.notificationsService.error("This is the body of an error notification","Error")}}return _(t,"\u0275fac",function(e){return new(e||t)(i.\u0275\u0275directiveInject(rM))}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["app-notifications-demo"]],decls:32,vars:2,consts:[[1,"h3","u-margin-bottom"],[1,"u-margin-bottom"],[3,"codeSnippet"],[1,"u-margin-top","u-margin-bottom","m-alert"],[1,"u-margin-top","u-margin-bottom"],["href","https://www.npmjs.com/package/ngx-toastr#options","target","_blank",1,"has-icon-right"],["name","ai-navigation-next","ariaLabel"," (external)"],[1,"u-margin-bottom-xs"],[1,"a-button",3,"click"],[1,"a-button","a-button--success",3,"click"],[1,"a-button","a-button--warning",3,"click"],[1,"a-button","a-button--danger",3,"click"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"h2",0),i.\u0275\u0275text(1,"Notifications"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(2,"div",1),i.\u0275\u0275element(3,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",3)(5,"p")(6,"strong"),i.\u0275\u0275text(7,"Note:"),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(8," For this package to work properly, it is important to import the "),i.\u0275\u0275elementStart(9,"code"),i.\u0275\u0275text(10,"BrowserAnimationsModule"),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(11," in the root module of your application. "),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(12,"div",1),i.\u0275\u0275element(13,"aui-code-snippet",2),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(14,"div",4)(15,"p"),i.\u0275\u0275text(16,"Our notifications package is built on ngx-toastr. All available options are listed on the "),i.\u0275\u0275elementStart(17,"a",5),i.\u0275\u0275text(18,"ngx-toastr NPM page"),i.\u0275\u0275element(19,"aui-icon",6),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(20,"div",7)(21,"button",8),i.\u0275\u0275listener("click",function(){return r.showInfoNotification()}),i.\u0275\u0275text(22,"Show info notification"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(23,"div",7)(24,"button",9),i.\u0275\u0275listener("click",function(){return r.showSuccessNotification()}),i.\u0275\u0275text(25,"Show success notification"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(26,"div",7)(27,"button",10),i.\u0275\u0275listener("click",function(){return r.showWarningNotification()}),i.\u0275\u0275text(28,"Show warning notification"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(29,"div",1)(30,"button",11),i.\u0275\u0275listener("click",function(){return r.showErrorNotification()}),i.\u0275\u0275text(31,"Show error notification"),i.\u0275\u0275elementEnd()()),2&e&&(i.\u0275\u0275advance(3),i.\u0275\u0275property("codeSnippet",r.importModule),i.\u0275\u0275advance(10),i.\u0275\u0275property("codeSnippet",r.showNotification))},dependencies:[Tt,Bl],encapsulation:2})),t})(),data:{meta:{title:"Notifications"}}},{path:"modules/pagination",component:wN,data:{meta:{title:"Pagination"}}},{path:"modules/progress-bar",component:SN,data:{meta:{title:"Progress Bar"}}},{path:"modules/selectable-list",component:P3,data:{meta:{title:"Selectable List"}}},{path:"modules/table",component:s3,data:{meta:{title:"Table"}}},{path:"modules/user-menu",component:y3,data:{meta:{title:"User Menu"}}},{component:S4,path:"modules/utils",data:{meta:{title:"Utils"}},children:[{path:"",pathMatch:"full",redirectTo:"filter"},{path:"filter",pathMatch:"full",component:V4,data:{meta:{title:"Filter"}}},{path:"labels",pathMatch:"full",component:U4,data:{meta:{title:"Labels"}}},{path:"window",pathMatch:"full",component:z4,data:{meta:{title:"Window"}}},{path:"interval",pathMatch:"full",component:P5,data:{meta:{title:"Interval"}}}]}];let e$=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["guide-footer"]],decls:57,vars:0,consts:[["auiFooterContent",""],[1,"u-container"],[1,"row"],[1,"col-xs-12","col-sm-6","col-md-4","u-margin-bottom-xs","u-margin-top-xs"],[1,"h4"],[1,"a-list","u-margin-top-xs"],[1,"a-list__item"],["href","https://digitalehuisstijl.antwerpen.be","target","_blank",1,"a-list__content","has-icon-right"],["name","ai-navigation-next","ariaLabel"," (external)"],["href","https://www.github.com/a-ui/core_branding_scss","target","_blank",1,"a-list__content","has-icon-right"],["href","https://www.github.com/a-ui/core_components_react","target","_blank",1,"a-list__content","has-icon-right"],["href","https://github.com/digipolisantwerp/smart-widgets","target","_blank",1,"a-list__content","has-icon-right"],["href","https://www.digipolisantwerpen.be","target","_blank",1,"a-list__content","has-icon-right"],["href","https://antwerpen.digipolis.be/nl/opdrachten","target","_blank",1,"a-list__content","has-icon-right"],["href","https://jobs.digipolis.be","target","_blank",1,"a-list__content","has-icon-right"],["href","https://onstage.digipolis.be","target","_blank",1,"a-list__content","has-icon-right"],[1,"col-xs-12","col-md-4","u-margin-bottom-xs","u-margin-top-xs"],["href","https://www.facebook.com/DigipolisAntwerpen","aria-label","Facebook","target","_blank",1,"a-button","a-button--social","a-button--negative","has-icon"],["name","ai-social-media-facebook"],["href","https://twitter.com/Dgplsantwerpen","aria-label","Twitter","target","_blank",1,"a-button","a-button--social","a-button--negative","has-icon"],["name","ai-social-media-twitter"],["href","https://www.linkedin.com/company/digipolisantwerpen","aria-label","LinkedIn","target","_blank",1,"a-button","a-button--social","a-button--negative","has-icon"],["name","ai-professional-network-linkedin"],["auiFooterBottom",""],["ariaGoUpLabel","Go back to top"],["domain","Digipolis Antwerpen"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"aui-footer")(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"h3",4),i.\u0275\u0275text(6,"Antwerp UI"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(7,"ul",5)(8,"li",6)(9,"a",7),i.\u0275\u0275text(10,"Digital branding guidelines"),i.\u0275\u0275element(11,"aui-icon",8),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(12,"li",6)(13,"a",9),i.\u0275\u0275text(14,"Core branding"),i.\u0275\u0275element(15,"aui-icon",8),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(16,"li",6)(17,"a",10),i.\u0275\u0275text(18,"React components"),i.\u0275\u0275element(19,"aui-icon",8),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(20,"li",6)(21,"a",11),i.\u0275\u0275text(22,"Smart widgets"),i.\u0275\u0275element(23,"aui-icon",8),i.\u0275\u0275elementEnd()()()(),i.\u0275\u0275elementStart(24,"div",3)(25,"h3",4),i.\u0275\u0275text(26,"Digital city of tomorrow"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(27,"ul",5)(28,"li",6)(29,"a",12),i.\u0275\u0275text(30,"Digipolis Antwerp"),i.\u0275\u0275element(31,"aui-icon",8),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(32,"li",6)(33,"a",13),i.\u0275\u0275text(34,"Digital Antwerp"),i.\u0275\u0275element(35,"aui-icon",8),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(36,"li",6)(37,"a",14),i.\u0275\u0275text(38,"Vacancies"),i.\u0275\u0275element(39,"aui-icon",8),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(40,"li",6)(41,"a",15),i.\u0275\u0275text(42,"Internships"),i.\u0275\u0275element(43,"aui-icon",8),i.\u0275\u0275elementEnd()()()(),i.\u0275\u0275elementStart(44,"div",16)(45,"h3",4),i.\u0275\u0275text(46,"Social media"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(47,"div",5)(48,"a",17),i.\u0275\u0275element(49,"aui-icon",18),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(50,"a",19),i.\u0275\u0275element(51,"aui-icon",20),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(52,"a",21),i.\u0275\u0275element(53,"aui-icon",22),i.\u0275\u0275elementEnd()()()()()(),i.\u0275\u0275elementStart(54,"div",23)(55,"aui-subfooter",24),i.\u0275\u0275element(56,"aui-copyright",25),i.\u0275\u0275elementEnd()()())},dependencies:[dP,hP,fP,pP,V1,Bl],encapsulation:2})),t})(),AL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275dir",i.\u0275\u0275defineDirective({type:t,selectors:[["","auiHeaderLogo",""]]})),t})(),t$=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275dir",i.\u0275\u0275defineDirective({type:t,selectors:[["","auiHeaderContent",""]]})),t})();const n$=[[["","auiHeaderLogo",""]],[["","auiHeaderContent",""]],[["","auiHeaderMenuItem",""]]],i$=["[auiHeaderLogo]","[auiHeaderContent]","[auiHeaderMenuItem]"];let r$=(()=>{class t{constructor(){_(this,"logo",void 0),_(this,"content",void 0)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-header"]],contentQueries:function(e,r,o){if(1&e&&(i.\u0275\u0275contentQuery(o,AL,7),i.\u0275\u0275contentQuery(o,t$,7)),2&e){let c;i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.logo=c.first),i.\u0275\u0275queryRefresh(c=i.\u0275\u0275loadQuery())&&(r.content=c.first)}},ngContentSelectors:i$,decls:7,vars:0,consts:[[1,"o-header","aui-header"],[1,"o-header__content-wrapper"],[1,"o-header__content"],[1,"o-header__menu-items"]],template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(n$),i.\u0275\u0275elementStart(0,"div",0)(1,"div",1),i.\u0275\u0275projection(2),i.\u0275\u0275elementStart(3,"div",2),i.\u0275\u0275projection(4,1),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(5,"div",3),i.\u0275\u0275projection(6,2),i.\u0275\u0275elementEnd()()())},encapsulation:2})),t})(),o$=(()=>{class t{constructor(){_(this,"class","o-header__menu-item")}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275dir",i.\u0275\u0275defineDirective({type:t,selectors:[["","auiHeaderMenuItem",""]],hostVars:2,hostBindings:function(e,r){2&e&&i.\u0275\u0275classMap(r.class)}})),t})(),s$=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["guide-header"]],decls:7,vars:1,consts:[["auiHeaderLogo",""],["src","https://cdn.antwerpen.be/core_branding_scss/6.2.2/assets/images/a-logo.svg","title","Antwerp logo.",3,"link"],["auiHeaderMenuItem",""],["href","http://github.com/digipolisantwerp/antwerp-ui_angular",1,"a-button","a-button--text","a-button--neutral","o-header__button","has-icon-left"],["name","ai-developer-community-github-1"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"aui-header")(1,"div",0),i.\u0275\u0275element(2,"aui-logo",1),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(3,"div",2)(4,"a",3),i.\u0275\u0275element(5,"aui-icon",4),i.\u0275\u0275text(6,"GitHub "),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(2),i.\u0275\u0275property("link","/"))},dependencies:[$y,r$,AL,o$,Bl],encapsulation:2})),t})();function a$(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"p",4),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(e.description)}}let l$=(()=>{class t{constructor(){_(this,"title",void 0),_(this,"description",void 0)}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["guide-hero"]],inputs:{title:"title",description:"description"},decls:6,vars:2,consts:[[1,"o-hero"],[1,"u-text-xlight"],[1,"h3"],["class","u-margin-top-xxs u-text-bold",4,"ngIf"],[1,"u-margin-top-xxs","u-text-bold"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div")(3,"h1",2),i.\u0275\u0275text(4),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(5,a$,2,1,"p",3),i.\u0275\u0275elementEnd()()()),2&e&&(i.\u0275\u0275advance(4),i.\u0275\u0275textInterpolate(r.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.description))},dependencies:[Re],styles:['[_ngcontent-%COMP%]:root{--THEME1-800: var(--theme1-800, #002855);--THEME1-700: var(--theme1-700, #003865);--THEME1-600: var(--theme1-600, #0057b7);--THEME1-500: var(--theme1-500, #009cde);--THEME1-400: var(--theme1-400, #41b6e6);--THEME1-300: var(--theme1-300, #99d6ea);--THEME1-200: var(--theme1-200, #96b5e4);--THEME1-100: var(--theme1-100, #e0ebf6);--THEME2-800: var(--theme2-800,);--THEME2-700: var(--theme2-700,);--THEME2-600: var(--theme2-600, #7c2629);--THEME2-500: var(--theme2-500, #862633);--THEME2-400: var(--theme2-400, #cf0039);--THEME2-300: var(--theme2-300, #df4661);--THEME2-200: var(--theme2-200, #ffb1bb);--THEME2-100: var(--theme2-100, #f5dadf);--INFO-800: var(--info-800, var(--THEME1-800));--INFO-700: var(--info-700, var(--THEME1-700));--INFO-600: var(--info-600, var(--THEME1-600));--INFO-500: var(--info-500, var(--THEME1-500));--INFO-400: var(--info-400, var(--THEME1-400));--INFO-300: var(--info-300, var(--THEME1-300));--INFO-200: var(--info-200, var(--THEME1-200));--INFO-100: var(--info-100, var(--THEME1-100));--SUCCESS-800: var(--success-800, #004721);--SUCCESS-700: var(--success-700, #006e33);--SUCCESS-600: var(--success-600, #4c8d2b);--SUCCESS-500: var(--success-500, #6cc24a);--SUCCESS-400: var(--success-400, #97d700);--SUCCESS-300: var(--success-300, #bce194);--SUCCESS-200: var(--success-200, #d0debb);--SUCCESS-100: var(--success-100, #edf8e9);--WARNING-800: var(--warning-800,);--WARNING-700: var(--warning-700,);--WARNING-600: var(--warning-600,);--WARNING-500: var(--warning-500, #8f3400);--WARNING-400: var(--warning-400, #ce4c00);--WARNING-300: var(--warning-300,);--WARNING-200: var(--warning-200,);--WARNING-100: var(--warning-100, #ffe4d6);--DANGER-800: var(--danger-800,);--DANGER-700: var(--danger-700, #7c2629);--DANGER-600: var(--danger-600, #af272f);--DANGER-500: var(--danger-500, #e03c31);--DANGER-400: var(--danger-400, #e56a54);--DANGER-300: var(--danger-300, #e6baa8);--DANGER-200: var(--danger-200, #f3cfb3);--DANGER-100: var(--danger-100, #fbe8e6);--TEXT-COLOR: var(--text-color, #000);--TEXT-COLOR-LIGHT: var(--text-color-light, #6f6f6f);--TEXT-COLOR-INVERTED: var(--text-color-inverted, #fff);--TEXT-COLOR-XLIGHT: var(--text-color-xlight, var(--TEXT-COLOR-INVERTED));--BG-COLOR: var(--bg-color, #f3f3f3);--BG-COLOR-LIGHT: var(--bg-color-light, #fff);--BG-COLOR-INVERTED: var(--bg-color-inverted, #424242);--BORDER-COLOR: var(--border-color, #949494);--BORDER-COLOR-LIGHT: var(--border-color-light, #d8d8d8);--OVERLAY-COLOR: var(--overlay-color, rgba(0, 0, 0, .75));--BOX-SHADOW-COLOR: var(--box-shadow-color, rgba(20, 20, 20, .12));--LINK-COLOR: var(--link-color, var(--THEME1-600));--LINK-HOVER-COLOR: var(--link-hover-color, var(--THEME1-700));--STATE-INFO: var(--state-info, var(--INFO-600));--STATE-SUCCESS: var(--state-success, var(--SUCCESS-700));--STATE-WARNING: var(--state-warning, var(--WARNING-400));--STATE-DANGER: var(--state-danger, var(--DANGER-600));--STATE-DISABLED: var(--state-disabled, #6f6f6f);--SPACER: var(--spacer, 1.5rem);--SPACER-3XL: var(--spacer-3xl, calc(var(--SPACER) * 4));--SPACER-XXL: var(--spacer-xxl, calc(var(--SPACER) * 2.5));--SPACER-XL: var(--spacer-xl, calc(var(--SPACER) * 2));--SPACER-L: var(--spacer-l, calc(var(--SPACER) * 1.5));--SPACER-S: var(--spacer-s, calc(var(--SPACER) / 1.5));--SPACER-XS: var(--spacer-xs, calc(var(--SPACER) / 2));--SPACER-XXS: var(--spacer-xxs, calc(var(--SPACER) / 3));--SPACER-3XS: var(--spacer-3xs, calc(var(--SPACER) / 6));--SCREEN-XS: var(--screen-xs, 30rem);--SCREEN-S: var(--screen-s, 45rem);--SCREEN-L: var(--screen-l, 62rem);--SCREEN-XL: var(--screen-xl, 75rem);--SCREEN-XS-MAX: var(--screen-xs-max, 44.9375rem);--SCREEN-S-MAX: var(--screen-s-max, 61.9375rem);--SCREEN-L-MAX: var(--screen-l-max, 74.9375rem);--SCREEN-XL-MAX: var(--screen-xl-max, 89.9375rem);--SCREEN-XXL: var(--screen-xxl, calc(var(--SCREEN-XL) + calc(var(--SPACER-3XL) * 2) + calc(var(--SPACER) * 2)));--FONT-FAMILY-BASE: var(--font-family-base, "Sun Antwerpen", sans-serif);--FONT-FAMILY-HEADINGS: var(--font-family-headings, "Antwerpen Regular", sans-serif);--FONT-FAMILY-MONOSPACE: var(--font-family-monospace, "Menlo", "Monaco", "Consolas", "Courier New", monospace);--FONT-WEIGHT-LIGHT: var(--font-weight-light, 300);--FONT-WEIGHT-NORMAL: var(--font-weight-normal, 500);--FONT-WEIGHT-BOLD: var(--font-weight-bold, 700);--FONT-WEIGHT-EXTRA-BOLD: var(--font-weight-extra-bold, 800);--FONT-WEIGHT-H1: var(--font-weight-h1, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H2: var(--font-weight-h2, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H3: var(--font-weight-h3, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H4: var(--font-weight-h4, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H5: var(--font-weight-h5, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H6: var(--font-weight-h6, var(--FONT-WEIGHT-BOLD));--FONT-SIZE-BASE: var(--font-size-base, 16px);--FONT-SIZE-SMALL: var(--font-size-small, 14px);--FONT-SIZE-LARGE: var(--font-size-large, 18px);--FONT-SIZE-H1: var(--font-size-h1, 36px);--FONT-SIZE-H2: var(--font-size-h2, 28px);--FONT-SIZE-H3: var(--font-size-h3, 23px);--FONT-SIZE-H4: var(--font-size-h4, 21px);--FONT-SIZE-H5: var(--font-size-h5, 19px);--FONT-SIZE-H6: var(--font-size-h6, 17px);--LINE-HEIGHT-BASE: var(--line-height-base, 1);--LINE-HEIGHT-HEADING: var(--line-height-heading, 1.1);--LINE-HEIGHT-PARAGRAPH: var(--line-height-paragraph, 1.3);--BORDER-RADIUS: var(--border-radius, 0);--BORDER-WIDTH: var(--border-width, 1px);--ANIMATION-DURATION: var(--animation-duration, .2s);--ANIMATION-EASING: var(--animation-easing, ease-in-out);--ANIMATION-NORMAL: var(--animation-normal, var(--ANIMATION-DURATION) var(--ANIMATION-EASING));--BOX-SHADOW-BOTTOM-LEFT: var(--box-shadow-bottom-left, calc(var(--SPACER) / -2) calc(var(--SPACER) / 2) 0 var(--BOX-SHADOW-COLOR));--BOX-SHADOW-BOTTOM-RIGHT: var(--box-shadow-bottom-right, calc(var(--SPACER) / 2) calc(var(--SPACER) / 2) 0 var(--BOX-SHADOW-COLOR));--BOX-SHADOW-TOP-LEFT: var(--box-shadow-top-left, calc(var(--SPACER) / -2) calc(var(--SPACER) / -2) 0 var(--BOX-SHADOW-COLOR));--BOX-SHADOW-TOP-RIGHT: var(--box-shadow-top-right, calc(var(--SPACER) / 2) calc(var(--SPACER) / -2) 0 var(--BOX-SHADOW-COLOR));--BOX-SHADOW: var(--box-shadow, var(--BOX-SHADOW-BOTTOM-RIGHT))}[_ngcontent-%COMP%]:root{--shared-avatar-size-s: var(--SPACER-L);--shared-avatar-size: var(--SPACER-XL);--shared-avatar-size-l: var(--SPACER-XXL);--shared-copyright-color: var(--TEXT-COLOR-INVERTED);--shared-copyright-height: var(--SPACER-L);--shared-header-height: var(--SPACER-XL);--shared-slideshow-footer-color-light: var(--TEXT-COLOR-INVERTED)}.o-hero[_ngcontent-%COMP%]{background-color:#0057b7;height:auto;min-height:4.5rem;padding-left:1.5rem}.o-hero[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{padding-left:2.25rem}.u-margin-top-xxs[_ngcontent-%COMP%]{margin-top:.25rem}']})),t})();const u$=["mainContent"],c$=["skipContent"],d$=function(t){return[t]};function h$(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"a",22)(1,"span",23),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd()()),2&t){const e=i.\u0275\u0275nextContext().$implicit;i.\u0275\u0275property("routerLink",i.\u0275\u0275pureFunction1(2,d$,e.path)),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(null==e.data||null==e.data.meta?null:e.data.meta.title)}}function f$(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"span",24)(1,"span",23),i.\u0275\u0275text(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(3,"aui-icon",25),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext().$implicit;i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(null==e.data||null==e.data.meta?null:e.data.meta.title)}}const p$=function(t,n){return[t,n]};function m$(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"li",18)(1,"a",22)(2,"span",23),i.\u0275\u0275text(3),i.\u0275\u0275elementEnd()()()),2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext(2).$implicit;i.\u0275\u0275advance(1),i.\u0275\u0275property("routerLink",i.\u0275\u0275pureFunction2(2,p$,r.path,e.path)),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(null==e.data||null==e.data.meta?null:e.data.meta.title)}}function g$(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"ul",26),i.\u0275\u0275template(1,m$,4,5,"li",7),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext().$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",r.getChildrenRoutes(e))}}function _$(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"li",18),i.\u0275\u0275template(1,h$,3,4,"a",19),i.\u0275\u0275template(2,f$,4,1,"span",20),i.\u0275\u0275template(3,g$,2,1,"ul",21),i.\u0275\u0275elementEnd()),2&t){const e=n.$implicit,r=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!r.shouldDisplaySubMenu(e)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.shouldDisplaySubMenu(e)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.shouldDisplaySubMenu(e))}}let v$=(()=>{class t{constructor(){_(this,"mainContent",void 0),_(this,"skipContent",void 0),_(this,"packages",sM.splice(0,1));const e=[...sM];this.packages=e}shouldDisplaySubMenu(e){return e&&e.children&&e.children.length>=1}getChildrenRoutes(e){const r=[...e.children];return r.splice(0,1),r}goToMainContent(e){e.preventDefault(),e.stopPropagation();const o=this.skipContent.nativeElement;this.mainContent.nativeElement.focus(),o.blur()}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["app-root"]],viewQuery:function(e,r){if(1&e&&(i.\u0275\u0275viewQuery(u$,7),i.\u0275\u0275viewQuery(c$,7)),2&e){let o;i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.mainContent=o.first),i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r.skipContent=o.first)}},decls:30,vars:1,consts:[["aria-label","Main header","role","banner"],["href","#main-content",1,"a-button--text","o-header__button","o-header__button-skip",3,"click"],["skipContent",""],["title","Angular core components"],[1,"u-main"],[1,"u-main-menu"],[1,"a-list","a-list--lined","a-list--flushed"],["class","a-list__item",4,"ngFor","ngForOf"],[1,"u-container","u-margin-top","u-margin-bottom","p-antwerp-ui"],[1,"row"],[1,"col-xs-12"],["role","alertdialog","aria-labelledby","alert-warning",1,"m-alert","m-alert--warning","u-margin-bottom-l"],["className","m-alert__icon","name","ai-alert-circle"],["id","alert-warning",1,"h5","u-margin-bottom-xs"],[1,"u-margin-bottom-xs"],["href","https://digitalehuisstijl.antwerpen.be","rel","external"],["id","main-content","tabindex","-1",1,"col-xs-12"],["mainContent",""],[1,"a-list__item"],["class","a-list__content","routerLinkActive","is-active",3,"routerLink",4,"ngIf"],["class","a-list__content",4,"ngIf"],["class","a-list a-list--lined",4,"ngIf"],["routerLinkActive","is-active",1,"a-list__content",3,"routerLink"],[1,"a-list__text"],[1,"a-list__content"],["name","ai-arrow-down-1"],[1,"a-list","a-list--lined"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"header",0)(1,"a",1,2),i.\u0275\u0275listener("click",function(c){return r.goToMainContent(c)}),i.\u0275\u0275text(3,"Skip to main content"),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(4,"guide-header")(5,"guide-hero",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"div",4)(7,"div",5)(8,"ul",6),i.\u0275\u0275template(9,_$,4,3,"li",7),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(10,"div",8)(11,"div",9)(12,"div",10)(13,"div",11),i.\u0275\u0275element(14,"aui-icon",12),i.\u0275\u0275elementStart(15,"h4",13),i.\u0275\u0275text(16,"Deprecation notice"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(17,"p",14),i.\u0275\u0275text(18," As of October 2022 we deprecated the use of Angular as a frontend solution. This means that new frontend solutions should always be built using React.js. "),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(19,"p",14),i.\u0275\u0275text(20," Existing projects can still do a one-time upgrade to the latest version of Angular (and accompanying components), but should migrate, as described in the Digipolis Antwerpen Application Stack (DAAS). "),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(21,"p"),i.\u0275\u0275text(22," Always check "),i.\u0275\u0275elementStart(23,"a",15),i.\u0275\u0275text(24,"https://digitalehuisstijl.antwerpen.be"),i.\u0275\u0275elementEnd(),i.\u0275\u0275text(25," for the latest news and guidelines concerning Antwerp's digital branding guidelines. "),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(26,"main",16,17),i.\u0275\u0275element(28,"router-outlet"),i.\u0275\u0275elementEnd()()()(),i.\u0275\u0275element(29,"guide-footer")),2&e&&(i.\u0275\u0275advance(9),i.\u0275\u0275property("ngForOf",r.packages))},dependencies:[re,Re,qs,Qs,Ry,Bl,e$,s$,l$],styles:['[_ngcontent-%COMP%]:root{--THEME1-800: var(--theme1-800, #002855);--THEME1-700: var(--theme1-700, #003865);--THEME1-600: var(--theme1-600, #0057b7);--THEME1-500: var(--theme1-500, #009cde);--THEME1-400: var(--theme1-400, #41b6e6);--THEME1-300: var(--theme1-300, #99d6ea);--THEME1-200: var(--theme1-200, #96b5e4);--THEME1-100: var(--theme1-100, #e0ebf6);--THEME2-800: var(--theme2-800,);--THEME2-700: var(--theme2-700,);--THEME2-600: var(--theme2-600, #7c2629);--THEME2-500: var(--theme2-500, #862633);--THEME2-400: var(--theme2-400, #cf0039);--THEME2-300: var(--theme2-300, #df4661);--THEME2-200: var(--theme2-200, #ffb1bb);--THEME2-100: var(--theme2-100, #f5dadf);--INFO-800: var(--info-800, var(--THEME1-800));--INFO-700: var(--info-700, var(--THEME1-700));--INFO-600: var(--info-600, var(--THEME1-600));--INFO-500: var(--info-500, var(--THEME1-500));--INFO-400: var(--info-400, var(--THEME1-400));--INFO-300: var(--info-300, var(--THEME1-300));--INFO-200: var(--info-200, var(--THEME1-200));--INFO-100: var(--info-100, var(--THEME1-100));--SUCCESS-800: var(--success-800, #004721);--SUCCESS-700: var(--success-700, #006e33);--SUCCESS-600: var(--success-600, #4c8d2b);--SUCCESS-500: var(--success-500, #6cc24a);--SUCCESS-400: var(--success-400, #97d700);--SUCCESS-300: var(--success-300, #bce194);--SUCCESS-200: var(--success-200, #d0debb);--SUCCESS-100: var(--success-100, #edf8e9);--WARNING-800: var(--warning-800,);--WARNING-700: var(--warning-700,);--WARNING-600: var(--warning-600,);--WARNING-500: var(--warning-500, #8f3400);--WARNING-400: var(--warning-400, #ce4c00);--WARNING-300: var(--warning-300,);--WARNING-200: var(--warning-200,);--WARNING-100: var(--warning-100, #ffe4d6);--DANGER-800: var(--danger-800,);--DANGER-700: var(--danger-700, #7c2629);--DANGER-600: var(--danger-600, #af272f);--DANGER-500: var(--danger-500, #e03c31);--DANGER-400: var(--danger-400, #e56a54);--DANGER-300: var(--danger-300, #e6baa8);--DANGER-200: var(--danger-200, #f3cfb3);--DANGER-100: var(--danger-100, #fbe8e6);--TEXT-COLOR: var(--text-color, #000);--TEXT-COLOR-LIGHT: var(--text-color-light, #6f6f6f);--TEXT-COLOR-INVERTED: var(--text-color-inverted, #fff);--TEXT-COLOR-XLIGHT: var(--text-color-xlight, var(--TEXT-COLOR-INVERTED));--BG-COLOR: var(--bg-color, #f3f3f3);--BG-COLOR-LIGHT: var(--bg-color-light, #fff);--BG-COLOR-INVERTED: var(--bg-color-inverted, #424242);--BORDER-COLOR: var(--border-color, #949494);--BORDER-COLOR-LIGHT: var(--border-color-light, #d8d8d8);--OVERLAY-COLOR: var(--overlay-color, rgba(0, 0, 0, .75));--BOX-SHADOW-COLOR: var(--box-shadow-color, rgba(20, 20, 20, .12));--LINK-COLOR: var(--link-color, var(--THEME1-600));--LINK-HOVER-COLOR: var(--link-hover-color, var(--THEME1-700));--STATE-INFO: var(--state-info, var(--INFO-600));--STATE-SUCCESS: var(--state-success, var(--SUCCESS-700));--STATE-WARNING: var(--state-warning, var(--WARNING-400));--STATE-DANGER: var(--state-danger, var(--DANGER-600));--STATE-DISABLED: var(--state-disabled, #6f6f6f);--SPACER: var(--spacer, 1.5rem);--SPACER-3XL: var(--spacer-3xl, calc(var(--SPACER) * 4));--SPACER-XXL: var(--spacer-xxl, calc(var(--SPACER) * 2.5));--SPACER-XL: var(--spacer-xl, calc(var(--SPACER) * 2));--SPACER-L: var(--spacer-l, calc(var(--SPACER) * 1.5));--SPACER-S: var(--spacer-s, calc(var(--SPACER) / 1.5));--SPACER-XS: var(--spacer-xs, calc(var(--SPACER) / 2));--SPACER-XXS: var(--spacer-xxs, calc(var(--SPACER) / 3));--SPACER-3XS: var(--spacer-3xs, calc(var(--SPACER) / 6));--SCREEN-XS: var(--screen-xs, 30rem);--SCREEN-S: var(--screen-s, 45rem);--SCREEN-L: var(--screen-l, 62rem);--SCREEN-XL: var(--screen-xl, 75rem);--SCREEN-XS-MAX: var(--screen-xs-max, 44.9375rem);--SCREEN-S-MAX: var(--screen-s-max, 61.9375rem);--SCREEN-L-MAX: var(--screen-l-max, 74.9375rem);--SCREEN-XL-MAX: var(--screen-xl-max, 89.9375rem);--SCREEN-XXL: var(--screen-xxl, calc(var(--SCREEN-XL) + calc(var(--SPACER-3XL) * 2) + calc(var(--SPACER) * 2)));--FONT-FAMILY-BASE: var(--font-family-base, "Sun Antwerpen", sans-serif);--FONT-FAMILY-HEADINGS: var(--font-family-headings, "Antwerpen Regular", sans-serif);--FONT-FAMILY-MONOSPACE: var(--font-family-monospace, "Menlo", "Monaco", "Consolas", "Courier New", monospace);--FONT-WEIGHT-LIGHT: var(--font-weight-light, 300);--FONT-WEIGHT-NORMAL: var(--font-weight-normal, 500);--FONT-WEIGHT-BOLD: var(--font-weight-bold, 700);--FONT-WEIGHT-EXTRA-BOLD: var(--font-weight-extra-bold, 800);--FONT-WEIGHT-H1: var(--font-weight-h1, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H2: var(--font-weight-h2, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H3: var(--font-weight-h3, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H4: var(--font-weight-h4, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H5: var(--font-weight-h5, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H6: var(--font-weight-h6, var(--FONT-WEIGHT-BOLD));--FONT-SIZE-BASE: var(--font-size-base, 16px);--FONT-SIZE-SMALL: var(--font-size-small, 14px);--FONT-SIZE-LARGE: var(--font-size-large, 18px);--FONT-SIZE-H1: var(--font-size-h1, 36px);--FONT-SIZE-H2: var(--font-size-h2, 28px);--FONT-SIZE-H3: var(--font-size-h3, 23px);--FONT-SIZE-H4: var(--font-size-h4, 21px);--FONT-SIZE-H5: var(--font-size-h5, 19px);--FONT-SIZE-H6: var(--font-size-h6, 17px);--LINE-HEIGHT-BASE: var(--line-height-base, 1);--LINE-HEIGHT-HEADING: var(--line-height-heading, 1.1);--LINE-HEIGHT-PARAGRAPH: var(--line-height-paragraph, 1.3);--BORDER-RADIUS: var(--border-radius, 0);--BORDER-WIDTH: var(--border-width, 1px);--ANIMATION-DURATION: var(--animation-duration, .2s);--ANIMATION-EASING: var(--animation-easing, ease-in-out);--ANIMATION-NORMAL: var(--animation-normal, var(--ANIMATION-DURATION) var(--ANIMATION-EASING));--BOX-SHADOW-BOTTOM-LEFT: var(--box-shadow-bottom-left, calc(var(--SPACER) / -2) calc(var(--SPACER) / 2) 0 var(--BOX-SHADOW-COLOR));--BOX-SHADOW-BOTTOM-RIGHT: var(--box-shadow-bottom-right, calc(var(--SPACER) / 2) calc(var(--SPACER) / 2) 0 var(--BOX-SHADOW-COLOR));--BOX-SHADOW-TOP-LEFT: var(--box-shadow-top-left, calc(var(--SPACER) / -2) calc(var(--SPACER) / -2) 0 var(--BOX-SHADOW-COLOR));--BOX-SHADOW-TOP-RIGHT: var(--box-shadow-top-right, calc(var(--SPACER) / 2) calc(var(--SPACER) / -2) 0 var(--BOX-SHADOW-COLOR));--BOX-SHADOW: var(--box-shadow, var(--BOX-SHADOW-BOTTOM-RIGHT))}[_ngcontent-%COMP%]:root{--shared-avatar-size-s: var(--SPACER-L);--shared-avatar-size: var(--SPACER-XL);--shared-avatar-size-l: var(--SPACER-XXL);--shared-copyright-color: var(--TEXT-COLOR-INVERTED);--shared-copyright-height: var(--SPACER-L);--shared-header-height: var(--SPACER-XL);--shared-slideshow-footer-color-light: var(--TEXT-COLOR-INVERTED)}body[_ngcontent-%COMP%]{display:flex;min-height:100vh}app-root[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;max-width:100%}.u-main[_ngcontent-%COMP%] main[_ngcontent-%COMP%]:focus{outline:none}#main-content[_ngcontent-%COMP%] > ng-component[_ngcontent-%COMP%]{width:100%}.p-antwerp-ui[_ngcontent-%COMP%]{flex:1 1 auto;overflow:auto}.a-pre.hljs[_ngcontent-%COMP%]{border:1px solid #f3f3f3}.m-button-group--inline[_ngcontent-%COMP%]{display:inline-flex}@media screen and (min-width: 45rem){.u-show-on-mobile[_ngcontent-%COMP%]{display:none}}@media screen and (max-width: 44.9375rem){.u-hide-on-mobile[_ngcontent-%COMP%]{display:none}}@media screen and (max-width: 61.9375rem){.u-hide-on-tablet[_ngcontent-%COMP%]{display:none}}pre[_ngcontent-%COMP%]{tab-size:2}.u-text-readable[_ngcontent-%COMP%]{max-width:28rem}.aui-footer[_ngcontent-%COMP%]{background:#141414}.aui-footer[_ngcontent-%COMP%] .u-container[_ngcontent-%COMP%]{padding-bottom:1.5rem;padding-top:1.5rem}.aui-footer[_ngcontent-%COMP%] .a-list[_ngcontent-%COMP%]{list-style:none;padding-left:0}.aui-footer[_ngcontent-%COMP%] .a-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{--LINK-COLOR: #fff;--LINK-HOVER-COLOR: #fff}.aui-footer[_ngcontent-%COMP%] .a-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .ai[_ngcontent-%COMP%] .ai[_ngcontent-%COMP%]{padding-left:0}.aui-footer[_ngcontent-%COMP%] h3.h4[_ngcontent-%COMP%]{color:#f3f3f3}.m-nav-tabs__layout[_ngcontent-%COMP%]{box-shadow:0 -1px #6f6f6f inset}.aui-code-snippet[_ngcontent-%COMP%]{display:block;overflow-x:auto}.o-leaflet__wrapper[_ngcontent-%COMP%]{overflow:visible!important}.o-leaflet__map[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 3px Highlight;box-shadow:0 0 0 3px -webkit-focus-ring-color}.p-fix-position[_ngcontent-%COMP%] .o-header__logo[_ngcontent-%COMP%]{position:static}.u-datepicker[_ngcontent-%COMP%]{margin-bottom:15rem}.u-main[_ngcontent-%COMP%], main[_ngcontent-%COMP%]{display:flex;flex-direction:column}@media screen and (min-width: 45rem){.u-main[_ngcontent-%COMP%], main[_ngcontent-%COMP%]{flex-direction:row}}@media screen and (max-width: 44.9375rem){.u-main-menu[_ngcontent-%COMP%]{border-bottom:1px solid #6f6f6f;height:50vh;overflow:auto}}@media screen and (min-width: 45rem){.u-main-menu[_ngcontent-%COMP%]{border-right:1px solid #6f6f6f;flex:0 1 320px}}']})),t})();const y$=[{path:"",redirectTo:"modules",pathMatch:"full"}];let Sw=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke,cn]})),t})(),OL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke,dh]})),t})(),Tw=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke]})),t})(),kL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[zp.vp],imports:[Ke,zp.n6]})),t})(),RL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke,cn]})),t})(),FL=(()=>{class t{static forChild(e,r){return{ngModule:t,providers:[FC,{provide:AC,useValue:e},{provide:OC,useValue:r}]}}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[FC,{provide:AC,useValue:PC},{provide:OC,useValue:LC}],imports:[Ke,cn]})),t})(),aM=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[SI],imports:[Ke]})),t})(),NL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke,aM,cn]})),t})(),BL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke]})),t})();const VL=new i.InjectionToken("paginationLabels"),b$={PAGINATION_LABEL:"%{currentPage} of %{total}"};let jL=(()=>{class t{static forChild(e){return{ngModule:t,providers:[{provide:VL,useValue:e}]}}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[{provide:VL,useValue:b$}],imports:[Ke,cn]})),t})(),HL=(()=>{class t{static forChild(e,r){return{ngModule:t,providers:[{provide:C1,useValue:e},{provide:w1,useValue:r}]}}}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[{provide:C1,useValue:void 0},{provide:w1,useValue:void 0}],imports:[Ke,er,cn,Nk]})),t})(),UL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke]})),t})(),zL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[E1],imports:[Ke,cn,er]})),t})(),$L=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke,cn,ip]})),t})(),GL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke]})),t})(),WL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[nP],imports:[Ke,er,ip,vj]})),t})(),ZL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke,er]})),t})(),qL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke,ip,er,cn]})),t})(),YL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Tl,Ke,cn]})),t})(),QL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({providers:[aw],imports:[cn]})),t})();function C$(t,n){if(1&t){const e=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(e);const o=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(o.remove())}),i.\u0275\u0275element(1,"aui-icon",6),i.\u0275\u0275elementEnd()}}function w$(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"h1"),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(e.options.titleClass+" h5 u-margin-bottom-xs"),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",e.title," ")}}function E$(t,n){if(1&t&&i.\u0275\u0275element(0,"div",7),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(e.options.messageClass),i.\u0275\u0275property("innerHTML",e.message,i.\u0275\u0275sanitizeHtml)}}function D$(t,n){if(1&t&&(i.\u0275\u0275elementStart(0,"p",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&t){const e=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(e.options.messageClass),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",e.message," ")}}let S$=(()=>{class t extends oM{}return _(t,"\u0275fac",function(){let n;return function(r){return(n||(n=i.\u0275\u0275getInheritedFactory(t)))(r||t)}}()),_(t,"\u0275cmp",i.\u0275\u0275defineComponent({type:t,selectors:[["aui-notification"]],features:[i.\u0275\u0275InheritDefinitionFeature],decls:5,vars:6,consts:[[1,"m-alert"],["class","a-button a-button--text has-icon m-alert__close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[1,"a-button","a-button--text","has-icon","m-alert__close",3,"click"],["name","ai-close","ariaLabel","Sluiten"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"]],template:function(e,r){1&e&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275template(1,C$,2,0,"button",1),i.\u0275\u0275template(2,w$,2,3,"h1",2),i.\u0275\u0275template(3,E$,1,3,"div",3),i.\u0275\u0275template(4,D$,2,3,"p",4),i.\u0275\u0275elementEnd()),2&e&&(i.\u0275\u0275styleProp("display","inactive"===r.state.value?"none":""),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.message&&r.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",r.message&&!r.options.enableHtml))},dependencies:[Re,Gt],styles:[".toast-center-center[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%)}.toast-top-center[_ngcontent-%COMP%]{top:0;right:0;width:100%}.toast-bottom-center[_ngcontent-%COMP%]{bottom:0;right:0;width:100%}.toast-top-full-width[_ngcontent-%COMP%]{top:0;right:0;width:100%}.toast-bottom-full-width[_ngcontent-%COMP%]{bottom:0;right:0;width:100%}.toast-top-left[_ngcontent-%COMP%]{top:12px;left:12px}.toast-top-right[_ngcontent-%COMP%]{top:12px;right:12px}.toast-bottom-right[_ngcontent-%COMP%]{right:12px;bottom:12px}.toast-bottom-left[_ngcontent-%COMP%]{bottom:12px;left:12px}.toast-title[_ngcontent-%COMP%]{font-weight:700}.toast-message[_ngcontent-%COMP%]{word-wrap:break-word}.toast-message[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .toast-message[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#fff}.toast-message[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#ccc;text-decoration:none}.toast-close-button[_ngcontent-%COMP%]{position:relative;right:-.3em;top:-.3em;float:right;font-size:20px;font-weight:700;color:#fff;text-shadow:0 1px 0 #ffffff}.toast-close-button[_ngcontent-%COMP%]:hover, .toast-close-button[_ngcontent-%COMP%]:focus{color:#000;text-decoration:none;cursor:pointer;opacity:.4}button.toast-close-button[_ngcontent-%COMP%]{padding:0;cursor:pointer;background:transparent;border:0}.toast-container[_ngcontent-%COMP%]{pointer-events:none;position:fixed;z-index:999999}.toast-container[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{box-sizing:border-box}.toast-container[_ngcontent-%COMP%] .ngx-toastr[_ngcontent-%COMP%]{position:relative;overflow:hidden;margin:0 0 6px;padding:15px 15px 15px 50px;width:300px;border-radius:3px;background-position:15px center;background-repeat:no-repeat;background-size:24px;box-shadow:0 0 12px #999;color:#fff}.toast-container[_ngcontent-%COMP%] .ngx-toastr[_ngcontent-%COMP%]:hover{box-shadow:0 0 12px #000;opacity:1;cursor:pointer}.toast-info[_ngcontent-%COMP%]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1MTIgNTEyJyB3aWR0aD0nNTEyJyBoZWlnaHQ9JzUxMic+PHBhdGggZmlsbD0ncmdiKDI1NSwyNTUsMjU1KScgZD0nTTI1NiA4QzExOS4wNDMgOCA4IDExOS4wODMgOCAyNTZjMCAxMzYuOTk3IDExMS4wNDMgMjQ4IDI0OCAyNDhzMjQ4LTExMS4wMDMgMjQ4LTI0OEM1MDQgMTE5LjA4MyAzOTIuOTU3IDggMjU2IDh6bTAgMTEwYzIzLjE5NiAwIDQyIDE4LjgwNCA0MiA0MnMtMTguODA0IDQyLTQyIDQyLTQyLTE4LjgwNC00Mi00MiAxOC44MDQtNDIgNDItNDJ6bTU2IDI1NGMwIDYuNjI3LTUuMzczIDEyLTEyIDEyaC04OGMtNi42MjcgMC0xMi01LjM3My0xMi0xMnYtMjRjMC02LjYyNyA1LjM3My0xMiAxMi0xMmgxMnYtNjRoLTEyYy02LjYyNyAwLTEyLTUuMzczLTEyLTEydi0yNGMwLTYuNjI3IDUuMzczLTEyIDEyLTEyaDY0YzYuNjI3IDAgMTIgNS4zNzMgMTIgMTJ2MTAwaDEyYzYuNjI3IDAgMTIgNS4zNzMgMTIgMTJ2MjR6Jy8+PC9zdmc+)}.toast-error[_ngcontent-%COMP%]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1MTIgNTEyJyB3aWR0aD0nNTEyJyBoZWlnaHQ9JzUxMic+PHBhdGggZmlsbD0ncmdiKDI1NSwyNTUsMjU1KScgZD0nTTI1NiA4QzExOSA4IDggMTE5IDggMjU2czExMSAyNDggMjQ4IDI0OCAyNDgtMTExIDI0OC0yNDhTMzkzIDggMjU2IDh6bTEyMS42IDMxMy4xYzQuNyA0LjcgNC43IDEyLjMgMCAxN0wzMzggMzc3LjZjLTQuNyA0LjctMTIuMyA0LjctMTcgMEwyNTYgMzEybC02NS4xIDY1LjZjLTQuNyA0LjctMTIuMyA0LjctMTcgMEwxMzQuNCAzMzhjLTQuNy00LjctNC43LTEyLjMgMC0xN2w2NS42LTY1LTY1LjYtNjUuMWMtNC43LTQuNy00LjctMTIuMyAwLTE3bDM5LjYtMzkuNmM0LjctNC43IDEyLjMtNC43IDE3IDBsNjUgNjUuNyA2NS4xLTY1LjZjNC43LTQuNyAxMi4zLTQuNyAxNyAwbDM5LjYgMzkuNmM0LjcgNC43IDQuNyAxMi4zIDAgMTdMMzEyIDI1Nmw2NS42IDY1LjF6Jy8+PC9zdmc+)}.toast-success[_ngcontent-%COMP%]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1MTIgNTEyJyB3aWR0aD0nNTEyJyBoZWlnaHQ9JzUxMic+PHBhdGggZmlsbD0ncmdiKDI1NSwyNTUsMjU1KScgZD0nTTE3My44OTggNDM5LjQwNGwtMTY2LjQtMTY2LjRjLTkuOTk3LTkuOTk3LTkuOTk3LTI2LjIwNiAwLTM2LjIwNGwzNi4yMDMtMzYuMjA0YzkuOTk3LTkuOTk4IDI2LjIwNy05Ljk5OCAzNi4yMDQgMEwxOTIgMzEyLjY5IDQzMi4wOTUgNzIuNTk2YzkuOTk3LTkuOTk3IDI2LjIwNy05Ljk5NyAzNi4yMDQgMGwzNi4yMDMgMzYuMjA0YzkuOTk3IDkuOTk3IDkuOTk3IDI2LjIwNiAwIDM2LjIwNGwtMjk0LjQgMjk0LjQwMWMtOS45OTggOS45OTctMjYuMjA3IDkuOTk3LTM2LjIwNC0uMDAxeicvPjwvc3ZnPg==)}.toast-warning[_ngcontent-%COMP%]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA1NzYgNTEyJyB3aWR0aD0nNTc2JyBoZWlnaHQ9JzUxMic+PHBhdGggZmlsbD0ncmdiKDI1NSwyNTUsMjU1KScgZD0nTTU2OS41MTcgNDQwLjAxM0M1ODcuOTc1IDQ3Mi4wMDcgNTY0LjgwNiA1MTIgNTI3Ljk0IDUxMkg0OC4wNTRjLTM2LjkzNyAwLTU5Ljk5OS00MC4wNTUtNDEuNTc3LTcxLjk4N0wyNDYuNDIzIDIzLjk4NWMxOC40NjctMzIuMDA5IDY0LjcyLTMxLjk1MSA4My4xNTQgMGwyMzkuOTQgNDE2LjAyOHpNMjg4IDM1NGMtMjUuNDA1IDAtNDYgMjAuNTk1LTQ2IDQ2czIwLjU5NSA0NiA0NiA0NiA0Ni0yMC41OTUgNDYtNDYtMjAuNTk1LTQ2LTQ2LTQ2em0tNDMuNjczLTE2NS4zNDZsNy40MTggMTM2Yy4zNDcgNi4zNjQgNS42MDkgMTEuMzQ2IDExLjk4MiAxMS4zNDZoNDguNTQ2YzYuMzczIDAgMTEuNjM1LTQuOTgyIDExLjk4Mi0xMS4zNDZsNy40MTgtMTM2Yy4zNzUtNi44NzQtNS4wOTgtMTIuNjU0LTExLjk4Mi0xMi42NTRoLTYzLjM4M2MtNi44ODQgMC0xMi4zNTYgNS43OC0xMS45ODEgMTIuNjU0eicvPjwvc3ZnPg==)}.toast-container.toast-top-center[_ngcontent-%COMP%] .ngx-toastr[_ngcontent-%COMP%], .toast-container.toast-bottom-center[_ngcontent-%COMP%] .ngx-toastr[_ngcontent-%COMP%]{width:300px;margin-left:auto;margin-right:auto}.toast-container.toast-top-full-width[_ngcontent-%COMP%] .ngx-toastr[_ngcontent-%COMP%], .toast-container.toast-bottom-full-width[_ngcontent-%COMP%] .ngx-toastr[_ngcontent-%COMP%]{width:96%;margin-left:auto;margin-right:auto}.ngx-toastr[_ngcontent-%COMP%]{background-color:#030303;pointer-events:auto}.toast-success[_ngcontent-%COMP%]{background-color:#51a351}.toast-error[_ngcontent-%COMP%]{background-color:#bd362f}.toast-info[_ngcontent-%COMP%]{background-color:#2f96b4}.toast-warning[_ngcontent-%COMP%]{background-color:#f89406}.toast-progress[_ngcontent-%COMP%]{position:absolute;left:0;bottom:0;height:4px;background-color:#000;opacity:.4}@media all and (max-width: 240px){.toast-container[_ngcontent-%COMP%] .ngx-toastr.div[_ngcontent-%COMP%]{padding:8px 8px 8px 50px;width:11em}.toast-container[_ngcontent-%COMP%] .toast-close-button[_ngcontent-%COMP%]{right:-.2em;top:-.2em}}@media all and (min-width: 241px) and (max-width: 480px){.toast-container[_ngcontent-%COMP%] .ngx-toastr.div[_ngcontent-%COMP%]{padding:8px 8px 8px 50px;width:18em}.toast-container[_ngcontent-%COMP%] .toast-close-button[_ngcontent-%COMP%]{right:-.2em;top:-.2em}}@media all and (min-width: 481px) and (max-width: 768px){.toast-container[_ngcontent-%COMP%] .ngx-toastr.div[_ngcontent-%COMP%]{padding:15px 15px 15px 50px;width:25em}} .toast-container{display:flex;flex-direction:column-reverse;max-width:18.5rem;position:fixed;right:.75rem;top:3rem;z-index:8}[_nghost-%COMP%]{margin-top:.75rem}.toast-success[_nghost-%COMP%] .m-alert[_ngcontent-%COMP%]{--alert-color: var(--alert-success-color);--alert-border-color: var(--alert-success-border-color)}.toast-success[_nghost-%COMP%] .m-alert[_ngcontent-%COMP%] .a-button--text[_ngcontent-%COMP%]{--btn-color: var(--btn-text-success-color);--btn-hover-color: var(--btn-text-success-hover-color);--btn-hover-bg-color: var(--btn-text-success-hover-bg-color)}.toast-warning[_nghost-%COMP%] .m-alert[_ngcontent-%COMP%]{--alert-color: var(--alert-warning-color);--alert-border-color: var(--alert-warning-border-color)}.toast-warning[_nghost-%COMP%] .m-alert[_ngcontent-%COMP%] .a-button--text[_ngcontent-%COMP%]{--btn-color: var(--btn-text-warning-color);--btn-hover-color: var(--btn-text-warning-hover-color);--btn-hover-bg-color: var(--btn-text-warning-hover-bg-color)}.toast-error[_nghost-%COMP%] .m-alert[_ngcontent-%COMP%]{--alert-color: var(--alert-danger-color);--alert-border-color: var(--alert-danger-border-color)}.toast-error[_nghost-%COMP%] .m-alert[_ngcontent-%COMP%] .a-button--text[_ngcontent-%COMP%]{--btn-color: var(--btn-text-danger-color);--btn-hover-color: var(--btn-text-danger-hover-color);--btn-hover-bg-color: var(--btn-text-danger-hover-bg-color)}"],data:{animation:[DL("flyInOut",[ww("inactive",ps({opacity:0})),Ew("inactive => active",Cw("250ms ease-in-out",TL([ps({transform:"translate(100%, 0)",opacity:0}),ps({transform:"none",opacity:1})]))),Ew("active => removed",Cw("300ms ease-in-out",TL([ps({opacity:1}),ps({transform:"translate(100%, 0)",opacity:0})])))])]}})),t})(),KL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Ke,cn,X5.forRoot({toastComponent:S$,closeButton:!0})]})),t})(),JL=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[Sw,OL,Tw,kL,RL,FL,wI,aM,NL,BL,jL,HL,UL,zL,$L,GL,WL,rP.forChild(["Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag","Zondag"],["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],{ERRORS_INVALID_DATE:"Ongeldige datum.",ERRORS_INVALID_RANGE:"Deze datum kan niet gekozen worden."}),ZL,qL,YL,cP,Sw,Tw,QL,kP,FP,BP,_L,KL,Sw,kL,OL,Tw,RL,FL,wI,aM,NL,BL,jL,HL,UL,zL,$L,GL,WL,rP,ZL,qL,YL,cP,Sw,Tw,QL,kP,FP,BP,_L,KL]})),t})();function XL(t){return new i.\u0275RuntimeError(3e3,!1)}function sG(){return typeof window<"u"&&typeof window.document<"u"}function lM(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function $l(t){switch(t.length){case 0:return new J_;case 1:return t[0];default:return new xL(t)}}function eA(t,n,e,r,o=new Map,c=new Map){const h=[],y=[];let E=-1,M=null;if(r.forEach(A=>{const k=A.get("offset"),j=k==E,V=j&&M||new Map;A.forEach((K,se)=>{let ae=se,de=K;if("offset"!==se)switch(ae=n.normalizePropertyName(ae,h),de){case iM:de=o.get(se);break;case ha:de=c.get(se);break;default:de=n.normalizeStyleValue(se,ae,de,h)}V.set(ae,de)}),j||y.push(V),M=V,E=k}),h.length)throw function q$(t){return new i.\u0275RuntimeError(3502,!1)}();return y}function uM(t,n,e,r){switch(n){case"start":t.onStart(()=>r(e&&cM(e,"start",t)));break;case"done":t.onDone(()=>r(e&&cM(e,"done",t)));break;case"destroy":t.onDestroy(()=>r(e&&cM(e,"destroy",t)))}}function cM(t,n,e){const c=dM(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),h=t._data;return null!=h&&(c._data=h),c}function dM(t,n,e,r,o="",c=0,h){return{element:t,triggerName:n,fromState:e,toState:r,phaseName:o,totalTime:c,disabled:!!h}}function Ir(t,n,e){let r=t.get(n);return r||t.set(n,r=e),r}function tA(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let hM=(t,n)=>!1,nA=(t,n,e)=>[],iA=null;function fM(t){const n=t.parentNode||t.host;return n===iA?null:n}(lM()||typeof Element<"u")&&(sG()?(iA=(()=>document.documentElement)(),hM=(t,n)=>{for(;n;){if(n===t)return!0;n=fM(n)}return!1}):hM=(t,n)=>t.contains(n),nA=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const r=t.querySelector(n);return r?[r]:[]});let Fc=null,rA=!1;const oA=hM,sA=nA;let aA=(()=>{class t{validateStyleProperty(e){return function lG(t){Fc||(Fc=function uG(){return typeof document<"u"?document.body:null}()||{},rA=!!Fc.style&&"WebkitAppearance"in Fc.style);let n=!0;return Fc.style&&!function aG(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Fc.style,!n&&rA&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Fc.style)),n}(e)}matchesElement(e,r){return!1}containsElement(e,r){return oA(e,r)}getParentElement(e){return fM(e)}query(e,r,o){return sA(e,r,o)}computeStyle(e,r,o){return o||""}animate(e,r,o,c,h,y=[],E){return new J_(o,c)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})(),pM=(()=>{class t{}return t.NOOP=new aA,t})();const cG=1e3,mM="ng-enter",Mw="ng-leave",xw="ng-trigger",Iw=".ng-trigger",uA="ng-animating",gM=".ng-animating";function fa(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:_M(parseFloat(n[1]),n[2])}function _M(t,n){return"s"===n?t*cG:t}function Pw(t,n,e){return t.hasOwnProperty("duration")?t:function hG(t,n,e){let o,c=0,h="";if("string"==typeof t){const y=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===y)return n.push(XL()),{duration:0,delay:0,easing:""};o=_M(parseFloat(y[1]),y[2]);const E=y[3];null!=E&&(c=_M(parseFloat(E),y[4]));const M=y[5];M&&(h=M)}else o=t;if(!e){let y=!1,E=n.length;o<0&&(n.push(function T$(){return new i.\u0275RuntimeError(3100,!1)}()),y=!0),c<0&&(n.push(function M$(){return new i.\u0275RuntimeError(3101,!1)}()),y=!0),y&&n.splice(E,0,XL())}return{duration:o,delay:c,easing:h}}(t,n,e)}function X_(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function cA(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function Gl(t,n=new Map,e){if(e)for(let[r,o]of e)n.set(r,o);for(let[r,o]of t)n.set(r,o);return n}function hA(t,n,e){return e?n+":"+e+";":""}function fA(t){let n="";for(let e=0;e{const c=yM(o);e&&!e.has(o)&&e.set(o,t.style[c]),t.style[c]=r}),lM()&&fA(t))}function Nc(t,n){t.style&&(n.forEach((e,r)=>{const o=yM(r);t.style[o]=""}),lM()&&fA(t))}function ev(t){return Array.isArray(t)?1==t.length?t[0]:SL(t):t}const vM=new RegExp("{{\\s*(.+?)\\s*}}","g");function pA(t){let n=[];if("string"==typeof t){let e;for(;e=vM.exec(t);)n.push(e[1]);vM.lastIndex=0}return n}function tv(t,n,e){const r=t.toString(),o=r.replace(vM,(c,h)=>{let y=n[h];return null==y&&(e.push(function I$(t){return new i.\u0275RuntimeError(3003,!1)}()),y=""),y.toString()});return o==r?t:o}function Lw(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const mG=/-+([a-z0-9])/g;function yM(t){return t.replace(mG,(...n)=>n[1].toUpperCase())}function gG(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Pr(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function P$(t){return new i.\u0275RuntimeError(3004,!1)}()}}function mA(t,n){return window.getComputedStyle(t)[n]}const kw="*";function wG(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(r=>function EG(t,n,e){if(":"==t[0]){const E=function DG(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,r)=>parseFloat(r)>parseFloat(e);case":decrement":return(e,r)=>parseFloat(r) *"}}(t,e);if("function"==typeof E)return void n.push(E);t=E}const r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return e.push(function z$(t){return new i.\u0275RuntimeError(3015,!1)}()),n;const o=r[1],c=r[2],h=r[3];n.push(gA(o,h));"<"==c[0]&&!(o==kw&&h==kw)&&n.push(gA(h,o))}(r,e,n)):e.push(t),e}const Rw=new Set(["true","1"]),Fw=new Set(["false","0"]);function gA(t,n){const e=Rw.has(t)||Fw.has(t),r=Rw.has(n)||Fw.has(n);return(o,c)=>{let h=t==kw||t==o,y=n==kw||n==c;return!h&&e&&"boolean"==typeof o&&(h=o?Rw.has(t):Fw.has(t)),!y&&r&&"boolean"==typeof c&&(y=c?Rw.has(n):Fw.has(n)),h&&y}}const SG=new RegExp("s*:selfs*,?","g");function bM(t,n,e,r){return new TG(t).build(n,e,r)}class TG{constructor(n){this._driver=n}build(n,e,r){const o=new IG(e);return this._resetContextStyleTimingState(o),Pr(this,ev(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let r=e.queryCount=0,o=e.depCount=0;const c=[],h=[];return"@"==n.name.charAt(0)&&e.errors.push(function A$(){return new i.\u0275RuntimeError(3006,!1)}()),n.definitions.forEach(y=>{if(this._resetContextStyleTimingState(e),0==y.type){const E=y,M=E.name;M.toString().split(/\s*,\s*/).forEach(A=>{E.name=A,c.push(this.visitState(E,e))}),E.name=M}else if(1==y.type){const E=this.visitTransition(y,e);r+=E.queryCount,o+=E.depCount,h.push(E)}else e.errors.push(function O$(){return new i.\u0275RuntimeError(3007,!1)}())}),{type:7,name:n.name,states:c,transitions:h,queryCount:r,depCount:o,options:null}}visitState(n,e){const r=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(r.containsDynamicStyles){const c=new Set,h=o||{};r.styles.forEach(y=>{y instanceof Map&&y.forEach(E=>{pA(E).forEach(M=>{h.hasOwnProperty(M)||c.add(M)})})}),c.size&&(Lw(c.values()),e.errors.push(function k$(t,n){return new i.\u0275RuntimeError(3008,!1)}()))}return{type:0,name:n.name,style:r,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const r=Pr(this,ev(n.animation),e);return{type:1,matchers:wG(n.expr,e.errors),animation:r,queryCount:e.queryCount,depCount:e.depCount,options:Bc(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(r=>Pr(this,r,e)),options:Bc(n.options)}}visitGroup(n,e){const r=e.currentTime;let o=0;const c=n.steps.map(h=>{e.currentTime=r;const y=Pr(this,h,e);return o=Math.max(o,e.currentTime),y});return e.currentTime=o,{type:3,steps:c,options:Bc(n.options)}}visitAnimate(n,e){const r=function LG(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return CM(Pw(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(c=>"{"==c.charAt(0)&&"{"==c.charAt(1))){const c=CM(0,0,"");return c.dynamic=!0,c.strValue=e,c}const o=Pw(e,n);return CM(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=r;let o,c=n.styles?n.styles:ps({});if(5==c.type)o=this.visitKeyframes(c,e);else{let h=n.styles,y=!1;if(!h){y=!0;const M={};r.easing&&(M.easing=r.easing),h=ps(M)}e.currentTime+=r.duration+r.delay;const E=this.visitStyle(h,e);E.isEmptyStep=y,o=E}return e.currentAnimateTimings=null,{type:4,timings:r,style:o,options:null}}visitStyle(n,e){const r=this._makeStyleAst(n,e);return this._validateStyleAst(r,e),r}_makeStyleAst(n,e){const r=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let y of o)"string"==typeof y?y===ha?r.push(y):e.errors.push(new i.\u0275RuntimeError(3002,!1)):r.push(cA(y));let c=!1,h=null;return r.forEach(y=>{if(y instanceof Map&&(y.has("easing")&&(h=y.get("easing"),y.delete("easing")),!c))for(let E of y.values())if(E.toString().indexOf("{{")>=0){c=!0;break}}),{type:6,styles:r,easing:h,offset:n.offset,containsDynamicStyles:c,options:null}}_validateStyleAst(n,e){const r=e.currentAnimateTimings;let o=e.currentTime,c=e.currentTime;r&&c>0&&(c-=r.duration+r.delay),n.styles.forEach(h=>{"string"!=typeof h&&h.forEach((y,E)=>{const M=e.collectedStyles.get(e.currentQuerySelector),A=M.get(E);let k=!0;A&&(c!=o&&c>=A.startTime&&o<=A.endTime&&(e.errors.push(function F$(t,n,e,r,o){return new i.\u0275RuntimeError(3010,!1)}()),k=!1),c=A.startTime),k&&M.set(E,{startTime:c,endTime:o}),e.options&&function pG(t,n,e){const r=n.params||{},o=pA(t);o.length&&o.forEach(c=>{r.hasOwnProperty(c)||e.push(function x$(t){return new i.\u0275RuntimeError(3001,!1)}())})}(y,e.options,e.errors)})})}visitKeyframes(n,e){const r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function N$(){return new i.\u0275RuntimeError(3011,!1)}()),r;let c=0;const h=[];let y=!1,E=!1,M=0;const A=n.steps.map(de=>{const ye=this._makeStyleAst(de,e);let lt=null!=ye.offset?ye.offset:function PG(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const r=e;n=parseFloat(r.get("offset")),r.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(ye.styles),tt=0;return null!=lt&&(c++,tt=ye.offset=lt),E=E||tt<0||tt>1,y=y||tt0&&c{const lt=j>0?ye==V?1:j*ye:h[ye],tt=lt*ae;e.currentTime=K+se.delay+tt,se.duration=tt,this._validateStyleAst(de,e),de.offset=lt,r.styles.push(de)}),r}visitReference(n,e){return{type:8,animation:Pr(this,ev(n.animation),e),options:Bc(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Bc(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Bc(n.options)}}visitQuery(n,e){const r=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[c,h]=function MG(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(SG,"")),t=t.replace(/@\*/g,Iw).replace(/@\w+/g,e=>Iw+"-"+e.slice(1)).replace(/:animating/g,gM),[t,n]}(n.selector);e.currentQuerySelector=r.length?r+" "+c:c,Ir(e.collectedStyles,e.currentQuerySelector,new Map);const y=Pr(this,ev(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=r,{type:11,selector:c,limit:o.limit||0,optional:!!o.optional,includeSelf:h,animation:y,originalSelector:n.selector,options:Bc(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function H$(){return new i.\u0275RuntimeError(3013,!1)}());const r="full"===n.timings?{duration:0,delay:0,easing:"full"}:Pw(n.timings,e.errors,!0);return{type:12,animation:Pr(this,ev(n.animation),e),timings:r,options:null}}}class IG{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Bc(t){return t?(t=X_(t)).params&&(t.params=function xG(t){return t?X_(t):null}(t.params)):t={},t}function CM(t,n,e){return{duration:t,delay:n,easing:e}}function wM(t,n,e,r,o,c,h=null,y=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:r,duration:o,delay:c,totalTime:o+c,easing:h,subTimeline:y}}class Nw{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let r=this._map.get(n);r||this._map.set(n,r=[]),r.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const kG=new RegExp(":enter","g"),FG=new RegExp(":leave","g");function EM(t,n,e,r,o,c=new Map,h=new Map,y,E,M=[]){return(new NG).buildKeyframes(t,n,e,r,o,c,h,y,E,M)}class NG{buildKeyframes(n,e,r,o,c,h,y,E,M,A=[]){M=M||new Nw;const k=new DM(n,e,M,o,c,A,[]);k.options=E;const j=E.delay?fa(E.delay):0;k.currentTimeline.delayNextStep(j),k.currentTimeline.setStyles([h],null,k.errors,E),Pr(this,r,k);const V=k.timelines.filter(K=>K.containsAnimation());if(V.length&&y.size){let K;for(let se=V.length-1;se>=0;se--){const ae=V[se];if(ae.element===e){K=ae;break}}K&&!K.allowOnlyTimelineStyles()&&K.setStyles([y],null,k.errors,E)}return V.length?V.map(K=>K.buildKeyframes()):[wM(e,[],[],[],0,j,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const r=e.subInstructions.get(e.element);if(r){const o=e.createSubContext(n.options),c=e.currentTimeline.currentTime,h=this._visitSubInstructions(r,o,o.options);c!=h&&e.transformIntoNewTimeline(h)}e.previousNode=n}visitAnimateRef(n,e){const r=e.createSubContext(n.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,r),this.visitReference(n.animation,r),e.transformIntoNewTimeline(r.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,r){for(const o of n){const c=o?.delay;if(c){const h="number"==typeof c?c:fa(tv(c,o?.params??{},e.errors));r.delayNextStep(h)}}}_visitSubInstructions(n,e,r){let c=e.currentTimeline.currentTime;const h=null!=r.duration?fa(r.duration):null,y=null!=r.delay?fa(r.delay):null;return 0!==h&&n.forEach(E=>{const M=e.appendInstructionToTimeline(E,h,y);c=Math.max(c,M.duration+M.delay)}),c}visitReference(n,e){e.updateOptions(n.options,!0),Pr(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const r=e.subContextCount;let o=e;const c=n.options;if(c&&(c.params||c.delay)&&(o=e.createSubContext(c),o.transformIntoNewTimeline(),null!=c.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Bw);const h=fa(c.delay);o.delayNextStep(h)}n.steps.length&&(n.steps.forEach(h=>Pr(this,h,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const r=[];let o=e.currentTimeline.currentTime;const c=n.options&&n.options.delay?fa(n.options.delay):0;n.steps.forEach(h=>{const y=e.createSubContext(n.options);c&&y.delayNextStep(c),Pr(this,h,y),o=Math.max(o,y.currentTimeline.currentTime),r.push(y.currentTimeline)}),r.forEach(h=>e.currentTimeline.mergeTimelineCollectedStyles(h)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const r=n.strValue;return Pw(e.params?tv(r,e.params,e.errors):r,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const r=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;r.delay&&(e.incrementTime(r.delay),o.snapshotCurrentStyles());const c=n.style;5==c.type?this.visitKeyframes(c,e):(e.incrementTime(r.duration),this.visitStyle(c,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const r=e.currentTimeline,o=e.currentAnimateTimings;!o&&r.hasCurrentStyleProperties()&&r.forwardFrame();const c=o&&o.easing||n.easing;n.isEmptyStep?r.applyEmptyStep(c):r.setStyles(n.styles,c,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const r=e.currentAnimateTimings,o=e.currentTimeline.duration,c=r.duration,y=e.createSubContext().currentTimeline;y.easing=r.easing,n.styles.forEach(E=>{y.forwardTime((E.offset||0)*c),y.setStyles(E.styles,E.easing,e.errors,e.options),y.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(y),e.transformIntoNewTimeline(o+c),e.previousNode=n}visitQuery(n,e){const r=e.currentTimeline.currentTime,o=n.options||{},c=o.delay?fa(o.delay):0;c&&(6===e.previousNode.type||0==r&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Bw);let h=r;const y=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=y.length;let E=null;y.forEach((M,A)=>{e.currentQueryIndex=A;const k=e.createSubContext(n.options,M);c&&k.delayNextStep(c),M===e.element&&(E=k.currentTimeline),Pr(this,n.animation,k),k.currentTimeline.applyStylesToKeyframe(),h=Math.max(h,k.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(h),E&&(e.currentTimeline.mergeTimelineCollectedStyles(E),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const r=e.parentContext,o=e.currentTimeline,c=n.timings,h=Math.abs(c.duration),y=h*(e.currentQueryTotal-1);let E=h*e.currentQueryIndex;switch(c.duration<0?"reverse":c.easing){case"reverse":E=y-E;break;case"full":E=r.currentStaggerTime}const A=e.currentTimeline;E&&A.delayNextStep(E);const k=A.currentTime;Pr(this,n.animation,e),e.previousNode=n,r.currentStaggerTime=o.currentTime-k+(o.startTime-r.currentTimeline.startTime)}}const Bw={};class DM{constructor(n,e,r,o,c,h,y,E){this._driver=n,this.element=e,this.subInstructions=r,this._enterClassName=o,this._leaveClassName=c,this.errors=h,this.timelines=y,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Bw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=E||new Vw(this._driver,e,0),y.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const r=n;let o=this.options;null!=r.duration&&(o.duration=fa(r.duration)),null!=r.delay&&(o.delay=fa(r.delay));const c=r.params;if(c){let h=o.params;h||(h=this.options.params={}),Object.keys(c).forEach(y=>{(!e||!h.hasOwnProperty(y))&&(h[y]=tv(c[y],h,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const r=n.params={};Object.keys(e).forEach(o=>{r[o]=e[o]})}}return n}createSubContext(n=null,e,r){const o=e||this.element,c=new DM(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return c.previousNode=this.previousNode,c.currentAnimateTimings=this.currentAnimateTimings,c.options=this._copyOptions(),c.updateOptions(n),c.currentQueryIndex=this.currentQueryIndex,c.currentQueryTotal=this.currentQueryTotal,c.parentContext=this,this.subContextCount++,c}transformIntoNewTimeline(n){return this.previousNode=Bw,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,r){const o={duration:e??n.duration,delay:this.currentTimeline.currentTime+(r??0)+n.delay,easing:""},c=new BG(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(c),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,r,o,c,h){let y=[];if(o&&y.push(this.element),n.length>0){n=(n=n.replace(kG,"."+this._enterClassName)).replace(FG,"."+this._leaveClassName);let M=this._driver.query(this.element,n,1!=r);0!==r&&(M=r<0?M.slice(M.length+r,M.length):M.slice(0,r)),y.push(...M)}return!c&&0==y.length&&h.push(function U$(t){return new i.\u0275RuntimeError(3014,!1)}()),y}}class Vw{constructor(n,e,r,o){this._driver=n,this.element=e,this.startTime=r,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Vw(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,r]of this._globalTimelineStyles)this._backFill.set(e,r||ha),this._currentKeyframe.set(e,ha);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,r,o){e&&this._previousKeyframe.set("easing",e);const c=o&&o.params||{},h=function VG(t,n){const e=new Map;let r;return t.forEach(o=>{if("*"===o){r=r||n.keys();for(let c of r)e.set(c,ha)}else Gl(o,e)}),e}(n,this._globalTimelineStyles);for(let[y,E]of h){const M=tv(E,c,r);this._pendingStyles.set(y,M),this._localTimelineStyles.has(y)||this._backFill.set(y,this._globalTimelineStyles.get(y)??ha),this._updateStyle(y,M)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,r)=>{const o=this._styleSummary.get(r);(!o||e.time>o.time)&&this._updateStyle(r,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,r=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((y,E)=>{const M=Gl(y,new Map,this._backFill);M.forEach((A,k)=>{A===iM?n.add(k):A===ha&&e.add(k)}),r||M.set("offset",E/this.duration),o.push(M)});const c=n.size?Lw(n.values()):[],h=e.size?Lw(e.values()):[];if(r){const y=o[0],E=new Map(y);y.set("offset",0),E.set("offset",1),o=[y,E]}return wM(this.element,o,c,h,this.duration,this.startTime,this.easing,!1)}}class BG extends Vw{constructor(n,e,r,o,c,h,y=!1){super(n,e,h.delay),this.keyframes=r,this.preStyleProps=o,this.postStyleProps=c,this._stretchStartingKeyframe=y,this.timings={duration:h.duration,delay:h.delay,easing:h.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:r,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const c=[],h=r+e,y=e/h,E=Gl(n[0]);E.set("offset",0),c.push(E);const M=Gl(n[0]);M.set("offset",yA(y)),c.push(M);const A=n.length-1;for(let k=1;k<=A;k++){let j=Gl(n[k]);const V=j.get("offset");j.set("offset",yA((e+V*r)/h)),c.push(j)}r=h,e=0,o="",n=c}return wM(this.element,n,this.preStyleProps,this.postStyleProps,r,e,o,!0)}}function yA(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class SM{}const jG=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class HG extends SM{normalizePropertyName(n,e){return yM(n)}normalizeStyleValue(n,e,r,o){let c="";const h=r.toString().trim();if(jG.has(e)&&0!==r&&"0"!==r)if("number"==typeof r)c="px";else{const y=r.match(/^[+-]?[\d\.]+([a-z]*)$/);y&&0==y[1].length&&o.push(function L$(t,n){return new i.\u0275RuntimeError(3005,!1)}())}return h+c}}function bA(t,n,e,r,o,c,h,y,E,M,A,k,j){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:c,toState:r,toStyles:h,timelines:y,queriedElements:E,preStyleProps:M,postStyleProps:A,totalTime:k,errors:j}}const TM={};class CA{constructor(n,e,r){this._triggerName=n,this.ast=e,this._stateStyles=r}match(n,e,r,o){return function UG(t,n,e,r,o){return t.some(c=>c(n,e,r,o))}(this.ast.matchers,n,e,r,o)}buildStyles(n,e,r){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(e,r):new Map}build(n,e,r,o,c,h,y,E,M,A){const k=[],j=this.ast.options&&this.ast.options.params||TM,K=this.buildStyles(r,y&&y.params||TM,k),se=E&&E.params||TM,ae=this.buildStyles(o,se,k),de=new Set,ye=new Map,lt=new Map,tt="void"===o,pt={params:zG(se,j),delay:this.ast.options?.delay},He=A?[]:EM(n,e,this.ast.animation,c,h,K,ae,pt,M,k);let dt=0;if(He.forEach(li=>{dt=Math.max(li.duration+li.delay,dt)}),k.length)return bA(e,this._triggerName,r,o,tt,K,ae,[],[],ye,lt,dt,k);He.forEach(li=>{const Lr=li.element,cp=Ir(ye,Lr,new Set);li.preStyleProps.forEach(Po=>cp.add(Po));const pa=Ir(lt,Lr,new Set);li.postStyleProps.forEach(Po=>pa.add(Po)),Lr!==e&&de.add(Lr)});const tn=Lw(de.values());return bA(e,this._triggerName,r,o,tt,K,ae,He,tn,ye,lt,dt)}}function zG(t,n){const e=X_(n);for(const r in t)t.hasOwnProperty(r)&&null!=t[r]&&(e[r]=t[r]);return e}class $G{constructor(n,e,r){this.styles=n,this.defaultParams=e,this.normalizer=r}buildStyles(n,e){const r=new Map,o=X_(this.defaultParams);return Object.keys(n).forEach(c=>{const h=n[c];null!==h&&(o[c]=h)}),this.styles.styles.forEach(c=>{"string"!=typeof c&&c.forEach((h,y)=>{h&&(h=tv(h,o,e));const E=this.normalizer.normalizePropertyName(y,e);h=this.normalizer.normalizeStyleValue(y,E,h,e),r.set(y,h)})}),r}}class WG{constructor(n,e,r){this.name=n,this.ast=e,this._normalizer=r,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new $G(o.style,o.options&&o.options.params||{},r))}),wA(this.states,"true","1"),wA(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new CA(n,o,this.states))}),this.fallbackTransition=function ZG(t,n,e){return new CA(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(h,y)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,r,o){return this.transitionFactories.find(h=>h.match(n,e,r,o))||null}matchStyles(n,e,r){return this.fallbackTransition.buildStyles(n,e,r)}}function wA(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const qG=new Nw;class YG{constructor(n,e,r){this.bodyNode=n,this._driver=e,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const r=[],o=[],c=bM(this._driver,e,r,o);if(r.length)throw function Y$(t){return new i.\u0275RuntimeError(3503,!1)}();this._animations.set(n,c)}_buildPlayer(n,e,r){const o=n.element,c=eA(0,this._normalizer,0,n.keyframes,e,r);return this._driver.animate(o,c,n.duration,n.delay,n.easing,[],!0)}create(n,e,r={}){const o=[],c=this._animations.get(n);let h;const y=new Map;if(c?(h=EM(this._driver,e,c,mM,Mw,new Map,new Map,r,qG,o),h.forEach(A=>{const k=Ir(y,A.element,new Map);A.postStyleProps.forEach(j=>k.set(j,null))})):(o.push(function Q$(){return new i.\u0275RuntimeError(3300,!1)}()),h=[]),o.length)throw function K$(t){return new i.\u0275RuntimeError(3504,!1)}();y.forEach((A,k)=>{A.forEach((j,V)=>{A.set(V,this._driver.computeStyle(k,V,ha))})});const M=$l(h.map(A=>{const k=y.get(A.element);return this._buildPlayer(A,new Map,k)}));return this._playersById.set(n,M),M.onDestroy(()=>this.destroy(n)),this.players.push(M),M}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const r=this.players.indexOf(e);r>=0&&this.players.splice(r,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function J$(t){return new i.\u0275RuntimeError(3301,!1)}();return e}listen(n,e,r,o){const c=dM(e,"","","");return uM(this._getPlayer(n),r,c,o),()=>{}}command(n,e,r,o){if("register"==r)return void this.register(n,o[0]);if("create"==r)return void this.create(n,e,o[0]||{});const c=this._getPlayer(n);switch(r){case"play":c.play();break;case"pause":c.pause();break;case"reset":c.reset();break;case"restart":c.restart();break;case"finish":c.finish();break;case"init":c.init();break;case"setPosition":c.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const EA="ng-animate-queued",MM="ng-animate-disabled",e7=[],DA={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},t7={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qr="__ng_removed";class xM{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const r=n&&n.hasOwnProperty("value");if(this.value=function o7(t){return t??null}(r?n.value:n),r){const c=X_(n);delete c.value,this.options=c}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const r=this.options.params;Object.keys(e).forEach(o=>{null==r[o]&&(r[o]=e[o])})}}}const nv="void",IM=new xM(nv);class n7{constructor(n,e,r){this.id=n,this.hostElement=e,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Yr(e,this._hostClassName)}listen(n,e,r,o){if(!this._triggers.has(e))throw function X$(t,n){return new i.\u0275RuntimeError(3302,!1)}();if(null==r||0==r.length)throw function eG(t){return new i.\u0275RuntimeError(3303,!1)}();if(!function s7(t){return"start"==t||"done"==t}(r))throw function tG(t,n){return new i.\u0275RuntimeError(3400,!1)}();const c=Ir(this._elementListeners,n,[]),h={name:e,phase:r,callback:o};c.push(h);const y=Ir(this._engine.statesByElement,n,new Map);return y.has(e)||(Yr(n,xw),Yr(n,xw+"-"+e),y.set(e,IM)),()=>{this._engine.afterFlush(()=>{const E=c.indexOf(h);E>=0&&c.splice(E,1),this._triggers.has(e)||y.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function nG(t){return new i.\u0275RuntimeError(3401,!1)}();return e}trigger(n,e,r,o=!0){const c=this._getTrigger(e),h=new PM(this.id,e,n);let y=this._engine.statesByElement.get(n);y||(Yr(n,xw),Yr(n,xw+"-"+e),this._engine.statesByElement.set(n,y=new Map));let E=y.get(e);const M=new xM(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&E&&M.absorbOptions(E.options),y.set(e,M),E||(E=IM),M.value!==nv&&E.value===M.value){if(!function u7(t,n){const e=Object.keys(t),r=Object.keys(n);if(e.length!=r.length)return!1;for(let o=0;o{Nc(n,ae),ms(n,de)})}return}const j=Ir(this._engine.playersByElement,n,[]);j.forEach(se=>{se.namespaceId==this.id&&se.triggerName==e&&se.queued&&se.destroy()});let V=c.matchTransition(E.value,M.value,n,M.params),K=!1;if(!V){if(!o)return;V=c.fallbackTransition,K=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:V,fromState:E,toState:M,player:h,isFallbackTransition:K}),K||(Yr(n,EA),h.onStart(()=>{up(n,EA)})),h.onDone(()=>{let se=this.players.indexOf(h);se>=0&&this.players.splice(se,1);const ae=this._engine.playersByElement.get(n);if(ae){let de=ae.indexOf(h);de>=0&&ae.splice(de,1)}}),this.players.push(h),j.push(h),h}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,r)=>{this._elementListeners.set(r,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(r=>r.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const r=this._engine.driver.query(n,Iw,!0);r.forEach(o=>{if(o[qr])return;const c=this._engine.fetchNamespacesByElement(o);c.size?c.forEach(h=>h.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,r,o){const c=this._engine.statesByElement.get(n),h=new Map;if(c){const y=[];if(c.forEach((E,M)=>{if(h.set(M,E.value),this._triggers.has(M)){const A=this.trigger(n,M,nv,o);A&&y.push(A)}}),y.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,h),r&&$l(y).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),r=this._engine.statesByElement.get(n);if(e&&r){const o=new Set;e.forEach(c=>{const h=c.name;if(o.has(h))return;o.add(h);const E=this._triggers.get(h).fallbackTransition,M=r.get(h)||IM,A=new xM(nv),k=new PM(this.id,h,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:h,transition:E,fromState:M,toState:A,player:k,isFallbackTransition:!0})})}}removeNode(n,e){const r=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(r.totalAnimations){const c=r.players.length?r.playersByQueriedElement.get(n):[];if(c&&c.length)o=!0;else{let h=n;for(;h=h.parentNode;)if(r.statesByElement.get(h)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)r.markElementAsRemoved(this.id,n,!1,e);else{const c=n[qr];(!c||c===DA)&&(r.afterFlush(()=>this.clearElementCache(n)),r.destroyInnerAnimations(n),r._onRemovalComplete(n,e))}}insertNode(n,e){Yr(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(r=>{const o=r.player;if(o.destroyed)return;const c=r.element,h=this._elementListeners.get(c);h&&h.forEach(y=>{if(y.name==r.triggerName){const E=dM(c,r.triggerName,r.fromState.value,r.toState.value);E._data=n,uM(r.player,y.phase,E,y.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(r)}),this._queue=[],e.sort((r,o)=>{const c=r.transition.ast.depCount,h=o.transition.ast.depCount;return 0==c||0==h?c-h:this._engine.driver.containsElement(r.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(r=>r.element===n)||e,e}}class i7{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,r){this.bodyNode=n,this.driver=e,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,c)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(r=>{r.queued&&n.push(r)})}),n}createNamespace(n,e){const r=new n7(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(r,e):(this.newHostElements.set(e,r),this.collectEnterElement(e)),this._namespaceLookup[n]=r}_balanceNamespaceList(n,e){const r=this._namespaceList,o=this.namespacesByHostElement;if(r.length-1>=0){let h=!1,y=this.driver.getParentElement(e);for(;y;){const E=o.get(y);if(E){const M=r.indexOf(E);r.splice(M+1,0,n),h=!0;break}y=this.driver.getParentElement(y)}h||r.unshift(n)}else r.push(n);return o.set(e,n),n}register(n,e){let r=this._namespaceLookup[n];return r||(r=this.createNamespace(n,e)),r}registerTrigger(n,e,r){let o=this._namespaceLookup[n];o&&o.register(e,r)&&this.totalAnimations++}destroy(n,e){if(!n)return;const r=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[n];const o=this._namespaceList.indexOf(r);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>r.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,r=this.statesByElement.get(n);if(r)for(let o of r.values())if(o.namespaceId){const c=this._fetchNamespace(o.namespaceId);c&&e.add(c)}return e}trigger(n,e,r,o){if(jw(e)){const c=this._fetchNamespace(n);if(c)return c.trigger(e,r,o),!0}return!1}insertNode(n,e,r,o){if(!jw(e))return;const c=e[qr];if(c&&c.setForRemoval){c.setForRemoval=!1,c.setForMove=!0;const h=this.collectedLeaveElements.indexOf(e);h>=0&&this.collectedLeaveElements.splice(h,1)}if(n){const h=this._fetchNamespace(n);h&&h.insertNode(e,r)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Yr(n,MM)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),up(n,MM))}removeNode(n,e,r,o){if(jw(e)){const c=n?this._fetchNamespace(n):null;if(c?c.removeNode(e,o):this.markElementAsRemoved(n,e,!1,o),r){const h=this.namespacesByHostElement.get(e);h&&h.id!==n&&h.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(n,e,r,o,c){this.collectedLeaveElements.push(e),e[qr]={namespaceId:n,setForRemoval:o,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:c}}listen(n,e,r,o,c){return jw(e)?this._fetchNamespace(n).listen(e,r,o,c):()=>{}}_buildInstruction(n,e,r,o,c){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,r,o,n.fromState.options,n.toState.options,e,c)}destroyInnerAnimations(n){let e=this.driver.query(n,Iw,!0);e.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,gM,!0),e.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return $l(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[qr];if(e&&e.setForRemoval){if(n[qr]=DA,e.namespaceId){this.destroyInnerAnimations(n);const r=this._fetchNamespace(e.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(MM)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,o)=>this._balanceNamespaceList(r,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],e.length?$l(e).onDone(()=>{r.forEach(o=>o())}):r.forEach(o=>o())}}reportError(n){throw function iG(t){return new i.\u0275RuntimeError(3402,!1)}()}_flushAnimations(n,e){const r=new Nw,o=[],c=new Map,h=[],y=new Map,E=new Map,M=new Map,A=new Set;this.disabledNodes.forEach(Ce=>{A.add(Ce);const Ie=this.driver.query(Ce,".ng-animate-queued",!0);for(let Be=0;Be{const Be=mM+se++;K.set(Ie,Be),Ce.forEach(ct=>Yr(ct,Be))});const ae=[],de=new Set,ye=new Set;for(let Ce=0;Cede.add(ct)):ye.add(Ie))}const lt=new Map,tt=MA(j,Array.from(de));tt.forEach((Ce,Ie)=>{const Be=Mw+se++;lt.set(Ie,Be),Ce.forEach(ct=>Yr(ct,Be))}),n.push(()=>{V.forEach((Ce,Ie)=>{const Be=K.get(Ie);Ce.forEach(ct=>up(ct,Be))}),tt.forEach((Ce,Ie)=>{const Be=lt.get(Ie);Ce.forEach(ct=>up(ct,Be))}),ae.forEach(Ce=>{this.processLeaveNode(Ce)})});const pt=[],He=[];for(let Ce=this._namespaceList.length-1;Ce>=0;Ce--)this._namespaceList[Ce].drainQueuedTransitions(e).forEach(Be=>{const ct=Be.player,Ln=Be.element;if(pt.push(ct),this.collectedEnterElements.length){const Cn=Ln[qr];if(Cn&&Cn.setForMove){if(Cn.previousTriggersValues&&Cn.previousTriggersValues.has(Be.triggerName)){const jt=Cn.previousTriggersValues.get(Be.triggerName),st=this.statesByElement.get(Be.element);if(st&&st.has(Be.triggerName)){const ui=st.get(Be.triggerName);ui.value=jt,st.set(Be.triggerName,ui)}}return void ct.destroy()}}const rr=!k||!this.driver.containsElement(k,Ln),Vn=lt.get(Ln),Lo=K.get(Ln),Pt=this._buildInstruction(Be,r,Lo,Vn,rr);if(Pt.errors&&Pt.errors.length)return void He.push(Pt);if(rr)return ct.onStart(()=>Nc(Ln,Pt.fromStyles)),ct.onDestroy(()=>ms(Ln,Pt.toStyles)),void o.push(ct);if(Be.isFallbackTransition)return ct.onStart(()=>Nc(Ln,Pt.fromStyles)),ct.onDestroy(()=>ms(Ln,Pt.toStyles)),void o.push(ct);const iv=[];Pt.timelines.forEach(Cn=>{Cn.stretchStartingKeyframe=!0,this.disabledNodes.has(Cn.element)||iv.push(Cn)}),Pt.timelines=iv,r.append(Ln,Pt.timelines),h.push({instruction:Pt,player:ct,element:Ln}),Pt.queriedElements.forEach(Cn=>Ir(y,Cn,[]).push(ct)),Pt.preStyleProps.forEach((Cn,jt)=>{if(Cn.size){let st=E.get(jt);st||E.set(jt,st=new Set),Cn.forEach((ui,Wl)=>st.add(Wl))}}),Pt.postStyleProps.forEach((Cn,jt)=>{let st=M.get(jt);st||M.set(jt,st=new Set),Cn.forEach((ui,Wl)=>st.add(Wl))})});if(He.length){const Ce=[];He.forEach(Ie=>{Ce.push(function rG(t,n){return new i.\u0275RuntimeError(3505,!1)}())}),pt.forEach(Ie=>Ie.destroy()),this.reportError(Ce)}const dt=new Map,tn=new Map;h.forEach(Ce=>{const Ie=Ce.element;r.has(Ie)&&(tn.set(Ie,Ie),this._beforeAnimationBuild(Ce.player.namespaceId,Ce.instruction,dt))}),o.forEach(Ce=>{const Ie=Ce.element;this._getPreviousPlayers(Ie,!1,Ce.namespaceId,Ce.triggerName,null).forEach(ct=>{Ir(dt,Ie,[]).push(ct),ct.destroy()})});const li=ae.filter(Ce=>IA(Ce,E,M)),Lr=new Map;TA(Lr,this.driver,ye,M,ha).forEach(Ce=>{IA(Ce,E,M)&&li.push(Ce)});const pa=new Map;V.forEach((Ce,Ie)=>{TA(pa,this.driver,new Set(Ce),E,iM)}),li.forEach(Ce=>{const Ie=Lr.get(Ce),Be=pa.get(Ce);Lr.set(Ce,new Map([...Array.from(Ie?.entries()??[]),...Array.from(Be?.entries()??[])]))});const Po=[],zw=[],dp={};h.forEach(Ce=>{const{element:Ie,player:Be,instruction:ct}=Ce;if(r.has(Ie)){if(A.has(Ie))return Be.onDestroy(()=>ms(Ie,ct.toStyles)),Be.disabled=!0,Be.overrideTotalTime(ct.totalTime),void o.push(Be);let Ln=dp;if(tn.size>1){let Vn=Ie;const Lo=[];for(;Vn=Vn.parentNode;){const Pt=tn.get(Vn);if(Pt){Ln=Pt;break}Lo.push(Vn)}Lo.forEach(Pt=>tn.set(Pt,Ln))}const rr=this._buildAnimation(Be.namespaceId,ct,dt,c,pa,Lr);if(Be.setRealPlayer(rr),Ln===dp)Po.push(Be);else{const Vn=this.playersByElement.get(Ln);Vn&&Vn.length&&(Be.parentPlayer=$l(Vn)),o.push(Be)}}else Nc(Ie,ct.fromStyles),Be.onDestroy(()=>ms(Ie,ct.toStyles)),zw.push(Be),A.has(Ie)&&o.push(Be)}),zw.forEach(Ce=>{const Ie=c.get(Ce.element);if(Ie&&Ie.length){const Be=$l(Ie);Ce.setRealPlayer(Be)}}),o.forEach(Ce=>{Ce.parentPlayer?Ce.syncPlayerEvents(Ce.parentPlayer):Ce.destroy()});for(let Ce=0;Ce!rr.destroyed);Ln.length?a7(this,Ie,Ln):this.processLeaveNode(Ie)}return ae.length=0,Po.forEach(Ce=>{this.players.push(Ce),Ce.onDone(()=>{Ce.destroy();const Ie=this.players.indexOf(Ce);this.players.splice(Ie,1)}),Ce.play()}),Po}elementContainsData(n,e){let r=!1;const o=e[qr];return o&&o.setForRemoval&&(r=!0),this.playersByElement.has(e)&&(r=!0),this.playersByQueriedElement.has(e)&&(r=!0),this.statesByElement.has(e)&&(r=!0),this._fetchNamespace(n).elementContainsData(e)||r}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,r,o,c){let h=[];if(e){const y=this.playersByQueriedElement.get(n);y&&(h=y)}else{const y=this.playersByElement.get(n);if(y){const E=!c||c==nv;y.forEach(M=>{M.queued||!E&&M.triggerName!=o||h.push(M)})}}return(r||o)&&(h=h.filter(y=>!(r&&r!=y.namespaceId||o&&o!=y.triggerName))),h}_beforeAnimationBuild(n,e,r){const c=e.element,h=e.isRemovalTransition?void 0:n,y=e.isRemovalTransition?void 0:e.triggerName;for(const E of e.timelines){const M=E.element,A=M!==c,k=Ir(r,M,[]);this._getPreviousPlayers(M,A,h,y,e.toState).forEach(V=>{const K=V.getRealPlayer();K.beforeDestroy&&K.beforeDestroy(),V.destroy(),k.push(V)})}Nc(c,e.fromStyles)}_buildAnimation(n,e,r,o,c,h){const y=e.triggerName,E=e.element,M=[],A=new Set,k=new Set,j=e.timelines.map(K=>{const se=K.element;A.add(se);const ae=se[qr];if(ae&&ae.removedBeforeQueried)return new J_(K.duration,K.delay);const de=se!==E,ye=function l7(t){const n=[];return xA(t,n),n}((r.get(se)||e7).map(dt=>dt.getRealPlayer())).filter(dt=>!!dt.element&&dt.element===se),lt=c.get(se),tt=h.get(se),pt=eA(0,this._normalizer,0,K.keyframes,lt,tt),He=this._buildPlayer(K,pt,ye);if(K.subTimeline&&o&&k.add(se),de){const dt=new PM(n,y,se);dt.setRealPlayer(He),M.push(dt)}return He});M.forEach(K=>{Ir(this.playersByQueriedElement,K.element,[]).push(K),K.onDone(()=>function r7(t,n,e){let r=t.get(n);if(r){if(r.length){const o=r.indexOf(e);r.splice(o,1)}0==r.length&&t.delete(n)}return r}(this.playersByQueriedElement,K.element,K))}),A.forEach(K=>Yr(K,uA));const V=$l(j);return V.onDestroy(()=>{A.forEach(K=>up(K,uA)),ms(E,e.toStyles)}),k.forEach(K=>{Ir(o,K,[]).push(V)}),V}_buildPlayer(n,e,r){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,r):new J_(n.duration,n.delay)}}class PM{constructor(n,e,r){this.namespaceId=n,this.triggerName=e,this.element=r,this._player=new J_,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,r)=>{e.forEach(o=>uM(n,r,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){Ir(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function jw(t){return t&&1===t.nodeType}function SA(t,n){const e=t.style.display;return t.style.display=n??"none",e}function TA(t,n,e,r,o){const c=[];e.forEach(E=>c.push(SA(E)));const h=[];r.forEach((E,M)=>{const A=new Map;E.forEach(k=>{const j=n.computeStyle(M,k,o);A.set(k,j),(!j||0==j.length)&&(M[qr]=t7,h.push(M))}),t.set(M,A)});let y=0;return e.forEach(E=>SA(E,c[y++])),h}function MA(t,n){const e=new Map;if(t.forEach(y=>e.set(y,[])),0==n.length)return e;const r=1,o=new Set(n),c=new Map;function h(y){if(!y)return r;let E=c.get(y);if(E)return E;const M=y.parentNode;return E=e.has(M)?M:o.has(M)?r:h(M),c.set(y,E),E}return n.forEach(y=>{const E=h(y);E!==r&&e.get(E).push(y)}),e}function Yr(t,n){t.classList?.add(n)}function up(t,n){t.classList?.remove(n)}function a7(t,n,e){$l(e).onDone(()=>t.processLeaveNode(n))}function xA(t,n){for(let e=0;eo.add(c)):n.set(t,r),e.delete(t),!0}class Hw{constructor(n,e,r){this.bodyNode=n,this._driver=e,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(o,c)=>{},this._transitionEngine=new i7(n,e,r),this._timelineEngine=new YG(n,e,r),this._transitionEngine.onRemovalComplete=(o,c)=>this.onRemovalComplete(o,c)}registerTrigger(n,e,r,o,c){const h=n+"-"+o;let y=this._triggerCache[h];if(!y){const E=[],M=[],A=bM(this._driver,c,E,M);if(E.length)throw function Z$(t,n){return new i.\u0275RuntimeError(3404,!1)}();y=function GG(t,n,e){return new WG(t,n,e)}(o,A,this._normalizer),this._triggerCache[h]=y}this._transitionEngine.registerTrigger(e,o,y)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,r,o){this._transitionEngine.insertNode(n,e,r,o)}onRemove(n,e,r,o){this._transitionEngine.removeNode(n,e,o||!1,r)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,r,o){if("@"==r.charAt(0)){const[c,h]=tA(r);this._timelineEngine.command(c,e,h,o)}else this._transitionEngine.trigger(n,e,r,o)}listen(n,e,r,o,c){if("@"==r.charAt(0)){const[h,y]=tA(r);return this._timelineEngine.listen(h,e,y,c)}return this._transitionEngine.listen(n,e,r,o,c)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let d7=(()=>{class t{constructor(e,r,o){this._element=e,this._startStyles=r,this._endStyles=o,this._state=0;let c=t.initialStylesByElement.get(e);c||t.initialStylesByElement.set(e,c=new Map),this._initialStyles=c}start(){this._state<1&&(this._startStyles&&ms(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ms(this._element,this._initialStyles),this._endStyles&&(ms(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Nc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Nc(this._element,this._endStyles),this._endStyles=null),ms(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function LM(t){let n=null;return t.forEach((e,r)=>{(function h7(t){return"display"===t||"position"===t})(r)&&(n=n||new Map,n.set(r,e))}),n}class PA{constructor(n,e,r,o){this.element=n,this.keyframes=e,this.options=r,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(r=>{e.push(Object.fromEntries(r))}),e}_triggerWebAnimation(n,e,r){return n.animate(this._convertKeyframesToObject(e),r)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,o)=>{"offset"!==o&&n.set(o,this._finished?r:mA(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}}class f7{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return oA(n,e)}getParentElement(n){return fM(n)}query(n,e,r){return sA(n,e,r)}computeStyle(n,e,r){return window.getComputedStyle(n)[e]}animate(n,e,r,o,c,h=[]){const E={duration:r,delay:o,fill:0==o?"both":"forwards"};c&&(E.easing=c);const M=new Map,A=h.filter(V=>V instanceof PA);(function _G(t,n){return 0===t||0===n})(r,o)&&A.forEach(V=>{V.currentSnapshot.forEach((K,se)=>M.set(se,K))});let k=function fG(t){return t.length?t[0]instanceof Map?t:t.map(n=>cA(n)):[]}(e).map(V=>Gl(V));k=function vG(t,n,e){if(e.size&&n.length){let r=n[0],o=[];if(e.forEach((c,h)=>{r.has(h)||o.push(h),r.set(h,c)}),o.length)for(let c=1;ch.set(y,mA(t,y)))}}return n}(n,k,M);const j=function c7(t,n){let e=null,r=null;return Array.isArray(n)&&n.length?(e=LM(n[0]),n.length>1&&(r=LM(n[n.length-1]))):n instanceof Map&&(e=LM(n)),e||r?new d7(t,e,r):null}(n,k);return new PA(n,k,E,j)}}let p7=(()=>{class t extends EL{constructor(e,r){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(r.body,{id:"0",encapsulation:i.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(e){const r=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?SL(e):e;return LA(this._renderer,null,r,"register",[o]),new m7(r,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(W))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();class m7 extends L5{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new g7(this._id,n,e||{},this._renderer)}}class g7{constructor(n,e,r,o){this.id=n,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return LA(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function LA(t,n,e,r,o){return t.setProperty(n,`@@${e}:${r}`,o)}const AA="@.disabled";let _7=(()=>{class t{constructor(e,r,o){this.delegate=e,this.engine=r,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(c,h)=>{const y=h?.parentNode(c);y&&h.removeChild(y,c)}}createRenderer(e,r){const c=this.delegate.createRenderer(e,r);if(!(e&&r&&r.data&&r.data.animation)){let A=this._rendererCache.get(c);return A||(A=new OA("",c,this.engine,()=>this._rendererCache.delete(c)),this._rendererCache.set(c,A)),A}const h=r.id,y=r.id+"-"+this._currentId;this._currentId++,this.engine.register(y,e);const E=A=>{Array.isArray(A)?A.forEach(E):this.engine.registerTrigger(h,y,e,A.name,A)};return r.data.animation.forEach(E),new v7(this,y,c,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,r,o){e>=0&&er(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(c=>{const[h,y]=c;h(y)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(Hw),i.\u0275\u0275inject(i.NgZone))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();class OA{constructor(n,e,r,o){this.namespaceId=n,this.delegate=e,this.engine=r,this._onDestroy=o,this.destroyNode=this.delegate.destroyNode?c=>e.destroyNode(c):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,r,o=!0){this.delegate.insertBefore(n,e,r),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,r){this.engine.onRemove(this.namespaceId,e,this.delegate,r)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,r,o){this.delegate.setAttribute(n,e,r,o)}removeAttribute(n,e,r){this.delegate.removeAttribute(n,e,r)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,r,o){this.delegate.setStyle(n,e,r,o)}removeStyle(n,e,r){this.delegate.removeStyle(n,e,r)}setProperty(n,e,r){"@"==e.charAt(0)&&e==AA?this.disableAnimations(n,!!r):this.delegate.setProperty(n,e,r)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,r){return this.delegate.listen(n,e,r)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class v7 extends OA{constructor(n,e,r,o,c){super(e,r,o,c),this.factory=n,this.namespaceId=e}setProperty(n,e,r){"@"==e.charAt(0)?"."==e.charAt(1)&&e==AA?this.disableAnimations(n,r=void 0===r||!!r):this.engine.process(this.namespaceId,n,e.slice(1),r):this.delegate.setProperty(n,e,r)}listen(n,e,r){if("@"==e.charAt(0)){const o=function y7(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let c=e.slice(1),h="";return"@"!=c.charAt(0)&&([c,h]=function b7(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(c)),this.engine.listen(this.namespaceId,o,c,h,y=>{this.factory.scheduleListenerCallback(y._data||-1,r,y)})}return this.delegate.listen(n,e,r)}}let C7=(()=>{class t extends Hw{constructor(e,r,o,c){super(e.body,r,o)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(i.\u0275\u0275inject(W),i.\u0275\u0275inject(pM),i.\u0275\u0275inject(SM),i.\u0275\u0275inject(i.ApplicationRef))},t.\u0275prov=i.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac}),t})();const kA=[{provide:EL,useClass:p7},{provide:SM,useFactory:function w7(){return new HG}},{provide:Hw,useClass:C7},{provide:i.RendererFactory2,useFactory:function E7(t,n,e){return new _7(t,n,e)},deps:[fe,Hw,i.NgZone]}],AM=[{provide:pM,useFactory:()=>new f7},{provide:i.ANIMATION_MODULE_TYPE,useValue:"BrowserAnimations"},...kA],RA=[{provide:pM,useClass:aA},{provide:i.ANIMATION_MODULE_TYPE,useValue:"NoopAnimations"},...kA];let D7=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?RA:AM}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.\u0275\u0275defineNgModule({type:t}),t.\u0275inj=i.\u0275\u0275defineInjector({providers:AM,imports:[mu]}),t})(),S7=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[JL,D7,dh.forChild(sM),mu,er,Tl]})),t})(),T7=(()=>{class t{}return _(t,"\u0275fac",function(e){return new(e||t)}),_(t,"\u0275mod",i.\u0275\u0275defineNgModule({type:t,bootstrap:[v$]})),_(t,"\u0275inj",i.\u0275\u0275defineInjector({imports:[mu,dh.forRoot(y$),JL,S7]})),t})();(0,i.enableProdMode)(),hv().bootstrapModule(T7).catch(t=>console.error(t))},583:(Je,he,R)=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});var ue=R(62),i=R(62),S=function(){function x(B,H){this.elementRef=B,this.zone=H}return x.prototype.ngOnInit=function(){this.useBr&&hljs.configure({useBR:!0})},x.prototype.ngAfterViewChecked=function(){if(this.elementRef.nativeElement.innerHTML&&this.elementRef.nativeElement.querySelector){var H=this.elementRef.nativeElement.querySelectorAll(this.highlightSelector||"code");this.zone.runOutsideAngular(function(){for(var W=0,Q=H;W{"use strict";R(62),R(583);var x=R(62),H=(R(583),function(){function Q(){}return Q.\u0275fac=function(U){return new(U||Q)},Q.\u0275mod=x.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=x.\u0275\u0275defineInjector({}),Q}());H.ctorParameters=function(){return[]},he.n6=H;var W=R(753);he.vp=W.HighlightJsService},753:(Je,he,R)=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0}),R(62);var i=R(62),S=function(){function x(){}return x.prototype.highlight=function(B,H){H&&hljs.configure({useBR:!0}),hljs.highlightBlock(B)},x.\u0275fac=function(H){return new(H||x)},x.\u0275prov=i.\u0275\u0275defineInjectable({token:x,factory:function(B){return x.\u0275fac(B)}}),x}();S.ctorParameters=function(){return[]},he.HighlightJsService=S},690:()=>{var Je,he,i;Je=window,he=document,L.drawVersion="1.0.4",L.Draw={},L.drawLocal={draw:{toolbar:{actions:{title:"Cancel drawing",text:"Cancel"},finish:{title:"Finish drawing",text:"Finish"},undo:{title:"Delete last point drawn",text:"Delete last point"},buttons:{polyline:"Draw a polyline",polygon:"Draw a polygon",rectangle:"Draw a rectangle",circle:"Draw a circle",marker:"Draw a marker",circlemarker:"Draw a circlemarker"}},handlers:{circle:{tooltip:{start:"Click and drag to draw circle."},radius:"Radius"},circlemarker:{tooltip:{start:"Click map to place circle marker."}},marker:{tooltip:{start:"Click map to place marker."}},polygon:{tooltip:{start:"Click to start drawing shape.",cont:"Click to continue drawing shape.",end:"Click first point to close this shape."}},polyline:{error:"Error: shape edges cannot cross!",tooltip:{start:"Click to start drawing line.",cont:"Click to continue drawing line.",end:"Click last point to finish line."}},rectangle:{tooltip:{start:"Click and drag to draw rectangle."}},simpleshape:{tooltip:{end:"Release mouse to finish drawing."}}}},edit:{toolbar:{actions:{save:{title:"Save changes",text:"Save"},cancel:{title:"Cancel editing, discards all changes",text:"Cancel"},clearAll:{title:"Clear all layers",text:"Clear All"}},buttons:{edit:"Edit layers",editDisabled:"No layers to edit",remove:"Delete layers",removeDisabled:"No layers to delete"}},handlers:{edit:{tooltip:{text:"Drag handles or markers to edit features.",subtext:"Click cancel to undo changes."}},remove:{tooltip:{text:"Click on a feature to remove."}}}}},L.Draw.Event={},L.Draw.Event.CREATED="draw:created",L.Draw.Event.EDITED="draw:edited",L.Draw.Event.DELETED="draw:deleted",L.Draw.Event.DRAWSTART="draw:drawstart",L.Draw.Event.DRAWSTOP="draw:drawstop",L.Draw.Event.DRAWVERTEX="draw:drawvertex",L.Draw.Event.EDITSTART="draw:editstart",L.Draw.Event.EDITMOVE="draw:editmove",L.Draw.Event.EDITRESIZE="draw:editresize",L.Draw.Event.EDITVERTEX="draw:editvertex",L.Draw.Event.EDITSTOP="draw:editstop",L.Draw.Event.DELETESTART="draw:deletestart",L.Draw.Event.DELETESTOP="draw:deletestop",L.Draw.Event.TOOLBAROPENED="draw:toolbaropened",L.Draw.Event.TOOLBARCLOSED="draw:toolbarclosed",L.Draw.Event.MARKERCONTEXT="draw:markercontext",L.Draw=L.Draw||{},L.Draw.Feature=L.Handler.extend({initialize:function(i,S){this._map=i,this._container=i._container,this._overlayPane=i._panes.overlayPane,this._popupPane=i._panes.popupPane,S&&S.shapeOptions&&(S.shapeOptions=L.Util.extend({},this.options.shapeOptions,S.shapeOptions)),L.setOptions(this,S);var x=L.version.split(".");1===parseInt(x[0],10)&&parseInt(x[1],10)>=2?L.Draw.Feature.include(L.Evented.prototype):L.Draw.Feature.include(L.Mixin.Events)},enable:function(){this._enabled||(L.Handler.prototype.enable.call(this),this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.DRAWSTART,{layerType:this.type}))},disable:function(){this._enabled&&(L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.DRAWSTOP,{layerType:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var i=this._map;i&&(L.DomUtil.disableTextSelection(),i.getContainer().focus(),this._tooltip=new L.Draw.Tooltip(this._map),L.DomEvent.on(this._container,"keyup",this._cancelDrawing,this))},removeHooks:function(){this._map&&(L.DomUtil.enableTextSelection(),this._tooltip.dispose(),this._tooltip=null,L.DomEvent.off(this._container,"keyup",this._cancelDrawing,this))},setOptions:function(i){L.setOptions(this,i)},_fireCreatedEvent:function(i){this._map.fire(L.Draw.Event.CREATED,{layer:i,layerType:this.type})},_cancelDrawing:function(i){27===i.keyCode&&(this._map.fire("draw:canceled",{layerType:this.type}),this.disable())}}),L.Draw.Polyline=L.Draw.Feature.extend({statics:{TYPE:"polyline"},Poly:L.Polyline,options:{allowIntersection:!0,repeatMode:!1,drawError:{color:"#b00b00",timeout:2500},icon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),guidelineDistance:20,maxGuideLineLength:4e3,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!1,clickable:!0},metric:!0,feet:!0,nautic:!1,showLength:!0,zIndexOffset:2e3,factor:1,maxPoints:0},initialize:function(i,S){L.Browser.touch&&(this.options.icon=this.options.touchIcon),this.options.drawError.message=L.drawLocal.draw.handlers.polyline.error,S&&S.drawError&&(S.drawError=L.Util.extend({},this.options.drawError,S.drawError)),this.type=L.Draw.Polyline.TYPE,L.Draw.Feature.prototype.initialize.call(this,i,S)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._markers=[],this._markerGroup=new L.LayerGroup,this._map.addLayer(this._markerGroup),this._poly=new L.Polyline([],this.options.shapeOptions),this._tooltip.updateContent(this._getTooltipText()),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("mouseout",this._onMouseOut,this).on("mousemove",this._onMouseMove,this).on("mousedown",this._onMouseDown,this).on("mouseup",this._onMouseUp,this).addTo(this._map),this._map.on("mouseup",this._onMouseUp,this).on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._onZoomEnd,this).on("touchstart",this._onTouch,this).on("zoomend",this._onZoomEnd,this))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._clearHideErrorTimeout(),this._cleanUpShape(),this._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers,this._map.removeLayer(this._poly),delete this._poly,this._mouseMarker.off("mousedown",this._onMouseDown,this).off("mouseout",this._onMouseOut,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._clearGuides(),this._map.off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("zoomend",this._onZoomEnd,this).off("touchstart",this._onTouch,this).off("click",this._onTouch,this)},deleteLastVertex:function(){if(!(this._markers.length<=1)){var i=this._markers.pop(),S=this._poly,x=S.getLatLngs(),B=x.splice(-1,1)[0];this._poly.setLatLngs(x),this._markerGroup.removeLayer(i),S.getLatLngs().length<2&&this._map.removeLayer(S),this._vertexChanged(B,!1)}},addVertex:function(i){this._markers.length>=2&&!this.options.allowIntersection&&this._poly.newLatLngIntersects(i)?this._showErrorTooltip():(this._errorShown&&this._hideErrorTooltip(),this._markers.push(this._createMarker(i)),this._poly.addLatLng(i),2===this._poly.getLatLngs().length&&this._map.addLayer(this._poly),this._vertexChanged(i,!0))},completeShape:function(){this._markers.length<=1||!this._shapeIsValid()||(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_finishShape:function(){var i=this._poly._defaultShape?this._poly._defaultShape():this._poly.getLatLngs(),S=this._poly.newLatLngIntersects(i[i.length-1]);!this.options.allowIntersection&&S||!this._shapeIsValid()?this._showErrorTooltip():(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_shapeIsValid:function(){return!0},_onZoomEnd:function(){null!==this._markers&&this._updateGuide()},_onMouseMove:function(i){var S=this._map.mouseEventToLayerPoint(i.originalEvent),x=this._map.layerPointToLatLng(S);this._currentLatLng=x,this._updateTooltip(x),this._updateGuide(S),this._mouseMarker.setLatLng(x),L.DomEvent.preventDefault(i.originalEvent)},_vertexChanged:function(i,S){this._map.fire(L.Draw.Event.DRAWVERTEX,{layers:this._markerGroup}),this._updateFinishHandler(),this._updateRunningMeasure(i,S),this._clearGuides(),this._updateTooltip()},_onMouseDown:function(i){if(!this._clickHandled&&!this._touchHandled&&!this._disableMarkers){this._onMouseMove(i),this._clickHandled=!0,this._disableNewMarkers();var S=i.originalEvent;this._startPoint.call(this,S.clientX,S.clientY)}},_startPoint:function(i,S){this._mouseDownOrigin=L.point(i,S)},_onMouseUp:function(i){var S=i.originalEvent;this._endPoint.call(this,S.clientX,S.clientY,i),this._clickHandled=null},_endPoint:function(i,S,x){if(this._mouseDownOrigin){var B=L.point(i,S).distanceTo(this._mouseDownOrigin),H=this._calculateFinishDistance(x.latlng);this.options.maxPoints>1&&this.options.maxPoints==this._markers.length+1?(this.addVertex(x.latlng),this._finishShape()):H<10&&L.Browser.touch?this._finishShape():Math.abs(B)<9*(Je.devicePixelRatio||1)&&this.addVertex(x.latlng),this._enableNewMarkers()}this._mouseDownOrigin=null},_onTouch:function(i){var S,x,B=i.originalEvent;!B.touches||!B.touches[0]||this._clickHandled||this._touchHandled||this._disableMarkers||(S=B.touches[0].clientX,x=B.touches[0].clientY,this._disableNewMarkers(),this._touchHandled=!0,this._startPoint.call(this,S,x),this._endPoint.call(this,S,x,i),this._touchHandled=null),this._clickHandled=null},_onMouseOut:function(){this._tooltip&&this._tooltip._onMouseOut.call(this._tooltip)},_calculateFinishDistance:function(i){var S;if(this._markers.length>0){var x;if(this.type===L.Draw.Polyline.TYPE)x=this._markers[this._markers.length-1];else{if(this.type!==L.Draw.Polygon.TYPE)return 1/0;x=this._markers[0]}var B=this._map.latLngToContainerPoint(x.getLatLng()),H=new L.Marker(i,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset}),W=this._map.latLngToContainerPoint(H.getLatLng());S=B.distanceTo(W)}else S=1/0;return S},_updateFinishHandler:function(){var i=this._markers.length;i>1&&this._markers[i-1].on("click",this._finishShape,this),i>2&&this._markers[i-2].off("click",this._finishShape,this)},_createMarker:function(i){var S=new L.Marker(i,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset});return this._markerGroup.addLayer(S),S},_updateGuide:function(i){var S=this._markers?this._markers.length:0;S>0&&(i=i||this._map.latLngToLayerPoint(this._currentLatLng),this._clearGuides(),this._drawGuide(this._map.latLngToLayerPoint(this._markers[S-1].getLatLng()),i))},_updateTooltip:function(i){var S=this._getTooltipText();i&&this._tooltip.updatePosition(i),this._errorShown||this._tooltip.updateContent(S)},_drawGuide:function(i,S){var x,B,H,W=Math.floor(Math.sqrt(Math.pow(S.x-i.x,2)+Math.pow(S.y-i.y,2))),q=this.options.maxGuideLineLength,U=W>q?W-q:this.options.guidelineDistance;for(this._guidesContainer||(this._guidesContainer=L.DomUtil.create("div","leaflet-draw-guides",this._overlayPane));U1&&this._markers[this._markers.length-1].off("click",this._finishShape,this)},_fireCreatedEvent:function(){var i=new this.Poly(this._poly.getLatLngs(),this.options.shapeOptions);L.Draw.Feature.prototype._fireCreatedEvent.call(this,i)}}),L.Draw.Polygon=L.Draw.Polyline.extend({statics:{TYPE:"polygon"},Poly:L.Polygon,options:{showArea:!1,showLength:!1,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},metric:!0,feet:!0,nautic:!1,precision:{}},initialize:function(i,S){L.Draw.Polyline.prototype.initialize.call(this,i,S),this.type=L.Draw.Polygon.TYPE},_updateFinishHandler:function(){var i=this._markers.length;1===i&&this._markers[0].on("click",this._finishShape,this),i>2&&(this._markers[i-1].on("dblclick",this._finishShape,this),i>3&&this._markers[i-2].off("dblclick",this._finishShape,this))},_getTooltipText:function(){var i,S;return 0===this._markers.length?i=L.drawLocal.draw.handlers.polygon.tooltip.start:this._markers.length<3?(i=L.drawLocal.draw.handlers.polygon.tooltip.cont,S=this._getMeasurementString()):(i=L.drawLocal.draw.handlers.polygon.tooltip.end,S=this._getMeasurementString()),{text:i,subtext:S}},_getMeasurementString:function(){var i=this._area,S="";return i||this.options.showLength?(this.options.showLength&&(S=L.Draw.Polyline.prototype._getMeasurementString.call(this)),i&&(S+="
    "+L.GeometryUtil.readableArea(i,this.options.metric,this.options.precision)),S):null},_shapeIsValid:function(){return this._markers.length>=3},_vertexChanged:function(i,S){var x;!this.options.allowIntersection&&this.options.showArea&&(x=this._poly.getLatLngs(),this._area=L.GeometryUtil.geodesicArea(x)),L.Draw.Polyline.prototype._vertexChanged.call(this,i,S)},_cleanUpShape:function(){var i=this._markers.length;i>0&&(this._markers[0].off("click",this._finishShape,this),i>2&&this._markers[i-1].off("dblclick",this._finishShape,this))}}),L.SimpleShape={},L.Draw.SimpleShape=L.Draw.Feature.extend({options:{repeatMode:!1},initialize:function(i,S){this._endLabelText=L.drawLocal.draw.handlers.simpleshape.tooltip.end,L.Draw.Feature.prototype.initialize.call(this,i,S)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._mapDraggable=this._map.dragging.enabled(),this._mapDraggable&&this._map.dragging.disable(),this._container.style.cursor="crosshair",this._tooltip.updateContent({text:this._initialLabelText}),this._map.on("mousedown",this._onMouseDown,this).on("mousemove",this._onMouseMove,this).on("touchstart",this._onMouseDown,this).on("touchmove",this._onMouseMove,this),he.addEventListener("touchstart",L.DomEvent.preventDefault,{passive:!1}))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._mapDraggable&&this._map.dragging.enable(),this._container.style.cursor="",this._map.off("mousedown",this._onMouseDown,this).off("mousemove",this._onMouseMove,this).off("touchstart",this._onMouseDown,this).off("touchmove",this._onMouseMove,this),L.DomEvent.off(he,"mouseup",this._onMouseUp,this),L.DomEvent.off(he,"touchend",this._onMouseUp,this),he.removeEventListener("touchstart",L.DomEvent.preventDefault),this._shape&&(this._map.removeLayer(this._shape),delete this._shape)),this._isDrawing=!1},_getTooltipText:function(){return{text:this._endLabelText}},_onMouseDown:function(i){this._isDrawing=!0,this._startLatLng=i.latlng,L.DomEvent.on(he,"mouseup",this._onMouseUp,this).on(he,"touchend",this._onMouseUp,this).preventDefault(i.originalEvent)},_onMouseMove:function(i){var S=i.latlng;this._tooltip.updatePosition(S),this._isDrawing&&(this._tooltip.updateContent(this._getTooltipText()),this._drawShape(S))},_onMouseUp:function(){this._shape&&this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()}}),L.Draw.Rectangle=L.Draw.SimpleShape.extend({statics:{TYPE:"rectangle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showArea:!0,metric:!0},initialize:function(i,S){this.type=L.Draw.Rectangle.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.rectangle.tooltip.start,L.Draw.SimpleShape.prototype.initialize.call(this,i,S)},disable:function(){this._enabled&&(this._isCurrentlyTwoClickDrawing=!1,L.Draw.SimpleShape.prototype.disable.call(this))},_onMouseUp:function(i){this._shape||this._isCurrentlyTwoClickDrawing?this._isCurrentlyTwoClickDrawing&&!function ue(i,S){for(;(i=i.parentElement)&&!i.classList.contains(S););return i}(i.target,"leaflet-pane")||L.Draw.SimpleShape.prototype._onMouseUp.call(this):this._isCurrentlyTwoClickDrawing=!0},_drawShape:function(i){this._shape?this._shape.setBounds(new L.LatLngBounds(this._startLatLng,i)):(this._shape=new L.Rectangle(new L.LatLngBounds(this._startLatLng,i),this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var i=new L.Rectangle(this._shape.getBounds(),this.options.shapeOptions);L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,i)},_getTooltipText:function(){var i,S,x,B=L.Draw.SimpleShape.prototype._getTooltipText.call(this),W=this.options.showArea;return this._shape&&(i=this._shape._defaultShape?this._shape._defaultShape():this._shape.getLatLngs(),S=L.GeometryUtil.geodesicArea(i),x=W?L.GeometryUtil.readableArea(S,this.options.metric):""),{text:B.text,subtext:x}}}),L.Draw.Marker=L.Draw.Feature.extend({statics:{TYPE:"marker"},options:{icon:new L.Icon.Default,repeatMode:!1,zIndexOffset:2e3},initialize:function(i,S){this.type=L.Draw.Marker.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.marker.tooltip.start,L.Draw.Feature.prototype.initialize.call(this,i,S)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._tooltip.updateContent({text:this._initialLabelText}),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("click",this._onClick,this).addTo(this._map),this._map.on("mousemove",this._onMouseMove,this),this._map.on("click",this._onTouch,this))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._map.off("click",this._onClick,this).off("click",this._onTouch,this),this._marker&&(this._marker.off("click",this._onClick,this),this._map.removeLayer(this._marker),delete this._marker),this._mouseMarker.off("click",this._onClick,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._map.off("mousemove",this._onMouseMove,this))},_onMouseMove:function(i){var S=i.latlng;this._tooltip.updatePosition(S),this._mouseMarker.setLatLng(S),this._marker?(S=this._mouseMarker.getLatLng(),this._marker.setLatLng(S)):(this._marker=this._createMarker(S),this._marker.on("click",this._onClick,this),this._map.on("click",this._onClick,this).addLayer(this._marker))},_createMarker:function(i){return new L.Marker(i,{icon:this.options.icon,zIndexOffset:this.options.zIndexOffset})},_onClick:function(){this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()},_onTouch:function(i){this._onMouseMove(i),this._onClick()},_fireCreatedEvent:function(){var i=new L.Marker.Touch(this._marker.getLatLng(),{icon:this.options.icon});L.Draw.Feature.prototype._fireCreatedEvent.call(this,i)}}),L.Draw.CircleMarker=L.Draw.Marker.extend({statics:{TYPE:"circlemarker"},options:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0,zIndexOffset:2e3},initialize:function(i,S){this.type=L.Draw.CircleMarker.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.circlemarker.tooltip.start,L.Draw.Feature.prototype.initialize.call(this,i,S)},_fireCreatedEvent:function(){var i=new L.CircleMarker(this._marker.getLatLng(),this.options);L.Draw.Feature.prototype._fireCreatedEvent.call(this,i)},_createMarker:function(i){return new L.CircleMarker(i,this.options)}}),L.Draw.Circle=L.Draw.SimpleShape.extend({statics:{TYPE:"circle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showRadius:!0,metric:!0,feet:!0,nautic:!1},initialize:function(i,S){this.type=L.Draw.Circle.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.circle.tooltip.start,L.Draw.SimpleShape.prototype.initialize.call(this,i,S)},_drawShape:function(i){if(L.GeometryUtil.isVersion07x())var S=this._startLatLng.distanceTo(i);else S=this._map.distance(this._startLatLng,i);this._shape?this._shape.setRadius(S):(this._shape=new L.Circle(this._startLatLng,S,this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var i=new L.Circle(this._startLatLng,this._shape.getRadius(),this.options.shapeOptions);L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,i)},_onMouseMove:function(i){var S,x=i.latlng,B=this.options.showRadius,H=this.options.metric;if(this._tooltip.updatePosition(x),this._isDrawing){this._drawShape(x),S=this._shape.getRadius().toFixed(1);var W="";B&&(W=L.drawLocal.draw.handlers.circle.radius+": "+L.GeometryUtil.readableDistance(S,H,this.options.feet,this.options.nautic)),this._tooltip.updateContent({text:this._endLabelText,subtext:W})}}}),L.Edit=L.Edit||{},L.Edit.Marker=L.Handler.extend({initialize:function(i,S){this._marker=i,L.setOptions(this,S)},addHooks:function(){var i=this._marker;i.dragging.enable(),i.on("dragend",this._onDragEnd,i),this._toggleMarkerHighlight()},removeHooks:function(){var i=this._marker;i.dragging.disable(),i.off("dragend",this._onDragEnd,i),this._toggleMarkerHighlight()},_onDragEnd:function(i){var S=i.target;S.edited=!0,this._map.fire(L.Draw.Event.EDITMOVE,{layer:S})},_toggleMarkerHighlight:function(){var i=this._marker._icon;i&&(i.style.display="none",L.DomUtil.hasClass(i,"leaflet-edit-marker-selected")?(L.DomUtil.removeClass(i,"leaflet-edit-marker-selected"),this._offsetMarker(i,-4)):(L.DomUtil.addClass(i,"leaflet-edit-marker-selected"),this._offsetMarker(i,4)),i.style.display="")},_offsetMarker:function(i,S){var x=parseInt(i.style.marginTop,10)-S,B=parseInt(i.style.marginLeft,10)-S;i.style.marginTop=x+"px",i.style.marginLeft=B+"px"}}),L.Marker.addInitHook(function(){L.Edit.Marker&&(this.editing=new L.Edit.Marker(this),this.options.editable&&this.editing.enable())}),L.Edit=L.Edit||{},L.Edit.Poly=L.Handler.extend({initialize:function(i){this.latlngs=[i._latlngs],i._holes&&(this.latlngs=this.latlngs.concat(i._holes)),this._poly=i,this._poly.on("revert-edited",this._updateLatLngs,this)},_defaultShape:function(){return L.Polyline._flat?L.Polyline._flat(this._poly._latlngs)?this._poly._latlngs:this._poly._latlngs[0]:this._poly._latlngs},_eachVertexHandler:function(i){for(var S=0;Si&&(x._index+=S)})},_createMiddleMarker:function(i,S){var x,B,H,W=this._getMiddleLatLng(i,S),Q=this._createMarker(W);Q.setOpacity(.6),i._middleRight=S._middleLeft=Q,B=function(){Q.off("touchmove",B,this);var q=S._index;Q._index=q,Q.off("click",x,this).on("click",this._onMarkerClick,this),W.lat=Q.getLatLng().lat,W.lng=Q.getLatLng().lng,this._spliceLatLngs(q,0,W),this._markers.splice(q,0,Q),Q.setOpacity(1),this._updateIndexes(q,1),S._index++,this._updatePrevNext(i,Q),this._updatePrevNext(Q,S),this._poly.fire("editstart")},H=function(){Q.off("dragstart",B,this),Q.off("dragend",H,this),Q.off("touchmove",B,this),this._createMiddleMarker(i,Q),this._createMiddleMarker(Q,S)},Q.on("click",x=function(){B.call(this),H.call(this),this._fireEdit()},this).on("dragstart",B,this).on("dragend",H,this).on("touchmove",B,this),this._markerGroup.addLayer(Q)},_updatePrevNext:function(i,S){i&&(i._next=S),S&&(S._prev=i)},_getMiddleLatLng:function(i,S){var x=this._poly._map,B=x.project(i.getLatLng()),H=x.project(S.getLatLng());return x.unproject(B._add(H)._divideBy(2))}}),L.Polyline.addInitHook(function(){this.editing||(L.Edit.Poly&&(this.editing=new L.Edit.Poly(this),this.options.editable&&this.editing.enable()),this.on("add",function(){this.editing&&this.editing.enabled()&&this.editing.addHooks()}),this.on("remove",function(){this.editing&&this.editing.enabled()&&this.editing.removeHooks()}))}),L.Edit=L.Edit||{},L.Edit.SimpleShape=L.Handler.extend({options:{moveIcon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move"}),resizeIcon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize"}),touchMoveIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move leaflet-touch-icon"}),touchResizeIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize leaflet-touch-icon"})},initialize:function(i,S){L.Browser.touch&&(this.options.moveIcon=this.options.touchMoveIcon,this.options.resizeIcon=this.options.touchResizeIcon),this._shape=i,L.Util.setOptions(this,S)},addHooks:function(){var i=this._shape;this._shape._map&&(this._map=this._shape._map,i.setStyle(i.options.editing),i._map&&(this._map=i._map,this._markerGroup||this._initMarkers(),this._map.addLayer(this._markerGroup)))},removeHooks:function(){var i=this._shape;if(i.setStyle(i.options.original),i._map){this._unbindMarker(this._moveMarker);for(var S=0,x=this._resizeMarkers.length;S"+L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.draw.handlers.circle.radius+": "+L.GeometryUtil.readableDistance(radius,!0,this.options.feet,this.options.nautic)}),this._shape.setRadius(radius),this._map.fire(L.Draw.Event.EDITRESIZE,{layer:this._shape})}}),L.Circle.addInitHook(function(){L.Edit.Circle&&(this.editing=new L.Edit.Circle(this),this.options.editable&&this.editing.enable())}),L.Map.mergeOptions({touchExtend:!0}),L.Map.TouchExtend=L.Handler.extend({initialize:function(i){this._map=i,this._container=i._container,this._pane=i._panes.overlayPane},addHooks:function(){L.DomEvent.on(this._container,"touchstart",this._onTouchStart,this),L.DomEvent.on(this._container,"touchend",this._onTouchEnd,this),L.DomEvent.on(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(L.DomEvent.on(this._container,"MSPointerDown",this._onTouchStart,this),L.DomEvent.on(this._container,"MSPointerUp",this._onTouchEnd,this),L.DomEvent.on(this._container,"MSPointerMove",this._onTouchMove,this),L.DomEvent.on(this._container,"MSPointerCancel",this._onTouchCancel,this)):(L.DomEvent.on(this._container,"touchcancel",this._onTouchCancel,this),L.DomEvent.on(this._container,"touchleave",this._onTouchLeave,this))},removeHooks:function(){L.DomEvent.off(this._container,"touchstart",this._onTouchStart,this),L.DomEvent.off(this._container,"touchend",this._onTouchEnd,this),L.DomEvent.off(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(L.DomEvent.off(this._container,"MSPointerDown",this._onTouchStart,this),L.DomEvent.off(this._container,"MSPointerUp",this._onTouchEnd,this),L.DomEvent.off(this._container,"MSPointerMove",this._onTouchMove,this),L.DomEvent.off(this._container,"MSPointerCancel",this._onTouchCancel,this)):(L.DomEvent.off(this._container,"touchcancel",this._onTouchCancel,this),L.DomEvent.off(this._container,"touchleave",this._onTouchLeave,this))},_touchEvent:function(i,S){var x={};if(void 0!==i.touches){if(!i.touches.length)return;x=i.touches[0]}else if("touch"!==i.pointerType||(x=i,!this._filterClick(i)))return;var B=this._map.mouseEventToContainerPoint(x),H=this._map.mouseEventToLayerPoint(x),W=this._map.layerPointToLatLng(H);this._map.fire(S,{latlng:W,layerPoint:H,containerPoint:B,pageX:x.pageX,pageY:x.pageY,originalEvent:i})},_filterClick:function(i){var S=i.timeStamp||i.originalEvent.timeStamp,x=L.DomEvent._lastClick&&S-L.DomEvent._lastClick;return x&&x>100&&x<500||i.target._simulatedClick&&!i._simulated?(L.DomEvent.stop(i),!1):(L.DomEvent._lastClick=S,!0)},_onTouchStart:function(i){this._map._loaded&&this._touchEvent(i,"touchstart")},_onTouchEnd:function(i){this._map._loaded&&this._touchEvent(i,"touchend")},_onTouchCancel:function(i){if(this._map._loaded){var S="touchcancel";this._detectIE()&&(S="pointercancel"),this._touchEvent(i,S)}},_onTouchLeave:function(i){this._map._loaded&&this._touchEvent(i,"touchleave")},_onTouchMove:function(i){this._map._loaded&&this._touchEvent(i,"touchmove")},_detectIE:function(){var i=Je.navigator.userAgent,S=i.indexOf("MSIE ");if(S>0)return parseInt(i.substring(S+5,i.indexOf(".",S)),10);if(i.indexOf("Trident/")>0){var x=i.indexOf("rv:");return parseInt(i.substring(x+3,i.indexOf(".",x)),10)}var B=i.indexOf("Edge/");return B>0&&parseInt(i.substring(B+5,i.indexOf(".",B)),10)}}),L.Map.addInitHook("addHandler","touchExtend",L.Map.TouchExtend),L.Marker.Touch=L.Marker.extend({_initInteraction:function(){return this.addInteractiveTarget?L.Marker.prototype._initInteraction.apply(this):this._initInteractionLegacy()},_initInteractionLegacy:function(){if(this.options.clickable){var i=this._icon,S=["dblclick","mousedown","mouseover","mouseout","contextmenu","touchstart","touchend","touchmove"];S.concat(this._detectIE?["MSPointerDown","MSPointerUp","MSPointerMove","MSPointerCancel"]:["touchcancel"]),L.DomUtil.addClass(i,"leaflet-clickable"),L.DomEvent.on(i,"click",this._onMouseClick,this),L.DomEvent.on(i,"keypress",this._onKeyPress,this);for(var x=0;x0)return parseInt(i.substring(S+5,i.indexOf(".",S)),10);if(i.indexOf("Trident/")>0){var x=i.indexOf("rv:");return parseInt(i.substring(x+3,i.indexOf(".",x)),10)}var B=i.indexOf("Edge/");return B>0&&parseInt(i.substring(B+5,i.indexOf(".",B)),10)}}),L.LatLngUtil={cloneLatLngs:function(i){for(var S=[],x=0,B=i.length;x2){for(var q=0;q1&&(B=B+q+U[1])}return B},readableArea:function(S,x,Q){var H,W;return Q=L.Util.extend({},i,Q),x?(W=["ha","m"],type=typeof x,"string"===type?W=[x]:"boolean"!==type&&(W=x),H=S>=1e6&&-1!==W.indexOf("km")?L.GeometryUtil.formattedNumber(1e-6*S,Q.km)+" km\xb2":S>=1e4&&-1!==W.indexOf("ha")?L.GeometryUtil.formattedNumber(1e-4*S,Q.ha)+" ha":L.GeometryUtil.formattedNumber(S,Q.m)+" m\xb2"):H=(S/=.836127)>=3097600?L.GeometryUtil.formattedNumber(S/3097600,Q.mi)+" mi\xb2":S>=4840?L.GeometryUtil.formattedNumber(S/4840,Q.ac)+" acres":L.GeometryUtil.formattedNumber(S,Q.yd)+" yd\xb2",H},readableDistance:function(S,x,B,H,q){var Q;switch(q=L.Util.extend({},i,q),x?"string"==typeof x?x:"metric":B?"feet":H?"nauticalMile":"yards"){case"metric":Q=S>1e3?L.GeometryUtil.formattedNumber(S/1e3,q.km)+" km":L.GeometryUtil.formattedNumber(S,q.m)+" m";break;case"feet":S*=3.28083,Q=L.GeometryUtil.formattedNumber(S,q.ft)+" ft";break;case"nauticalMile":S*=.53996,Q=L.GeometryUtil.formattedNumber(S/1e3,q.nm)+" nm";break;default:Q=(S*=1.09361)>1760?L.GeometryUtil.formattedNumber(S/1760,q.mi)+" miles":L.GeometryUtil.formattedNumber(S,q.yd)+" yd"}return Q},isVersion07x:function(){var S=L.version.split(".");return 0===parseInt(S[0],10)&&7===parseInt(S[1],10)}}),L.Util.extend(L.LineUtil,{segmentsIntersect:function(i,S,x,B){return this._checkCounterclockwise(i,x,B)!==this._checkCounterclockwise(S,x,B)&&this._checkCounterclockwise(i,S,x)!==this._checkCounterclockwise(i,S,B)},_checkCounterclockwise:function(i,S,x){return(x.y-i.y)*(S.x-i.x)>(S.y-i.y)*(x.x-i.x)}}),L.Polyline.include({intersects:function(){var i,B=this._getProjectedPoints(),H=B?B.length:0;if(this._tooFewPointsForIntersection())return!1;for(i=H-1;i>=3;i--)if(this._lineSegmentsIntersectsRange(B[i-1],B[i],i-2))return!0;return!1},newLatLngIntersects:function(i,S){return!!this._map&&this.newPointIntersects(this._map.latLngToLayerPoint(i),S)},newPointIntersects:function(i,S){var x=this._getProjectedPoints(),B=x?x.length:0,H=x?x[B-1]:null,W=B-2;return!this._tooFewPointsForIntersection(1)&&this._lineSegmentsIntersectsRange(H,i,W,S?1:0)},_tooFewPointsForIntersection:function(i){var S=this._getProjectedPoints(),x=S?S.length:0;return!S||(x+=i||0)<=3},_lineSegmentsIntersectsRange:function(i,S,x,B){var Q=this._getProjectedPoints();B=B||0;for(var q=x;q>B;q--)if(L.LineUtil.segmentsIntersect(i,S,Q[q-1],Q[q]))return!0;return!1},_getProjectedPoints:function(){if(!this._defaultShape)return this._originalPoints;for(var i=[],S=this._defaultShape(),x=0;x=2?L.Toolbar.include(L.Evented.prototype):L.Toolbar.include(L.Mixin.Events)},enabled:function(){return null!==this._activeMode},disable:function(){this.enabled()&&this._activeMode.handler.disable()},addToolbar:function(i){var S,x=L.DomUtil.create("div","leaflet-draw-section"),B=0,H=this._toolbarClass||"",W=this.getModeHandlers(i);for(this._toolbarContainer=L.DomUtil.create("div","leaflet-draw-toolbar leaflet-bar"),this._map=i,S=0;S0&&this._singleLineLabel&&(L.DomUtil.removeClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!1):(L.DomUtil.addClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!0),this._container.innerHTML=(i.subtext.length>0?''+i.subtext+"
    ":"")+""+i.text+"",i.text||i.subtext?(this._visible=!0,this._container.style.visibility="inherit"):(this._visible=!1,this._container.style.visibility="hidden"),this):this},updatePosition:function(i){var S=this._map.latLngToLayerPoint(i),x=this._container;return this._container&&(this._visible&&(x.style.visibility="inherit"),L.DomUtil.setPosition(x,S)),this},showAsError:function(){return this._container&&L.DomUtil.addClass(this._container,"leaflet-error-draw-tooltip"),this},removeError:function(){return this._container&&L.DomUtil.removeClass(this._container,"leaflet-error-draw-tooltip"),this},_onMouseOut:function(){this._container&&(this._container.style.visibility="hidden")}}),L.DrawToolbar=L.Toolbar.extend({statics:{TYPE:"draw"},options:{polyline:{},polygon:{},rectangle:{},circle:{},marker:{},circlemarker:{}},initialize:function(i){for(var S in this.options)this.options.hasOwnProperty(S)&&i[S]&&(i[S]=L.extend({},this.options[S],i[S]));this._toolbarClass="leaflet-draw-draw",L.Toolbar.prototype.initialize.call(this,i)},getModeHandlers:function(i){return[{enabled:this.options.polyline,handler:new L.Draw.Polyline(i,this.options.polyline),title:L.drawLocal.draw.toolbar.buttons.polyline},{enabled:this.options.polygon,handler:new L.Draw.Polygon(i,this.options.polygon),title:L.drawLocal.draw.toolbar.buttons.polygon},{enabled:this.options.rectangle,handler:new L.Draw.Rectangle(i,this.options.rectangle),title:L.drawLocal.draw.toolbar.buttons.rectangle},{enabled:this.options.circle,handler:new L.Draw.Circle(i,this.options.circle),title:L.drawLocal.draw.toolbar.buttons.circle},{enabled:this.options.marker,handler:new L.Draw.Marker(i,this.options.marker),title:L.drawLocal.draw.toolbar.buttons.marker},{enabled:this.options.circlemarker,handler:new L.Draw.CircleMarker(i,this.options.circlemarker),title:L.drawLocal.draw.toolbar.buttons.circlemarker}]},getActions:function(i){return[{enabled:i.completeShape,title:L.drawLocal.draw.toolbar.finish.title,text:L.drawLocal.draw.toolbar.finish.text,callback:i.completeShape,context:i},{enabled:i.deleteLastVertex,title:L.drawLocal.draw.toolbar.undo.title,text:L.drawLocal.draw.toolbar.undo.text,callback:i.deleteLastVertex,context:i},{title:L.drawLocal.draw.toolbar.actions.title,text:L.drawLocal.draw.toolbar.actions.text,callback:this.disable,context:this}]},setOptions:function(i){for(var S in L.setOptions(this,i),this._modes)this._modes.hasOwnProperty(S)&&i.hasOwnProperty(S)&&this._modes[S].handler.setOptions(i[S])}}),L.EditToolbar=L.Toolbar.extend({statics:{TYPE:"edit"},options:{edit:{selectedPathOptions:{dashArray:"10, 10",fill:!0,fillColor:"#fe57a1",fillOpacity:.1,maintainColor:!1}},remove:{},poly:null,featureGroup:null},initialize:function(i){i.edit&&(void 0===i.edit.selectedPathOptions&&(i.edit.selectedPathOptions=this.options.edit.selectedPathOptions),i.edit.selectedPathOptions=L.extend({},this.options.edit.selectedPathOptions,i.edit.selectedPathOptions)),i.remove&&(i.remove=L.extend({},this.options.remove,i.remove)),i.poly&&(i.poly=L.extend({},this.options.poly,i.poly)),this._toolbarClass="leaflet-draw-edit",L.Toolbar.prototype.initialize.call(this,i),this._selectedFeatureCount=0},getModeHandlers:function(i){var S=this.options.featureGroup;return[{enabled:this.options.edit,handler:new L.EditToolbar.Edit(i,{featureGroup:S,selectedPathOptions:this.options.edit.selectedPathOptions,poly:this.options.poly}),title:L.drawLocal.edit.toolbar.buttons.edit},{enabled:this.options.remove,handler:new L.EditToolbar.Delete(i,{featureGroup:S}),title:L.drawLocal.edit.toolbar.buttons.remove}]},getActions:function(i){var S=[{title:L.drawLocal.edit.toolbar.actions.save.title,text:L.drawLocal.edit.toolbar.actions.save.text,callback:this._save,context:this},{title:L.drawLocal.edit.toolbar.actions.cancel.title,text:L.drawLocal.edit.toolbar.actions.cancel.text,callback:this.disable,context:this}];return i.removeAllLayers&&S.push({title:L.drawLocal.edit.toolbar.actions.clearAll.title,text:L.drawLocal.edit.toolbar.actions.clearAll.text,callback:this._clearAllLayers,context:this}),S},addToolbar:function(i){var S=L.Toolbar.prototype.addToolbar.call(this,i);return this._checkDisabled(),this.options.featureGroup.on("layeradd layerremove",this._checkDisabled,this),S},removeToolbar:function(){this.options.featureGroup.off("layeradd layerremove",this._checkDisabled,this),L.Toolbar.prototype.removeToolbar.call(this)},disable:function(){this.enabled()&&(this._activeMode.handler.revertLayers(),L.Toolbar.prototype.disable.call(this))},_save:function(){this._activeMode.handler.save(),this._activeMode&&this._activeMode.handler.disable()},_clearAllLayers:function(){this._activeMode.handler.removeAllLayers(),this._activeMode&&this._activeMode.handler.disable()},_checkDisabled:function(){var i,x=0!==this.options.featureGroup.getLayers().length;this.options.edit&&(i=this._modes[L.EditToolbar.Edit.TYPE].button,x?L.DomUtil.removeClass(i,"leaflet-disabled"):L.DomUtil.addClass(i,"leaflet-disabled"),i.setAttribute("title",x?L.drawLocal.edit.toolbar.buttons.edit:L.drawLocal.edit.toolbar.buttons.editDisabled)),this.options.remove&&(i=this._modes[L.EditToolbar.Delete.TYPE].button,x?L.DomUtil.removeClass(i,"leaflet-disabled"):L.DomUtil.addClass(i,"leaflet-disabled"),i.setAttribute("title",x?L.drawLocal.edit.toolbar.buttons.remove:L.drawLocal.edit.toolbar.buttons.removeDisabled))}}),L.EditToolbar.Edit=L.Handler.extend({statics:{TYPE:"edit"},initialize:function(i,S){if(L.Handler.prototype.initialize.call(this,i),L.setOptions(this,S),this._featureGroup=S.featureGroup,!(this._featureGroup instanceof L.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this._uneditedLayerProps={},this.type=L.EditToolbar.Edit.TYPE;var x=L.version.split(".");1===parseInt(x[0],10)&&parseInt(x[1],10)>=2?L.EditToolbar.Edit.include(L.Evented.prototype):L.EditToolbar.Edit.include(L.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.EDITSTART,{handler:this.type}),L.Handler.prototype.enable.call(this),this._featureGroup.on("layeradd",this._enableLayerEdit,this).on("layerremove",this._disableLayerEdit,this))},disable:function(){this._enabled&&(this._featureGroup.off("layeradd",this._enableLayerEdit,this).off("layerremove",this._disableLayerEdit,this),L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.EDITSTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var i=this._map;i&&(i.getContainer().focus(),this._featureGroup.eachLayer(this._enableLayerEdit,this),this._tooltip=new L.Draw.Tooltip(this._map),this._tooltip.updateContent({text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext}),i._editTooltip=this._tooltip,this._updateTooltip(),this._map.on("mousemove",this._onMouseMove,this).on("touchmove",this._onMouseMove,this).on("MSPointerMove",this._onMouseMove,this).on(L.Draw.Event.EDITVERTEX,this._updateTooltip,this))},removeHooks:function(){this._map&&(this._featureGroup.eachLayer(this._disableLayerEdit,this),this._uneditedLayerProps={},this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this).off("touchmove",this._onMouseMove,this).off("MSPointerMove",this._onMouseMove,this).off(L.Draw.Event.EDITVERTEX,this._updateTooltip,this))},revertLayers:function(){this._featureGroup.eachLayer(function(i){this._revertLayer(i)},this)},save:function(){var i=new L.LayerGroup;this._featureGroup.eachLayer(function(S){S.edited&&(i.addLayer(S),S.edited=!1)}),this._map.fire(L.Draw.Event.EDITED,{layers:i})},_backupLayer:function(i){var S=L.Util.stamp(i);this._uneditedLayerProps[S]||(i instanceof L.Polyline||i instanceof L.Polygon||i instanceof L.Rectangle?this._uneditedLayerProps[S]={latlngs:L.LatLngUtil.cloneLatLngs(i.getLatLngs())}:i instanceof L.Circle?this._uneditedLayerProps[S]={latlng:L.LatLngUtil.cloneLatLng(i.getLatLng()),radius:i.getRadius()}:(i instanceof L.Marker||i instanceof L.CircleMarker)&&(this._uneditedLayerProps[S]={latlng:L.LatLngUtil.cloneLatLng(i.getLatLng())}))},_getTooltipText:function(){return{text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext}},_updateTooltip:function(){this._tooltip.updateContent(this._getTooltipText())},_revertLayer:function(i){var S=L.Util.stamp(i);i.edited=!1,this._uneditedLayerProps.hasOwnProperty(S)&&(i instanceof L.Polyline||i instanceof L.Polygon||i instanceof L.Rectangle?i.setLatLngs(this._uneditedLayerProps[S].latlngs):i instanceof L.Circle?(i.setLatLng(this._uneditedLayerProps[S].latlng),i.setRadius(this._uneditedLayerProps[S].radius)):(i instanceof L.Marker||i instanceof L.CircleMarker)&&i.setLatLng(this._uneditedLayerProps[S].latlng),i.fire("revert-edited",{layer:i}))},_enableLayerEdit:function(i){var S,x,B=i.layer||i.target||i;this._backupLayer(B),this.options.poly&&(x=L.Util.extend({},this.options.poly),B.options.poly=x),this.options.selectedPathOptions&&((S=L.Util.extend({},this.options.selectedPathOptions)).maintainColor&&(S.color=B.options.color,S.fillColor=B.options.fillColor),B.options.original=L.extend({},B.options),B.options.editing=S),B instanceof L.Marker?(B.editing&&B.editing.enable(),B.dragging.enable(),B.on("dragend",this._onMarkerDragEnd).on("touchmove",this._onTouchMove,this).on("MSPointerMove",this._onTouchMove,this).on("touchend",this._onMarkerDragEnd,this).on("MSPointerUp",this._onMarkerDragEnd,this)):B.editing.enable()},_disableLayerEdit:function(i){var S=i.layer||i.target||i;S.edited=!1,S.editing&&S.editing.disable(),delete S.options.editing,delete S.options.original,this._selectedPathOptions&&(S instanceof L.Marker?this._toggleMarkerHighlight(S):(S.setStyle(S.options.previousOptions),delete S.options.previousOptions)),S instanceof L.Marker?(S.dragging.disable(),S.off("dragend",this._onMarkerDragEnd,this).off("touchmove",this._onTouchMove,this).off("MSPointerMove",this._onTouchMove,this).off("touchend",this._onMarkerDragEnd,this).off("MSPointerUp",this._onMarkerDragEnd,this)):S.editing.disable()},_onMouseMove:function(i){this._tooltip.updatePosition(i.latlng)},_onMarkerDragEnd:function(i){var S=i.target;S.edited=!0,this._map.fire(L.Draw.Event.EDITMOVE,{layer:S})},_onTouchMove:function(i){var x=this._map.mouseEventToLayerPoint(i.originalEvent.changedTouches[0]),B=this._map.layerPointToLatLng(x);i.target.setLatLng(B)},_hasAvailableLayers:function(){return 0!==this._featureGroup.getLayers().length}}),L.EditToolbar.Delete=L.Handler.extend({statics:{TYPE:"remove"},initialize:function(i,S){if(L.Handler.prototype.initialize.call(this,i),L.Util.setOptions(this,S),this._deletableLayers=this.options.featureGroup,!(this._deletableLayers instanceof L.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this.type=L.EditToolbar.Delete.TYPE;var x=L.version.split(".");1===parseInt(x[0],10)&&parseInt(x[1],10)>=2?L.EditToolbar.Delete.include(L.Evented.prototype):L.EditToolbar.Delete.include(L.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.DELETESTART,{handler:this.type}),L.Handler.prototype.enable.call(this),this._deletableLayers.on("layeradd",this._enableLayerDelete,this).on("layerremove",this._disableLayerDelete,this))},disable:function(){this._enabled&&(this._deletableLayers.off("layeradd",this._enableLayerDelete,this).off("layerremove",this._disableLayerDelete,this),L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.DELETESTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var i=this._map;i&&(i.getContainer().focus(),this._deletableLayers.eachLayer(this._enableLayerDelete,this),this._deletedLayers=new L.LayerGroup,this._tooltip=new L.Draw.Tooltip(this._map),this._tooltip.updateContent({text:L.drawLocal.edit.handlers.remove.tooltip.text}),this._map.on("mousemove",this._onMouseMove,this))},removeHooks:function(){this._map&&(this._deletableLayers.eachLayer(this._disableLayerDelete,this),this._deletedLayers=null,this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this))},revertLayers:function(){this._deletedLayers.eachLayer(function(i){this._deletableLayers.addLayer(i),i.fire("revert-deleted",{layer:i})},this)},save:function(){this._map.fire(L.Draw.Event.DELETED,{layers:this._deletedLayers})},removeAllLayers:function(){this._deletableLayers.eachLayer(function(i){this._removeLayer({layer:i})},this),this.save()},_enableLayerDelete:function(i){(i.layer||i.target||i).on("click",this._removeLayer,this)},_disableLayerDelete:function(i){var S=i.layer||i.target||i;S.off("click",this._removeLayer,this),this._deletedLayers.removeLayer(S)},_removeLayer:function(i){var S=i.layer||i.target||i;this._deletableLayers.removeLayer(S),this._deletedLayers.addLayer(S),S.fire("deleted")},_onMouseMove:function(i){this._tooltip.updatePosition(i.latlng)},_hasAvailableLayers:function(){return 0!==this._deletableLayers.getLayers().length}})},407:function(Je,he){!function(R){"use strict";function i(u){var p,g,C,D;for(g=1,C=arguments.length;g"u")&&L&&L.Mixin){u=te(u)?u:[u];for(var p=0;p0?Math.floor(u):Math.ceil(u)};function Pe(u,p,g){return u instanceof ce?u:te(u)?new ce(u[0],u[1]):null==u?u:"object"==typeof u&&"x"in u&&"y"in u?new ce(u.x,u.y):new ce(u,p,g)}function kt(u,p){if(u)for(var g=p?[u,p]:u,C=0,D=g.length;C=this.min.x&&g.x<=this.max.x&&p.y>=this.min.y&&g.y<=this.max.y},intersects:function(u){u=Kn(u);var p=this.min,g=this.max,C=u.min,D=u.max;return D.x>=p.x&&C.x<=g.x&&D.y>=p.y&&C.y<=g.y},overlaps:function(u){u=Kn(u);var p=this.min,g=this.max,C=u.min,D=u.max;return D.x>p.x&&C.xp.y&&C.y=p.lat&&D.lat<=g.lat&&C.lng>=p.lng&&D.lng<=g.lng},intersects:function(u){u=hn(u);var p=this._southWest,g=this._northEast,C=u.getSouthWest(),D=u.getNorthEast();return D.lat>=p.lat&&C.lat<=g.lat&&D.lng>=p.lng&&C.lng<=g.lng},overlaps:function(u){u=hn(u);var p=this._southWest,g=this._northEast,C=u.getSouthWest(),D=u.getNorthEast();return D.lat>p.lat&&C.latp.lng&&C.lng1,Ft=function(){var u=!1;try{var p=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("testPassiveEventSupport",q,p),window.removeEventListener("testPassiveEventSupport",q,p)}catch{}return u}(),Oo=!!document.createElement("canvas").getContext,ko=!(!document.createElementNS||!Vc("svg").createSVGRect),ys=!!ko&&function(){var u=document.createElement("div");return u.innerHTML="","http://www.w3.org/2000/svg"===(u.firstChild&&u.firstChild.namespaceURI)}(),Ca=!ko&&function(){try{var u=document.createElement("div");u.innerHTML='';var p=u.firstChild;return p.style.behavior="url(#default#VML)",p&&"object"==typeof p.adj}catch{return!1}}();function Ui(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var Se={ie:ga,ielt9:jc,edge:fp,webkit:Hn,android:_s,android23:Ao,androidStock:Hc,opera:ql,chrome:Me,gecko:va,safari:nn,phantom:Ee,opera12:Ze,win:ov,ie3d:Lt,webkit3d:ji,gecko3d:ya,any3d:Hi,mobile:hi,mobileWebkit:Rt,mobileWebkit3d:ba,msPointer:bt,pointer:Uc,touch:zc,touchNative:vs,mobileOpera:Or,mobileGecko:Qr,retina:$c,passiveEvents:Ft,canvas:Oo,svg:ko,vml:Ca,inlineSvg:ys,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},fi=Se.msPointer?"MSPointerDown":"pointerdown",Xn=Se.msPointer?"MSPointerMove":"pointermove",Si=Se.msPointer?"MSPointerUp":"pointerup",ei=Se.msPointer?"MSPointerCancel":"pointercancel",nt={touchstart:fi,touchmove:Xn,touchend:Si,touchcancel:ei},Ro={touchstart:function gp(u,p){p.MSPOINTER_TYPE_TOUCH&&p.pointerType===p.MSPOINTER_TYPE_TOUCH&&Nt(p),Fo(u,p)},touchmove:Fo,touchend:Fo,touchcancel:Fo},or={},Kr=!1;function wa(u,p,g){return"touchstart"===p&&function Gc(){Kr||(document.addEventListener(fi,kr,!0),document.addEventListener(Xn,mp,!0),document.addEventListener(Si,Yl,!0),document.addEventListener(ei,Yl,!0),Kr=!0)}(),Ro[p]?(g=Ro[p].bind(this,g),u.addEventListener(nt[p],g,!1),g):(console.warn("wrong event specified:",p),q)}function kr(u){or[u.pointerId]=u}function mp(u){or[u.pointerId]&&(or[u.pointerId]=u)}function Yl(u){delete or[u.pointerId]}function Fo(u,p){if(p.pointerType!==(p.MSPOINTER_TYPE_MOUSE||"mouse")){for(var g in p.touches=[],or)p.touches.push(or[g]);p.changedTouches=[p],u(p)}}var Wc=200;var No,$i,Sa,rn,_i,Cs=Dt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),at=Dt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Dn="webkitTransition"===at||"OTransition"===at?at+"End":"transitionend";function An(u){return"string"==typeof u?document.getElementById(u):u}function pi(u,p){var g=u.style[p]||u.currentStyle&&u.currentStyle[p];if((!g||"auto"===g)&&document.defaultView){var C=document.defaultView.getComputedStyle(u,null);g=C?C[p]:null}return"auto"===g?null:g}function Ue(u,p,g){var C=document.createElement(u);return C.className=p||"",g&&g.appendChild(C),C}function ze(u){var p=u.parentNode;p&&p.removeChild(u)}function ws(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function zi(u){var p=u.parentNode;p&&p.lastChild!==u&&p.appendChild(u)}function On(u){var p=u.parentNode;p&&p.firstChild!==u&&p.insertBefore(u,p.firstChild)}function ge(u,p){if(void 0!==u.classList)return u.classList.contains(p);var g=Re(u);return g.length>0&&new RegExp("(^|\\s)"+p+"(\\s|$)").test(g)}function re(u,p){if(void 0!==u.classList)for(var g=J(p),C=0,D=g.length;C0?2*window.devicePixelRatio:1;function Kc(u){return Se.edge?u.wheelDeltaY/2:u.deltaY&&0===u.deltaMode?-u.deltaY/_p:u.deltaY&&1===u.deltaMode?20*-u.deltaY:u.deltaY&&2===u.deltaMode?60*-u.deltaY:u.deltaX||u.deltaZ?0:u.wheelDelta?(u.wheelDeltaY||u.wheelDelta)/2:u.detail&&Math.abs(u.detail)<32765?20*-u.detail:u.detail?u.detail/-32765*60:0}function Jc(u,p){var g=p.relatedTarget;if(!g)return!0;try{for(;g&&g!==u;)g=g.parentNode}catch{return!1}return g!==u}var Xc={__proto__:null,on:Ye,off:ft,stopPropagation:gn,disableScrollPropagation:Ds,disableClickPropagation:ar,preventDefault:Nt,stop:_n,getPropagationPath:Yc,getMousePosition:Qc,getWheelDelta:Kc,isExternalTarget:Jc,addListener:Ye,removeListener:ft},Jl=Et.extend({run:function(u,p,g,C){this.stop(),this._el=u,this._inProgress=!0,this._duration=g||.25,this._easeOutPower=1/Math.max(C||.5,.2),this._startPos=je(u),this._offset=p.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=Ge(this._animate,this),this._step()},_step:function(u){var p=+new Date-this._startTime,g=1e3*this._duration;pthis.options.maxZoom)?this.setZoom(u):this},panInsideBounds:function(u,p){this._enforcingBounds=!0;var g=this.getCenter(),C=this._limitCenter(g,this._zoom,hn(u));return g.equals(C)||this.panTo(C,p),this._enforcingBounds=!1,this},panInside:function(u,p){var g=Pe((p=p||{}).paddingTopLeft||p.padding||[0,0]),C=Pe(p.paddingBottomRight||p.padding||[0,0]),D=this.project(this.getCenter()),P=this.project(u),F=this.getPixelBounds(),G=Kn([F.min.add(g),F.max.subtract(C)]),Z=G.getSize();if(!G.contains(P)){this._enforcingBounds=!0;var ie=P.subtract(G.getCenter()),fe=G.extend(P).getSize().subtract(Z);D.x+=ie.x<0?-fe.x:fe.x,D.y+=ie.y<0?-fe.y:fe.y,this.panTo(this.unproject(D),p),this._enforcingBounds=!1}return this},invalidateSize:function(u){if(!this._loaded)return this;u=i({animate:!1,pan:!0},!0===u?{animate:!0}:u);var p=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var g=this.getSize(),C=p.divideBy(2).round(),D=g.divideBy(2).round(),P=C.subtract(D);return P.x||P.y?(u.animate&&u.pan?this.panBy(P):(u.pan&&this._rawPanBy(P),this.fire("move"),u.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(x(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:p,newSize:g})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(u){if(u=this._locateOptions=i({timeout:1e4,watch:!1},u),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var p=x(this._handleGeolocationResponse,this),g=x(this._handleGeolocationError,this);return u.watch?this._locationWatchId=navigator.geolocation.watchPosition(p,g,u):navigator.geolocation.getCurrentPosition(p,g,u),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(u){if(this._container._leaflet_id){var p=u.code,g=u.message||(1===p?"permission denied":2===p?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:p,message:"Geolocation error: "+g+"."})}},_handleGeolocationResponse:function(u){if(this._container._leaflet_id){var C=new yt(u.coords.latitude,u.coords.longitude),D=C.toBounds(2*u.coords.accuracy),P=this._locateOptions;if(P.setView){var F=this.getBoundsZoom(D);this.setView(C,P.maxZoom?Math.min(F,P.maxZoom):F)}var G={latlng:C,bounds:D,timestamp:u.timestamp};for(var Z in u.coords)"number"==typeof u.coords[Z]&&(G[Z]=u.coords[Z]);this.fire("locationfound",G)}},addHandler:function(u,p){if(!p)return this;var g=this[u]=new p(this);return this._handlers.push(g),this.options[u]&&g.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}var u;for(u in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ze(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Yn(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[u].remove();for(u in this._panes)ze(this._panes[u]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(u,p){var C=Ue("div","leaflet-pane"+(u?" leaflet-"+u.replace("Pane","")+"-pane":""),p||this._mapPane);return u&&(this._panes[u]=C),C},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var u=this.getPixelBounds();return new Jn(this.unproject(u.getBottomLeft()),this.unproject(u.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(u,p,g){u=hn(u),g=Pe(g||[0,0]);var C=this.getZoom()||0,D=this.getMinZoom(),P=this.getMaxZoom(),F=u.getNorthWest(),G=u.getSouthEast(),Z=this.getSize().subtract(g),ie=Kn(this.project(G,C),this.project(F,C)).getSize(),fe=Se.any3d?this.options.zoomSnap:1,Fe=Z.x/ie.x,it=Z.y/ie.y,$n=p?Math.max(Fe,it):Math.min(Fe,it);return C=this.getScaleZoom($n,C),fe&&(C=Math.round(C/(fe/100))*(fe/100),C=p?Math.ceil(C/fe)*fe:Math.floor(C/fe)*fe),Math.max(D,Math.min(P,C))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new ce(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(u,p){var g=this._getTopLeftPoint(u,p);return new kt(g,g.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(u){return this.options.crs.getProjectedBounds(void 0===u?this.getZoom():u)},getPane:function(u){return"string"==typeof u?this._panes[u]:u},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(u,p){var g=this.options.crs;return p=void 0===p?this._zoom:p,g.scale(u)/g.scale(p)},getScaleZoom:function(u,p){var g=this.options.crs,C=g.zoom(u*g.scale(p=void 0===p?this._zoom:p));return isNaN(C)?1/0:C},project:function(u,p){return p=void 0===p?this._zoom:p,this.options.crs.latLngToPoint(xt(u),p)},unproject:function(u,p){return p=void 0===p?this._zoom:p,this.options.crs.pointToLatLng(Pe(u),p)},layerPointToLatLng:function(u){var p=Pe(u).add(this.getPixelOrigin());return this.unproject(p)},latLngToLayerPoint:function(u){return this.project(xt(u))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(u){return this.options.crs.wrapLatLng(xt(u))},wrapLatLngBounds:function(u){return this.options.crs.wrapLatLngBounds(hn(u))},distance:function(u,p){return this.options.crs.distance(xt(u),xt(p))},containerPointToLayerPoint:function(u){return Pe(u).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(u){return Pe(u).add(this._getMapPanePos())},containerPointToLatLng:function(u){var p=this.containerPointToLayerPoint(Pe(u));return this.layerPointToLatLng(p)},latLngToContainerPoint:function(u){return this.layerPointToContainerPoint(this.latLngToLayerPoint(xt(u)))},mouseEventToContainerPoint:function(u){return Qc(u,this._container)},mouseEventToLayerPoint:function(u){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(u))},mouseEventToLatLng:function(u){return this.layerPointToLatLng(this.mouseEventToLayerPoint(u))},_initContainer:function(u){var p=this._container=An(u);if(!p)throw new Error("Map container not found.");if(p._leaflet_id)throw new Error("Map container is already initialized.");Ye(p,"scroll",this._onScroll,this),this._containerId=H(p)},_initLayout:function(){var u=this._container;this._fadeAnimated=this.options.fadeAnimation&&Se.any3d,re(u,"leaflet-container"+(Se.touch?" leaflet-touch":"")+(Se.retina?" leaflet-retina":"")+(Se.ielt9?" leaflet-oldie":"")+(Se.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var p=pi(u,"position");"absolute"!==p&&"relative"!==p&&"fixed"!==p&&"sticky"!==p&&(u.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var u=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),At(this._mapPane,new ce(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(re(u.markerPane,"leaflet-zoom-hide"),re(u.shadowPane,"leaflet-zoom-hide"))},_resetView:function(u,p,g){At(this._mapPane,new ce(0,0));var C=!this._loaded;this._loaded=!0,p=this._limitZoom(p),this.fire("viewprereset");var D=this._zoom!==p;this._moveStart(D,g)._move(u,p)._moveEnd(D),this.fire("viewreset"),C&&this.fire("load")},_moveStart:function(u,p){return u&&this.fire("zoomstart"),p||this.fire("movestart"),this},_move:function(u,p,g,C){void 0===p&&(p=this._zoom);var D=this._zoom!==p;return this._zoom=p,this._lastCenter=u,this._pixelOrigin=this._getNewPixelOrigin(u),C?g&&g.pinch&&this.fire("zoom",g):((D||g&&g.pinch)&&this.fire("zoom",g),this.fire("move",g)),this},_moveEnd:function(u){return u&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Yn(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(u){At(this._mapPane,this._getMapPanePos().subtract(u))},_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(u){this._targets={},this._targets[H(this._container)]=this;var p=u?ft:Ye;p(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&p(window,"resize",this._onResize,this),Se.any3d&&this.options.transform3DLimit&&(u?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Yn(this._resizeRequest),this._resizeRequest=Ge(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var u=this._getMapPanePos();Math.max(Math.abs(u.x),Math.abs(u.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(u,p){for(var C,g=[],D="mouseout"===p||"mouseover"===p,P=u.target||u.srcElement,F=!1;P;){if((C=this._targets[H(P)])&&("click"===p||"preclick"===p)&&this._draggableMoved(C)){F=!0;break}if(C&&C.listens(p,!0)&&(D&&!Jc(P,u)||(g.push(C),D))||P===this._container)break;P=P.parentNode}return!g.length&&!F&&!D&&this.listens(p,!0)&&(g=[this]),g},_isClickDisabled:function(u){for(;u&&u!==this._container;){if(u._leaflet_disable_click)return!0;u=u.parentNode}},_handleDOMEvent:function(u){var p=u.target||u.srcElement;if(!(!this._loaded||p._leaflet_disable_events||"click"===u.type&&this._isClickDisabled(p))){var g=u.type;"mousedown"===g&&Xr(p),this._fireDOMEvent(u,g)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,p,g){if("click"===u.type){var C=i({},u);C.type="preclick",this._fireDOMEvent(C,C.type,g)}var D=this._findEventTargets(u,p);if(g){for(var P=[],F=0;F0?Math.round(u-p)/2:Math.max(0,Math.ceil(u))-Math.max(0,Math.floor(p))},_limitZoom:function(u){var p=this.getMinZoom(),g=this.getMaxZoom(),C=Se.any3d?this.options.zoomSnap:1;return C&&(u=Math.round(u/C)*C),Math.max(p,Math.min(g,u))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){qe(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(u,p){var g=this._getCenterOffset(u)._trunc();return!(!0!==(p&&p.animate)&&!this.getSize().contains(g)||(this.panBy(g,p),0))},_createAnimProxy:function(){var u=this._proxy=Ue("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(u),this.on("zoomanim",function(p){var g=Cs,C=this._proxy.style[g];mi(this._proxy,this.project(p.center,p.zoom),this.getZoomScale(p.zoom,1)),C===this._proxy.style[g]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ze(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var u=this.getCenter(),p=this.getZoom();mi(this._proxy,this.project(u,p),this.getZoomScale(p,1))},_catchTransitionEnd:function(u){this._animatingZoom&&u.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(u,p,g){if(this._animatingZoom)return!0;if(g=g||{},!this._zoomAnimated||!1===g.animate||this._nothingToAnimate()||Math.abs(p-this._zoom)>this.options.zoomAnimationThreshold)return!1;var C=this.getZoomScale(p),D=this._getCenterOffset(u)._divideBy(1-1/C);return!(!0!==g.animate&&!this.getSize().contains(D)||(Ge(function(){this._moveStart(!0,!1)._animateZoom(u,p,!0)},this),0))},_animateZoom:function(u,p,g,C){this._mapPane&&(g&&(this._animatingZoom=!0,this._animateToCenter=u,this._animateToZoom=p,re(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:u,zoom:p,noUpdate:C}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(x(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&qe(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))}});var Ke=gt.extend({options:{position:"topright"},initialize:function(u){Y(this,u)},getPosition:function(){return this.options.position},setPosition:function(u){var p=this._map;return p&&p.removeControl(this),this.options.position=u,p&&p.addControl(this),this},getContainer:function(){return this._container},addTo:function(u){this.remove(),this._map=u;var p=this._container=this.onAdd(u),g=this.getPosition(),C=u._controlCorners[g];return re(p,"leaflet-control"),-1!==g.indexOf("bottom")?C.insertBefore(p,C.firstChild):C.appendChild(p),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ze(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(u){this._map&&u&&u.screenX>0&&u.screenY>0&&this._map.getContainer().focus()}}),Ss=function(u){return new Ke(u)};ot.include({addControl:function(u){return u.addTo(this),this},removeControl:function(u){return u.remove(),this},_initControlPos:function(){var u=this._controlCorners={},p="leaflet-",g=this._controlContainer=Ue("div",p+"control-container",this._container);function C(D,P){u[D+P]=Ue("div",p+D+" "+p+P,g)}C("top","left"),C("top","right"),C("bottom","left"),C("bottom","right")},_clearControlPos:function(){for(var u in this._controlCorners)ze(this._controlCorners[u]);ze(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var vp=Ke.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,p,g,C){return g1)?"":"none"),this._separator.style.display=p&&u?"":"none",this},_onLayerChange:function(u){this._handlingClick||this._update();var p=this._getLayer(H(u.target)),g=p.overlay?"add"===u.type?"overlayadd":"overlayremove":"add"===u.type?"baselayerchange":null;g&&this._map.fire(g,p)},_createRadioElement:function(u,p){var g='",C=document.createElement("div");return C.innerHTML=g,C.firstChild},_addItem:function(u){var C,p=document.createElement("label"),g=this._map.hasLayer(u.layer);u.overlay?((C=document.createElement("input")).type="checkbox",C.className="leaflet-control-layers-selector",C.defaultChecked=g):C=this._createRadioElement("leaflet-base-layers_"+H(this),g),this._layerControlInputs.push(C),C.layerId=H(u.layer),Ye(C,"click",this._onInputClick,this);var D=document.createElement("span");D.innerHTML=" "+u.name;var P=document.createElement("span");return p.appendChild(P),P.appendChild(C),P.appendChild(D),(u.overlay?this._overlaysList:this._baseLayersList).appendChild(p),this._checkDisabledLayers(),p},_onInputClick:function(){var p,g,u=this._layerControlInputs,C=[],D=[];this._handlingClick=!0;for(var P=u.length-1;P>=0;P--)g=this._getLayer((p=u[P]).layerId).layer,p.checked?C.push(g):p.checked||D.push(g);for(P=0;P=0;D--)g=this._getLayer((p=u[D]).layerId).layer,p.disabled=void 0!==g.options.minZoom&&Cg.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var u=this._section;Ye(u,"click",Nt),this.expand(),setTimeout(function(){ft(u,"click",Nt)})}}),ed=Ke.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(u){var p="leaflet-control-zoom",g=Ue("div",p+" leaflet-bar"),C=this.options;return this._zoomInButton=this._createButton(C.zoomInText,C.zoomInTitle,p+"-in",g,this._zoomIn),this._zoomOutButton=this._createButton(C.zoomOutText,C.zoomOutTitle,p+"-out",g,this._zoomOut),this._updateDisabled(),u.on("zoomend zoomlevelschange",this._updateDisabled,this),g},onRemove:function(u){u.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(u){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(u.shiftKey?3:1))},_createButton:function(u,p,g,C,D){var P=Ue("a",g,C);return P.innerHTML=u,P.href="#",P.title=p,P.setAttribute("role","button"),P.setAttribute("aria-label",p),ar(P),Ye(P,"click",_n),Ye(P,"click",D,this),Ye(P,"click",this._refocusOnMap,this),P},_updateDisabled:function(){var u=this._map,p="leaflet-disabled";qe(this._zoomInButton,p),qe(this._zoomOutButton,p),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||u._zoom===u.getMinZoom())&&(re(this._zoomOutButton,p),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||u._zoom===u.getMaxZoom())&&(re(this._zoomInButton,p),this._zoomInButton.setAttribute("aria-disabled","true"))}});ot.mergeOptions({zoomControl:!0}),ot.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ed,this.addControl(this.zoomControl))});var av=Ke.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var p="leaflet-control-scale",g=Ue("div",p),C=this.options;return this._addScales(C,p+"-line",g),u.on(C.updateWhenIdle?"moveend":"move",this._update,this),u.whenReady(this._update,this),g},onRemove:function(u){u.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(u,p,g){u.metric&&(this._mScale=Ue("div",p,g)),u.imperial&&(this._iScale=Ue("div",p,g))},_update:function(){var u=this._map,p=u.getSize().y/2,g=u.distance(u.containerPointToLatLng([0,p]),u.containerPointToLatLng([this.options.maxWidth,p]));this._updateScales(g)},_updateScales:function(u){this.options.metric&&u&&this._updateMetric(u),this.options.imperial&&u&&this._updateImperial(u)},_updateMetric:function(u){var p=this._getRoundNum(u);this._updateScale(this._mScale,p<1e3?p+" m":p/1e3+" km",p/u)},_updateImperial:function(u){var g,C,D,p=3.2808399*u;p>5280?(C=this._getRoundNum(g=p/5280),this._updateScale(this._iScale,C+" mi",C/g)):(D=this._getRoundNum(p),this._updateScale(this._iScale,D+" ft",D/p))},_updateScale:function(u,p,g){u.style.width=Math.round(this.options.maxWidth*g)+"px",u.innerHTML=p},_getRoundNum:function(u){var p=Math.pow(10,(Math.floor(u)+"").length-1),g=u/p;return p*(g>=10?10:g>=5?5:g>=3?3:g>=2?2:1)}}),Cp=Ke.extend({options:{position:"bottomright",prefix:''+(Se.inlineSvg?' ':"")+"Leaflet"},initialize:function(u){Y(this,u),this._attributions={}},onAdd:function(u){for(var p in u.attributionControl=this,this._container=Ue("div","leaflet-control-attribution"),ar(this._container),u._layers)u._layers[p].getAttribution&&this.addAttribution(u._layers[p].getAttribution());return this._update(),u.on("layeradd",this._addAttribution,this),this._container},onRemove:function(u){u.off("layeradd",this._addAttribution,this)},_addAttribution:function(u){u.layer.getAttribution&&(this.addAttribution(u.layer.getAttribution()),u.layer.once("remove",function(){this.removeAttribution(u.layer.getAttribution())},this))},setPrefix:function(u){return this.options.prefix=u,this._update(),this},addAttribution:function(u){return u?(this._attributions[u]||(this._attributions[u]=0),this._attributions[u]++,this._update(),this):this},removeAttribution:function(u){return u?(this._attributions[u]&&(this._attributions[u]--,this._update()),this):this},_update:function(){if(this._map){var u=[];for(var p in this._attributions)this._attributions[p]&&u.push(p);var g=[];this.options.prefix&&g.push(this.options.prefix),u.length&&g.push(u.join(", ")),this._container.innerHTML=g.join(' ')}}});ot.mergeOptions({attributionControl:!0}),ot.addInitHook(function(){this.options.attributionControl&&(new Cp).addTo(this)});Ke.Layers=vp,Ke.Zoom=ed,Ke.Scale=av,Ke.Attribution=Cp,Ss.layers=function(u,p,g){return new vp(u,p,g)},Ss.zoom=function(u){return new ed(u)},Ss.scale=function(u){return new av(u)},Ss.attribution=function(u){return new Cp(u)};var lr=gt.extend({initialize:function(u){this._map=u},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});lr.addTo=function(u,p){return u.addHandler(p,this),this};var Ma,Rr={Events:we},Xl=Se.touch?"touchstart mousedown":"mousedown",ur=Et.extend({options:{clickTolerance:3},initialize:function(u,p,g,C){Y(this,C),this._element=u,this._dragStartTarget=p||u,this._preventOutline=g},enable:function(){this._enabled||(Ye(this._dragStartTarget,Xl,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ur._dragging===this&&this.finishDrag(!0),ft(this._dragStartTarget,Xl,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!ge(this._element,"leaflet-zoom-anim"))){if(u.touches&&1!==u.touches.length)return void(ur._dragging===this&&this.finishDrag());if(!(ur._dragging||u.shiftKey||1!==u.which&&1!==u.button&&!u.touches||(ur._dragging=this,this._preventOutline&&Xr(this._element),Qt(),No(),this._moving))){this.fire("down");var p=u.touches?u.touches[0]:u,g=St(this._element);this._startPoint=new ce(p.clientX,p.clientY),this._startPos=je(this._element),this._parentScale=Zc(g);var C="mousedown"===u.type;Ye(document,C?"mousemove":"touchmove",this._onMove,this),Ye(document,C?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(u){if(this._enabled){if(u.touches&&u.touches.length>1)return void(this._moved=!0);var p=u.touches&&1===u.touches.length?u.touches[0]:u,g=new ce(p.clientX,p.clientY)._subtract(this._startPoint);!g.x&&!g.y||Math.abs(g.x)+Math.abs(g.y)p&&(g.push(u[C]),D=C);return DP&&(F=G,P=Z);P>g&&(p[F]=1,Ta(u,p,g,C,F),Ta(u,p,g,F,D))}function Ts(u,p,g,C,D){var G,Z,ie,P=C?Ma:Ti(u,g),F=Ti(p,g);for(Ma=F;;){if(!(P|F))return[u,p];if(P&F)return!1;ie=Ti(Z=kn(u,p,G=P||F,g,D),g),G===P?(u=Z,P=ie):(p=Z,F=ie)}}function kn(u,p,g,C,D){var ie,fe,P=p.x-u.x,F=p.y-u.y,G=C.min,Z=C.max;return 8&g?(ie=u.x+P*(Z.y-u.y)/F,fe=Z.y):4&g?(ie=u.x+P*(G.y-u.y)/F,fe=G.y):2&g?(ie=Z.x,fe=u.y+F*(Z.x-u.x)/P):1&g&&(ie=G.x,fe=u.y+F*(G.x-u.x)/P),new ce(ie,fe,D)}function Ti(u,p){var g=0;return u.xp.max.x&&(g|=2),u.yp.max.y&&(g|=8),g}function td(u,p){var g=p.x-u.x,C=p.y-u.y;return g*g+C*C}function Ut(u,p,g,C){var ie,D=p.x,P=p.y,F=g.x-D,G=g.y-P,Z=F*F+G*G;return Z>0&&((ie=((u.x-D)*F+(u.y-P)*G)/Z)>1?(D=g.x,P=g.y):ie>0&&(D+=F*ie,P+=G*ie)),F=u.x-D,G=u.y-P,C?F*F+G*G:new ce(D,P)}function Mi(u){return!te(u[0])||"object"!=typeof u[0][0]&&typeof u[0][0]<"u"}function Ms(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Mi(u)}function Un(u,p){var g,C,D,P,F,G,Z,ie;if(!u||0===u.length)throw new Error("latlngs not passed");Mi(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var fe=[];for(var Fe in u)fe.push(p.project(xt(u[Fe])));var it=fe.length;for(g=0,C=0;gC){ie=[G.x-(Z=(P-C)/D)*(G.x-F.x),G.y-Z*(G.y-F.y)];break}return p.unproject(Pe(ie))}var Sp={__proto__:null,simplify:eu,pointToSegmentDistance:wp,closestPointOnSegment:function tu(u,p,g){return Ut(u,p,g)},clipSegment:Ts,_getEdgeIntersection:kn,_getBitCode:Ti,_sqClosestPointOnSegment:Ut,isFlat:Mi,_flat:Ms,polylineCenter:Un};function nu(u,p,g){var C,P,F,G,Z,ie,fe,Fe,it,D=[1,4,2,8];for(P=0,fe=u.length;P1e-7;G++)ie=D*Math.sin(F),ie=Math.pow((1-ie)/(1+ie),D/2),F+=Z=Math.PI/2-2*Math.atan(P*ie)-F;return new yt(F*p,u.x*p/g)}},Tp={__proto__:null,LonLat:iu,Mercator:Ho,SphericalMercator:We},to=i({},Vi,{code:"EPSG:3395",projection:Ho,transformation:function(){var u=.5/(Math.PI*Ho.R);return Zl(u,.5,-u,.5)}()}),ru=i({},Vi,{code:"EPSG:4326",projection:iu,transformation:Zl(1/180,1,-1/180,.5)}),ou=i({},di,{projection:iu,transformation:Zl(1,0,-1,0),scale:function(u){return Math.pow(2,u)},zoom:function(u){return Math.log(u)/Math.LN2},distance:function(u,p){var g=p.lng-u.lng,C=p.lat-u.lat;return Math.sqrt(g*g+C*C)},infinite:!0});di.Earth=Vi,di.EPSG3395=to,di.EPSG3857=hp,di.EPSG900913=En,di.EPSG4326=ru,di.Simple=ou;var Te=Et.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(u){return u.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(u){return u&&u.removeLayer(this),this},getPane:function(u){return this._map.getPane(u?this.options[u]||u:this.options.pane)},addInteractiveTarget:function(u){return this._map._targets[H(u)]=this,this},removeInteractiveTarget:function(u){return delete this._map._targets[H(u)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(u){var p=u.target;if(p.hasLayer(this)){if(this._map=p,this._zoomAnimated=p._zoomAnimated,this.getEvents){var g=this.getEvents();p.on(g,this),this.once("remove",function(){p.off(g,this)},this)}this.onAdd(p),this.fire("add"),p.fire("layeradd",{layer:this})}}});ot.include({addLayer:function(u){if(!u._layerAdd)throw new Error("The provided object is not a Layer.");var p=H(u);return this._layers[p]||(this._layers[p]=u,u._mapToAdd=this,u.beforeAdd&&u.beforeAdd(this),this.whenReady(u._layerAdd,u)),this},removeLayer:function(u){var p=H(u);return this._layers[p]?(this._loaded&&u.onRemove(this),delete this._layers[p],this._loaded&&(this.fire("layerremove",{layer:u}),u.fire("remove")),u._map=u._mapToAdd=null,this):this},hasLayer:function(u){return H(u)in this._layers},eachLayer:function(u,p){for(var g in this._layers)u.call(p,this._layers[g]);return this},_addLayers:function(u){for(var p=0,g=(u=u?te(u)?u:[u]:[]).length;pthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()=2&&p[0]instanceof yt&&p[0].equals(p[g-1])&&p.pop(),p},_setLatLngs:function(u){an.prototype._setLatLngs.call(this,u),Mi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Mi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var u=this._renderer._bounds,p=this.options.weight,g=new ce(p,p);if(u=new kt(u.min.subtract(g),u.max.add(g)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(u)){if(this.options.noClip)return void(this._parts=this._rings);for(var P,C=0,D=this._rings.length;Cu.y!=(D=g[G]).y>u.y&&u.x<(D.x-C.x)*(u.y-C.y)/(D.y-C.y)+C.x&&(p=!p);return p||an.prototype._containsPoint.call(this,u,!0)}});var io=cr.extend({initialize:function(u,p){Y(this,p),this._layers={},u&&this.addData(u)},addData:function(u){var g,C,D,p=te(u)?u:u.features;if(p){for(g=0,C=p.length;g0?C:[p.src]}else{te(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(p.style,"objectFit")&&(p.style.objectFit="fill"),p.autoplay=!!this.options.autoplay,p.loop=!!this.options.loop,p.muted=!!this.options.muted,p.playsInline=!!this.options.playsInline;for(var P=0;PD?(p.height=D+"px",re(u,P)):qe(u,P),this._containerWidth=this._container.offsetWidth},_animateZoom:function(u){var p=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center),g=this._getAnchor();At(this._container,p.add(g))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)return void(this._autopanning=!1);var u=this._map,p=parseInt(pi(this._container,"marginBottom"),10)||0,g=this._container.offsetHeight+p,C=this._containerWidth,D=new ce(this._containerLeft,-g-this._containerBottom);D._add(je(this._container));var P=u.layerPointToContainerPoint(D),F=Pe(this.options.autoPanPadding),G=Pe(this.options.autoPanPaddingTopLeft||F),Z=Pe(this.options.autoPanPaddingBottomRight||F),ie=u.getSize(),fe=0,Fe=0;P.x+C+Z.x>ie.x&&(fe=P.x+C-ie.x+Z.x),P.x-fe-G.x<0&&(fe=P.x-G.x),P.y+g+Z.y>ie.y&&(Fe=P.y+g-ie.y+Z.y),P.y-Fe-G.y<0&&(Fe=P.y-G.y),(fe||Fe)&&(this.options.keepInView&&(this._autopanning=!0),u.fire("autopanstart").panBy([fe,Fe]))}},_getAnchor:function(){return Pe(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});ot.mergeOptions({closePopupOnClick:!0}),ot.include({openPopup:function(u,p,g){return this._initOverlay(Aa,u,p,g).openOn(this),this},closePopup:function(u){return(u=arguments.length?u:this._popup)&&u.close(),this}}),Te.include({bindPopup:function(u,p){return this._popup=this._initOverlay(Aa,this._popup,u,p),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(u){return this._popup&&(this instanceof cr||(this._popup._source=this),this._popup._prepareOpen(u||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()},setPopupContent:function(u){return this._popup&&this._popup.setContent(u),this},getPopup:function(){return this._popup},_openPopup:function(u){if(this._popup&&this._map){_n(u);var p=u.layer||u.target;if(this._popup._source===p&&!(p instanceof dr))return void(this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(u.latlng));this._popup._source=p,this.openPopup(u.latlng)}},_movePopup:function(u){this._popup.setLatLng(u.latlng)},_onKeyPress:function(u){13===u.originalEvent.keyCode&&this._openPopup(u)}});var As=xi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){xi.prototype.onAdd.call(this,u),this.setOpacity(this.options.opacity),u.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(u){xi.prototype.onRemove.call(this,u),u.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var u=xi.prototype.getEvents.call(this);return this.options.permanent||(u.preclick=this.close),u},_initLayout:function(){this._contentNode=this._container=Ue("div","leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide")),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+H(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(u){var p,g,C=this._map,D=this._container,P=C.latLngToContainerPoint(C.getCenter()),F=C.layerPointToContainerPoint(u),G=this.options.direction,Z=D.offsetWidth,ie=D.offsetHeight,fe=Pe(this.options.offset),Fe=this._getAnchor();"top"===G?(p=Z/2,g=ie):"bottom"===G?(p=Z/2,g=0):"center"===G?(p=Z/2,g=ie/2):"right"===G?(p=0,g=ie/2):"left"===G?(p=Z,g=ie/2):F.xthis.options.maxZoom||gC&&this._retainParent(D,P,F,C))},_retainChildren:function(u,p,g,C){for(var D=2*u;D<2*u+2;D++)for(var P=2*p;P<2*p+2;P++){var F=new ce(D,P);F.z=g+1;var G=this._tileCoordsToKey(F),Z=this._tiles[G];Z&&Z.active?Z.retain=!0:(Z&&Z.loaded&&(Z.retain=!0),g+1this.options.maxZoom||void 0!==this.options.minZoom&&D1)return void this._setView(u,g);for(var Fe=D.min.y;Fe<=D.max.y;Fe++)for(var it=D.min.x;it<=D.max.x;it++){var $n=new ce(it,Fe);if($n.z=this._tileZoom,this._isValidTile($n)){var Nr=this._tiles[this._tileCoordsToKey($n)];Nr?Nr.current=!0:F.push($n)}}if(F.sort(function(Zi,lo){return Zi.distanceTo(P)-lo.distanceTo(P)}),0!==F.length){this._loading||(this._loading=!0,this.fire("loading"));var ni=document.createDocumentFragment();for(it=0;itg.max.x)||!p.wrapLat&&(u.yg.max.y))return!1}if(!this.options.bounds)return!0;var C=this._tileCoordsToBounds(u);return hn(this.options.bounds).overlaps(C)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var p=this._map,g=this.getTileSize(),C=u.scaleBy(g),D=C.add(g);return[p.unproject(C,u.z),p.unproject(D,u.z)]},_tileCoordsToBounds:function(u){var p=this._tileCoordsToNwSe(u),g=new Jn(p[0],p[1]);return this.options.noWrap||(g=this._map.wrapLatLngBounds(g)),g},_tileCoordsToKey:function(u){return u.x+":"+u.y+":"+u.z},_keyToTileCoords:function(u){var p=u.split(":"),g=new ce(+p[0],+p[1]);return g.z=+p[2],g},_removeTile:function(u){var p=this._tiles[u];p&&(ze(p.el),delete this._tiles[u],this.fire("tileunload",{tile:p.el,coords:this._keyToTileCoords(u)}))},_initTile:function(u){re(u,"leaflet-tile");var p=this.getTileSize();u.style.width=p.x+"px",u.style.height=p.y+"px",u.onselectstart=q,u.onmousemove=q,Se.ielt9&&this.options.opacity<1&&Ct(u,this.options.opacity)},_addTile:function(u,p){var g=this._getTilePos(u),C=this._tileCoordsToKey(u),D=this.createTile(this._wrapCoords(u),x(this._tileReady,this,u));this._initTile(D),this.createTile.length<2&&Ge(x(this._tileReady,this,u,null,D)),At(D,g),this._tiles[C]={el:D,coords:u,current:!0},p.appendChild(D),this.fire("tileloadstart",{tile:D,coords:u})},_tileReady:function(u,p,g){p&&this.fire("tileerror",{error:p,tile:g,coords:u});var C=this._tileCoordsToKey(u);(g=this._tiles[C])&&(g.loaded=+new Date,this._map._fadeAnimated?(Ct(g.el,0),Yn(this._fadeFrame),this._fadeFrame=Ge(this._updateOpacity,this)):(g.active=!0,this._pruneTiles()),p||(re(g.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:g.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Se.ielt9||!this._map._fadeAnimated?Ge(this._pruneTiles,this):setTimeout(x(this._pruneTiles,this),250)))},_getTilePos:function(u){return u.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(u){var p=new ce(this._wrapX?Q(u.x,this._wrapX):u.x,this._wrapY?Q(u.y,this._wrapY):u.y);return p.z=u.z,p},_pxBoundsToTileRange:function(u){var p=this.getTileSize();return new kt(u.min.unscaleBy(p).floor(),u.max.unscaleBy(p).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var u in this._tiles)if(!this._tiles[u].loaded)return!1;return!0}});var wt=ln.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(u,p){this._url=u,(p=Y(this,p)).detectRetina&&Se.retina&&p.maxZoom>0?(p.tileSize=Math.floor(p.tileSize/2),p.zoomReverse?(p.zoomOffset--,p.minZoom=Math.min(p.maxZoom,p.minZoom+1)):(p.zoomOffset++,p.maxZoom=Math.max(p.minZoom,p.maxZoom-1)),p.minZoom=Math.max(0,p.minZoom)):p.zoomReverse?p.minZoom=Math.min(p.maxZoom,p.minZoom):p.maxZoom=Math.max(p.minZoom,p.maxZoom),"string"==typeof p.subdomains&&(p.subdomains=p.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(u,p){return this._url===u&&void 0===p&&(p=!0),this._url=u,p||this.redraw(),this},createTile:function(u,p){var g=document.createElement("img");return Ye(g,"load",x(this._tileOnLoad,this,p,g)),Ye(g,"error",x(this._tileOnError,this,p,g)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(g.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(g.referrerPolicy=this.options.referrerPolicy),g.alt="",g.src=this.getTileUrl(u),g},getTileUrl:function(u){var p={r:Se.retina?"@2x":"",s:this._getSubdomain(u),x:u.x,y:u.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var g=this._globalTileRange.max.y-u.y;this.options.tms&&(p.y=g),p["-y"]=g}return _e(this._url,i(p,this.options))},_tileOnLoad:function(u,p){Se.ielt9?setTimeout(x(u,this,null,p),0):u(null,p)},_tileOnError:function(u,p,g){var C=this.options.errorTileUrl;C&&p.getAttribute("src")!==C&&(p.src=C),u(g,p)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom;return this.options.zoomReverse&&(u=this.options.maxZoom-u),u+this.options.zoomOffset},_getSubdomain:function(u){var p=Math.abs(u.x+u.y)%this.options.subdomains.length;return this.options.subdomains[p]},_abortLoading:function(){var u,p;for(u in this._tiles)if(this._tiles[u].coords.z!==this._tileZoom&&((p=this._tiles[u].el).onload=q,p.onerror=q,!p.complete)){p.src=mt;var g=this._tiles[u].coords;ze(p),delete this._tiles[u],this.fire("tileabort",{tile:p,coords:g})}},_removeTile:function(u){var p=this._tiles[u];if(p)return p.el.setAttribute("src",mt),ln.prototype._removeTile.call(this,u)},_tileReady:function(u,p,g){if(this._map&&(!g||g.getAttribute("src")!==mt))return ln.prototype._tileReady.call(this,u,p,g)}});function ud(u,p){return new wt(u,p)}var cd=wt.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(u,p){this._url=u;var g=i({},this.defaultWmsParams);for(var C in p)C in this.options||(g[C]=p[C]);var D=(p=Y(this,p)).detectRetina&&Se.retina?2:1,P=this.getTileSize();g.width=P.x*D,g.height=P.y*D,this.wmsParams=g},onAdd:function(u){this._crs=this.options.crs||u.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version),this.wmsParams[this._wmsVersion>=1.3?"crs":"srs"]=this._crs.code,wt.prototype.onAdd.call(this,u)},getTileUrl:function(u){var p=this._tileCoordsToNwSe(u),g=this._crs,C=Kn(g.project(p[0]),g.project(p[1])),D=C.min,P=C.max,F=(this._wmsVersion>=1.3&&this._crs===ru?[D.y,D.x,P.y,P.x]:[D.x,D.y,P.x,P.y]).join(","),G=wt.prototype.getTileUrl.call(this,u);return G+me(this.wmsParams,G,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+F},setParams:function(u,p){return i(this.wmsParams,u),p||this.redraw(),this}});wt.WMS=cd,ud.wms=function Lp(u,p){return new cd(u,p)};var Fr=Te.extend({options:{padding:.1},initialize:function(u){Y(this,u),H(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&re(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 u={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(u.zoomanim=this._onAnimZoom),u},_onAnimZoom:function(u){this._updateTransform(u.center,u.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(u,p){var g=this._map.getZoomScale(p,this._zoom),C=this._map.getSize().multiplyBy(.5+this.options.padding),D=this._map.project(this._center,p),P=C.multiplyBy(-g).add(D).subtract(this._map._getNewPixelOrigin(u,p));Se.any3d?mi(this._container,P,g):At(this._container,P)},_reset:function(){for(var u in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[u]._reset()},_onZoomEnd:function(){for(var u in this._layers)this._layers[u]._project()},_updatePaths:function(){for(var u in this._layers)this._layers[u]._update()},_update:function(){var u=this.options.padding,p=this._map.getSize(),g=this._map.containerPointToLayerPoint(p.multiplyBy(-u)).round();this._bounds=new kt(g,g.add(p.multiplyBy(1+2*u)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),dd=Fr.extend({options:{tolerance:0},getEvents:function(){var u=Fr.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Fr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var u=this._container=document.createElement("canvas");Ye(u,"mousemove",this._onMouseMove,this),Ye(u,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ye(u,"mouseout",this._handleMouseOut,this),u._leaflet_disable_events=!0,this._ctx=u.getContext("2d")},_destroyContainer:function(){Yn(this._redrawRequest),delete this._ctx,ze(this._container),ft(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var p in this._redrawBounds=null,this._layers)this._layers[p]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Fr.prototype._update.call(this);var u=this._bounds,p=this._container,g=u.getSize(),C=Se.retina?2:1;At(p,u.min),p.width=C*g.x,p.height=C*g.y,p.style.width=g.x+"px",p.style.height=g.y+"px",Se.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){Fr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(u){this._updateDashArray(u),this._layers[H(u)]=u;var p=u._order={layer:u,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=p),this._drawLast=p,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(u){this._requestRedraw(u)},_removePath:function(u){var p=u._order,g=p.next,C=p.prev;g?g.prev=C:this._drawLast=C,C?C.next=g:this._drawFirst=g,delete u._order,delete this._layers[H(u)],this._requestRedraw(u)},_updatePath:function(u){this._extendRedrawBounds(u),u._project(),u._update(),this._requestRedraw(u)},_updateStyle:function(u){this._updateDashArray(u),this._requestRedraw(u)},_updateDashArray:function(u){if("string"==typeof u.options.dashArray){var C,D,p=u.options.dashArray.split(/[, ]+/),g=[];for(D=0;D')}}catch{}return function(u){return document.createElement("<"+u+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),ka={_initContainer:function(){this._container=Ue("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Fr.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var p=u._container=bi("shape");re(p,"leaflet-vml-shape "+(this.options.className||"")),p.coordsize="1 1",u._path=bi("path"),p.appendChild(u._path),this._updateStyle(u),this._layers[H(u)]=u},_addPath:function(u){var p=u._container;this._container.appendChild(p),u.options.interactive&&u.addInteractiveTarget(p)},_removePath:function(u){var p=u._container;ze(p),u.removeInteractiveTarget(p),delete this._layers[H(u)]},_updateStyle:function(u){var p=u._stroke,g=u._fill,C=u.options,D=u._container;D.stroked=!!C.stroke,D.filled=!!C.fill,C.stroke?(p||(p=u._stroke=bi("stroke")),D.appendChild(p),p.weight=C.weight+"px",p.color=C.color,p.opacity=C.opacity,p.dashStyle=C.dashArray?te(C.dashArray)?C.dashArray.join(" "):C.dashArray.replace(/( *, *)/g," "):"",p.endcap=C.lineCap.replace("butt","flat"),p.joinstyle=C.lineJoin):p&&(D.removeChild(p),u._stroke=null),C.fill?(g||(g=u._fill=bi("fill")),D.appendChild(g),g.color=C.fillColor||C.color,g.opacity=C.fillOpacity):g&&(D.removeChild(g),u._fill=null)},_updateCircle:function(u){var p=u._point.round(),g=Math.round(u._radius),C=Math.round(u._radiusY||g);this._setPath(u,u._empty()?"M0 0":"AL "+p.x+","+p.y+" "+g+","+C+" 0,23592600")},_setPath:function(u,p){u._path.v=p},_bringToFront:function(u){zi(u._container)},_bringToBack:function(u){On(u._container)}},Wi=Se.vml?bi:Vc,so=Fr.extend({_initContainer:function(){this._container=Wi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Wi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ze(this._container),ft(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Fr.prototype._update.call(this);var u=this._bounds,p=u.getSize(),g=this._container;(!this._svgSize||!this._svgSize.equals(p))&&(this._svgSize=p,g.setAttribute("width",p.x),g.setAttribute("height",p.y)),At(g,u.min),g.setAttribute("viewBox",[u.min.x,u.min.y,p.x,p.y].join(" ")),this.fire("update")}},_initPath:function(u){var p=u._path=Wi("path");u.options.className&&re(p,u.options.className),u.options.interactive&&re(p,"leaflet-interactive"),this._updateStyle(u),this._layers[H(u)]=u},_addPath:function(u){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(u._path),u.addInteractiveTarget(u._path)},_removePath:function(u){ze(u._path),u.removeInteractiveTarget(u._path),delete this._layers[H(u)]},_updatePath:function(u){u._project(),u._update()},_updateStyle:function(u){var p=u._path,g=u.options;p&&(g.stroke?(p.setAttribute("stroke",g.color),p.setAttribute("stroke-opacity",g.opacity),p.setAttribute("stroke-width",g.weight),p.setAttribute("stroke-linecap",g.lineCap),p.setAttribute("stroke-linejoin",g.lineJoin),g.dashArray?p.setAttribute("stroke-dasharray",g.dashArray):p.removeAttribute("stroke-dasharray"),g.dashOffset?p.setAttribute("stroke-dashoffset",g.dashOffset):p.removeAttribute("stroke-dashoffset")):p.setAttribute("stroke","none"),g.fill?(p.setAttribute("fill",g.fillColor||g.color),p.setAttribute("fill-opacity",g.fillOpacity),p.setAttribute("fill-rule",g.fillRule||"evenodd")):p.setAttribute("fill","none"))},_updatePoly:function(u,p){this._setPath(u,gs(u._parts,p))},_updateCircle:function(u){var p=u._point,g=Math.max(Math.round(u._radius),1),D="a"+g+","+(Math.max(Math.round(u._radiusY),1)||g)+" 0 1,0 ",P=u._empty()?"M0 0":"M"+(p.x-g)+","+p.y+D+2*g+",0 "+D+2*-g+",0 ";this._setPath(u,P)},_setPath:function(u,p){u._path.setAttribute("d",p)},_bringToFront:function(u){zi(u._path)},_bringToBack:function(u){On(u._path)}});function Ra(u){return Se.svg||Se.vml?new so(u):null}Se.vml&&so.include(ka),ot.include({getRenderer:function(u){var p=u.options.renderer||this._getPaneRenderer(u.options.pane)||this.options.renderer||this._renderer;return p||(p=this._renderer=this._createRenderer()),this.hasLayer(p)||this.addLayer(p),p},_getPaneRenderer:function(u){if("overlayPane"===u||void 0===u)return!1;var p=this._paneRenderers[u];return void 0===p&&(p=this._createRenderer({pane:u}),this._paneRenderers[u]=p),p},_createRenderer:function(u){return this.options.preferCanvas&&Oa(u)||Ra(u)}});var hd=Gi.extend({initialize:function(u,p){Gi.prototype.initialize.call(this,this._boundsToLatLngs(u),p)},setBounds:function(u){return this.setLatLngs(this._boundsToLatLngs(u))},_boundsToLatLngs:function(u){return[(u=hn(u)).getSouthWest(),u.getNorthWest(),u.getNorthEast(),u.getSouthEast()]}});so.create=Wi,so.pointsToPath=gs,io.geometryToLayer=Ia,io.coordsToLatLng=vi,io.coordsToLatLngs=Pa,io.latLngToCoords=ro,io.latLngsToCoords=yi,io.getFeature=oo,io.asFeature=La,ot.mergeOptions({boxZoom:!0});var Go=lr.extend({initialize:function(u){this._map=u,this._container=u._container,this._pane=u._panes.overlayPane,this._resetStateTimeout=0,u.on("unload",this._destroy,this)},addHooks:function(){Ye(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){ft(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ze(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(u){if(!u.shiftKey||1!==u.which&&1!==u.button)return!1;this._clearDeferredResetState(),this._resetState(),No(),Qt(),this._startPoint=this._map.mouseEventToContainerPoint(u),Ye(document,{contextmenu:_n,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(u){this._moved||(this._moved=!0,this._box=Ue("div","leaflet-zoom-box",this._container),re(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(u);var p=new kt(this._point,this._startPoint),g=p.getSize();At(this._box,p.min),this._box.style.width=g.x+"px",this._box.style.height=g.y+"px"},_finish:function(){this._moved&&(ze(this._box),qe(this._container,"leaflet-crosshair")),$i(),Bo(),ft(document,{contextmenu:_n,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(u){if((1===u.which||1===u.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(x(this._resetState,this),0);var p=new Jn(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(p).fire("boxzoomend",{boxZoomBounds:p})}},_onKeyDown:function(u){27===u.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ot.addInitHook("addHandler","boxZoom",Go),ot.mergeOptions({doubleClickZoom:!0});var fd=lr.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(u){var p=this._map,g=p.getZoom(),C=p.options.zoomDelta,D=u.originalEvent.shiftKey?g-C:g+C;"center"===p.options.doubleClickZoom?p.setZoom(D):p.setZoomAround(u.containerPoint,D)}});ot.addInitHook("addHandler","doubleClickZoom",fd),ot.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Fa=lr.extend({addHooks:function(){if(!this._draggable){var u=this._map;this._draggable=new ur(u._mapPane,u._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),u.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),u.on("zoomend",this._onZoomEnd,this),u.whenReady(this._onZoomEnd,this))}re(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){qe(this._map._container,"leaflet-grab"),qe(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 u=this._map;if(u._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var p=hn(this._map.options.maxBounds);this._offsetLimit=Kn(this._map.latLngToContainerPoint(p.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(p.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;u.fire("movestart").fire("dragstart"),u.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(u){if(this._map.options.inertia){var p=this._lastTime=+new Date,g=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(g),this._times.push(p),this._prunePositions(p)}this._map.fire("move",u).fire("drag",u)},_prunePositions:function(u){for(;this._positions.length>1&&u-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var u=this._map.getSize().divideBy(2),p=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=p.subtract(u).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(u,p){return u-(u-p)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var u=this._draggable._newPos.subtract(this._draggable._startPos),p=this._offsetLimit;u.xp.max.x&&(u.x=this._viscousLimit(u.x,p.max.x)),u.y>p.max.y&&(u.y=this._viscousLimit(u.y,p.max.y)),this._draggable._newPos=this._draggable._startPos.add(u)}},_onPreDragWrap:function(){var u=this._worldWidth,p=Math.round(u/2),g=this._initialWorldOffset,C=this._draggable._newPos.x,D=(C-p+g)%u+p-g,P=(C+p+g)%u-p-g,F=Math.abs(D+g)0?P:-P))-p;this._delta=0,this._startTime=null,F&&("center"===u.options.scrollWheelZoom?u.setZoom(p+F):u.setZoomAround(this._lastMousePos,p+F))}});ot.addInitHook("addHandler","scrollWheelZoom",pd);ot.mergeOptions({tapHold:Se.touchNative&&Se.safari&&Se.mobile,tapTolerance:15});var Wo=lr.extend({addHooks:function(){Ye(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){ft(this._map._container,"touchstart",this._onDown,this)},_onDown:function(u){if(clearTimeout(this._holdTimeout),1===u.touches.length){var p=u.touches[0];this._startPos=this._newPos=new ce(p.clientX,p.clientY),this._holdTimeout=setTimeout(x(function(){this._cancel(),this._isTapValid()&&(Ye(document,"touchend",Nt),Ye(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",p))},this),600),Ye(document,"touchend touchcancel contextmenu",this._cancel,this),Ye(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function u(){ft(document,"touchend",Nt),ft(document,"touchend touchcancel",u)},_cancel:function(){clearTimeout(this._holdTimeout),ft(document,"touchend touchcancel contextmenu",this._cancel,this),ft(document,"touchmove",this._onMove,this)},_onMove:function(u){var p=u.touches[0];this._newPos=new ce(p.clientX,p.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(u,p){var g=new MouseEvent(u,{bubbles:!0,cancelable:!0,view:window,screenX:p.screenX,screenY:p.screenY,clientX:p.clientX,clientY:p.clientY});g._simulated=!0,p.target.dispatchEvent(g)}});ot.addInitHook("addHandler","tapHold",Wo),ot.mergeOptions({touchZoom:Se.touch,bounceAtZoomLimits:!0});var uu=lr.extend({addHooks:function(){re(this._map._container,"leaflet-touch-zoom"),Ye(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){qe(this._map._container,"leaflet-touch-zoom"),ft(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(u){var p=this._map;if(u.touches&&2===u.touches.length&&!p._animatingZoom&&!this._zooming){var g=p.mouseEventToContainerPoint(u.touches[0]),C=p.mouseEventToContainerPoint(u.touches[1]);this._centerPoint=p.getSize()._divideBy(2),this._startLatLng=p.containerPointToLatLng(this._centerPoint),"center"!==p.options.touchZoom&&(this._pinchStartLatLng=p.containerPointToLatLng(g.add(C)._divideBy(2))),this._startDist=g.distanceTo(C),this._startZoom=p.getZoom(),this._moved=!1,this._zooming=!0,p._stop(),Ye(document,"touchmove",this._onTouchMove,this),Ye(document,"touchend touchcancel",this._onTouchEnd,this),Nt(u)}},_onTouchMove:function(u){if(u.touches&&2===u.touches.length&&this._zooming){var p=this._map,g=p.mouseEventToContainerPoint(u.touches[0]),C=p.mouseEventToContainerPoint(u.touches[1]),D=g.distanceTo(C)/this._startDist;if(this._zoom=p.getScaleZoom(D,this._startZoom),!p.options.bounceAtZoomLimits&&(this._zoomp.getMaxZoom()&&D>1)&&(this._zoom=p._limitZoom(this._zoom)),"center"===p.options.touchZoom){if(this._center=this._startLatLng,1===D)return}else{var P=g._add(C)._divideBy(2)._subtract(this._centerPoint);if(1===D&&0===P.x&&0===P.y)return;this._center=p.unproject(p.project(this._pinchStartLatLng,this._zoom).subtract(P),this._zoom)}this._moved||(p._moveStart(!0,!1),this._moved=!0),Yn(this._animRequest);var F=x(p._move,p,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Ge(F,this,!0),Nt(u)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,Yn(this._animRequest),ft(document,"touchmove",this._onTouchMove,this),ft(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))):this._zooming=!1}});ot.addInitHook("addHandler","touchZoom",uu),ot.BoxZoom=Go,ot.DoubleClickZoom=fd,ot.Drag=Fa,ot.Keyboard=ao,ot.ScrollWheelZoom=pd,ot.TapHold=Wo,ot.TouchZoom=uu,R.Bounds=kt,R.Browser=Se,R.CRS=di,R.Canvas=dd,R.Circle=su,R.CircleMarker=xa,R.Class=gt,R.Control=Ke,R.DivIcon=Pp,R.DivOverlay=xi,R.DomEvent=Xc,R.DomUtil=Kl,R.Draggable=ur,R.Evented=Et,R.FeatureGroup=cr,R.GeoJSON=io,R.GridLayer=ln,R.Handler=lr,R.Icon=xs,R.ImageOverlay=Ls,R.LatLng=yt,R.LatLngBounds=Jn,R.Layer=Te,R.LayerGroup=no,R.LineUtil=Sp,R.Map=ot,R.Marker=ne,R.Mixin=Rr,R.Path=dr,R.Point=ce,R.PolyUtil=zn,R.Polygon=Gi,R.Polyline=an,R.Popup=Aa,R.PosAnimation=Jl,R.Projection=Tp,R.Rectangle=hd,R.Renderer=Fr,R.SVG=so,R.SVGOverlay=od,R.TileLayer=wt,R.Tooltip=As,R.Transformation=ma,R.Util=Qn,R.VideoOverlay=lu,R.bind=x,R.bounds=Kn,R.canvas=Oa,R.circle=function Uo(u,p,g){return new su(u,p,g)},R.circleMarker=function Sn(u,p){return new xa(u,p)},R.control=Ss,R.divIcon=function cv(u){return new Pp(u)},R.extend=i,R.featureGroup=function(u,p){return new cr(u,p)},R.geoJSON=xp,R.geoJson=rd,R.gridLayer=function zo(u){return new ln(u)},R.icon=function Mp(u){return new xs(u)},R.imageOverlay=function(u,p,g){return new Ls(u,p,g)},R.latLng=xt,R.latLngBounds=hn,R.layerGroup=function(u,p){return new no(u,p)},R.map=function Gw(u,p){return new ot(u,p)},R.marker=function ut(u,p){return new ne(u,p)},R.point=Pe,R.polygon=function Ps(u,p){return new Gi(u,p)},R.polyline=function au(u,p){return new an(u,p)},R.popup=function(u,p){return new Aa(u,p)},R.rectangle=function $o(u,p){return new hd(u,p)},R.setOptions=Y,R.stamp=H,R.svg=Ra,R.svgOverlay=function sd(u,p,g){return new od(u,p,g)},R.tileLayer=ud,R.tooltip=function(u,p){return new As(u,p)},R.transformation=Zl,R.version="1.9.3",R.videoOverlay=function uv(u,p,g){return new lu(u,p,g)};var gd=window.L;R.noConflict=function(){return window.L=gd,this},window.L=R}(he)},498:(Je,he,R)=>{"use strict";R.d(he,{y:()=>q});var ue=R(489),S=R(668),x=R(292),H=R(821),W=R(843),Q=R(735);let q=(()=>{class z{constructor(Y){this._isScalar=!1,Y&&(this._subscribe=Y)}lift(Y){const me=new z;return me.source=this,me.operator=Y,me}subscribe(Y,me,rt){const{operator:_e}=this,te=function B(z,J,Y){if(z){if(z instanceof ue.L)return z;if(z[S.b])return z[S.b]()}return z||J||Y?new ue.L(z,J,Y):new ue.L(x.c)}(Y,me,rt);if(te.add(_e?_e.call(te,this.source):this.source||Q.v.useDeprecatedSynchronousErrorHandling&&!te.syncErrorThrowable?this._subscribe(te):this._trySubscribe(te)),Q.v.useDeprecatedSynchronousErrorHandling&&te.syncErrorThrowable&&(te.syncErrorThrowable=!1,te.syncErrorThrown))throw te.syncErrorValue;return te}_trySubscribe(Y){try{return this._subscribe(Y)}catch(me){Q.v.useDeprecatedSynchronousErrorHandling&&(Y.syncErrorThrown=!0,Y.syncErrorValue=me),function i(z){for(;z;){const{closed:J,destination:Y,isStopped:me}=z;if(J||me)return!1;z=Y&&Y instanceof ue.L?Y:null}return!0}(Y)?Y.error(me):console.warn(me)}}forEach(Y,me){return new(me=U(me))((rt,_e)=>{let te;te=this.subscribe(Ht=>{try{Y(Ht)}catch(mt){_e(mt),te&&te.unsubscribe()}},_e,rt)})}_subscribe(Y){const{source:me}=this;return me&&me.subscribe(Y)}[H.L](){return this}pipe(...Y){return 0===Y.length?this:(0,W.U)(Y)(this)}toPromise(Y){return new(Y=U(Y))((me,rt)=>{let _e;this.subscribe(te=>_e=te,te=>rt(te),()=>me(_e))})}}return z.create=J=>new z(J),z})();function U(z){if(z||(z=Q.v.Promise||Promise),!z)throw new Error("no Promise impl found");return z}},292:(Je,he,R)=>{"use strict";R.d(he,{c:()=>S});var ue=R(735),i=R(782);const S={closed:!0,next(x){},error(x){if(ue.v.useDeprecatedSynchronousErrorHandling)throw x;(0,i.z)(x)},complete(){}}},529:(Je,he,R)=>{"use strict";R.d(he,{xQ:()=>Q,Yc:()=>W});var ue=R(498),i=R(489),S=R(654),x=R(279);class B extends S.w{constructor(z,J){super(),this.subject=z,this.subscriber=J,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const z=this.subject,J=z.observers;if(this.subject=null,!J||0===J.length||z.isStopped||z.closed)return;const Y=J.indexOf(this.subscriber);-1!==Y&&J.splice(Y,1)}}var H=R(668);class W extends i.L{constructor(z){super(z),this.destination=z}}let Q=(()=>{class U extends ue.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[H.b](){return new W(this)}lift(J){const Y=new q(this,this);return Y.operator=J,Y}next(J){if(this.closed)throw new x.N;if(!this.isStopped){const{observers:Y}=this,me=Y.length,rt=Y.slice();for(let _e=0;_enew q(z,J),U})();class q extends Q{constructor(z,J){super(),this.destination=z,this.source=J}next(z){const{destination:J}=this;J&&J.next&&J.next(z)}error(z){const{destination:J}=this;J&&J.error&&this.destination.error(z)}complete(){const{destination:z}=this;z&&z.complete&&this.destination.complete()}_subscribe(z){const{source:J}=this;return J?this.source.subscribe(z):S.w.EMPTY}}},489:(Je,he,R)=>{"use strict";R.d(he,{L:()=>W});var ue=R(43),i=R(292),S=R(654),x=R(668),B=R(735),H=R(782);class W extends S.w{constructor(U,z,J){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.c;break;case 1:if(!U){this.destination=i.c;break}if("object"==typeof U){U instanceof W?(this.syncErrorThrowable=U.syncErrorThrowable,this.destination=U,U.add(this)):(this.syncErrorThrowable=!0,this.destination=new Q(this,U));break}default:this.syncErrorThrowable=!0,this.destination=new Q(this,U,z,J)}}[x.b](){return this}static create(U,z,J){const Y=new W(U,z,J);return Y.syncErrorThrowable=!1,Y}next(U){this.isStopped||this._next(U)}error(U){this.isStopped||(this.isStopped=!0,this._error(U))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(U){this.destination.next(U)}_error(U){this.destination.error(U),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:U}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=U,this}}class Q extends W{constructor(U,z,J,Y){super(),this._parentSubscriber=U;let me,rt=this;(0,ue.m)(z)?me=z:z&&(me=z.next,J=z.error,Y=z.complete,z!==i.c&&(rt=Object.create(z),(0,ue.m)(rt.unsubscribe)&&this.add(rt.unsubscribe.bind(rt)),rt.unsubscribe=this.unsubscribe.bind(this))),this._context=rt,this._next=me,this._error=J,this._complete=Y}next(U){if(!this.isStopped&&this._next){const{_parentSubscriber:z}=this;B.v.useDeprecatedSynchronousErrorHandling&&z.syncErrorThrowable?this.__tryOrSetError(z,this._next,U)&&this.unsubscribe():this.__tryOrUnsub(this._next,U)}}error(U){if(!this.isStopped){const{_parentSubscriber:z}=this,{useDeprecatedSynchronousErrorHandling:J}=B.v;if(this._error)J&&z.syncErrorThrowable?(this.__tryOrSetError(z,this._error,U),this.unsubscribe()):(this.__tryOrUnsub(this._error,U),this.unsubscribe());else if(z.syncErrorThrowable)J?(z.syncErrorValue=U,z.syncErrorThrown=!0):(0,H.z)(U),this.unsubscribe();else{if(this.unsubscribe(),J)throw U;(0,H.z)(U)}}}complete(){if(!this.isStopped){const{_parentSubscriber:U}=this;if(this._complete){const z=()=>this._complete.call(this._context);B.v.useDeprecatedSynchronousErrorHandling&&U.syncErrorThrowable?(this.__tryOrSetError(U,z),this.unsubscribe()):(this.__tryOrUnsub(z),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(U,z){try{U.call(this._context,z)}catch(J){if(this.unsubscribe(),B.v.useDeprecatedSynchronousErrorHandling)throw J;(0,H.z)(J)}}__tryOrSetError(U,z,J){if(!B.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{z.call(this._context,J)}catch(Y){return B.v.useDeprecatedSynchronousErrorHandling?(U.syncErrorValue=Y,U.syncErrorThrown=!0,!0):((0,H.z)(Y),!0)}return!1}_unsubscribe(){const{_parentSubscriber:U}=this;this._context=null,this._parentSubscriber=null,U.unsubscribe()}}},654:(Je,he,R)=>{"use strict";R.d(he,{w:()=>H});var ue=R(688),i=R(830),S=R(43);const B=(()=>{function Q(q){return Error.call(this),this.message=q?`${q.length} errors occurred during unsubscription:\n${q.map((U,z)=>`${z+1}) ${U.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=q,this}return Q.prototype=Object.create(Error.prototype),Q})();class H{constructor(q){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,q&&(this._ctorUnsubscribe=!0,this._unsubscribe=q)}unsubscribe(){let q;if(this.closed)return;let{_parentOrParents:U,_ctorUnsubscribe:z,_unsubscribe:J,_subscriptions:Y}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,U instanceof H)U.remove(this);else if(null!==U)for(let me=0;meq.concat(U instanceof B?U.errors:U),[])}H.EMPTY=((Q=new H).closed=!0,Q)},735:(Je,he,R)=>{"use strict";R.d(he,{v:()=>i});let ue=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(S){if(S){const x=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+x.stack)}else ue&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ue=S},get useDeprecatedSynchronousErrorHandling(){return ue}}},177:(Je,he,R)=>{"use strict";R.d(he,{Ds:()=>H,IY:()=>x,ft:()=>Q});var ue=R(489),i=R(498),S=R(249);class x extends ue.L{constructor(U){super(),this.parent=U}_next(U){this.parent.notifyNext(U)}_error(U){this.parent.notifyError(U),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class H extends ue.L{notifyNext(U){this.destination.next(U)}notifyError(U){this.destination.error(U)}notifyComplete(){this.destination.complete()}}function Q(q,U){if(U.closed)return;if(q instanceof i.y)return q.subscribe(U);let z;try{z=(0,S.s)(q)(U)}catch(J){U.error(J)}return z}},762:(Je,he,R)=>{"use strict";R.d(he,{N:()=>H,c:()=>B});var ue=R(529),i=R(498),S=R(654),x=R(327);class B extends i.y{constructor(z,J){super(),this.source=z,this.subjectFactory=J,this._refCount=0,this._isComplete=!1}_subscribe(z){return this.getSubject().subscribe(z)}getSubject(){const z=this._subject;return(!z||z.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let z=this._connection;return z||(this._isComplete=!1,z=this._connection=new S.w,z.add(this.source.subscribe(new W(this.getSubject(),this))),z.closed&&(this._connection=null,z=S.w.EMPTY)),z}refCount(){return(0,x.x)()(this)}}const H=(()=>{const U=B.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:U._subscribe},_isComplete:{value:U._isComplete,writable:!0},getSubject:{value:U.getSubject},connect:{value:U.connect},refCount:{value:U.refCount}}})();class W extends ue.Yc{constructor(z,J){super(z),this.connectable=J}_error(z){this._unsubscribe(),super._error(z)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const z=this.connectable;if(z){this.connectable=null;const J=z._connection;z._refCount=0,z._subject=null,z._connection=null,J&&J.unsubscribe()}}}},254:(Je,he,R)=>{"use strict";R.d(he,{D:()=>rt});var ue=R(498),i=R(249),S=R(654),x=R(821),W=R(454),Q=R(430),z=R(955),J=R(515);function rt(_e,te){return te?function me(_e,te){if(null!=_e){if(function U(_e){return _e&&"function"==typeof _e[x.L]}(_e))return function B(_e,te){return new ue.y(Ht=>{const mt=new S.w;return mt.add(te.schedule(()=>{const jn=_e[x.L]();mt.add(jn.subscribe({next(qn){mt.add(te.schedule(()=>Ht.next(qn)))},error(qn){mt.add(te.schedule(()=>Ht.error(qn)))},complete(){mt.add(te.schedule(()=>Ht.complete()))}}))})),mt})}(_e,te);if((0,z.t)(_e))return function H(_e,te){return new ue.y(Ht=>{const mt=new S.w;return mt.add(te.schedule(()=>_e.then(jn=>{mt.add(te.schedule(()=>{Ht.next(jn),mt.add(te.schedule(()=>Ht.complete()))}))},jn=>{mt.add(te.schedule(()=>Ht.error(jn)))}))),mt})}(_e,te);if((0,J.z)(_e))return(0,W.r)(_e,te);if(function Y(_e){return _e&&"function"==typeof _e[Q.hZ]}(_e)||"string"==typeof _e)return function q(_e,te){if(!_e)throw new Error("Iterable cannot be null");return new ue.y(Ht=>{const mt=new S.w;let jn;return mt.add(()=>{jn&&"function"==typeof jn.return&&jn.return()}),mt.add(te.schedule(()=>{jn=_e[Q.hZ](),mt.add(te.schedule(function(){if(Ht.closed)return;let qn,De;try{const ci=jn.next();qn=ci.value,De=ci.done}catch(ci){return void Ht.error(ci)}De?Ht.complete():(Ht.next(qn),this.schedule())}))})),mt})}(_e,te)}throw new TypeError((null!==_e&&typeof _e||_e)+" is not observable")}(_e,te):_e instanceof ue.y?_e:new ue.y((0,i.s)(_e))}},9:(Je,he,R)=>{"use strict";R.d(he,{n:()=>x});var ue=R(498),i=R(650),S=R(454);function x(B,H){return H?(0,S.r)(B,H):new ue.y((0,i.V)(B))}},787:(Je,he,R)=>{"use strict";R.d(he,{T:()=>B});var ue=R(498),i=R(866),S=R(146),x=R(9);function B(...H){let W=Number.POSITIVE_INFINITY,Q=null,q=H[H.length-1];return(0,i.K)(q)?(Q=H.pop(),H.length>1&&"number"==typeof H[H.length-1]&&(W=H.pop())):"number"==typeof q&&(W=H.pop()),null===Q&&1===H.length&&H[0]instanceof ue.y?H[0]:(0,S.J)(W)((0,x.n)(H,Q))}},850:(Je,he,R)=>{"use strict";R.d(he,{U:()=>i});var ue=R(489);function i(B,H){return function(Q){if("function"!=typeof B)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return Q.lift(new S(B,H))}}class S{constructor(H,W){this.project=H,this.thisArg=W}call(H,W){return W.subscribe(new x(H,this.project,this.thisArg))}}class x extends ue.L{constructor(H,W,Q){super(H),this.project=W,this.count=0,this.thisArg=Q||this}_next(H){let W;try{W=this.project.call(this.thisArg,H,this.count++)}catch(Q){return void this.destination.error(Q)}this.destination.next(W)}}},146:(Je,he,R)=>{"use strict";R.d(he,{J:()=>S});var ue=R(709),i=R(379);function S(x=Number.POSITIVE_INFINITY){return(0,ue.zg)(i.y,x)}},709:(Je,he,R)=>{"use strict";R.d(he,{zg:()=>x});var ue=R(850),i=R(254),S=R(177);function x(Q,q,U=Number.POSITIVE_INFINITY){return"function"==typeof q?z=>z.pipe(x((J,Y)=>(0,i.D)(Q(J,Y)).pipe((0,ue.U)((me,rt)=>q(J,me,Y,rt))),U)):("number"==typeof q&&(U=q),z=>z.lift(new B(Q,U)))}class B{constructor(q,U=Number.POSITIVE_INFINITY){this.project=q,this.concurrent=U}call(q,U){return U.subscribe(new H(q,this.project,this.concurrent))}}class H extends S.Ds{constructor(q,U,z=Number.POSITIVE_INFINITY){super(q),this.project=U,this.concurrent=z,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(q){this.active0?this._next(q.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},327:(Je,he,R)=>{"use strict";R.d(he,{x:()=>i});var ue=R(489);function i(){return function(H){return H.lift(new S(H))}}class S{constructor(H){this.connectable=H}call(H,W){const{connectable:Q}=this;Q._refCount++;const q=new x(H,Q),U=W.subscribe(q);return q.closed||(q.connection=Q.connect()),U}}class x extends ue.L{constructor(H,W){super(H),this.connectable=W}_unsubscribe(){const{connectable:H}=this;if(!H)return void(this.connection=null);this.connectable=null;const W=H._refCount;if(W<=0)return void(this.connection=null);if(H._refCount=W-1,W>1)return void(this.connection=null);const{connection:Q}=this,q=H._connection;this.connection=null,q&&(!Q||q===Q)&&q.unsubscribe()}}},454:(Je,he,R)=>{"use strict";R.d(he,{r:()=>S});var ue=R(498),i=R(654);function S(x,B){return new ue.y(H=>{const W=new i.w;let Q=0;return W.add(B.schedule(function(){Q!==x.length?(H.next(x[Q++]),H.closed||W.add(this.schedule())):H.complete()})),W})}},430:(Je,he,R)=>{"use strict";R.d(he,{hZ:()=>i});const i=function ue(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},821:(Je,he,R)=>{"use strict";R.d(he,{L:()=>ue});const ue="function"==typeof Symbol&&Symbol.observable||"@@observable"},668:(Je,he,R)=>{"use strict";R.d(he,{b:()=>ue});const ue="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},279:(Je,he,R)=>{"use strict";R.d(he,{N:()=>i});const i=(()=>{function S(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return S.prototype=Object.create(Error.prototype),S})()},782:(Je,he,R)=>{"use strict";function ue(i){setTimeout(()=>{throw i},0)}R.d(he,{z:()=>ue})},379:(Je,he,R)=>{"use strict";function ue(i){return i}R.d(he,{y:()=>ue})},688:(Je,he,R)=>{"use strict";R.d(he,{k:()=>ue});const ue=Array.isArray||(i=>i&&"number"==typeof i.length)},515:(Je,he,R)=>{"use strict";R.d(he,{z:()=>ue});const ue=i=>i&&"number"==typeof i.length&&"function"!=typeof i},43:(Je,he,R)=>{"use strict";function ue(i){return"function"==typeof i}R.d(he,{m:()=>ue})},830:(Je,he,R)=>{"use strict";function ue(i){return null!==i&&"object"==typeof i}R.d(he,{K:()=>ue})},955:(Je,he,R)=>{"use strict";function ue(i){return!!i&&"function"!=typeof i.subscribe&&"function"==typeof i.then}R.d(he,{t:()=>ue})},866:(Je,he,R)=>{"use strict";function ue(i){return i&&"function"==typeof i.schedule}R.d(he,{K:()=>ue})},843:(Je,he,R)=>{"use strict";R.d(he,{U:()=>S,z:()=>i});var ue=R(379);function i(...x){return S(x)}function S(x){return 0===x.length?ue.y:1===x.length?x[0]:function(H){return x.reduce((W,Q)=>Q(W),H)}}},249:(Je,he,R)=>{"use strict";R.d(he,{s:()=>z});var ue=R(650),i=R(782),x=R(430),H=R(821),Q=R(515),q=R(955),U=R(830);const z=J=>{if(J&&"function"==typeof J[H.L])return(J=>Y=>{const me=J[H.L]();if("function"!=typeof me.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return me.subscribe(Y)})(J);if((0,Q.z)(J))return(0,ue.V)(J);if((0,q.t)(J))return(J=>Y=>(J.then(me=>{Y.closed||(Y.next(me),Y.complete())},me=>Y.error(me)).then(null,i.z),Y))(J);if(J&&"function"==typeof J[x.hZ])return(J=>Y=>{const me=J[x.hZ]();for(;;){let rt;try{rt=me.next()}catch(_e){return Y.error(_e),Y}if(rt.done){Y.complete();break}if(Y.next(rt.value),Y.closed)break}return"function"==typeof me.return&&Y.add(()=>{me.return&&me.return()}),Y})(J);{const me=`You provided ${(0,U.K)(J)?"an invalid object":`'${J}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(me)}}},650:(Je,he,R)=>{"use strict";R.d(he,{V:()=>ue});const ue=i=>S=>{for(let x=0,B=i.length;x{"use strict";R.r(he),R.d(he,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>kM,ANIMATION_MODULE_TYPE:()=>aT,APP_BOOTSTRAP_LISTENER:()=>R0,APP_ID:()=>Ef,APP_INITIALIZER:()=>S0,ApplicationInitStatus:()=>wf,ApplicationModule:()=>F_,ApplicationRef:()=>aa,Attribute:()=>Np,COMPILER_OPTIONS:()=>Mf,CUSTOM_ELEMENTS_SCHEMA:()=>Ev,ChangeDetectionStrategy:()=>Xn,ChangeDetectorRef:()=>z0,Compiler:()=>hT,CompilerFactory:()=>fT,Component:()=>nT,ComponentFactory:()=>vo,ComponentFactoryResolver:()=>Ja,ComponentRef:()=>jr,ContentChild:()=>FM,ContentChildren:()=>RM,DEFAULT_CURRENCY_CODE:()=>cT,DebugElement:()=>Sc,DebugEventListener:()=>ST,DebugNode:()=>Hf,DefaultIterableDiffer:()=>Y0,Directive:()=>E0,ENVIRONMENT_INITIALIZER:()=>es,ElementRef:()=>Xa,EmbeddedViewRef:()=>DT,EnvironmentInjector:()=>Ws,ErrorHandler:()=>tl,EventEmitter:()=>Mr,Host:()=>bu,HostBinding:()=>D0,HostListener:()=>rT,INJECTOR:()=>gm,Inject:()=>_t,InjectFlags:()=>Me,Injectable:()=>rl,InjectionToken:()=>Ot,Injector:()=>ns,Input:()=>iT,IterableDiffers:()=>O_,KeyValueDiffers:()=>Gf,LOCALE_ID:()=>Sf,MissingTranslationStrategy:()=>xr,ModuleWithComponentFactories:()=>I0,NO_ERRORS_SCHEMA:()=>Up,NgModule:()=>bf,NgModuleFactory:()=>Qh,NgModuleRef:()=>ls,NgProbeToken:()=>kf,NgZone:()=>tr,Optional:()=>yu,Output:()=>yf,PACKAGE_ROOT_URL:()=>x0,PLATFORM_ID:()=>Df,PLATFORM_INITIALIZER:()=>M0,Pipe:()=>g_,PlatformRef:()=>w_,Query:()=>gu,QueryList:()=>nf,ReflectiveInjector:()=>sl,ReflectiveKey:()=>Yi,Renderer2:()=>Dm,RendererFactory2:()=>Em,RendererStyleFlags2:()=>pr,ResolvedReflectiveFactory:()=>Om,Sanitizer:()=>ny,SecurityContext:()=>on,Self:()=>wd,SimpleChange:()=>Xl,SkipSelf:()=>Fs,TRANSLATIONS:()=>Tf,TRANSLATIONS_FORMAT:()=>dT,TemplateRef:()=>ra,Testability:()=>yT,TestabilityRegistry:()=>Cc,Type:()=>Bp,VERSION:()=>iy,Version:()=>el,ViewChild:()=>BM,ViewChildren:()=>NM,ViewContainerRef:()=>oa,ViewEncapsulation:()=>Si,ViewRef:()=>G0,asNativeElements:()=>jf,assertPlatform:()=>V0,createComponent:()=>VT,createEnvironmentInjector:()=>Jh,createNgModule:()=>$b,createNgModuleRef:()=>Gb,createPlatform:()=>N0,createPlatformFactory:()=>B0,defineInjectable:()=>Vc,destroyPlatform:()=>CT,enableProdMode:()=>D_,forwardRef:()=>_e,getDebugNode:()=>Mo,getModuleFactory:()=>Vf,getNgModuleById:()=>ET,getPlatform:()=>Ec,importProvidersFrom:()=>_m,inject:()=>ko,isDevMode:()=>wT,isStandalone:()=>pi,makeEnvironmentProviders:()=>Yv,platformCore:()=>OT,reflectComponentType:()=>jT,resolveForwardRef:()=>te,setTestabilityGetter:()=>y_,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>Af,\u0275APP_ID_RANDOM_PROVIDER:()=>sT,\u0275ComponentFactory:()=>vo,\u0275Console:()=>lT,\u0275DEFAULT_LOCALE_ID:()=>ia,\u0275INJECTOR_SCOPE:()=>vm,\u0275LContext:()=>Mv,\u0275LifecycleHooksFeature:()=>Hy,\u0275LocaleDataIndex:()=>Ae,\u0275NG_COMP_DEF:()=>Ro,\u0275NG_DIR_DEF:()=>or,\u0275NG_ELEMENT_ID:()=>kr,\u0275NG_INJ_DEF:()=>_a,\u0275NG_MOD_DEF:()=>wa,\u0275NG_PIPE_DEF:()=>Kr,\u0275NG_PROV_DEF:()=>Ao,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>Zd,\u0275NO_CHANGE:()=>Ne,\u0275NgModuleFactory:()=>Kh,\u0275NoopNgZone:()=>O0,\u0275ReflectionCapabilities:()=>vv,\u0275Render3ComponentFactory:()=>$r,\u0275Render3ComponentRef:()=>CD,\u0275Render3NgModuleRef:()=>Hg,\u0275RuntimeError:()=>De,\u0275TESTABILITY:()=>k0,\u0275TESTABILITY_GETTER:()=>Lf,\u0275ViewRef:()=>cl,\u0275XSS_SECURITY_URL:()=>qn,\u0275_sanitizeHtml:()=>IE,\u0275_sanitizeUrl:()=>js,\u0275allowSanitizationBypassAndThrow:()=>Li,\u0275bypassSanitizationTrustHtml:()=>Pu,\u0275bypassSanitizationTrustResourceUrl:()=>Lu,\u0275bypassSanitizationTrustScript:()=>Vs,\u0275bypassSanitizationTrustStyle:()=>DE,\u0275bypassSanitizationTrustUrl:()=>SE,\u0275clearResolutionOfComponentResourcesQueue:()=>Cv,\u0275coerceToBoolean:()=>kT,\u0275compileComponent:()=>m0,\u0275compileDirective:()=>h_,\u0275compileNgModule:()=>h0,\u0275compileNgModuleDefs:()=>f0,\u0275compileNgModuleFactory:()=>Of,\u0275compilePipe:()=>w0,\u0275convertToBitFlags:()=>ys,\u0275createInjector:()=>Im,\u0275defaultIterableDiffers:()=>R_,\u0275defaultKeyValueDiffers:()=>AT,\u0275detectChanges:()=>Wm,\u0275devModeEqual:()=>Yy,\u0275findLocaleData:()=>na,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>d0,\u0275formatRuntimeError:()=>ci,\u0275getDebugNode:()=>Mo,\u0275getDebugNodeR2:()=>q0,\u0275getDirectives:()=>Yb,\u0275getHostElement:()=>Gg,\u0275getInjectableDef:()=>Ar,\u0275getLContext:()=>ri,\u0275getLocaleCurrencyCode:()=>Eb,\u0275getLocalePluralCase:()=>Sg,\u0275getSanitizationBypassType:()=>et,\u0275getUnknownElementStrictMode:()=>zM,\u0275getUnknownPropertyStrictMode:()=>GM,\u0275global:()=>Lt,\u0275injectChangeDetectorRef:()=>$0,\u0275internalCreateApplication:()=>bT,\u0275isBoundToModule:()=>F0,\u0275isEnvironmentProviders:()=>mt,\u0275isInjectable:()=>ga,\u0275isNgModule:()=>Ol,\u0275isObservable:()=>Xm,\u0275isPromise:()=>gl,\u0275isSubscribable:()=>Jm,\u0275makeDecorator:()=>Ii,\u0275noSideEffects:()=>fi,\u0275patchComponentDefWithScope:()=>d_,\u0275publishDefaultGlobalUtils:()=>If,\u0275publishGlobalUtil:()=>Ni,\u0275registerLocaleData:()=>Dg,\u0275resetCompiledComponents:()=>qS,\u0275resetJitOptions:()=>df,\u0275resolveComponentResources:()=>Vp,\u0275setAllowDuplicateNgModuleIdsForTest:()=>Td,\u0275setClassMetadata:()=>Qb,\u0275setCurrentInjector:()=>Qr,\u0275setDocument:()=>Vv,\u0275setLocaleId:()=>xg,\u0275setUnknownElementStrictMode:()=>UM,\u0275setUnknownPropertyStrictMode:()=>$M,\u0275store:()=>qm,\u0275stringify:()=>Y,\u0275transitiveScopesFor:()=>To,\u0275unregisterLocaleData:()=>GD,\u0275unwrapSafeValue:()=>qi,\u0275\u0275CopyDefinitionFeature:()=>LD,\u0275\u0275FactoryTarget:()=>Tn,\u0275\u0275HostDirectivesFeature:()=>Zy,\u0275\u0275InheritDefinitionFeature:()=>hh,\u0275\u0275NgOnChangesFeature:()=>ur,\u0275\u0275ProvidersFeature:()=>jg,\u0275\u0275StandaloneFeature:()=>ht,\u0275\u0275advance:()=>dy,\u0275\u0275attribute:()=>Er,\u0275\u0275attributeInterpolate1:()=>Gm,\u0275\u0275attributeInterpolate2:()=>Qy,\u0275\u0275attributeInterpolate3:()=>mh,\u0275\u0275attributeInterpolate4:()=>gh,\u0275\u0275attributeInterpolate5:()=>_h,\u0275\u0275attributeInterpolate6:()=>vh,\u0275\u0275attributeInterpolate7:()=>yh,\u0275\u0275attributeInterpolate8:()=>bh,\u0275\u0275attributeInterpolateV:()=>Ch,\u0275\u0275classMap:()=>ag,\u0275\u0275classMapInterpolate1:()=>mg,\u0275\u0275classMapInterpolate2:()=>Xi,\u0275\u0275classMapInterpolate3:()=>Vh,\u0275\u0275classMapInterpolate4:()=>mb,\u0275\u0275classMapInterpolate5:()=>gg,\u0275\u0275classMapInterpolate6:()=>gb,\u0275\u0275classMapInterpolate7:()=>zD,\u0275\u0275classMapInterpolate8:()=>_g,\u0275\u0275classMapInterpolateV:()=>_b,\u0275\u0275classProp:()=>yl,\u0275\u0275contentQuery:()=>s0,\u0275\u0275defineComponent:()=>Yl,\u0275\u0275defineDirective:()=>Da,\u0275\u0275defineInjectable:()=>En,\u0275\u0275defineInjector:()=>gs,\u0275\u0275defineNgModule:()=>Ql,\u0275\u0275definePipe:()=>Cs,\u0275\u0275directiveInject:()=>al,\u0275\u0275disableBindings:()=>nd,\u0275\u0275element:()=>Dh,\u0275\u0275elementContainer:()=>Sh,\u0275\u0275elementContainerEnd:()=>Qu,\u0275\u0275elementContainerStart:()=>Yu,\u0275\u0275elementEnd:()=>ml,\u0275\u0275elementStart:()=>qu,\u0275\u0275enableBindings:()=>Is,\u0275\u0275getCurrentView:()=>Th,\u0275\u0275getInheritedFactory:()=>Op,\u0275\u0275hostProperty:()=>Do,\u0275\u0275i18n:()=>Hb,\u0275\u0275i18nApply:()=>zb,\u0275\u0275i18nAttributes:()=>Ub,\u0275\u0275i18nEnd:()=>Og,\u0275\u0275i18nExp:()=>kg,\u0275\u0275i18nPostprocess:()=>Rg,\u0275\u0275i18nStart:()=>Zh,\u0275\u0275inject:()=>Ft,\u0275\u0275injectAttribute:()=>Rp,\u0275\u0275invalidFactory:()=>Ty,\u0275\u0275invalidFactoryDep:()=>Oo,\u0275\u0275listener:()=>Mh,\u0275\u0275loadQuery:()=>sa,\u0275\u0275namespaceHTML:()=>Lp,\u0275\u0275namespaceMathML:()=>cd,\u0275\u0275namespaceSVG:()=>ud,\u0275\u0275nextContext:()=>In,\u0275\u0275ngDeclareClassMetadata:()=>tC,\u0275\u0275ngDeclareComponent:()=>RT,\u0275\u0275ngDeclareDirective:()=>Wf,\u0275\u0275ngDeclareFactory:()=>Zf,\u0275\u0275ngDeclareInjectable:()=>nC,\u0275\u0275ngDeclareInjector:()=>NT,\u0275\u0275ngDeclareNgModule:()=>BT,\u0275\u0275ngDeclarePipe:()=>N_,\u0275\u0275pipe:()=>en,\u0275\u0275pipeBind1:()=>Yg,\u0275\u0275pipeBind2:()=>qt,\u0275\u0275pipeBind3:()=>pc,\u0275\u0275pipeBind4:()=>ef,\u0275\u0275pipeBindV:()=>Qg,\u0275\u0275projection:()=>Ju,\u0275\u0275projectionDef:()=>xh,\u0275\u0275property:()=>Eh,\u0275\u0275propertyInterpolate:()=>tg,\u0275\u0275propertyInterpolate1:()=>_l,\u0275\u0275propertyInterpolate2:()=>ng,\u0275\u0275propertyInterpolate3:()=>Jy,\u0275\u0275propertyInterpolate4:()=>Xy,\u0275\u0275propertyInterpolate5:()=>eb,\u0275\u0275propertyInterpolate6:()=>tb,\u0275\u0275propertyInterpolate7:()=>nb,\u0275\u0275propertyInterpolate8:()=>ib,\u0275\u0275propertyInterpolateV:()=>rb,\u0275\u0275pureFunction0:()=>Kb,\u0275\u0275pureFunction1:()=>Jb,\u0275\u0275pureFunction2:()=>LS,\u0275\u0275pureFunction3:()=>AS,\u0275\u0275pureFunction4:()=>OS,\u0275\u0275pureFunction5:()=>kS,\u0275\u0275pureFunction6:()=>RS,\u0275\u0275pureFunction7:()=>Xb,\u0275\u0275pureFunction8:()=>FS,\u0275\u0275pureFunctionV:()=>qg,\u0275\u0275queryRefresh:()=>mc,\u0275\u0275reference:()=>Ym,\u0275\u0275registerNgModuleType:()=>Sd,\u0275\u0275resetView:()=>xa,\u0275\u0275resolveBody:()=>ay,\u0275\u0275resolveDocument:()=>sy,\u0275\u0275resolveWindow:()=>qs,\u0275\u0275restoreView:()=>dr,\u0275\u0275sanitizeHtml:()=>Za,\u0275\u0275sanitizeResourceUrl:()=>Hd,\u0275\u0275sanitizeScript:()=>pm,\u0275\u0275sanitizeStyle:()=>qa,\u0275\u0275sanitizeUrl:()=>Xo,\u0275\u0275sanitizeUrlOrResourceUrl:()=>Zv,\u0275\u0275setComponentScope:()=>Gc,\u0275\u0275setNgModuleScope:()=>Wc,\u0275\u0275styleMap:()=>Dr,\u0275\u0275styleMapInterpolate1:()=>vg,\u0275\u0275styleMapInterpolate2:()=>vb,\u0275\u0275styleMapInterpolate3:()=>yg,\u0275\u0275styleMapInterpolate4:()=>jh,\u0275\u0275styleMapInterpolate5:()=>yb,\u0275\u0275styleMapInterpolate6:()=>Eo,\u0275\u0275styleMapInterpolate7:()=>bb,\u0275\u0275styleMapInterpolate8:()=>ss,\u0275\u0275styleMapInterpolateV:()=>Cb,\u0275\u0275styleProp:()=>nc,\u0275\u0275stylePropInterpolate1:()=>rc,\u0275\u0275stylePropInterpolate2:()=>bg,\u0275\u0275stylePropInterpolate3:()=>oc,\u0275\u0275stylePropInterpolate4:()=>Hh,\u0275\u0275stylePropInterpolate5:()=>Cg,\u0275\u0275stylePropInterpolate6:()=>El,\u0275\u0275stylePropInterpolate7:()=>wg,\u0275\u0275stylePropInterpolate8:()=>Uh,\u0275\u0275stylePropInterpolateV:()=>Eg,\u0275\u0275syntheticHostListener:()=>Nn,\u0275\u0275syntheticHostProperty:()=>ea,\u0275\u0275template:()=>Zm,\u0275\u0275templateRefExtractor:()=>cf,\u0275\u0275text:()=>Xs,\u0275\u0275textInterpolate:()=>ic,\u0275\u0275textInterpolate1:()=>Fh,\u0275\u0275textInterpolate2:()=>Nh,\u0275\u0275textInterpolate3:()=>db,\u0275\u0275textInterpolate4:()=>hb,\u0275\u0275textInterpolate5:()=>fb,\u0275\u0275textInterpolate6:()=>pb,\u0275\u0275textInterpolate7:()=>fg,\u0275\u0275textInterpolate8:()=>Bh,\u0275\u0275textInterpolateV:()=>pg,\u0275\u0275trustConstantHtml:()=>mm,\u0275\u0275trustConstantResourceUrl:()=>Us,\u0275\u0275validateIframeAttribute:()=>lm,\u0275\u0275viewQuery:()=>i_});var ue=R(529),i=R(654),S=R(498),x=R(787),B=R(762);class W{constructor(a,l){this.subjectFactory=a,this.selector=l}call(a,l){const{selector:d}=this,f=this.subjectFactory(),m=d(f).subscribe(a);return m.add(l.subscribe(f)),m}}var Q=R(327);function q(){return new ue.xQ}function z(s){for(let a in s)if(s[a]===z)return a;throw Error("Could not find renamed property on target object.")}function J(s,a){for(const l in a)a.hasOwnProperty(l)&&!s.hasOwnProperty(l)&&(s[l]=a[l])}function Y(s){if("string"==typeof s)return s;if(Array.isArray(s))return"["+s.map(Y).join(", ")+"]";if(null==s)return""+s;if(s.overriddenName)return`${s.overriddenName}`;if(s.name)return`${s.name}`;const a=s.toString();if(null==a)return""+a;const l=a.indexOf("\n");return-1===l?a:a.substring(0,l)}function me(s,a){return null==s||""===s?null===a?"":a:null==a||""===a?s:s+" "+a}const rt=z({__forward_ref__:z});function _e(s){return s.__forward_ref__=_e,s.toString=function(){return Y(this())},s}function te(s){return Ht(s)?s():s}function Ht(s){return"function"==typeof s&&s.hasOwnProperty(rt)&&s.__forward_ref__===_e}function mt(s){return s&&!!s.\u0275providers}const qn="https://g.co/ng/security#xss";class De extends Error{constructor(a,l){super(ci(a,l)),this.code=a}}function ci(s,a){return`NG0${Math.abs(s)}${a?": "+a.trim():""}`}function Ve(s){return"string"==typeof s?s:null==s?"":String(s)}function Ge(s){return"function"==typeof s?s.name||s.toString():"object"==typeof s&&null!=s&&"function"==typeof s.type?s.type.name||s.type.toString():Ve(s)}function Mt(s,a){throw new De(-201,!1)}function We(s,a,l,d){throw new Error(`ASSERTION ERROR: ${s}`+(null==d?"":` [Expected=> ${l} ${d} ${a} <=Actual]`))}function En(s){return{token:s.token,providedIn:s.providedIn||null,factory:s.factory,value:void 0}}const Vc=En;function gs(s){return{providers:s.providers||[],imports:s.imports||[]}}function Ar(s){return jc(s,Ao)||jc(s,Hc)}function ga(s){return null!==Ar(s)}function jc(s,a){return s.hasOwnProperty(a)?s[a]:null}function _s(s){return s&&(s.hasOwnProperty(_a)||s.hasOwnProperty(ql))?s[_a]:null}const Ao=z({\u0275prov:z}),_a=z({\u0275inj:z}),Hc=z({ngInjectableDef:z}),ql=z({ngInjectorDef:z});var Me=(()=>((Me=Me||{})[Me.Default=0]="Default",Me[Me.Host=1]="Host",Me[Me.Self=2]="Self",Me[Me.SkipSelf=4]="SkipSelf",Me[Me.Optional=8]="Optional",Me))();let va;function Ee(s){const a=va;return va=s,a}function Ze(s,a,l){const d=Ar(s);return d&&"root"==d.providedIn?void 0===d.value?d.value=d.factory():d.value:l&Me.Optional?null:void 0!==a?a:void Mt(Y(s))}const Lt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),hi={},Rt="__NG_DI_FLAG__",ba="ngTempTokenPath",bt="ngTokenPath",Uc=/\n/gm,vs="\u0275",zc="__source";let Or;function Qr(s){const a=Or;return Or=s,a}function $c(s,a=Me.Default){if(void 0===Or)throw new De(-203,!1);return null===Or?Ze(s,void 0,a):Or.get(s,a&Me.Optional?null:void 0,a)}function Ft(s,a=Me.Default){return(function nn(){return va}()||$c)(te(s),a)}function Oo(s){throw new De(202,!1)}function ko(s,a=Me.Default){return Ft(s,ys(a))}function ys(s){return typeof s>"u"||"number"==typeof s?s:0|(s.optional&&8)|(s.host&&1)|(s.self&&2)|(s.skipSelf&&4)}function Ca(s){const a=[];for(let l=0;l((Xn=Xn||{})[Xn.OnPush=0]="OnPush",Xn[Xn.Default=1]="Default",Xn))(),Si=(()=>{return(s=Si||(Si={}))[s.Emulated=0]="Emulated",s[s.None=2]="None",s[s.ShadowDom=3]="ShadowDom",Si;var s})();const ei={},nt=[],Ro=z({\u0275cmp:z}),or=z({\u0275dir:z}),Kr=z({\u0275pipe:z}),wa=z({\u0275mod:z}),sr=z({\u0275fac:z}),kr=z({__NG_ELEMENT_ID__:z});let mp=0;function Yl(s){return fi(()=>{const a=ze(s),l={...a,decls:s.decls,vars:s.vars,template:s.template,consts:s.consts||null,ngContentSelectors:s.ngContentSelectors,onPush:s.changeDetection===Xn.OnPush,directiveDefs:null,pipeDefs:null,dependencies:a.standalone&&s.dependencies||null,getStandaloneInjector:null,data:s.data||{},encapsulation:s.encapsulation||Si.Emulated,id:"c"+mp++,styles:s.styles||nt,_:null,schemas:s.schemas||null,tView:null};ws(l);const d=s.dependencies;return l.directiveDefs=zi(d,!1),l.pipeDefs=zi(d,!0),l})}function Gc(s,a,l){const d=s.\u0275cmp;d.directiveDefs=zi(a,!1),d.pipeDefs=zi(l,!0)}function Fo(s){return at(s)||Dn(s)}function gp(s){return null!==s}function Ql(s){return fi(()=>({type:s.type,bootstrap:s.bootstrap||nt,declarations:s.declarations||nt,imports:s.imports||nt,exports:s.exports||nt,transitiveCompileScopes:null,schemas:s.schemas||null,id:s.id||null}))}function Wc(s,a){return fi(()=>{const l=Ue(s,!0);l.declarations=a.declarations||nt,l.imports=a.imports||nt,l.exports=a.exports||nt})}function Ea(s,a){if(null==s)return ei;const l={};for(const d in s)if(s.hasOwnProperty(d)){let f=s[d],m=f;Array.isArray(f)&&(m=f[1],f=f[0]),l[f]=d,a&&(a[f]=m)}return l}function Da(s){return fi(()=>{const a=ze(s);return ws(a),a})}function Cs(s){return{type:s.type,name:s.name,factory:null,pure:!1!==s.pure,standalone:!0===s.standalone,onDestroy:s.type.prototype.ngOnDestroy||null}}function at(s){return s[Ro]||null}function Dn(s){return s[or]||null}function An(s){return s[Kr]||null}function pi(s){const a=at(s)||Dn(s)||An(s);return null!==a&&a.standalone}function Ue(s,a){const l=s[wa]||null;if(!l&&!0===a)throw new Error(`Type ${Y(s)} does not have '\u0275mod' property.`);return l}function ze(s){const a={};return{type:s.type,providersResolver:null,factory:null,hostBindings:s.hostBindings||null,hostVars:s.hostVars||0,hostAttrs:s.hostAttrs||null,contentQueries:s.contentQueries||null,declaredInputs:a,exportAs:s.exportAs||null,standalone:!0===s.standalone,selectors:s.selectors||nt,viewQuery:s.viewQuery||null,features:s.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ea(s.inputs,a),outputs:Ea(s.outputs)}}function ws(s){s.features?.forEach(a=>a(s))}function zi(s,a){if(!s)return null;const l=a?An:Fo;return()=>("function"==typeof s?s():s).map(d=>l(d)).filter(gp)}const On=0,ge=1,re=2,qe=3,ti=4,Re=5,Ct=6,Jr=7,Dt=8,mi=9,At=10,je=11,No=12,$i=13,Sa=14,gi=15,Qt=16,Bo=17,rn=18,_i=19,Xr=20,Es=21,St=22,Kl=1,Ye=2,fn=7,ft=8,eo=9,pn=10;function mn(s){return Array.isArray(s)&&"object"==typeof s[Kl]}function gn(s){return Array.isArray(s)&&!0===s[Kl]}function Ds(s){return 0!=(4&s.flags)}function ar(s){return s.componentOffset>-1}function Nt(s){return 1==(1&s.flags)}function _n(s){return!!s.template}function Yc(s){return 0!=(256&s[re])}function Rr(s,a){return s.hasOwnProperty(sr)?s[sr]:null}class Xl{constructor(a,l,d){this.previousValue=a,this.currentValue=l,this.firstChange=d}isFirstChange(){return this.firstChange}}function ur(){return eu}function eu(s){return s.type.prototype.ngOnChanges&&(s.setInput=tu),wp}function wp(){const s=Ta(this),a=s?.current;if(a){const l=s.previous;if(l===ei)s.previous=a;else for(let d in a)l[d]=a[d];s.current=null,this.ngOnChanges(a)}}function tu(s,a,l,d){const f=this.declaredInputs[l],m=Ta(s)||function Dp(s,a){return s[Ep]=a}(s,{previous:ei,current:null}),v=m.current||(m.current={}),b=m.previous,w=b[f];v[f]=new Xl(w&&w.currentValue,a,b===ei),s[d]=a}ur.ngInherit=!0;const Ep="__ngSimpleChanges__";function Ta(s){return s[Ep]||null}let Ma=null;const Ts=s=>{Ma=s},kn=function(s,a,l){Ma?.(s,a,l)},Ti="svg",td="math";function Ut(s){for(;Array.isArray(s);)s=s[On];return s}function Ms(s,a){return Ut(a[s])}function Un(s,a){return Ut(a[s.index])}function nu(s,a){return s.data[a]}function jo(s,a){return s[a]}function zn(s,a){const l=a[s];return mn(l)?l:l[On]}function Ho(s){return 64==(64&s[re])}function to(s,a){return null==a?null:s[a]}function ru(s){s[rn]=0}function ou(s,a){s[Re]+=a;let l=s,d=s[qe];for(;null!==d&&(1===a&&1===l[Re]||-1===a&&0===l[Re]);)d[Re]+=a,l=d,d=d[qe]}const Te={lFrame:Aa(null),bindingsEnabled:!0};function Mp(){return Te.bindingsEnabled}function Is(){Te.bindingsEnabled=!0}function nd(){Te.bindingsEnabled=!1}function ne(){return Te.lFrame.lView}function ut(){return Te.lFrame.tView}function dr(s){return Te.lFrame.contextLView=s,s[Dt]}function xa(s){return Te.lFrame.contextLView=null,s}function Sn(){let s=su();for(;null!==s&&64===s.type;)s=s.parent;return s}function su(){return Te.lFrame.currentTNode}function Uo(){const s=Te.lFrame,a=s.currentTNode;return s.isParent?a:a.parent}function an(s,a){const l=Te.lFrame;l.currentTNode=s,l.isParent=a}function au(){return Te.lFrame.isParent}function Gi(){Te.lFrame.isParent=!1}function vn(){const s=Te.lFrame;let a=s.bindingRootIndex;return-1===a&&(a=s.bindingRootIndex=s.tView.bindingStartIndex),a}function vi(){return Te.lFrame.bindingIndex}function Pa(s){return Te.lFrame.bindingIndex=s}function ro(){return Te.lFrame.bindingIndex++}function yi(s){const a=Te.lFrame,l=a.bindingIndex;return a.bindingIndex=a.bindingIndex+s,l}function La(s){Te.lFrame.inI18n=s}function id(s,a){const l=Te.lFrame;l.bindingIndex=l.bindingRootIndex=s,rd(a)}function rd(s){Te.lFrame.currentDirectiveIndex=s}function Ls(s){const a=Te.lFrame.currentDirectiveIndex;return-1===a?null:s[a]}function Ip(){return Te.lFrame.currentQueryIndex}function lu(s){Te.lFrame.currentQueryIndex=s}function uv(s){const a=s[ge];return 2===a.type?a.declTNode:1===a.type?s[Ct]:null}function od(s,a,l){if(l&Me.SkipSelf){let f=a,m=s;for(;!(f=f.parent,null!==f||l&Me.Host||(f=uv(m),null===f||(m=m[gi],10&f.type))););if(null===f)return!1;a=f,s=m}const d=Te.lFrame=xi();return d.currentTNode=a,d.lView=s,!0}function sd(s){const a=xi(),l=s[ge];Te.lFrame=a,a.currentTNode=l.firstChild,a.lView=s,a.tView=l,a.contextLView=s,a.bindingIndex=l.bindingStartIndex,a.inI18n=!1}function xi(){const s=Te.lFrame,a=null===s?null:s.child;return null===a?Aa(s):a}function Aa(s){const a={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:s,child:null,inI18n:!1};return null!==s&&(s.child=a),a}function ad(){const s=Te.lFrame;return Te.lFrame=s.parent,s.currentTNode=null,s.lView=null,s}const As=ad;function ld(){const s=ad();s.isParent=!0,s.tView=null,s.selectedIndex=-1,s.contextLView=null,s.elementDepthCount=0,s.currentDirectiveIndex=-1,s.currentNamespace=null,s.bindingRootIndex=-1,s.bindingIndex=-1,s.currentQueryIndex=0}function ln(){return Te.lFrame.selectedIndex}function zo(s){Te.lFrame.selectedIndex=s}function wt(){const s=Te.lFrame;return nu(s.tView,s.selectedIndex)}function ud(){Te.lFrame.currentNamespace=Ti}function cd(){Te.lFrame.currentNamespace=td}function Lp(){!function Fr(){Te.lFrame.currentNamespace=null}()}function bi(s,a){for(let l=a.directiveStart,d=a.directiveEnd;l=d)break}else a[w]<0&&(s[rn]+=65536),(b>11>16&&(3&s[re])===a){s[re]+=2048,kn(4,b,m);try{m.call(b)}finally{kn(5,b,m)}}}else{kn(4,b,m);try{m.call(b)}finally{kn(5,b,m)}}}const $o=-1;class Go{constructor(a,l,d){this.factory=a,this.resolving=!1,this.canSeeViewProviders=l,this.injectImpl=d}}function u(s,a,l){let d=0;for(;da){v=m-1;break}}}for(;m>16}(s),d=a;for(;l>0;)d=d[gi],l--;return d}let ie=!0;function fe(s){const a=ie;return ie=s,a}const it=255,$n=5;let Nr=0;const ni={};function lo(s,a){const l=du(s,a);if(-1!==l)return l;const d=a[ge];d.firstCreatePass&&(s.injectorIndex=a.length,cu(d.data,s),cu(a,null),cu(d.blueprint,null));const f=hu(s,a),m=s.injectorIndex;if(P(f)){const v=F(f),b=Z(f,a),w=b[ge].data;for(let T=0;T<8;T++)a[m+T]=b[v+T]|w[v+T]}return a[m+8]=f,m}function cu(s,a){s.push(0,0,0,0,0,0,0,0,a)}function du(s,a){return-1===s.injectorIndex||s.parent&&s.parent.injectorIndex===s.injectorIndex||null===a[s.injectorIndex+8]?-1:s.injectorIndex}function hu(s,a){if(s.parent&&-1!==s.parent.injectorIndex)return s.parent.injectorIndex;let l=0,d=null,f=a;for(;null!==f;){if(d=kp(f),null===d)return $o;if(l++,f=f[gi],-1!==d.injectorIndex)return d.injectorIndex|l<<16}return $o}function Na(s,a,l){!function Zi(s,a,l){let d;"string"==typeof l?d=l.charCodeAt(0)||0:l.hasOwnProperty(kr)&&(d=l[kr]),null==d&&(d=l[kr]=Nr++);const f=d⁢a.data[s+(f>>$n)]|=1<=0?a&it:fv:a}(l);if("function"==typeof m){if(!od(a,s,d))return d&Me.Host?Os(f,0,d):Kt(a,l,d,f);try{const v=m(d);if(null!=v||d&Me.Optional)return v;Mt()}finally{As()}}else if("number"==typeof m){let v=null,b=du(s,a),w=$o,T=d&Me.Host?a[Qt][Ct]:null;for((-1===b||d&Me.SkipSelf)&&(w=-1===b?hu(s,a):a[b+8],w!==$o&&hv(d,!1)?(v=a[ge],b=F(w),a=Z(w,a)):b=-1);-1!==b;){const I=a[ge];if(pu(m,b,I.data)){const O=dv(b,a,l,v,d,T);if(O!==ni)return O}w=a[b+8],w!==$o&&hv(d,a[ge].data[b+8]===T)&&pu(m,b,a)?(v=I,b=F(w),a=Z(w,a)):b=-1}}return f}function dv(s,a,l,d,f,m){const v=a[ge],b=v.data[s+8],I=Va(b,v,l,null==d?ar(b)&&ie:d!=v&&0!=(3&b.type),f&Me.Host&&m===b);return null!==I?hr(a,v,I,b):ni}function Va(s,a,l,d,f){const m=s.providerIndexes,v=a.data,b=1048575&m,w=s.directiveStart,I=m>>20,N=f?b+I:s.directiveEnd;for(let $=d?b:b+I;$=w&&X.type===l)return $}if(f){const $=v[w];if($&&_n($)&&$.type===l)return w}return null}function hr(s,a,l,d){let f=s[l];const m=a.data;if(function fd(s){return s instanceof Go}(f)){const v=f;v.resolving&&function Yn(s,a){const l=a?`. Dependency path: ${a.join(" > ")} > ${s}`:"";throw new De(-200,`Circular dependency in DI detected for ${s}${l}`)}(Ge(m[l]));const b=fe(v.canSeeViewProviders);v.resolving=!0;const w=v.injectImpl?Ee(v.injectImpl):null;od(s,d,Me.Default);try{f=s[l]=v.factory(void 0,m,s,d),a.firstCreatePass&&l>=d.directiveStart&&function Oa(s,a,l){const{ngOnChanges:d,ngOnInit:f,ngDoCheck:m}=a.type.prototype;if(d){const v=eu(a);(l.preOrderHooks??(l.preOrderHooks=[])).push(s,v),(l.preOrderCheckHooks??(l.preOrderCheckHooks=[])).push(s,v)}f&&(l.preOrderHooks??(l.preOrderHooks=[])).push(0-s,f),m&&((l.preOrderHooks??(l.preOrderHooks=[])).push(s,m),(l.preOrderCheckHooks??(l.preOrderCheckHooks=[])).push(s,m))}(l,m[l],a)}finally{null!==w&&Ee(w),fe(b),v.resolving=!1,As()}}return f}function pu(s,a,l){return!!(l[a+(s>>$n)]&1<{const a=s.prototype.constructor,l=a[sr]||mu(a),d=Object.prototype;let f=Object.getPrototypeOf(s.prototype).constructor;for(;f&&f!==d;){const m=f[sr]||mu(f);if(m&&m!==l)return m;f=Object.getPrototypeOf(f)}return m=>new m})}function mu(s){return Ht(s)?()=>{const a=mu(te(s));return a&&a()}:Rr(s)}function kp(s){const a=s[ge],l=a.type;return 2===l?a.declTNode:1===l?s[Ct]:null}function Rp(s){return function Ap(s,a){if("class"===a)return s.classes;if("style"===a)return s.styles;const l=s.attrs;if(l){const d=l.length;let f=0;for(;f{const m=Fp(a);function v(...b){if(this instanceof v)return m.call(this,...b),this;const w=new v(...b);return function(I){return f&&f(I,...b),(I.hasOwnProperty(ja)?I[ja]:Object.defineProperty(I,ja,{value:[]})[ja]).push(w),d&&d(I),I}}return l&&(v.prototype=Object.create(l.prototype)),v.prototype.ngMetadataName=s,v.annotationCls=v,v})}function Fp(s){return function(...l){if(s){const d=s(...l);for(const f in d)this[f]=d[f]}}}function Ha(s,a,l){return fi(()=>{const d=Fp(a);function f(...m){if(this instanceof f)return d.apply(this,m),this;const v=new f(...m);return b.annotation=v,b;function b(w,T,I){const O=w.hasOwnProperty(uo)?w[uo]:Object.defineProperty(w,uo,{value:[]})[uo];for(;O.length<=I;)O.push(null);return(O[I]=O[I]||[]).push(v),w}}return l&&(f.prototype=Object.create(l.prototype)),f.prototype.ngMetadataName=s,f.annotationCls=f,f})}function Br(s,a,l,d){return fi(()=>{const f=Fp(a);function m(...v){if(this instanceof m)return f.apply(this,v),this;const b=new m(...v);return function w(T,I){const O=T.constructor,N=O.hasOwnProperty(Rs)?O[Rs]:Object.defineProperty(O,Rs,{value:{}})[Rs];N[I]=N.hasOwnProperty(I)&&N[I]||[],N[I].unshift(b),d&&d(T,I,...v)}}return l&&(m.prototype=Object.create(l.prototype)),m.prototype.ngMetadataName=s,m.annotationCls=m,m})}const Np=Ha("Attribute",s=>({attributeName:s,__NG_ELEMENT_ID__:()=>Rp(s)}));class Ot{constructor(a,l){this._desc=a,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof l?this.__NG_ELEMENT_ID__=l:void 0!==l&&(this.\u0275prov=En({token:this,providedIn:l.providedIn||"root",factory:l.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const kM=new Ot("AnalyzeForEntryComponents");class gu{}const RM=Br("ContentChildren",(s,a={})=>({selector:s,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0,...a}),gu),FM=Br("ContentChild",(s,a={})=>({selector:s,first:!0,isViewQuery:!1,descendants:!0,...a}),gu),NM=Br("ViewChildren",(s,a={})=>({selector:s,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0,...a}),gu),BM=Br("ViewChild",(s,a)=>({selector:s,first:!0,isViewQuery:!0,descendants:!0,...a}),gu);var Tn=(()=>((Tn=Tn||{})[Tn.Directive=0]="Directive",Tn[Tn.Component=1]="Component",Tn[Tn.Injectable=2]="Injectable",Tn[Tn.Pipe=3]="Pipe",Tn[Tn.NgModule=4]="NgModule",Tn))();function Mn(s){const a=Lt.ng;if(a&&a.\u0275compilerFacade)return a.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Bp=Function;function vd(s){return"function"==typeof s}function fr(s){return s.flat(Number.POSITIVE_INFINITY)}function Zo(s,a){s.forEach(l=>Array.isArray(l)?Zo(l,a):a(l))}function pv(s,a,l){a>=s.length?s.push(l):s.splice(a,0,l)}function _u(s,a){return a>=s.length-1?s.pop():s.splice(a,1)[0]}function yd(s,a){const l=[];for(let d=0;d=0?s[1|d]=l:(d=~d,function Yw(s,a,l,d){let f=s.length;if(f==a)s.push(l,d);else if(1===f)s.push(d,s[0]),s[0]=l;else{for(f--,s.push(s[f-1],s[f]);f>a;)s[f]=s[f-2],f--;s[a]=l,s[a+1]=d}}(s,d,a,l)),d}function co(s,a){const l=Ua(s,a);if(l>=0)return s[1|l]}function Ua(s,a){return function mv(s,a,l){let d=0,f=s.length>>l;for(;f!==d;){const m=d+(f-d>>1),v=s[m<a?f=m:d=m+1}return~(f<new a(...l)}_zipTypesAndAnnotations(a,l){let d;d=yd(typeof a>"u"?l.length:a.length);for(let f=0;f"u"?[]:a[f]&&a[f]!=Object?[a[f]]:[],l&&null!=l[f]&&(d[f]=d[f].concat(l[f]));return d}_ownParameters(a,l){if(function Gn(s){return gv.test(s)||_v.test(s)||Kw.test(s)&&!Jw.test(s)}(a.toString()))return null;if(a.parameters&&a.parameters!==l.parameters)return a.parameters;const f=a.ctorParameters;if(f&&f!==l.ctorParameters){const b="function"==typeof f?f():f,w=b.map(I=>I&&I.type),T=b.map(I=>I&&bd(I.decorators));return this._zipTypesAndAnnotations(w,T)}const m=a.hasOwnProperty(uo)&&a[uo],v=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",a);return v||m?this._zipTypesAndAnnotations(v,m):yd(a.length)}parameters(a){if(!vd(a))return[];const l=Cd(a);let d=this._ownParameters(a,l);return!d&&l!==Object&&(d=this.parameters(l)),d||[]}_ownAnnotations(a,l){if(a.annotations&&a.annotations!==l.annotations){let d=a.annotations;return"function"==typeof d&&d.annotations&&(d=d.annotations),d}return a.decorators&&a.decorators!==l.decorators?bd(a.decorators):a.hasOwnProperty(ja)?a[ja]:null}annotations(a){if(!vd(a))return[];const l=Cd(a),d=this._ownAnnotations(a,l)||[];return(l!==Object?this.annotations(l):[]).concat(d)}_ownPropMetadata(a,l){if(a.propMetadata&&a.propMetadata!==l.propMetadata){let d=a.propMetadata;return"function"==typeof d&&d.propMetadata&&(d=d.propMetadata),d}if(a.propDecorators&&a.propDecorators!==l.propDecorators){const d=a.propDecorators,f={};return Object.keys(d).forEach(m=>{f[m]=bd(d[m])}),f}return a.hasOwnProperty(Rs)?a[Rs]:null}propMetadata(a){if(!vd(a))return{};const l=Cd(a),d={};if(l!==Object){const m=this.propMetadata(l);Object.keys(m).forEach(v=>{d[v]=m[v]})}const f=this._ownPropMetadata(a,l);return f&&Object.keys(f).forEach(m=>{const v=[];d.hasOwnProperty(m)&&v.push(...d[m]),v.push(...f[m]),d[m]=v}),d}ownPropMetadata(a){return vd(a)&&this._ownPropMetadata(a,Cd(a))||{}}hasLifecycleHook(a,l){return a instanceof Bp&&l in a.prototype}}function bd(s){return s?s.map(a=>new(0,a.type.annotationCls)(...a.args?a.args:[])):[]}function Cd(s){const a=s.prototype?Object.getPrototypeOf(s.prototype):null;return(a?a.constructor:null)||Object}const _t=bs(Ha("Inject",s=>({token:s})),-1),yu=bs(Ha("Optional"),8),wd=bs(Ha("Self"),2),Fs=bs(Ha("SkipSelf"),4),bu=bs(Ha("Host"),1);let yv=null;function Cu(){return yv=yv||new vv}function Ed(s){return bv(Cu().parameters(s))}function bv(s){return s.map(a=>function Dd(s){const a={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(s)&&s.length>0)for(let l=0;l{const v=[];f.templateUrl&&v.push(d(f.templateUrl).then(O=>{f.template=O}));const b=f.styleUrls,w=f.styles||(f.styles=[]),T=f.styles.length;b&&b.forEach((O,N)=>{w.push(""),v.push(d(O).then($=>{w[T+N]=$,b.splice(b.indexOf(O),1),0==b.length&&(f.styleUrls=void 0)}))});const I=Promise.all(v).then(()=>function tE(s){wu.delete(s)}(m));a.push(I)}),Cv(),Promise.all(a).then(()=>{})}let ho=new Map;const wu=new Set;function jp(s){return!!(s.templateUrl&&!s.hasOwnProperty("template")||s.styleUrls&&s.styleUrls.length)}function Cv(){const s=ho;return ho=new Map,s}function ve(s){return"string"==typeof s?s:s.text()}const Eu=new Map;let fo=!0;function Sd(s,a){(function Hp(s,a,l){if(a&&a!==l&&fo)throw new Error(`Duplicate module registered for ${s} - ${Y(a)} vs ${Y(a.name)}`)})(a,Eu.get(a)||null,s),Eu.set(a,s)}function po(s){return Eu.get(s)}function Td(s){fo=!s}const Ev={name:"custom-elements"},Up={name:"no-errors-schema"};let Le=!1;function UM(s){Le=s}function zM(){return Le}let Dv=!1;function $M(s){Dv=s}function GM(){return Dv}var pr=(()=>((pr=pr||{})[pr.Important=1]="Important",pr[pr.DashCase=2]="DashCase",pr))();const iE=/^>|^->||--!>|)/,vt="\u200b$1\u200b";const wi=new Map;let WM=0;function ii(s){return wi.get(s)||null}class Mv{get lView(){return ii(this.lViewId)}constructor(a,l,d){this.lViewId=a,this.nodeIndex=l,this.native=d}}function ri(s){let a=Du(s);if(a){if(mn(a)){const l=a;let d,f,m;if(za(s)){if(d=Ld(l,s),-1==d)throw new Error("The provided component was not found in the application");f=s}else if(function oE(s){return s&&s.constructor&&s.constructor.\u0275dir}(s)){if(d=function sE(s,a){let l=s[ge].firstChild;for(;l;){const f=l.directiveEnd;for(let m=l.directiveStart;m=0){const b=Ut(m[v]),w=mr(m,v,b);Rn(b,w),a=w;break}}}}return a||null}function mr(s,a,l){return new Mv(s[Xr],a,l)}function xv(s){let l,a=Du(s);if(mn(a)){const d=a,f=Ld(d,s);l=zn(f,d);const m=mr(d,f,l[On]);m.component=s,Rn(s,m),Rn(m.native,m)}else l=zn(a.nodeIndex,a.lView);return l}const Id="__ngContext__";function Rn(s,a){mn(a)?(s[Id]=a[Xr],function Gp(s){wi.set(s[Xr],s)}(a)):s[Id]=a}function Du(s){const a=s[Id];return"number"==typeof a?ii(a):a||null}function Iv(s){const a=Du(s);return a?mn(a)?a:a.lView:null}function za(s){return s&&s.constructor&&s.constructor.\u0275cmp}function Pd(s,a){const l=s[ge];for(let d=St;da.replace(ke,vt))}(a))}function vr(s,a,l){return s.createElement(a,l)}function Kp(s,a){const l=s[eo],d=l.indexOf(a),f=a[qe];512&a[re]&&(a[re]&=-513,ou(f,-1)),l.splice(d,1)}function Jp(s,a){if(s.length<=pn)return;const l=pn+a,d=s[l];if(d){const f=d[Bo];null!==f&&f!==s&&Kp(f,d),a>0&&(s[l-1][ti]=d[ti]);const m=_u(s,pn+a);!function cE(s,a){xu(s,a,a[je],2,null,null),a[On]=null,a[Ct]=null}(d[ge],d);const v=m[_i];null!==v&&v.detachView(m[ge]),d[qe]=null,d[ti]=null,d[re]&=-65}return d}function Av(s,a){if(!(128&a[re])){const l=a[je];l.destroyNode&&xu(s,a,l,3,null,null),function Od(s){let a=s[$i];if(!a)return Xp(s[ge],s);for(;a;){let l=null;if(mn(a))l=a[$i];else{const d=a[pn];d&&(l=d)}if(!l){for(;a&&!a[ti]&&a!==s;)mn(a)&&Xp(a[ge],a),a=a[qe];null===a&&(a=s),mn(a)&&Xp(a[ge],a),l=a&&a[ti]}a=l}}(a)}}function Xp(s,a){if(!(128&a[re])){a[re]&=-65,a[re]|=128,function qo(s,a){let l;if(null!=s&&null!=(l=s.destroyHooks))for(let d=0;d=0?d[f=v]():d[f=-v].unsubscribe(),m+=2}else{const v=d[f=l[m+1]];l[m].call(v)}if(null!==d){for(let m=f+1;m-1){const{encapsulation:m}=s.data[d.directiveStart+f];if(m===Si.None||m===Si.Emulated)return null}return Un(d,l)}}function Bs(s,a,l,d,f){s.insertBefore(a,l,d,f)}function $t(s,a,l){s.appendChild(a,l)}function kv(s,a,l,d,f){null!==d?Bs(s,a,l,d,f):$t(s,a,l)}function kd(s,a){return s.parentNode(a)}function em(s,a,l){return Fv(s,a,l)}function Rv(s,a,l){return 40&s.type?Un(s,l):null}let Tu,Qo,Fd,un,Fv=Rv;function Nv(s,a){Fv=s,Tu=a}function Rd(s,a,l,d){const f=Yo(s,d,a),m=a[je],b=em(d.parent||a[Ct],d,a);if(null!=f)if(Array.isArray(l))for(let w=0;ws,createScript:s=>s,createScriptURL:s=>s})}catch{}return Qo}function yr(s){return am()?.createHTML(s)||s}function lm(s,a,l){const d=ne(),f=wt(),m=Un(f,d);if(2===f.type&&"iframe"===a.toLowerCase()){const v=m;throw v.src="",v.srcdoc=yr(""),nm(d[je],v),new De(-910,!1)}return s}function Vv(s){Fd=s}function CE(){return void 0!==Fd?Fd:typeof document<"u"?document:void 0}function Vr(){if(void 0===un&&(un=null,Lt.trustedTypes))try{un=Lt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch{}return un}function Iu(s){return Vr()?.createHTML(s)||s}function jv(s){return Vr()?.createScript(s)||s}function um(s){return Vr()?.createScriptURL(s)||s}class Ko{constructor(a){this.changingThisBreaksApplicationSecurity=a}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qn})`}}class wE extends Ko{getTypeName(){return"HTML"}}class Hv extends Ko{getTypeName(){return"Style"}}class EE extends Ko{getTypeName(){return"Script"}}class Uv extends Ko{getTypeName(){return"URL"}}class zv extends Ko{getTypeName(){return"ResourceURL"}}function qi(s){return s instanceof Ko?s.changingThisBreaksApplicationSecurity:s}function Li(s,a){const l=et(s);if(null!=l&&l!==a){if("ResourceURL"===l&&"URL"===a)return!0;throw new Error(`Required a safe ${a}, got a ${l} (see ${qn})`)}return l===a}function et(s){return s instanceof Ko&&s.getTypeName()||null}function Pu(s){return new wE(s)}function DE(s){return new Hv(s)}function Vs(s){return new EE(s)}function SE(s){return new Uv(s)}function Lu(s){return new zv(s)}function Nd(s){const a=new Bd(s);return function Au(){try{return!!(new window.DOMParser).parseFromString(yr(""),"text/html")}catch{return!1}}()?new TE(a):a}class TE{constructor(a){this.inertDocumentHelper=a}getInertBodyElement(a){a=""+a;try{const l=(new window.DOMParser).parseFromString(yr(a),"text/html").body;return null===l?this.inertDocumentHelper.getInertBodyElement(a):(l.removeChild(l.firstChild),l)}catch{return null}}}class Bd{constructor(a){this.defaultDoc=a,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(a){const l=this.inertDocument.createElement("template");return l.innerHTML=yr(a),l}}const $v=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function js(s){return(s=String(s)).match($v)?s:"unsafe:"+s}function _o(s){const a={};for(const l of s.split(","))a[l]=!0;return a}function Hs(...s){const a={};for(const l of s)for(const d in l)l.hasOwnProperty(d)&&(a[d]=!0);return a}const Ou=_o("area,br,col,hr,img,wbr"),cm=_o("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),dm=_o("rp,rt"),Ga=Hs(Ou,Hs(cm,_o("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")),Hs(dm,_o("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")),Hs(dm,cm)),hm=_o("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Gv=Hs(hm,_o("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"),_o("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")),ME=_o("script,style,template");class fm{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(a){let l=a.firstChild,d=!0;for(;l;)if(l.nodeType===Node.ELEMENT_NODE?d=this.startElement(l):l.nodeType===Node.TEXT_NODE?this.chars(l.nodeValue):this.sanitizedSomething=!0,d&&l.firstChild)l=l.firstChild;else for(;l;){l.nodeType===Node.ELEMENT_NODE&&this.endElement(l);let f=this.checkClobberedElement(l,l.nextSibling);if(f){l=f;break}l=this.checkClobberedElement(l,l.parentNode)}return this.buf.join("")}startElement(a){const l=a.nodeName.toLowerCase();if(!Ga.hasOwnProperty(l))return this.sanitizedSomething=!0,!ME.hasOwnProperty(l);this.buf.push("<"),this.buf.push(l);const d=a.attributes;for(let f=0;f"),!0}endElement(a){const l=a.nodeName.toLowerCase();Ga.hasOwnProperty(l)&&!Ou.hasOwnProperty(l)&&(this.buf.push(""))}chars(a){this.buf.push(Jo(a))}checkClobberedElement(a,l){if(l&&(a.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${a.outerHTML}`);return l}}const Vd=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xE=/([^\#-~ |!])/g;function Jo(s){return s.replace(/&/g,"&").replace(Vd,function(a){return"&#"+(1024*(a.charCodeAt(0)-55296)+(a.charCodeAt(1)-56320)+65536)+";"}).replace(xE,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(//g,">")}let Wa;function IE(s,a){let l=null;try{Wa=Wa||Nd(s);let d=a?String(a):"";l=Wa.getInertBodyElement(d);let f=5,m=d;do{if(0===f)throw new Error("Failed to sanitize html because the input is unstable");f--,d=m,m=l.innerHTML,l=Wa.getInertBodyElement(d)}while(d!==m);return yr((new fm).sanitizeChildren(jd(l)||l))}finally{if(l){const d=jd(l)||l;for(;d.firstChild;)d.removeChild(d.firstChild)}}}function jd(s){return"content"in s&&function Wv(s){return s.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===s.nodeName}(s)?s.content:null}var on=(()=>((on=on||{})[on.NONE=0]="NONE",on[on.HTML=1]="HTML",on[on.STYLE=2]="STYLE",on[on.SCRIPT=3]="SCRIPT",on[on.URL=4]="URL",on[on.RESOURCE_URL=5]="RESOURCE_URL",on))();function Za(s){const a=zs();return a?Iu(a.sanitize(on.HTML,s)||""):Li(s,"HTML")?Iu(qi(s)):IE(CE(),Ve(s))}function qa(s){const a=zs();return a?a.sanitize(on.STYLE,s)||"":Li(s,"Style")?qi(s):Ve(s)}function Xo(s){const a=zs();return a?a.sanitize(on.URL,s)||"":Li(s,"URL")?qi(s):js(Ve(s))}function Hd(s){const a=zs();if(a)return um(a.sanitize(on.RESOURCE_URL,s)||"");if(Li(s,"ResourceURL"))return um(qi(s));throw new De(904,!1)}function pm(s){const a=zs();if(a)return jv(a.sanitize(on.SCRIPT,s)||"");if(Li(s,"Script"))return jv(qi(s));throw new De(905,!1)}function mm(s){return yr(s[0])}function Us(s){return function bE(s){return am()?.createScriptURL(s)||s}(s[0])}function Zv(s,a,l){return function PE(s,a){return"src"===a&&("embed"===s||"frame"===s||"iframe"===s||"media"===s||"script"===s)||"href"===a&&("base"===s||"link"===s)?Hd:Xo}(a,l)(s)}function zs(){const s=ne();return s&&s[No]}const es=new Ot("ENVIRONMENT_INITIALIZER"),gm=new Ot("INJECTOR",-1),Ud=new Ot("INJECTOR_DEF_TYPES");class qv{get(a,l=hi){if(l===hi){const d=new Error(`NullInjectorError: No provider for ${Y(a)}!`);throw d.name="NullInjectorError",d}return l}}function Yv(s){return{\u0275providers:s}}function _m(...s){return{\u0275providers:Ya(0,s),\u0275fromNgModule:!0}}function Ya(s,...a){const l=[],d=new Set;let f;return Zo(a,m=>{const v=m;ku(v,l,[],d)&&(f||(f=[]),f.push(v))}),void 0!==f&&br(f,l),l}function br(s,a){for(let l=0;l{a.push(m)})}}function ku(s,a,l,d){if(!(s=te(s)))return!1;let f=null,m=_s(s);const v=!m&&at(s);if(m||v){if(v&&!v.standalone)return!1;f=s}else{const w=s.ngModule;if(m=_s(w),!m)return!1;f=w}const b=d.has(f);if(v){if(b)return!1;if(d.add(f),v.dependencies){const w="function"==typeof v.dependencies?v.dependencies():v.dependencies;for(const T of w)ku(T,a,l,d)}}else{if(!m)return!1;{if(null!=m.imports&&!b){let T;d.add(f);try{Zo(m.imports,I=>{ku(I,a,l,d)&&(T||(T=[]),T.push(I))})}finally{}void 0!==T&&br(T,a)}if(!b){const T=Rr(f)||(()=>new f);a.push({provide:f,useFactory:T,deps:nt},{provide:Ud,useValue:f,multi:!0},{provide:es,useValue:()=>Ft(f),multi:!0})}const w=m.providers;null==w||b||Qa(w,I=>{a.push(I)})}}return f!==s&&void 0!==s.providers}function Qa(s,a){for(let l of s)mt(l)&&(l=l.\u0275providers),Array.isArray(l)?Qa(l,a):a(l)}const zd=z({provide:String,useValue:z});function Ru(s){return null!==s&&"object"==typeof s&&zd in s}function Gs(s){return"function"==typeof s}const vm=new Ot("Set Injector scope."),$d={},OE={};let ym;function Gd(){return void 0===ym&&(ym=new qv),ym}class Ws{}class Jv extends Ws{get destroyed(){return this._destroyed}constructor(a,l,d,f){super(),this.parent=l,this.source=d,this.scopes=f,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Fu(a,v=>this.processProvider(v)),this.records.set(gm,Ka(void 0,this)),f.has("environment")&&this.records.set(Ws,Ka(void 0,this));const m=this.records.get(vm);null!=m&&"string"==typeof m.value&&this.scopes.add(m.value),this.injectorDefTypes=new Set(this.get(Ud.multi,nt,Me.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const a of this._ngOnDestroyHooks)a.ngOnDestroy();for(const a of this._onDestroyHooks)a()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(a){this._onDestroyHooks.push(a)}runInContext(a){this.assertNotDestroyed();const l=Qr(this),d=Ee(void 0);try{return a()}finally{Qr(l),Ee(d)}}get(a,l=hi,d=Me.Default){this.assertNotDestroyed(),d=ys(d);const f=Qr(this),m=Ee(void 0);try{if(!(d&Me.SkipSelf)){let b=this.records.get(a);if(void 0===b){const w=function bm(s){return"function"==typeof s||"object"==typeof s&&s instanceof Ot}(a)&&Ar(a);b=w&&this.injectableDefInScope(w)?Ka(Wd(a),$d):null,this.records.set(a,b)}if(null!=b)return this.hydrate(a,b)}return(d&Me.Self?Gd():this.parent).get(a,l=d&Me.Optional&&l===hi?null:l)}catch(v){if("NullInjectorError"===v.name){if((v[ba]=v[ba]||[]).unshift(Y(a)),f)throw v;return function Ui(s,a,l,d){const f=s[ba];throw a[zc]&&f.unshift(a[zc]),s.message=function Se(s,a,l,d=null){s=s&&"\n"===s.charAt(0)&&s.charAt(1)==vs?s.slice(2):s;let f=Y(a);if(Array.isArray(a))f=a.map(Y).join(" -> ");else if("object"==typeof a){let m=[];for(let v in a)if(a.hasOwnProperty(v)){let b=a[v];m.push(v+":"+("string"==typeof b?JSON.stringify(b):Y(b)))}f=`{${m.join(", ")}}`}return`${l}${d?"("+d+")":""}[${f}]: ${s.replace(Uc,"\n ")}`}("\n"+s.message,f,l,d),s[bt]=f,s[ba]=null,s}(v,a,"R3InjectorError",this.source)}throw v}finally{Ee(m),Qr(f)}}resolveInjectorInitializers(){const a=Qr(this),l=Ee(void 0);try{const d=this.get(es.multi,nt,Me.Self);for(const f of d)f()}finally{Qr(a),Ee(l)}}toString(){const a=[],l=this.records;for(const d of l.keys())a.push(Y(d));return`R3Injector[${a.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new De(205,!1)}processProvider(a){let l=Gs(a=te(a))?a:te(a&&a.provide);const d=function RE(s){return Ru(s)?Ka(void 0,s.useValue):Ka(Xv(s),$d)}(a);if(Gs(a)||!0!==a.multi)this.records.get(l);else{let f=this.records.get(l);f||(f=Ka(void 0,$d,!0),f.factory=()=>Ca(f.multi),this.records.set(l,f)),l=a,f.multi.push(a)}this.records.set(l,d)}hydrate(a,l){return l.value===$d&&(l.value=OE,l.value=l.factory()),"object"==typeof l.value&&l.value&&function ey(s){return null!==s&&"object"==typeof s&&"function"==typeof s.ngOnDestroy}(l.value)&&this._ngOnDestroyHooks.add(l.value),l.value}injectableDefInScope(a){if(!a.providedIn)return!1;const l=te(a.providedIn);return"string"==typeof l?"any"===l||this.scopes.has(l):this.injectorDefTypes.has(l)}}function Wd(s){const a=Ar(s),l=null!==a?a.factory:Rr(s);if(null!==l)return l;if(s instanceof Ot)throw new De(204,!1);if(s instanceof Function)return function kE(s){const a=s.length;if(a>0)throw yd(a,"?"),new De(204,!1);const l=function fp(s){const a=s&&(s[Ao]||s[Hc]);return a?(function Hn(s){if(s.hasOwnProperty("name"))return s.name;(""+s).match(/^function\s*([^\s(]+)/)}(s),a):null}(s);return null!==l?()=>l.factory(s):()=>new s}(s);throw new De(204,!1)}function Xv(s,a,l){let d;if(Gs(s)){const f=te(s);return Rr(f)||Wd(f)}if(Ru(s))d=()=>te(s.useValue);else if(function Kv(s){return!(!s||!s.useFactory)}(s))d=()=>s.useFactory(...Ca(s.deps||[]));else if(function Qv(s){return!(!s||!s.useExisting)}(s))d=()=>Ft(te(s.useExisting));else{const f=te(s&&(s.useClass||s.provide));if(!function FE(s){return!!s.deps}(s))return Rr(f)||Wd(f);d=()=>new f(...Ca(s.deps))}return d}function Ka(s,a,l=!1){return{factory:s,value:a,multi:l?[]:void 0}}function Fu(s,a){for(const l of s)Array.isArray(l)?Fu(l,a):l&&mt(l)?Fu(l.\u0275providers,a):a(l)}class jr{}class vo{}class Zs{resolveComponentFactory(a){throw function ty(s){const a=Error(`No component factory found for ${Y(s)}. Did you add it to @NgModule.entryComponents?`);return a.ngComponent=s,a}(a)}}let Ja=(()=>{class s{}return s.NULL=new Zs,s})();function NE(){return yo(Sn(),ne())}function yo(s,a){return new Xa(Un(s,a))}let Xa=(()=>{class s{constructor(l){this.nativeElement=l}}return s.__NG_ELEMENT_ID__=NE,s})();function wm(s){return s instanceof Xa?s.nativeElement:s}class Em{}let Dm=(()=>{class s{}return s.__NG_ELEMENT_ID__=()=>function Sm(){const s=ne(),l=zn(Sn().index,s);return(mn(l)?l:s)[je]}(),s})(),ny=(()=>{class s{}return s.\u0275prov=En({token:s,providedIn:"root",factory:()=>null}),s})();class el{constructor(a){this.full=a,this.major=a.split(".")[0],this.minor=a.split(".")[1],this.patch=a.split(".").slice(2).join(".")}}const iy=new el("15.2.7"),Zd={},Nu="ngOriginalError";function qd(s){return s[Nu]}class tl{constructor(){this._console=console}handleError(a){const l=this._findOriginalError(a);this._console.error("ERROR",a),l&&this._console.error("ORIGINAL ERROR",l)}_findOriginalError(a){let l=a&&qd(a);for(;l&&qd(l);)l=qd(l);return l||null}}function qs(s){return s.ownerDocument.defaultView}function sy(s){return s.ownerDocument}function ay(s){return s.ownerDocument.body}function Hr(s){return s instanceof Function?s():s}function ly(s,a,l){let d=s.length;for(;;){const f=s.indexOf(a,l);if(-1===f)return f;if(0===f||s.charCodeAt(f-1)<=32){const m=a.length;if(f+m===d||s.charCodeAt(f+m)<=32)return f}l=f+1}}const uy="ng-template";function Tm(s,a,l){let d=0,f=!0;for(;dm?"":f[O+1].toLowerCase();const $=8&d?N:null;if($&&-1!==ly($,T,0)||2&d&&T!==N){if(Cr(d))return!1;v=!0}}}}else{if(!v&&!Cr(d)&&!Cr(w))return!1;if(v&&Cr(w))continue;v=!1,d=w|1&d}}return Cr(d)||v}function Cr(s){return 0==(1&s)}function VE(s,a,l,d){if(null===a)return-1;let f=0;if(d||!l){let m=!1;for(;f-1)for(l++;l0?'="'+b+'"':"")+"]"}else 8&d?f+="."+v:4&d&&(f+=" "+v);else""!==f&&!Cr(v)&&(a+=il(m,f),f=""),d=v,m=m||!Cr(d);l++}return""!==f&&(a+=il(m,f)),a}const Ne={};function dy(s){hy(ut(),ne(),ln()+s,!1)}function hy(s,a,l,d){if(!d)if(3==(3&a[re])){const m=s.preOrderCheckHooks;null!==m&&ka(a,m,l)}else{const m=s.preOrderHooks;null!==m&&Wi(a,m,0,l)}zo(l)}const fy={\u0275\u0275defineInjectable:En,\u0275\u0275defineInjector:gs,\u0275\u0275inject:Ft,\u0275\u0275invalidFactoryDep:Oo,resolveForwardRef:te};const GE=z({provide:String,useValue:z});function py(s){return void 0!==s.useClass}function my(s){return void 0!==s.useFactory}const rl=Ii("Injectable",void 0,void 0,void 0,(s,a)=>function $E(s,a){let l=null,d=null;s.hasOwnProperty(Ao)||Object.defineProperty(s,Ao,{get:()=>(null===l&&(l=Mn().compileInjectable(fy,`ng:///${s.name}/\u0275prov.js`,function Jd(s,a){const l=a||{providedIn:null},d={name:s.name,type:s,typeArgumentCount:0,providedIn:l.providedIn};return(py(l)||my(l))&&void 0!==l.deps&&(d.deps=bv(l.deps)),py(l)?d.useClass=l.useClass:function ix(s){return GE in s}(l)?d.useValue=l.useValue:my(l)?d.useFactory=l.useFactory:function xm(s){return void 0!==s.useExisting}(l)&&(d.useExisting=l.useExisting),d}(s,a))),l)}),s.hasOwnProperty(sr)||Object.defineProperty(s,sr,{get:()=>{if(null===d){const f=Mn();d=f.compileFactory(fy,`ng:///${s.name}/\u0275fac.js`,{name:s.name,type:s,typeArgumentCount:0,deps:Ed(s),target:f.FactoryTarget.Injectable})}return d},configurable:!0})}(s,a));function Im(s,a=null,l=null,d){const f=gy(s,a,l,d);return f.resolveInjectorInitializers(),f}function gy(s,a=null,l=null,d,f=new Set){const m=[l||nt,_m(s)];return d=d||("object"==typeof s?void 0:Y(s)),new Jv(m,a||Gd(),d||null,f)}let ns=(()=>{class s{static create(l,d){if(Array.isArray(l))return Im({name:""},d,l,"");{const f=l.name??"";return Im({name:f},l.parent,l.providers,f)}}}return s.THROW_IF_NOT_FOUND=hi,s.NULL=new qv,s.\u0275prov=En({token:s,providedIn:"any",factory:()=>Ft(gm)}),s.__NG_ELEMENT_ID__=-1,s})();function Pm(s){return s.length>1?" ("+function WE(s){const a=[];for(let l=0;l-1)return a.push(s[l]),a;a.push(s[l])}return a}(s.slice().reverse()).map(d=>Y(d.token)).join(" -> ")+")":""}function Lm(s,a,l,d){const f=[a],m=l(f),v=d?function ry(s,a){const l=`${s} caused by: ${a instanceof Error?a.message:a}`,d=Error(l);return d[Nu]=a,d}(m,d):Error(m);return v.addKey=ZE,v.keys=f,v.injectors=[s],v.constructResolvingMessage=l,v[Nu]=d,v}function ZE(s,a){this.injectors.push(s),this.keys.push(a),this.message=this.constructResolvingMessage(this.keys)}function Xd(s,a){const l=[];for(let d=0,f=a.length;dd,l=[eh.fromKey(Yi.get(s.useExisting))]):s.useFactory?(a=s.useFactory,l=function wy(s,a){if(a){const l=a.map(d=>[d]);return a.map(d=>Dy(s,d,l))}return Ey(s)}(s.useFactory,s.deps)):(a=()=>s.useValue,l=JE);return new Om(a,l)}function th(s){return new Hu(Yi.get(s.provide),[by(s)],s.multi||!1)}function nh(s){const d=function Cy(s,a){for(let l=0;l{if(l instanceof Bp)a.push({provide:l,useClass:l});else if(l&&"object"==typeof l&&void 0!==l.provide)a.push(l);else{if(!Array.isArray(l))throw function QE(s){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${s}`)}(l);ol(l,a)}}),a}function Ey(s){const a=Cu().parameters(s);if(!a)return[];if(a.some(l=>null==l))throw Xd(s,a);return a.map(l=>Dy(s,l,a))}function Dy(s,a,l){let d=null,f=!1;if(!Array.isArray(a))return km(a instanceof _t?a.token:a,f,null);let m=null;for(let v=0;v{class s{constructor(l,d){this._constructionCounter=0,this._providers=l,this.parent=d||null;const f=l.length;this.keyIds=[],this.objs=[];for(let m=0;m=this._providers.length)throw function vy(s){return Error(`Index ${s} is out-of-bounds.`)}(l);return this._providers[l]}_new(l){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function YE(s,a){return Lm(s,a,function(l){return`Cannot instantiate cyclic dependency!${Pm(l)}`})}(this,l.key);return this._instantiateProvider(l)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(l){if(l.multiProvider){const d=[];for(let f=0;fthis._getByReflectiveDependency(b))}catch(b){throw b.addKey&&b.addKey(this,l.key),b}try{v=f(...m)}catch(b){throw function _y(s,a,l,d){return Lm(s,d,function(f){const m=Y(f[0].token);return`${a.message}: Error during instantiation of ${m}!${Pm(f)}.`},a)}(this,b,0,l.key)}return v}_getByReflectiveDependency(l){return this._getByKey(l.key,l.visibility,l.optional?null:hi)}_getByKey(l,d,f){return l===s.INJECTOR_KEY?this:d instanceof wd?this._getByKeySelf(l,f):this._getByKeyDefault(l,f,d)}_getObjByKeyId(l){for(let d=0;d' "'+d.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return s.INJECTOR_KEY=Yi.get(ns),s})();function al(s,a=Me.Default){const l=ne();return null===l?Ft(s,a):Ba(Sn(),l,te(s),a)}function Ty(){throw new Error("invalid")}function My(s,a){const l=s.contentQueries;if(null!==l)for(let d=0;dSt&&hy(s,a,St,!1),kn(v?2:0,f),l(d,f)}finally{zo(m),kn(v?3:1,f)}}function Fm(s,a,l){if(Ds(a)){const f=a.directiveEnd;for(let m=a.directiveStart;m0;){const l=s[--a];if("number"==typeof l&&l<0)return l}return 0})(v)!=b&&v.push(b),v.push(l,d,m)}}(s,a,d,ul(s,l,f.hostVars,Ne),f)}function Ur(s,a,l,d,f,m){const v=Un(s,a);Qs(a[je],v,m,s.value,l,d,f)}function Qs(s,a,l,d,f,m,v){if(null==m)s.removeAttribute(a,f,l);else{const b=null==v?Ve(m):v(m,d||"",f);s.setAttribute(a,f,b,l)}}function Ry(s,a,l,d,f,m){const v=m[a];if(null!==v){const b=d.setInput;for(let w=0;w0&&Zu(l)}}function Zu(s){for(let d=qp(s);null!==d;d=Pv(d))for(let f=pn;f0&&Zu(m)}const l=s[ge].components;if(null!==l)for(let d=0;d0&&Zu(f)}}function Fy(s,a){const l=zn(a,s),d=l[ge];(function Oi(s,a){for(let l=a.length;l-1&&(Jp(a,d),_u(l,d))}this._attachedToViewContainer=!1}Av(this._lView[ge],this._lView)}onDestroy(a){rh(this._lView[ge],this._lView,null,a)}markForCheck(){bo(this._cdRefInjectingView||this._lView)}detach(){this._lView[re]&=-65}reattach(){this._lView[re]|=64}detectChanges(){Um(this._lView[ge],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new De(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Ei(s,a){xu(s,a,a[je],2,null,null)}(this._lView[ge],this._lView)}attachToAppRef(a){if(this._attachedToViewContainer)throw new De(902,!1);this._appRef=a}}class Vy extends cl{constructor(a){super(a),this._view=a}detectChanges(){const a=this._view;Um(a[ge],a,a[Dt],!1)}checkNoChanges(){}get context(){return null}}class jy extends Ja{constructor(a){super(),this.ngModule=a}resolveComponentFactory(a){const l=at(a);return new $r(l,this.ngModule)}}function bD(s){const a=[];for(let l in s)s.hasOwnProperty(l)&&a.push({propName:s[l],templateName:l});return a}class ax{constructor(a,l){this.injector=a,this.parentInjector=l}get(a,l,d){d=ys(d);const f=this.injector.get(a,Zd,d);return f!==Zd||l===Zd?f:this.parentInjector.get(a,l,d)}}class $r extends vo{get inputs(){return bD(this.componentDef.inputs)}get outputs(){return bD(this.componentDef.outputs)}constructor(a,l){super(),this.componentDef=a,this.ngModule=l,this.componentType=a.type,this.selector=function zE(s){return s.map(UE).join(",")}(a.selectors),this.ngContentSelectors=a.ngContentSelectors?a.ngContentSelectors:[],this.isBoundToModule=!!l}create(a,l,d,f){let m=(f=f||this.ngModule)instanceof Ws?f:f?.injector;m&&null!==this.componentDef.getStandaloneInjector&&(m=this.componentDef.getStandaloneInjector(m)||m);const v=m?new ax(a,m):a,b=v.get(Em,null);if(null===b)throw new De(407,!1);const w=v.get(ny,null),T=b.createRenderer(null,this.componentDef),I=this.componentDef.selectors[0][0]||"div",O=d?function Py(s,a,l){return s.selectRootElement(a,l===Si.ShadowDom)}(T,d,this.componentDef.encapsulation):vr(T,I,function sx(s){const a=s.toLowerCase();return"svg"===a?Ti:"math"===a?td:null}(I)),N=this.componentDef.onPush?288:272,$=Vm(0,null,null,1,0,null,null,null,null,null),X=zu(null,$,null,N,null,null,b,T,w,v,null);let le,pe;sd(X);try{const be=this.componentDef;let xe,oe=null;be.findHostDirectiveDefs?(xe=[],oe=new Map,be.findHostDirectiveDefs(be,xe,oe),xe.push(be)):xe=[be];const $e=function ED(s,a){const l=s[ge],d=St;return s[d]=a,ll(l,d,2,"#host",null)}(X,O),Bt=function DD(s,a,l,d,f,m,v,b){const w=f[ge];!function dh(s,a,l,d){for(const f of s)a.mergedAttrs=C(a.mergedAttrs,f.hostAttrs);null!==a.mergedAttrs&&(uh(a,a.mergedAttrs,!0),null!==l&&Qe(d,l,a))}(d,s,a,v);const T=m.createRenderer(a,l),I=zu(f,Iy(l),null,l.onPush?32:16,f[s.index],s,m,T,b||null,null,null);return w.firstCreatePass&&Wu(w,s,d.length-1),ah(f,I),f[s.index]=I}($e,O,be,xe,X,b,T);pe=nu($,St),O&&function TD(s,a,l,d){if(d)u(s,l,["ng-version",iy.full]);else{const{attrs:f,classes:m}=function ju(s){const a=[],l=[];let d=1,f=2;for(;d0&&sm(s,l,m.join(" "))}}(T,be,O,d),void 0!==l&&function MD(s,a,l){const d=s.projection=[];for(let f=0;f=0;d--){const f=s[d];f.hostVars=a+=f.hostVars,f.hostAttrs=C(f.hostAttrs,l=C(l,f.hostAttrs))}}(d)}function zy(s){return s===ei?{}:s===nt?[]:s}function $y(s,a){const l=s.viewQuery;s.viewQuery=l?(d,f)=>{a(d,f),l(d,f)}:a}function ID(s,a){const l=s.contentQueries;s.contentQueries=l?(d,f,m)=>{a(d,f,m),l(d,f,m)}:a}function PD(s,a){const l=s.hostBindings;s.hostBindings=l?(d,f)=>{a(d,f),l(d,f)}:a}const Gy=["providersResolver"],Wy=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function LD(s){let l,a=Uy(s.type);l=_n(s)?a.\u0275cmp:a.\u0275dir;const d=s;for(const f of Gy)d[f]=l[f];if(_n(l))for(const f of Wy)d[f]=l[f]}function Zy(s){return a=>{a.findHostDirectiveDefs=Gt,a.hostDirectives=(Array.isArray(s)?s:s()).map(l=>"function"==typeof l?{directive:te(l),inputs:ei,outputs:ei}:{directive:te(l.directive),inputs:cn(l.inputs),outputs:cn(l.outputs)})}}function Gt(s,a,l){if(null!==s.hostDirectives)for(const d of s.hostDirectives){const f=Dn(d.directive);AD(f.declaredInputs,d.inputs),Gt(f,a,l),l.set(f,d),a.push(f)}}function cn(s){if(void 0===s||0===s.length)return ei;const a={};for(let l=0;l=s.data.length&&(s.data[l]=null,s.blueprint[l]=null),a[l]=d}function Ym(s){return jo(function Ps(){return Te.lFrame.contextLView}(),St+s)}function Eh(s,a,l){const d=ne();return Fn(d,ro(),a)&&Wn(ut(),wt(),d,s,a,d[je],l,!1),Eh}function Qm(s,a,l,d,f){const v=f?"class":"style";lh(s,l,a.inputs[v],v,d)}function qu(s,a,l,d){const f=ne(),m=ut(),v=St+s,b=f[je],w=m.firstCreatePass?function Ky(s,a,l,d,f,m){const v=a.consts,w=ll(a,s,2,d,to(v,f));return jm(a,l,w,to(v,m)),null!==w.attrs&&uh(w,w.attrs,!1),null!==w.mergedAttrs&&uh(w,w.mergedAttrs,!0),null!==a.queries&&a.queries.elementStart(a,w),w}(v,m,f,a,l,d):m.data[v],T=f[v]=vr(b,a,function dd(){return Te.lFrame.currentNamespace}()),I=Nt(w);return an(w,!0),Qe(b,T,w),32!=(32&w.flags)&&Rd(m,f,T,w),0===function cr(){return Te.lFrame.elementDepthCount}()&&Rn(T,f),function zt(){Te.lFrame.elementDepthCount++}(),I&&(Nm(m,f,w),Fm(m,w,f)),null!==d&&Bm(f,w),qu}function ml(){let s=Sn();au()?Gi():(s=s.parent,an(s,!1));const a=s;!function xs(){Te.lFrame.elementDepthCount--}();const l=ut();return l.firstCreatePass&&(bi(l,s),Ds(s)&&l.queries.elementEnd(s)),null!=a.classesWithoutHost&&function md(s){return 0!=(8&s.flags)}(a)&&Qm(l,a,ne(),a.classesWithoutHost,!0),null!=a.stylesWithoutHost&&function Wo(s){return 0!=(16&s.flags)}(a)&&Qm(l,a,ne(),a.stylesWithoutHost,!1),ml}function Dh(s,a,l,d){return qu(s,a,l,d),ml(),Dh}function Yu(s,a,l){const d=ne(),f=ut(),m=s+St,v=f.firstCreatePass?function Km(s,a,l,d,f){const m=a.consts,v=to(m,d),b=ll(a,s,8,"ng-container",v);return null!==v&&uh(b,v,!0),jm(a,l,b,to(m,f)),null!==a.queries&&a.queries.elementStart(a,b),b}(m,f,d,a,l):f.data[m];an(v,!0);const b=d[m]=d[je].createComment("");return Rd(f,d,b,v),Rn(b,d),Nt(v)&&(Nm(f,d,v),Fm(f,v,d)),null!=l&&Bm(d,v),Yu}function Qu(){let s=Sn();const a=ut();return au()?Gi():(s=s.parent,an(s,!1)),a.firstCreatePass&&(bi(a,s),Ds(s)&&a.queries.elementEnd(s)),Qu}function Sh(s,a,l){return Yu(s,a,l),Qu(),Sh}function Th(){return ne()}function gl(s){return!!s&&"function"==typeof s.then}function Jm(s){return!!s&&"function"==typeof s.subscribe}const Xm=Jm;function Mh(s,a,l,d){const f=ne(),m=ut(),v=Sn();return eg(m,f,f[je],v,s,a,d),Mh}function Nn(s,a){const l=Sn(),d=ne(),f=ut();return eg(f,d,yD(Ls(f.data),l,d),l,s,a),Nn}function eg(s,a,l,d,f,m,v){const b=Nt(d),T=s.firstCreatePass&&vD(s),I=a[Dt],O=By(a);let N=!0;if(3&d.type||v){const le=Un(d,a),pe=v?v(le):le,be=O.length,xe=v?$e=>v(Ut($e[d.index])):d.index;let oe=null;if(!v&&b&&(oe=function rs(s,a,l,d){const f=s.cleanup;if(null!=f)for(let m=0;mw?b[w]:null}"string"==typeof v&&(m+=2)}return null}(s,a,f,d.index)),null!==oe)(oe.__ngLastListenerFn__||oe).__ngNextListenerFn__=m,oe.__ngLastListenerFn__=m,N=!1;else{m=RD(d,a,I,m,!1);const $e=l.listen(pe,f,m);O.push(m,$e),T&&T.push(f,xe,be,be+1)}}else m=RD(d,a,I,m,!1);const $=d.outputs;let X;if(N&&null!==$&&(X=$[f])){const le=X.length;if(le)for(let pe=0;pe-1?zn(s.index,a):a);let w=kD(a,l,d,v),T=m.__ngNextListenerFn__;for(;T;)w=kD(a,l,T,v)&&w,T=T.__ngNextListenerFn__;return f&&!1===w&&(v.preventDefault(),v.returnValue=!1),w}}function In(s=1){return function Pp(s){return(Te.lFrame.contextLView=function cv(s,a){for(;s>0;)a=a[gi],s--;return a}(s,Te.lFrame.contextLView))[Dt]}(s)}function Ku(s,a){let l=null;const d=function Kd(s){const a=s.attrs;if(null!=a){const l=a.indexOf(5);if(!(1&l))return a[l+1]}return null}(s);for(let f=0;f>17&32767}function ig(s){return 2|s}function wo(s){return(131068&s)>>2}function Js(s,a){return-131069&s|a<<2}function os(s){return 1|s}function sb(s,a,l,d,f){const m=s[l+1],v=null===a;let b=d?Co(m):wo(m),w=!1;for(;0!==b&&(!1===w||v);){const I=s[b+1];Ah(s[b],a)&&(w=!0,s[b+1]=d?os(I):ig(I)),b=d?Co(I):wo(I)}w&&(s[l+1]=d?ig(m):os(m))}function Ah(s,a){return null===s||null==a||(Array.isArray(s)?s[1]:s)===a||!(!Array.isArray(s)||"string"!=typeof a)&&Ua(s,a)>=0}const dn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function og(s){return s.substring(dn.key,dn.keyEnd)}function Oh(s){return s.substring(dn.value,dn.valueEnd)}function VD(s,a){const l=dn.textEnd;return l===a?-1:(a=dn.keyEnd=function ec(s,a,l){for(;a32;)a++;return a}(s,dn.key=a,l),Ki(s,a,l))}function sg(s,a){const l=dn.textEnd;let d=dn.key=Ki(s,a,l);return l===d?-1:(d=dn.keyEnd=function kh(s,a,l){let d;for(;a=65&&(-33&d)<=90||d>=48&&d<=57);)a++;return a}(s,d,l),d=vl(s,d,l),d=dn.value=Ki(s,d,l),d=dn.valueEnd=function Rh(s,a,l){let d=-1,f=-1,m=-1,v=a,b=v;for(;v32&&(b=v),m=f,f=d,d=-33&w}return b}(s,d,l),vl(s,d,l))}function jD(s){dn.key=0,dn.keyEnd=0,dn.value=0,dn.valueEnd=0,dn.textEnd=s.length}function Ki(s,a,l){for(;a=0;l=sg(a,l))lb(s,og(a),Oh(a))}function ag(s){Sr(Ci,Wr,s,!0)}function Wr(s,a){for(let l=function Xu(s){return jD(s),VD(s,Ki(s,0,dn.textEnd))}(a);l>=0;l=VD(a,l))Ci(s,og(a),!0)}function Ji(s,a,l,d){const f=ne(),m=ut(),v=yi(2);m.firstUpdatePass&&ab(m,s,v,d),a!==Ne&&Fn(f,v,a)&&ub(m,m.data[ln()],f,f[je],s,f[v+1]=function cb(s,a){return null==s||""===s||("string"==typeof a?s+=a:"object"==typeof s&&(s=Y(qi(s)))),s}(a,l),d,v)}function Sr(s,a,l,d){const f=ut(),m=yi(2);f.firstUpdatePass&&ab(f,null,m,d);const v=ne();if(l!==Ne&&Fn(v,m,l)){const b=f.data[ln()];if(hg(b,d)&&!UD(f,m)){let w=d?b.classesWithoutHost:b.stylesWithoutHost;null!==w&&(l=me(w,l||"")),Qm(f,b,v,l,d)}else!function px(s,a,l,d,f,m,v,b){f===Ne&&(f=nt);let w=0,T=0,I=0=s.expandoStartIndex}function ab(s,a,l,d){const f=s.data;if(null===f[l+1]){const m=f[ln()],v=UD(s,l);hg(m,d)&&null===a&&!v&&(a=!1),a=function lg(s,a,l,d){const f=Ls(s);let m=d?a.residualClasses:a.residualStyles;if(null===f)0===(d?a.classBindings:a.styleBindings)&&(l=bl(l=cg(null,s,a,l,d),a.attrs,d),m=null);else{const v=a.directiveStylingLast;if(-1===v||s[v]!==f)if(l=cg(f,s,a,l,d),null===m){let w=function hx(s,a,l){const d=l?a.classBindings:a.styleBindings;if(0!==wo(d))return s[Co(d)]}(s,a,d);void 0!==w&&Array.isArray(w)&&(w=cg(null,s,a,w[1],d),w=bl(w,a.attrs,d),function fx(s,a,l,d){s[Co(l?a.classBindings:a.styleBindings)]=d}(s,a,d,w))}else m=function ug(s,a,l){let d;const f=a.directiveEnd;for(let m=1+a.directiveStylingLast;m0)&&(T=!0)):I=l,f)if(0!==w){const N=Co(s[b+1]);s[d+1]=Ih(N,b),0!==N&&(s[N+1]=Js(s[N+1],d)),s[b+1]=function ND(s,a){return 131071&s|a<<17}(s[b+1],d)}else s[d+1]=Ih(b,0),0!==b&&(s[b+1]=Js(s[b+1],d)),b=d;else s[d+1]=Ih(w,0),0===b?b=d:s[w+1]=Js(s[w+1],d),w=d;T&&(s[d+1]=ig(s[d+1])),sb(s,I,d,!0),sb(s,I,d,!1),function rg(s,a,l,d,f){const m=f?s.residualClasses:s.residualStyles;null!=m&&"string"==typeof a&&Ua(m,a)>=0&&(l[d+1]=os(l[d+1]))}(a,I,s,d,m),v=Ih(b,w),m?a.classBindings=v:a.styleBindings=v}(f,m,a,l,v,d)}}function cg(s,a,l,d,f){let m=null;const v=l.directiveEnd;let b=l.directiveStylingLast;for(-1===b?b=l.directiveStart:b++;b0;){const w=s[f],T=Array.isArray(w),I=T?w[1]:w,O=null===I;let N=l[f+1];N===Ne&&(N=O?nt:void 0);let $=O?co(N,d):I===d?N:void 0;if(T&&!wl($)&&($=co(w,d)),wl($)&&(b=$,v))return b;const X=s[f+1];f=v?Co(X):wo(X)}if(null!==a){let w=m?a.residualClasses:a.residualStyles;null!=w&&(b=co(w,d))}return b}function wl(s){return void 0!==s}function hg(s,a){return 0!=(s.flags&(a?8:16))}function Xs(s,a=""){const l=ne(),d=ut(),f=s+St,m=d.firstCreatePass?ll(d,f,1,a,null):d.data[f],v=l[f]=Qp(l[je],a);Rd(d,l,v,m),an(m,!1)}function ic(s){return Fh("",s,""),ic}function Fh(s,a,l){const d=ne(),f=hl(d,s,a,l);return f!==Ne&&wr(d,ln(),f),Fh}function Nh(s,a,l,d,f){const m=ne(),v=fl(m,s,a,l,d,f);return v!==Ne&&wr(m,ln(),v),Nh}function db(s,a,l,d,f,m,v){const b=ne(),w=Di(b,s,a,l,d,f,m,v);return w!==Ne&&wr(b,ln(),w),db}function hb(s,a,l,d,f,m,v,b,w){const T=ne(),I=pl(T,s,a,l,d,f,m,v,b,w);return I!==Ne&&wr(T,ln(),I),hb}function fb(s,a,l,d,f,m,v,b,w,T,I){const O=ne(),N=Ri(O,s,a,l,d,f,m,v,b,w,T,I);return N!==Ne&&wr(O,ln(),N),fb}function pb(s,a,l,d,f,m,v,b,w,T,I,O,N){const $=ne(),X=Ks($,s,a,l,d,f,m,v,b,w,T,I,O,N);return X!==Ne&&wr($,ln(),X),pb}function fg(s,a,l,d,f,m,v,b,w,T,I,O,N,$,X){const le=ne(),pe=Jt(le,s,a,l,d,f,m,v,b,w,T,I,O,N,$,X);return pe!==Ne&&wr(le,ln(),pe),fg}function Bh(s,a,l,d,f,m,v,b,w,T,I,O,N,$,X,le,pe){const be=ne(),xe=Fi(be,s,a,l,d,f,m,v,b,w,T,I,O,N,$,X,le,pe);return xe!==Ne&&wr(be,ln(),xe),Bh}function pg(s){const a=ne(),l=dl(a,s);return l!==Ne&&wr(a,ln(),l),pg}function mg(s,a,l){Sr(Ci,Wr,hl(ne(),s,a,l),!0)}function Xi(s,a,l,d,f){Sr(Ci,Wr,fl(ne(),s,a,l,d,f),!0)}function Vh(s,a,l,d,f,m,v){Sr(Ci,Wr,Di(ne(),s,a,l,d,f,m,v),!0)}function mb(s,a,l,d,f,m,v,b,w){Sr(Ci,Wr,pl(ne(),s,a,l,d,f,m,v,b,w),!0)}function gg(s,a,l,d,f,m,v,b,w,T,I){Sr(Ci,Wr,Ri(ne(),s,a,l,d,f,m,v,b,w,T,I),!0)}function gb(s,a,l,d,f,m,v,b,w,T,I,O,N){Sr(Ci,Wr,Ks(ne(),s,a,l,d,f,m,v,b,w,T,I,O,N),!0)}function zD(s,a,l,d,f,m,v,b,w,T,I,O,N,$,X){Sr(Ci,Wr,Jt(ne(),s,a,l,d,f,m,v,b,w,T,I,O,N,$,X),!0)}function _g(s,a,l,d,f,m,v,b,w,T,I,O,N,$,X,le,pe){Sr(Ci,Wr,Fi(ne(),s,a,l,d,f,m,v,b,w,T,I,O,N,$,X,le,pe),!0)}function _b(s){Sr(Ci,Wr,dl(ne(),s),!0)}function vg(s,a,l){Dr(hl(ne(),s,a,l))}function vb(s,a,l,d,f){Dr(fl(ne(),s,a,l,d,f))}function yg(s,a,l,d,f,m,v){Dr(Di(ne(),s,a,l,d,f,m,v))}function jh(s,a,l,d,f,m,v,b,w){Dr(pl(ne(),s,a,l,d,f,m,v,b,w))}function yb(s,a,l,d,f,m,v,b,w,T,I){Dr(Ri(ne(),s,a,l,d,f,m,v,b,w,T,I))}function Eo(s,a,l,d,f,m,v,b,w,T,I,O,N){Dr(Ks(ne(),s,a,l,d,f,m,v,b,w,T,I,O,N))}function bb(s,a,l,d,f,m,v,b,w,T,I,O,N,$,X){Dr(Jt(ne(),s,a,l,d,f,m,v,b,w,T,I,O,N,$,X))}function ss(s,a,l,d,f,m,v,b,w,T,I,O,N,$,X,le,pe){Dr(Fi(ne(),s,a,l,d,f,m,v,b,w,T,I,O,N,$,X,le,pe))}function Cb(s){Dr(dl(ne(),s))}function rc(s,a,l,d,f){return Ji(s,hl(ne(),a,l,d),f,!1),rc}function bg(s,a,l,d,f,m,v){return Ji(s,fl(ne(),a,l,d,f,m),v,!1),bg}function oc(s,a,l,d,f,m,v,b,w){return Ji(s,Di(ne(),a,l,d,f,m,v,b),w,!1),oc}function Hh(s,a,l,d,f,m,v,b,w,T,I){return Ji(s,pl(ne(),a,l,d,f,m,v,b,w,T),I,!1),Hh}function Cg(s,a,l,d,f,m,v,b,w,T,I,O,N){return Ji(s,Ri(ne(),a,l,d,f,m,v,b,w,T,I,O),N,!1),Cg}function El(s,a,l,d,f,m,v,b,w,T,I,O,N,$,X){return Ji(s,Ks(ne(),a,l,d,f,m,v,b,w,T,I,O,N,$),X,!1),El}function wg(s,a,l,d,f,m,v,b,w,T,I,O,N,$,X,le,pe){return Ji(s,Jt(ne(),a,l,d,f,m,v,b,w,T,I,O,N,$,X,le),pe,!1),wg}function Uh(s,a,l,d,f,m,v,b,w,T,I,O,N,$,X,le,pe,be,xe){return Ji(s,Fi(ne(),a,l,d,f,m,v,b,w,T,I,O,N,$,X,le,pe,be),xe,!1),Uh}function Eg(s,a,l){return Ji(s,dl(ne(),a),l,!1),Eg}function Do(s,a,l){const d=ne();return Fn(d,ro(),a)&&Wn(ut(),wt(),d,s,a,d[je],l,!0),Do}function ea(s,a,l){const d=ne();if(Fn(d,ro(),a)){const m=ut(),v=wt();Wn(m,v,d,s,a,yD(Ls(m.data),v,d),l,!0)}return ea}const ta=void 0;var $D=["en",[["a","p"],["AM","PM"],ta],[["AM","PM"],ta,ta],[["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"]],ta,[["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"]],ta,[["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}",ta,"{1} 'at' {0}",ta],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function wb(s){const l=Math.floor(Math.abs(s)),d=s.toString().replace(/^[^.]*\.?/,"").length;return 1===l&&0===d?1:5}];let sc={};function Dg(s,a,l){"string"!=typeof a&&(l=a,a=s[Ae.LocaleId]),a=a.toLowerCase().replace(/_/g,"-"),sc[a]=s,l&&(sc[a][Ae.ExtraData]=l)}function na(s){const a=function WD(s){return s.toLowerCase().replace(/_/g,"-")}(s);let l=as(a);if(l)return l;const d=a.split("-")[0];if(l=as(d),l)return l;if("en"===d)return $D;throw new De(701,!1)}function Eb(s){return na(s)[Ae.CurrencyCode]||null}function Sg(s){return na(s)[Ae.PluralCase]}function as(s){return s in sc||(sc[s]=Lt.ng&&Lt.ng.common&&Lt.ng.common.locales&&Lt.ng.common.locales[s]),sc[s]}function GD(){sc={}}var Ae=(()=>((Ae=Ae||{})[Ae.LocaleId=0]="LocaleId",Ae[Ae.DayPeriodsFormat=1]="DayPeriodsFormat",Ae[Ae.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ae[Ae.DaysFormat=3]="DaysFormat",Ae[Ae.DaysStandalone=4]="DaysStandalone",Ae[Ae.MonthsFormat=5]="MonthsFormat",Ae[Ae.MonthsStandalone=6]="MonthsStandalone",Ae[Ae.Eras=7]="Eras",Ae[Ae.FirstDayOfWeek=8]="FirstDayOfWeek",Ae[Ae.WeekendRange=9]="WeekendRange",Ae[Ae.DateFormat=10]="DateFormat",Ae[Ae.TimeFormat=11]="TimeFormat",Ae[Ae.DateTimeFormat=12]="DateTimeFormat",Ae[Ae.NumberSymbols=13]="NumberSymbols",Ae[Ae.NumberFormats=14]="NumberFormats",Ae[Ae.CurrencyCode=15]="CurrencyCode",Ae[Ae.CurrencySymbol=16]="CurrencySymbol",Ae[Ae.CurrencyName=17]="CurrencyName",Ae[Ae.Currencies=18]="Currencies",Ae[Ae.Directionality=19]="Directionality",Ae[Ae.PluralCase=20]="PluralCase",Ae[Ae.ExtraData=21]="ExtraData",Ae))();const Db=["zero","one","two","few","many"],ia="en-US",ac={marker:"element"},zh={marker:"ICU"};var Wt=(()=>((Wt=Wt||{})[Wt.SHIFT=2]="SHIFT",Wt[Wt.APPEND_EAGERLY=1]="APPEND_EAGERLY",Wt[Wt.COMMENT=2]="COMMENT",Wt))();let Mg=ia;function xg(s){(function wn(s,a){null==s&&We(a,s,null,"!=")})(s,"Expected localeId to be defined"),"string"==typeof s&&(Mg=s.toLowerCase().replace(/_/g,"-"))}function Tb(s,a,l){const d=a.insertBeforeIndex,f=Array.isArray(d)?d[0]:d;return null===f?Rv(s,0,l):Ut(l[f])}function Ig(s,a,l,d,f){const m=a.insertBeforeIndex;if(Array.isArray(m)){let v=d,b=null;if(3&a.type||(b=v,v=f),null!==v&&-1===a.componentOffset)for(let w=1;w1)for(let l=s.length-2;l>=0;l--){const d=s[l];YD(d)||gx(d,a)&&null===Mb(d)&&Pg(d,a.index)}}function YD(s){return!(64&s.type)}function gx(s,a){return YD(a)||s.index>a.index}function Mb(s){const a=s.insertBeforeIndex;return Array.isArray(a)?a[0]:a}function Pg(s,a){const l=s.insertBeforeIndex;Array.isArray(l)?l[0]=a:(Nv(Tb,Ig),s.insertBeforeIndex=a)}function Dl(s,a){const l=s.data[a];return null===l||"string"==typeof l?null:l.hasOwnProperty("currentCaseLViewIndex")?l:l.value}function QD(s,a,l){const d=ih(s,l,64,null,null);return qD(a,d),d}function Lg(s,a){const l=a[s.currentCaseLViewIndex];return null===l?l:l<0?~l:l}function Sl(s){return s>>>17}function KD(s){return(131070&s)>>>1}let Bn=0,lc=0;function Ib(s,a,l,d){const f=l[je];let v,m=null;for(let b=0;b>>1,l),null,null,$,X,null)}else switch(w){case zh:const T=a[++b],I=a[++b];null===l[I]&&Rn(l[I]=uE(f,T),l);break;case ac:const O=a[++b],N=a[++b];null===l[N]&&Rn(l[N]=vr(f,O,null),l)}}}function $h(s,a,l,d,f){for(let m=0;m>>2;switch(3&I){case 1:const N=l[++T],$=l[++T],X=s.data[O];"string"==typeof X?Qs(a[je],a[O],null,X,N,w,$):Wn(s,X,a,N,w,a[je],$,!1);break;case 0:const le=a[O];null!==le&&Lv(a[je],le,w);break;case 2:tS(s,Dl(s,O),a,w);break;case 3:Pb(s,Dl(s,O),d,a)}}}}else{const w=l[m+1];if(w>0&&3==(3&w)){const I=Dl(s,w>>>2);a[I.currentCaseLViewIndex]<0&&Pb(s,I,d,a)}}m+=b}}function Pb(s,a,l,d){let f=d[a.currentCaseLViewIndex];if(null!==f){let m=Bn;f<0&&(f=d[a.currentCaseLViewIndex]=~f,m=-1),$h(s,d,a.update[f],l,m)}}function tS(s,a,l,d){const f=function nS(s,a){let l=s.cases.indexOf(a);if(-1===l)switch(s.type){case 1:{const d=function ZD(s,a){const l=Sg(a)(parseInt(s,10)),d=Db[l];return void 0!==d?d:"other"}(a,function Sb(){return Mg}());l=s.cases.indexOf(d),-1===l&&"other"!==d&&(l=s.cases.indexOf("other"));break}case 0:l=s.cases.indexOf("other")}return-1===l?null:l}(a,d);if(Lg(a,l)!==f&&(Lb(s,a,l),l[a.currentCaseLViewIndex]=null===f?null:~f,null!==f)){const v=l[a.anchorIdx];v&&Ib(s,a.create[f],l,v)}}function Lb(s,a,l){let d=Lg(a,l);if(null!==d){const f=a.remove[d];for(let m=0;m0){const b=Ms(v,l);null!==b&&nm(l[je],b)}else Lb(s,Dl(s,~v),l)}}}function iS(){const s=[];let l,d,a=-1;function m(b,w){a=0;const T=Lg(b,w);d=null!==T?b.remove[T]:nt}function v(){if(a0?l[b]:(s.push(a,d),m(l[ge].data[~b],l),v())}return 0===s.length?null:(d=s.pop(),a=s.pop(),v())}return function f(b,w){for(l=w;s.length;)s.pop();return m(b.value,w),v}}const Wh=/\ufffd(\d+):?\d*\ufffd/gi,rS=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,oS=/\ufffd(\d+)\ufffd/,Ob=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,uc="\ufffd",sS=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,aS=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,lS=/\uE500/g;function kb(s,a,l,d,f,m,v){const b=ul(s,d,1,null);let w=b<l.length&&l.push(w)}return{type:d,mainBinding:f,cases:a,values:l}}function Ag(s){if(!s)return[];let a=0;const l=[],d=[],f=/[{}]/g;let m;for(f.lastIndex=0;m=f.exec(s);){const b=m.index;if("}"==m[0]){if(l.pop(),0==l.length){const w=s.substring(a,b);Ob.test(w)?d.push(mS(w)):d.push(w),a=b+1}}else{if(0==l.length){const w=s.substring(a,b);d.push(w),a=b+1}l.push("{")}}const v=s.substring(a);return d.push(v),d}function gS(s,a,l,d,f,m,v,b){const w=[],T=[],I=[];a.cases.push(m),a.create.push(w),a.remove.push(T),a.update.push(I);const N=Nd(CE()).getInertBodyElement(v),$=jd(N)||N;return $?Bb(s,a,l,d,w,T,I,$,f,b,0):0}function Bb(s,a,l,d,f,m,v,b,w,T,I){let O=0,N=b.firstChild;for(;N;){const $=ul(s,l,1,null);switch(N.nodeType){case Node.ELEMENT_NODE:const X=N,le=X.tagName.toLowerCase();if(Ga.hasOwnProperty(le)){Zn(f,ac,le,w,$),s.data[$]=le;const oe=X.attributes;for(let $e=0;$e>>Wt.SHIFT;let O=s[I];null===O&&(O=s[I]=(v&Wt.COMMENT)===Wt.COMMENT?f.createComment(b):Qp(f,b)),T&&null!==l&&Bs(f,l,O,d,!1)}})(f,w.create,I,b&&8&b.type?f[b.index]:null),La(!0)}function Og(){La(!1)}function Hb(s,a,l){Zh(s,a,l),Og()}function Ub(s,a){const l=ut(),d=to(l.consts,a);!function dS(s,a,l){const f=Sn().index,m=[];if(s.firstCreatePass&&null===s.data[a]){for(let v=0;v0){const d=s.data[l];$h(s,a,Array.isArray(d)?d:d.update,vi()-lc-1,Bn)}Bn=0,lc=0}(ut(),ne(),s+St)}function Rg(s,a={}){return function DS(s,a={}){let l=s;if(si.test(s)){const d={},f=[hc];l=l.replace(bS,(m,v,b)=>{const w=v||b,T=d[w]||[];if(T.length||(w.split("|").forEach(le=>{const pe=le.match(ES),be=pe?parseInt(pe[1],10):hc,xe=jb.test(le);T.push([be,xe,le])}),d[w]=T),!T.length)throw new Error(`i18n postprocess: unmatched placeholder - ${w}`);const I=f[f.length-1];let O=0;for(let le=0;lea.hasOwnProperty(m)?`${f}${a[m]}${w}`:d),l=l.replace(wS,(d,f)=>a.hasOwnProperty(f)?a[f]:d),l=l.replace(Vb,(d,f)=>{if(a.hasOwnProperty(f)){const m=a[f];if(!m.length)throw new Error(`i18n postprocess: unmatched ICU - ${d} with key: ${f}`);return m.shift()}return d})),l}(s,a)}function Yh(s,a,l,d,f){if(s=te(s),Array.isArray(s))for(let m=0;m>20;if(Gs(s)||!s.multi){const $=new Go(w,f,al),X=Ng(b,a,f?I:I+N,O);-1===X?(Na(lo(T,v),m,b),fc(m,s,a.length),a.push(b),T.directiveStart++,T.directiveEnd++,f&&(T.providerIndexes+=1048576),l.push($),v.push($)):(l[X]=$,v[X]=$)}else{const $=Ng(b,a,I+N,O),X=Ng(b,a,I,I+N),pe=X>=0&&l[X];if(f&&!pe||!f&&!($>=0&&l[$])){Na(lo(T,v),m,b);const be=function Vg(s,a,l,d,f){const m=new Go(s,l,al);return m.multi=[],m.index=a,m.componentProviders=0,Fg(m,f,d&&!l),m}(f?SS:Bg,l.length,f,d,w);!f&&pe&&(l[X].providerFactory=be),fc(m,s,a.length,0),a.push(b),T.directiveStart++,T.directiveEnd++,f&&(T.providerIndexes+=1048576),l.push(be),v.push(be)}else fc(m,s,$>-1?$:X,Fg(l[f?X:$],w,!f&&d));!f&&d&&pe&&l[X].componentProviders++}}}function fc(s,a,l,d){const f=Gs(a),m=function AE(s){return!!s.useClass}(a);if(f||m){const w=(m?te(a.useClass):a).prototype.ngOnDestroy;if(w){const T=s.destroyHooks||(s.destroyHooks=[]);if(!f&&a.multi){const I=T.indexOf(l);-1===I?T.push(l,[d,w]):T[I+1].push(d,w)}else T.push(l,w)}}}function Fg(s,a,l){return l&&s.componentProviders++,s.multi.push(a)-1}function Ng(s,a,l,d){for(let f=l;f{l.providersResolver=(d,f)=>function qh(s,a,l){const d=ut();if(d.firstCreatePass){const f=_n(s);Yh(l,d.data,d.blueprint,f,!0),Yh(a,d.data,d.blueprint,f,!1)}}(d,f?f(s):s,a)}}class ls{}class Qh{}function $b(s,a){return new Hg(s,a??null)}const Gb=$b;class Hg extends ls{constructor(a,l){super(),this._parent=l,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new jy(this);const d=Ue(a);this._bootstrapComponents=Hr(d.bootstrap),this._r3Injector=gy(a,l,[{provide:ls,useValue:this},{provide:Ja,useValue:this.componentFactoryResolver}],Y(a),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(a)}get injector(){return this._r3Injector}destroy(){const a=this._r3Injector;!a.destroyed&&a.destroy(),this.destroyCbs.forEach(l=>l()),this.destroyCbs=null}onDestroy(a){this.destroyCbs.push(a)}}class Kh extends Qh{constructor(a){super(),this.moduleType=a}create(a){return new Hg(this.moduleType,a)}}class TS extends ls{constructor(a,l,d){super(),this.componentFactoryResolver=new jy(this),this.instance=null;const f=new Jv([...a,{provide:ls,useValue:this},{provide:Ja,useValue:this.componentFactoryResolver}],l||Gd(),d,new Set(["environment"]));this.injector=f,f.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(a){this.injector.onDestroy(a)}}function Jh(s,a,l=null){return new TS(s,a,l).injector}let MS=(()=>{class s{constructor(l){this._injector=l,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(l){if(!l.standalone)return null;if(!this.cachedInjectors.has(l.id)){const d=Ya(0,l.type),f=d.length>0?Jh([d],this._injector,`Standalone[${l.type.name}]`):null;this.cachedInjectors.set(l.id,f)}return this.cachedInjectors.get(l.id)}ngOnDestroy(){try{for(const l of this.cachedInjectors.values())null!==l&&l.destroy()}finally{this.cachedInjectors.clear()}}}return s.\u0275prov=En({token:s,providedIn:"environment",factory:()=>new s(Ft(Ws))}),s})();function ht(s){s.getStandaloneInjector=a=>a.get(MS).getOrCreateStandaloneInjector(s)}function xl(s){const a=ri(s);if(null===a)return null;if(void 0===a.component){const l=a.lView;if(null===l)return null;a.component=function aE(s,a){const l=a[ge].data[s],{directiveStart:d,componentOffset:f}=l;return f>-1?a[d+f]:null}(a.nodeIndex,l)}return a.component}function Wb(s){!function PS(s){if(typeof Element<"u"&&!(s instanceof Element))throw new Error("Expecting instance of DOM Element")}(s);const a=ri(s),l=a?a.lView:null;return null===l?null:l[Dt]}function Ug(s){const a=ri(s);let d,l=a?a.lView:null;if(null===l)return null;for(;2===l[ge].type&&(d=Pi(l));)l=d;return 256&l[re]?null:l[Dt]}function Zb(s){const a=Iv(s);return null!==a?[lE(a)]:[]}function qb(s){const a=ri(s),l=a?a.lView:null;return null===l?ns.NULL:new ks(l[ge].data[a.nodeIndex],l)}function Yb(s){if(s instanceof Text)return[];const a=ri(s),l=a?a.lView:null;if(null===l)return[];const f=a.nodeIndex;return l[ge]?.data[f]?(void 0===a.directives&&(a.directives=Wp(f,l)),null===a.directives?[]:[...a.directives]):[]}function xS(s){const{constructor:a}=s;if(!a)throw new Error("Unable to find the instance constructor");const l=at(a);if(l)return{inputs:l.inputs,outputs:l.outputs,encapsulation:l.encapsulation,changeDetection:l.onPush?Xn.OnPush:Xn.Default};const d=Dn(a);return d?{inputs:d.inputs,outputs:d.outputs}:null}function Gg(s){return ri(s).native}function Zg(s){const a=ri(s),l=null===a?null:a.lView;if(null===l)return[];const f=l[Jr],m=l[ge].cleanup,v=[];if(m&&f)for(let b=0;b=0?"dom":"output"})}}return v.sort(IS),v}function IS(s,a){return s.name==a.name?0:s.name{const f=s;null!==a&&(f.hasOwnProperty("decorators")&&void 0!==f.decorators?f.decorators.push(...a):f.decorators=a),null!==l&&(f.ctorParameters=l),null!==d&&(f.propDecorators=f.hasOwnProperty("propDecorators")&&void 0!==f.propDecorators?{...f.propDecorators,...d}:d)})}function Kb(s,a,l){const d=vn()+s,f=ne();return f[d]===Ne?Gr(f,d,l?a.call(l):a()):is(f,d)}function Jb(s,a,l,d){return e0(ne(),vn(),s,a,l,d)}function LS(s,a,l,d,f){return t0(ne(),vn(),s,a,l,d,f)}function AS(s,a,l,d,f,m){return NS(ne(),vn(),s,a,l,d,f,m)}function OS(s,a,l,d,f,m,v){return Xt(ne(),vn(),s,a,l,d,f,m,v)}function kS(s,a,l,d,f,m,v,b){const w=vn()+s,T=ne(),I=Qi(T,w,l,d,f,m);return Fn(T,w+4,v)||I?Gr(T,w+5,b?a.call(b,l,d,f,m,v):a(l,d,f,m,v)):is(T,w+5)}function RS(s,a,l,d,f,m,v,b,w){const T=vn()+s,I=ne(),O=Qi(I,T,l,d,f,m);return ki(I,T+4,v,b)||O?Gr(I,T+6,w?a.call(w,l,d,f,m,v,b):a(l,d,f,m,v,b)):is(I,T+6)}function Xb(s,a,l,d,f,m,v,b,w,T){const I=vn()+s,O=ne();let N=Qi(O,I,l,d,f,m);return xn(O,I+4,v,b,w)||N?Gr(O,I+7,T?a.call(T,l,d,f,m,v,b,w):a(l,d,f,m,v,b,w)):is(O,I+7)}function FS(s,a,l,d,f,m,v,b,w,T,I){const O=vn()+s,N=ne(),$=Qi(N,O,l,d,f,m);return Qi(N,O+4,v,b,w,T)||$?Gr(N,O+8,I?a.call(I,l,d,f,m,v,b,w,T):a(l,d,f,m,v,b,w,T)):is(N,O+8)}function qg(s,a,l,d){return Tr(ne(),vn(),s,a,l,d)}function Xh(s,a){const l=s[a];return l===Ne?void 0:l}function e0(s,a,l,d,f,m){const v=a+l;return Fn(s,v,f)?Gr(s,v+1,m?d.call(m,f):d(f)):Xh(s,v+1)}function t0(s,a,l,d,f,m,v){const b=a+l;return ki(s,b,f,m)?Gr(s,b+2,v?d.call(v,f,m):d(f,m)):Xh(s,b+2)}function NS(s,a,l,d,f,m,v,b){const w=a+l;return xn(s,w,f,m,v)?Gr(s,w+3,b?d.call(b,f,m,v):d(f,m,v)):Xh(s,w+3)}function Xt(s,a,l,d,f,m,v,b,w){const T=a+l;return Qi(s,T,f,m,v,b)?Gr(s,T+4,w?d.call(w,f,m,v,b):d(f,m,v,b)):Xh(s,T+4)}function Tr(s,a,l,d,f,m){let v=a+l,b=!1;for(let w=0;w=0;l--){const d=a[l];if(s===d.name)return d}}(a,l.pipeRegistry),l.data[f]=d,d.onDestroy&&(l.destroyHooks??(l.destroyHooks=[])).push(f,d.onDestroy)):d=l.data[f];const m=d.factory||(d.factory=Rr(d.type)),v=Ee(al);try{const b=fe(!1),w=m();return fe(b),qm(l,ne(),f,w),w}finally{Ee(v)}}function Yg(s,a,l){const d=s+St,f=ne(),m=jo(f,d);return Il(f,d)?e0(f,vn(),a,m.transform,l,m):m.transform(l)}function qt(s,a,l,d){const f=s+St,m=ne(),v=jo(m,f);return Il(m,f)?t0(m,vn(),a,v.transform,l,d,v):v.transform(l,d)}function pc(s,a,l,d,f){const m=s+St,v=ne(),b=jo(v,m);return Il(v,m)?NS(v,vn(),a,b.transform,l,d,f,b):b.transform(l,d,f)}function ef(s,a,l,d,f,m){const v=s+St,b=ne(),w=jo(b,v);return Il(b,v)?Xt(b,vn(),a,w.transform,l,d,f,m,w):w.transform(l,d,f,m)}function Qg(s,a,l){const d=s+St,f=ne(),m=jo(f,d);return Il(f,d)?Tr(f,vn(),a,m.transform,l,m):m.transform.apply(m,l)}function Il(s,a){return s[ge].data[a].pure}function Kg(s){return a=>{setTimeout(s,void 0,a)}}const Mr=class tf extends ue.xQ{constructor(a=!1){super(),this.__isAsync=a}emit(a){super.next(a)}subscribe(a,l,d){let f=a,m=l||(()=>null),v=d;if(a&&"object"==typeof a){const w=a;f=w.next?.bind(w),m=w.error?.bind(w),v=w.complete?.bind(w)}this.__isAsync&&(m=Kg(m),f&&(f=Kg(f)),v&&(v=Kg(v)));const b=super.subscribe({next:f,error:m,complete:v});return a instanceof i.w&&a.add(b),b}};function BS(){return this._results[Symbol.iterator]()}class nf{get changes(){return this._changes||(this._changes=new Mr)}constructor(a=!1){this._emitDistinctChangesOnly=a,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const l=nf.prototype;l[Symbol.iterator]||(l[Symbol.iterator]=BS)}get(a){return this._results[a]}map(a){return this._results.map(a)}filter(a){return this._results.filter(a)}find(a){return this._results.find(a)}reduce(a,l){return this._results.reduce(a,l)}forEach(a){this._results.forEach(a)}some(a){return this._results.some(a)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(a,l){const d=this;d.dirty=!1;const f=fr(a);(this._changesDetected=!function jM(s,a,l){if(s.length!==a.length)return!1;for(let d=0;d{class s{}return s.__NG_ELEMENT_ID__=Jg,s})();const VS=ra,jS=class extends VS{constructor(a,l,d){super(),this._declarationLView=a,this._declarationTContainer=l,this.elementRef=d}createEmbeddedView(a,l){const d=this._declarationTContainer.tView,f=zu(this._declarationLView,d,a,16,null,d.declTNode,null,null,null,null,l||null);f[Bo]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[_i];return null!==v&&(f[_i]=v.createEmbeddedView(d)),xy(d,f,a),new cl(f)}};function Jg(){return rf(Sn(),ne())}function rf(s,a){return 4&s.type?new jS(a,s,yo(s,a)):null}let oa=(()=>{class s{}return s.__NG_ELEMENT_ID__=n0,s})();function n0(){return us(Sn(),ne())}const HS=oa,Xg=class extends HS{constructor(a,l,d){super(),this._lContainer=a,this._hostTNode=l,this._hostLView=d}get element(){return yo(this._hostTNode,this._hostLView)}get injector(){return new ks(this._hostTNode,this._hostLView)}get parentInjector(){const a=hu(this._hostTNode,this._hostLView);if(P(a)){const l=Z(a,this._hostLView),d=F(a);return new ks(l[ge].data[d+8],l)}return new ks(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(a){const l=Pl(this._lContainer);return null!==l&&l[a]||null}get length(){return this._lContainer.length-pn}createEmbeddedView(a,l,d){let f,m;"number"==typeof d?f=d:null!=d&&(f=d.index,m=d.injector);const v=a.createEmbeddedView(l||{},m);return this.insert(v,f),v}createComponent(a,l,d,f,m){const v=a&&!vd(a);let b;if(v)b=l;else{const O=l||{};b=O.index,d=O.injector,f=O.projectableNodes,m=O.environmentInjector||O.ngModuleRef}const w=v?a:new $r(at(a)),T=d||this.parentInjector;if(!m&&null==w.ngModule){const N=(v?T:this.parentInjector).get(Ws,null);N&&(m=N)}const I=w.create(T,f,void 0,m);return this.insert(I.hostView,b),I}insert(a,l){const d=a._lView,f=d[ge];if(function Tp(s){return gn(s[qe])}(d)){const I=this.indexOf(a);if(-1!==I)this.detach(I);else{const O=d[qe],N=new Xg(O,O[Ct],O[qe]);N.detach(N.indexOf(a))}}const m=this._adjustIndex(l),v=this._lContainer;!function hE(s,a,l,d){const f=pn+d,m=l.length;d>0&&(l[f-1][ti]=a),d0)d.push(v[b/2]);else{const T=m[b+1],I=a[-w];for(let O=pn;O({\u0275\u0275attribute:Er,\u0275\u0275attributeInterpolate1:Gm,\u0275\u0275attributeInterpolate2:Qy,\u0275\u0275attributeInterpolate3:mh,\u0275\u0275attributeInterpolate4:gh,\u0275\u0275attributeInterpolate5:_h,\u0275\u0275attributeInterpolate6:vh,\u0275\u0275attributeInterpolate7:yh,\u0275\u0275attributeInterpolate8:bh,\u0275\u0275attributeInterpolateV:Ch,\u0275\u0275defineComponent:Yl,\u0275\u0275defineDirective:Da,\u0275\u0275defineInjectable:En,\u0275\u0275defineInjector:gs,\u0275\u0275defineNgModule:Ql,\u0275\u0275definePipe:Cs,\u0275\u0275directiveInject:al,\u0275\u0275getInheritedFactory:Op,\u0275\u0275inject:Ft,\u0275\u0275injectAttribute:Rp,\u0275\u0275invalidFactory:Ty,\u0275\u0275invalidFactoryDep:Oo,\u0275\u0275templateRefExtractor:cf,\u0275\u0275resetView:xa,\u0275\u0275HostDirectivesFeature:Zy,\u0275\u0275NgOnChangesFeature:ur,\u0275\u0275ProvidersFeature:jg,\u0275\u0275CopyDefinitionFeature:LD,\u0275\u0275InheritDefinitionFeature:hh,\u0275\u0275StandaloneFeature:ht,\u0275\u0275nextContext:In,\u0275\u0275namespaceHTML:Lp,\u0275\u0275namespaceMathML:cd,\u0275\u0275namespaceSVG:ud,\u0275\u0275enableBindings:Is,\u0275\u0275disableBindings:nd,\u0275\u0275elementStart:qu,\u0275\u0275elementEnd:ml,\u0275\u0275element:Dh,\u0275\u0275elementContainerStart:Yu,\u0275\u0275elementContainerEnd:Qu,\u0275\u0275elementContainer:Sh,\u0275\u0275pureFunction0:Kb,\u0275\u0275pureFunction1:Jb,\u0275\u0275pureFunction2:LS,\u0275\u0275pureFunction3:AS,\u0275\u0275pureFunction4:OS,\u0275\u0275pureFunction5:kS,\u0275\u0275pureFunction6:RS,\u0275\u0275pureFunction7:Xb,\u0275\u0275pureFunction8:FS,\u0275\u0275pureFunctionV:qg,\u0275\u0275getCurrentView:Th,\u0275\u0275restoreView:dr,\u0275\u0275listener:Mh,\u0275\u0275projection:Ju,\u0275\u0275syntheticHostProperty:ea,\u0275\u0275syntheticHostListener:Nn,\u0275\u0275pipeBind1:Yg,\u0275\u0275pipeBind2:qt,\u0275\u0275pipeBind3:pc,\u0275\u0275pipeBind4:ef,\u0275\u0275pipeBindV:Qg,\u0275\u0275projectionDef:xh,\u0275\u0275hostProperty:Do,\u0275\u0275property:Eh,\u0275\u0275propertyInterpolate:tg,\u0275\u0275propertyInterpolate1:_l,\u0275\u0275propertyInterpolate2:ng,\u0275\u0275propertyInterpolate3:Jy,\u0275\u0275propertyInterpolate4:Xy,\u0275\u0275propertyInterpolate5:eb,\u0275\u0275propertyInterpolate6:tb,\u0275\u0275propertyInterpolate7:nb,\u0275\u0275propertyInterpolate8:ib,\u0275\u0275propertyInterpolateV:rb,\u0275\u0275pipe:en,\u0275\u0275queryRefresh:mc,\u0275\u0275viewQuery:i_,\u0275\u0275loadQuery:sa,\u0275\u0275contentQuery:s0,\u0275\u0275reference:Ym,\u0275\u0275classMap:ag,\u0275\u0275classMapInterpolate1:mg,\u0275\u0275classMapInterpolate2:Xi,\u0275\u0275classMapInterpolate3:Vh,\u0275\u0275classMapInterpolate4:mb,\u0275\u0275classMapInterpolate5:gg,\u0275\u0275classMapInterpolate6:gb,\u0275\u0275classMapInterpolate7:zD,\u0275\u0275classMapInterpolate8:_g,\u0275\u0275classMapInterpolateV:_b,\u0275\u0275styleMap:Dr,\u0275\u0275styleMapInterpolate1:vg,\u0275\u0275styleMapInterpolate2:vb,\u0275\u0275styleMapInterpolate3:yg,\u0275\u0275styleMapInterpolate4:jh,\u0275\u0275styleMapInterpolate5:yb,\u0275\u0275styleMapInterpolate6:Eo,\u0275\u0275styleMapInterpolate7:bb,\u0275\u0275styleMapInterpolate8:ss,\u0275\u0275styleMapInterpolateV:Cb,\u0275\u0275styleProp:nc,\u0275\u0275stylePropInterpolate1:rc,\u0275\u0275stylePropInterpolate2:bg,\u0275\u0275stylePropInterpolate3:oc,\u0275\u0275stylePropInterpolate4:Hh,\u0275\u0275stylePropInterpolate5:Cg,\u0275\u0275stylePropInterpolate6:El,\u0275\u0275stylePropInterpolate7:wg,\u0275\u0275stylePropInterpolate8:Uh,\u0275\u0275stylePropInterpolateV:Eg,\u0275\u0275classProp:yl,\u0275\u0275advance:dy,\u0275\u0275template:Zm,\u0275\u0275text:Xs,\u0275\u0275textInterpolate:ic,\u0275\u0275textInterpolate1:Fh,\u0275\u0275textInterpolate2:Nh,\u0275\u0275textInterpolate3:db,\u0275\u0275textInterpolate4:hb,\u0275\u0275textInterpolate5:fb,\u0275\u0275textInterpolate6:pb,\u0275\u0275textInterpolate7:fg,\u0275\u0275textInterpolate8:Bh,\u0275\u0275textInterpolateV:pg,\u0275\u0275i18n:Hb,\u0275\u0275i18nAttributes:Ub,\u0275\u0275i18nExp:kg,\u0275\u0275i18nStart:Zh,\u0275\u0275i18nEnd:Og,\u0275\u0275i18nApply:zb,\u0275\u0275i18nPostprocess:Rg,\u0275\u0275resolveWindow:qs,\u0275\u0275resolveDocument:sy,\u0275\u0275resolveBody:ay,\u0275\u0275setComponentScope:Gc,\u0275\u0275setNgModuleScope:Wc,\u0275\u0275registerNgModuleType:Sd,\u0275\u0275sanitizeHtml:Za,\u0275\u0275sanitizeStyle:qa,\u0275\u0275sanitizeResourceUrl:Hd,\u0275\u0275sanitizeScript:pm,\u0275\u0275sanitizeUrl:Xo,\u0275\u0275sanitizeUrlOrResourceUrl:Zv,\u0275\u0275trustConstantHtml:mm,\u0275\u0275trustConstantResourceUrl:Us,\u0275\u0275validateIframeAttribute:lm,forwardRef:_e,resolveForwardRef:te}))();let Al=null;function df(){Al=null}function Ol(s){return!!Ue(s)}const gc=[];let s_=!1;function d0(){if(!s_){s_=!0;try{for(let s=gc.length-1;s>=0;s--){const{moduleType:a,ngModule:l}=gc[s];l.declarations&&l.declarations.every(hf)&&(gc.splice(s,1),YS(a,l))}}finally{s_=!1}}}function hf(s){return Array.isArray(s)?s.every(hf):!!te(s)}function h0(s,a={}){f0(s,a),void 0!==a.id&&Sd(s,a.id),function c0(s,a){gc.push({moduleType:s,ngModule:a})}(s,a)}function f0(s,a,l=!1){const d=fr(a.declarations||nt);let f=null;Object.defineProperty(s,wa,{configurable:!0,get:()=>(null===f&&(f=Mn().compileNgModule(ai,`ng:///${s.name}/\u0275mod.js`,{type:s,bootstrap:fr(a.bootstrap||nt).map(te),declarations:d.map(te),imports:fr(a.imports||nt).map(te).map(p0),exports:fr(a.exports||nt).map(te).map(p0),schemas:a.schemas?fr(a.schemas):null,id:a.id||null}),f.schemas||(f.schemas=[])),f)});let m=null;Object.defineProperty(s,sr,{get:()=>{if(null===m){const b=Mn();m=b.compileFactory(ai,`ng:///${s.name}/\u0275fac.js`,{name:s.name,type:s,deps:Ed(s),target:b.FactoryTarget.NgModule,typeArgumentCount:0})}return m},configurable:!1});let v=null;Object.defineProperty(s,_a,{get:()=>{if(null===v){const b={name:s.name,type:s,providers:a.providers||nt,imports:[(a.imports||nt).map(te),(a.exports||nt).map(te)]};v=Mn().compileInjector(ai,`ng:///${s.name}/\u0275inj.js`,b)}return v},configurable:!1})}let ff=new WeakMap,kl=new WeakMap;function qS(){ff=new WeakMap,kl=new WeakMap,gc.length=0}function YS(s,a){const l=fr(a.declarations||nt),d=To(s);l.forEach(f=>{(f=te(f)).hasOwnProperty(Ro)?d_(at(f),d):!f.hasOwnProperty(or)&&!f.hasOwnProperty(Kr)&&(f.ngSelectorScope=s)})}function d_(s,a){s.directiveDefs=()=>Array.from(a.compilation.directives).map(l=>l.hasOwnProperty(Ro)?at(l):Dn(l)).filter(l=>!!l),s.pipeDefs=()=>Array.from(a.compilation.pipes).map(l=>An(l)),s.schemas=a.schemas,s.tView=null}function To(s){if(Ol(s))return function QS(s){const a=Ue(s,!0);if(null!==a.transitiveCompileScopes)return a.transitiveCompileScopes;const l={schemas:a.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Hr(a.imports).forEach(d=>{const f=To(d);f.exported.directives.forEach(m=>l.compilation.directives.add(m)),f.exported.pipes.forEach(m=>l.compilation.pipes.add(m))}),Hr(a.declarations).forEach(d=>{An(d)?l.compilation.pipes.add(d):l.compilation.directives.add(d)}),Hr(a.exports).forEach(d=>{const f=d;if(Ol(f)){const m=To(f);m.exported.directives.forEach(v=>{l.compilation.directives.add(v),l.exported.directives.add(v)}),m.exported.pipes.forEach(v=>{l.compilation.pipes.add(v),l.exported.pipes.add(v)})}else An(f)?l.exported.pipes.add(f):l.exported.directives.add(f)}),a.transitiveCompileScopes=l,l}(s);if(pi(s)){if(null!==(at(s)||Dn(s)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([s]),pipes:new Set}};if(null!==An(s))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([s])}}}throw new Error(`${s.name} does not have a module def (\u0275mod property)`)}function p0(s){return function u0(s){return void 0!==s.ngModule}(s)?s.ngModule:s}let vc=0;function m0(s,a){let l=null;(function Xw(s,a){jp(a)&&(ho.set(s,a),wu.add(s))})(s,a),g0(s,a),Object.defineProperty(s,Ro,{get:()=>{if(null===l){const d=Mn();if(jp(a)){const T=[`Component '${s.name}' is not resolved:`];throw a.templateUrl&&T.push(` - templateUrl: ${a.templateUrl}`),a.styleUrls&&a.styleUrls.length&&T.push(` - styleUrls: ${JSON.stringify(a.styleUrls)}`),T.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(T.join("\n"))}const f=function WS(){return Al}();let m=a.preserveWhitespaces;void 0===m&&(m=null!==f&&void 0!==f.preserveWhitespaces&&f.preserveWhitespaces);let v=a.encapsulation;void 0===v&&(v=null!==f&&void 0!==f.defaultEncapsulation?f.defaultEncapsulation:Si.Emulated);const b=a.templateUrl||`ng:///${s.name}/template.html`,w={...gf(s,a),typeSourceSpan:d.createParseSourceSpan("Component",s.name,b),template:a.template||"",preserveWhitespaces:m,styles:a.styles||nt,animations:a.animations,declarations:[],changeDetection:a.changeDetection,encapsulation:v,interpolation:a.interpolation,viewProviders:a.viewProviders||null};vc++;try{if(w.usesInheritance&&_0(s),l=d.compileComponent(ai,b,w),a.standalone){const T=fr(a.imports||nt),{directiveDefs:I,pipeDefs:O}=function JS(s,a){let l=null,d=null;return{directiveDefs:()=>{if(null===l){l=[at(s)];const v=new Set;for(const b of a){const w=te(b);if(!v.has(w))if(v.add(w),Ue(w)){const T=To(w);for(const I of T.exported.directives){const O=at(I)||Dn(I);O&&!v.has(I)&&(v.add(I),l.push(O))}}else{const T=at(w)||Dn(w);T&&l.push(T)}}}return l},pipeDefs:()=>{if(null===d){d=[];const v=new Set;for(const b of a){const w=te(b);if(!v.has(w))if(v.add(w),Ue(w)){const T=To(w);for(const I of T.exported.pipes){const O=An(I);O&&!v.has(I)&&(v.add(I),d.push(O))}}else{const T=An(w);T&&d.push(T)}}}return d}}}(s,T);l.directiveDefs=I,l.pipeDefs=O,l.dependencies=()=>T.map(te)}}finally{vc--}if(0===vc&&d0(),function mf(s){return void 0!==s.ngSelectorScope}(s)){const T=To(s.ngSelectorScope);d_(l,T)}if(a.schemas){if(!a.standalone)throw new Error(`The 'schemas' was specified for the ${Ge(s)} but is only valid on a component that is standalone.`);l.schemas=a.schemas}else a.standalone&&(l.schemas=[])}return l},configurable:!1})}function h_(s,a){let l=null;g0(s,a||{}),Object.defineProperty(s,or,{get:()=>{if(null===l){const d=f_(s,a||{});l=Mn().compileDirective(ai,d.sourceMapUrl,d.metadata)}return l},configurable:!1})}function f_(s,a){const l=s&&s.name,d=`ng:///${l}/\u0275dir.js`,f=Mn(),m=gf(s,a);return m.typeSourceSpan=f.createParseSourceSpan("Directive",l,d),m.usesInheritance&&_0(s),{metadata:m,sourceMapUrl:d}}function g0(s,a){let l=null;Object.defineProperty(s,sr,{get:()=>{if(null===l){const d=f_(s,a),f=Mn();l=f.compileFactory(ai,`ng:///${s.name}/\u0275fac.js`,{name:d.metadata.name,type:d.metadata.type,typeArgumentCount:0,deps:Ed(s),target:f.FactoryTarget.Directive})}return l},configurable:!1})}function XS(s){return Object.getPrototypeOf(s.prototype)===Object.prototype}function gf(s,a){const l=Cu(),d=l.ownPropMetadata(s);return{name:s.name,type:s,selector:void 0!==a.selector?a.selector:null,host:a.host||ei,propMetadata:d,inputs:a.inputs||nt,outputs:a.outputs||nt,queries:v0(s,d,m_),lifecycle:{usesOnChanges:l.hasLifecycleHook(s,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!XS(s),exportAs:_f(a.exportAs),providers:a.providers||null,viewQueries:v0(s,d,y0),isStandalone:!!a.standalone,hostDirectives:a.hostDirectives?.map(f=>"function"==typeof f?{directive:f}:f)||null}}function _0(s){const a=Object.prototype;let l=Object.getPrototypeOf(s.prototype).constructor;for(;l&&l!==a;)!Dn(l)&&!at(l)&&tT(l)&&h_(l,null),l=Object.getPrototypeOf(l)}function eT(s){return"string"==typeof s?b0(s):te(s)}function p_(s,a){return{propertyName:s,predicate:eT(a.selector),descendants:a.descendants,first:a.first,read:a.read?a.read:null,static:!!a.static,emitDistinctChangesOnly:!!a.emitDistinctChangesOnly}}function v0(s,a,l){const d=[];for(const f in a)if(a.hasOwnProperty(f)){const m=a[f];m.forEach(v=>{if(l(v)){if(!v.selector)throw new Error(`Can't construct a query for the property "${f}" of "${Ge(s)}" since the query selector wasn't defined.`);if(m.some(yc))throw new Error("Cannot combine @Input decorators with query decorators");d.push(p_(f,v))}})}return d}function _f(s){return void 0===s?null:b0(s)}function m_(s){const a=s.ngMetadataName;return"ContentChild"===a||"ContentChildren"===a}function y0(s){const a=s.ngMetadataName;return"ViewChild"===a||"ViewChildren"===a}function yc(s){return"Input"===s.ngMetadataName}function b0(s){return s.split(",").map(a=>a.trim())}const C0=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function tT(s){const a=Cu();if(C0.some(d=>a.hasLifecycleHook(s,d)))return!0;const l=a.propMetadata(s);for(const d in l){const f=l[d];for(let m=0;m{if(null===d){const f=vf(s,a),m=Mn();d=m.compileFactory(ai,`ng:///${f.name}/\u0275fac.js`,{name:f.name,type:f.type,typeArgumentCount:0,deps:Ed(s),target:m.FactoryTarget.Pipe})}return d},configurable:!1}),Object.defineProperty(s,Kr,{get:()=>{if(null===l){const f=vf(s,a);l=Mn().compilePipe(ai,`ng:///${f.name}/\u0275pipe.js`,f)}return l},configurable:!1})}function vf(s,a){return{type:s,name:s.name,pipeName:a.name,pure:void 0===a.pure||a.pure,isStandalone:!!a.standalone}}const E0=Ii("Directive",(s={})=>s,void 0,void 0,(s,a)=>h_(s,a)),nT=Ii("Component",(s={})=>({changeDetection:Xn.Default,...s}),E0,void 0,(s,a)=>m0(s,a)),g_=Ii("Pipe",s=>({pure:!0,...s}),void 0,void 0,(s,a)=>w0(s,a)),iT=Br("Input",s=>({bindingPropertyName:s})),yf=Br("Output",s=>({bindingPropertyName:s})),D0=Br("HostBinding",s=>({hostPropertyName:s})),rT=Br("HostListener",(s,a)=>({eventName:s,args:a})),bf=Ii("NgModule",s=>s,void 0,void 0,(s,a)=>h0(s,a));function Cf(...s){}const S0=new Ot("Application Initializer");let wf=(()=>{class s{constructor(l){this.appInits=l,this.resolve=Cf,this.reject=Cf,this.initialized=!1,this.done=!1,this.donePromise=new Promise((d,f)=>{this.resolve=d,this.reject=f})}runInitializers(){if(this.initialized)return;const l=[],d=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let f=0;f{m.subscribe({complete:b,error:w})});l.push(v)}}Promise.all(l).then(()=>{d()}).catch(f=>{this.reject(f)}),0===l.length&&d(),this.initialized=!0}}return s.\u0275fac=function(l){return new(l||s)(Ft(S0,8))},s.\u0275prov=En({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Ef=new Ot("AppId",{providedIn:"root",factory:T0});function T0(){return`${bc()}${bc()}${bc()}`}const sT={provide:Ef,useFactory:T0,deps:[]};function bc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const M0=new Ot("Platform Initializer"),Df=new Ot("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),x0=new Ot("Application Packages Root URL"),aT=new Ot("AnimationModuleType");let lT=(()=>{class s{log(l){console.log(l)}warn(l){console.warn(l)}}return s.\u0275fac=function(l){return new(l||s)},s.\u0275prov=En({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();const Sf=new Ot("LocaleId",{providedIn:"root",factory:()=>ko(Sf,Me.Optional|Me.SkipSelf)||function uT(){return typeof $localize<"u"&&$localize.locale||ia}()}),cT=new Ot("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),Tf=new Ot("Translations"),dT=new Ot("TranslationsFormat");var xr=(()=>((xr=xr||{})[xr.Error=0]="Error",xr[xr.Warning=1]="Warning",xr[xr.Ignore=2]="Ignore",xr))();class I0{constructor(a,l){this.ngModuleFactory=a,this.componentFactories=l}}let hT=(()=>{class s{compileModuleSync(l){return new Kh(l)}compileModuleAsync(l){return Promise.resolve(this.compileModuleSync(l))}compileModuleAndAllComponentsSync(l){const d=this.compileModuleSync(l),m=Hr(Ue(l).declarations).reduce((v,b)=>{const w=at(b);return w&&v.push(new $r(w)),v},[]);return new I0(d,m)}compileModuleAndAllComponentsAsync(l){return Promise.resolve(this.compileModuleAndAllComponentsSync(l))}clearCache(){}clearCacheFor(l){}getModuleId(l){}}return s.\u0275fac=function(l){return new(l||s)},s.\u0275prov=En({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Mf=new Ot("compilerOptions");class fT{}function pT(s){bo(xv(s)),Zb(s).forEach(a=>Wm(a))}const xf="ng";let P0=!1;function If(){P0||(P0=!0,Ni("\u0275setProfiler",Ts),Ni("getDirectiveMetadata",xS),Ni("getComponent",xl),Ni("getContext",Wb),Ni("getListeners",Zg),Ni("getOwningComponent",Ug),Ni("getHostElement",Gg),Ni("getInjector",qb),Ni("getRootComponents",Zb),Ni("getDirectives",Yb),Ni("applyChanges",pT))}function Ni(s,a){if((typeof COMPILED>"u"||!COMPILED)&&Lt){let d=Lt[xf];d||(d=Lt[xf]={}),d[s]=a}}const mT=(()=>Promise.resolve(0))();function __(s){typeof Zone>"u"?mT.then(()=>{s&&s.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",s)}class tr{constructor({enableLongStackTrace:a=!1,shouldCoalesceEventChangeDetection:l=!1,shouldCoalesceRunChangeDetection:d=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Mr(!1),this.onMicrotaskEmpty=new Mr(!1),this.onStable=new Mr(!1),this.onError=new Mr(!1),typeof Zone>"u")throw new De(908,!1);Zone.assertZonePatched();const f=this;f._nesting=0,f._outer=f._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(f._inner=f._inner.fork(new Zone.TaskTrackingZoneSpec)),a&&Zone.longStackTraceZoneSpec&&(f._inner=f._inner.fork(Zone.longStackTraceZoneSpec)),f.shouldCoalesceEventChangeDetection=!d&&l,f.shouldCoalesceRunChangeDetection=d,f.lastRequestAnimationFrameId=-1,f.nativeRequestAnimationFrame=function gT(){let s=Lt.requestAnimationFrame,a=Lt.cancelAnimationFrame;if(typeof Zone<"u"&&s&&a){const l=s[Zone.__symbol__("OriginalDelegate")];l&&(s=l);const d=a[Zone.__symbol__("OriginalDelegate")];d&&(a=d)}return{nativeRequestAnimationFrame:s,nativeCancelAnimationFrame:a}}().nativeRequestAnimationFrame,function L0(s){const a=()=>{!function vT(s){s.isCheckStableRunning||-1!==s.lastRequestAnimationFrameId||(s.lastRequestAnimationFrameId=s.nativeRequestAnimationFrame.call(Lt,()=>{s.fakeTopEventTask||(s.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{s.lastRequestAnimationFrameId=-1,v_(s),s.isCheckStableRunning=!0,Rl(s),s.isCheckStableRunning=!1},void 0,()=>{},()=>{})),s.fakeTopEventTask.invoke()}),v_(s))}(s)};s._inner=s._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(l,d,f,m,v,b)=>{try{return A0(s),l.invokeTask(f,m,v,b)}finally{(s.shouldCoalesceEventChangeDetection&&"eventTask"===m.type||s.shouldCoalesceRunChangeDetection)&&a(),Pf(s)}},onInvoke:(l,d,f,m,v,b,w)=>{try{return A0(s),l.invoke(f,m,v,b,w)}finally{s.shouldCoalesceRunChangeDetection&&a(),Pf(s)}},onHasTask:(l,d,f,m)=>{l.hasTask(f,m),d===f&&("microTask"==m.change?(s._hasPendingMicrotasks=m.microTask,v_(s),Rl(s)):"macroTask"==m.change&&(s.hasPendingMacrotasks=m.macroTask))},onHandleError:(l,d,f,m)=>(l.handleError(f,m),s.runOutsideAngular(()=>s.onError.emit(m)),!1)})}(f)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!tr.isInAngularZone())throw new De(909,!1)}static assertNotInAngularZone(){if(tr.isInAngularZone())throw new De(909,!1)}run(a,l,d){return this._inner.run(a,l,d)}runTask(a,l,d,f){const m=this._inner,v=m.scheduleEventTask("NgZoneEvent: "+f,a,_T,Cf,Cf);try{return m.runTask(v,l,d)}finally{m.cancelTask(v)}}runGuarded(a,l,d){return this._inner.runGuarded(a,l,d)}runOutsideAngular(a){return this._outer.run(a)}}const _T={};function Rl(s){if(0==s._nesting&&!s.hasPendingMicrotasks&&!s.isStable)try{s._nesting++,s.onMicrotaskEmpty.emit(null)}finally{if(s._nesting--,!s.hasPendingMicrotasks)try{s.runOutsideAngular(()=>s.onStable.emit(null))}finally{s.isStable=!0}}}function v_(s){s.hasPendingMicrotasks=!!(s._hasPendingMicrotasks||(s.shouldCoalesceEventChangeDetection||s.shouldCoalesceRunChangeDetection)&&-1!==s.lastRequestAnimationFrameId)}function A0(s){s._nesting++,s.isStable&&(s.isStable=!1,s.onUnstable.emit(null))}function Pf(s){s._nesting--,Rl(s)}class O0{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Mr,this.onMicrotaskEmpty=new Mr,this.onStable=new Mr,this.onError=new Mr}run(a,l,d){return a.apply(l,d)}runGuarded(a,l,d){return a.apply(l,d)}runOutsideAngular(a){return a()}runTask(a,l,d,f){return a.apply(l,d)}}const k0=new Ot(""),Lf=new Ot("");let b_,yT=(()=>{class s{constructor(l,d,f){this._ngZone=l,this.registry=d,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,b_||(y_(f),f.addToWindow(d)),this._watchAngularEvents(),l.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{tr.assertNotInAngularZone(),__(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())__(()=>{for(;0!==this._callbacks.length;){let l=this._callbacks.pop();clearTimeout(l.timeoutId),l.doneCb(this._didWork)}this._didWork=!1});else{let l=this.getPendingTasks();this._callbacks=this._callbacks.filter(d=>!d.updateCb||!d.updateCb(l)||(clearTimeout(d.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(l=>({source:l.source,creationLocation:l.creationLocation,data:l.data})):[]}addCallback(l,d,f){let m=-1;d&&d>0&&(m=setTimeout(()=>{this._callbacks=this._callbacks.filter(v=>v.timeoutId!==m),l(this._didWork,this.getPendingTasks())},d)),this._callbacks.push({doneCb:l,timeoutId:m,updateCb:f})}whenStable(l,d,f){if(f&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(l,d,f),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(l){this.registry.registerApplication(l,this)}unregisterApplication(l){this.registry.unregisterApplication(l)}findProviders(l,d,f){return[]}}return s.\u0275fac=function(l){return new(l||s)(Ft(tr),Ft(Cc),Ft(Lf))},s.\u0275prov=En({token:s,factory:s.\u0275fac}),s})(),Cc=(()=>{class s{constructor(){this._applications=new Map}registerApplication(l,d){this._applications.set(l,d)}unregisterApplication(l){this._applications.delete(l)}unregisterAllApplications(){this._applications.clear()}getTestability(l){return this._applications.get(l)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(l,d=!0){return b_?.findTestabilityInTree(this,l,d)??null}}return s.\u0275fac=function(l){return new(l||s)},s.\u0275prov=En({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();function y_(s){b_=s}const nr=!1;let cs=null;const Af=new Ot("AllowMultipleToken"),C_=new Ot("PlatformDestroyListeners"),R0=new Ot("appBootstrapListener");function Of(s,a,l){const d=new Kh(l);return Promise.resolve(d)}function F0(s){return s.isBoundToModule}class kf{constructor(a,l){this.name=a,this.token=l}}function N0(s){if(cs&&!cs.get(Af,!1))throw new De(400,!1);cs=s;const a=s.get(w_);return Ff(s),a}function Ff(s){const a=s.get(M0,null);a&&a.forEach(l=>l())}function bT(s){const{rootComponent:a,appProviders:l,platformProviders:d}=s;nr&&void 0!==a&&function ex(s){if(function tx(s){if(!at(s))throw new De(906,`The ${Ge(s)} is not an Angular component, make sure it has the \`@Component\` decorator.`)}(s),!at(s).standalone)throw new De(907,`The ${Ge(s)} component is not marked as standalone, but Angular expects to have a standalone component here. Please make sure the ${Ge(s)} component has the \`standalone: true\` flag in the decorator.`)}(a);const f=function Rf(s=[]){if(cs)return cs;const a=wc(s);return cs=a,Ff(a),a}(d),m=Nf("zone.js",j0());return m.run(()=>{const b=Jh([{provide:tr,useValue:m},...l||[]],f,"Environment Injector"),w=b.get(tl,null);if(nr&&!w)throw new De(402,"No `ErrorHandler` found in the Dependency Injection tree.");let T;m.runOutsideAngular(()=>{T=m.onError.subscribe({next:N=>{w.handleError(N)}})});const I=()=>b.destroy(),O=f.get(C_);return O.add(I),b.onDestroy(()=>{T.unsubscribe(),O.delete(I)}),H0(w,m,()=>{const N=b.get(wf);return N.runInitializers(),N.donePromise.then(()=>{xg(b.get(Sf,ia)||ia);const X=b.get(aa);return void 0!==a&&X.bootstrap(a),X})})})}function B0(s,a,l=[]){const d=`Platform: ${a}`,f=new Ot(d);return(m=[])=>{let v=Ec();if(!v||v.injector.get(Af,!1)){const b=[...l,...m,{provide:f,useValue:!0}];s?s(b):N0(wc(b,d))}return V0()}}function V0(s){const a=Ec();if(!a)throw new De(401,!1);return a}function wc(s=[],a){return ns.create({name:a,providers:[{provide:vm,useValue:"platform"},{provide:C_,useValue:new Set([()=>cs=null])},...s]})}function CT(){Ec()?.destroy()}function Ec(){return cs?.get(w_)??null}let w_=(()=>{class s{constructor(l){this._injector=l,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(l,d){const f=Nf(d?.ngZone,j0(d)),m=[{provide:tr,useValue:f}];return f.run(()=>{const v=ns.create({providers:m,parent:this.injector,name:l.moduleType.name}),b=l.create(v),w=b.injector.get(tl,null);if(!w)throw new De(402,!1);return f.runOutsideAngular(()=>{const T=f.onError.subscribe({next:I=>{w.handleError(I)}});b.onDestroy(()=>{Bf(this._modules,b),T.unsubscribe()})}),H0(w,f,()=>{const T=b.injector.get(wf);return T.runInitializers(),T.donePromise.then(()=>(xg(b.injector.get(Sf,ia)||ia),this._moduleDoBootstrap(b),b))})})}bootstrapModule(l,d=[]){const f=U0({},d);return Of(0,0,l).then(m=>this.bootstrapModuleFactory(m,f))}_moduleDoBootstrap(l){const d=l.injector.get(aa);if(l._bootstrapComponents.length>0)l._bootstrapComponents.forEach(f=>d.bootstrap(f));else{if(!l.instance.ngDoBootstrap)throw new De(-403,!1);l.instance.ngDoBootstrap(d)}this._modules.push(l)}onDestroy(l){this._destroyListeners.push(l)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new De(404,!1);this._modules.slice().forEach(d=>d.destroy()),this._destroyListeners.forEach(d=>d());const l=this._injector.get(C_,null);l&&(l.forEach(d=>d()),l.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return s.\u0275fac=function(l){return new(l||s)(Ft(ns))},s.\u0275prov=En({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();function j0(s){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!s||!s.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!s||!s.ngZoneRunCoalescing)||!1}}function Nf(s,a){let l;return l="noop"===s?new O0:("zone.js"===s?void 0:s)||new tr(a),l}function H0(s,a,l){try{const d=l();return gl(d)?d.catch(f=>{throw a.runOutsideAngular(()=>s.handleError(f)),f}):d}catch(d){throw a.runOutsideAngular(()=>s.handleError(d)),d}}function U0(s,a){return Array.isArray(a)?a.reduce(U0,s):{...s,...a}}let aa=(()=>{class s{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(l,d,f){this._zone=l,this._injector=d,this._exceptionHandler=f,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const m=new S.y(b=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{b.next(this._stable),b.complete()})}),v=new S.y(b=>{let w;this._zone.runOutsideAngular(()=>{w=this._zone.onStable.subscribe(()=>{tr.assertNotInAngularZone(),__(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,b.next(!0))})})});const T=this._zone.onUnstable.subscribe(()=>{tr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{b.next(!1)}))});return()=>{w.unsubscribe(),T.unsubscribe()}});this.isStable=(0,x.T)(m,v.pipe(function U(){return s=>(0,Q.x)()(function H(s,a){return function(d){let f;if(f="function"==typeof s?s:function(){return s},"function"==typeof a)return d.lift(new W(f,a));const m=Object.create(d,B.N);return m.source=d,m.subjectFactory=f,m}}(q)(s))}()))}bootstrap(l,d){nr&&this.warnIfDestroyed();const f=l instanceof vo;if(!this._injector.get(wf).done){const $="Cannot bootstrap as there are still asynchronous initializers running."+(!f&&pi(l)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new De(405,nr&&$)}let v;v=f?l:this._injector.get(Ja).resolveComponentFactory(l),this.componentTypes.push(v.componentType);const b=F0(v)?void 0:this._injector.get(ls),T=v.create(ns.NULL,[],d||v.selector,b),I=T.location.nativeElement,O=T.injector.get(k0,null);return O?.registerApplication(I),T.onDestroy(()=>{this.detachView(T.hostView),Bf(this.components,T),O?.unregisterApplication(I)}),this._loadComponent(T),T}tick(){if(nr&&this.warnIfDestroyed(),this._runningTick)throw new De(101,!1);try{this._runningTick=!0;for(let l of this._views)l.detectChanges()}catch(l){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(l))}finally{this._runningTick=!1}}attachView(l){nr&&this.warnIfDestroyed();const d=l;this._views.push(d),d.attachToAppRef(this)}detachView(l){nr&&this.warnIfDestroyed();const d=l;Bf(this._views,d),d.detachFromAppRef()}_loadComponent(l){this.attachView(l.hostView),this.tick(),this.components.push(l);const d=this._injector.get(R0,[]);d.push(...this._bootstrapListeners),d.forEach(f=>f(l))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(l=>l()),this._views.slice().forEach(l=>l.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(l){return nr&&this.warnIfDestroyed(),this._destroyListeners.push(l),()=>Bf(this._destroyListeners,l)}destroy(){if(this._destroyed)throw new De(406,!1);const l=this._injector;l.destroy&&!l.destroyed&&l.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){nr&&this._destroyed&&console.warn(ci(406,"This instance of the `ApplicationRef` has already been destroyed."))}}return s.\u0275fac=function(l){return new(l||s)(Ft(tr),Ft(Ws),Ft(tl))},s.\u0275prov=En({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Bf(s,a){const l=s.indexOf(a);l>-1&&s.splice(l,1)}function wT(){return!1}function D_(){}function Vf(s){const a=po(s);if(!a)throw S_(s);return new Kh(a)}function ET(s){const a=po(s);if(!a)throw S_(s);return a}function S_(s){return new Error(`No module with ID ${s} loaded`)}let z0=(()=>{class s{}return s.__NG_ELEMENT_ID__=$0,s})();function $0(s){return function T_(s,a,l){if(ar(s)&&!l){const d=zn(s.index,a);return new cl(d,d)}return 47&s.type?new cl(a[Qt],a):null}(Sn(),ne(),16==(16&s))}class G0 extends z0{}class DT extends G0{}class ST{constructor(a,l){this.name=a,this.callback=l}}function jf(s){return s.map(a=>a.nativeElement)}class Hf{constructor(a){this.nativeNode=a}get parent(){const a=this.nativeNode.parentNode;return a?new Sc(a):null}get injector(){return qb(this.nativeNode)}get componentInstance(){const a=this.nativeNode;return a&&(xl(a)||Ug(a))}get context(){return xl(this.nativeNode)||Wb(this.nativeNode)}get listeners(){return Zg(this.nativeNode).filter(a=>"dom"===a.type)}get references(){return function $g(s){const a=ri(s);if(null===a)return{};if(void 0===a.localRefs){const l=a.lView;if(null===l)return{};a.localRefs=function Su(s,a){const l=s[ge].data[a];if(l&&l.localNames){const d={};let f=l.index+1;for(let m=0;m1){let I=w[1];for(let O=1;Oa[m]=!0),a}get childNodes(){const a=this.nativeNode.childNodes,l=[];for(let d=0;d{if(m.name===a){const v=m.callback;v.call(d,l),f.push(v)}}),"function"==typeof d.eventListeners&&d.eventListeners(a).forEach(m=>{if(-1!==m.toString().indexOf("__ngUnwrap__")){const v=m("__ngUnwrap__");return-1===f.indexOf(v)&&v.call(d,l)}})}}function TT(s){return"string"==typeof s||"boolean"==typeof s||"number"==typeof s||null===s}function M_(s,a,l,d){const f=ri(s.nativeNode),m=f?f.lView:null;null!==m?la(m[ge].data[f.nodeIndex],m,a,l,d,s.nativeNode):x_(s.nativeNode,a,l,d)}function la(s,a,l,d,f,m){const v=function Sp(s,a){const l=null===s?-1:s.index;return-1!==l?Ut(a[l]):null}(s,a);if(11&s.type){if(Tc(v,l,d,f,m),ar(s)){const w=zn(s.index,a);w&&w[ge].firstChild&&la(w[ge].firstChild,w,l,d,f,m)}else s.child&&la(s.child,a,l,d,f,m),v&&x_(v,l,d,f);const b=a[s.index];gn(b)&&Z0(b,l,d,f,m)}else if(4&s.type){const b=a[s.index];Tc(b[fn],l,d,f,m),Z0(b,l,d,f,m)}else if(16&s.type){const b=a[Qt],T=b[Ct].projection[s.projection];if(Array.isArray(T))for(let I of T)Tc(I,l,d,f,m);else if(T){const I=b[qe];la(I[ge].data[T.index],I,l,d,f,m)}}else s.child&&la(s.child,a,l,d,f,m);if(m!==v){const b=2&s.flags?s.projectionNext:s.next;b&&la(b,a,l,d,f,m)}}function Z0(s,a,l,d,f){for(let m=pn;ma;class Y0{constructor(a){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=a||xT}forEachItem(a){let l;for(l=this._itHead;null!==l;l=l._next)a(l)}forEachOperation(a){let l=this._itHead,d=this._removalsHead,f=0,m=null;for(;l||d;){const v=!d||l&&l.currentIndex{v=this._trackByFn(f,b),null!==l&&Object.is(l.trackById,v)?(d&&(l=this._verifyReinsertion(l,b,v,f)),Object.is(l.item,b)||this._addIdentityChange(l,b)):(l=this._mismatch(l,b,v,f),d=!0),l=l._next,f++}),this.length=f;return this._truncate(l),this.collection=a,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let a;for(a=this._previousItHead=this._itHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;null!==a;a=a._nextAdded)a.previousIndex=a.currentIndex;for(this._additionsHead=this._additionsTail=null,a=this._movesHead;null!==a;a=a._nextMoved)a.previousIndex=a.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(a,l,d,f){let m;return null===a?m=this._itTail:(m=a._prev,this._remove(a)),null!==(a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(d,null))?(Object.is(a.item,l)||this._addIdentityChange(a,l),this._reinsertAfter(a,m,f)):null!==(a=null===this._linkedRecords?null:this._linkedRecords.get(d,f))?(Object.is(a.item,l)||this._addIdentityChange(a,l),this._moveAfter(a,m,f)):a=this._addAfter(new A_(l,d),m,f),a}_verifyReinsertion(a,l,d,f){let m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(d,null);return null!==m?a=this._reinsertAfter(m,a._prev,f):a.currentIndex!=f&&(a.currentIndex=f,this._addToMoves(a,f)),a}_truncate(a){for(;null!==a;){const l=a._next;this._addToRemovals(this._unlink(a)),a=l}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(a,l,d){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(a);const f=a._prevRemoved,m=a._nextRemoved;return null===f?this._removalsHead=m:f._nextRemoved=m,null===m?this._removalsTail=f:m._prevRemoved=f,this._insertAfter(a,l,d),this._addToMoves(a,d),a}_moveAfter(a,l,d){return this._unlink(a),this._insertAfter(a,l,d),this._addToMoves(a,d),a}_addAfter(a,l,d){return this._insertAfter(a,l,d),this._additionsTail=null===this._additionsTail?this._additionsHead=a:this._additionsTail._nextAdded=a,a}_insertAfter(a,l,d){const f=null===l?this._itHead:l._next;return a._next=f,a._prev=l,null===f?this._itTail=a:f._prev=a,null===l?this._itHead=a:l._next=a,null===this._linkedRecords&&(this._linkedRecords=new Q0),this._linkedRecords.put(a),a.currentIndex=d,a}_remove(a){return this._addToRemovals(this._unlink(a))}_unlink(a){null!==this._linkedRecords&&this._linkedRecords.remove(a);const l=a._prev,d=a._next;return null===l?this._itHead=d:l._next=d,null===d?this._itTail=l:d._prev=l,a}_addToMoves(a,l){return a.previousIndex===l||(this._movesTail=null===this._movesTail?this._movesHead=a:this._movesTail._nextMoved=a),a}_addToRemovals(a){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Q0),this._unlinkedRecords.put(a),a.currentIndex=null,a._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=a,a._prevRemoved=null):(a._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=a),a}_addIdentityChange(a,l){return a.item=l,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=a:this._identityChangesTail._nextIdentityChange=a,a}}class A_{constructor(a,l){this.item=a,this.trackById=l,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class IT{constructor(){this._head=null,this._tail=null}add(a){null===this._head?(this._head=this._tail=a,a._nextDup=null,a._prevDup=null):(this._tail._nextDup=a,a._prevDup=this._tail,a._nextDup=null,this._tail=a)}get(a,l){let d;for(d=this._head;null!==d;d=d._nextDup)if((null===l||l<=d.currentIndex)&&Object.is(d.trackById,a))return d;return null}remove(a){const l=a._prevDup,d=a._nextDup;return null===l?this._head=d:l._nextDup=d,null===d?this._tail=l:d._prevDup=l,null===this._head}}class Q0{constructor(){this.map=new Map}put(a){const l=a.trackById;let d=this.map.get(l);d||(d=new IT,this.map.set(l,d)),d.add(a)}get(a,l){const f=this.map.get(a);return f?f.get(a,l):null}remove(a){const l=a.trackById;return this.map.get(l).remove(a)&&this.map.delete(l),a}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function zf(s,a,l){const d=s.previousIndex;if(null===d)return d;let f=0;return l&&d{if(l&&l.key===f)this._maybeAddToChanges(l,d),this._appendAfter=l,l=l._next;else{const m=this._getOrCreateRecordForKey(f,d);l=this._insertBeforeOrAppend(l,m)}}),l){l._prev&&(l._prev._next=null),this._removalsHead=l;for(let d=l;null!==d;d=d._nextRemoved)d===this._mapHead&&(this._mapHead=null),this._records.delete(d.key),d._nextRemoved=d._next,d.previousValue=d.currentValue,d.currentValue=null,d._prev=null,d._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(a,l){if(a){const d=a._prev;return l._next=a,l._prev=d,a._prev=l,d&&(d._next=l),a===this._mapHead&&(this._mapHead=l),this._appendAfter=a,a}return this._appendAfter?(this._appendAfter._next=l,l._prev=this._appendAfter):this._mapHead=l,this._appendAfter=l,null}_getOrCreateRecordForKey(a,l){if(this._records.has(a)){const f=this._records.get(a);this._maybeAddToChanges(f,l);const m=f._prev,v=f._next;return m&&(m._next=v),v&&(v._prev=m),f._next=null,f._prev=null,f}const d=new J0(a);return this._records.set(a,d),d.currentValue=l,this._addToAdditions(d),d}_reset(){if(this.isDirty){let a;for(this._previousMapHead=this._mapHead,a=this._previousMapHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;null!==a;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;null!=a;a=a._nextAdded)a.previousValue=a.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(a,l){Object.is(l,a.currentValue)||(a.previousValue=a.currentValue,a.currentValue=l,this._addToChanges(a))}_addToAdditions(a){null===this._additionsHead?this._additionsHead=this._additionsTail=a:(this._additionsTail._nextAdded=a,this._additionsTail=a)}_addToChanges(a){null===this._changesHead?this._changesHead=this._changesTail=a:(this._changesTail._nextChanged=a,this._changesTail=a)}_forEach(a,l){a instanceof Map?a.forEach(l):Object.keys(a).forEach(d=>l(a[d],d))}}class J0{constructor(a){this.key=a,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 X0(){return new O_([new L_])}let O_=(()=>{class s{constructor(l){this.factories=l}static create(l,d){if(null!=d){const f=d.factories.slice();l=l.concat(f)}return new s(l)}static extend(l){return{provide:s,useFactory:d=>s.create(l,d||X0()),deps:[[s,new Fs,new yu]]}}find(l){const d=this.factories.find(f=>f.supports(l));if(null!=d)return d;throw new De(901,!1)}}return s.\u0275prov=En({token:s,providedIn:"root",factory:X0}),s})();function eC(){return new Gf([new K0])}let Gf=(()=>{class s{constructor(l){this.factories=l}static create(l,d){if(d){const f=d.factories.slice();l=l.concat(f)}return new s(l)}static extend(l){return{provide:s,useFactory:d=>s.create(l,d||eC()),deps:[[s,new Fs,new yu]]}}find(l){const d=this.factories.find(f=>f.supports(l));if(d)return d;throw new De(901,!1)}}return s.\u0275prov=En({token:s,providedIn:"root",factory:eC}),s})();const PT=[new K0],R_=new O_([new L_]),AT=new Gf(PT),OT=B0(null,"core",[]);let F_=(()=>{class s{constructor(l){}}return s.\u0275fac=function(l){return new(l||s)(Ft(aa))},s.\u0275mod=Ql({type:s}),s.\u0275inj=gs({}),s})();function kT(s){return"boolean"==typeof s?s:null!=s&&"false"!==s}function Wf(s){return Mn().compileDirectiveDeclaration(ai,`ng:///${s.type.name}/\u0275fac.js`,s)}function tC(s){Qb(s.type,s.decorators,s.ctorParameters??null,s.propDecorators??null)}function RT(s){return Mn().compileComponentDeclaration(ai,`ng:///${s.type.name}/\u0275cmp.js`,s)}function Zf(s){return Mn(function FT(s){switch(s){case Tn.Directive:return"directive";case Tn.Component:return"component";case Tn.Injectable:return"injectable";case Tn.Pipe:return"pipe";case Tn.NgModule:return"NgModule"}}(s.target)).compileFactoryDeclaration(ai,`ng:///${s.type.name}/\u0275fac.js`,s)}function nC(s){return Mn().compileInjectableDeclaration(ai,`ng:///${s.type.name}/\u0275prov.js`,s)}function NT(s){return Mn().compileInjectorDeclaration(ai,`ng:///${s.type.name}/\u0275inj.js`,s)}function BT(s){return Mn().compileNgModuleDeclaration(ai,`ng:///${s.type.name}/\u0275mod.js`,s)}function N_(s){return Mn().compilePipeDeclaration(ai,`ng:///${s.type.name}/\u0275pipe.js`,s)}function VT(s,a){const l=at(s),d=a.elementInjector||Gd();return new $r(l).create(d,a.projectableNodes,a.hostElement,a.environmentInjector)}function jT(s){const a=at(s);if(!a)return null;const l=new $r(a);return{get selector(){return l.selector},get type(){return l.componentType},get inputs(){return l.inputs},get outputs(){return l.outputs},get ngContentSelectors(){return l.ngContentSelectors},get isStandalone(){return a.standalone}}}}},Je=>{Je(Je.s=923)}]); \ No newline at end of file diff --git a/styles.8e5c47f0385549a1.css b/styles.8e5c47f0385549a1.css deleted file mode 100644 index 13d1d908..00000000 --- a/styles.8e5c47f0385549a1.css +++ /dev/null @@ -1 +0,0 @@ -:root{--theme1-600: #002855;--theme1-500: #003865;--theme1-400: #0057b7;--theme1-300: #009cde;--theme1-200: #41b6e6;--theme1-100: #99d6ea;--theme1-075: #96b5e4;--theme1-050: #e0ebf6;--theme2-600: #7c2629;--theme2-500: #862633;--theme2-400: #cf0039;--theme2-300: #df4661;--theme2-200: #ffb1bb;--theme2-100: #f5dadf;--success-700: #004721;--success-600: #006e33;--success-500: #4c8d2b;--success-400: #6cc24a;--success-300: #97d700;--success-200: #bce194;--success-100: #d0debb;--success-050: #edf8e9;--warning-500: #8f3400;--warning-400: #ce4c00;--warning-050: #ffe4d6;--danger-600: #7c2629;--danger-500: #af272f;--danger-400: #e03c31;--danger-300: #e56a54;--danger-200: #e6baa8;--danger-100: #f3cfb3;--danger-050: #fbe8e6;--text-color: #000;--text-color-light: #6f6f6f;--text-color-xlight: #fff;--bg-color: #d8d8d8;--bg-color-light: #f3f3f3;--border-color: #949494;--overlay-color: rgba(0, 0, 0, .75);--box-shadow-color: rgba(20, 20, 20, .12);--state-info: var(--theme1-400);--state-success: var(--success-600);--state-warning: var(--warning-400);--state-danger: var(--danger-500);--state-disabled: #6f6f6f;--spacer: 1.5rem;--spacer-3xl: calc(var(--spacer) * 4);--spacer-xxl: calc(var(--spacer) * 2.5);--spacer-xl: calc(var(--spacer) * 2);--spacer-l: calc(var(--spacer) * 1.5);--spacer-s: calc(var(--spacer) / 1.5);--spacer-xs: calc(var(--spacer) / 2);--spacer-xxs: calc(var(--spacer) / 3);--spacer-3xs: calc(var(--spacer) / 6);--screen-xs: 30rem;--screen-s: 45rem;--screen-l: 62rem;--screen-xl: 75rem;--screen-xxl: calc(var(--screen-xl) + calc(var(--spacer-3xl) * 2) + calc(var(--spacer) * 2));--screen-xs-max: 44.9375rem;--screen-s-max: 61.9375rem;--screen-l-max: 74.9375rem;--screen-xl-max: 89.9375rem;--font-family-base: "Sun Antwerpen", sans-serif;--font-family-headings: "Antwerpen Regular", sans-serif;--font-family-monospace: "Menlo", "Monaco", "Consolas", "Courier New", monospace;--font-weight-light: 300;--font-weight-normal: 500;--font-weight-bold: 700;--font-weight-extra-bold: 800;--font-weight-h1: var(--font-weight-normal);--font-weight-h2: var(--font-weight-normal);--font-weight-h3: var(--font-weight-normal);--font-weight-h4: var(--font-weight-normal);--font-weight-h5: var(--font-weight-normal);--font-weight-h6: var(--font-weight-normal);--link-color: var(--theme1-400);--link-hover-color: var(--theme1-500);--border-radius: 0;--border-width: 1px;--animation-duration: .2s;--animation-easing: ease-in-out;--animation-normal: var(--animation-duration) var(--animation-easing);--box-shadow-bottom-left: calc(var(--spacer) / -2) calc(var(--spacer) / 2) 0 var(--box-shadow-color);--box-shadow-bottom-right: calc(var(--spacer) / 2) calc(var(--spacer) / 2) 0 var(--box-shadow-color);--box-shadow-upper-left: calc(var(--spacer) / -2) calc(var(--spacer) / -2) 0 var(--box-shadow-color);--box-shadow-upper-right: calc(var(--spacer) / 2) calc(var(--spacer) / -2) 0 var(--box-shadow-color);--box-shadow: var(--box-shadow-bottom-right);--shared-avatar-size-s: var(--spacer-l);--shared-avatar-size: var(--spacer-xl);--shared-avatar-size-l: var(--spacer-xxl);--shared-copyright-color: #fff;--shared-copyright-height: var(--spacer-l);--shared-header-height: var(--spacer-xl);--shared-slideshow-footer-color-light: #fff}body{display:flex;min-height:100vh}app-root{display:flex;flex:1 1 auto;flex-direction:column;max-width:100%}.u-main main:focus{outline:none}#main-content>ng-component{width:100%}.p-antwerp-ui{flex:1 1 auto;overflow:auto}.a-pre.hljs{border:1px solid #f3f3f3}.m-button-group--inline{display:inline-flex}@media screen and (min-width: 45rem){.u-show-on-mobile{display:none}}@media screen and (max-width: 44.9375rem){.u-hide-on-mobile{display:none}}@media screen and (max-width: 61.9375rem){.u-hide-on-tablet{display:none}}pre{tab-size:2}.u-text-readable{max-width:28rem}.aui-footer{background:#141414}.aui-footer .u-container{padding-bottom:1.5rem;padding-top:1.5rem}.aui-footer .a-list{list-style:none;padding-left:0}.aui-footer .a-list a{--link-color: #fff;--link-hover-color: var(--theme1-050)}.aui-footer h3.h4{color:#f3f3f3}.m-nav-tabs__layout{box-shadow:0 -1px #6f6f6f inset}.aui-code-snippet{display:block;overflow-x:auto}.o-leaflet__wrapper{overflow:visible!important}.o-leaflet__map:focus{box-shadow:0 0 0 3px Highlight;box-shadow:0 0 0 3px -webkit-focus-ring-color}.p-fix-position .o-header__logo{position:static}.u-datepicker{margin-bottom:15rem}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,.5)}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(layers.ef6db8722c2c3f9a.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(layers-2x.9859cd1231006a4a.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(marker-icon.d577052aa271e13f.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255,255,255,.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:rgba(255,255,255,.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.leaflet-draw-section{position:relative}.leaflet-draw-toolbar{margin-top:12px}.leaflet-draw-toolbar-top{margin-top:0}.leaflet-draw-toolbar-notop a:first-child{border-top-right-radius:0}.leaflet-draw-toolbar-nobottom a:last-child{border-bottom-right-radius:0}.leaflet-draw-toolbar a{background-image:url(spritesheet.c1d7d1462695ea36.png);background-image:linear-gradient(transparent,transparent),url(spritesheet.ac8b36fa516341a4.svg);background-repeat:no-repeat;background-size:300px 30px;background-clip:padding-box}.leaflet-retina .leaflet-draw-toolbar a{background-image:url(spritesheet-2x.53a2cab414ddbc39.png);background-image:linear-gradient(transparent,transparent),url(spritesheet.ac8b36fa516341a4.svg)}.leaflet-draw a{display:block;text-align:center;text-decoration:none}.leaflet-draw a .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.leaflet-draw-actions{display:none;list-style:none;margin:0;padding:0;position:absolute;left:26px;top:0;white-space:nowrap}.leaflet-touch .leaflet-draw-actions{left:32px}.leaflet-right .leaflet-draw-actions{right:26px;left:auto}.leaflet-touch .leaflet-right .leaflet-draw-actions{right:32px;left:auto}.leaflet-draw-actions li{display:inline-block}.leaflet-draw-actions li:first-child a{border-left:0}.leaflet-draw-actions li:last-child a{border-radius:0 4px 4px 0}.leaflet-right .leaflet-draw-actions li:last-child a{border-radius:0}.leaflet-right .leaflet-draw-actions li:first-child a{border-radius:4px 0 0 4px}.leaflet-draw-actions a{background-color:#919187;border-left:1px solid #AAA;color:#fff;font:11px/19px Helvetica Neue,Arial,Helvetica,sans-serif;line-height:28px;text-decoration:none;padding-left:10px;padding-right:10px;height:28px}.leaflet-touch .leaflet-draw-actions a{font-size:12px;line-height:30px;height:30px}.leaflet-draw-actions-bottom{margin-top:0}.leaflet-draw-actions-top{margin-top:1px}.leaflet-draw-actions-top a,.leaflet-draw-actions-bottom a{height:27px;line-height:27px}.leaflet-draw-actions a:hover{background-color:#a0a098}.leaflet-draw-actions-top.leaflet-draw-actions-bottom a{height:26px;line-height:26px}.leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:-2px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:0 -1px}.leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-31px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-29px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-62px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-60px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-92px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-90px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-122px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-120px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-273px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-271px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-152px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-150px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-182px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-180px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-212px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-210px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-242px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-240px -2px}.leaflet-mouse-marker{background-color:#fff;cursor:crosshair}.leaflet-draw-tooltip{background:#363636;background:rgba(0,0,0,.5);border:1px solid transparent;border-radius:4px;color:#fff;font:12px/18px Helvetica Neue,Arial,Helvetica,sans-serif;margin-left:20px;margin-top:-21px;padding:4px 8px;position:absolute;visibility:hidden;white-space:nowrap;z-index:6}.leaflet-draw-tooltip:before{border-right:6px solid black;border-right-color:#00000080;border-top:6px solid transparent;border-bottom:6px solid transparent;content:"";position:absolute;top:7px;left:-7px}.leaflet-error-draw-tooltip{background-color:#f2dede;border:1px solid #e6b6bd;color:#b94a48}.leaflet-error-draw-tooltip:before{border-right-color:#e6b6bd}.leaflet-draw-tooltip-single{margin-top:-12px}.leaflet-draw-tooltip-subtext{color:#f8d5e4}.leaflet-draw-guide-dash{font-size:1%;opacity:.6;position:absolute;width:5px;height:5px}.leaflet-edit-marker-selected{background-color:#fe57a11a;border:4px dashed rgba(254,87,161,.6);border-radius:4px;box-sizing:content-box}.leaflet-edit-move{cursor:move}.leaflet-edit-resize{cursor:pointer}.leaflet-oldie .leaflet-draw-toolbar{border:1px solid #999} diff --git a/styles.c18d604d77abcd12.css b/styles.c18d604d77abcd12.css new file mode 100644 index 00000000..03a22bbb --- /dev/null +++ b/styles.c18d604d77abcd12.css @@ -0,0 +1 @@ +:root{--THEME1-800: var(--theme1-800, #002855);--THEME1-700: var(--theme1-700, #003865);--THEME1-600: var(--theme1-600, #0057b7);--THEME1-500: var(--theme1-500, #009cde);--THEME1-400: var(--theme1-400, #41b6e6);--THEME1-300: var(--theme1-300, #99d6ea);--THEME1-200: var(--theme1-200, #96b5e4);--THEME1-100: var(--theme1-100, #e0ebf6);--THEME2-800: var(--theme2-800,);--THEME2-700: var(--theme2-700,);--THEME2-600: var(--theme2-600, #7c2629);--THEME2-500: var(--theme2-500, #862633);--THEME2-400: var(--theme2-400, #cf0039);--THEME2-300: var(--theme2-300, #df4661);--THEME2-200: var(--theme2-200, #ffb1bb);--THEME2-100: var(--theme2-100, #f5dadf);--INFO-800: var(--info-800, var(--THEME1-800));--INFO-700: var(--info-700, var(--THEME1-700));--INFO-600: var(--info-600, var(--THEME1-600));--INFO-500: var(--info-500, var(--THEME1-500));--INFO-400: var(--info-400, var(--THEME1-400));--INFO-300: var(--info-300, var(--THEME1-300));--INFO-200: var(--info-200, var(--THEME1-200));--INFO-100: var(--info-100, var(--THEME1-100));--SUCCESS-800: var(--success-800, #004721);--SUCCESS-700: var(--success-700, #006e33);--SUCCESS-600: var(--success-600, #4c8d2b);--SUCCESS-500: var(--success-500, #6cc24a);--SUCCESS-400: var(--success-400, #97d700);--SUCCESS-300: var(--success-300, #bce194);--SUCCESS-200: var(--success-200, #d0debb);--SUCCESS-100: var(--success-100, #edf8e9);--WARNING-800: var(--warning-800,);--WARNING-700: var(--warning-700,);--WARNING-600: var(--warning-600,);--WARNING-500: var(--warning-500, #8f3400);--WARNING-400: var(--warning-400, #ce4c00);--WARNING-300: var(--warning-300,);--WARNING-200: var(--warning-200,);--WARNING-100: var(--warning-100, #ffe4d6);--DANGER-800: var(--danger-800,);--DANGER-700: var(--danger-700, #7c2629);--DANGER-600: var(--danger-600, #af272f);--DANGER-500: var(--danger-500, #e03c31);--DANGER-400: var(--danger-400, #e56a54);--DANGER-300: var(--danger-300, #e6baa8);--DANGER-200: var(--danger-200, #f3cfb3);--DANGER-100: var(--danger-100, #fbe8e6);--TEXT-COLOR: var(--text-color, #000);--TEXT-COLOR-LIGHT: var(--text-color-light, #6f6f6f);--TEXT-COLOR-INVERTED: var(--text-color-inverted, #fff);--TEXT-COLOR-XLIGHT: var(--text-color-xlight, var(--TEXT-COLOR-INVERTED));--BG-COLOR: var(--bg-color, #f3f3f3);--BG-COLOR-LIGHT: var(--bg-color-light, #fff);--BG-COLOR-INVERTED: var(--bg-color-inverted, #424242);--BORDER-COLOR: var(--border-color, #949494);--BORDER-COLOR-LIGHT: var(--border-color-light, #d8d8d8);--OVERLAY-COLOR: var(--overlay-color, rgba(0, 0, 0, .75));--BOX-SHADOW-COLOR: var(--box-shadow-color, rgba(20, 20, 20, .12));--LINK-COLOR: var(--link-color, var(--THEME1-600));--LINK-HOVER-COLOR: var(--link-hover-color, var(--THEME1-700));--STATE-INFO: var(--state-info, var(--INFO-600));--STATE-SUCCESS: var(--state-success, var(--SUCCESS-700));--STATE-WARNING: var(--state-warning, var(--WARNING-400));--STATE-DANGER: var(--state-danger, var(--DANGER-600));--STATE-DISABLED: var(--state-disabled, #6f6f6f);--SPACER: var(--spacer, 1.5rem);--SPACER-3XL: var(--spacer-3xl, calc(var(--SPACER) * 4));--SPACER-XXL: var(--spacer-xxl, calc(var(--SPACER) * 2.5));--SPACER-XL: var(--spacer-xl, calc(var(--SPACER) * 2));--SPACER-L: var(--spacer-l, calc(var(--SPACER) * 1.5));--SPACER-S: var(--spacer-s, calc(var(--SPACER) / 1.5));--SPACER-XS: var(--spacer-xs, calc(var(--SPACER) / 2));--SPACER-XXS: var(--spacer-xxs, calc(var(--SPACER) / 3));--SPACER-3XS: var(--spacer-3xs, calc(var(--SPACER) / 6));--SCREEN-XS: var(--screen-xs, 30rem);--SCREEN-S: var(--screen-s, 45rem);--SCREEN-L: var(--screen-l, 62rem);--SCREEN-XL: var(--screen-xl, 75rem);--SCREEN-XS-MAX: var(--screen-xs-max, 44.9375rem);--SCREEN-S-MAX: var(--screen-s-max, 61.9375rem);--SCREEN-L-MAX: var(--screen-l-max, 74.9375rem);--SCREEN-XL-MAX: var(--screen-xl-max, 89.9375rem);--SCREEN-XXL: var(--screen-xxl, calc(var(--SCREEN-XL) + calc(var(--SPACER-3XL) * 2) + calc(var(--SPACER) * 2)));--FONT-FAMILY-BASE: var(--font-family-base, "Sun Antwerpen", sans-serif);--FONT-FAMILY-HEADINGS: var(--font-family-headings, "Antwerpen Regular", sans-serif);--FONT-FAMILY-MONOSPACE: var(--font-family-monospace, "Menlo", "Monaco", "Consolas", "Courier New", monospace);--FONT-WEIGHT-LIGHT: var(--font-weight-light, 300);--FONT-WEIGHT-NORMAL: var(--font-weight-normal, 500);--FONT-WEIGHT-BOLD: var(--font-weight-bold, 700);--FONT-WEIGHT-EXTRA-BOLD: var(--font-weight-extra-bold, 800);--FONT-WEIGHT-H1: var(--font-weight-h1, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H2: var(--font-weight-h2, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H3: var(--font-weight-h3, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H4: var(--font-weight-h4, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H5: var(--font-weight-h5, var(--FONT-WEIGHT-BOLD));--FONT-WEIGHT-H6: var(--font-weight-h6, var(--FONT-WEIGHT-BOLD));--FONT-SIZE-BASE: var(--font-size-base, 16px);--FONT-SIZE-SMALL: var(--font-size-small, 14px);--FONT-SIZE-LARGE: var(--font-size-large, 18px);--FONT-SIZE-H1: var(--font-size-h1, 36px);--FONT-SIZE-H2: var(--font-size-h2, 28px);--FONT-SIZE-H3: var(--font-size-h3, 23px);--FONT-SIZE-H4: var(--font-size-h4, 21px);--FONT-SIZE-H5: var(--font-size-h5, 19px);--FONT-SIZE-H6: var(--font-size-h6, 17px);--LINE-HEIGHT-BASE: var(--line-height-base, 1);--LINE-HEIGHT-HEADING: var(--line-height-heading, 1.1);--LINE-HEIGHT-PARAGRAPH: var(--line-height-paragraph, 1.3);--BORDER-RADIUS: var(--border-radius, 0);--BORDER-WIDTH: var(--border-width, 1px);--ANIMATION-DURATION: var(--animation-duration, .2s);--ANIMATION-EASING: var(--animation-easing, ease-in-out);--ANIMATION-NORMAL: var(--animation-normal, var(--ANIMATION-DURATION) var(--ANIMATION-EASING));--BOX-SHADOW-BOTTOM-LEFT: var(--box-shadow-bottom-left, calc(var(--SPACER) / -2) calc(var(--SPACER) / 2) 0 var(--BOX-SHADOW-COLOR));--BOX-SHADOW-BOTTOM-RIGHT: var(--box-shadow-bottom-right, calc(var(--SPACER) / 2) calc(var(--SPACER) / 2) 0 var(--BOX-SHADOW-COLOR));--BOX-SHADOW-TOP-LEFT: var(--box-shadow-top-left, calc(var(--SPACER) / -2) calc(var(--SPACER) / -2) 0 var(--BOX-SHADOW-COLOR));--BOX-SHADOW-TOP-RIGHT: var(--box-shadow-top-right, calc(var(--SPACER) / 2) calc(var(--SPACER) / -2) 0 var(--BOX-SHADOW-COLOR));--BOX-SHADOW: var(--box-shadow, var(--BOX-SHADOW-BOTTOM-RIGHT))}:root{--shared-avatar-size-s: var(--SPACER-L);--shared-avatar-size: var(--SPACER-XL);--shared-avatar-size-l: var(--SPACER-XXL);--shared-copyright-color: var(--TEXT-COLOR-INVERTED);--shared-copyright-height: var(--SPACER-L);--shared-header-height: var(--SPACER-XL);--shared-slideshow-footer-color-light: var(--TEXT-COLOR-INVERTED)}body{display:flex;min-height:100vh}app-root{display:flex;flex:1 1 auto;flex-direction:column;max-width:100%}.u-main main:focus{outline:none}#main-content>ng-component{width:100%}.p-antwerp-ui{flex:1 1 auto;overflow:auto}.a-pre.hljs{border:1px solid #f3f3f3}.m-button-group--inline{display:inline-flex}@media screen and (min-width: 45rem){.u-show-on-mobile{display:none}}@media screen and (max-width: 44.9375rem){.u-hide-on-mobile{display:none}}@media screen and (max-width: 61.9375rem){.u-hide-on-tablet{display:none}}pre{tab-size:2}.u-text-readable{max-width:28rem}.aui-footer{background:#141414}.aui-footer .u-container{padding-bottom:1.5rem;padding-top:1.5rem}.aui-footer .a-list{list-style:none;padding-left:0}.aui-footer .a-list a{--LINK-COLOR: #fff;--LINK-HOVER-COLOR: #fff}.aui-footer .a-list a .ai .ai{padding-left:0}.aui-footer h3.h4{color:#f3f3f3}.m-nav-tabs__layout{box-shadow:0 -1px #6f6f6f inset}.aui-code-snippet{display:block;overflow-x:auto}.o-leaflet__wrapper{overflow:visible!important}.o-leaflet__map:focus{box-shadow:0 0 0 3px Highlight;box-shadow:0 0 0 3px -webkit-focus-ring-color}.p-fix-position .o-header__logo{position:static}.u-datepicker{margin-bottom:15rem}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,.5)}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(layers.ef6db8722c2c3f9a.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(layers-2x.9859cd1231006a4a.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(marker-icon.d577052aa271e13f.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255,255,255,.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:rgba(255,255,255,.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.leaflet-draw-section{position:relative}.leaflet-draw-toolbar{margin-top:12px}.leaflet-draw-toolbar-top{margin-top:0}.leaflet-draw-toolbar-notop a:first-child{border-top-right-radius:0}.leaflet-draw-toolbar-nobottom a:last-child{border-bottom-right-radius:0}.leaflet-draw-toolbar a{background-image:url(spritesheet.c1d7d1462695ea36.png);background-image:linear-gradient(transparent,transparent),url(spritesheet.ac8b36fa516341a4.svg);background-repeat:no-repeat;background-size:300px 30px;background-clip:padding-box}.leaflet-retina .leaflet-draw-toolbar a{background-image:url(spritesheet-2x.53a2cab414ddbc39.png);background-image:linear-gradient(transparent,transparent),url(spritesheet.ac8b36fa516341a4.svg)}.leaflet-draw a{display:block;text-align:center;text-decoration:none}.leaflet-draw a .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.leaflet-draw-actions{display:none;list-style:none;margin:0;padding:0;position:absolute;left:26px;top:0;white-space:nowrap}.leaflet-touch .leaflet-draw-actions{left:32px}.leaflet-right .leaflet-draw-actions{right:26px;left:auto}.leaflet-touch .leaflet-right .leaflet-draw-actions{right:32px;left:auto}.leaflet-draw-actions li{display:inline-block}.leaflet-draw-actions li:first-child a{border-left:0}.leaflet-draw-actions li:last-child a{border-radius:0 4px 4px 0}.leaflet-right .leaflet-draw-actions li:last-child a{border-radius:0}.leaflet-right .leaflet-draw-actions li:first-child a{border-radius:4px 0 0 4px}.leaflet-draw-actions a{background-color:#919187;border-left:1px solid #AAA;color:#fff;font:11px/19px Helvetica Neue,Arial,Helvetica,sans-serif;line-height:28px;text-decoration:none;padding-left:10px;padding-right:10px;height:28px}.leaflet-touch .leaflet-draw-actions a{font-size:12px;line-height:30px;height:30px}.leaflet-draw-actions-bottom{margin-top:0}.leaflet-draw-actions-top{margin-top:1px}.leaflet-draw-actions-top a,.leaflet-draw-actions-bottom a{height:27px;line-height:27px}.leaflet-draw-actions a:hover{background-color:#a0a098}.leaflet-draw-actions-top.leaflet-draw-actions-bottom a{height:26px;line-height:26px}.leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:-2px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:0 -1px}.leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-31px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-29px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-62px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-60px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-92px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-90px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-122px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-120px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-273px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-271px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-152px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-150px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-182px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-180px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-212px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-210px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-242px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-240px -2px}.leaflet-mouse-marker{background-color:#fff;cursor:crosshair}.leaflet-draw-tooltip{background:#363636;background:rgba(0,0,0,.5);border:1px solid transparent;border-radius:4px;color:#fff;font:12px/18px Helvetica Neue,Arial,Helvetica,sans-serif;margin-left:20px;margin-top:-21px;padding:4px 8px;position:absolute;visibility:hidden;white-space:nowrap;z-index:6}.leaflet-draw-tooltip:before{border-right:6px solid black;border-right-color:#00000080;border-top:6px solid transparent;border-bottom:6px solid transparent;content:"";position:absolute;top:7px;left:-7px}.leaflet-error-draw-tooltip{background-color:#f2dede;border:1px solid #e6b6bd;color:#b94a48}.leaflet-error-draw-tooltip:before{border-right-color:#e6b6bd}.leaflet-draw-tooltip-single{margin-top:-12px}.leaflet-draw-tooltip-subtext{color:#f8d5e4}.leaflet-draw-guide-dash{font-size:1%;opacity:.6;position:absolute;width:5px;height:5px}.leaflet-edit-marker-selected{background-color:#fe57a11a;border:4px dashed rgba(254,87,161,.6);border-radius:4px;box-sizing:content-box}.leaflet-edit-move{cursor:move}.leaflet-edit-resize{cursor:pointer}.leaflet-oldie .leaflet-draw-toolbar{border:1px solid #999}