• File: main.8b371bb9214cb9dcc2d0.js
  • Full Path: /var/www/imaliadmintest/main.8b371bb9214cb9dcc2d0.js
  • Date Modified: 05/22/2023 2:50 PM
  • File size: 609.02 KB
  • MIME-type: text/plain
  • Charset: utf-8
(self.webpackChunknew_imali_dash=self.webpackChunknew_imali_dash||[]).push([[179],{8255:t=>{function e(t){return Promise.resolve().then(()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=()=>[],e.resolve=e,e.id=8255,t.exports=e},7238:(t,e,n)=>{"use strict";n.d(e,{l3:()=>r,_j:()=>s,LC:()=>i,ZN:()=>p,jt:()=>a,vP:()=>l,SB:()=>u,oB:()=>c,eR:()=>h,X$:()=>o,ZE:()=>f,k1:()=>g});class s{}class i{}const r="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function u(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function d(t){Promise.resolve(null).then(t)}class p{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){d(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class f{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,s=0;const i=this.players.length;0==i?d(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==i&&this._onFinish()}),t.onDestroy(()=>{++n==i&&this._onDestroy()}),t.onStart(()=>{++s==i&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const g="!"},8583:(t,e,n)=>{"use strict";n.d(e,{mr:()=>b,Ov:()=>Dt,ez:()=>jt,H9:()=>Rt,K0:()=>l,uU:()=>Lt,JJ:()=>Mt,Do:()=>S,Ts:()=>Nt,V_:()=>h,Ye:()=>T,S$:()=>v,mk:()=>vt,sg:()=>bt,O5:()=>St,PC:()=>xt,tP:()=>Et,b0:()=>w,lw:()=>c,EM:()=>Ht,JF:()=>qt,NF:()=>zt,qS:()=>mt,w_:()=>a,bD:()=>Vt,q:()=>r,Mx:()=>yt,HT:()=>o});var s=n(3018);let i=null;function r(){return i}function o(t){i||(i=t)}class a{}const l=new s.OlP("DocumentToken");let c=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return(0,s.LFG)(d)}const h=new s.OlP("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return r().getBaseHref(this._doc)}onPopState(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(l))},t.\u0275prov=(0,s.Yz7)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d((0,s.LFG)(l))}function g(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function y(t){return t&&"?"!==t[0]?"?"+t:t}let v=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:_,token:t,providedIn:"root"}),t})();function _(t){const e=(0,s.LFG)(l).location;return new w((0,s.LFG)(c),e&&e.origin||"")}const b=new s.OlP("appBaseHref");let w=(()=>{class t extends v{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return g(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+y(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,s){const i=this.prepareExternalUrl(n+y(s));this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,s){const i=this.prepareExternalUrl(n+y(s));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(c),s.LFG(b,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),S=(()=>{class t extends v{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=g(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,s){let i=this.prepareExternalUrl(n+y(s));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,s){let i=this.prepareExternalUrl(n+y(s));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(c),s.LFG(b,8))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),T=(()=>{class t{constructor(t,e){this._subject=new s.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(x(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+y(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,x(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+y(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+y(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(v),s.LFG(c))},t.normalizeQueryParams=y,t.joinWithSlash=g,t.stripTrailingSlash=m,t.\u0275prov=(0,s.Yz7)({factory:C,token:t,providedIn:"root"}),t})();function C(){return new T((0,s.LFG)(v),(0,s.LFG)(c))}function x(t){return t.replace(/\/index.html$/,"")}const E={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var k=(()=>((k=k||{})[k.Decimal=0]="Decimal",k[k.Percent=1]="Percent",k[k.Currency=2]="Currency",k[k.Scientific=3]="Scientific",k))(),A=(()=>((A=A||{})[A.Zero=0]="Zero",A[A.One=1]="One",A[A.Two=2]="Two",A[A.Few=3]="Few",A[A.Many=4]="Many",A[A.Other=5]="Other",A))(),I=(()=>((I=I||{})[I.Format=0]="Format",I[I.Standalone=1]="Standalone",I))(),O=(()=>((O=O||{})[O.Narrow=0]="Narrow",O[O.Abbreviated=1]="Abbreviated",O[O.Wide=2]="Wide",O[O.Short=3]="Short",O))(),P=(()=>((P=P||{})[P.Short=0]="Short",P[P.Medium=1]="Medium",P[P.Long=2]="Long",P[P.Full=3]="Full",P))(),D=(()=>((D=D||{})[D.Decimal=0]="Decimal",D[D.Group=1]="Group",D[D.List=2]="List",D[D.PercentSign=3]="PercentSign",D[D.PlusSign=4]="PlusSign",D[D.MinusSign=5]="MinusSign",D[D.Exponential=6]="Exponential",D[D.SuperscriptingExponent=7]="SuperscriptingExponent",D[D.PerMille=8]="PerMille",D[D[1/0]=9]="Infinity",D[D.NaN=10]="NaN",D[D.TimeSeparator=11]="TimeSeparator",D[D.CurrencyDecimal=12]="CurrencyDecimal",D[D.CurrencyGroup=13]="CurrencyGroup",D))();function L(t,e){return V((0,s.cg1)(t)[s.wAp.DateFormat],e)}function N(t,e){return V((0,s.cg1)(t)[s.wAp.TimeFormat],e)}function M(t,e){return V((0,s.cg1)(t)[s.wAp.DateTimeFormat],e)}function R(t,e){const n=(0,s.cg1)(t),i=n[s.wAp.NumberSymbols][e];if(void 0===i){if(e===D.CurrencyDecimal)return n[s.wAp.NumberSymbols][D.Decimal];if(e===D.CurrencyGroup)return n[s.wAp.NumberSymbols][D.Group]}return i}function F(t,e){return(0,s.cg1)(t)[s.wAp.NumberFormats][e]}const B=s.kL8;function j(t){if(!t[s.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[s.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function V(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function z(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const H=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,U={},Z=/((?:[^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 q=(()=>((q=q||{})[q.Short=0]="Short",q[q.ShortGMT=1]="ShortGMT",q[q.Long=2]="Long",q[q.Extended=3]="Extended",q))(),G=(()=>((G=G||{})[G.FullYear=0]="FullYear",G[G.Month=1]="Month",G[G.Date=2]="Date",G[G.Hours=3]="Hours",G[G.Minutes=4]="Minutes",G[G.Seconds=5]="Seconds",G[G.FractionalSeconds=6]="FractionalSeconds",G[G.Day=7]="Day",G))(),Y=(()=>((Y=Y||{})[Y.DayPeriods=0]="DayPeriods",Y[Y.Days=1]="Days",Y[Y.Months=2]="Months",Y[Y.Eras=3]="Eras",Y))();function $(t,e,n,s){let i=function(t){if(at(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[e,n=1,s=1]=t.split("-").map(t=>+t);return W(e,n-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(H))return function(t){const e=new Date(0);let n=0,s=0;const i=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),s=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-n,a=Number(t[5]||0)-s,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,o,a,l,c),e}(n)}const e=new Date(t);if(!at(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=Q(n,e)||e;let r,o=[];for(;e;){if(r=Z.exec(e),!r){o.push(e);break}{o=o.concat(r.slice(1));const t=o.pop();if(!t)break;e=t}}let a=i.getTimezoneOffset();s&&(a=ot(s,a),i=function(t,e,n){const s=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(ot(e,s)-s))}(i,s));let l="";return o.forEach(t=>{const e=function(t){if(rt[t])return rt[t];let e;switch(t){case"G":case"GG":case"GGG":e=tt(Y.Eras,O.Abbreviated);break;case"GGGG":e=tt(Y.Eras,O.Wide);break;case"GGGGG":e=tt(Y.Eras,O.Narrow);break;case"y":e=X(G.FullYear,1,0,!1,!0);break;case"yy":e=X(G.FullYear,2,0,!0,!0);break;case"yyy":e=X(G.FullYear,3,0,!1,!0);break;case"yyyy":e=X(G.FullYear,4,0,!1,!0);break;case"Y":e=it(1);break;case"YY":e=it(2,!0);break;case"YYY":e=it(3);break;case"YYYY":e=it(4);break;case"M":case"L":e=X(G.Month,1,1);break;case"MM":case"LL":e=X(G.Month,2,1);break;case"MMM":e=tt(Y.Months,O.Abbreviated);break;case"MMMM":e=tt(Y.Months,O.Wide);break;case"MMMMM":e=tt(Y.Months,O.Narrow);break;case"LLL":e=tt(Y.Months,O.Abbreviated,I.Standalone);break;case"LLLL":e=tt(Y.Months,O.Wide,I.Standalone);break;case"LLLLL":e=tt(Y.Months,O.Narrow,I.Standalone);break;case"w":e=st(1);break;case"ww":e=st(2);break;case"W":e=st(1,!0);break;case"d":e=X(G.Date,1);break;case"dd":e=X(G.Date,2);break;case"c":case"cc":e=X(G.Day,1);break;case"ccc":e=tt(Y.Days,O.Abbreviated,I.Standalone);break;case"cccc":e=tt(Y.Days,O.Wide,I.Standalone);break;case"ccccc":e=tt(Y.Days,O.Narrow,I.Standalone);break;case"cccccc":e=tt(Y.Days,O.Short,I.Standalone);break;case"E":case"EE":case"EEE":e=tt(Y.Days,O.Abbreviated);break;case"EEEE":e=tt(Y.Days,O.Wide);break;case"EEEEE":e=tt(Y.Days,O.Narrow);break;case"EEEEEE":e=tt(Y.Days,O.Short);break;case"a":case"aa":case"aaa":e=tt(Y.DayPeriods,O.Abbreviated);break;case"aaaa":e=tt(Y.DayPeriods,O.Wide);break;case"aaaaa":e=tt(Y.DayPeriods,O.Narrow);break;case"b":case"bb":case"bbb":e=tt(Y.DayPeriods,O.Abbreviated,I.Standalone,!0);break;case"bbbb":e=tt(Y.DayPeriods,O.Wide,I.Standalone,!0);break;case"bbbbb":e=tt(Y.DayPeriods,O.Narrow,I.Standalone,!0);break;case"B":case"BB":case"BBB":e=tt(Y.DayPeriods,O.Abbreviated,I.Format,!0);break;case"BBBB":e=tt(Y.DayPeriods,O.Wide,I.Format,!0);break;case"BBBBB":e=tt(Y.DayPeriods,O.Narrow,I.Format,!0);break;case"h":e=X(G.Hours,1,-12);break;case"hh":e=X(G.Hours,2,-12);break;case"H":e=X(G.Hours,1);break;case"HH":e=X(G.Hours,2);break;case"m":e=X(G.Minutes,1);break;case"mm":e=X(G.Minutes,2);break;case"s":e=X(G.Seconds,1);break;case"ss":e=X(G.Seconds,2);break;case"S":e=X(G.FractionalSeconds,1);break;case"SS":e=X(G.FractionalSeconds,2);break;case"SSS":e=X(G.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=et(q.Short);break;case"ZZZZZ":e=et(q.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=et(q.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=et(q.Long);break;default:return null}return rt[t]=e,e}(t);l+=e?e(i,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function W(t,e,n){const s=new Date(0);return s.setFullYear(t,e,n),s.setHours(0,0,0),s}function Q(t,e){const n=function(t){return(0,s.cg1)(t)[s.wAp.LocaleId]}(t);if(U[n]=U[n]||{},U[n][e])return U[n][e];let i="";switch(e){case"shortDate":i=L(t,P.Short);break;case"mediumDate":i=L(t,P.Medium);break;case"longDate":i=L(t,P.Long);break;case"fullDate":i=L(t,P.Full);break;case"shortTime":i=N(t,P.Short);break;case"mediumTime":i=N(t,P.Medium);break;case"longTime":i=N(t,P.Long);break;case"fullTime":i=N(t,P.Full);break;case"short":const e=Q(t,"shortTime"),n=Q(t,"shortDate");i=J(M(t,P.Short),[e,n]);break;case"medium":const s=Q(t,"mediumTime"),r=Q(t,"mediumDate");i=J(M(t,P.Medium),[s,r]);break;case"long":const o=Q(t,"longTime"),a=Q(t,"longDate");i=J(M(t,P.Long),[o,a]);break;case"full":const l=Q(t,"fullTime"),c=Q(t,"fullDate");i=J(M(t,P.Full),[l,c])}return i&&(U[n][e]=i),i}function J(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function K(t,e,n="-",s,i){let r="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,r=n));let o=String(t);for(;o.length<e;)o="0"+o;return s&&(o=o.substr(o.length-e)),r+o}function X(t,e,n=0,s=!1,i=!1){return function(r,o){let a=function(t,e){switch(t){case G.FullYear:return e.getFullYear();case G.Month:return e.getMonth();case G.Date:return e.getDate();case G.Hours:return e.getHours();case G.Minutes:return e.getMinutes();case G.Seconds:return e.getSeconds();case G.FractionalSeconds:return e.getMilliseconds();case G.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,r);if((n>0||a>-n)&&(a+=n),t===G.Hours)0===a&&-12===n&&(a=12);else if(t===G.FractionalSeconds)return l=e,K(a,3).substr(0,l);var l;const c=R(o,D.MinusSign);return K(a,e,c,s,i)}}function tt(t,e,n=I.Format,i=!1){return function(r,o){return function(t,e,n,i,r,o){switch(n){case Y.Months:return function(t,e,n){const i=(0,s.cg1)(t),r=V([i[s.wAp.MonthsFormat],i[s.wAp.MonthsStandalone]],e);return V(r,n)}(e,r,i)[t.getMonth()];case Y.Days:return function(t,e,n){const i=(0,s.cg1)(t),r=V([i[s.wAp.DaysFormat],i[s.wAp.DaysStandalone]],e);return V(r,n)}(e,r,i)[t.getDay()];case Y.DayPeriods:const a=t.getHours(),l=t.getMinutes();if(o){const t=function(t){const e=(0,s.cg1)(t);return j(e),(e[s.wAp.ExtraData][2]||[]).map(t=>"string"==typeof t?z(t):[z(t[0]),z(t[1])])}(e),n=function(t,e,n){const i=(0,s.cg1)(t);j(i);const r=V([i[s.wAp.ExtraData][0],i[s.wAp.ExtraData][1]],e)||[];return V(r,n)||[]}(e,r,i),o=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,s=a>=e.hours&&l>=e.minutes,i=a<n.hours||a===n.hours&&l<n.minutes;if(e.hours<n.hours){if(s&&i)return!0}else if(s||i)return!0}else if(t.hours===a&&t.minutes===l)return!0;return!1});if(-1!==o)return n[o]}return function(t,e,n){const i=(0,s.cg1)(t),r=V([i[s.wAp.DayPeriodsFormat],i[s.wAp.DayPeriodsStandalone]],e);return V(r,n)}(e,r,i)[a<12?0:1];case Y.Eras:return function(t,e){return V((0,s.cg1)(t)[s.wAp.Eras],e)}(e,i)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(r,o,t,e,n,i)}}function et(t){return function(e,n,s){const i=-1*s,r=R(n,D.MinusSign),o=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case q.Short:return(i>=0?"+":"")+K(o,2,r)+K(Math.abs(i%60),2,r);case q.ShortGMT:return"GMT"+(i>=0?"+":"")+K(o,1,r);case q.Long:return"GMT"+(i>=0?"+":"")+K(o,2,r)+":"+K(Math.abs(i%60),2,r);case q.Extended:return 0===s?"Z":(i>=0?"+":"")+K(o,2,r)+":"+K(Math.abs(i%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function nt(t){return W(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function st(t,e=!1){return function(n,s){let i;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();i=1+Math.floor((e+t)/7)}else{const t=nt(n),e=function(t){const e=W(t,0,1).getDay();return W(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),s=t.getTime()-e.getTime();i=1+Math.round(s/6048e5)}return K(i,t,R(s,D.MinusSign))}}function it(t,e=!1){return function(n,s){return K(nt(n).getFullYear(),t,R(s,D.MinusSign),e)}}const rt={};function ot(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function at(t){return t instanceof Date&&!isNaN(t.valueOf())}const lt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ct=".",ut="0";function ht(t,e,n,s,i,r,o=!1){let a="",l=!1;if(isFinite(t)){let c=function(t){let e,n,s,i,r,o=Math.abs(t)+"",a=0;for((n=o.indexOf(ct))>-1&&(o=o.replace(ct,"")),(s=o.search(/e/i))>0?(n<0&&(n=s),n+=+o.slice(s+1),o=o.substring(0,s)):n<0&&(n=o.length),s=0;o.charAt(s)===ut;s++);if(s===(r=o.length))e=[0],n=1;else{for(r--;o.charAt(r)===ut;)r--;for(n-=s,e=[],i=0;s<=r;s++,i++)e[i]=Number(o.charAt(s))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);o&&(c=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));let u=e.minInt,h=e.minFrac,d=e.maxFrac;if(r){const t=r.match(lt);if(null===t)throw new Error(`${r} is not a valid digit info`);const e=t[1],n=t[3],s=t[5];null!=e&&(u=pt(e)),null!=n&&(h=pt(n)),null!=s?d=pt(s):null!=n&&h>d&&(d=h)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let s=t.digits,i=s.length-t.integerLen;const r=Math.min(Math.max(e,i),n);let o=r+t.integerLen,a=s[o];if(o>0){s.splice(Math.max(t.integerLen,o));for(let t=o;t<s.length;t++)s[t]=0}else{i=Math.max(0,i),t.integerLen=1,s.length=Math.max(1,o=r+1),s[0]=0;for(let t=1;t<o;t++)s[t]=0}if(a>=5)if(o-1<0){for(let e=0;e>o;e--)s.unshift(0),t.integerLen++;s.unshift(1),t.integerLen++}else s[o-1]++;for(;i<Math.max(0,r);i++)s.push(0);let l=0!==r;const c=e+t.integerLen,u=s.reduceRight(function(t,e,n,s){return s[n]=(e+=t)<10?e:e-10,l&&(0===s[n]&&n>=c?s.pop():l=!1),e>=10?1:0},0);u&&(s.unshift(u),t.integerLen++)}(c,h,d);let p=c.digits,f=c.integerLen;const g=c.exponent;let m=[];for(l=p.every(t=>!t);f<u;f++)p.unshift(0);for(;f<0;f++)p.unshift(0);f>0?m=p.splice(f,p.length):(m=p,p=[0]);const y=[];for(p.length>=e.lgSize&&y.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)y.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&y.unshift(p.join("")),a=y.join(R(n,s)),m.length&&(a+=R(n,i)+m.join("")),g&&(a+=R(n,D.Exponential)+"+"+g)}else a=R(n,D.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}function dt(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},s=t.split(";"),i=s[0],r=s[1],o=-1!==i.indexOf(ct)?i.split(ct):[i.substring(0,i.lastIndexOf(ut)+1),i.substring(i.lastIndexOf(ut)+1)],a=o[0],l=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u<l.length;u++){const t=l.charAt(u);t===ut?n.minFrac=n.maxFrac=u+1:"#"===t?n.maxFrac=u+1:n.posSuf+=t}const c=a.split(",");if(n.gSize=c[1]?c[1].length:0,n.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,r){const t=i.length-n.posPre.length-n.posSuf.length,e=r.indexOf("#");n.negPre=r.substr(0,e).replace(/'/g,""),n.negSuf=r.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}function pt(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class ft{}let gt=(()=>{class t extends ft{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(B(e||this.locale)(t)){case A.Zero:return"zero";case A.One:return"one";case A.Two:return"two";case A.Few:return"few";case A.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.soG))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function mt(t,e,n){return(0,s.dwT)(t,e,n)}function yt(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[s,i]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(s.trim()===e)return decodeURIComponent(i)}return null}let vt=(()=>{class t{constructor(t,e,n,s){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,s.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,s.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.ZZ4),s.Y36(s.aQg),s.Y36(s.SBq),s.Y36(s.Qsj))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class _t{constructor(t,e,n,s){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=s}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 bt=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,s)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new _t(null,this._ngForOf,-1,-1),null===s?void 0:s),i=new wt(t,n);e.push(i)}else if(null==s)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,s);const r=new wt(t,i);e.push(r)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,s=this._viewContainer.length;n<s;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=s,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(s.ZZ4))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class wt{constructor(t,e){this.record=t,this.view=e}}let St=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Tt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Ct("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Ct("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b),s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Tt{constructor(){this.$implicit=null,this.ngIf=null}}function Ct(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,s.AaK)(e)}'.`)}let xt=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,s]=t.split(".");null!=(e=null!=e&&s?`${e}${s}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.aQg),s.Y36(s.Qsj))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Et=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.s_b))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[s.TTD]}),t})();function kt(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,s.AaK)(t)}'`)}class At{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class It{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Ot=new It,Pt=new At;let Dt=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,s.QGY)(e))return Ot;if((0,s.F4k)(e))return Pt;throw kt(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO,16))},t.\u0275pipe=s.Yjl({name:"async",type:t,pure:!1}),t})(),Lt=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",s,i){if(null==e||""===e||e!=e)return null;try{return $(e,n,i||this.locale,s)}catch(r){throw kt(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.soG,16))},t.\u0275pipe=s.Yjl({name:"date",type:t,pure:!0}),t})(),Nt=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Yjl({name:"json",type:t,pure:!1}),t})(),Mt=(()=>{class t{constructor(t){this._locale=t}transform(e,n,s){if(!Ft(e))return null;s=s||this._locale;try{return function(t,e,n){return ht(t,dt(F(e,k.Decimal),R(e,D.MinusSign)),e,D.Group,D.Decimal,n)}(Bt(e),s,n)}catch(i){throw kt(t,i.message)}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.soG,16))},t.\u0275pipe=s.Yjl({name:"number",type:t,pure:!0}),t})(),Rt=(()=>{class t{constructor(t,e="USD"){this._locale=t,this._defaultCurrencyCode=e}transform(e,n=this._defaultCurrencyCode,i="symbol",r,o){if(!Ft(e))return null;o=o||this._locale,"boolean"==typeof i&&(i=i?"symbol":"code");let a=n||this._defaultCurrencyCode;"code"!==i&&(a="symbol"===i||"symbol-narrow"===i?function(t,e,n="en"){const i=function(t){return(0,s.cg1)(t)[s.wAp.Currencies]}(n)[t]||E[t]||[],r=i[1];return"narrow"===e&&"string"==typeof r?r:i[0]||t}(a,"symbol"===i?"wide":"narrow",o):i);try{return function(t,e,n,s,i){const r=dt(F(e,k.Currency),R(e,D.MinusSign));return r.minFrac=function(t){let e;const n=E[t];return n&&(e=n[2]),"number"==typeof e?e:2}(s),r.maxFrac=r.minFrac,ht(t,r,e,D.CurrencyGroup,D.CurrencyDecimal,i).replace("\xa4",n).replace("\xa4","").trim()}(Bt(e),o,a,n,r)}catch(l){throw kt(t,l.message)}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.soG,16),s.Y36(s.EJc,16))},t.\u0275pipe=s.Yjl({name:"currency",type:t,pure:!0}),t})();function Ft(t){return!(null==t||""===t||t!=t)}function Bt(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return t}let jt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:ft,useClass:gt}]}),t})();const Vt="browser";function zt(t){return t===Vt}let Ht=(()=>{class t{}return t.\u0275prov=(0,s.Yz7)({token:t,providedIn:"root",factory:()=>new Ut((0,s.LFG)(l),window)}),t})();class Ut{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let s=n.currentNode;for(;s;){const t=s.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}s=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,s=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],s-i[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Zt(this.window.history)||Zt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Zt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class qt{}},1841:(t,e,n)=>{"use strict";n.d(e,{TP:()=>O,eN:()=>A,JF:()=>z});var s=n(8583),i=n(3018),r=n(5917),o=n(7574),a=n(4612),l=n(5435),c=n(8002);class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),s=n.toLowerCase(),i=t.slice(e+1).trim();this.maybeSetNormalizedName(n,s),this.headers.has(s)?this.headers.get(s).push(i):this.headers.set(s,[i])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const s=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(e,s))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const s=("a"===t.op?this.headers.get(e):void 0)||[];s.push(...n),this.headers.set(e,s);break;case"d":const i=t.value;if(i){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===i.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function f(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function g(t){return`${t}`}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const s=t.indexOf("="),[i,r]=-1==s?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,s)),e.decodeValue(t.slice(s+1))],o=n.get(i)||[];o.push(r),n.set(i,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const s=t[n];Array.isArray(s)?s.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:s,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(g(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(g(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class y{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function v(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function _(t){return"undefined"!=typeof Blob&&t instanceof Blob}function b(t){return"undefined"!=typeof FormData&&t instanceof FormData}class w{constructor(t,e,n,s){let i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==n?n:null,i=s):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new d),this.context||(this.context=new y),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new m,this.urlWithParams=e}serializeBody(){return null===this.body?null:v(this.body)||_(this.body)||b(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof m?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||b(this.body)?null:_(this.body)?this.body.type||null:v(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof m?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const n=t.method||this.method,s=t.url||this.url,i=t.responseType||this.responseType,r=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let l=t.headers||this.headers,c=t.params||this.params;const u=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new w(n,s,r,{params:c,headers:l,context:u,reportProgress:a,responseType:i,withCredentials:o})}}var S=(()=>((S=S||{})[S.Sent=0]="Sent",S[S.UploadProgress=1]="UploadProgress",S[S.ResponseHeader=2]="ResponseHeader",S[S.DownloadProgress=3]="DownloadProgress",S[S.Response=4]="Response",S[S.User=5]="User",S))();class T{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class C extends T{constructor(t={}){super(t),this.type=S.ResponseHeader}clone(t={}){return new C({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class x extends T{constructor(t={}){super(t),this.type=S.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new x({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class E extends T{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function k(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let A=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let s;if(t instanceof w)s=t;else{let i,r;i=n.headers instanceof d?n.headers:new d(n.headers),n.params&&(r=n.params instanceof m?n.params:new m({fromObject:n.params})),s=new w(t,e,void 0!==n.body?n.body:null,{headers:i,context:n.context,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=(0,r.of)(s).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof w||"events"===n.observe)return i;const o=i.pipe((0,l.h)(t=>t instanceof x));switch(n.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe((0,c.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe((0,c.U)(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,k(n,e))}post(t,e,n={}){return this.request("POST",t,k(n,e))}put(t,e,n={}){return this.request("PUT",t,k(n,e))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(u))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class I{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const O=new i.OlP("HTTP_INTERCEPTORS");let P=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const D=/^\)\]\}',?\n/;let L=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new o.y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const s=t.serializeBody();let i=null;const r=()=>{if(null!==i)return i;const e=1223===n.status?204:n.status,s=n.statusText||"OK",r=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return i=new C({headers:r,status:e,statusText:s,url:o}),i},o=()=>{let{headers:s,status:i,statusText:o,url:a}=r(),l=null;204!==i&&(l=void 0===n.response?n.responseText:n.response),0===i&&(i=l?200:0);let c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(D,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new x({body:l,headers:s,status:i,statusText:o,url:a||void 0})),e.complete()):e.error(new E({error:l,headers:s,status:i,statusText:o,url:a||void 0}))},a=t=>{const{url:s}=r(),i=new E({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:s||void 0});e.error(i)};let l=!1;const c=s=>{l||(e.next(r()),l=!0);let i={type:S.DownloadProgress,loaded:s.loaded};s.lengthComputable&&(i.total=s.total),"text"===t.responseType&&n.responseText&&(i.partialText=n.responseText),e.next(i)},u=t=>{let n={type:S.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==s&&n.upload&&n.upload.addEventListener("progress",u)),n.send(s),e.next({type:S.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==s&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.JF))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const N=new i.OlP("XSRF_COOKIE_NAME"),M=new i.OlP("XSRF_HEADER_NAME");class R{}let F=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,s.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.K0),i.LFG(i.Lbi),i.LFG(N))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const s=this.tokenService.getToken();return null===s||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,s)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(R),i.LFG(M))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(O,[]);this.chain=t.reduceRight((t,e)=>new I(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(h),i.LFG(i.zs3))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),V=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:B,useClass:P}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:N,useValue:e.cookieName}:[],e.headerName?{provide:M,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[B,{provide:O,useExisting:B,multi:!0},{provide:R,useClass:F},{provide:N,useValue:"XSRF-TOKEN"},{provide:M,useValue:"X-XSRF-TOKEN"}]}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[A,{provide:u,useClass:j},L,{provide:h,useExisting:L}],imports:[[V.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},2482:(t,e,n)=>{var s,i,r;!function(o){if("object"==typeof t.exports){var a=o(0,e);void 0!==a&&(t.exports=a)}else i=[n,e],void 0===(r="function"==typeof(s=o)?s.apply(e,i):s)||(t.exports=r)}(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=void 0;e.default=["pt",[["AM","PM"],n,n],n,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."],["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],n,[["a.C.","d.C."],n,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",n,n,n],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],JPY:["JP\xa5","\xa5"],PTE:["Esc."],RON:[n,"L"],SYP:[n,"S\xa3"],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"]},"ltr",function(t){var e=Math.floor(Math.abs(t));return e===Math.floor(e)&&e>=0&&e<=1?1:5}]})},3018:(t,e,n)=>{"use strict";n.d(e,{deG:()=>un,tb:()=>ac,AFp:()=>nc,ip1:()=>tc,CZH:()=>ec,hGG:()=>Xc,z2F:()=>Uc,sBO:()=>Ua,Sil:()=>vc,_Vd:()=>pa,EJc:()=>uc,SBq:()=>ya,qLn:()=>As,vpe:()=>Dl,gxx:()=>fr,tBr:()=>On,XFs:()=>P,OlP:()=>cn,zs3:()=>Ir,IIB:()=>Kl,ZZ4:()=>Ra,aQg:()=>Ba,soG:()=>cc,YKP:()=>Xa,v3s:()=>qc,h0i:()=>Ka,PXZ:()=>Bc,R0b:()=>wc,FiY:()=>Pn,r_U:()=>Xl,Lbi:()=>oc,g9A:()=>rc,Qsj:()=>ba,FYo:()=>_a,JOm:()=>Ps,Tiy:()=>Sa,q3G:()=>bs,tp0:()=>Dn,EAV:()=>$c,Rgc:()=>$a,dDg:()=>Ac,DyG:()=>hn,GfV:()=>Ta,s_b:()=>el,ifc:()=>F,eFA:()=>jc,G48:()=>Rc,Gpc:()=>g,_c5:()=>Jc,VLi:()=>Pc,c2e:()=>lc,zSh:()=>mr,wAp:()=>Xo,vHH:()=>v,EiD:()=>vs,mCW:()=>es,qzn:()=>Zn,JVY:()=>Gn,pB0:()=>Qn,eBb:()=>$n,L6k:()=>Yn,LAX:()=>Wn,cg1:()=>Qo,Tjo:()=>Qc,kL8:()=>Jo,yhl:()=>qn,dqk:()=>H,sIi:()=>jr,CqO:()=>ao,QGY:()=>ro,F4k:()=>oo,dwT:()=>Wo,RDi:()=>Et,AaK:()=>d,z3N:()=>Un,qOj:()=>Pr,TTD:()=>bt,_Bn:()=>ua,xp6:()=>vi,uIk:()=>Zr,Tol:()=>Eo,Gre:()=>Ho,MT6:()=>Uo,ekj:()=>xo,Suo:()=>Gl,Xpm:()=>X,lG2:()=>ot,Yz7:()=>S,cJS:()=>T,oAB:()=>st,Yjl:()=>at,Y36:()=>Wr,_UZ:()=>to,GkF:()=>so,BQk:()=>no,ynx:()=>eo,qZA:()=>Xr,TgZ:()=>Kr,EpF:()=>io,n5z:()=>tn,Ikx:()=>Zo,LFG:()=>kn,$8M:()=>nn,NdJ:()=>lo,CRH:()=>Yl,oxw:()=>ho,ALo:()=>xl,lcZ:()=>El,xi3:()=>kl,Dn7:()=>Al,Hsn:()=>go,F$t:()=>fo,Q6J:()=>Qr,s9C:()=>mo,MGl:()=>yo,DdM:()=>ml,VKq:()=>yl,WLB:()=>vl,kEZ:()=>_l,l5B:()=>bl,iGM:()=>Zl,MAs:()=>$r,CHM:()=>qt,oJD:()=>ws,LSH:()=>Ss,kYT:()=>it,Udp:()=>Co,d8E:()=>qo,YNc:()=>Yr,W1O:()=>Jl,_uU:()=>Bo,Oqu:()=>jo,hij:()=>Vo,AsE:()=>zo,Gf:()=>ql});var s=n(9765),i=n(5319),r=n(7574),o=n(6682),a=n(2441),l=n(1307);function c(){return new s.xQ}function u(t){for(let e in t)if(t[e]===u)return e;throw Error("Could not find renamed property on target object.")}function h(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function d(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(d).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function p(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const f=u({__forward_ref__:u});function g(t){return t.__forward_ref__=g,t.toString=function(){return d(this())},t}function m(t){return y(t)?t():t}function y(t){return"function"==typeof t&&t.hasOwnProperty(f)&&t.__forward_ref__===g}class v extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function _(t){return"string"==typeof t?t:null==t?"":String(t)}function b(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():_(t)}function w(t,e){const n=e?` in ${e}`:"";throw new v("201",`No provider for ${b(t)} found${n}`)}function S(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function T(t){return{providers:t.providers||[],imports:t.imports||[]}}function C(t){return x(t,k)||x(t,I)}function x(t,e){return t.hasOwnProperty(e)?t[e]:null}function E(t){return t&&(t.hasOwnProperty(A)||t.hasOwnProperty(O))?t[A]:null}const k=u({"\u0275prov":u}),A=u({"\u0275inj":u}),I=u({ngInjectableDef:u}),O=u({ngInjectorDef:u});var P=(()=>((P=P||{})[P.Default=0]="Default",P[P.Host=1]="Host",P[P.Self=2]="Self",P[P.SkipSelf=4]="SkipSelf",P[P.Optional=8]="Optional",P))();let D;function L(t){const e=D;return D=t,e}function N(t,e,n){const s=C(t);return s&&"root"==s.providedIn?void 0===s.value?s.value=s.factory():s.value:n&P.Optional?null:void 0!==e?e:void w(d(t),"Injector")}function M(t){return{toString:t}.toString()}var R=(()=>((R=R||{})[R.OnPush=0]="OnPush",R[R.Default=1]="Default",R))(),F=(()=>((F=F||{})[F.Emulated=0]="Emulated",F[F.None=2]="None",F[F.ShadowDom=3]="ShadowDom",F))();const B="undefined"!=typeof globalThis&&globalThis,j="undefined"!=typeof window&&window,V="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,z="undefined"!=typeof global&&global,H=B||z||j||V,U={},Z=[],q=u({"\u0275cmp":u}),G=u({"\u0275dir":u}),Y=u({"\u0275pipe":u}),$=u({"\u0275mod":u}),W=u({"\u0275loc":u}),Q=u({"\u0275fac":u}),J=u({__NG_ELEMENT_ID__:u});let K=0;function X(t){return M(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===R.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Z,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||F.Emulated,id:"c",styles:t.styles||Z,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,i=t.features,r=t.pipes;return n.id+=K++,n.inputs=rt(t.inputs,e),n.outputs=rt(t.outputs),i&&i.forEach(t=>t(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map(tt):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(et):null,n})}function tt(t){return lt(t)||function(t){return t[G]||null}(t)}function et(t){return function(t){return t[Y]||null}(t)}const nt={};function st(t){return M(()=>{const e={type:t.type,bootstrap:t.bootstrap||Z,declarations:t.declarations||Z,imports:t.imports||Z,exports:t.exports||Z,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(nt[t.id]=t.type),e})}function it(t,e){return M(()=>{const n=ct(t,!0);n.declarations=e.declarations||Z,n.imports=e.imports||Z,n.exports=e.exports||Z})}function rt(t,e){if(null==t)return U;const n={};for(const s in t)if(t.hasOwnProperty(s)){let i=t[s],r=i;Array.isArray(i)&&(r=i[1],i=i[0]),n[i]=s,e&&(e[i]=r)}return n}const ot=X;function at(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function lt(t){return t[q]||null}function ct(t,e){const n=t[$]||null;if(!n&&!0===e)throw new Error(`Type ${d(t)} does not have '\u0275mod' property.`);return n}const ut=20,ht=10;function dt(t){return Array.isArray(t)&&"object"==typeof t[1]}function pt(t){return Array.isArray(t)&&!0===t[1]}function ft(t){return 0!=(8&t.flags)}function gt(t){return 2==(2&t.flags)}function mt(t){return 1==(1&t.flags)}function yt(t){return null!==t.template}function vt(t,e){return t.hasOwnProperty(Q)?t[Q]:null}class _t{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function bt(){return wt}function wt(t){return t.type.prototype.ngOnChanges&&(t.setInput=Tt),St}function St(){const t=Ct(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===U)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Tt(t,e,n,s){const i=Ct(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:U,current:null}),r=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[n],l=o[a];r[a]=new _t(l&&l.currentValue,e,o===U),t[s]=e}function Ct(t){return t.__ngSimpleChanges__||null}let xt;function Et(t){xt=t}function kt(){return void 0!==xt?xt:"undefined"!=typeof document?document:void 0}function At(t){return!!t.listen}bt.ngInherit=!0;const It={createRenderer:(t,e)=>kt()};function Ot(t){for(;Array.isArray(t);)t=t[0];return t}function Pt(t,e){return Ot(e[t])}function Dt(t,e){return Ot(e[t.index])}function Lt(t,e){return t.data[e]}function Nt(t,e){return t[e]}function Mt(t,e){const n=e[t];return dt(n)?n:n[0]}function Rt(t){return 4==(4&t[2])}function Ft(t){return 128==(128&t[2])}function Bt(t,e){return null==e?null:t[e]}function jt(t){t[18]=0}function Vt(t,e){t[5]+=e;let n=t,s=t[3];for(;null!==s&&(1===e&&1===n[5]||-1===e&&0===n[5]);)s[5]+=e,n=s,s=s[3]}const zt={lFrame:de(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ht(){return zt.bindingsEnabled}function Ut(){return zt.lFrame.lView}function Zt(){return zt.lFrame.tView}function qt(t){return zt.lFrame.contextLView=t,t[8]}function Gt(){let t=Yt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Yt(){return zt.lFrame.currentTNode}function $t(t,e){const n=zt.lFrame;n.currentTNode=t,n.isParent=e}function Wt(){return zt.lFrame.isParent}function Qt(){zt.lFrame.isParent=!1}function Jt(){return zt.isInCheckNoChangesMode}function Kt(t){zt.isInCheckNoChangesMode=t}function Xt(){const t=zt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function te(){return zt.lFrame.bindingIndex}function ee(){return zt.lFrame.bindingIndex++}function ne(t){const e=zt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function se(t,e){const n=zt.lFrame;n.bindingIndex=n.bindingRootIndex=t,ie(e)}function ie(t){zt.lFrame.currentDirectiveIndex=t}function re(t){const e=zt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function oe(){return zt.lFrame.currentQueryIndex}function ae(t){zt.lFrame.currentQueryIndex=t}function le(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function ce(t,e,n){if(n&P.SkipSelf){let s=e,i=t;for(;s=s.parent,!(null!==s||n&P.Host||(s=le(i),null===s)||(i=i[15],10&s.type)););if(null===s)return!1;e=s,t=i}const s=zt.lFrame=he();return s.currentTNode=e,s.lView=t,!0}function ue(t){const e=he(),n=t[1];zt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function he(){const t=zt.lFrame,e=null===t?null:t.child;return null===e?de(t):e}function de(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function pe(){const t=zt.lFrame;return zt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const fe=pe;function ge(){const t=pe();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function me(){return zt.lFrame.selectedIndex}function ye(t){zt.lFrame.selectedIndex=t}function ve(){const t=zt.lFrame;return Lt(t.tView,t.selectedIndex)}function _e(t,e){for(let n=e.directiveStart,s=e.directiveEnd;n<s;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:i,ngAfterViewInit:r,ngAfterViewChecked:o,ngOnDestroy:a}=e;s&&(t.contentHooks||(t.contentHooks=[])).push(-n,s),i&&((t.contentHooks||(t.contentHooks=[])).push(n,i),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,i)),r&&(t.viewHooks||(t.viewHooks=[])).push(-n,r),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function be(t,e,n){Te(t,e,3,n)}function we(t,e,n,s){(3&t[2])===n&&Te(t,e,n,s)}function Se(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Te(t,e,n,s){const i=null!=s?s:-1,r=e.length-1;let o=0;for(let a=void 0!==s?65535&t[18]:0;a<r;a++)if("number"==typeof e[a+1]){if(o=e[a],null!=s&&o>=s)break}else e[a]<0&&(t[18]+=65536),(o<i||-1==i)&&(Ce(t,n,e,a),t[18]=(4294901760&t[18])+a+2),a++}function Ce(t,e,n,s){const i=n[s]<0,r=n[s+1],o=t[i?-n[s]:n[s]];if(i){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}const xe=-1;class Ee{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function ke(t,e,n){const s=At(t);let i=0;for(;i<n.length;){const r=n[i];if("number"==typeof r){if(0!==r)break;i++;const o=n[i++],a=n[i++],l=n[i++];s?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=r,a=n[++i];Ie(o)?s&&t.setProperty(e,o,a):s?t.setAttribute(e,o,a):e.setAttribute(o,a),i++}}return i}function Ae(t){return 3===t||4===t||6===t}function Ie(t){return 64===t.charCodeAt(0)}function Oe(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let s=0;s<e.length;s++){const i=e[s];"number"==typeof i?n=i:0===n||Pe(t,n,i,null,-1===n||2===n?e[++s]:null)}}return t}function Pe(t,e,n,s,i){let r=0,o=t.length;if(-1===e)o=-1;else for(;r<t.length;){const n=t[r++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=r-1;break}}}for(;r<t.length;){const e=t[r];if("number"==typeof e)break;if(e===n){if(null===s)return void(null!==i&&(t[r+1]=i));if(s===t[r+1])return void(t[r+2]=i)}r++,null!==s&&r++,null!==i&&r++}-1!==o&&(t.splice(o,0,e),r=o+1),t.splice(r++,0,n),null!==s&&t.splice(r++,0,s),null!==i&&t.splice(r++,0,i)}function De(t){return t!==xe}function Le(t){return 32767&t}function Ne(t,e){let n=t>>16,s=e;for(;n>0;)s=s[15],n--;return s}let Me=!0;function Re(t){const e=Me;return Me=t,e}let Fe=0;function Be(t,e){const n=Ve(t,e);if(-1!==n)return n;const s=e[1];s.firstCreatePass&&(t.injectorIndex=e.length,je(s.data,t),je(e,null),je(s.blueprint,null));const i=ze(t,e),r=t.injectorIndex;if(De(i)){const t=Le(i),n=Ne(i,e),s=n[1].data;for(let i=0;i<8;i++)e[r+i]=n[t+i]|s[t+i]}return e[r+8]=i,r}function je(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ve(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function ze(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,s=null,i=e;for(;null!==i;){const t=i[1],e=t.type;if(s=2===e?t.declTNode:1===e?i[6]:null,null===s)return xe;if(n++,i=i[15],-1!==s.injectorIndex)return s.injectorIndex|n<<16}return xe}function He(t,e,n){!function(t,e,n){let s;"string"==typeof n?s=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(s=n[J]),null==s&&(s=n[J]=Fe++);const i=255&s;e.data[t+(i>>5)]|=1<<i}(t,e,n)}function Ue(t,e,n){if(n&P.Optional)return t;w(e,"NodeInjector")}function Ze(t,e,n,s){if(n&P.Optional&&void 0===s&&(s=null),0==(n&(P.Self|P.Host))){const i=t[9],r=L(void 0);try{return i?i.get(e,s,n&P.Optional):N(e,s,n&P.Optional)}finally{L(r)}}return Ue(s,e,n)}function qe(t,e,n,s=P.Default,i){if(null!==t){const r=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(J)?t[J]:void 0;return"number"==typeof e?e>=0?255&e:Ye:e}(n);if("function"==typeof r){if(!ce(e,t,s))return s&P.Host?Ue(i,n,s):Ze(e,n,s,i);try{const t=r(s);if(null!=t||s&P.Optional)return t;w(n)}finally{fe()}}else if("number"==typeof r){let i=null,o=Ve(t,e),a=xe,l=s&P.Host?e[16][6]:null;for((-1===o||s&P.SkipSelf)&&(a=-1===o?ze(t,e):e[o+8],a!==xe&&Ke(s,!1)?(i=e[1],o=Le(a),e=Ne(a,e)):o=-1);-1!==o;){const t=e[1];if(Je(r,o,t.data)){const t=$e(o,e,n,i,s,l);if(t!==Ge)return t}a=e[o+8],a!==xe&&Ke(s,e[1].data[o+8]===l)&&Je(r,o,e)?(i=t,o=Le(a),e=Ne(a,e)):o=-1}}}return Ze(e,n,s,i)}const Ge={};function Ye(){return new Xe(Gt(),Ut())}function $e(t,e,n,s,i,r){const o=e[1],a=o.data[t+8],l=We(a,o,n,null==s?gt(a)&&Me:s!=o&&0!=(3&a.type),i&P.Host&&r===a);return null!==l?Qe(e,o,l,a):Ge}function We(t,e,n,s,i){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,u=i?a+c:t.directiveEnd;for(let h=s?a:a+c;h<u;h++){const t=o[h];if(h<l&&n===t||h>=l&&t.type===n)return h}if(i){const t=o[l];if(t&&yt(t)&&t.type===n)return l}return null}function Qe(t,e,n,s){let i=t[n];const r=e.data;if(i instanceof Ee){const o=i;o.resolving&&function(t,e){throw new v("200",`Circular dependency in DI detected for ${t}`)}(b(r[n]));const a=Re(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?L(o.injectImpl):null;ce(t,s,P.Default);try{i=t[n]=o.factory(void 0,r,t,s),e.firstCreatePass&&n>=s.directiveStart&&function(t,e,n){const{ngOnChanges:s,ngOnInit:i,ngDoCheck:r}=e.type.prototype;if(s){const s=wt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&L(l),Re(a),o.resolving=!1,fe()}}return i}function Je(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function Ke(t,e){return!(t&P.Self||t&P.Host&&e)}class Xe{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return qe(this._tNode,this._lView,t,void 0,e)}}function tn(t){return M(()=>{const e=t.prototype.constructor,n=e[Q]||en(e),s=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==s;){const t=i[Q]||en(i);if(t&&t!==n)return t;i=Object.getPrototypeOf(i)}return t=>new t})}function en(t){return y(t)?()=>{const e=en(m(t));return e&&e()}:vt(t)}function nn(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let s=0;for(;s<t;){const i=n[s];if(Ae(i))break;if(0===i)s+=2;else if("number"==typeof i)for(s++;s<t&&"string"==typeof n[s];)s++;else{if(i===e)return n[s+1];s+=2}}}return null}(Gt(),t)}const sn="__parameters__",rn="__prop__metadata__";function on(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}function an(t,e,n){return M(()=>{const s=on(e);function i(...t){if(this instanceof i)return s.apply(this,t),this;const e=new i(...t);return n.annotation=e,n;function n(t,n,s){const i=t.hasOwnProperty(sn)?t[sn]:Object.defineProperty(t,sn,{value:[]})[sn];for(;i.length<=s;)i.push(null);return(i[s]=i[s]||[]).push(e),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}function ln(t,e,n,s){return M(()=>{const i=on(e);function r(...t){if(this instanceof r)return i.apply(this,t),this;const e=new r(...t);return function(n,i){const r=n.constructor,o=r.hasOwnProperty(rn)?r[rn]:Object.defineProperty(r,rn,{value:{}})[rn];o[i]=o.hasOwnProperty(i)&&o[i]||[],o[i].unshift(e),s&&s(n,i,...t)}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class cn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=S({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const un=new cn("AnalyzeForEntryComponents"),hn=Function;function dn(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let s=t[n];Array.isArray(s)?(e===t&&(e=t.slice(0,n)),dn(s,e)):e!==t&&e.push(s)}return e}function pn(t,e){t.forEach(t=>Array.isArray(t)?pn(t,e):e(t))}function fn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function gn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function mn(t,e){const n=[];for(let s=0;s<t;s++)n.push(e);return n}function yn(t,e,n){let s=_n(t,e);return s>=0?t[1|s]=n:(s=~s,function(t,e,n,s){let i=t.length;if(i==e)t.push(n,s);else if(1===i)t.push(s,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=s}}(t,s,e,n)),s}function vn(t,e){const n=_n(t,e);if(n>=0)return t[1|n]}function _n(t,e){return function(t,e,n){let s=0,i=t.length>>1;for(;i!==s;){const n=s+(i-s>>1),r=t[n<<1];if(e===r)return n<<1;r>e?i=n:s=n+1}return~(i<<1)}(t,e)}const bn={},wn=/\n/gm,Sn="__source",Tn=u({provide:String,useValue:u});let Cn;function xn(t){const e=Cn;return Cn=t,e}function En(t,e=P.Default){if(void 0===Cn)throw new Error("inject() must be called from an injection context");return null===Cn?N(t,void 0,e):Cn.get(t,e&P.Optional?null:void 0,e)}function kn(t,e=P.Default){return(D||En)(m(t),e)}function An(t){const e=[];for(let n=0;n<t.length;n++){const s=m(t[n]);if(Array.isArray(s)){if(0===s.length)throw new Error("Arguments array must have arguments.");let t,n=P.Default;for(let e=0;e<s.length;e++){const i=s[e],r=i.__NG_DI_FLAG__;"number"==typeof r?-1===r?t=i.token:n|=r:t=i}e.push(kn(t,n))}else e.push(kn(s))}return e}function In(t,e){return t.__NG_DI_FLAG__=e,t.prototype.__NG_DI_FLAG__=e,t}const On=In(an("Inject",t=>({token:t})),-1),Pn=In(an("Optional"),8),Dn=In(an("SkipSelf"),4);let Ln,Nn;function Mn(t){var e;return(null===(e=function(){if(void 0===Ln&&(Ln=null,H.trustedTypes))try{Ln=H.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Ln}())||void 0===e?void 0:e.createHTML(t))||t}function Rn(t){var e;return(null===(e=function(){if(void 0===Nn&&(Nn=null,H.trustedTypes))try{Nn=H.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Nn}())||void 0===e?void 0:e.createHTML(t))||t}class Fn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Bn extends Fn{getTypeName(){return"HTML"}}class jn extends Fn{getTypeName(){return"Style"}}class Vn extends Fn{getTypeName(){return"Script"}}class zn extends Fn{getTypeName(){return"URL"}}class Hn extends Fn{getTypeName(){return"ResourceURL"}}function Un(t){return t instanceof Fn?t.changingThisBreaksApplicationSecurity:t}function Zn(t,e){const n=qn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function qn(t){return t instanceof Fn&&t.getTypeName()||null}function Gn(t){return new Bn(t)}function Yn(t){return new jn(t)}function $n(t){return new Vn(t)}function Wn(t){return new zn(t)}function Qn(t){return new Hn(t)}class Jn{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(Mn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Kn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Mn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Mn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let s=e.length-1;0<s;s--){const n=e.item(s).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Xn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,ts=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function es(t){return(t=String(t)).match(Xn)||t.match(ts)?t:"unsafe:"+t}function ns(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function ss(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const is=ns("area,br,col,hr,img,wbr"),rs=ns("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),os=ns("rp,rt"),as=ss(os,rs),ls=ss(is,ss(rs,ns("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")),ss(os,ns("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")),as),cs=ns("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),us=ns("srcset"),hs=ss(cs,us,ns("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ns("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")),ds=ns("script,style,template");class ps{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!ls.hasOwnProperty(e))return this.sanitizedSomething=!0,!ds.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let i=0;i<n.length;i++){const t=n.item(i),e=t.name,r=e.toLowerCase();if(!hs.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=t.value;cs[r]&&(o=es(o)),us[r]&&(s=o,o=(s=String(s)).split(",").map(t=>es(t.trim())).join(", ")),this.buf.push(" ",e,'="',ms(o),'"')}var s;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ls.hasOwnProperty(e)&&!is.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(ms(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const fs=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gs=/([^\#-~ |!])/g;function ms(t){return t.replace(/&/g,"&amp;").replace(fs,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(gs,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ys;function vs(t,e){let n=null;try{ys=ys||function(t){const e=new Kn(t);return function(){try{return!!(new window.DOMParser).parseFromString(Mn(""),"text/html")}catch(t){return!1}}()?new Jn(e):e}(t);let s=e?String(e):"";n=ys.getInertBodyElement(s);let i=5,r=s;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,s=r,r=n.innerHTML,n=ys.getInertBodyElement(s)}while(s!==r);return Mn((new ps).sanitizeChildren(_s(n)||n))}finally{if(n){const t=_s(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function _s(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var bs=(()=>((bs=bs||{})[bs.NONE=0]="NONE",bs[bs.HTML=1]="HTML",bs[bs.STYLE=2]="STYLE",bs[bs.SCRIPT=3]="SCRIPT",bs[bs.URL=4]="URL",bs[bs.RESOURCE_URL=5]="RESOURCE_URL",bs))();function ws(t){const e=Ts();return e?Rn(e.sanitize(bs.HTML,t)||""):Zn(t,"HTML")?Rn(Un(t)):vs(kt(),_(t))}function Ss(t){const e=Ts();return e?e.sanitize(bs.URL,t)||"":Zn(t,"URL")?Un(t):es(_(t))}function Ts(){const t=Ut();return t&&t[12]}function Cs(t,e){t.__ngContext__=e}function xs(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Es(t){return t.ngOriginalError}function ks(t,...e){t.error(...e)}class As{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),s=function(t){return t&&t.ngErrorLogger||ks}(t);s(this._console,"ERROR",t),e&&s(this._console,"ORIGINAL ERROR",e),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?function(t){return t.ngDebugContext}(t)||this._findContext(Es(t)):null}_findOriginalError(t){let e=t&&Es(t);for(;e&&Es(e);)e=Es(e);return e||null}}const Is=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(H))();function Os(t){return t instanceof Function?t():t}var Ps=(()=>((Ps=Ps||{})[Ps.Important=1]="Important",Ps[Ps.DashCase=2]="DashCase",Ps))();function Ds(t,e){return(void 0)(t,e)}function Ls(t){const e=t[3];return pt(e)?e[3]:e}function Ns(t){return Rs(t[13])}function Ms(t){return Rs(t[4])}function Rs(t){for(;null!==t&&!pt(t);)t=t[4];return t}function Fs(t,e,n,s,i){if(null!=s){let r,o=!1;pt(s)?r=s:dt(s)&&(o=!0,s=s[0]);const a=Ot(s);0===t&&null!==n?null==i?qs(e,n,a):Zs(e,n,a,i||null,!0):1===t&&null!==n?Zs(e,n,a,i||null,!0):2===t?function(t,e,n){const s=Ys(t,e);s&&function(t,e,n,s){At(t)?t.removeChild(e,n,s):e.removeChild(n)}(t,s,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,s,i){const r=n[7];r!==Ot(n)&&Fs(e,t,s,r,i);for(let o=ht;o<n.length;o++){const i=n[o];ei(i[1],i,t,e,s,r)}}(e,t,r,n,i)}}function Bs(t,e,n){return At(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function js(t,e){const n=t[9],s=n.indexOf(e),i=e[3];1024&e[2]&&(e[2]&=-1025,Vt(i,-1)),n.splice(s,1)}function Vs(t,e){if(t.length<=ht)return;const n=ht+e,s=t[n];if(s){const r=s[17];null!==r&&r!==t&&js(r,s),e>0&&(t[n-1][4]=s[4]);const o=gn(t,ht+e);ei(s[1],i=s,i[11],2,null,null),i[0]=null,i[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),s[3]=null,s[4]=null,s[2]&=-129}var i;return s}function zs(t,e){if(!(256&e[2])){const n=e[11];At(n)&&n.destroyNode&&ei(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Hs(t[1],t);for(;e;){let n=null;if(dt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)dt(e)&&Hs(e[1],e),e=e[3];null===e&&(e=t),dt(e)&&Hs(e[1],e),n=e&&e[4]}e=n}}(e)}}function Hs(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let s=0;s<n.length;s+=2){const t=e[n[s]];if(!(t instanceof Ee)){const e=n[s+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2){const s=t[e[n]],i=e[n+1];try{i.call(s)}finally{}}else try{e.call(t)}finally{}}}}(t,e),function(t,e){const n=t.cleanup,s=e[7];let i=-1;if(null!==n)for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const t=n[r+1],o="function"==typeof t?t(e):Ot(e[t]),a=s[i=n[r+2]],l=n[r+3];"boolean"==typeof l?o.removeEventListener(n[r],a,l):l>=0?s[i=l]():s[i=-l].unsubscribe(),r+=2}else{const t=s[i=n[r+1]];n[r].call(t)}if(null!==s){for(let t=i+1;t<s.length;t++)(0,s[t])();e[7]=null}}(t,e),1===e[1].type&&At(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&pt(e[3])){n!==e[3]&&js(n,e);const s=e[19];null!==s&&s.detachView(t)}}}function Us(t,e,n){return function(t,e,n){let s=e;for(;null!==s&&40&s.type;)s=(e=s).parent;if(null===s)return n[0];if(2&s.flags){const e=t.data[s.directiveStart].encapsulation;if(e===F.None||e===F.Emulated)return null}return Dt(s,n)}(t,e.parent,n)}function Zs(t,e,n,s,i){At(t)?t.insertBefore(e,n,s,i):e.insertBefore(n,s,i)}function qs(t,e,n){At(t)?t.appendChild(e,n):e.appendChild(n)}function Gs(t,e,n,s,i){null!==s?Zs(t,e,n,s,i):qs(t,e,n)}function Ys(t,e){return At(t)?t.parentNode(e):e.parentNode}function $s(t,e,n){return Ws(t,e,n)}let Ws=function(t,e,n){return 40&t.type?Dt(t,n):null};function Qs(t,e,n,s){const i=Us(t,s,e),r=e[11],o=$s(s.parent||e[6],s,e);if(null!=i)if(Array.isArray(n))for(let a=0;a<n.length;a++)Gs(r,i,n[a],o,!1);else Gs(r,i,n,o,!1)}function Js(t,e){if(null!==e){const n=e.type;if(3&n)return Dt(e,t);if(4&n)return Xs(-1,t[e.index]);if(8&n){const n=e.child;if(null!==n)return Js(t,n);{const n=t[e.index];return pt(n)?Xs(-1,n):Ot(n)}}if(32&n)return Ds(e,t)()||Ot(t[e.index]);{const n=Ks(t,e);return null!==n?Array.isArray(n)?n[0]:Js(Ls(t[16]),n):Js(t,e.next)}}return null}function Ks(t,e){return null!==e?t[16][6].projection[e.projection]:null}function Xs(t,e){const n=ht+t+1;if(n<e.length){const t=e[n],s=t[1].firstChild;if(null!==s)return Js(t,s)}return e[7]}function ti(t,e,n,s,i,r,o){for(;null!=n;){const a=s[n.index],l=n.type;if(o&&0===e&&(a&&Cs(Ot(a),s),n.flags|=4),64!=(64&n.flags))if(8&l)ti(t,e,n.child,s,i,r,!1),Fs(e,t,i,a,r);else if(32&l){const o=Ds(n,s);let l;for(;l=o();)Fs(e,t,i,l,r);Fs(e,t,i,a,r)}else 16&l?ni(t,e,s,n,i,r):Fs(e,t,i,a,r);n=o?n.projectionNext:n.next}}function ei(t,e,n,s,i,r){ti(n,s,t.firstChild,e,i,r,!1)}function ni(t,e,n,s,i,r){const o=n[16],a=o[6].projection[s.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)Fs(e,t,i,a[l],r);else ti(t,e,a,o[3],i,r,!0)}function si(t,e,n){At(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function ii(t,e,n){At(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function ri(t,e,n){let s=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const n=e.length;if(i+n===s||t.charCodeAt(i+n)<=32)return i}n=i+1}}const oi="ng-template";function ai(t,e,n){let s=0;for(;s<t.length;){let i=t[s++];if(n&&"class"===i){if(i=t[s],-1!==ri(i.toLowerCase(),e,0))return!0}else if(1===i){for(;s<t.length&&"string"==typeof(i=t[s++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function li(t){return 4===t.type&&t.value!==oi}function ci(t,e,n){return e===(4!==t.type||n?t.value:oi)}function ui(t,e,n){let s=4;const i=t.attrs||[],r=function(t){for(let e=0;e<t.length;e++)if(Ae(t[e]))return e;return t.length}(i);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&s){if(s=2|1&s,""!==l&&!ci(t,l,n)||""===l&&1===e.length){if(hi(s))return!1;o=!0}}else{const c=8&s?l:e[++a];if(8&s&&null!==t.attrs){if(!ai(t.attrs,c,n)){if(hi(s))return!1;o=!0}continue}const u=di(8&s?"class":l,i,li(t),n);if(-1===u){if(hi(s))return!1;o=!0;continue}if(""!==c){let t;t=u>r?"":i[u+1].toLowerCase();const e=8&s?t:null;if(e&&-1!==ri(e,c,0)||2&s&&c!==t){if(hi(s))return!1;o=!0}}}}else{if(!o&&!hi(s)&&!hi(l))return!1;if(o&&hi(l))continue;o=!1,s=l|1&s}}return hi(s)||o}function hi(t){return 0==(1&t)}function di(t,e,n,s){if(null===e)return-1;let i=0;if(s||!n){let n=!1;for(;i<e.length;){const s=e[i];if(s===t)return i;if(3===s||6===s)n=!0;else{if(1===s||2===s){let t=e[++i];for(;"string"==typeof t;)t=e[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const s=t[n];if("number"==typeof s)return-1;if(s===e)return n;n++}return-1}(e,t)}function pi(t,e,n=!1){for(let s=0;s<e.length;s++)if(ui(t,e[s],n))return!0;return!1}function fi(t,e){t:for(let n=0;n<e.length;n++){const s=e[n];if(t.length===s.length){for(let e=0;e<t.length;e++)if(t[e]!==s[e])continue t;return!0}}return!1}function gi(t,e){return t?":not("+e.trim()+")":e}function mi(t){let e=t[0],n=1,s=2,i="",r=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&s){const e=t[++n];i+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&s?i+="."+o:4&s&&(i+=" "+o);else""===i||hi(o)||(e+=gi(r,i),i=""),s=o,r=r||!hi(s);n++}return""!==i&&(e+=gi(r,i)),e}const yi={};function vi(t){_i(Zt(),Ut(),me()+t,Jt())}function _i(t,e,n,s){if(!s)if(3==(3&e[2])){const s=t.preOrderCheckHooks;null!==s&&be(e,s,n)}else{const s=t.preOrderHooks;null!==s&&we(e,s,0,n)}ye(n)}function bi(t,e){return t<<17|e<<2}function wi(t){return t>>17&32767}function Si(t){return 2|t}function Ti(t){return(131068&t)>>2}function Ci(t,e){return-131069&t|e<<2}function xi(t){return 1|t}function Ei(t,e){const n=t.contentQueries;if(null!==n)for(let s=0;s<n.length;s+=2){const i=n[s],r=n[s+1];if(-1!==r){const n=t.data[r];ae(i),n.contentQueries(2,e[r],r)}}}function ki(t,e,n,s,i,r,o,a,l,c){const u=e.blueprint.slice();return u[0]=i,u[2]=140|s,jt(u),u[3]=u[15]=t,u[8]=n,u[10]=o||t&&t[10],u[11]=a||t&&t[11],u[12]=l||t&&t[12]||null,u[9]=c||t&&t[9]||null,u[6]=r,u[16]=2==e.type?t[16]:u,u}function Ai(t,e,n,s,i){let r=t.data[e];if(null===r)r=function(t,e,n,s,i){const r=Yt(),o=Wt(),a=t.data[e]=function(t,e,n,s,i,r){return{type:n,index:s,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,n,e,s,i);return null===t.firstChild&&(t.firstChild=a),null!==r&&(o?null==r.child&&null!==a.parent&&(r.child=a):null===r.next&&(r.next=a)),a}(t,e,n,s,i),zt.lFrame.inI18n&&(r.flags|=64);else if(64&r.type){r.type=n,r.value=s,r.attrs=i;const t=function(){const t=zt.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();r.injectorIndex=null===t?-1:t.injectorIndex}return $t(r,!0),r}function Ii(t,e,n,s){if(0===n)return-1;const i=e.length;for(let r=0;r<n;r++)e.push(s),t.blueprint.push(s),t.data.push(null);return i}function Oi(t,e,n){ue(e);try{const s=t.viewQuery;null!==s&&or(1,s,n);const i=t.template;null!==i&&Li(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Ei(t,e),t.staticViewQueries&&or(2,t.viewQuery,n);const r=t.components;null!==r&&function(t,e){for(let n=0;n<e.length;n++)er(t,e[n])}(e,r)}catch(s){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),s}finally{e[2]&=-5,ge()}}function Pi(t,e,n,s){const i=e[2];if(256==(256&i))return;ue(e);const r=Jt();try{jt(e),zt.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Li(t,e,n,2,s);const o=3==(3&i);if(!r)if(o){const n=t.preOrderCheckHooks;null!==n&&be(e,n,null)}else{const n=t.preOrderHooks;null!==n&&we(e,n,0,null),Se(e,0)}if(function(t){for(let e=Ns(t);null!==e;e=Ms(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],s=n[3];0==(1024&n[2])&&Vt(s,1),n[2]|=1024}}}(e),function(t){for(let e=Ns(t);null!==e;e=Ms(e))for(let t=ht;t<e.length;t++){const n=e[t],s=n[1];Ft(n)&&Pi(s,n,s.template,n[8])}}(e),null!==t.contentQueries&&Ei(t,e),!r)if(o){const n=t.contentCheckHooks;null!==n&&be(e,n)}else{const n=t.contentHooks;null!==n&&we(e,n,1),Se(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let t=0;t<n.length;t++){const s=n[t];if(s<0)ye(~s);else{const i=s,r=n[++t],o=n[++t];se(r,i),o(2,e[i])}}}finally{ye(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)Xi(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&or(2,l,s),!r)if(o){const n=t.viewCheckHooks;null!==n&&be(e,n)}else{const n=t.viewHooks;null!==n&&we(e,n,2),Se(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Vt(e[3],-1))}finally{ge()}}function Di(t,e,n,s){const i=e[10],r=!Jt(),o=Rt(e);try{r&&!o&&i.begin&&i.begin(),o&&Oi(t,e,s),Pi(t,e,n,s)}finally{r&&!o&&i.end&&i.end()}}function Li(t,e,n,s,i){const r=me(),o=2&s;try{ye(-1),o&&e.length>ut&&_i(t,e,ut,Jt()),n(s,i)}finally{ye(r)}}function Ni(t,e,n){if(ft(e)){const s=e.directiveEnd;for(let i=e.directiveStart;i<s;i++){const e=t.data[i];e.contentQueries&&e.contentQueries(1,n[i],i)}}}function Mi(t,e,n){Ht()&&(function(t,e,n,s){const i=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||Be(n,e),Cs(s,e);const o=n.initialInputs;for(let a=i;a<r;a++){const s=t.data[a],r=yt(s);r&&Wi(e,n,s);const l=Qe(e,t,a,n);Cs(l,e),null!==o&&Qi(0,a-i,l,s,0,o),r&&(Mt(n.index,e)[8]=l)}}(t,e,n,Dt(n,e)),128==(128&n.flags)&&function(t,e,n){const s=n.directiveStart,i=n.directiveEnd,r=n.index,o=zt.lFrame.currentDirectiveIndex;try{ye(r);for(let n=s;n<i;n++){const s=t.data[n],i=e[n];ie(n),null===s.hostBindings&&0===s.hostVars&&null===s.hostAttrs||Zi(s,i)}}finally{ye(-1),ie(o)}}(t,e,n))}function Ri(t,e,n=Dt){const s=e.localNames;if(null!==s){let i=e.index+1;for(let r=0;r<s.length;r+=2){const o=s[r+1],a=-1===o?n(e,t):t[o];t[i++]=a}}}function Fi(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Bi(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Bi(t,e,n,s,i,r,o,a,l,c){const u=ut+s,h=u+i,d=function(t,e){const n=[];for(let s=0;s<e;s++)n.push(s<t?null:yi);return n}(u,h),p="function"==typeof c?c():c;return d[1]={type:t,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:e,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function ji(t,e,n,s){const i=lr(e);null===n?i.push(s):(i.push(n),t.firstCreatePass&&cr(t).push(s,i.length-1))}function Vi(t,e,n){for(let s in t)if(t.hasOwnProperty(s)){const i=t[s];(n=null===n?{}:n).hasOwnProperty(s)?n[s].push(e,i):n[s]=[e,i]}return n}function zi(t,e,n,s,i,r,o,a){const l=Dt(e,n);let c,u=e.inputs;var h;!a&&null!=u&&(c=u[s])?(hr(t,n,c,s,i),gt(e)&&function(t,e){const n=Mt(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(s="class"===(h=s)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,i=null!=o?o(i,e.value||"",s):i,At(r)?r.setProperty(l,s,i):Ie(s)||(l.setProperty?l.setProperty(s,i):l[s]=i))}function Hi(t,e,n,s){let i=!1;if(Ht()){const r=function(t,e,n){const s=t.directiveRegistry;let i=null;if(s)for(let r=0;r<s.length;r++){const o=s[r];pi(n,o.selectors,!1)&&(i||(i=[]),He(Be(n,e),t,o.type),yt(o)?(qi(t,n),i.unshift(o)):i.push(o))}return i}(t,e,n),o=null===s?null:{"":-1};if(null!==r){i=!0,Yi(n,t.data.length,r.length);for(let t=0;t<r.length;t++){const e=r[t];e.providersResolver&&e.providersResolver(e)}let s=!1,a=!1,l=Ii(t,e,r.length,null);for(let i=0;i<r.length;i++){const c=r[i];n.mergedAttrs=Oe(n.mergedAttrs,c.hostAttrs),$i(t,n,e,l,c),Gi(l,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const u=c.type.prototype;!s&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),s=!0),a||!u.ngOnChanges&&!u.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),a=!0),l++}!function(t,e){const n=e.directiveEnd,s=t.data,i=e.attrs,r=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=s[l],n=t.inputs,c=null===i||li(e)?null:Ji(n,i);r.push(c),o=Vi(n,l,o),a=Vi(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=r,e.inputs=o,e.outputs=a}(t,n)}o&&function(t,e,n){if(e){const s=t.localNames=[];for(let t=0;t<e.length;t+=2){const i=n[e[t+1]];if(null==i)throw new v("301",`Export of name '${e[t+1]}' not found!`);s.push(e[t],i)}}}(n,s,o)}return n.mergedAttrs=Oe(n.mergedAttrs,n.attrs),i}function Ui(t,e,n,s,i,r){const o=r.hostBindings;if(o){let n=t.hostBindingOpCodes;null===n&&(n=t.hostBindingOpCodes=[]);const r=~e.index;(function(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(s,i,o)}}function Zi(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function qi(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Gi(t,e,n){if(n){if(e.exportAs)for(let s=0;s<e.exportAs.length;s++)n[e.exportAs[s]]=t;yt(e)&&(n[""]=t)}}function Yi(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function $i(t,e,n,s,i){t.data[s]=i;const r=i.factory||(i.factory=vt(i.type)),o=new Ee(r,yt(i),null);t.blueprint[s]=o,n[s]=o,Ui(t,e,0,s,Ii(t,n,i.hostVars,yi),i)}function Wi(t,e,n){const s=Dt(e,t),i=Fi(n),r=t[10],o=nr(t,ki(t,i,null,n.onPush?64:16,s,e,r,r.createRenderer(s,n),null,null));t[e.index]=o}function Qi(t,e,n,s,i,r){const o=r[e];if(null!==o){const t=s.setInput;for(let e=0;e<o.length;){const i=o[e++],r=o[e++],a=o[e++];null!==t?s.setInput(n,a,i,r):n[r]=a}}}function Ji(t,e){let n=null,s=0;for(;s<e.length;){const i=e[s];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[s+1])),s+=2}else s+=2;else s+=4}return n}function Ki(t,e,n,s){return new Array(t,!0,!1,e,null,0,s,n,null,null)}function Xi(t,e){const n=Mt(e,t);if(Ft(n)){const t=n[1];80&n[2]?Pi(t,n,t.template,n[8]):n[5]>0&&tr(n)}}function tr(t){for(let n=Ns(t);null!==n;n=Ms(n))for(let t=ht;t<n.length;t++){const e=n[t];if(1024&e[2]){const t=e[1];Pi(t,e,t.template,e[8])}else e[5]>0&&tr(e)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const s=Mt(e[n],t);Ft(s)&&s[5]>0&&tr(s)}}function er(t,e){const n=Mt(e,t),s=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(s,n),Oi(s,n,n[8])}function nr(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function sr(t){for(;t;){t[2]|=64;const e=Ls(t);if(0!=(512&t[2])&&!e)return t;t=e}return null}function ir(t,e,n){const s=e[10];s.begin&&s.begin();try{Pi(t,e,t.template,n)}catch(i){throw ur(e,i),i}finally{s.end&&s.end()}}function rr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],s=xs(n),i=s[1];Di(i,s,i.template,n)}}(t[8])}function or(t,e,n){ae(0),e(t,n)}const ar=(()=>Promise.resolve(null))();function lr(t){return t[7]||(t[7]=[])}function cr(t){return t.cleanup||(t.cleanup=[])}function ur(t,e){const n=t[9],s=n?n.get(As,null):null;s&&s.handleError(e)}function hr(t,e,n,s,i){for(let r=0;r<n.length;){const o=n[r++],a=n[r++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,i,s,a):l[a]=i}}function dr(t,e,n){const s=Pt(e,t);!function(t,e,n){At(t)?t.setValue(e,n):e.textContent=n}(t[11],s,n)}function pr(t,e,n){let s=n?t.styles:null,i=n?t.classes:null,r=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?r=t:1==r?i=p(i,t):2==r&&(s=p(s,t+": "+e[++o]+";"))}n?t.styles=s:t.stylesWithoutHost=s,n?t.classes=i:t.classesWithoutHost=i}const fr=new cn("INJECTOR",-1);class gr{get(t,e=bn){if(e===bn){const e=new Error(`NullInjectorError: No provider for ${d(t)}!`);throw e.name="NullInjectorError",e}return e}}const mr=new cn("Set Injector scope."),yr={},vr={};let _r;function br(){return void 0===_r&&(_r=new gr),_r}function wr(t,e=null,n=null,s){return new Sr(t,n,e||br(),s)}class Sr{constructor(t,e,n,s=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];e&&pn(e,n=>this.processProvider(n,t,e)),pn([t],t=>this.processInjectorType(t,[],i)),this.records.set(fr,xr(void 0,this));const r=this.records.get(mr);this.scope=null!=r?r.value:null,this.source=s||("object"==typeof t?null:d(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=bn,n=P.Default){this.assertNotDestroyed();const s=xn(this),i=L(void 0);try{if(!(n&P.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof cn)&&C(t);e=n&&this.injectableDefInScope(n)?xr(Tr(t),yr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&P.Self?br():this.parent).get(t,e=n&P.Optional&&e===bn?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(d(t)),s)throw o;return function(t,e,n,s){const i=t.ngTempTokenPath;throw e[Sn]&&i.unshift(e[Sn]),t.message=function(t,e,n,s=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=d(e);if(Array.isArray(e))i=e.map(d).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let s=e[n];t.push(n+":"+("string"==typeof s?JSON.stringify(s):d(s)))}i=`{${t.join(", ")}}`}return`${n}${s?"("+s+")":""}[${i}]: ${t.replace(wn,"\n  ")}`}("\n"+t.message,i,n,s),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{L(i),xn(s)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(d(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=m(t)))return!1;let s=E(t);const i=null==s&&t.ngModule||void 0,r=void 0===i?t:i,o=-1!==n.indexOf(r);if(void 0!==i&&(s=E(i)),null==s)return!1;if(null!=s.imports&&!o){let t;n.push(r);try{pn(s.imports,s=>{this.processInjectorType(s,e,n)&&(void 0===t&&(t=[]),t.push(s))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:s}=t[e];pn(s,t=>this.processProvider(t,n,s||Z))}}this.injectorDefTypes.add(r);const a=vt(r)||(()=>new r);this.records.set(r,xr(a,yr));const l=s.providers;if(null!=l&&!o){const e=t;pn(l,t=>this.processProvider(t,e,l))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let s=kr(t=m(t))?t:m(t&&t.provide);const i=function(t,e,n){return Er(t)?xr(void 0,t.useValue):xr(Cr(t),yr)}(t);if(kr(t)||!0!==t.multi)this.records.get(s);else{let e=this.records.get(s);e||(e=xr(void 0,yr,!0),e.factory=()=>An(e.multi),this.records.set(s,e)),s=t,e.multi.push(t)}this.records.set(s,i)}hydrate(t,e){var n;return e.value===yr&&(e.value=vr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=m(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Tr(t){const e=C(t),n=null!==e?e.factory:vt(t);if(null!==n)return n;if(t instanceof cn)throw new Error(`Token ${d(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=mn(e,"?");throw new Error(`Can't resolve all parameters for ${d(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[k]||t[I]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Cr(t,e,n){let s;if(kr(t)){const e=m(t);return vt(e)||Tr(e)}if(Er(t))s=()=>m(t.useValue);else if((i=t)&&i.useFactory)s=()=>t.useFactory(...An(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))s=()=>kn(m(t.useExisting));else{const e=m(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return vt(e)||Tr(e);s=()=>new e(...An(t.deps))}var i;return s}function xr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Er(t){return null!==t&&"object"==typeof t&&Tn in t}function kr(t){return"function"==typeof t}const Ar=function(t,e,n){return function(t,e=null,n=null,s){const i=wr(t,e,n,s);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};class Ir{static create(t,e){return Array.isArray(t)?Ar(t,e,""):Ar(t.providers,t.parent,t.name||"")}}function Or(t,e){_e(xs(t)[1],Gt())}function Pr(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const s=[t];for(;e;){let i;if(yt(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){s.push(i);const e=t;e.inputs=Dr(t.inputs),e.declaredInputs=Dr(t.declaredInputs),e.outputs=Dr(t.outputs);const n=i.hostBindings;n&&Mr(t,n);const r=i.viewQuery,o=i.contentQueries;if(r&&Lr(t,r),o&&Nr(t,o),h(t.inputs,i.inputs),h(t.declaredInputs,i.declaredInputs),h(t.outputs,i.outputs),yt(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}}const e=i.features;if(e)for(let s=0;s<e.length;s++){const i=e[s];i&&i.ngInherit&&i(t),i===Pr&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let s=t.length-1;s>=0;s--){const i=t[s];i.hostVars=e+=i.hostVars,i.hostAttrs=Oe(i.hostAttrs,n=Oe(n,i.hostAttrs))}}(s)}function Dr(t){return t===U?{}:t===Z?[]:t}function Lr(t,e){const n=t.viewQuery;t.viewQuery=n?(t,s)=>{e(t,s),n(t,s)}:e}function Nr(t,e){const n=t.contentQueries;t.contentQueries=n?(t,s,i)=>{e(t,s,i),n(t,s,i)}:e}function Mr(t,e){const n=t.hostBindings;t.hostBindings=n?(t,s)=>{e(t,s),n(t,s)}:e}Ir.THROW_IF_NOT_FOUND=bn,Ir.NULL=new gr,Ir.\u0275prov=S({token:Ir,providedIn:"any",factory:()=>kn(fr)}),Ir.__NG_ELEMENT_ID__=-1;let Rr=null;function Fr(){if(!Rr){const t=H.Symbol;if(t&&t.iterator)Rr=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Rr=n)}}}return Rr}class Br{constructor(t){this.wrapped=t}static wrap(t){return new Br(t)}static unwrap(t){return Br.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Br}}function jr(t){return!!Vr(t)&&(Array.isArray(t)||!(t instanceof Map)&&Fr()in t)}function Vr(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function zr(t,e,n){return t[e]=n}function Hr(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Ur(t,e,n,s){const i=Hr(t,e,n);return Hr(t,e+1,s)||i}function Zr(t,e,n,s){const i=Ut();return Hr(i,ee(),e)&&(Zt(),function(t,e,n,s,i,r){const o=Dt(t,e);!function(t,e,n,s,i,r,o){if(null==r)At(t)?t.removeAttribute(e,i,n):e.removeAttribute(i);else{const a=null==o?_(r):o(r,s||"",i);At(t)?t.setAttribute(e,i,a,n):n?e.setAttributeNS(n,i,a):e.setAttribute(i,a)}}(e[11],o,r,t.value,n,s,i)}(ve(),i,t,e,n,s)),Zr}function qr(t,e,n,s){return Hr(t,ee(),n)?e+_(n)+s:yi}function Gr(t,e,n,s,i,r){const o=Ur(t,te(),n,i);return ne(2),o?e+_(n)+s+_(i)+r:yi}function Yr(t,e,n,s,i,r,o,a){const l=Ut(),c=Zt(),u=t+ut,h=c.firstCreatePass?function(t,e,n,s,i,r,o,a,l){const c=e.consts,u=Ai(e,t,4,o||null,Bt(c,a));Hi(e,n,u,Bt(c,l)),_e(e,u);const h=u.tViews=Bi(2,u,s,i,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,n,s,i,r,o):c.data[u];$t(h,!1);const d=l[11].createComment("");Qs(c,l,d,h),Cs(d,l),nr(l,l[u]=Ki(d,l,d,h)),mt(h)&&Mi(c,l,h),null!=o&&Ri(l,h,a)}function $r(t){return Nt(zt.lFrame.contextLView,ut+t)}function Wr(t,e=P.Default){const n=Ut();return null===n?kn(t,e):qe(Gt(),n,m(t),e)}function Qr(t,e,n){const s=Ut();return Hr(s,ee(),e)&&zi(Zt(),ve(),s,t,e,s[11],n,!1),Qr}function Jr(t,e,n,s,i){const r=i?"class":"style";hr(t,n,e.inputs[r],r,s)}function Kr(t,e,n,s){const i=Ut(),r=Zt(),o=ut+t,a=i[11],l=i[o]=Bs(a,e,zt.lFrame.currentNamespace),c=r.firstCreatePass?function(t,e,n,s,i,r,o){const a=e.consts,l=Ai(e,t,2,i,Bt(a,r));return Hi(e,n,l,Bt(a,o)),null!==l.attrs&&pr(l,l.attrs,!1),null!==l.mergedAttrs&&pr(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(o,r,i,0,e,n,s):r.data[o];$t(c,!0);const u=c.mergedAttrs;null!==u&&ke(a,l,u);const h=c.classes;null!==h&&ii(a,l,h);const d=c.styles;null!==d&&si(a,l,d),64!=(64&c.flags)&&Qs(r,i,l,c),0===zt.lFrame.elementDepthCount&&Cs(l,i),zt.lFrame.elementDepthCount++,mt(c)&&(Mi(r,i,c),Ni(r,c,i)),null!==s&&Ri(i,c)}function Xr(){let t=Gt();Wt()?Qt():(t=t.parent,$t(t,!1));const e=t;zt.lFrame.elementDepthCount--;const n=Zt();n.firstCreatePass&&(_e(n,t),ft(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Jr(n,e,Ut(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Jr(n,e,Ut(),e.stylesWithoutHost,!1)}function to(t,e,n,s){Kr(t,e,n,s),Xr()}function eo(t,e,n){const s=Ut(),i=Zt(),r=t+ut,o=i.firstCreatePass?function(t,e,n,s,i){const r=e.consts,o=Bt(r,s),a=Ai(e,t,8,"ng-container",o);return null!==o&&pr(a,o,!0),Hi(e,n,a,Bt(r,i)),null!==e.queries&&e.queries.elementStart(e,a),a}(r,i,s,e,n):i.data[r];$t(o,!0);const a=s[r]=s[11].createComment("");Qs(i,s,a,o),Cs(a,s),mt(o)&&(Mi(i,s,o),Ni(i,o,s)),null!=n&&Ri(s,o)}function no(){let t=Gt();const e=Zt();Wt()?Qt():(t=t.parent,$t(t,!1)),e.firstCreatePass&&(_e(e,t),ft(t)&&e.queries.elementEnd(t))}function so(t,e,n){eo(t,e,n),no()}function io(){return Ut()}function ro(t){return!!t&&"function"==typeof t.then}function oo(t){return!!t&&"function"==typeof t.subscribe}const ao=oo;function lo(t,e,n,s){const i=Ut(),r=Zt(),o=Gt();return function(t,e,n,s,i,r,o,a){const l=mt(s),c=t.firstCreatePass&&cr(t),u=lr(e);let h=!0;if(3&s.type||a){const d=Dt(s,e),p=a?a(d):d,f=u.length,g=a?t=>a(Ot(t[s.index])):s.index;if(At(n)){let o=null;if(!a&&l&&(o=function(t,e,n,s){const i=t.cleanup;if(null!=i)for(let r=0;r<i.length-1;r+=2){const t=i[r];if(t===n&&i[r+1]===s){const t=e[7],n=i[r+2];return t.length>n?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,i,s.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,h=!1;else{r=uo(s,e,0,r,!1);const t=n.listen(p,i,r);u.push(r,t),c&&c.push(i,g,f,f+1)}}else r=uo(s,e,0,r,!0),p.addEventListener(i,r,o),u.push(r),c&&c.push(i,g,f,o)}else r=uo(s,e,0,r,!1);const d=s.outputs;let p;if(h&&null!==d&&(p=d[i])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(r),o=u.length;u.push(r,t),c&&c.push(i,s.index,o,-(o+1))}}}(r,i,i[11],o,t,e,!!n,s),lo}function co(t,e,n,s){try{return!1!==n(s)}catch(i){return ur(t,i),!1}}function uo(t,e,n,s,i){return function n(r){if(r===Function)return s;const o=2&t.flags?Mt(t.index,e):e;0==(32&e[2])&&sr(o);let a=co(e,0,s,r),l=n.__ngNextListenerFn__;for(;l;)a=co(e,0,l,r)&&a,l=l.__ngNextListenerFn__;return i&&!1===a&&(r.preventDefault(),r.returnValue=!1),a}}function ho(t=1){return function(t){return(zt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,zt.lFrame.contextLView))[8]}(t)}function po(t,e){let n=null;const s=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let i=0;i<e.length;i++){const r=e[i];if("*"!==r){if(null===s?pi(t,r,!0):fi(s,r))return i}else n=i}return n}function fo(t){const e=Ut()[16][6];if(!e.projection){const n=e.projection=mn(t?t.length:1,null),s=n.slice();let i=e.child;for(;null!==i;){const e=t?po(i,t):0;null!==e&&(s[e]?s[e].projectionNext=i:n[e]=i,s[e]=i),i=i.next}}}function go(t,e=0,n){const s=Ut(),i=Zt(),r=Ai(i,ut+t,16,null,n||null);null===r.projection&&(r.projection=e),Qt(),64!=(64&r.flags)&&function(t,e,n){ni(e[11],0,e,n,Us(t,n,e),$s(n.parent||e[6],n,e))}(i,s,r)}function mo(t,e,n){return yo(t,"",e,"",n),mo}function yo(t,e,n,s,i){const r=Ut(),o=qr(r,e,n,s);return o!==yi&&zi(Zt(),ve(),r,t,o,r[11],i,!1),yo}function vo(t,e,n,s,i){const r=t[n+1],o=null===e;let a=s?wi(r):Ti(r),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];_o(t[a],e)&&(l=!0,t[a+1]=s?xi(n):Si(n)),a=s?wi(n):Ti(n)}l&&(t[n+1]=s?Si(r):xi(r))}function _o(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&_n(t,e)>=0}const bo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function wo(t){return t.substring(bo.key,bo.keyEnd)}function So(t,e){const n=bo.textEnd;return n===e?-1:(e=bo.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,bo.key=e,n),To(t,e,n))}function To(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function Co(t,e,n){return Ao(t,e,n,!1),Co}function xo(t,e){return Ao(t,e,null,!0),xo}function Eo(t){Io(yn,ko,t,!0)}function ko(t,e){for(let n=function(t){return function(t){bo.key=0,bo.keyEnd=0,bo.value=0,bo.valueEnd=0,bo.textEnd=t.length}(t),So(t,To(t,0,bo.textEnd))}(e);n>=0;n=So(e,n))yn(t,wo(e),!0)}function Ao(t,e,n,s){const i=Ut(),r=Zt(),o=ne(2);r.firstUpdatePass&&Po(r,t,o,s),e!==yi&&Hr(i,o,e)&&No(r,r.data[me()],i,i[11],t,i[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=d(Un(t)))),t}(e,n),s,o)}function Io(t,e,n,s){const i=Zt(),r=ne(2);i.firstUpdatePass&&Po(i,null,r,s);const o=Ut();if(n!==yi&&Hr(o,r,n)){const a=i.data[me()];if(Fo(a,s)&&!Oo(i,r)){let t=s?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=p(t,n||"")),Jr(i,a,o,n,s)}else!function(t,e,n,s,i,r,o,a){i===yi&&(i=Z);let l=0,c=0,u=0<i.length?i[0]:null,h=0<r.length?r[0]:null;for(;null!==u||null!==h;){const d=l<i.length?i[l+1]:void 0,p=c<r.length?r[c+1]:void 0;let f,g=null;u===h?(l+=2,c+=2,d!==p&&(g=h,f=p)):null===h||null!==u&&u<h?(l+=2,g=u):(c+=2,g=h,f=p),null!==g&&No(t,e,n,s,g,f,o,a),u=l<i.length?i[l]:null,h=c<r.length?r[c]:null}}(i,a,o,o[11],o[r+1],o[r+1]=function(t,e,n){if(null==n||""===n)return Z;const s=[],i=Un(n);if(Array.isArray(i))for(let r=0;r<i.length;r++)t(s,i[r],!0);else if("object"==typeof i)for(const r in i)i.hasOwnProperty(r)&&t(s,r,i[r]);else"string"==typeof i&&e(s,i);return s}(t,e,n),s,r)}}function Oo(t,e){return e>=t.expandoStartIndex}function Po(t,e,n,s){const i=t.data;if(null===i[n+1]){const r=i[me()],o=Oo(t,n);Fo(r,s)&&null===e&&!o&&(e=!1),e=function(t,e,n,s){const i=re(t);let r=s?e.residualClasses:e.residualStyles;if(null===i)0===(s?e.classBindings:e.styleBindings)&&(n=Lo(n=Do(null,t,e,n,s),e.attrs,s),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==i)if(n=Do(i,t,e,n,s),null===r){let n=function(t,e,n){const s=n?e.classBindings:e.styleBindings;if(0!==Ti(s))return t[wi(s)]}(t,e,s);void 0!==n&&Array.isArray(n)&&(n=Do(null,t,e,n[1],s),n=Lo(n,e.attrs,s),function(t,e,n,s){t[wi(n?e.classBindings:e.styleBindings)]=s}(t,e,s,n))}else r=function(t,e,n){let s;const i=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<i;r++)s=Lo(s,t[r].hostAttrs,n);return Lo(s,e.attrs,n)}(t,e,s)}return void 0!==r&&(s?e.residualClasses=r:e.residualStyles=r),n}(i,r,e,s),function(t,e,n,s,i,r){let o=r?e.classBindings:e.styleBindings,a=wi(o),l=Ti(o);t[s]=n;let c,u=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||_n(t,c)>0)&&(u=!0)}else c=n;if(i)if(0!==l){const e=wi(t[a+1]);t[s+1]=bi(e,a),0!==e&&(t[e+1]=Ci(t[e+1],s)),t[a+1]=131071&t[a+1]|s<<17}else t[s+1]=bi(a,0),0!==a&&(t[a+1]=Ci(t[a+1],s)),a=s;else t[s+1]=bi(l,0),0===a?a=s:t[l+1]=Ci(t[l+1],s),l=s;u&&(t[s+1]=Si(t[s+1])),vo(t,c,s,!0),vo(t,c,s,!1),function(t,e,n,s,i){const r=i?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&_n(r,e)>=0&&(n[s+1]=xi(n[s+1]))}(e,c,t,s,r),o=bi(a,l),r?e.classBindings=o:e.styleBindings=o}(i,r,e,n,o,s)}}function Do(t,e,n,s,i){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(r=e[a],s=Lo(s,r.hostAttrs,i),r!==t);)a++;return null!==t&&(n.directiveStylingLast=a),s}function Lo(t,e,n){const s=n?1:2;let i=-1;if(null!==e)for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?i=o:i===s&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),yn(t,o,!!n||e[++r]))}return void 0===t?null:t}function No(t,e,n,s,i,r,o,a){if(!(3&e.type))return;const l=t.data,c=l[a+1];Ro(1==(1&c)?Mo(l,e,n,i,Ti(c),o):void 0)||(Ro(r)||2==(2&c)&&(r=Mo(l,null,n,i,a,o)),function(t,e,n,s,i){const r=At(t);if(e)i?r?t.addClass(n,s):n.classList.add(s):r?t.removeClass(n,s):n.classList.remove(s);else{let e=-1===s.indexOf("-")?void 0:Ps.DashCase;if(null==i)r?t.removeStyle(n,s,e):n.style.removeProperty(s);else{const o="string"==typeof i&&i.endsWith("!important");o&&(i=i.slice(0,-10),e|=Ps.Important),r?t.setStyle(n,s,i,e):n.style.setProperty(s,i,o?"important":"")}}}(s,o,Pt(me(),n),i,r))}function Mo(t,e,n,s,i,r){const o=null===e;let a;for(;i>0;){const e=t[i],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let u=n[i+1];u===yi&&(u=c?Z:void 0);let h=c?vn(u,s):l===s?u:void 0;if(r&&!Ro(h)&&(h=vn(e,s)),Ro(h)&&(a=h,o))return a;const d=t[i+1];i=o?wi(d):Ti(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=vn(t,s))}return a}function Ro(t){return void 0!==t}function Fo(t,e){return 0!=(t.flags&(e?16:32))}function Bo(t,e=""){const n=Ut(),s=Zt(),i=t+ut,r=s.firstCreatePass?Ai(s,i,1,e,null):s.data[i],o=n[i]=function(t,e){return At(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Qs(s,n,o,r),$t(r,!1)}function jo(t){return Vo("",t,""),jo}function Vo(t,e,n){const s=Ut(),i=qr(s,t,e,n);return i!==yi&&dr(s,me(),i),Vo}function zo(t,e,n,s,i){const r=Ut(),o=Gr(r,t,e,n,s,i);return o!==yi&&dr(r,me(),o),zo}function Ho(t,e,n){Io(yn,ko,qr(Ut(),t,e,n),!0)}function Uo(t,e,n,s,i){Io(yn,ko,Gr(Ut(),t,e,n,s,i),!0)}function Zo(t,e,n){const s=Ut();return Hr(s,ee(),e)&&zi(Zt(),ve(),s,t,e,s[11],n,!0),Zo}function qo(t,e,n){const s=Ut();if(Hr(s,ee(),e)){const i=Zt(),r=ve();zi(i,r,s,t,e,function(t,e,n){return(null===t||yt(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}(re(i.data),r,s),n,!0)}return qo}const Go=void 0;var Yo=["en",[["a","p"],["AM","PM"],Go],[["AM","PM"],Go,Go],[["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"]],Go,[["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"]],Go,[["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}",Go,"{1} 'at' {0}",Go],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let $o={};function Wo(t,e,n){"string"!=typeof e&&(n=e,e=t[Xo.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),$o[e]=t,n&&($o[e][Xo.ExtraData]=n)}function Qo(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Ko(e);if(n)return n;const s=e.split("-")[0];if(n=Ko(s),n)return n;if("en"===s)return Yo;throw new Error(`Missing locale data for the locale "${t}".`)}function Jo(t){return Qo(t)[Xo.PluralCase]}function Ko(t){return t in $o||($o[t]=H.ng&&H.ng.common&&H.ng.common.locales&&H.ng.common.locales[t]),$o[t]}var Xo=(()=>((Xo=Xo||{})[Xo.LocaleId=0]="LocaleId",Xo[Xo.DayPeriodsFormat=1]="DayPeriodsFormat",Xo[Xo.DayPeriodsStandalone=2]="DayPeriodsStandalone",Xo[Xo.DaysFormat=3]="DaysFormat",Xo[Xo.DaysStandalone=4]="DaysStandalone",Xo[Xo.MonthsFormat=5]="MonthsFormat",Xo[Xo.MonthsStandalone=6]="MonthsStandalone",Xo[Xo.Eras=7]="Eras",Xo[Xo.FirstDayOfWeek=8]="FirstDayOfWeek",Xo[Xo.WeekendRange=9]="WeekendRange",Xo[Xo.DateFormat=10]="DateFormat",Xo[Xo.TimeFormat=11]="TimeFormat",Xo[Xo.DateTimeFormat=12]="DateTimeFormat",Xo[Xo.NumberSymbols=13]="NumberSymbols",Xo[Xo.NumberFormats=14]="NumberFormats",Xo[Xo.CurrencyCode=15]="CurrencyCode",Xo[Xo.CurrencySymbol=16]="CurrencySymbol",Xo[Xo.CurrencyName=17]="CurrencyName",Xo[Xo.Currencies=18]="Currencies",Xo[Xo.Directionality=19]="Directionality",Xo[Xo.PluralCase=20]="PluralCase",Xo[Xo.ExtraData=21]="ExtraData",Xo))();const ta="en-US";let ea=ta;function na(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,s){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(ea=t.toLowerCase().replace(/_/g,"-"))}function sa(t,e,n,s,i){if(t=m(t),Array.isArray(t))for(let r=0;r<t.length;r++)sa(t[r],e,n,s,i);else{const r=Zt(),o=Ut();let a=kr(t)?t:m(t.provide),l=Cr(t);const c=Gt(),u=1048575&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>20;if(kr(t)||!t.multi){const s=new Ee(l,i,Wr),p=oa(a,e,i?u:u+d,h);-1===p?(He(Be(c,o),r,a),ia(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(s),o.push(s)):(n[p]=s,o[p]=s)}else{const p=oa(a,e,u+d,h),f=oa(a,e,u,u+d),g=p>=0&&n[p],m=f>=0&&n[f];if(i&&!m||!i&&!g){He(Be(c,o),r,a);const u=function(t,e,n,s,i){const r=new Ee(t,n,Wr);return r.multi=[],r.index=e,r.componentProviders=0,ra(r,i,s&&!n),r}(i?la:aa,n.length,i,s,l);!i&&m&&(n[f].providerFactory=u),ia(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else ia(r,t,p>-1?p:f,ra(n[i?f:p],l,!i&&s));!i&&s&&m&&n[f].componentProviders++}}}function ia(t,e,n,s){const i=kr(e);if(i||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[s,r]):o[t+1].push(s,r)}else o.push(n,r)}}}function ra(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function oa(t,e,n,s){for(let i=n;i<s;i++)if(e[i]===t)return i;return-1}function aa(t,e,n,s){return ca(this.multi,[])}function la(t,e,n,s){const i=this.multi;let r;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=Qe(n,n[1],this.providerFactory.index,s);r=e.slice(0,t),ca(i,r);for(let n=t;n<e.length;n++)r.push(e[n])}else r=[],ca(i,r);return r}function ca(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function ua(t,e=[]){return n=>{n.providersResolver=(n,s)=>function(t,e,n){const s=Zt();if(s.firstCreatePass){const i=yt(t);sa(n,s.data,s.blueprint,i,!0),sa(e,s.data,s.blueprint,i,!1)}}(n,s?s(t):t,e)}}class ha{}class da{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${d(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}class pa{}function fa(...t){}function ga(t,e){return new ya(Dt(t,e))}pa.NULL=new da;const ma=function(){return ga(Gt(),Ut())};let ya=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=ma,t})();function va(t){return t instanceof ya?t.nativeElement:t}class _a{}let ba=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>wa(),t})();const wa=function(){const t=Ut(),e=Mt(Gt().index,t);return function(t){return t[11]}(dt(e)?e:t)};let Sa=(()=>{class t{}return t.\u0275prov=S({token:t,providedIn:"root",factory:()=>null}),t})();class Ta{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ca=new Ta("12.1.5");class xa{constructor(){}supports(t){return jr(t)}create(t){return new ka(t)}}const Ea=(t,e)=>e;class ka{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ea}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,s=0,i=null;for(;e||n;){const r=!n||e&&e.currentIndex<Pa(n,s,i)?e:n,o=Pa(r,s,i),a=r.currentIndex;if(r===n)s--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)s++;else{i||(i=[]);const t=o-s,e=a-s;if(t!=e){for(let n=0;n<t;n++){const s=n<i.length?i[n]:i[n]=0,r=s+n;e<=r&&r<t&&(i[n]=s+1)}i[r.previousIndex]=e-t}}o!==a&&t(r,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!jr(t))throw new Error(`Error trying to diff '${d(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,s,i=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],s=this._trackByFn(e,n),null!==i&&Object.is(i.trackById,s)?(r&&(i=this._verifyReinsertion(i,n,s,e)),Object.is(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,s,e),r=!0),i=i._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[Fr()]();let s;for(;!(s=n.next()).done;)e(s.value)}}(t,t=>{s=this._trackByFn(e,t),null!==i&&Object.is(i.trackById,s)?(r&&(i=this._verifyReinsertion(i,t,s,e)),Object.is(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,s,e),r=!0),i=i._next,e++}),this.length=e;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,s){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,s)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,s)):t=this._addAfter(new Aa(e,n),i,s),t}_verifyReinsertion(t,e,n,s){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,i=t._nextRemoved;return null===s?this._removalsHead=i:s._nextRemoved=i,null===i?this._removalsTail=s:i._prevRemoved=s,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const s=null===e?this._itHead:e._next;return t._next=s,t._prev=e,null===s?this._itTail=t:s._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Oa),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Oa),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Aa{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ia{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Oa{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ia,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Pa(t,e,n){const s=t.previousIndex;if(null===s)return s;let i=0;return n&&s<n.length&&(i=n[s]),s+e+i}class Da{constructor(){}supports(t){return t instanceof Map||Vr(t)}create(){return new La}}class La{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Vr(t)))throw new Error(`Error trying to diff '${d(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const s=n._prev,i=n._next;return s&&(s._next=i),i&&(i._prev=s),n._next=null,n._prev=null,n}const n=new Na(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Na{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Ma(){return new Ra([new xa])}let Ra=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ma()),deps:[[t,new Dn,new Pn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=S({token:t,providedIn:"root",factory:Ma}),t})();function Fa(){return new Ba([new Da])}let Ba=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Fa()),deps:[[t,new Dn,new Pn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=S({token:t,providedIn:"root",factory:Fa}),t})();function ja(t,e,n,s,i=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&s.push(Ot(r)),pt(r))for(let t=ht;t<r.length;t++){const e=r[t],n=e[1].firstChild;null!==n&&ja(e[1],e,n,s)}const o=n.type;if(8&o)ja(t,e,n.child,s);else if(32&o){const t=Ds(n,e);let i;for(;i=t();)s.push(i)}else if(16&o){const t=Ks(e,n);if(Array.isArray(t))s.push(...t);else{const n=Ls(e[16]);ja(n[1],n,t,s,!0)}}n=i?n.projectionNext:n.next}return s}class Va{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return ja(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(pt(t)){const e=t[8],n=e?e.indexOf(this):-1;n>-1&&(Vs(t,n),gn(e,n))}this._attachedToViewContainer=!1}zs(this._lView[1],this._lView)}onDestroy(t){ji(this._lView[1],this._lView,null,t)}markForCheck(){sr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ir(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Kt(!0);try{ir(t,e,n)}finally{Kt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,ei(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class za extends Va{constructor(t){super(t),this._view=t}detectChanges(){rr(this._view)}checkNoChanges(){!function(t){Kt(!0);try{rr(t)}finally{Kt(!1)}}(this._view)}get context(){return null}}const Ha=function(t){return function(t,e,n){if(gt(t)&&!n){const n=Mt(t.index,e);return new Va(n,n)}return 47&t.type?new Va(e[16],e):null}(Gt(),Ut(),16==(16&t))};let Ua=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ha,t})();const Za=[new Da],qa=new Ra([new xa]),Ga=new Ba(Za),Ya=function(){return Ja(Gt(),Ut())};let $a=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ya,t})();const Wa=$a,Qa=class extends Wa{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=ki(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(n[19]=s.createEmbeddedView(e)),Oi(e,n,t),new Va(n)}};function Ja(t,e){return 4&t.type?new Qa(e,t,ga(t,e)):null}class Ka{}class Xa{}const tl=function(){return ol(Gt(),Ut())};let el=(()=>{class t{}return t.__NG_ELEMENT_ID__=tl,t})();const nl=el,sl=class extends nl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return ga(this._hostTNode,this._hostLView)}get injector(){return new Xe(this._hostTNode,this._hostLView)}get parentInjector(){const t=ze(this._hostTNode,this._hostLView);if(De(t)){const e=Ne(t,this._hostLView),n=Le(t);return new Xe(e[1].data[n+8],e)}return new Xe(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=il(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ht}createEmbeddedView(t,e,n){const s=t.createEmbeddedView(e||{});return this.insert(s,n),s}createComponent(t,e,n,s,i){const r=n||this.parentInjector;if(!i&&null==t.ngModule&&r){const t=r.get(Ka,null);t&&(i=t)}const o=t.create(r,s,void 0,i);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,s=n[1];if(pt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],s=new sl(e,e[6],e[3]);s.detach(s.indexOf(t))}}const i=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,s){const i=ht+s,r=n.length;s>0&&(n[i-1][4]=e),s<r-ht?(e[4]=n[i],fn(n,ht+s,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(s,n,r,i);const o=Xs(i,r),a=n[11],l=Ys(a,r[7]);return null!==l&&function(t,e,n,s,i,r){s[0]=i,s[6]=e,ei(t,s,n,1,i,r)}(s,r[6],a,n,l,o),t.attachToViewContainerRef(),fn(rl(r),i,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=il(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=Vs(this._lContainer,e);n&&(gn(rl(this._lContainer),e),zs(n[1],n))}detach(t){const e=this._adjustIndex(t,-1),n=Vs(this._lContainer,e);return n&&null!=gn(rl(this._lContainer),e)?new Va(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function il(t){return t[8]}function rl(t){return t[8]||(t[8]=[])}function ol(t,e){let n;const s=e[t.index];if(pt(s))n=s;else{let i;if(8&t.type)i=Ot(s);else{const n=e[11];i=n.createComment("");const s=Dt(t,e);Zs(n,Ys(n,s),i,function(t,e){return At(t)?t.nextSibling(e):e.nextSibling}(n,s),!1)}e[t.index]=n=Ki(s,e,i,t),nr(e,n)}return new sl(n,t,e)}const al={};class ll extends pa{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=lt(t);return new hl(e,this.ngModule)}}function cl(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const ul=new cn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Is});class hl extends ha{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(mi).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return cl(this.componentDef.inputs)}get outputs(){return cl(this.componentDef.outputs)}create(t,e,n,s){const i=(s=s||this.ngModule)?function(t,e){return{get:(n,s,i)=>{const r=t.get(n,al,i);return r!==al||s===al?r:e.get(n,s,i)}}}(t,s.injector):t,r=i.get(_a,It),o=i.get(Sa,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(At(t))return t.selectRootElement(e,n===F.ShadowDom);let s="string"==typeof e?t.querySelector(e):e;return s.textContent="",s}(a,n,this.componentDef.encapsulation):Bs(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:Is,clean:ar,playerHandler:null,flags:0},d=Bi(0,null,null,1,0,null,null,null,null,null),p=ki(null,d,h,u,null,null,r,a,o,i);let f,g;ue(p);try{const t=function(t,e,n,s,i,r){const o=n[1];n[20]=t;const a=Ai(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(pr(a,l,!0),null!==t&&(ke(i,t,l),null!==a.classes&&ii(i,t,a.classes),null!==a.styles&&si(i,t,a.styles)));const c=s.createRenderer(t,e),u=ki(n,Fi(e),null,e.onPush?64:16,n[20],a,s,c,null,null);return o.firstCreatePass&&(He(Be(a,n),o,e.type),qi(o,a),Yi(a,n.length,1)),nr(n,u),n[20]=u}(c,this.componentDef,p,r,a);if(c)if(n)ke(a,c,["ng-version",Ca.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let s=1,i=2;for(;s<t.length;){let r=t[s];if("string"==typeof r)2===i?""!==r&&e.push(r,t[++s]):8===i&&n.push(r);else{if(!hi(i))break;i=r}s++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&ke(a,c,t),e&&e.length>0&&ii(a,c,e.join(" "))}if(g=Lt(d,ut),void 0!==e){const t=g.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const s=e[n];t.push(null!=s?Array.from(s):null)}}f=function(t,e,n,s,i){const r=n[1],o=function(t,e,n){const s=Gt();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),$i(t,s,e,Ii(t,e,1,null),n));const i=Qe(e,t,s.directiveStart,s);Cs(i,e);const r=Dt(s,e);return r&&Cs(r,e),i}(r,n,e);if(s.components.push(o),t[8]=o,i&&i.forEach(t=>t(o,e)),e.contentQueries){const t=Gt();e.contentQueries(1,o,t.directiveStart)}const a=Gt();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(ye(a.index),Ui(n[1],a,0,a.directiveStart,a.directiveEnd,e),Zi(e,o)),o}(t,this.componentDef,p,h,[Or]),Oi(d,p,null)}finally{ge()}return new dl(this.componentType,f,ga(g,p),p,g)}}class dl extends class{}{constructor(t,e,n,s,i){super(),this.location=n,this._rootLView=s,this._tNode=i,this.instance=e,this.hostView=this.changeDetectorRef=new za(s),this.componentType=t}get injector(){return new Xe(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const pl=new Map;class fl extends Ka{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ll(this);const n=ct(t),s=t[W]||null;s&&na(s),this._bootstrapComponents=Os(n.bootstrap),this._r3Injector=wr(t,e,[{provide:Ka,useValue:this},{provide:pa,useValue:this.componentFactoryResolver}],d(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ir.THROW_IF_NOT_FOUND,n=P.Default){return t===Ir||t===Ka||t===fr?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class gl extends Xa{constructor(t){super(),this.moduleType=t,null!==ct(t)&&function(t){const e=new Set;!function t(n){const s=ct(n,!0),i=s.id;null!==i&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${d(e)} vs ${d(e.name)}`)}(i,pl.get(i),n),pl.set(i,n));const r=Os(s.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new fl(this.moduleType,t)}}function ml(t,e,n){const s=Xt()+t,i=Ut();return i[s]===yi?zr(i,s,n?e.call(n):e()):function(t,e){return t[e]}(i,s)}function yl(t,e,n,s){return Sl(Ut(),Xt(),t,e,n,s)}function vl(t,e,n,s,i){return Tl(Ut(),Xt(),t,e,n,s,i)}function _l(t,e,n,s,i,r){return Cl(Ut(),Xt(),t,e,n,s,i,r)}function bl(t,e,n,s,i,r,o){return function(t,e,n,s,i,r,o,a,l){const c=e+n;return function(t,e,n,s,i,r){const o=Ur(t,e,n,s);return Ur(t,e+2,i,r)||o}(t,c,i,r,o,a)?zr(t,c+4,l?s.call(l,i,r,o,a):s(i,r,o,a)):wl(t,c+4)}(Ut(),Xt(),t,e,n,s,i,r,o)}function wl(t,e){const n=t[e];return n===yi?void 0:n}function Sl(t,e,n,s,i,r){const o=e+n;return Hr(t,o,i)?zr(t,o+1,r?s.call(r,i):s(i)):wl(t,o+1)}function Tl(t,e,n,s,i,r,o){const a=e+n;return Ur(t,a,i,r)?zr(t,a+2,o?s.call(o,i,r):s(i,r)):wl(t,a+2)}function Cl(t,e,n,s,i,r,o,a){const l=e+n;return function(t,e,n,s,i){const r=Ur(t,e,n,s);return Hr(t,e+2,i)||r}(t,l,i,r,o)?zr(t,l+3,a?s.call(a,i,r,o):s(i,r,o)):wl(t,l+3)}function xl(t,e){const n=Zt();let s;const i=t+ut;n.firstCreatePass?(s=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const s=e[n];if(t===s.name)return s}throw new v("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[i]=s,s.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,s.onDestroy)):s=n.data[i];const r=s.factory||(s.factory=vt(s.type)),o=L(Wr);try{const t=Re(!1),e=r();return Re(t),function(t,e,n,s){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=s}(n,Ut(),i,e),e}finally{L(o)}}function El(t,e,n){const s=t+ut,i=Ut(),r=Nt(i,s);return Ol(i,Il(i,s)?Sl(i,Xt(),e,r.transform,n,r):r.transform(n))}function kl(t,e,n,s){const i=t+ut,r=Ut(),o=Nt(r,i);return Ol(r,Il(r,i)?Tl(r,Xt(),e,o.transform,n,s,o):o.transform(n,s))}function Al(t,e,n,s,i){const r=t+ut,o=Ut(),a=Nt(o,r);return Ol(o,Il(o,r)?Cl(o,Xt(),e,a.transform,n,s,i,a):a.transform(n,s,i))}function Il(t,e){return t[1].data[e].pure}function Ol(t,e){return Br.isWrapped(e)&&(e=Br.unwrap(e),t[te()]=yi),e}function Pl(t){return e=>{setTimeout(t,void 0,e)}}const Dl=class extends s.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var s,r,o;let a=t,l=e||(()=>null),c=n;if(t&&"object"==typeof t){const e=t;a=null===(s=e.next)||void 0===s?void 0:s.bind(e),l=null===(r=e.error)||void 0===r?void 0:r.bind(e),c=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(l=Pl(l),a&&(a=Pl(a)),c&&(c=Pl(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof i.w&&t.add(u),u}};function Ll(){return this._results[Fr()]()}class Nl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Fr(),n=Nl.prototype;n[e]||(n[e]=Ll)}get changes(){return this._changes||(this._changes=new Dl)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const s=dn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let s=0;s<t.length;s++){let i=t[s],r=e[s];if(n&&(i=n(i),r=n(r)),r!==i)return!1}return!0}(n._results,s,e))&&(n._results=s,n.length=s.length,n.last=s[this.length-1],n.first=s[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;class Ml{constructor(t){this.queryList=t,this.matches=null}clone(){return new Ml(this.queryList)}setDirty(){this.queryList.setDirty()}}class Rl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,s=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);s.push(this.queries[n.indexInDeclarationView].clone())}return new Rl(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Ql(t,e).matches&&this.queries[e].setDirty()}}class Fl{constructor(t,e,n=null){this.predicate=t,this.flags=e,this.read=n}}class Bl{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const s=null!==e?e.length:0,i=this.getByIndex(n).embeddedTView(t,s);i&&(i.indexInDeclarationView=n,null!==e?e.push(i):e=[i])}return null!==e?new Bl(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class jl{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new jl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let s=0;s<n.length;s++){const i=n[s];this.matchTNodeWithReadOption(t,e,Vl(e,i)),this.matchTNodeWithReadOption(t,e,We(e,t,i,!1,!1))}else n===$a?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,We(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const s=this.metadata.read;if(null!==s)if(s===ya||s===el||s===$a&&4&e.type)this.addMatch(e.index,-2);else{const n=We(e,t,s,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Vl(t,e){const n=t.localNames;if(null!==n)for(let s=0;s<n.length;s+=2)if(n[s]===e)return n[s+1];return null}function zl(t,e,n,s){return-1===n?function(t,e){return 11&t.type?ga(t,e):4&t.type?Ja(t,e):null}(e,t):-2===n?function(t,e,n){return n===ya?ga(e,t):n===$a?Ja(e,t):n===el?ol(e,t):void 0}(t,e,s):Qe(t,t[1],n,e)}function Hl(t,e,n,s){const i=e[19].queries[s];if(null===i.matches){const s=t.data,r=n.matches,o=[];for(let t=0;t<r.length;t+=2){const i=r[t];o.push(i<0?null:zl(e,s[i],r[t+1],n.metadata.read))}i.matches=o}return i.matches}function Ul(t,e,n,s){const i=t.queries.getByIndex(n),r=i.matches;if(null!==r){const o=Hl(t,e,i,n);for(let t=0;t<r.length;t+=2){const n=r[t];if(n>0)s.push(o[t/2]);else{const i=r[t+1],o=e[-n];for(let t=ht;t<o.length;t++){const e=o[t];e[17]===e[3]&&Ul(e[1],e,i,s)}if(null!==o[9]){const t=o[9];for(let e=0;e<t.length;e++){const n=t[e];Ul(n[1],n,i,s)}}}}}return s}function Zl(t){const e=Ut(),n=Zt(),s=oe();ae(s+1);const i=Ql(n,s);if(t.dirty&&Rt(e)===(2==(2&i.metadata.flags))){if(null===i.matches)t.reset([]);else{const r=i.crossesNgTemplate?Ul(n,e,s,[]):Hl(n,e,i,s);t.reset(r,va),t.notifyOnChanges()}return!0}return!1}function ql(t,e,n){const s=Zt();s.firstCreatePass&&(Wl(s,new Fl(t,e,n),-1),2==(2&e)&&(s.staticViewQueries=!0)),$l(s,Ut(),e)}function Gl(t,e,n,s){const i=Zt();if(i.firstCreatePass){const r=Gt();Wl(i,new Fl(e,n,s),r.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(n.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(i,t),2==(2&n)&&(i.staticContentQueries=!0)}$l(i,Ut(),n)}function Yl(){return t=Ut(),e=oe(),t[19].queries[e].queryList;var t,e}function $l(t,e,n){const s=new Nl(4==(4&n));ji(t,e,s,s.destroy),null===e[19]&&(e[19]=new Rl),e[19].queries.push(new Ml(s))}function Wl(t,e,n){null===t.queries&&(t.queries=new Bl),t.queries.track(new jl(e,n))}function Ql(t,e){return t.queries.getByIndex(e)}function Jl(t,e){return Ja(t,e)}const Kl=ln("Input",t=>({bindingPropertyName:t})),Xl=ln("Output",t=>({bindingPropertyName:t})),tc=new cn("Application Initializer");let ec=(()=>{class t{constructor(t){this.appInits=t,this.resolve=fa,this.reject=fa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();if(ro(e))t.push(e);else if(ao(e)){const n=new Promise((t,n)=>{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(kn(tc,8))},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();const nc=new cn("AppId"),sc={provide:nc,useFactory:function(){return`${ic()}${ic()}${ic()}`},deps:[]};function ic(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const rc=new cn("Platform Initializer"),oc=new cn("Platform ID"),ac=new cn("appBootstrapListener");let lc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();const cc=new cn("LocaleId"),uc=new cn("DefaultCurrencyCode");class hc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const dc=function(t){return new gl(t)},pc=dc,fc=function(t){return Promise.resolve(dc(t))},gc=function(t){const e=dc(t),n=Os(ct(t).declarations).reduce((t,e)=>{const n=lt(e);return n&&t.push(new hl(n)),t},[]);return new hc(e,n)},mc=gc,yc=function(t){return Promise.resolve(gc(t))};let vc=(()=>{class t{constructor(){this.compileModuleSync=pc,this.compileModuleAsync=fc,this.compileModuleAndAllComponentsSync=mc,this.compileModuleAndAllComponentsAsync=yc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();const _c=(()=>Promise.resolve(0))();function bc(t){"undefined"==typeof Zone?_c.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class wc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Dl(!1),this.onMicrotaskEmpty=new Dl(!1),this.onStable=new Dl(!1),this.onError=new Dl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!n&&e,s.shouldCoalesceRunChangeDetection=n,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function(){let t=H.requestAnimationFrame,e=H.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const s=e[Zone.__symbol__("OriginalDelegate")];s&&(e=s)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(H,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Cc(t),t.isCheckStableRunning=!0,Tc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Cc(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,s,i,r,o,a)=>{try{return xc(t),n.invokeTask(i,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),Ec(t)}},onInvoke:(n,s,i,r,o,a,l)=>{try{return xc(t),n.invoke(i,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),Ec(t)}},onHasTask:(e,n,s,i)=>{e.hasTask(s,i),n===s&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Cc(t),Tc(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,s,i)=>(e.handleError(s,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(s)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!wc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(wc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,s){const i=this._inner,r=i.scheduleEventTask("NgZoneEvent: "+s,t,Sc,fa,fa);try{return i.runTask(r,e,n)}finally{i.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const Sc={};function Tc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Cc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function xc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ec(t){t._nesting--,Tc(t)}class kc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Dl,this.onMicrotaskEmpty=new Dl,this.onStable=new Dl,this.onError=new Dl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,s){return t.apply(e,n)}}let Ac=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{wc.assertNotInAngularZone(),bc(()=>{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())bc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let s=-1;e&&e>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==s),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:n})}whenStable(t,e,n){if(n&&!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(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(kn(wc))},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})(),Ic=(()=>{class t{constructor(){this._applications=new Map,Lc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Lc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();class Oc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Pc(t){Lc=t}let Dc,Lc=new Oc,Nc=!0,Mc=!1;function Rc(){if(Mc)throw new Error("Cannot enable prod mode after platform setup.");Nc=!1}const Fc=new cn("AllowMultipleToken");class Bc{constructor(t,e){this.name=t,this.token=e}}function jc(t,e,n=[]){const s=`Platform: ${e}`,i=new cn(s);return(e=[])=>{let r=Vc();if(!r||r.injector.get(Fc,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:mr,useValue:"platform"});!function(t){if(Dc&&!Dc.destroyed&&!Dc.injector.get(Fc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Dc=t.get(zc);const e=t.get(rc,null);e&&e.forEach(t=>t())}(Ir.create({providers:t,name:s}))}return function(t){const e=Vc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function Vc(){return Dc&&!Dc.destroyed?Dc:null}let zc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new kc:("zone.js"===t?void 0:t)||new wc({enableLongStackTrace:(Mc=!0,Nc),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),s=[{provide:wc,useValue:n}];return n.run(()=>{const e=Ir.create({providers:s,parent:this.injector,name:t.moduleType.name}),i=t.create(e),r=i.injector.get(As,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{r.handleError(t)}});i.onDestroy(()=>{Zc(this._modules,i),t.unsubscribe()})}),function(t,e,n){try{const s=n();return ro(s)?s.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):s}catch(s){throw e.runOutsideAngular(()=>t.handleError(s)),s}}(r,n,()=>{const t=i.injector.get(ec);return t.runInitializers(),t.donePromise.then(()=>(na(i.injector.get(cc,ta)||ta),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const n=Hc({},e);return function(t,e,n){const s=new gl(n);return Promise.resolve(s)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Uc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${d(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(kn(Ir))},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();function Hc(t,e){return Array.isArray(e)?e.reduce(Hc,t):Object.assign(Object.assign({},t),e)}let Uc=(()=>{class t{constructor(t,e,n,s,i){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=s,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const u=new r.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),h=new r.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{wc.assertNotInAngularZone(),bc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{wc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=(0,o.T)(u,h.pipe(t=>{return(0,l.x)()((e=c,function(t){let n;n="function"==typeof e?e:function(){return e};const s=Object.create(t,a.N);return s.source=t,s.subjectFactory=n,s})(t));var e}))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof ha?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(Ka),i=n.create(Ir.NULL,[],e||n.selector,s),r=i.location.nativeElement,o=i.injector.get(Ac,null),a=o&&i.injector.get(Ic);return o&&a&&a.registerApplication(r,o),i.onDestroy(()=>{this.detachView(i.hostView),Zc(this.components,i),a&&a.unregisterApplication(r)}),this._loadComponent(i),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Zc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ac,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(kn(wc),kn(Ir),kn(As),kn(pa),kn(ec))},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();function Zc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class qc{}class Gc{}const Yc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let $c=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Yc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,s]=t.split("#");return void 0===s&&(s="default"),n(8255)(e).then(t=>t[s]).then(t=>Wc(t,e,s)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,s]=t.split("#"),i="NgFactory";return void 0===s&&(s="default",i=""),n(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[s+i]).then(t=>Wc(t,e,s))}}return t.\u0275fac=function(e){return new(e||t)(kn(vc),kn(Gc,8))},t.\u0275prov=S({token:t,factory:t.\u0275fac}),t})();function Wc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Qc=function(t){return null},Jc=jc(null,"core",[{provide:oc,useValue:"unknown"},{provide:zc,deps:[Ir]},{provide:Ic,deps:[]},{provide:lc,deps:[]}]),Kc=[{provide:Uc,useClass:Uc,deps:[wc,Ir,As,pa,ec]},{provide:ul,deps:[wc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ec,useClass:ec,deps:[[new Pn,tc]]},{provide:vc,useClass:vc,deps:[]},sc,{provide:Ra,useFactory:function(){return qa},deps:[]},{provide:Ba,useFactory:function(){return Ga},deps:[]},{provide:cc,useFactory:function(t){return na(t=t||"undefined"!=typeof $localize&&$localize.locale||ta),t},deps:[[new On(cc),new Pn,new Dn]]},{provide:uc,useValue:"USD"}];let Xc=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(kn(Uc))},t.\u0275mod=st({type:t}),t.\u0275inj=T({providers:Kc}),t})()},665:(t,e,n)=>{"use strict";n.d(e,{Wl:()=>g,Fj:()=>v,qu:()=>$t,NI:()=>dt,u:()=>Dt,cw:()=>pt,sg:()=>xt,x0:()=>kt,u5:()=>Gt,nD:()=>Zt,wO:()=>Ht,JU:()=>p,JJ:()=>Z,JL:()=>q,On:()=>vt,YN:()=>Rt,wV:()=>wt,UX:()=>Yt,EJ:()=>Mt,kI:()=>C,_Y:()=>_t,Kr:()=>Vt});var s=n(3018),i=n(8583),r=n(7574),o=n(9796),a=n(8002),l=n(1555),c=n(4402);function u(t,e){return new r.y(n=>{const s=t.length;if(0===s)return void n.complete();const i=new Array(s);let r=0,o=0;for(let a=0;a<s;a++){const l=(0,c.D)(t[a]);let u=!1;n.add(l.subscribe({next:t=>{u||(u=!0,o++),i[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==s&&u||(o===s&&n.next(e?e.reduce((t,e,n)=>(t[e]=i[n],t),{}):i),n.complete())}}))}})}let h=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t}),t})(),d=(()=>{class t extends h{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=s.n5z(t)))(n||t)}}(),t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();const p=new s.OlP("NgValueAccessor"),f={provide:p,useExisting:(0,s.Gpc)(()=>g),multi:!0};let g=(()=>{class t extends d{writeValue(t){this.setProperty("checked",t)}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=s.n5z(t)))(n||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&s.NdJ("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[s._Bn([f]),s.qOj]}),t})();const m={provide:p,useExisting:(0,s.Gpc)(()=>v),multi:!0},y=new s.OlP("CompositionEventMode");let v=(()=>{class t extends h{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,i.q)()?(0,i.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Qsj),s.Y36(s.SBq),s.Y36(y,8))},t.\u0275dir=s.lG2({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(t,e){1&t&&s.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[s._Bn([m]),s.qOj]}),t})();function _(t){return null==t||0===t.length}function b(t){return null!=t&&"number"==typeof t.length}const w=new s.OlP("NgValidators"),S=new s.OlP("NgAsyncValidators"),T=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class C{static min(t){return function(t){return e=>{if(_(e.value)||_(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}(t)}static max(t){return function(t){return e=>{if(_(e.value)||_(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}(t)}static required(t){return function(t){return _(t.value)?{required:!0}:null}(t)}static requiredTrue(t){return function(t){return!0===t.value?null:{required:!0}}(t)}static email(t){return function(t){return _(t.value)||T.test(t.value)?null:{email:!0}}(t)}static minLength(t){return x(t)}static maxLength(t){return E(t)}static pattern(t){return function(t){if(!t)return k;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(_(t.value))return null;const s=t.value;return e.test(s)?null:{pattern:{requiredPattern:n,actualValue:s}}}}(t)}static nullValidator(t){return null}static compose(t){return L(t)}static composeAsync(t){return M(t)}}function x(t){return e=>_(e.value)||!b(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}function E(t){return e=>b(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function k(t){return null}function A(t){return null!=t}function I(t){const e=(0,s.QGY)(t)?(0,c.D)(t):t;return(0,s.CqO)(e),e}function O(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function P(t,e){return e.map(e=>e(t))}function D(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function L(t){if(!t)return null;const e=t.filter(A);return 0==e.length?null:function(t){return O(P(t,e))}}function N(t){return null!=t?L(D(t)):null}function M(t){if(!t)return null;const e=t.filter(A);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if((0,o.k)(e))return u(e,null);if((0,l.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return u(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return u(t=1===t.length&&(0,o.k)(t[0])?t[0]:t,null).pipe((0,a.U)(t=>e(...t)))}return u(t,null)}(P(t,e).map(I)).pipe((0,a.U)(O))}}function R(t){return null!=t?M(D(t)):null}function F(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function B(t){return t._rawValidators}function j(t){return t._rawAsyncValidators}let V=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=N(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=R(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t}),t})(),z=(()=>{class t extends V{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=s.n5z(t)))(n||t)}}(),t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();class H extends V{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class U{constructor(t){this._cd=t}is(t){var e,n,s;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(s=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===s?void 0:s[t])}}let Z=(()=>{class t extends U{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(H,2))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[s.qOj]}),t})(),q=(()=>{class t extends U{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(z,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&s.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[s.qOj]}),t})();function G(t,e){return[...e.path,t]}function Y(t,e){Q(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&K(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&K(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function $(t,e,n=!0){const s=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(s),e.valueAccessor.registerOnTouched(s)),J(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function W(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Q(t,e){const n=B(t);null!==e.validator?t.setValidators(F(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const s=j(t);null!==e.asyncValidator?t.setAsyncValidators(F(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]);const i=()=>t.updateValueAndValidity();W(e._rawValidators,i),W(e._rawAsyncValidators,i)}function J(t,e){let n=!1;if(null!==t){if(null!==e.validator){const s=B(t);if(Array.isArray(s)&&s.length>0){const i=s.filter(t=>t!==e.validator);i.length!==s.length&&(n=!0,t.setValidators(i))}}if(null!==e.asyncValidator){const s=j(t);if(Array.isArray(s)&&s.length>0){const i=s.filter(t=>t!==e.asyncValidator);i.length!==s.length&&(n=!0,t.setAsyncValidators(i))}}}const s=()=>{};return W(e._rawValidators,s),W(e._rawAsyncValidators,s),n}function K(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function X(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function tt(t,e){if(!e)return null;let n,s,i;return Array.isArray(e),e.forEach(t=>{t.constructor===v?n=t:Object.getPrototypeOf(t.constructor)===d?s=t:i=t}),i||s||n||null}function et(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const nt="VALID",st="INVALID",it="PENDING",rt="DISABLED";function ot(t){return(ut(t)?t.validators:t)||null}function at(t){return Array.isArray(t)?N(t):t||null}function lt(t,e){return(ut(e)?e.asyncValidators:t)||null}function ct(t){return Array.isArray(t)?R(t):t||null}function ut(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ht{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=at(this._rawValidators),this._composedAsyncValidatorFn=ct(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===nt}get invalid(){return this.status===st}get pending(){return this.status==it}get disabled(){return this.status===rt}get enabled(){return this.status!==rt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=at(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ct(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=it,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=rt,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=nt,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==nt&&this.status!==it||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?rt:nt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=it,this._hasOwnPendingAsyncValidator=!0;const e=I(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let s=t;return e.forEach(t=>{s=s instanceof pt?s.controls.hasOwnProperty(t)?s.controls[t]:null:s instanceof ft&&s.at(t)||null}),s}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new s.vpe,this.statusChanges=new s.vpe}_calculateStatus(){return this._allControlsDisabled()?rt:this.errors?st:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(it)?it:this._anyControlsHaveStatus(st)?st:nt}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ut(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class dt extends ht{constructor(t=null,e,n){super(ot(e),lt(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){et(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){et(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class pt extends ht{constructor(t,e,n){super(ot(e),lt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,s)=>{n.reset(t[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof dt?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,s)=>{n=e(n,t,s)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class ft extends ht{constructor(t,e,n){super(ot(e),lt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,s)=>{n.reset(t[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof dt?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}let gt=(()=>{class t extends z{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return G(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=s.n5z(t)))(n||t)}}(),t.\u0275dir=s.lG2({type:t,features:[s.qOj]}),t})();const mt={provide:H,useExisting:(0,s.Gpc)(()=>vt)},yt=(()=>Promise.resolve(null))();let vt=(()=>{class t extends H{constructor(t,e,n,i){super(),this.control=new dt,this._registered=!1,this.update=new s.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=tt(0,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),X(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?G(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){Y(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){yt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;yt.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(z,9),s.Y36(w,10),s.Y36(S,10),s.Y36(p,10))},t.\u0275dir=s.lG2({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:[s._Bn([mt]),s.qOj,s.TTD]}),t})(),_t=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const bt={provide:p,useExisting:(0,s.Gpc)(()=>wt),multi:!0};let wt=(()=>{class t extends d{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=s.n5z(t)))(n||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&s.NdJ("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[s._Bn([bt]),s.qOj]}),t})(),St=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const Tt=new s.OlP("NgModelWithFormControlWarning"),Ct={provide:z,useExisting:(0,s.Gpc)(()=>xt)};let xt=(()=>{class t extends z{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new s.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(J(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Y(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){$(t.control||null,t,!1),et(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,e=this.directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&($(e||null,t),n instanceof dt&&(Y(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);(function(t,e){Q(t,e)})(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return J(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Q(this.form,this),this._oldForm&&J(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(w,10),s.Y36(S,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&s.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s._Bn([Ct]),s.qOj,s.TTD]}),t})();const Et={provide:z,useExisting:(0,s.Gpc)(()=>kt)};let kt=(()=>{class t extends gt{constructor(t,e,n){super(),this._parent=t,this._setValidators(e),this._setAsyncValidators(n)}_checkParentType(){Ot(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(z,13),s.Y36(w,10),s.Y36(S,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[s._Bn([Et]),s.qOj]}),t})();const At={provide:z,useExisting:(0,s.Gpc)(()=>It)};let It=(()=>{class t extends z{constructor(t,e,n){super(),this._parent=t,this._setValidators(e),this._setAsyncValidators(n)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return G(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Ot(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(z,13),s.Y36(w,10),s.Y36(S,10))},t.\u0275dir=s.lG2({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[s._Bn([At]),s.qOj]}),t})();function Ot(t){return!(t instanceof kt||t instanceof xt||t instanceof It)}const Pt={provide:H,useExisting:(0,s.Gpc)(()=>Dt)};let Dt=(()=>{class t extends H{constructor(t,e,n,i,r){super(),this._ngModelWarningConfig=r,this._added=!1,this.update=new s.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=tt(0,i)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),X(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return G(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(z,13),s.Y36(w,10),s.Y36(S,10),s.Y36(p,10),s.Y36(Tt,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[s._Bn([Pt]),s.qOj,s.TTD]}),t._ngModelWarningSentOnce=!1,t})();const Lt={provide:p,useExisting:(0,s.Gpc)(()=>Mt),multi:!0};function Nt(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Mt=(()=>{class t extends d{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this.setProperty("selectedIndex",-1);const n=Nt(e,t);this.setProperty("value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=s.n5z(t)))(n||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&s.NdJ("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[s._Bn([Lt]),s.qOj]}),t})(),Rt=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(Nt(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(Mt,9))},t.\u0275dir=s.lG2({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Ft={provide:p,useExisting:(0,s.Gpc)(()=>jt),multi:!0};function Bt(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let jt=(()=>{class t extends d{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const s=t.item(e),i=this._getOptionValue(s.value);n.push(i)}}else{const t=e.options;for(let e=0;e<t.length;e++){const s=t.item(e);if(s.selected){const t=this._getOptionValue(s.value);n.push(t)}}}this.value=n,t(n)}}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=s.n5z(t)))(n||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&s.NdJ("change",function(t){return e.onChange(t.target)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[s._Bn([Ft]),s.qOj]}),t})(),Vt=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Bt(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Bt(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(jt,9))},t.\u0275dir=s.lG2({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const zt={provide:w,useExisting:(0,s.Gpc)(()=>Ht),multi:!0};let Ht=(()=>{class t{constructor(){this._validator=k}ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=x("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[s._Bn([zt]),s.TTD]}),t})();const Ut={provide:w,useExisting:(0,s.Gpc)(()=>Zt),multi:!0};let Zt=(()=>{class t{constructor(){this._validator=k}ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=E("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.uIk("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[s._Bn([Ut]),s.TTD]}),t})(),qt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[St]]}),t})(),Gt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[qt]}),t})(),Yt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Tt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[qt]}),t})(),$t=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let s,i=null,r=null;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,s=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new pt(n,{asyncValidators:r,updateOn:s,validators:i})}control(t,e,n){return new dt(t,e,n)}array(t,e,n){const s=t.map(t=>this._createControl(t));return new ft(s,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof dt||t instanceof pt||t instanceof ft?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return new t},token:t,providedIn:Yt}),t})()},9075:(t,e,n)=>{"use strict";n.d(e,{b2:()=>B,H7:()=>L,q6:()=>R,se:()=>T});var s=n(8583),i=n(3018);class r extends s.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class o extends r{static makeCurrent(){(0,s.HT)(new o)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(l=l||document.querySelector("base"),l?l.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,s.Mx)(document.cookie,t)}}let a,l=null;const c=new i.OlP("TRANSITION_ID"),u=[{provide:i.ip1,useFactory:function(t,e,n){return()=>{n.get(i.CZH).donePromise.then(()=>{const n=(0,s.q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[c,s.K0,i.zs3],multi:!0}];class h{static init(){(0,i.VLi)(new h)}addToWindow(t){i.dqk.getAngularTestability=(e,n=!0)=>{const s=t.findTestabilityInTree(e,n);if(null==s)throw new Error("Could not find testability for element.");return s},i.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(t=>{const e=i.dqk.getAllAngularTestabilities();let n=e.length,s=!1;const r=function(e){s=s||e,n--,0==n&&t(s)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?(0,s.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new i.OlP("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let s=0;s<n.length;s++){const e=n[s];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error(`No event manager plugin found for event ${t}`)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(p),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class g{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=(0,s.q)().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,n)}}let m=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),y=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const s=this._doc.createElement("style");s.textContent=t,n.push(e.appendChild(s))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(v),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(v))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.K0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function v(t){(0,s.q)().remove(t)}const _={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/"},b=/%COMP%/g;function w(t,e,n){for(let s=0;s<e.length;s++){let i=e[s];Array.isArray(i)?w(t,i,n):(i=i.replace(b,t),n.push(i))}return n}function S(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let T=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new C(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case i.ifc.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new x(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case i.ifc.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=w(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(f),i.LFG(y),i.LFG(i.AFp))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class C{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(_[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,s){if(s){e=s+":"+e;const i=_[s];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const s=_[n];s?t.removeAttributeNS(s,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,s){s&(i.JOm.DashCase|i.JOm.Important)?t.style.setProperty(e,n,s&i.JOm.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&i.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,S(n)):this.eventManager.addEventListener(t,e,S(n))}}class x extends C{constructor(t,e,n,s){super(t),this.component=n;const i=w(s+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(b,s+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(b,s+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class E extends C{constructor(t,e,n,s){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=w(s.id,s.styles,[]);for(let r=0;r<i.length;r++){const t=document.createElement("style");t.textContent=i[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let k=(()=>{class t extends g{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.K0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const A=["alt","control","meta","shift"],I={"\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"},O={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},P={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let D=(()=>{class t extends g{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const r=t.parseEventName(n),o=t.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,s.q)().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const i=t._normalizeKey(n.pop());let r="";if(A.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=i,0!=n.length||0===i.length)return null;const o={};return o.domEventName=s,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&O.hasOwnProperty(e)&&(e=O[e]))}return I[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),A.forEach(s=>{s!=n&&(0,P[s])(t)&&(e+=s+".")}),e+=n,e}static eventCallback(e,n,s){return i=>{t.getEventFullKey(i)===e&&s.runGuarded(()=>n(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.K0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:function(){return(0,i.LFG)(M)},token:t,providedIn:"root"}),t})();function N(t){return new M(t.get(s.K0))}let M=(()=>{class t extends L{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case i.q3G.NONE:return e;case i.q3G.HTML:return(0,i.qzn)(e,"HTML")?(0,i.z3N)(e):(0,i.EiD)(this._doc,String(e)).toString();case i.q3G.STYLE:return(0,i.qzn)(e,"Style")?(0,i.z3N)(e):e;case i.q3G.SCRIPT:if((0,i.qzn)(e,"Script"))return(0,i.z3N)(e);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.yhl)(e),(0,i.qzn)(e,"URL")?(0,i.z3N)(e):(0,i.mCW)(String(e));case i.q3G.RESOURCE_URL:if((0,i.qzn)(e,"ResourceURL"))return(0,i.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,i.JVY)(t)}bypassSecurityTrustStyle(t){return(0,i.L6k)(t)}bypassSecurityTrustScript(t){return(0,i.eBb)(t)}bypassSecurityTrustUrl(t){return(0,i.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,i.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.K0))},t.\u0275prov=(0,i.Yz7)({factory:function(){return N((0,i.LFG)(i.gxx))},token:t,providedIn:"root"}),t})();const R=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:s.bD},{provide:i.g9A,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:s.K0,useFactory:function(){return(0,i.RDi)(document),document},deps:[]}]),F=[[],{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function(){return new i.qLn},deps:[]},{provide:p,useClass:k,multi:!0,deps:[s.K0,i.R0b,i.Lbi]},{provide:p,useClass:D,multi:!0,deps:[s.K0]},[],{provide:T,useClass:T,deps:[f,y,i.AFp]},{provide:i.FYo,useExisting:T},{provide:m,useExisting:y},{provide:y,useClass:y,deps:[s.K0]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b]},{provide:f,useClass:f,deps:[p,i.R0b]},{provide:s.JF,useClass:d,deps:[]},[]];let B=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:i.AFp,useValue:e.appId},{provide:c,useExisting:i.AFp},u]}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(t,12))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:F,imports:[s.ez,i.hGG]}),t})();"undefined"!=typeof window&&window},9763:(t,e,n)=>{"use strict";n.d(e,{gz:()=>Kt,gk:()=>$,m2:()=>Y,Q3:()=>W,OD:()=>G,F0:()=>wn,Od:()=>xn,yS:()=>Tn,Bz:()=>Rn,lC:()=>En});var s=n(8583),i=n(3018);const r=(()=>{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 o=n(7574),a=n(4402),l=n(9193);function c(t){return new o.y(e=>{let n;try{n=t()}catch(s){return void e.error(s)}return(n?(0,a.D)(n):(0,l.c)()).subscribe(e)})}var u=n(5917),h=n(6215),d=n(739),p=n(8071),f=n(2441),g=n(9765),m=n(7393);function y(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(s){return s.lift(new v(t,e,n))}}class v{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new _(t,this.accumulator,this.seed,this.hasSeed))}}class _ extends m.L{constructor(t,e,n,s){super(t),this.accumulator=e,this._seed=n,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(s){this.destination.error(s)}this.seed=n,this.destination.next(n)}}var b=n(5435),w=n(7108);function S(t){return function(e){return 0===t?(0,l.c)():e.lift(new T(t))}}class T{constructor(t){if(this.total=t,this.total<0)throw new w.W}call(t,e){return e.subscribe(new C(t,this.total))}}class C extends m.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,s=this.count++;e.length<n?e.push(t):e[s%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,s=this.ring;for(let i=0;i<n;i++){const i=e++%n;t.next(s[i])}}t.complete()}}function x(t=A){return e=>e.lift(new E(t))}class E{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new k(t,this.errorFactory))}}class k extends m.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function A(){return new r}function I(t=null){return e=>e.lift(new O(t))}class O{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new P(t,this.defaultValue))}}class P extends m.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var D=n(4487),L=n(5257);function N(t,e){const n=arguments.length>=2;return s=>s.pipe(t?(0,b.h)((e,n)=>t(e,n,s)):D.y,(0,L.q)(1),n?I(e):x(()=>new r))}var M=n(8002),R=n(3190),F=n(9761),B=n(5304),j=n(4612),V=n(9773),z=n(3342),H=n(1307),U=n(8939),Z=n(3282);class q{constructor(t,e){this.id=t,this.url=e}}class G extends q{constructor(t,e,n="imperative",s=null){super(t,e),this.navigationTrigger=n,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Y extends q{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class $ extends q{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class W extends q{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Q extends q{constructor(t,e,n,s){super(t,e),this.urlAfterRedirects=n,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class J extends q{constructor(t,e,n,s){super(t,e),this.urlAfterRedirects=n,this.state=s}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class K extends q{constructor(t,e,n,s,i){super(t,e),this.urlAfterRedirects=n,this.state=s,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class X extends q{constructor(t,e,n,s){super(t,e),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tt extends q{constructor(t,e,n,s){super(t,e),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class et{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nt{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class st{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class it{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rt{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ot{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class at{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const lt="primary";class ct{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ut(t){return new ct(t)}function ht(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function dt(t,e,n){const s=n.path.split("/");if(s.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||s.length<t.length))return null;const i={};for(let r=0;r<s.length;r++){const e=s[r],n=t[r];if(e.startsWith(":"))i[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,s.length),posParams:i}}function pt(t,e){const n=t?Object.keys(t):void 0,s=e?Object.keys(e):void 0;if(!n||!s||n.length!=s.length)return!1;let i;for(let r=0;r<n.length;r++)if(i=n[r],!ft(t[i],e[i]))return!1;return!0}function ft(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),s=[...e].sort();return n.every((t,e)=>s[e]===t)}return t===e}function gt(t){return Array.prototype.concat.apply([],t)}function mt(t){return t.length>0?t[t.length-1]:null}function yt(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function vt(t){return(0,i.CqO)(t)?t:(0,i.QGY)(t)?(0,a.D)(Promise.resolve(t)):(0,u.of)(t)}const _t={exact:function t(e,n,s){if(!At(e.segments,n.segments))return!1;if(!Ct(e.segments,n.segments,s))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i],s))return!1}return!0},subset:St},bt={exact:function(t,e){return pt(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>ft(t[n],e[n]))},ignored:()=>!0};function wt(t,e,n){return _t[n.paths](t.root,e.root,n.matrixParams)&&bt[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function St(t,e,n){return Tt(t,e,e.segments,n)}function Tt(t,e,n,s){if(t.segments.length>n.length){const i=t.segments.slice(0,n.length);return!!At(i,n)&&!e.hasChildren()&&!!Ct(i,n,s)}if(t.segments.length===n.length){if(!At(t.segments,n))return!1;if(!Ct(t.segments,n,s))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!St(t.children[n],e.children[n],s))return!1}return!0}{const i=n.slice(0,t.segments.length),r=n.slice(t.segments.length);return!!At(t.segments,i)&&!!Ct(t.segments,i,s)&&!!t.children.primary&&Tt(t.children.primary,e,r,s)}}function Ct(t,e,n){return e.every((e,s)=>bt[n](t[s].parameters,e.parameters))}class xt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ut(this.queryParams)),this._queryParamMap}toString(){return Pt.serialize(this)}}class Et{constructor(t,e){this.segments=t,this.children=e,this.parent=null,yt(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Dt(this)}}class kt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ut(this.parameters)),this._parameterMap}toString(){return jt(this)}}function At(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class It{}class Ot{parse(t){const e=new Zt(t);return new xt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${Lt(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Mt(e)}=${Mt(t)}`).join("&"):`${Mt(e)}=${Mt(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Pt=new Ot;function Dt(t){return t.segments.map(t=>jt(t)).join("/")}function Lt(t,e){if(!t.hasChildren())return Dt(t);if(e){const e=t.children.primary?Lt(t.children.primary,!1):"",n=[];return yt(t.children,(t,e)=>{e!==lt&&n.push(`${e}:${Lt(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return yt(t.children,(t,s)=>{s===lt&&(n=n.concat(e(t,s)))}),yt(t.children,(t,s)=>{s!==lt&&(n=n.concat(e(t,s)))}),n}(t,(e,n)=>n===lt?[Lt(t.children.primary,!1)]:[`${n}:${Lt(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Dt(t)}/${e[0]}`:`${Dt(t)}/(${e.join("//")})`}}function Nt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Mt(t){return Nt(t).replace(/%3B/gi,";")}function Rt(t){return Nt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ft(t){return decodeURIComponent(t)}function Bt(t){return Ft(t.replace(/\+/g,"%20"))}function jt(t){return`${Rt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Rt(t)}=${Rt(e[t])}`).join("")}`;var e}const Vt=/^[^\/()?;=#]+/;function zt(t){const e=t.match(Vt);return e?e[0]:""}const Ht=/^[^=?&#]+/,Ut=/^[^?&#]+/;class Zt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Et([],{}):new Et([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Et(t,e)),n}parseSegment(){const t=zt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new kt(Ft(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=zt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=zt(this.remaining);t&&(n=t,this.capture(n))}t[Ft(e)]=Ft(n)}parseQueryParam(t){const e=function(t){const e=t.match(Ht);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Ut);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const s=Bt(e),i=Bt(n);if(t.hasOwnProperty(s)){let e=t[s];Array.isArray(e)||(e=[e],t[s]=e),e.push(i)}else t[s]=i}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=zt(this.remaining),s=this.remaining[n.length];if("/"!==s&&")"!==s&&";"!==s)throw new Error(`Cannot parse url '${this.url}'`);let i;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=lt);const r=this.parseChildren();e[i]=1===Object.keys(r).length?r.primary:new Et([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class qt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Gt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Gt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Yt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Yt(t,this._root).map(t=>t.value)}}function Gt(t,e){if(t===e.value)return e;for(const n of e.children){const e=Gt(t,n);if(e)return e}return null}function Yt(t,e){if(t===e.value)return[e];for(const n of e.children){const s=Yt(t,n);if(s.length)return s.unshift(e),s}return[]}class $t{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Wt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Qt extends qt{constructor(t,e){super(t),this.snapshot=e,ne(this,t)}toString(){return this.snapshot.toString()}}function Jt(t,e){const n=function(t,e){const n=new te([],{},{},"",{},lt,e,null,t.root,-1,{});return new ee("",new $t(n,[]))}(t,e),s=new h.X([new kt("",{})]),i=new h.X({}),r=new h.X({}),o=new h.X({}),a=new h.X(""),l=new Kt(s,i,o,a,r,lt,e,n.root);return l.snapshot=n.root,new Qt(new $t(l,[]),n)}class Kt{constructor(t,e,n,s,i,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=s,this.data=i,this.outlet=r,this.component=o,this._futureSnapshot=a}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,M.U)(t=>ut(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,M.U)(t=>ut(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Xt(t,e="emptyOnly"){const n=t.pathFromRoot;let s=0;if("always"!==e)for(s=n.length-1;s>=1;){const t=n[s],e=n[s-1];if(t.routeConfig&&""===t.routeConfig.path)s--;else{if(e.component)break;s--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(s))}class te{constructor(t,e,n,s,i,r,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=s,this.data=i,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}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=ut(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ut(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ee extends qt{constructor(t,e){super(e),this.url=t,ne(this,e)}toString(){return se(this._root)}}function ne(t,e){e.value._routerState=t,e.children.forEach(e=>ne(t,e))}function se(t){const e=t.children.length>0?` { ${t.children.map(se).join(", ")} } `:"";return`${t.value}${e}`}function ie(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,pt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),pt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!pt(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),pt(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function re(t,e){var n,s;return pt(t.params,e.params)&&At(n=t.url,s=e.url)&&n.every((t,e)=>pt(t.parameters,s[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||re(t.parent,e.parent))}function oe(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const s=n.value;s._futureSnapshot=e.value;const i=function(t,e,n){return e.children.map(e=>{for(const s of n.children)if(t.shouldReuseRoute(e.value,s.value.snapshot))return oe(t,e,s);return oe(t,e)})}(t,e,n);return new $t(s,i)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return ae(e,t),t}}const n=new Kt(new h.X((s=e.value).url),new h.X(s.params),new h.X(s.queryParams),new h.X(s.fragment),new h.X(s.data),s.outlet,s.component,s),i=e.children.map(e=>oe(t,e));return new $t(n,i)}var s}function ae(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n<t.children.length;++n)ae(t.children[n],e.children[n])}function le(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ce(t){return"object"==typeof t&&null!=t&&t.outlets}function ue(t,e,n,s,i){let r={};return s&&yt(s,(t,e)=>{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new xt(n.root===t?e:he(n.root,t,e),r,i)}function he(t,e,n){const s={};return yt(t.children,(t,i)=>{s[i]=t===e?n:he(t,e,n)}),new Et(t.segments,s)}class de{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&le(n[0]))throw new Error("Root segment cannot have matrix parameters");const s=n.find(ce);if(s&&s!==mt(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class pe{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function fe(t,e,n){if(t||(t=new Et([],{})),0===t.segments.length&&t.hasChildren())return ge(t,e,n);const s=function(t,e,n){let s=0,i=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(s>=n.length)return r;const e=t.segments[i],o=n[s];if(ce(o))break;const a=`${o}`,l=s<n.length-1?n[s+1]:null;if(i>0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!_e(a,l,e))return r;s+=2}else{if(!_e(a,{},e))return r;s++}i++}return{match:!0,pathIndex:i,commandIndex:s}}(t,e,n),i=n.slice(s.commandIndex);if(s.match&&s.pathIndex<t.segments.length){const e=new Et(t.segments.slice(0,s.pathIndex),{});return e.children.primary=new Et(t.segments.slice(s.pathIndex),t.children),ge(e,0,i)}return s.match&&0===i.length?new Et(t.segments,{}):s.match&&!t.hasChildren()?me(t,e,n):s.match?ge(t,0,i):me(t,e,n)}function ge(t,e,n){if(0===n.length)return new Et(t.segments,{});{const s=function(t){return ce(t[0])?t[0].outlets:{[lt]:t}}(n),i={};return yt(s,(n,s)=>{"string"==typeof n&&(n=[n]),null!==n&&(i[s]=fe(t.children[s],e,n))}),yt(t.children,(t,e)=>{void 0===s[e]&&(i[e]=t)}),new Et(t.segments,i)}}function me(t,e,n){const s=t.segments.slice(0,e);let i=0;for(;i<n.length;){const r=n[i];if(ce(r)){const t=ye(r.outlets);return new Et(s,t)}if(0===i&&le(n[0])){s.push(new kt(t.segments[e].path,ve(n[0]))),i++;continue}const o=ce(r)?r.outlets.primary:`${r}`,a=i<n.length-1?n[i+1]:null;o&&a&&le(a)?(s.push(new kt(o,ve(a))),i+=2):(s.push(new kt(o,{})),i++)}return new Et(s,{})}function ye(t){const e={};return yt(t,(t,n)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=me(new Et([],{}),0,t))}),e}function ve(t){const e={};return yt(t,(t,n)=>e[n]=`${t}`),e}function _e(t,e,n){return t==n.path&&pt(e,n.parameters)}class be{constructor(t,e,n,s){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=s}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),ie(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const s=Wt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,s[e],n),delete s[e]}),yt(s,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const s=t.value,i=e?e.value:null;if(s===i)if(s.component){const i=n.getContext(s.outlet);i&&this.deactivateChildRoutes(t,e,i.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:s})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),s=n&&t.value.component?n.children:e,i=Wt(t);for(const r of Object.keys(i))this.deactivateRouteAndItsChildren(i[r],s);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const s=Wt(e);t.children.forEach(t=>{this.activateRoutes(t,s[t.value.outlet],n),this.forwardEvent(new ot(t.value.snapshot))}),t.children.length&&this.forwardEvent(new it(t.value.snapshot))}activateRoutes(t,e,n){const s=t.value,i=e?e.value:null;if(ie(s),s===i)if(s.component){const i=n.getOrCreateContext(s.outlet);this.activateChildRoutes(t,e,i.children)}else this.activateChildRoutes(t,e,n);else if(s.component){const e=n.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const t=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),we(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(s.snapshot),i=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=s,e.resolver=i,e.outlet&&e.outlet.activateWith(s,i),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function we(t){ie(t.value),t.children.forEach(we)}class Se{constructor(t,e){this.routes=t,this.module=e}}function Te(t){return"function"==typeof t}function Ce(t){return t instanceof xt}const xe=Symbol("INITIAL_VALUE");function Ee(){return(0,R.w)(t=>(0,d.aj)(t.map(t=>t.pipe((0,L.q)(1),(0,F.O)(xe)))).pipe(y((t,e)=>{let n=!1;return e.reduce((t,s,i)=>{if(t!==xe)return t;if(s===xe&&(n=!0),!n){if(!1===s)return s;if(i===e.length-1||Ce(s))return s}return t},t)},xe),(0,b.h)(t=>t!==xe),(0,M.U)(t=>Ce(t)?t:!0===t),(0,L.q)(1)))}let ke=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&i._UZ(0,"router-outlet")},directives:function(){return[En]},encapsulation:2}),t})();function Ae(t,e=""){for(let n=0;n<t.length;n++){const s=t[n];Ie(s,Oe(e,s))}}function Ie(t,e){t.children&&Ae(t.children,e)}function Oe(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Pe(t){const e=t.children&&t.children.map(Pe),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==lt&&(n.component=ke),n}function De(t){return t.outlet||lt}function Le(t,e){const n=t.filter(t=>De(t)===e);return n.push(...t.filter(t=>De(t)!==e)),n}const Ne={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Me(t,e,n){var s;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Ne):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const i=(e.matcher||dt)(n,t,e);if(!i)return Object.assign({},Ne);const r={};yt(i.posParams,(t,e)=>{r[e]=t.path});const o=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:o,positionalParamSegments:null!==(s=i.posParams)&&void 0!==s?s:{}}}function Re(t,e,n,s,i="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>Fe(t,e,n)&&De(n)!==lt)}(t,n,s)){const i=new Et(e,function(t,e,n,s){const i={};i.primary=s,s._sourceSegment=t,s._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&De(r)!==lt){const n=new Et([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,i[De(r)]=n}return i}(t,e,s,new Et(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Fe(t,e,n))}(t,n,s)){const r=new Et(t.segments,function(t,e,n,s,i,r){const o={};for(const a of s)if(Fe(t,n,a)&&!i[De(a)]){const n=new Et([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[De(a)]=n}return Object.assign(Object.assign({},i),o)}(t,e,n,s,t.children,i));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Et(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function Fe(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function Be(t,e,n,s){return!!(De(t)===s||s!==lt&&Fe(e,n,t))&&("**"===t.path||Me(e,t,n).matched)}function je(t,e,n){return 0===e.length&&!t.children[n]}class Ve{constructor(t){this.segmentGroup=t||null}}class ze{constructor(t){this.urlTree=t}}function He(t){return new o.y(e=>e.error(new Ve(t)))}function Ue(t){return new o.y(e=>e.error(new ze(t)))}function Ze(t){return new o.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class qe{constructor(t,e,n,s,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=s,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(i.h0i)}apply(){const t=Re(this.urlTree.root,[],[],this.config).segmentGroup,e=new Et(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,lt).pipe((0,M.U)(t=>this.createUrlTree(Ge(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,B.K)(t=>{if(t instanceof ze)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Ve)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,lt).pipe((0,M.U)(e=>this.createUrlTree(Ge(e),t.queryParams,t.fragment))).pipe((0,B.K)(t=>{if(t instanceof Ve)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const s=t.segments.length>0?new Et([],{[lt]:t}):t;return new xt(s,e,n)}expandSegmentGroup(t,e,n,s){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe((0,M.U)(t=>new Et([],t))):this.expandSegment(t,n,e,n.segments,s,!0)}expandChildren(t,e,n){const s=[];for(const i of Object.keys(n.children))"primary"===i?s.unshift(i):s.push(i);return(0,a.D)(s).pipe((0,j.b)(s=>{const i=n.children[s],r=Le(e,s);return this.expandSegmentGroup(t,r,i,s).pipe((0,M.U)(t=>({segment:t,outlet:s})))}),y((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return s=>s.pipe(t?(0,b.h)((e,n)=>t(e,n,s)):D.y,S(1),n?I(e):x(()=>new r))}())}expandSegment(t,e,n,s,i,o){return(0,a.D)(n).pipe((0,j.b)(r=>this.expandSegmentAgainstRoute(t,e,n,r,s,i,o).pipe((0,B.K)(t=>{if(t instanceof Ve)return(0,u.of)(null);throw t}))),N(t=>!!t),(0,B.K)((t,n)=>{if(t instanceof r||"EmptyError"===t.name){if(je(e,s,i))return(0,u.of)(new Et([],{}));throw new Ve(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,s,i,r,o){return Be(s,e,i,r)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(t,e,s,i,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,s,i,r):He(e):He(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,s,i,r){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,s,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,s,i,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,s){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ue(i):this.lineralizeSegments(n,i).pipe((0,V.zg)(n=>{const i=new Et(n,{});return this.expandSegment(t,i,e,n,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,s,i,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Me(e,s,i);if(!o)return He(e);const u=this.applyRedirectCommands(a,s.redirectTo,c);return s.redirectTo.startsWith("/")?Ue(u):this.lineralizeSegments(s,u).pipe((0,V.zg)(s=>this.expandSegment(t,e,n,s.concat(i.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,s,i){if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,u.of)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe((0,M.U)(t=>(n._loadedConfig=t,new Et(s,{})))):(0,u.of)(new Et(s,{}));const{matched:r,consumedSegments:o,lastChild:a}=Me(e,n,s);if(!r)return He(e);const l=s.slice(a);return this.getChildConfig(t,n,s).pipe((0,V.zg)(t=>{const s=t.module,r=t.routes,{segmentGroup:a,slicedSegments:c}=Re(e,o,l,r),h=new Et(a.segments,a.children);if(0===c.length&&h.hasChildren())return this.expandChildren(s,r,h).pipe((0,M.U)(t=>new Et(o,t)));if(0===r.length&&0===c.length)return(0,u.of)(new Et(o,{}));const d=De(n)===i;return this.expandSegment(s,h,r,c,d?lt:i,!0).pipe((0,M.U)(t=>new Et(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?(0,u.of)(new Se(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,u.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe((0,V.zg)(n=>n?this.configLoader.load(t.injector,e).pipe((0,M.U)(t=>(e._loadedConfig=t,t))):function(t){return new o.y(e=>e.error(ht(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):(0,u.of)(new Se([],t))}runCanLoadGuards(t,e,n){const s=e.canLoad;if(!s||0===s.length)return(0,u.of)(!0);const i=s.map(s=>{const i=t.get(s);let r;if(function(t){return t&&Te(t.canLoad)}(i))r=i.canLoad(e,n);else{if(!Te(i))throw new Error("Invalid CanLoad guard");r=i(e,n)}return vt(r)});return(0,u.of)(i).pipe(Ee(),(0,z.b)(t=>{if(!Ce(t))return;const e=ht(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,M.U)(t=>!0===t))}lineralizeSegments(t,e){let n=[],s=e.root;for(;;){if(n=n.concat(s.segments),0===s.numberOfChildren)return(0,u.of)(n);if(s.numberOfChildren>1||!s.children.primary)return Ze(t.redirectTo);s=s.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,s){const i=this.createSegmentGroup(t,e.root,n,s);return new xt(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return yt(t,(t,s)=>{if("string"==typeof t&&t.startsWith(":")){const i=t.substring(1);n[s]=e[i]}else n[s]=t}),n}createSegmentGroup(t,e,n,s){const i=this.createSegments(t,e.segments,n,s);let r={};return yt(e.children,(e,i)=>{r[i]=this.createSegmentGroup(t,e,n,s)}),new Et(i,r)}createSegments(t,e,n,s){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,s):this.findOrReturn(e,n))}findPosParam(t,e,n){const s=n[e.path.substring(1)];if(!s)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return s}findOrReturn(t,e){let n=0;for(const s of e){if(s.path===t.path)return e.splice(n),s;n++}return t}}function Ge(t){const e={};for(const n of Object.keys(t.children)){const s=Ge(t.children[n]);(s.segments.length>0||s.hasChildren())&&(e[n]=s)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Et(t.segments.concat(e.segments),e.children)}return t}(new Et(t.segments,e))}class Ye{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class $e{constructor(t,e){this.component=t,this.route=e}}function We(t,e,n){const s=t._root;return Je(s,e?e._root:null,n,[s.value])}function Qe(t,e,n){const s=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(s?s.module.injector:n).get(t)}function Je(t,e,n,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const r=Wt(e);return t.children.forEach(t=>{!function(t,e,n,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!At(t.url,e.url);case"pathParamsOrQueryParamsChange":return!At(t.url,e.url)||!pt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!re(t,e)||!pt(t.queryParams,e.queryParams);case"paramsChange":default:return!re(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Ye(s)):(r.data=o.data,r._resolvedData=o._resolvedData),Je(t,e,r.component?a?a.children:null:n,s,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new $e(a.outlet.component,o))}else o&&Ke(e,a,i),i.canActivateChecks.push(new Ye(s)),Je(t,null,r.component?a?a.children:null:n,s,i)}(t,r[t.value.outlet],n,s.concat([t.value]),i),delete r[t.value.outlet]}),yt(r,(t,e)=>Ke(t,n.getContext(e),i)),i}function Ke(t,e,n){const s=Wt(t),i=t.value;yt(s,(t,s)=>{Ke(t,i.component?e?e.children.getContext(s):null:e,n)}),n.canDeactivateChecks.push(new $e(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}class Xe{}function tn(t){return new o.y(e=>e.error(t))}class en{constructor(t,e,n,s,i,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=s,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=r}recognize(){const t=Re(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,lt);if(null===e)return null;const n=new te([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},lt,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new $t(n,e),i=new ee(this.url,s);return this.inheritParamsAndData(i._root),i}inheritParamsAndData(t){const e=t.value,n=Xt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const i of Object.keys(e.children)){const s=e.children[i],r=Le(t,i),o=this.processSegmentGroup(r,s,i);if(null===o)return null;n.push(...o)}const s=sn(n);return s.sort((t,e)=>t.value.outlet===lt?-1:e.value.outlet===lt?1:t.value.outlet.localeCompare(e.value.outlet)),s}processSegment(t,e,n,s){for(const i of t){const t=this.processSegmentAgainstRoute(i,e,n,s);if(null!==t)return t}return je(e,n,s)?[]:null}processSegmentAgainstRoute(t,e,n,s){if(t.redirectTo||!Be(t,e,n,s))return null;let i,r=[],o=[];if("**"===t.path){const s=n.length>0?mt(n).parameters:{};i=new te(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,an(t),De(t),t.component,t,rn(e),on(e)+n.length,ln(t))}else{const s=Me(e,t,n);if(!s.matched)return null;r=s.consumedSegments,o=n.slice(s.lastChild),i=new te(r,s.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,an(t),De(t),t.component,t,rn(e),on(e)+r.length,ln(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Re(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new $t(i,t)]}if(0===a.length&&0===c.length)return[new $t(i,[])];const u=De(t)===s,h=this.processSegment(a,l,c,u?lt:s);return null===h?null:[new $t(i,h)]}}function nn(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function sn(t){const e=[],n=new Set;for(const s of t){if(!nn(s)){e.push(s);continue}const t=e.find(t=>s.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...s.children),n.add(t)):e.push(s)}for(const s of n){const t=sn(s.children);e.push(new $t(s.value,t))}return e.filter(t=>!n.has(t))}function rn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function on(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function an(t){return t.data||{}}function ln(t){return t.resolve||{}}function cn(t){return(0,R.w)(e=>{const n=t(e);return n?(0,a.D)(n).pipe((0,M.U)(()=>e)):(0,u.of)(e)})}class un extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const hn=new i.OlP("ROUTES");class dn{constructor(t,e,n,s){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=s}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe((0,M.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const s=n.create(t);return new Se(gt(s.injector.get(hn,void 0,i.XFs.Self|i.XFs.Optional)).map(Pe),s)}),(0,B.K)(t=>{throw e._loader$=void 0,t}));return e._loader$=new f.c(n,()=>new g.xQ).pipe((0,H.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,a.D)(this.loader.load(t)):vt(t()).pipe((0,V.zg)(t=>t instanceof i.YKP?(0,u.of)(t):(0,a.D)(this.compiler.compileModuleAsync(t))))}}class pn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new fn,this.attachRef=null}}class fn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new pn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class gn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function mn(t){throw t}function yn(t,e,n){return e.parse("/")}function vn(t,e){return(0,u.of)(null)}const _n={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},bn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let wn=(()=>{class t{constructor(t,e,n,s,r,o,a,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=s,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new g.xQ,this.errorHandler=mn,this.malformedUriErrorHandler=yn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:vn,afterPreactivation:vn},this.urlHandlingStrategy=new gn,this.routeReuseStrategy=new un,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=r.get(i.h0i),this.console=r.get(i.c2e);const c=r.get(i.R0b);this.isNgZoneEnabled=c instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new xt(new Et([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new dn(o,a,t=>this.triggerEvent(new et(t)),t=>this.triggerEvent(new nt(t))),this.routerState=Jt(this.currentUrlTree,this.rootComponentType),this.transitions=new h.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const e=this.events;return t.pipe((0,b.h)(t=>0!==t.id),(0,M.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,R.w)(t=>{let n=!1,s=!1;return(0,u.of)(t).pipe((0,z.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,R.w)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return(0,u.of)(t).pipe((0,R.w)(t=>{const n=this.transitions.getValue();return e.next(new G(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?l.E:Promise.resolve(t)}),(s=this.ngModule.injector,i=this.configLoader,r=this.urlSerializer,o=this.config,(0,R.w)(t=>function(t,e,n,s,i){return new qe(t,e,n,s,i).apply()}(s,i,r,t.extractedUrl,o).pipe((0,M.U)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),(0,z.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,s,i){return(0,V.zg)(r=>function(t,e,n,s,i="emptyOnly",r="legacy"){try{const o=new en(t,e,n,s,i,r).recognize();return null===o?tn(new Xe):(0,u.of)(o)}catch(o){return tn(o)}}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),s,i).pipe((0,M.U)(t=>Object.assign(Object.assign({},r),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,z.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new Q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var s,i,r,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:s,source:i,restoredState:r,extras:o}=t,a=new G(n,this.serializeUrl(s),i,r);e.next(a);const l=Jt(s,this.rootComponentType).snapshot;return(0,u.of)(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:s,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),l.E}),cn(t=>{const{targetSnapshot:e,id:n,extractedUrl:s,rawUrl:i,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:s,rawUrlTree:i,skipLocationChange:!!r,replaceUrl:!!o})}),(0,z.b)(t=>{const e=new J(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,M.U)(t=>Object.assign(Object.assign({},t),{guards:We(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,V.zg)(n=>{const{targetSnapshot:s,currentSnapshot:i,guards:{canActivateChecks:r,canDeactivateChecks:o}}=n;return 0===o.length&&0===r.length?(0,u.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,s){return(0,a.D)(t).pipe((0,V.zg)(t=>function(t,e,n,s,i){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return(0,u.of)(!0);const o=r.map(r=>{const o=Qe(r,e,i);let a;if(function(t){return t&&Te(t.canDeactivate)}(o))a=vt(o.canDeactivate(t,e,n,s));else{if(!Te(o))throw new Error("Invalid CanDeactivate guard");a=vt(o(t,e,n,s))}return a.pipe(N())});return(0,u.of)(o).pipe(Ee())}(t.component,t.route,n,e,s)),N(t=>!0!==t,!0))}(o,s,i,t).pipe((0,V.zg)(n=>n&&"boolean"==typeof n?function(t,e,n,s){return(0,a.D)(e).pipe((0,j.b)(e=>(0,p.z)(function(t,e){return null!==t&&e&&e(new st(t)),(0,u.of)(!0)}(e.route.parent,s),function(t,e){return null!==t&&e&&e(new rt(t)),(0,u.of)(!0)}(e.route,s),function(t,e,n){const s=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>c(()=>{const i=e.guards.map(i=>{const r=Qe(i,e.node,n);let o;if(function(t){return t&&Te(t.canActivateChild)}(r))o=vt(r.canActivateChild(s,t));else{if(!Te(r))throw new Error("Invalid CanActivateChild guard");o=vt(r(s,t))}return o.pipe(N())});return(0,u.of)(i).pipe(Ee())}));return(0,u.of)(i).pipe(Ee())}(t,e.path,n),function(t,e,n){const s=e.routeConfig?e.routeConfig.canActivate:null;if(!s||0===s.length)return(0,u.of)(!0);const i=s.map(s=>c(()=>{const i=Qe(s,e,n);let r;if(function(t){return t&&Te(t.canActivate)}(i))r=vt(i.canActivate(e,t));else{if(!Te(i))throw new Error("Invalid CanActivate guard");r=vt(i(e,t))}return r.pipe(N())}));return(0,u.of)(i).pipe(Ee())}(t,e.route,n))),N(t=>!0!==t,!0))}(s,r,t,e):(0,u.of)(n)),(0,M.U)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,z.b)(t=>{if(Ce(t.guardsResult)){const e=ht(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new K(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,b.h)(t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,""),!1)),cn(t=>{if(t.guards.canActivateChecks.length)return(0,u.of)(t).pipe((0,z.b)(t=>{const e=new X(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,R.w)(t=>{let e=!1;return(0,u.of)(t).pipe((n=this.paramsInheritanceStrategy,s=this.ngModule.injector,(0,V.zg)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:i}}=t;if(!i.length)return(0,u.of)(t);let r=0;return(0,a.D)(i).pipe((0,j.b)(t=>function(t,e,n,s){return function(t,e,n,s){const i=Object.keys(t);if(0===i.length)return(0,u.of)({});const r={};return(0,a.D)(i).pipe((0,V.zg)(i=>function(t,e,n,s){const i=Qe(t,e,s);return vt(i.resolve?i.resolve(e,n):i(e,n))}(t[i],e,n,s).pipe((0,z.b)(t=>{r[i]=t}))),S(1),(0,V.zg)(()=>Object.keys(r).length===i.length?(0,u.of)(r):l.E))}(t._resolve,t,e,s).pipe((0,M.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Xt(t,n).resolve),null)))}(t.route,e,n,s)),(0,z.b)(()=>r++),S(1),(0,V.zg)(e=>r===i.length?(0,u.of)(t):l.E))})),(0,z.b)({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}));var n,s}),(0,z.b)(t=>{const e=new tt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),cn(t=>{const{targetSnapshot:e,id:n,extractedUrl:s,rawUrl:i,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:s,rawUrlTree:i,skipLocationChange:!!r,replaceUrl:!!o})}),(0,M.U)(t=>{const e=function(t,e,n){const s=oe(t,e._root,n?n._root:void 0);return new Qt(s,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,z.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),(i=this.rootContexts,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),(0,M.U)(t=>(new be(r,t.targetRouterState,t.currentRouterState,o).activate(i),t))),(0,z.b)({next(){n=!0},complete(){n=!0}}),(0,U.x)(()=>{if(!n&&!s){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(t),this.cancelNavigationTransition(t,e)):this.cancelNavigationTransition(t,e)}this.currentNavigation=null}),(0,B.K)(n=>{if(s=!0,(i=n)&&i.ngNavigationCancelingError){const s=Ce(n.url);s||(this.navigated=!0,this.restoreHistory(t,!0));const i=new $(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(i),s?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.restoreHistory(t,!0);const s=new W(t.id,this.serializeUrl(t.extractedUrl),n);e.next(s);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var i;return l.E}));var i,r,o}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:s}=e,i={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(i.state=t)}this.scheduleNavigation(s,t,n,i)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Ae(t),this.config=t.map(Pe),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:s,fragment:i,queryParamsHandling:r,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:i;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=s||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,s,i){if(0===n.length)return ue(e.root,e.root,e,s,i);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new de(!0,0,t);let e=0,n=!1;const s=t.reduce((t,s,i)=>{if("object"==typeof s&&null!=s){if(s.outlets){const e={};return yt(s.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(s.segmentPath)return[...t,s.segmentPath]}return"string"!=typeof s?[...t,s]:0===i?(s.split("/").forEach((s,i)=>{0==i&&"."===s||(0==i&&""===s?n=!0:".."===s?e++:""!=s&&t.push(s))}),t):[...t,s]},[]);return new de(n,e,s)}(n);if(r.toRoot())return ue(e.root,new Et([],{}),e,s,i);const o=function(t,e,n){if(t.isAbsolute)return new pe(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new pe(t,t===e.root,0)}const s=le(t.commands[0])?0:1;return function(t,e,n){let s=t,i=e,r=n;for(;r>i;){if(r-=i,s=s.parent,!s)throw new Error("Invalid number of '../'");i=s.segments.length}return new pe(s,!1,i-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+s,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?ge(o.segmentGroup,o.index,r.commands):fe(o.segmentGroup,o.index,r.commands);return ue(o.segmentGroup,a,e,s,i)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Ce(t)?t:this.parseUrl(t),s=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){let n;if(n=!0===e?Object.assign({},_n):!1===e?Object.assign({},bn):e,Ce(t))return wt(this.currentUrlTree,t,n);const s=this.parseUrl(t);return wt(this.currentUrlTree,s,n)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const s=t[n];return null!=s&&(e[n]=s),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,s,i){var r,o;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),l="imperative"!==e&&"imperative"===(null==a?void 0:a.source),c=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(l&&c)return Promise.resolve(!0);let u,h,d;i?(u=i.resolve,h=i.reject,d=i.promise):d=new Promise((t,e)=>{u=t,h=e});const p=++this.navigationId;let f;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.\u0275routerPageId?n.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(r=this.browserPageId)&&void 0!==r?r:0:(null!==(o=this.browserPageId)&&void 0!==o?o:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:s,resolve:u,reject:h,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),s=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",s):this.location.go(n,"",s)}restoreHistory(t,e=!1){var n,s;if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===e?this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(e)}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){const n=new $(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.DyG),i.LFG(It),i.LFG(fn),i.LFG(s.Ye),i.LFG(i.zs3),i.LFG(i.v3s),i.LFG(i.Sil),i.LFG(void 0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),Sn=(()=>{class t{constructor(t,e,n,s,i){this.router=t,this.route=e,this.commands=[],this.onChanges=new g.xQ,null==n&&s.setAttribute(i.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:Cn(this.skipLocationChange),replaceUrl:Cn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Cn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(wn),i.Y36(Kt),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&i.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[i.TTD]}),t})(),Tn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new g.xQ,this.subscription=t.events.subscribe(t=>{t instanceof Y&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,s,i){if(0!==t||e||n||s||i)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:Cn(this.skipLocationChange),replaceUrl:Cn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Cn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(wn),i.Y36(Kt),i.Y36(s.S$))},t.\u0275dir=i.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(i.Ikx("href",e.href,i.LSH),i.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[i.TTD]}),t})();function Cn(t){return""===t||!!t}let xn=(()=>{class t{constructor(t,e,n,s,i,r){this.router=t,this.element=e,this.renderer=n,this.cdr=s,this.link=i,this.linkWithHref=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof Y&&this.update()})}ngAfterContentInit(){(0,u.of)(this.links.changes,this.linksWithHrefs.changes,(0,u.of)(null)).pipe((0,Z.J)()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=(0,a.D)(e).pipe((0,Z.J)()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){const e="paths"in this.routerLinkActiveOptions?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return n=>t.isActive(n.urlTree,e)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(wn),i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(i.sBO),i.Y36(Sn,8),i.Y36(Tn,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(i.Suo(n,Sn,5),i.Suo(n,Tn,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.links=t),i.iGM(t=i.CRH())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[i.TTD]}),t})(),En=(()=>{class t{constructor(t,e,n,s,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.name=s||lt,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,i=new kn(t,s,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(fn),i.Y36(i.s_b),i.Y36(i._Vd),i.$8M("name"),i.Y36(i.sBO))},t.\u0275dir=i.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class kn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Kt?this.route:t===fn?this.childContexts:this.parent.get(t,e)}}class An{}class In{preload(t,e){return(0,u.of)(null)}}let On=(()=>{class t{constructor(t,e,n,s,i){this.router=t,this.injector=s,this.preloadingStrategy=i,this.loader=new dn(e,n,e=>t.triggerEvent(new et(e)),e=>t.triggerEvent(new nt(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,b.h)(t=>t instanceof Y),(0,j.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(i.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const s of e)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const t=s._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else s.loadChildren&&!s.canLoad?n.push(this.preloadConfig(t,s)):s.children&&n.push(this.processRoutes(t,s.children));return(0,a.D)(n).pipe((0,Z.J)(),(0,M.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,u.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,V.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(wn),i.LFG(i.v3s),i.LFG(i.Sil),i.LFG(i.zs3),i.LFG(An))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),Pn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof G?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Y&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof at&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new at(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(wn),i.LFG(s.EM),i.LFG(void 0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const Dn=new i.OlP("ROUTER_CONFIGURATION"),Ln=new i.OlP("ROUTER_FORROOT_GUARD"),Nn=[s.Ye,{provide:It,useClass:Ot},{provide:wn,useFactory:function(t,e,n,s,i,r,o,a={},l,c){const u=new wn(null,t,e,n,s,i,r,gt(o));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[It,fn,s.Ye,i.zs3,i.v3s,i.Sil,hn,Dn,[class{},new i.FiY],[class{},new i.FiY]]},fn,{provide:Kt,useFactory:function(t){return t.routerState.root},deps:[wn]},{provide:i.v3s,useClass:i.EAV},On,In,class{preload(t,e){return e().pipe((0,B.K)(()=>(0,u.of)(null)))}},{provide:Dn,useValue:{enableTracing:!1}}];function Mn(){return new i.PXZ("Router",wn)}let Rn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Nn,Vn(e),{provide:Ln,useFactory:jn,deps:[[wn,new i.FiY,new i.tp0]]},{provide:Dn,useValue:n||{}},{provide:s.S$,useFactory:Bn,deps:[s.lw,[new i.tBr(s.mr),new i.FiY],Dn]},{provide:Pn,useFactory:Fn,deps:[wn,s.EM,Dn]},{provide:An,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:In},{provide:i.PXZ,multi:!0,useFactory:Mn},[zn,{provide:i.ip1,multi:!0,useFactory:Hn,deps:[zn]},{provide:Zn,useFactory:Un,deps:[zn]},{provide:i.tb,multi:!0,useExisting:Zn}]]}}static forChild(e){return{ngModule:t,providers:[Vn(e)]}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ln,8),i.LFG(wn,8))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();function Fn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Pn(t,e,n)}function Bn(t,e,n={}){return n.useHash?new s.Do(t,e):new s.b0(t,e)}function jn(t){return"guarded"}function Vn(t){return[{provide:i.deG,multi:!0,useValue:t},{provide:hn,multi:!0,useValue:t}]}let zn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new g.xQ}appInitializer(){return this.injector.get(s.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise(e=>t=e),n=this.injector.get(wn),s=this.injector.get(Dn);return"disabled"===s.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?(0,u.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Dn),n=this.injector.get(On),s=this.injector.get(Pn),r=this.injector.get(wn),o=this.injector.get(i.z2F);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),n.setUpPreloading(),s.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.zs3))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function Hn(t){return t.appInitializer.bind(t)}function Un(t){return t.bootstrapListener.bind(t)}const Zn=new i.OlP("Router Initializer")},3917:(t,e,n)=>{"use strict";n.d(e,{w9:()=>Qt,A0:()=>Xt});var s=n(3018),i=n(665),r=n(5345);function o(t){return e=>e.lift(new a(t))}class a{constructor(t){this.notifier=t}call(t,e){const n=new l(t),s=(0,r.ft)(this.notifier,new r.IY(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class l extends r.Ds{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}var c=n(3637);class u{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new h(t,this.durationSelector))}}class h extends r.Ds{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const s=(0,r.ft)(n,new r.IY(this));!s||s.closed?this.clearThrottle():this.add(this.throttled=s)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var d=n(8634),p=n(9761),f=n(3342),g=n(4395),m=n(5435),y=n(8002),v=n(6465),_=n(6102);const b=new class extends _.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,s=-1,i=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++s<i&&(t=e.shift()));if(this.active=!1,n){for(;++s<i&&(t=e.shift());)t.unsubscribe();throw n}}}(class extends v.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let w=1;const S=Promise.resolve(),T={};function C(t){return t in T&&(delete T[t],!0)}const x={setImmediate(t){const e=w++;return T[e]=!0,S.then(()=>C(e)&&t()),e},clearImmediate(t){C(t)}},E=new class extends _.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,s=-1,i=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++s<i&&(t=e.shift()));if(this.active=!1,n){for(;++s<i&&(t=e.shift());)t.unsubscribe();throw n}}}(class extends v.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=x.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(x.clearImmediate(e),t.scheduled=void 0)}});var k=n(7574),A=n(9796),I=n(9105);function O(t,e,n,s){return(0,I.m)(n)&&(s=n,n=void 0),s?O(t,e,n).pipe((0,y.U)(t=>(0,A.k)(t)?s(...t):s(t))):new k.y(s=>{P(t,e,function(t){s.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},s,n)})}function P(t,e,n,s,i){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(e,n,i),r=()=>s.removeEventListener(e,n,i)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(e,n),r=()=>s.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(e,n),r=()=>s.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r<o;r++)P(t[r],e,n,s,i)}s.add(r)}var D=n(9765),L=n(6682),N=n(8583);const M=["content"],R=["scroll"],F=["padding"],B=function(t){return{searchTerm:t}};function j(t,e){if(1&t&&(s.TgZ(0,"div",6),s.GkF(1,7),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngTemplateOutlet",t.headerTemplate)("ngTemplateOutletContext",s.VKq(2,B,t.filterValue))}}function V(t,e){if(1&t&&(s.TgZ(0,"div",8),s.GkF(1,7),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngTemplateOutlet",t.footerTemplate)("ngTemplateOutletContext",s.VKq(2,B,t.filterValue))}}const z=["*"],H=["searchInput"];function U(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"span",15),s.NdJ("click",function(){s.CHM(t);const e=s.oxw().$implicit;return s.oxw(2).unselect(e)}),s._uU(1,"\xd7"),s.qZA(),s._UZ(2,"span",16)}if(2&t){const t=s.oxw().$implicit,e=s.oxw(2);s.xp6(2),s.Q6J("ngItemLabel",t.label)("escape",e.escapeHTML)}}function Z(t,e){}const q=function(t,e,n){return{item:t,clear:e,label:n}};function G(t,e){if(1&t&&(s.TgZ(0,"div",12),s.YNc(1,U,3,2,"ng-template",null,13,s.W1O),s.YNc(3,Z,0,0,"ng-template",14),s.qZA()),2&t){const t=e.$implicit,n=s.MAs(2),i=s.oxw(2);s.ekj("ng-value-disabled",t.disabled),s.xp6(3),s.Q6J("ngTemplateOutlet",i.labelTemplate||n)("ngTemplateOutletContext",s.kEZ(4,q,t.value,i.clearItem,t.label))}}function Y(t,e){if(1&t&&(s.ynx(0),s.YNc(1,G,4,8,"div",11),s.BQk()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",t.selectedItems)("ngForTrackBy",t.trackByOption)}}function $(t,e){}const W=function(t,e){return{items:t,clear:e}};function Q(t,e){if(1&t&&s.YNc(0,$,0,0,"ng-template",14),2&t){const t=s.oxw();s.Q6J("ngTemplateOutlet",t.multiLabelTemplate)("ngTemplateOutletContext",s.WLB(2,W,t.selectedValues,t.clearItem))}}function J(t,e){1&t&&s._UZ(0,"div",19)}function K(t,e){}function X(t,e){if(1&t&&(s.ynx(0),s.YNc(1,J,1,0,"ng-template",null,17,s.W1O),s.YNc(3,K,0,0,"ng-template",18),s.BQk()),2&t){const t=s.MAs(2),e=s.oxw();s.xp6(3),s.Q6J("ngTemplateOutlet",e.loadingSpinnerTemplate||t)}}function tt(t,e){if(1&t&&(s.TgZ(0,"span",20),s.TgZ(1,"span",21),s._uU(2,"\xd7"),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.s9C("title",t.clearAllText)}}function et(t,e){if(1&t&&s._UZ(0,"span",27),2&t){const t=s.oxw().$implicit,e=s.oxw(2);s.Q6J("ngItemLabel",t.label)("escape",e.escapeHTML)}}function nt(t,e){}const st=function(t,e,n,s){return{item:t,item$:e,index:n,searchTerm:s}};function it(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",25),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(2).toggleItem(e)})("mouseover",function(){const e=s.CHM(t).$implicit;return s.oxw(2).onItemHover(e)}),s.YNc(1,et,1,2,"ng-template",null,26,s.W1O),s.YNc(3,nt,0,0,"ng-template",14),s.qZA()}if(2&t){const t=e.$implicit,n=s.MAs(2),i=s.oxw(2);s.ekj("ng-option-disabled",t.disabled)("ng-option-selected",t.selected)("ng-optgroup",t.children)("ng-option",!t.children)("ng-option-child",!!t.parent)("ng-option-marked",t===i.itemsList.markedItem),s.uIk("role",t.children?"group":"option")("aria-selected",t.selected)("id",null==t?null:t.htmlId),s.xp6(3),s.Q6J("ngTemplateOutlet",t.children?i.optgroupTemplate||n:i.optionTemplate||n)("ngTemplateOutletContext",s.l5B(17,st,t.value,t,t.index,i.searchTerm))}}function rt(t,e){if(1&t&&(s.TgZ(0,"span"),s.TgZ(1,"span",30),s._uU(2),s.qZA(),s._uU(3),s.qZA()),2&t){const t=s.oxw(3);s.xp6(2),s.Oqu(t.addTagText),s.xp6(1),s.hij('"',t.searchTerm,'"')}}function ot(t,e){}function at(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",28),s.NdJ("mouseover",function(){return s.CHM(t),s.oxw(2).itemsList.unmarkItem()})("click",function(){return s.CHM(t),s.oxw(2).selectTag()}),s.YNc(1,rt,4,2,"ng-template",null,29,s.W1O),s.YNc(3,ot,0,0,"ng-template",14),s.qZA()}if(2&t){const t=s.MAs(2),e=s.oxw(2);s.ekj("ng-option-marked",!e.itemsList.markedItem),s.xp6(3),s.Q6J("ngTemplateOutlet",e.tagTemplate||t)("ngTemplateOutletContext",s.VKq(4,B,e.searchTerm))}}function lt(t,e){if(1&t&&(s.TgZ(0,"div",32),s._uU(1),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.Oqu(t.notFoundText)}}function ct(t,e){}function ut(t,e){if(1&t&&(s.ynx(0),s.YNc(1,lt,2,1,"ng-template",null,31,s.W1O),s.YNc(3,ct,0,0,"ng-template",14),s.BQk()),2&t){const t=s.MAs(2),e=s.oxw(2);s.xp6(3),s.Q6J("ngTemplateOutlet",e.notFoundTemplate||t)("ngTemplateOutletContext",s.VKq(2,B,e.searchTerm))}}function ht(t,e){if(1&t&&(s.TgZ(0,"div",32),s._uU(1),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.Oqu(t.typeToSearchText)}}function dt(t,e){}function pt(t,e){if(1&t&&(s.ynx(0),s.YNc(1,ht,2,1,"ng-template",null,33,s.W1O),s.YNc(3,dt,0,0,"ng-template",18),s.BQk()),2&t){const t=s.MAs(2),e=s.oxw(2);s.xp6(3),s.Q6J("ngTemplateOutlet",e.typeToSearchTemplate||t)}}function ft(t,e){if(1&t&&(s.TgZ(0,"div",32),s._uU(1),s.qZA()),2&t){const t=s.oxw(3);s.xp6(1),s.Oqu(t.loadingText)}}function gt(t,e){}function mt(t,e){if(1&t&&(s.ynx(0),s.YNc(1,ft,2,1,"ng-template",null,34,s.W1O),s.YNc(3,gt,0,0,"ng-template",14),s.BQk()),2&t){const t=s.MAs(2),e=s.oxw(2);s.xp6(3),s.Q6J("ngTemplateOutlet",e.loadingTextTemplate||t)("ngTemplateOutletContext",s.VKq(2,B,e.searchTerm))}}function yt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"ng-dropdown-panel",22),s.NdJ("update",function(e){return s.CHM(t),s.oxw().viewPortItems=e})("scroll",function(e){return s.CHM(t),s.oxw().scroll.emit(e)})("scrollToEnd",function(e){return s.CHM(t),s.oxw().scrollToEnd.emit(e)})("outsideClick",function(){return s.CHM(t),s.oxw().close()}),s.ynx(1),s.YNc(2,it,4,22,"div",23),s.YNc(3,at,4,6,"div",24),s.BQk(),s.YNc(4,ut,4,4,"ng-container",3),s.YNc(5,pt,4,1,"ng-container",3),s.YNc(6,mt,4,4,"ng-container",3),s.qZA()}if(2&t){const t=s.oxw();s.ekj("ng-select-multiple",t.multiple),s.Q6J("virtualScroll",t.virtualScroll)("bufferAmount",t.bufferAmount)("appendTo",t.appendTo)("position",t.dropdownPosition)("headerTemplate",t.headerTemplate)("footerTemplate",t.footerTemplate)("filterValue",t.searchTerm)("items",t.itemsList.filteredItems)("markedItem",t.itemsList.markedItem)("ngClass",t.appendTo?t.classes:null)("id",t.dropdownId),s.xp6(2),s.Q6J("ngForOf",t.viewPortItems)("ngForTrackBy",t.trackByOption),s.xp6(1),s.Q6J("ngIf",t.showAddTag),s.xp6(1),s.Q6J("ngIf",t.showNoItemsFound()),s.xp6(1),s.Q6J("ngIf",t.showTypeToSearch()),s.xp6(1),s.Q6J("ngIf",t.loading&&0===t.itemsList.filteredItems.length)}}const vt=/[&<>"']/g,_t=RegExp(vt.source),bt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function wt(t){return null!=t}function St(t){return"object"==typeof t&&wt(t)}function Tt(t){return t instanceof Function}let Ct=(()=>{class t{constructor(t){this.element=t,this.escape=!0}ngOnChanges(t){var e;this.element.nativeElement.innerHTML=this.escape?(e=this.ngItemLabel)&&_t.test(e)?e.replace(vt,t=>bt[t]):e:this.ngItemLabel}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","ngItemLabel",""]],inputs:{escape:"escape",ngItemLabel:"ngItemLabel"},features:[s.TTD]}),t})(),xt=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","ng-option-tmp",""]]}),t})(),Et=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","ng-optgroup-tmp",""]]}),t})(),kt=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","ng-label-tmp",""]]}),t})(),At=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","ng-multi-label-tmp",""]]}),t})(),It=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","ng-header-tmp",""]]}),t})(),Ot=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","ng-footer-tmp",""]]}),t})(),Pt=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","ng-notfound-tmp",""]]}),t})(),Dt=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","ng-typetosearch-tmp",""]]}),t})(),Lt=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","ng-loadingtext-tmp",""]]}),t})(),Nt=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","ng-tag-tmp",""]]}),t})(),Mt=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["","ng-loadingspinner-tmp",""]]}),t})(),Rt=(()=>{class t{warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();function Ft(){return"axxxxxxxxxxx".replace(/[x]/g,function(t){return(16*Math.random()|0).toString(16)})}const Bt={"\u24b6":"A","\uff21":"A","\xc0":"A","\xc1":"A","\xc2":"A","\u1ea6":"A","\u1ea4":"A","\u1eaa":"A","\u1ea8":"A","\xc3":"A","\u0100":"A","\u0102":"A","\u1eb0":"A","\u1eae":"A","\u1eb4":"A","\u1eb2":"A","\u0226":"A","\u01e0":"A","\xc4":"A","\u01de":"A","\u1ea2":"A","\xc5":"A","\u01fa":"A","\u01cd":"A","\u0200":"A","\u0202":"A","\u1ea0":"A","\u1eac":"A","\u1eb6":"A","\u1e00":"A","\u0104":"A","\u023a":"A","\u2c6f":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u24b7":"B","\uff22":"B","\u1e02":"B","\u1e04":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24b8":"C","\uff23":"C","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0187":"C","\u023b":"C","\ua73e":"C","\u24b9":"D","\uff24":"D","\u1e0a":"D","\u010e":"D","\u1e0c":"D","\u1e10":"D","\u1e12":"D","\u1e0e":"D","\u0110":"D","\u018b":"D","\u018a":"D","\u0189":"D","\ua779":"D","\u01f1":"DZ","\u01c4":"DZ","\u01f2":"Dz","\u01c5":"Dz","\u24ba":"E","\uff25":"E","\xc8":"E","\xc9":"E","\xca":"E","\u1ec0":"E","\u1ebe":"E","\u1ec4":"E","\u1ec2":"E","\u1ebc":"E","\u0112":"E","\u1e14":"E","\u1e16":"E","\u0114":"E","\u0116":"E","\xcb":"E","\u1eba":"E","\u011a":"E","\u0204":"E","\u0206":"E","\u1eb8":"E","\u1ec6":"E","\u0228":"E","\u1e1c":"E","\u0118":"E","\u1e18":"E","\u1e1a":"E","\u0190":"E","\u018e":"E","\u24bb":"F","\uff26":"F","\u1e1e":"F","\u0191":"F","\ua77b":"F","\u24bc":"G","\uff27":"G","\u01f4":"G","\u011c":"G","\u1e20":"G","\u011e":"G","\u0120":"G","\u01e6":"G","\u0122":"G","\u01e4":"G","\u0193":"G","\ua7a0":"G","\ua77d":"G","\ua77e":"G","\u24bd":"H","\uff28":"H","\u0124":"H","\u1e22":"H","\u1e26":"H","\u021e":"H","\u1e24":"H","\u1e28":"H","\u1e2a":"H","\u0126":"H","\u2c67":"H","\u2c75":"H","\ua78d":"H","\u24be":"I","\uff29":"I","\xcc":"I","\xcd":"I","\xce":"I","\u0128":"I","\u012a":"I","\u012c":"I","\u0130":"I","\xcf":"I","\u1e2e":"I","\u1ec8":"I","\u01cf":"I","\u0208":"I","\u020a":"I","\u1eca":"I","\u012e":"I","\u1e2c":"I","\u0197":"I","\u24bf":"J","\uff2a":"J","\u0134":"J","\u0248":"J","\u24c0":"K","\uff2b":"K","\u1e30":"K","\u01e8":"K","\u1e32":"K","\u0136":"K","\u1e34":"K","\u0198":"K","\u2c69":"K","\ua740":"K","\ua742":"K","\ua744":"K","\ua7a2":"K","\u24c1":"L","\uff2c":"L","\u013f":"L","\u0139":"L","\u013d":"L","\u1e36":"L","\u1e38":"L","\u013b":"L","\u1e3c":"L","\u1e3a":"L","\u0141":"L","\u023d":"L","\u2c62":"L","\u2c60":"L","\ua748":"L","\ua746":"L","\ua780":"L","\u01c7":"LJ","\u01c8":"Lj","\u24c2":"M","\uff2d":"M","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u019c":"M","\u24c3":"N","\uff2e":"N","\u01f8":"N","\u0143":"N","\xd1":"N","\u1e44":"N","\u0147":"N","\u1e46":"N","\u0145":"N","\u1e4a":"N","\u1e48":"N","\u0220":"N","\u019d":"N","\ua790":"N","\ua7a4":"N","\u01ca":"NJ","\u01cb":"Nj","\u24c4":"O","\uff2f":"O","\xd2":"O","\xd3":"O","\xd4":"O","\u1ed2":"O","\u1ed0":"O","\u1ed6":"O","\u1ed4":"O","\xd5":"O","\u1e4c":"O","\u022c":"O","\u1e4e":"O","\u014c":"O","\u1e50":"O","\u1e52":"O","\u014e":"O","\u022e":"O","\u0230":"O","\xd6":"O","\u022a":"O","\u1ece":"O","\u0150":"O","\u01d1":"O","\u020c":"O","\u020e":"O","\u01a0":"O","\u1edc":"O","\u1eda":"O","\u1ee0":"O","\u1ede":"O","\u1ee2":"O","\u1ecc":"O","\u1ed8":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\u0186":"O","\u019f":"O","\ua74a":"O","\ua74c":"O","\u01a2":"OI","\ua74e":"OO","\u0222":"OU","\u24c5":"P","\uff30":"P","\u1e54":"P","\u1e56":"P","\u01a4":"P","\u2c63":"P","\ua750":"P","\ua752":"P","\ua754":"P","\u24c6":"Q","\uff31":"Q","\ua756":"Q","\ua758":"Q","\u024a":"Q","\u24c7":"R","\uff32":"R","\u0154":"R","\u1e58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1e5a":"R","\u1e5c":"R","\u0156":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua75a":"R","\ua7a6":"R","\ua782":"R","\u24c8":"S","\uff33":"S","\u1e9e":"S","\u015a":"S","\u1e64":"S","\u015c":"S","\u1e60":"S","\u0160":"S","\u1e66":"S","\u1e62":"S","\u1e68":"S","\u0218":"S","\u015e":"S","\u2c7e":"S","\ua7a8":"S","\ua784":"S","\u24c9":"T","\uff34":"T","\u1e6a":"T","\u0164":"T","\u1e6c":"T","\u021a":"T","\u0162":"T","\u1e70":"T","\u1e6e":"T","\u0166":"T","\u01ac":"T","\u01ae":"T","\u023e":"T","\ua786":"T","\ua728":"TZ","\u24ca":"U","\uff35":"U","\xd9":"U","\xda":"U","\xdb":"U","\u0168":"U","\u1e78":"U","\u016a":"U","\u1e7a":"U","\u016c":"U","\xdc":"U","\u01db":"U","\u01d7":"U","\u01d5":"U","\u01d9":"U","\u1ee6":"U","\u016e":"U","\u0170":"U","\u01d3":"U","\u0214":"U","\u0216":"U","\u01af":"U","\u1eea":"U","\u1ee8":"U","\u1eee":"U","\u1eec":"U","\u1ef0":"U","\u1ee4":"U","\u1e72":"U","\u0172":"U","\u1e76":"U","\u1e74":"U","\u0244":"U","\u24cb":"V","\uff36":"V","\u1e7c":"V","\u1e7e":"V","\u01b2":"V","\ua75e":"V","\u0245":"V","\ua760":"VY","\u24cc":"W","\uff37":"W","\u1e80":"W","\u1e82":"W","\u0174":"W","\u1e86":"W","\u1e84":"W","\u1e88":"W","\u2c72":"W","\u24cd":"X","\uff38":"X","\u1e8a":"X","\u1e8c":"X","\u24ce":"Y","\uff39":"Y","\u1ef2":"Y","\xdd":"Y","\u0176":"Y","\u1ef8":"Y","\u0232":"Y","\u1e8e":"Y","\u0178":"Y","\u1ef6":"Y","\u1ef4":"Y","\u01b3":"Y","\u024e":"Y","\u1efe":"Y","\u24cf":"Z","\uff3a":"Z","\u0179":"Z","\u1e90":"Z","\u017b":"Z","\u017d":"Z","\u1e92":"Z","\u1e94":"Z","\u01b5":"Z","\u0224":"Z","\u2c7f":"Z","\u2c6b":"Z","\ua762":"Z","\u24d0":"a","\uff41":"a","\u1e9a":"a","\xe0":"a","\xe1":"a","\xe2":"a","\u1ea7":"a","\u1ea5":"a","\u1eab":"a","\u1ea9":"a","\xe3":"a","\u0101":"a","\u0103":"a","\u1eb1":"a","\u1eaf":"a","\u1eb5":"a","\u1eb3":"a","\u0227":"a","\u01e1":"a","\xe4":"a","\u01df":"a","\u1ea3":"a","\xe5":"a","\u01fb":"a","\u01ce":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1ead":"a","\u1eb7":"a","\u1e01":"a","\u0105":"a","\u2c65":"a","\u0250":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u24d1":"b","\uff42":"b","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24d2":"c","\uff43":"c","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0188":"c","\u023c":"c","\ua73f":"c","\u2184":"c","\u24d3":"d","\uff44":"d","\u1e0b":"d","\u010f":"d","\u1e0d":"d","\u1e11":"d","\u1e13":"d","\u1e0f":"d","\u0111":"d","\u018c":"d","\u0256":"d","\u0257":"d","\ua77a":"d","\u01f3":"dz","\u01c6":"dz","\u24d4":"e","\uff45":"e","\xe8":"e","\xe9":"e","\xea":"e","\u1ec1":"e","\u1ebf":"e","\u1ec5":"e","\u1ec3":"e","\u1ebd":"e","\u0113":"e","\u1e15":"e","\u1e17":"e","\u0115":"e","\u0117":"e","\xeb":"e","\u1ebb":"e","\u011b":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u1e19":"e","\u1e1b":"e","\u0247":"e","\u025b":"e","\u01dd":"e","\u24d5":"f","\uff46":"f","\u1e1f":"f","\u0192":"f","\ua77c":"f","\u24d6":"g","\uff47":"g","\u01f5":"g","\u011d":"g","\u1e21":"g","\u011f":"g","\u0121":"g","\u01e7":"g","\u0123":"g","\u01e5":"g","\u0260":"g","\ua7a1":"g","\u1d79":"g","\ua77f":"g","\u24d7":"h","\uff48":"h","\u0125":"h","\u1e23":"h","\u1e27":"h","\u021f":"h","\u1e25":"h","\u1e29":"h","\u1e2b":"h","\u1e96":"h","\u0127":"h","\u2c68":"h","\u2c76":"h","\u0265":"h","\u0195":"hv","\u24d8":"i","\uff49":"i","\xec":"i","\xed":"i","\xee":"i","\u0129":"i","\u012b":"i","\u012d":"i","\xef":"i","\u1e2f":"i","\u1ec9":"i","\u01d0":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u012f":"i","\u1e2d":"i","\u0268":"i","\u0131":"i","\u24d9":"j","\uff4a":"j","\u0135":"j","\u01f0":"j","\u0249":"j","\u24da":"k","\uff4b":"k","\u1e31":"k","\u01e9":"k","\u1e33":"k","\u0137":"k","\u1e35":"k","\u0199":"k","\u2c6a":"k","\ua741":"k","\ua743":"k","\ua745":"k","\ua7a3":"k","\u24db":"l","\uff4c":"l","\u0140":"l","\u013a":"l","\u013e":"l","\u1e37":"l","\u1e39":"l","\u013c":"l","\u1e3d":"l","\u1e3b":"l","\u017f":"l","\u0142":"l","\u019a":"l","\u026b":"l","\u2c61":"l","\ua749":"l","\ua781":"l","\ua747":"l","\u01c9":"lj","\u24dc":"m","\uff4d":"m","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u026f":"m","\u24dd":"n","\uff4e":"n","\u01f9":"n","\u0144":"n","\xf1":"n","\u1e45":"n","\u0148":"n","\u1e47":"n","\u0146":"n","\u1e4b":"n","\u1e49":"n","\u019e":"n","\u0272":"n","\u0149":"n","\ua791":"n","\ua7a5":"n","\u01cc":"nj","\u24de":"o","\uff4f":"o","\xf2":"o","\xf3":"o","\xf4":"o","\u1ed3":"o","\u1ed1":"o","\u1ed7":"o","\u1ed5":"o","\xf5":"o","\u1e4d":"o","\u022d":"o","\u1e4f":"o","\u014d":"o","\u1e51":"o","\u1e53":"o","\u014f":"o","\u022f":"o","\u0231":"o","\xf6":"o","\u022b":"o","\u1ecf":"o","\u0151":"o","\u01d2":"o","\u020d":"o","\u020f":"o","\u01a1":"o","\u1edd":"o","\u1edb":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\u0254":"o","\ua74b":"o","\ua74d":"o","\u0275":"o","\u01a3":"oi","\u0223":"ou","\ua74f":"oo","\u24df":"p","\uff50":"p","\u1e55":"p","\u1e57":"p","\u01a5":"p","\u1d7d":"p","\ua751":"p","\ua753":"p","\ua755":"p","\u24e0":"q","\uff51":"q","\u024b":"q","\ua757":"q","\ua759":"q","\u24e1":"r","\uff52":"r","\u0155":"r","\u1e59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u0157":"r","\u1e5f":"r","\u024d":"r","\u027d":"r","\ua75b":"r","\ua7a7":"r","\ua783":"r","\u24e2":"s","\uff53":"s","\xdf":"s","\u015b":"s","\u1e65":"s","\u015d":"s","\u1e61":"s","\u0161":"s","\u1e67":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u015f":"s","\u023f":"s","\ua7a9":"s","\ua785":"s","\u1e9b":"s","\u24e3":"t","\uff54":"t","\u1e6b":"t","\u1e97":"t","\u0165":"t","\u1e6d":"t","\u021b":"t","\u0163":"t","\u1e71":"t","\u1e6f":"t","\u0167":"t","\u01ad":"t","\u0288":"t","\u2c66":"t","\ua787":"t","\ua729":"tz","\u24e4":"u","\uff55":"u","\xf9":"u","\xfa":"u","\xfb":"u","\u0169":"u","\u1e79":"u","\u016b":"u","\u1e7b":"u","\u016d":"u","\xfc":"u","\u01dc":"u","\u01d8":"u","\u01d6":"u","\u01da":"u","\u1ee7":"u","\u016f":"u","\u0171":"u","\u01d4":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1eeb":"u","\u1ee9":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u0173":"u","\u1e77":"u","\u1e75":"u","\u0289":"u","\u24e5":"v","\uff56":"v","\u1e7d":"v","\u1e7f":"v","\u028b":"v","\ua75f":"v","\u028c":"v","\ua761":"vy","\u24e6":"w","\uff57":"w","\u1e81":"w","\u1e83":"w","\u0175":"w","\u1e87":"w","\u1e85":"w","\u1e98":"w","\u1e89":"w","\u2c73":"w","\u24e7":"x","\uff58":"x","\u1e8b":"x","\u1e8d":"x","\u24e8":"y","\uff59":"y","\u1ef3":"y","\xfd":"y","\u0177":"y","\u1ef9":"y","\u0233":"y","\u1e8f":"y","\xff":"y","\u1ef7":"y","\u1e99":"y","\u1ef5":"y","\u01b4":"y","\u024f":"y","\u1eff":"y","\u24e9":"z","\uff5a":"z","\u017a":"z","\u1e91":"z","\u017c":"z","\u017e":"z","\u1e93":"z","\u1e95":"z","\u01b6":"z","\u0225":"z","\u0240":"z","\u2c6c":"z","\ua763":"z","\u0386":"\u0391","\u0388":"\u0395","\u0389":"\u0397","\u038a":"\u0399","\u03aa":"\u0399","\u038c":"\u039f","\u038e":"\u03a5","\u03ab":"\u03a5","\u038f":"\u03a9","\u03ac":"\u03b1","\u03ad":"\u03b5","\u03ae":"\u03b7","\u03af":"\u03b9","\u03ca":"\u03b9","\u0390":"\u03b9","\u03cc":"\u03bf","\u03cd":"\u03c5","\u03cb":"\u03c5","\u03b0":"\u03c5","\u03c9":"\u03c9","\u03c2":"\u03c3"};function jt(t){return t.replace(/[^\u0000-\u007E]/g,t=>Bt[t]||t)}class Vt{constructor(t,e){this._ngSelect=t,this._selectionModel=e,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let t=this.selectedItems.length-1;for(;t>=0;t--){let e=this.selectedItems[t];if(!e.disabled)return e}return null}setItems(t){this._items=t.map((t,e)=>this.mapItem(t,e)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(t){if(t.selected||this.maxItemsSelected)return;const e=this._ngSelect.multiple;e||this.clearSelected(),this._selectionModel.select(t,e,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(t)}unselect(t){t.selected&&(this._selectionModel.unselect(t,this._ngSelect.multiple),this._ngSelect.hideSelected&&wt(t.index)&&this._ngSelect.multiple&&this._showSelected(t))}findItem(t){let e;return e=this._ngSelect.compareWith?e=>this._ngSelect.compareWith(e.value,t):this._ngSelect.bindValue?e=>!e.children&&this.resolveNested(e.value,this._ngSelect.bindValue)===t:e=>e.value===t||!e.children&&e.label&&e.label===this.resolveNested(t,this._ngSelect.bindLabel),this._items.find(t=>e(t))}addItem(t){const e=this.mapItem(t,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(t=!1){this._selectionModel.clear(t),this._items.forEach(e=>{e.selected=t&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(t){return t=jt(t).toLocaleLowerCase(),this.filteredItems.find(e=>jt(e.label).toLocaleLowerCase().substr(0,t.length)===t)}filter(t){if(!t)return void this.resetFilteredItems();this._filteredItems=[],t=this._ngSelect.searchFn?t:jt(t).toLocaleLowerCase();const e=this._ngSelect.searchFn||this._defaultSearchFn,n=this._ngSelect.hideSelected;for(const s of Array.from(this._groups.keys())){const i=[];for(const r of this._groups.get(s))n&&(r.parent&&r.parent.selected||r.selected)||e(t,this._ngSelect.searchFn?r.value:r)&&i.push(r);if(i.length>0){const[t]=i.slice(-1);if(t.parent){const e=this._items.find(e=>e===t.parent);this._filteredItems.push(e)}this._filteredItems.push(...i)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(t=>!t.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(t){this._markedIndex=this._filteredItems.indexOf(t)}markSelectedOrDefault(t){if(0===this._filteredItems.length)return;const e=this._getLastMarkedIndex();this._markedIndex=e>-1?e:t?this.filteredItems.findIndex(t=>!t.disabled):-1}resolveNested(t,e){if(!St(t))return t;if(-1===e.indexOf("."))return t[e];{let n=e.split("."),s=t;for(let t=0,e=n.length;t<e;++t){if(null==s)return null;s=s[n[t]]}return s}}mapItem(t,e){const n=wt(t.$ngOptionLabel)?t.$ngOptionLabel:this.resolveNested(t,this._ngSelect.bindLabel),s=wt(t.$ngOptionValue)?t.$ngOptionValue:t;return{index:e,label:wt(n)?n.toString():"",value:s,disabled:t.disabled,htmlId:`${this._ngSelect.dropdownId}-${e}`}}mapSelectedItems(){const t=this._ngSelect.multiple;for(const e of this.selectedItems){const n=this._ngSelect.bindValue?this.resolveNested(e.value,this._ngSelect.bindValue):e.value,s=wt(n)?this.findItem(n):null;this._selectionModel.unselect(e,t),this._selectionModel.select(s||e,t,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(t=>-1===this.selectedItems.indexOf(t)))}_showSelected(t){if(this._filteredItems.push(t),t.parent){const e=t.parent;this._filteredItems.find(t=>t===e)||this._filteredItems.push(e)}else if(t.children)for(const e of t.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((t,e)=>t.index-e.index)]}_hideSelected(t){this._filteredItems=this._filteredItems.filter(e=>e!==t),t.parent?t.parent.children.every(t=>t.selected)&&(this._filteredItems=this._filteredItems.filter(e=>e!==t.parent)):t.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==t))}_defaultSearchFn(t,e){return jt(e.label).toLocaleLowerCase().indexOf(t)>-1}_getNextItemIndex(t){return t>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(t){0===this._filteredItems.length||this._filteredItems.every(t=>t.disabled)||(this._markedIndex=this._getNextItemIndex(t),this.markedItem.disabled&&this._stepToItem(t))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected)return-1;if(this._markedIndex>-1&&void 0===this.markedItem)return-1;const t=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&t<0?-1:Math.max(this.markedIndex,t)}_groupBy(t,e){const n=new Map;if(0===t.length)return n;if(Array.isArray(t[0].value[e])){for(const s of t){const t=(s.value[e]||[]).map((t,e)=>this.mapItem(t,e));n.set(s,t)}return n}const s=Tt(this._ngSelect.groupBy),i=t=>{let n=s?e(t.value):t.value[e];return wt(n)?n:void 0};for(const r of t){let t=i(r);const e=n.get(t);e?e.push(r):n.set(t,[r])}return n}_flatten(t){const e=Tt(this._ngSelect.groupBy),n=[];for(const s of Array.from(t.keys())){let i=n.length;if(void 0===s){const e=t.get(void 0)||[];n.push(...e.map(t=>(t.index=i++,t)));continue}const r=St(s),o={label:r?"":String(s),children:void 0,parent:null,index:i++,disabled:!this._ngSelect.selectableGroup,htmlId:Ft()},a=e?this._ngSelect.bindLabel:this._ngSelect.groupBy,l=this._ngSelect.groupValue||(()=>r?s.value:{[a]:s}),c=t.get(s).map(t=>(t.parent=o,t.children=void 0,t.index=i++,t));o.children=c,o.value=l(s,c.map(t=>t.value)),n.push(o),n.push(...c)}return n}}var zt=(()=>(function(t){t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Esc=27]="Esc",t[t.Space=32]="Space",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowDown=40]="ArrowDown",t[t.Backspace=8]="Backspace"}(zt||(zt={})),zt))();let Ht=(()=>{class t{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(t,e,n){const s=this._dimensions,i=s.itemHeight*e,r=Math.max(0,t)/i*e;let o=Math.min(e,Math.ceil(r)+(s.itemsPerViewport+1));const a=Math.max(0,o-s.itemsPerViewport);let l=Math.min(a,Math.floor(r)),c=s.itemHeight*Math.ceil(l)-s.itemHeight*Math.min(l,n);return c=isNaN(c)?0:c,l=isNaN(l)?-1:l,o=isNaN(o)?-1:o,l-=n,l=Math.max(0,l),o+=n,o=Math.min(e,o),{topPadding:c,scrollHeight:i,start:l,end:o}}setDimensions(t,e){const n=Math.max(1,Math.floor(e/t));this._dimensions={itemHeight:t,panelHeight:e,itemsPerViewport:n}}getScrollTo(t,e,n){const{panelHeight:s}=this.dimensions,i=t+e,r=n+s;return s>=i&&n===t?null:i>r?n+i-r:t<=n?t:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Ut="ng-select-top",Zt="ng-select-bottom",qt="undefined"!=typeof requestAnimationFrame?b:E;let Gt=(()=>{class t{constructor(t,e,n,i,r){this._renderer=t,this._zone=e,this._panelService=n,this._document=r,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new s.vpe,this.scroll=new s.vpe,this.scrollToEnd=new s.vpe,this.outsideClick=new s.vpe,this._destroy$=new D.xQ,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=i.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(t){t!==this._itemsLength&&(this._itemsLength=t,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:t,panelHeight:e}=this._panelService.dimensions,n=this.markedItem.index*t;return e>n?0:n}return 0}handleMousedown(t){"INPUT"!==t.target.tagName&&t.preventDefault()}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown()}ngOnChanges(t){if(t.items){const e=t.items;this._onItemsChange(e.currentValue,e.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(t,e=!1){if(!t)return;const n=this.items.indexOf(t);if(n<0||n>=this.itemsLength)return;let s;if(this.virtualScroll){const t=this._panelService.dimensions.itemHeight;s=this._panelService.getScrollTo(n*t,t,this._lastScrollPosition)}else{const n=this._dropdown.querySelector(`#${t.htmlId}`);s=this._panelService.getScrollTo(n.offsetTop,n.clientHeight,e?n.offsetTop:this._lastScrollPosition)}wt(s)&&(this._scrollablePanel.scrollTop=s)}scrollToTag(){const t=this._scrollablePanel;t.scrollTop=t.scrollHeight-t.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),"top"===this._currentPosition?(this._renderer.addClass(this._dropdown,Ut),this._renderer.removeClass(this._dropdown,Zt),this._renderer.addClass(this._select,Ut),this._renderer.removeClass(this._select,Zt)):(this._renderer.addClass(this._dropdown,Zt),this._renderer.removeClass(this._dropdown,Ut),this._renderer.addClass(this._select,Zt),this._renderer.removeClass(this._select,Ut)),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_handleScroll(){this._zone.runOutsideAngular(()=>{O(this.scrollElementRef.nativeElement,"scroll").pipe(o(this._destroy$),function(t,e=c.P){return n=()=>(0,d.H)(t,e),function(t){return t.lift(new u(n))};var n}(0,qt)).subscribe(t=>{const e=t.path||t.composedPath&&t.composedPath();this._onContentScrolled(e&&0!==e.length?e[0].scrollTop:t.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,L.T)(O(this._document,"touchstart",{capture:!0}),O(this._document,"mousedown",{capture:!0})).pipe(o(this._destroy$)).subscribe(t=>this._checkToClose(t))})}_checkToClose(t){if(this._select.contains(t.target)||this._dropdown.contains(t.target))return;const e=t.path||t.composedPath&&t.composedPath();t.target&&t.target.shadowRoot&&e&&e[0]&&this._select.contains(e[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(t,e){this.items=t||[],this._scrollToEndFired=!1,this.itemsLength=t.length,this.virtualScroll?this._updateItemsRange(e):(this._setVirtualHeight(),this._updateItems(e))}_updateItems(t){this.update.emit(this.items),!1!==t&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,t)})})}_updateItemsRange(t){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{t?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(t){this.virtualScroll&&this._renderItemsRange(t),this._lastScrollPosition=t,this._fireScrollToEnd(t)}_updateVirtualHeight(t){this._updateScrollHeight&&(this._virtualPadding.style.height=`${t}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(t=null){if(t&&this._lastScrollPosition===t)return;const e=this._panelService.calculateItems(t=t||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(e.scrollHeight),this._contentPanel.style.transform=`translateY(${e.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(e.start,e.end)),this.scroll.emit({start:e.start,end:e.end})}),wt(t)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=t,this._lastScrollPosition=t)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[t]=this.items;return this.update.emit([t]),Promise.resolve().then(()=>{const e=this._dropdown.querySelector(`#${t.htmlId}`).clientHeight;return this._virtualPadding.style.height=e*this.itemsLength+"px",this._panelService.setDimensions(e,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(t){this._scrollToEndFired||0===t||t+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(t){if("auto"!==this.position)return this.position;const e=this._select.getBoundingClientRect(),n=document.documentElement.scrollTop||document.body.scrollTop;return e.top+window.pageYOffset+e.height+t.getBoundingClientRect().height>n+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const t=this._select.getBoundingClientRect(),e=this._parent.getBoundingClientRect();this._dropdown.style.left=t.left-e.left+"px",this._dropdown.style.width=t.width+"px",this._dropdown.style.minWidth=t.width+"px"}_updateYPosition(){const t=this._select.getBoundingClientRect(),e=this._parent.getBoundingClientRect(),n=t.height;"top"===this._currentPosition?(this._dropdown.style.bottom=e.bottom-t.bottom+n+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=t.top-e.top+n+"px",this._dropdown.style.bottom="auto")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Qsj),s.Y36(s.R0b),s.Y36(Ht),s.Y36(s.SBq),s.Y36(N.K0,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-dropdown-panel"]],viewQuery:function(t,e){if(1&t&&(s.Gf(M,7,s.SBq),s.Gf(R,7,s.SBq),s.Gf(F,7,s.SBq)),2&t){let t;s.iGM(t=s.CRH())&&(e.contentElementRef=t.first),s.iGM(t=s.CRH())&&(e.scrollElementRef=t.first),s.iGM(t=s.CRH())&&(e.paddingElementRef=t.first)}},hostBindings:function(t,e){1&t&&s.NdJ("mousedown",function(t){return e.handleMousedown(t)})},inputs:{items:"items",position:"position",virtualScroll:"virtualScroll",filterValue:"filterValue",markedItem:"markedItem",appendTo:"appendTo",bufferAmount:"bufferAmount",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[s.TTD],ngContentSelectors:z,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],[1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(t,e){1&t&&(s.F$t(),s.YNc(0,j,2,4,"div",0),s.TgZ(1,"div",1,2),s._UZ(3,"div",null,3),s.TgZ(5,"div",null,4),s.Hsn(7),s.qZA(),s.qZA(),s.YNc(8,V,2,4,"div",5)),2&t&&(s.Q6J("ngIf",e.headerTemplate),s.xp6(3),s.ekj("total-padding",e.virtualScroll),s.xp6(2),s.ekj("scrollable-content",e.virtualScroll&&e.items.length),s.xp6(3),s.Q6J("ngIf",e.footerTemplate))},directives:[N.O5,N.tP],encapsulation:2,changeDetection:0}),t})(),Yt=(()=>{class t{constructor(t){this.elementRef=t,this.stateChange$=new D.xQ,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=this._isDisabled(t)}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(t){t.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(t){return null!=t&&"false"!=`${t}`}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-option"]],inputs:{disabled:"disabled",value:"value"},features:[s.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(t,e){1&t&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),t})(),$t=(()=>{class t{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Wt=new s.OlP("ng-select-selection-model");let Qt=(()=>{class t{constructor(t,e,n,i,r,o,a){this.classes=t,this.autoFocus=e,this._cd=o,this._console=a,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=t=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new s.vpe,this.focusEvent=new s.vpe,this.changeEvent=new s.vpe,this.openEvent=new s.vpe,this.closeEvent=new s.vpe,this.searchEvent=new s.vpe,this.clearEvent=new s.vpe,this.addEvent=new s.vpe,this.removeEvent=new s.vpe,this.scroll=new s.vpe,this.scrollToEnd=new s.vpe,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=Ft(),this.escapeHTML=!0,this.useDefaultClass=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new D.xQ,this._keyPress$=new D.xQ,this._onChange=t=>{},this._onTouched=()=>{},this.clearItem=t=>{const e=this.selectedItems.find(e=>e.value===t);this.unselect(e)},this.trackByOption=(t,e)=>this.trackByFn?this.trackByFn(e.value):e,this._mergeGlobalConfig(n),this.itemsList=new Vt(this,i()),this.element=r.nativeElement}get items(){return this._items}set items(t){this._itemsAreUsed=!0,this._items=t}get compareWith(){return this._compareWith}set compareWith(t){if(null!=t&&!Tt(t))throw Error("`compareWith` must be a function.");this._compareWith=t}get clearSearchOnAdd(){return wt(this._clearSearchOnAdd)?this._clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(t){this._clearSearchOnAdd=t}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(t=>t.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(t){t.multiple&&this.itemsList.clearSelected(),t.items&&this._setItems(t.items.currentValue||[]),t.isOpen&&(this._manualOpen=wt(t.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),wt(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(t){if(zt[t.which]){if(!1===this.keyDownFn(t))return;this.handleKeyCode(t)}else t.key&&1===t.key.length&&this._keyPress$.next(t.key.toLocaleLowerCase())}handleKeyCode(t){switch(t.which){case zt.ArrowDown:this._handleArrowDown(t);break;case zt.ArrowUp:this._handleArrowUp(t);break;case zt.Space:this._handleSpace(t);break;case zt.Enter:this._handleEnter(t);break;case zt.Tab:this._handleTab(t);break;case zt.Esc:this.close(),t.preventDefault();break;case zt.Backspace:this._handleBackspace()}}handleMousedown(t){const e=t.target;"INPUT"!==e.tagName&&t.preventDefault(),e.classList.contains("ng-clear-wrapper")?this.handleClearClick():e.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():e.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(t){this.itemsList.clearSelected(),this._handleWriteValue(t),this._cd.markForCheck()}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._disabled=t,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this.itemsList.maxItemsSelected||this._manualOpen||(this._isTypeahead||this.addTag||!this.itemsList.noItemsToSelect)&&(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){this.isOpen&&!this._manualOpen&&(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(t){!t||t.disabled||this.disabled||(this.multiple&&t.selected?this.unselect(t):this.select(t),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(t){t.selected||(this.itemsList.select(t),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(t.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(t){t&&(this.itemsList.unselect(t),this.focus(),this._updateNgModel(),this.removeEvent.emit(t))}selectTag(){let t;t=Tt(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const e=t=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(t,null):this.itemsList.addItem(t);t instanceof Promise?t.then(t=>this.select(e(t))).catch(()=>{}):t&&this.select(e(t))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}get showAddTag(){if(!this._validTerm)return!1;const t=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(e=>e.label.toLowerCase()===t)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(e=>e.label.toLowerCase()===t))&&!this.loading}showNoItemsFound(){const t=0===this.itemsList.filteredItems.length;return(t&&!this._isTypeahead&&!this.loading||t&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(t){this._isComposing=!1,this.searchWhileComposing||this.filter(t)}filter(t){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=t,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(t),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:t,items:this.itemsList.filteredItems.map(t=>t.value)}),this.open())}onInputFocus(t){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(t),this.focused=!0)}onInputBlur(t){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(t),this.isOpen||this.disabled||this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(t){t.disabled||this.itemsList.markItem(t)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const t=this.selectedItems&&this.selectedItems[0];this.searchTerm=t&&t.label||null}_setItems(t){const e=t[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=wt(e)?!St(e):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(t),t.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&wt(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const t=t=>{this.items=t.map(t=>({$ngOptionValue:t.value,$ngOptionLabel:t.elementRef.nativeElement.innerHTML,disabled:t.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},e=()=>{const t=(0,L.T)(this.ngOptions.changes,this._destroy$);(0,L.T)(...this.ngOptions.map(t=>t.stateChange$)).pipe(o(t)).subscribe(t=>{const e=this.itemsList.findItem(t.value);e.disabled=t.disabled,e.label=t.label||e.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,p.O)(this.ngOptions),o(this._destroy$)).subscribe(n=>{this.bindLabel=this._defaultLabel,t(n),e()})}_isValidWriteValue(t){if(!wt(t)||this.multiple&&""===t||Array.isArray(t)&&0===t.length)return!1;const e=t=>!(!wt(this.compareWith)&&St(t)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(t)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(t)?t.every(t=>e(t)):(this._console.warn("Multiple select ngModel should be array."),!1):e(t)}_handleWriteValue(t){if(!this._isValidWriteValue(t))return;const e=t=>{let e=this.itemsList.findItem(t);if(e)this.itemsList.select(e);else{const n=St(t),s=!n&&!this.bindValue;n||s?this.itemsList.select(this.itemsList.mapItem(t,null)):this.bindValue&&(e={[this.bindLabel]:null,[this.bindValue]:t},this.itemsList.select(this.itemsList.mapItem(e,null)))}};this.multiple?t.forEach(t=>e(t)):e(t)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(o(this._destroy$),(0,f.b)(t=>this._pressedKeys.push(t)),(0,g.b)(200),(0,m.h)(()=>this._pressedKeys.length>0),(0,y.U)(()=>this._pressedKeys.join(""))).subscribe(t=>{const e=this.itemsList.findByLabel(t);e&&(this.isOpen?(this.itemsList.markItem(e),this._scrollToMarked(),this._cd.markForCheck()):this.select(e)),this._pressedKeys=[]})}_setInputAttributes(){const t=this.searchInput.nativeElement,e=Object.assign({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(const n of Object.keys(e))t.setAttribute(n,e[n])}_updateNgModel(){const t=[];for(const n of this.selectedItems)if(this.bindValue){let e=null;e=n.children?n.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(n.value,this.bindValue),t.push(e)}else t.push(n.value);const e=this.selectedItems.map(t=>t.value);this.multiple?(this._onChange(t),this.changeEvent.emit(e)):(this._onChange(wt(t[0])?t[0]:null),this.changeEvent.emit(e[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(t){this.searchTerm=t,this._isTypeahead&&this.typeahead.next(t)}_scrollToMarked(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.multiple&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(t){(!1!==this.isOpen||this.addTag)&&(this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),t.preventDefault()):this.showAddTag?(this.selectTag(),t.preventDefault()):this.close():this.close())}_handleEnter(t){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}t.preventDefault()}_handleSpace(t){this.isOpen||this._manualOpen||(this.open(),t.preventDefault())}_handleArrowDown(t){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),t.preventDefault()}_handleArrowUp(t){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),t.preventDefault())}_nextItemIsTag(t){const e=this.itemsList.markedIndex+t;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(e<0||e===this.itemsList.filteredItems.length)}_handleBackspace(){!this.searchTerm&&this.clearable&&this.clearOnBackspace&&this.hasValue&&(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const t=this.searchTerm&&this.searchTerm.trim();return t&&t.length>=this.minTermLength}_mergeGlobalConfig(t){this.placeholder=this.placeholder||t.placeholder,this.notFoundText=this.notFoundText||t.notFoundText,this.typeToSearchText=this.typeToSearchText||t.typeToSearchText,this.addTagText=this.addTagText||t.addTagText,this.loadingText=this.loadingText||t.loadingText,this.clearAllText=this.clearAllText||t.clearAllText,this.virtualScroll=wt(this.virtualScroll)?this.virtualScroll:!!wt(t.disableVirtualScroll)&&!t.disableVirtualScroll,this.openOnEnter=wt(this.openOnEnter)?this.openOnEnter:t.openOnEnter,this.appendTo=this.appendTo||t.appendTo,this.bindValue=this.bindValue||t.bindValue,this.bindLabel=this.bindLabel||t.bindLabel,this.appearance=this.appearance||t.appearance}}return t.\u0275fac=function(e){return new(e||t)(s.$8M("class"),s.$8M("autofocus"),s.Y36($t),s.Y36(Wt),s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Rt))},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-select"]],contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,xt,5,s.Rgc),s.Suo(n,Et,5,s.Rgc),s.Suo(n,kt,5,s.Rgc),s.Suo(n,At,5,s.Rgc),s.Suo(n,It,5,s.Rgc),s.Suo(n,Ot,5,s.Rgc),s.Suo(n,Pt,5,s.Rgc),s.Suo(n,Dt,5,s.Rgc),s.Suo(n,Lt,5,s.Rgc),s.Suo(n,Nt,5,s.Rgc),s.Suo(n,Mt,5,s.Rgc),s.Suo(n,Yt,5)),2&t){let t;s.iGM(t=s.CRH())&&(e.optionTemplate=t.first),s.iGM(t=s.CRH())&&(e.optgroupTemplate=t.first),s.iGM(t=s.CRH())&&(e.labelTemplate=t.first),s.iGM(t=s.CRH())&&(e.multiLabelTemplate=t.first),s.iGM(t=s.CRH())&&(e.headerTemplate=t.first),s.iGM(t=s.CRH())&&(e.footerTemplate=t.first),s.iGM(t=s.CRH())&&(e.notFoundTemplate=t.first),s.iGM(t=s.CRH())&&(e.typeToSearchTemplate=t.first),s.iGM(t=s.CRH())&&(e.loadingTextTemplate=t.first),s.iGM(t=s.CRH())&&(e.tagTemplate=t.first),s.iGM(t=s.CRH())&&(e.loadingSpinnerTemplate=t.first),s.iGM(t=s.CRH())&&(e.ngOptions=t)}},viewQuery:function(t,e){if(1&t&&(s.Gf(Gt,5),s.Gf(H,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.dropdownPanel=t.first),s.iGM(t=s.CRH())&&(e.searchInput=t.first)}},hostVars:20,hostBindings:function(t,e){1&t&&s.NdJ("keydown",function(t){return e.handleKeyDown(t)}),2&t&&s.ekj("ng-select",e.useDefaultClass)("ng-select-single",!e.multiple)("ng-select-multiple",e.multiple)("ng-select-taggable",e.addTag)("ng-select-searchable",e.searchable)("ng-select-clearable",e.clearable)("ng-select-opened",e.isOpen)("ng-select-disabled",e.disabled)("ng-select-filtered",e.filtered)("ng-select-typeahead",e.typeahead)},inputs:{markFirst:"markFirst",dropdownPosition:"dropdownPosition",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",bufferAmount:"bufferAmount",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",bindLabel:"bindLabel",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",virtualScroll:"virtualScroll",openOnEnter:"openOnEnter",appendTo:"appendTo",bindValue:"bindValue",appearance:"appearance",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",tabIndex:"tabIndex",typeahead:"typeahead"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[s._Bn([{provide:i.JU,useExisting:(0,s.Gpc)(()=>t),multi:!0},Ht]),s.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],[1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",0),s.NdJ("mousedown",function(t){return e.handleMousedown(t)}),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s._uU(3),s.qZA(),s.YNc(4,Y,2,2,"ng-container",3),s.YNc(5,Q,1,5,void 0,3),s.TgZ(6,"div",4),s.TgZ(7,"input",5,6),s.NdJ("input",function(){s.CHM(t);const n=s.MAs(8);return e.filter(n.value)})("compositionstart",function(){return e.onCompositionStart()})("compositionend",function(){s.CHM(t);const n=s.MAs(8);return e.onCompositionEnd(n.value)})("focus",function(t){return e.onInputFocus(t)})("blur",function(t){return e.onInputBlur(t)})("change",function(t){return t.stopPropagation()}),s.qZA(),s.qZA(),s.qZA(),s.YNc(9,X,4,1,"ng-container",3),s.YNc(10,tt,3,1,"span",7),s.TgZ(11,"span",8),s._UZ(12,"span",9),s.qZA(),s.qZA(),s.YNc(13,yt,7,19,"ng-dropdown-panel",10)}2&t&&(s.ekj("ng-appearance-outline","outline"===e.appearance)("ng-has-value",e.hasValue),s.xp6(3),s.Oqu(e.placeholder),s.xp6(1),s.Q6J("ngIf",(!e.multiLabelTemplate||!e.multiple)&&e.selectedItems.length>0),s.xp6(1),s.Q6J("ngIf",e.multiple&&e.multiLabelTemplate&&e.selectedValues.length>0),s.xp6(1),s.uIk("aria-expanded",e.isOpen)("aria-owns",e.isOpen?e.dropdownId:null),s.xp6(1),s.Q6J("readOnly",!e.searchable||e.itemsList.maxItemsSelected)("disabled",e.disabled)("value",e.searchTerm?e.searchTerm:""),s.uIk("id",e.labelForId)("tabindex",e.tabIndex)("aria-activedescendant",e.isOpen?null==e.itemsList||null==e.itemsList.markedItem?null:e.itemsList.markedItem.htmlId:null)("aria-controls",e.isOpen?e.dropdownId:null),s.xp6(2),s.Q6J("ngIf",e.loading),s.xp6(1),s.Q6J("ngIf",e.showClear()),s.xp6(3),s.Q6J("ngIf",e.isOpen))},directives:[N.O5,N.sg,N.tP,Ct,Gt,N.mk],styles:['.ng-select{position:relative;display:block}.ng-select,.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border:2px solid rgba(66,66,66,.2);border-left-color:#424242;transform:translateZ(0);-webkit-animation:load8 .8s linear infinite;animation:load8 .8s linear infinite}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes load8{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}'],encapsulation:2,changeDetection:0}),t})();class Jt{constructor(){this._selected=[]}get value(){return this._selected}select(t,e,n){if(t.selected=!0,(!t.children||!e&&n)&&this._selected.push(t),e)if(t.parent){const e=t.parent.children.length,n=t.parent.children.filter(t=>t.selected).length;t.parent.selected=e===n}else t.children&&(this._setChildrenSelectedState(t.children,!0),this._removeChildren(t),this._selected=n&&this._activeChildren(t)?[...this._selected.filter(e=>e.parent!==t),t]:[...this._selected,...t.children.filter(t=>!t.disabled)])}unselect(t,e){if(this._selected=this._selected.filter(e=>e!==t),t.selected=!1,e)if(t.parent&&t.parent.selected){const e=t.parent.children;this._removeParent(t.parent),this._removeChildren(t.parent),this._selected.push(...e.filter(e=>e!==t&&!e.disabled)),t.parent.selected=!1}else t.children&&(this._setChildrenSelectedState(t.children,!1),this._removeChildren(t))}clear(t){this._selected=t?this._selected.filter(t=>t.disabled):[]}_setChildrenSelectedState(t,e){for(const n of t)n.disabled||(n.selected=e)}_removeChildren(t){this._selected=[...this._selected.filter(e=>e.parent!==t),...t.children.filter(e=>e.parent===t&&e.disabled&&e.selected)]}_removeParent(t){this._selected=this._selected.filter(e=>e!==t)}_activeChildren(t){return t.children.every(t=>!t.disabled||t.selected)}}const Kt=function(){return new Jt};let Xt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:Wt,useValue:Kt}],imports:[[N.ez]]}),t})()},9988:(t,e,n)=>{"use strict";function s(t,e,n,s){var i,r=arguments.length,o=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,s);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(r<3?i(o):r>3?i(e,n,o):i(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o}function i(t,e){return function(n,s){e(n,s,t)}}function r(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}n.d(e,{Nv:()=>B,sS:()=>j,dL:()=>F});var o=n(3018),a=n(8583),l=n(9765),c=n(5917),u=n(8634),h=n(739),d=n(7574),p=n(6465),f=n(6102);const g=new class extends f.v{}(class extends p.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}});var m=n(5319),y=n(7393),v=n(9193),_=n(205);class b{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return(0,c.of)(this.value);case"E":return(0,_._)(this.error);case"C":return(0,v.c)()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new b("N",t):b.undefinedValueNotification}static createError(t){return new b("E",void 0,t)}static createComplete(){return b.completeNotification}}b.completeNotification=new b("C"),b.undefinedValueNotification=new b("N",void 0);class w extends y.L{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(w.dispatch,this.delay,new S(t,this.destination)))}_next(t){this.scheduleMessage(b.createNext(t))}_error(t){this.scheduleMessage(b.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(b.createComplete()),this.unsubscribe()}}class S{constructor(t,e){this.notification=t,this.destination=e}}var T=n(7971),C=n(8858);class x extends l.xQ{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new E(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,i=n.length;let r;if(this.closed)throw new T.N;if(this.isStopped||this.hasError?r=m.w.EMPTY:(this.observers.push(t),r=new C.W(this,t)),s&&t.add(t=new w(t,s)),e)for(let o=0;o<i&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<i&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),r}_getNow(){return(this.scheduler||g).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,s=this._events,i=s.length;let r=0;for(;r<i&&!(t-s[r].time<n);)r++;return i>e&&(r=Math.max(r,i-e)),r>0&&s.splice(0,r),s}}class E{constructor(t,e){this.time=t,this.value=e}}var k=n(8002),A=n(5257),I=n(3342),O=n(9761),P=n(3190);function D(t,e){if(1&t&&(o.TgZ(0,"div",3),o._UZ(1,"div",4),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Udp("width",t.diameter)("height",t.diameter)}}function L(t,e){if(1&t&&o._UZ(0,"div",5),2&t){const t=o.oxw().ngIf,e=o.oxw();o.Udp("background",e.color)("height",e.height)("width",t+"%")}}function N(t,e){if(1&t&&(o.ynx(0),o.YNc(1,D,2,4,"div",1),o.YNc(2,L,1,6,"div",2),o.BQk()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngIf",t.includeSpinner),o.xp6(1),o.Q6J("ngIf",t.includeBar)}}class M{constructor(t={}){this.config=t,this.state={action:null,value:0,initialValue:0},this.requests=null,this.disabled=!1,this.stream$=new l.xQ,this._value$=null,this.timer$=t=>{let e=(0,c.of)(t);switch(t.action){case"start":case"increment":case"set":"start"===t.action&&0===this.config.latencyThreshold&&0===t.value&&(t.value=t.initialValue),this.requests>0&&(e=(0,u.H)(this.config.latencyThreshold,250).pipe((0,k.U)(e=>Object.assign(Object.assign({},t),{value:0===e?this.state.value||t.initialValue:this._increment()}))));break;case"complete":case"stop":e=0===t.value?(0,c.of)(Object.assign({},t)):(0,u.H)(0,500).pipe((0,A.q)(2),(0,k.U)(t=>({value:0===t?100:0})))}return e.pipe((0,k.U)(t=>Object.assign(Object.assign({},t),{action:"set"})),(0,I.b)(t=>this.next(t,!1)))},this.config=Object.assign({latencyThreshold:0},t)}get value$(){return this._value$?this._value$:this._value$=this.stream$.asObservable().pipe((0,O.O)(this.state),(0,P.w)(t=>this.timer$(t)),function(t,e,n){let s;return s={bufferSize:t,windowTime:void 0,refCount:!1,scheduler:void 0},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:s}){let i,r,o=0,a=!1,l=!1;return function(c){let u;o++,!i||a?(a=!1,i=new x(t,e,s),u=i.subscribe(this),r=c.subscribe({next(t){i.next(t)},error(t){a=!0,i.error(t)},complete(){l=!0,r=void 0,i.complete()}}),l&&(r=void 0)):u=i.subscribe(this),this.add(()=>{o--,u.unsubscribe(),u=void 0,r&&!l&&n&&0===o&&(r.unsubscribe(),r=void 0,i=void 0)})}}(s))}(),(0,k.U)(t=>t.value))}start(t=2){this.disabled||this.next({action:"start",initialValue:t})}stop(){this.next({action:"stop"})}complete(){this.next({action:"complete"})}disable(){this.disabled=!0}set(t){this.next({action:"set",value:t})}increment(t=0){this.next({action:"increment",value:t})}next(t,e=!0){switch(t.action){case"start":this.requests=(this.requests||0)+1;break;case"complete":if(this.requests=(this.requests||1)-1,this.requests>0)return;break;case"stop":this.requests=0;break;case"increment":t.value=this._increment(t.value)}this.state=Object.assign(Object.assign(Object.assign({},this.state),{action:null}),t),e&&this.stream$.next(this.state)}_increment(t=0){const e=this.state.value;return e>=99&&(t=0),0===t&&(t=e>=0&&e<25?3*Math.random()+3:e>=25&&e<65?3*Math.random():e>=65&&e<90?2*Math.random():e>=90&&e<99?.5:0),t+e}}const R=new o.OlP("LOADING_BAR_CONFIG");let F=(()=>{let t=class{constructor(t,e={},n){this.platformId=t,this.config=e,this.zone=n,this.refs={},this.streams$=new l.xQ,this.value$=this.streams$.asObservable().pipe((0,O.O)(null),(0,P.w)(()=>(0,h.aj)(...Object.keys(this.refs).map(t=>this.refs[t].value$))),function(t){return t?e=>new d.y(n=>e.subscribe(e=>t.run(()=>n.next(e)),e=>t.run(()=>n.error(e)),()=>t.run(()=>n.complete()))):t=>t}(this.zone),(0,k.U)(t=>Math.max(0,...t)))}get progress$(){return this.value$}start(t=2){this.useRef().start(t)}set(t){this.useRef().set(t)}increment(t){this.useRef().increment(t)}complete(){this.useRef().complete()}stop(){this.useRef().stop()}useRef(t="default"){return this.refs[t]||(this.refs[t]=new M(this.config),this.streams$.next(),(0,a.NF)(this.platformId)||this.refs[t].disable()),this.refs[t]}};return t.\u0275fac=function(e){return new(e||t)(o.LFG(o.Lbi),o.LFG(R,8),o.LFG(o.R0b,8))},t.\u0275prov=(0,o.Yz7)({factory:function(){return new t((0,o.LFG)(o.Lbi),(0,o.LFG)(R,8),(0,o.LFG)(o.R0b,8))},token:t,providedIn:"root"}),t=s([i(0,(0,o.tBr)(o.Lbi)),i(1,(0,o.FiY)()),i(1,(0,o.tBr)(R)),i(2,(0,o.FiY)()),r("design:paramtypes",[Object,Object,o.R0b])],t),t})(),B=(()=>{let t=class{constructor(t){this.loader=t,this.includeSpinner=!0,this.includeBar=!0,this.fixed=!0,this.color="#29d"}get value$(){return this.ref?this.loader.useRef(this.ref).value$:this.loader.value$}};return t.\u0275fac=function(e){return new(e||t)(o.Y36(F))},t.\u0275cmp=o.Xpm({type:t,selectors:[["ngx-loading-bar"]],hostVars:3,hostBindings:function(t,e){2&t&&(o.uIk("fixed",e.fixed),o.Udp("color",e.color))},inputs:{includeSpinner:"includeSpinner",includeBar:"includeBar",fixed:"fixed",color:"color",value:"value",ref:"ref",height:"height",diameter:"diameter"},decls:2,vars:3,consts:[[4,"ngIf"],["class","ngx-spinner",4,"ngIf"],["class","ngx-bar",3,"background","height","width",4,"ngIf"],[1,"ngx-spinner"],[1,"ngx-spinner-icon"],[1,"ngx-bar"]],template:function(t,e){1&t&&(o.YNc(0,N,3,2,"ng-container",0),o.ALo(1,"async")),2&t&&o.Q6J("ngIf",null!=e.value?e.value:o.lcZ(1,1,e.value$))},directives:[a.O5],pipes:[a.Ov],styles:["[_nghost-%COMP%]{position:relative;display:block;pointer-events:none}[_nghost-%COMP%]   .ngx-spinner[_ngcontent-%COMP%]{transition:350ms linear;display:block;position:absolute;top:5px;left:0}[_nghost-%COMP%]   .ngx-spinner[_ngcontent-%COMP%]   .ngx-spinner-icon[_ngcontent-%COMP%]{width:14px;height:14px;border:2px solid transparent;border-top-color:inherit;border-left-color:inherit;border-radius:50%;-webkit-animation:.4s linear infinite loading-bar-spinner;animation:.4s linear infinite loading-bar-spinner}[_nghost-%COMP%]   .ngx-bar[_ngcontent-%COMP%]{transition:width 350ms;position:absolute;top:0;left:0;width:100%;height:2px;border-bottom-right-radius:1px;border-top-right-radius:1px}[dir=rtl]   [_nghost-%COMP%]   .ngx-bar[_ngcontent-%COMP%]{right:0;left:unset}[fixed=true][_nghost-%COMP%]{z-index:10002}[fixed=true][_nghost-%COMP%]   .ngx-bar[_ngcontent-%COMP%]{position:fixed}[fixed=true][_nghost-%COMP%]   .ngx-spinner[_ngcontent-%COMP%]{position:fixed;top:10px;left:10px}[dir=rtl]   [fixed=true][_nghost-%COMP%]   .ngx-spinner[_ngcontent-%COMP%]{right:10px;left:unset}@-webkit-keyframes loading-bar-spinner{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes loading-bar-spinner{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}"],changeDetection:0}),s([(0,o.IIB)(),r("design:type",Object)],t.prototype,"includeSpinner",void 0),s([(0,o.IIB)(),r("design:type",Object)],t.prototype,"includeBar",void 0),s([(0,o.IIB)(),r("design:type",Object)],t.prototype,"fixed",void 0),s([(0,o.IIB)(),r("design:type",Object)],t.prototype,"color",void 0),s([(0,o.IIB)(),r("design:type",Number)],t.prototype,"value",void 0),s([(0,o.IIB)(),r("design:type",String)],t.prototype,"ref",void 0),s([(0,o.IIB)(),r("design:type",String)],t.prototype,"height",void 0),s([(0,o.IIB)(),r("design:type",String)],t.prototype,"diameter",void 0),t=s([r("design:paramtypes",[F])],t),t})(),j=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[a.ez]]}),t})()},7832:function(t,e,n){var s;t.exports=(s=n(1823),n(8341),n(916),n(4369),n(8822),function(){var t=s,e=t.lib.BlockCipher,n=t.algo,i=[],r=[],o=[],a=[],l=[],c=[],u=[],h=[],d=[],p=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,s=0;for(e=0;e<256;e++){var f=s^s<<1^s<<2^s<<3^s<<4;i[n]=f=f>>>8^255&f^99,r[f]=n;var g,m=t[n],y=t[m],v=t[y];o[n]=(g=257*t[f]^16843008*f)<<24|g>>>8,a[n]=g<<16|g>>>16,l[n]=g<<8|g>>>24,c[n]=g,u[f]=(g=16843009*v^65537*y^257*m^16843008*n)<<24|g>>>8,h[f]=g<<16|g>>>16,d[f]=g<<8|g>>>24,p[f]=g,n?(n=m^t[t[t[v^m]]],s^=t[t[s]]):n=s=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],g=n.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,s=4*((this._nRounds=n+6)+1),r=this._keySchedule=[],o=0;o<s;o++)o<n?r[o]=e[o]:(c=r[o-1],o%n?n>6&&o%n==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=i[(c=c<<8|c>>>24)>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=f[o/n|0]<<24),r[o]=r[o-n]^c);for(var a=this._invKeySchedule=[],l=0;l<s;l++){if(o=s-l,l%4)var c=r[o];else c=r[o-4];a[l]=l<4||o<=4?c:u[i[c>>>24]]^h[i[c>>>16&255]]^d[i[c>>>8&255]]^p[i[255&c]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,a,l,c,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,u,h,d,p,r),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,s,i,r,o,a){for(var l=this._nRounds,c=t[e]^n[0],u=t[e+1]^n[1],h=t[e+2]^n[2],d=t[e+3]^n[3],p=4,f=1;f<l;f++){var g=s[c>>>24]^i[u>>>16&255]^r[h>>>8&255]^o[255&d]^n[p++],m=s[u>>>24]^i[h>>>16&255]^r[d>>>8&255]^o[255&c]^n[p++],y=s[h>>>24]^i[d>>>16&255]^r[c>>>8&255]^o[255&u]^n[p++],v=s[d>>>24]^i[c>>>16&255]^r[u>>>8&255]^o[255&h]^n[p++];c=g,u=m,h=y,d=v}g=(a[c>>>24]<<24|a[u>>>16&255]<<16|a[h>>>8&255]<<8|a[255&d])^n[p++],m=(a[u>>>24]<<24|a[h>>>16&255]<<16|a[d>>>8&255]<<8|a[255&c])^n[p++],y=(a[h>>>24]<<24|a[d>>>16&255]<<16|a[c>>>8&255]<<8|a[255&u])^n[p++],v=(a[d>>>24]<<24|a[c>>>16&255]<<16|a[u>>>8&255]<<8|a[255&h])^n[p++],t[e]=g,t[e+1]=m,t[e+2]=y,t[e+3]=v},keySize:8});t.AES=e._createHelper(g)}(),s.AES)},8822:function(t,e,n){var s,i,r,o,a,l,c,u,h,d,p,f,g,m,y,v,_,b;t.exports=(s=n(1823),n(4369),void(s.lib.Cipher||(i=s,r=i.lib,o=r.Base,a=r.WordArray,l=r.BufferedBlockAlgorithm,c=i.enc.Base64,u=i.algo.EvpKDF,h=r.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?b:v}return function(e){return{encrypt:function(n,s,i){return t(s).encrypt(e,n,s,i)},decrypt:function(n,s,i){return t(s).decrypt(e,n,s,i)}}}}()}),r.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),d=i.mode={},p=r.BlockCipherMode=o.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),f=d.CBC=function(){var t=p.extend();function e(t,e,n){var s,i=this._iv;i?(s=i,this._iv=void 0):s=this._prevBlock;for(var r=0;r<n;r++)t[e+r]^=s[r]}return t.Encryptor=t.extend({processBlock:function(t,n){var s=this._cipher,i=s.blockSize;e.call(this,t,n,i),s.encryptBlock(t,n),this._prevBlock=t.slice(n,n+i)}}),t.Decryptor=t.extend({processBlock:function(t,n){var s=this._cipher,i=s.blockSize,r=t.slice(n,n+i);s.decryptBlock(t,n),e.call(this,t,n,i),this._prevBlock=r}}),t}(),g=(i.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,s=n-t.sigBytes%n,i=s<<24|s<<16|s<<8|s,r=[],o=0;o<s;o+=4)r.push(i);var l=a.create(r,s);t.concat(l)},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}},r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:f,padding:g}),reset:function(){var t;h.reset.call(this);var e=this.cfg,n=e.iv,s=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=s.createEncryptor:(t=s.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(s,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),m=r.CipherParams=o.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),y=(i.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;return(n?a.create([1398893684,1701076831]).concat(n).concat(e):e).toString(c)},parse:function(t){var e,n=c.parse(t),s=n.words;return 1398893684==s[0]&&1701076831==s[1]&&(e=a.create(s.slice(2,4)),s.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:e})}},v=r.SerializableCipher=o.extend({cfg:o.extend({format:y}),encrypt:function(t,e,n,s){s=this.cfg.extend(s);var i=t.createEncryptor(n,s),r=i.finalize(e),o=i.cfg;return m.create({ciphertext:r,key:n,iv:o.iv,algorithm:t,mode:o.mode,padding:o.padding,blockSize:t.blockSize,formatter:s.format})},decrypt:function(t,e,n,s){return s=this.cfg.extend(s),e=this._parse(e,s.format),t.createDecryptor(n,s).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),_=(i.kdf={}).OpenSSL={execute:function(t,e,n,s){s||(s=a.random(8));var i=u.create({keySize:e+n}).compute(t,s),r=a.create(i.words.slice(e),4*n);return i.sigBytes=4*e,m.create({key:i,iv:r,salt:s})}},b=r.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:_}),encrypt:function(t,e,n,s){var i=(s=this.cfg.extend(s)).kdf.execute(n,t.keySize,t.ivSize);s.iv=i.iv;var r=v.encrypt.call(this,t,e,i.key,s);return r.mixIn(i),r},decrypt:function(t,e,n,s){s=this.cfg.extend(s),e=this._parse(e,s.format);var i=s.kdf.execute(n,t.keySize,t.ivSize,e.salt);return s.iv=i.iv,v.decrypt.call(this,t,e,i.key,s)}}))))},1823:function(t,e,n){var s;t.exports=s=s||function(t,e){var s;if("undefined"!=typeof window&&window.crypto&&(s=window.crypto),"undefined"!=typeof self&&self.crypto&&(s=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(s=globalThis.crypto),!s&&"undefined"!=typeof window&&window.msCrypto&&(s=window.msCrypto),!s&&"undefined"!=typeof global&&global.crypto&&(s=global.crypto),!s)try{s=n(2480)}catch(m){}var i=function(){if(s){if("function"==typeof s.getRandomValues)try{return s.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"==typeof s.randomBytes)try{return s.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},r=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),o={},a=o.lib={},l=a.Base={extend:function(t){var e=r(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=l.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var e=this.words,n=t.words,s=this.sigBytes,i=t.sigBytes;if(this.clamp(),s%4)for(var r=0;r<i;r++)e[s+r>>>2]|=(n[r>>>2]>>>24-r%4*8&255)<<24-(s+r)%4*8;else for(var o=0;o<i;o+=4)e[s+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=l.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(i());return new c.init(e,t)}}),u=o.enc={},h=u.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,s=[],i=0;i<n;i++){var r=e[i>>>2]>>>24-i%4*8&255;s.push((r>>>4).toString(16)),s.push((15&r).toString(16))}return s.join("")},parse:function(t){for(var e=t.length,n=[],s=0;s<e;s+=2)n[s>>>3]|=parseInt(t.substr(s,2),16)<<24-s%8*4;return new c.init(n,e/2)}},d=u.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,s=[],i=0;i<n;i++)s.push(String.fromCharCode(e[i>>>2]>>>24-i%4*8&255));return s.join("")},parse:function(t){for(var e=t.length,n=[],s=0;s<e;s++)n[s>>>2]|=(255&t.charCodeAt(s))<<24-s%4*8;return new c.init(n,e)}},p=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(d.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return d.parse(unescape(encodeURIComponent(t)))}},f=a.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,s=this._data,i=s.words,r=s.sigBytes,o=this.blockSize,a=r/(4*o),l=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*o,u=t.min(4*l,r);if(l){for(var h=0;h<l;h+=o)this._doProcessBlock(i,h);n=i.splice(0,l),s.sigBytes-=u}return new c.init(n,u)},clone:function(){var t=l.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),g=(a.Hasher=f.extend({cfg:l.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new g.HMAC.init(t,n).finalize(e)}}}),o.algo={});return o}(Math)},8341:function(t,e,n){var s,i;t.exports=(s=n(1823),i=s.lib.WordArray,s.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,s=this._map;t.clamp();for(var i=[],r=0;r<n;r+=3)for(var o=(e[r>>>2]>>>24-r%4*8&255)<<16|(e[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|e[r+2>>>2]>>>24-(r+2)%4*8&255,a=0;a<4&&r+.75*a<n;a++)i.push(s.charAt(o>>>6*(3-a)&63));var l=s.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(t){var e=t.length,n=this._map,s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var r=0;r<n.length;r++)s[n.charCodeAt(r)]=r}var o=n.charAt(64);if(o){var a=t.indexOf(o);-1!==a&&(e=a)}return function(t,e,n){for(var s=[],r=0,o=0;o<e;o++)if(o%4){var a=n[t.charCodeAt(o-1)]<<o%4*2,l=n[t.charCodeAt(o)]>>>6-o%4*2;s[r>>>2]|=(a|l)<<24-r%4*8,r++}return i.create(s,r)}(t,e,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},s.enc.Base64)},9237:function(t,e,n){var s,i;t.exports=(s=n(1823),i=s.lib.WordArray,s.enc.Base64url={stringify:function(t,e=!0){var n=t.words,s=t.sigBytes,i=e?this._safe_map:this._map;t.clamp();for(var r=[],o=0;o<s;o+=3)for(var a=(n[o>>>2]>>>24-o%4*8&255)<<16|(n[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|n[o+2>>>2]>>>24-(o+2)%4*8&255,l=0;l<4&&o+.75*l<s;l++)r.push(i.charAt(a>>>6*(3-l)&63));var c=i.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(t,e=!0){var n=t.length,s=e?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var o=0;o<s.length;o++)r[s.charCodeAt(o)]=o}var a=s.charAt(64);if(a){var l=t.indexOf(a);-1!==l&&(n=l)}return function(t,e,n){for(var s=[],r=0,o=0;o<e;o++)if(o%4){var a=n[t.charCodeAt(o-1)]<<o%4*2,l=n[t.charCodeAt(o)]>>>6-o%4*2;s[r>>>2]|=(a|l)<<24-r%4*8,r++}return i.create(s,r)}(t,n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},s.enc.Base64url)},4153:function(t,e,n){var s;t.exports=(s=n(1823),function(){var t=s.lib.WordArray,e=s.enc;function n(t){return t<<8&4278255360|t>>>8&16711935}e.Utf16=e.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,s=[],i=0;i<n;i+=2)s.push(String.fromCharCode(e[i>>>2]>>>16-i%4*8&65535));return s.join("")},parse:function(e){for(var n=e.length,s=[],i=0;i<n;i++)s[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(s,2*n)}},e.Utf16LE={stringify:function(t){for(var e=t.words,s=t.sigBytes,i=[],r=0;r<s;r+=2){var o=n(e[r>>>2]>>>16-r%4*8&65535);i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var s=e.length,i=[],r=0;r<s;r++)i[r>>>1]|=n(e.charCodeAt(r)<<16-r%2*16);return t.create(i,2*s)}}}(),s.enc.Utf16)},4369:function(t,e,n){var s,i,r,o,a,l,c;t.exports=(c=n(1823),n(6496),n(3331),o=(i=(s=c).lib).WordArray,l=(a=s.algo).EvpKDF=(r=i.Base).extend({cfg:r.extend({keySize:4,hasher:a.MD5,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n,s=this.cfg,i=s.hasher.create(),r=o.create(),a=r.words,l=s.keySize,c=s.iterations;a.length<l;){n&&i.update(n),n=i.update(t).finalize(e),i.reset();for(var u=1;u<c;u++)n=i.finalize(n),i.reset();r.concat(n)}return r.sigBytes=4*l,r}}),s.EvpKDF=function(t,e,n){return l.create(n).compute(t,e)},c.EvpKDF)},5383:function(t,e,n){var s,i,r;t.exports=(r=n(1823),n(8822),s=r.lib.CipherParams,i=r.enc.Hex,r.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){var e=i.parse(t);return s.create({ciphertext:e})}},r.format.Hex)},3331:function(t,e,n){var s,i;t.exports=(s=n(1823),i=s.enc.Utf8,void(s.algo.HMAC=s.lib.Base.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=i.parse(e));var n=t.blockSize,s=4*n;e.sigBytes>s&&(e=t.finalize(e)),e.clamp();for(var r=this._oKey=e.clone(),o=this._iKey=e.clone(),a=r.words,l=o.words,c=0;c<n;c++)a[c]^=1549556828,l[c]^=909522486;r.sigBytes=o.sigBytes=s,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(n))}})))},2527:function(t,e,n){var s;t.exports=(s=n(1823),n(4615),n(4194),n(4153),n(8341),n(9237),n(916),n(6496),n(6946),n(6538),n(1206),n(7098),n(2633),n(5508),n(3331),n(3096),n(4369),n(8822),n(8915),n(9913),n(1981),n(7163),n(6447),n(3199),n(9049),n(2812),n(5355),n(1247),n(5383),n(7832),n(4994),n(1093),n(7076),n(5625),s)},4194:function(t,e,n){var s;t.exports=(s=n(1823),function(){if("function"==typeof ArrayBuffer){var t=s.lib.WordArray,e=t.init;(t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var n=t.byteLength,s=[],i=0;i<n;i++)s[i>>>2]|=t[i]<<24-i%4*8;e.call(this,s,n)}else e.apply(this,arguments)}).prototype=t}}(),s.lib.WordArray)},916:function(t,e,n){var s;t.exports=(s=n(1823),function(t){var e=s,n=e.lib,i=n.WordArray,r=n.Hasher,o=e.algo,a=[];!function(){for(var e=0;e<64;e++)a[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=o.MD5=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var s=e+n,i=t[s];t[s]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var r=this._hash.words,o=t[e+0],l=t[e+1],p=t[e+2],f=t[e+3],g=t[e+4],m=t[e+5],y=t[e+6],v=t[e+7],_=t[e+8],b=t[e+9],w=t[e+10],S=t[e+11],T=t[e+12],C=t[e+13],x=t[e+14],E=t[e+15],k=r[0],A=r[1],I=r[2],O=r[3];k=c(k,A,I,O,o,7,a[0]),O=c(O,k,A,I,l,12,a[1]),I=c(I,O,k,A,p,17,a[2]),A=c(A,I,O,k,f,22,a[3]),k=c(k,A,I,O,g,7,a[4]),O=c(O,k,A,I,m,12,a[5]),I=c(I,O,k,A,y,17,a[6]),A=c(A,I,O,k,v,22,a[7]),k=c(k,A,I,O,_,7,a[8]),O=c(O,k,A,I,b,12,a[9]),I=c(I,O,k,A,w,17,a[10]),A=c(A,I,O,k,S,22,a[11]),k=c(k,A,I,O,T,7,a[12]),O=c(O,k,A,I,C,12,a[13]),I=c(I,O,k,A,x,17,a[14]),k=u(k,A=c(A,I,O,k,E,22,a[15]),I,O,l,5,a[16]),O=u(O,k,A,I,y,9,a[17]),I=u(I,O,k,A,S,14,a[18]),A=u(A,I,O,k,o,20,a[19]),k=u(k,A,I,O,m,5,a[20]),O=u(O,k,A,I,w,9,a[21]),I=u(I,O,k,A,E,14,a[22]),A=u(A,I,O,k,g,20,a[23]),k=u(k,A,I,O,b,5,a[24]),O=u(O,k,A,I,x,9,a[25]),I=u(I,O,k,A,f,14,a[26]),A=u(A,I,O,k,_,20,a[27]),k=u(k,A,I,O,C,5,a[28]),O=u(O,k,A,I,p,9,a[29]),I=u(I,O,k,A,v,14,a[30]),k=h(k,A=u(A,I,O,k,T,20,a[31]),I,O,m,4,a[32]),O=h(O,k,A,I,_,11,a[33]),I=h(I,O,k,A,S,16,a[34]),A=h(A,I,O,k,x,23,a[35]),k=h(k,A,I,O,l,4,a[36]),O=h(O,k,A,I,g,11,a[37]),I=h(I,O,k,A,v,16,a[38]),A=h(A,I,O,k,w,23,a[39]),k=h(k,A,I,O,C,4,a[40]),O=h(O,k,A,I,o,11,a[41]),I=h(I,O,k,A,f,16,a[42]),A=h(A,I,O,k,y,23,a[43]),k=h(k,A,I,O,b,4,a[44]),O=h(O,k,A,I,T,11,a[45]),I=h(I,O,k,A,E,16,a[46]),k=d(k,A=h(A,I,O,k,p,23,a[47]),I,O,o,6,a[48]),O=d(O,k,A,I,v,10,a[49]),I=d(I,O,k,A,x,15,a[50]),A=d(A,I,O,k,m,21,a[51]),k=d(k,A,I,O,T,6,a[52]),O=d(O,k,A,I,f,10,a[53]),I=d(I,O,k,A,w,15,a[54]),A=d(A,I,O,k,l,21,a[55]),k=d(k,A,I,O,_,6,a[56]),O=d(O,k,A,I,E,10,a[57]),I=d(I,O,k,A,y,15,a[58]),A=d(A,I,O,k,C,21,a[59]),k=d(k,A,I,O,g,6,a[60]),O=d(O,k,A,I,S,10,a[61]),I=d(I,O,k,A,p,15,a[62]),A=d(A,I,O,k,b,21,a[63]),r[0]=r[0]+k|0,r[1]=r[1]+A|0,r[2]=r[2]+I|0,r[3]=r[3]+O|0},_doFinalize:function(){var e=this._data,n=e.words,s=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var r=t.floor(s/4294967296),o=s;n[15+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),n[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,l=a.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,n,s,i,r,o){var a=t+(e&n|~e&s)+i+o;return(a<<r|a>>>32-r)+e}function u(t,e,n,s,i,r,o){var a=t+(e&s|n&~s)+i+o;return(a<<r|a>>>32-r)+e}function h(t,e,n,s,i,r,o){var a=t+(e^n^s)+i+o;return(a<<r|a>>>32-r)+e}function d(t,e,n,s,i,r,o){var a=t+(n^(e|~s))+i+o;return(a<<r|a>>>32-r)+e}e.MD5=r._createHelper(l),e.HmacMD5=r._createHmacHelper(l)}(Math),s.MD5)},8915:function(t,e,n){var s;t.exports=(s=n(1823),n(8822),s.mode.CFB=function(){var t=s.lib.BlockCipherMode.extend();function e(t,e,n,s){var i,r=this._iv;r?(i=r.slice(0),this._iv=void 0):i=this._prevBlock,s.encryptBlock(i,0);for(var o=0;o<n;o++)t[e+o]^=i[o]}return t.Encryptor=t.extend({processBlock:function(t,n){var s=this._cipher,i=s.blockSize;e.call(this,t,n,i,s),this._prevBlock=t.slice(n,n+i)}}),t.Decryptor=t.extend({processBlock:function(t,n){var s=this._cipher,i=s.blockSize,r=t.slice(n,n+i);e.call(this,t,n,i,s),this._prevBlock=r}}),t}(),s.mode.CFB)},1981:function(t,e,n){var s;t.exports=(s=n(1823),n(8822),s.mode.CTRGladman=function(){var t=s.lib.BlockCipherMode.extend();function e(t){if(255==(t>>24&255)){var e=t>>16&255,n=t>>8&255,s=255&t;255===e?(e=0,255===n?(n=0,255===s?s=0:++s):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=s}else t+=1<<24;return t}var n=t.Encryptor=t.extend({processBlock:function(t,n){var s=this._cipher,i=s.blockSize,r=this._iv,o=this._counter;r&&(o=this._counter=r.slice(0),this._iv=void 0),function(t){0===(t[0]=e(t[0]))&&(t[1]=e(t[1]))}(o);var a=o.slice(0);s.encryptBlock(a,0);for(var l=0;l<i;l++)t[n+l]^=a[l]}});return t.Decryptor=n,t}(),s.mode.CTRGladman)},9913:function(t,e,n){var s,i,r;t.exports=(r=n(1823),n(8822),r.mode.CTR=(i=(s=r.lib.BlockCipherMode.extend()).Encryptor=s.extend({processBlock:function(t,e){var n=this._cipher,s=n.blockSize,i=this._iv,r=this._counter;i&&(r=this._counter=i.slice(0),this._iv=void 0);var o=r.slice(0);n.encryptBlock(o,0),r[s-1]=r[s-1]+1|0;for(var a=0;a<s;a++)t[e+a]^=o[a]}}),s.Decryptor=i,s),r.mode.CTR)},6447:function(t,e,n){var s,i;t.exports=(i=n(1823),n(8822),i.mode.ECB=((s=i.lib.BlockCipherMode.extend()).Encryptor=s.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),s.Decryptor=s.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),s),i.mode.ECB)},7163:function(t,e,n){var s,i,r;t.exports=(r=n(1823),n(8822),r.mode.OFB=(i=(s=r.lib.BlockCipherMode.extend()).Encryptor=s.extend({processBlock:function(t,e){var n=this._cipher,s=n.blockSize,i=this._iv,r=this._keystream;i&&(r=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(r,0);for(var o=0;o<s;o++)t[e+o]^=r[o]}}),s.Decryptor=i,s),r.mode.OFB)},3199:function(t,e,n){var s;t.exports=(s=n(1823),n(8822),s.pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,s=4*e,i=s-n%s,r=n+i-1;t.clamp(),t.words[r>>>2]|=i<<24-r%4*8,t.sigBytes+=i},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}},s.pad.Ansix923)},9049:function(t,e,n){var s;t.exports=(s=n(1823),n(8822),s.pad.Iso10126={pad:function(t,e){var n=4*e,i=n-t.sigBytes%n;t.concat(s.lib.WordArray.random(i-1)).concat(s.lib.WordArray.create([i<<24],1))},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}},s.pad.Iso10126)},2812:function(t,e,n){var s;t.exports=(s=n(1823),n(8822),s.pad.Iso97971={pad:function(t,e){t.concat(s.lib.WordArray.create([2147483648],1)),s.pad.ZeroPadding.pad(t,e)},unpad:function(t){s.pad.ZeroPadding.unpad(t),t.sigBytes--}},s.pad.Iso97971)},1247:function(t,e,n){var s;t.exports=(s=n(1823),n(8822),s.pad.NoPadding={pad:function(){},unpad:function(){}},s.pad.NoPadding)},5355:function(t,e,n){var s;t.exports=(s=n(1823),n(8822),s.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},s.pad.ZeroPadding)},3096:function(t,e,n){var s,i,r,o,a,l,c,u;t.exports=(u=n(1823),n(6496),n(3331),o=(i=(s=u).lib).WordArray,l=(a=s.algo).HMAC,c=a.PBKDF2=(r=i.Base).extend({cfg:r.extend({keySize:4,hasher:a.SHA1,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,s=l.create(n.hasher,t),i=o.create(),r=o.create([1]),a=i.words,c=r.words,u=n.keySize,h=n.iterations;a.length<u;){var d=s.update(e).finalize(r);s.reset();for(var p=d.words,f=p.length,g=d,m=1;m<h;m++){g=s.finalize(g),s.reset();for(var y=g.words,v=0;v<f;v++)p[v]^=y[v]}i.concat(d),c[0]++}return i.sigBytes=4*u,i}}),s.PBKDF2=function(t,e,n){return c.create(n).compute(t,e)},u.PBKDF2)},5625:function(t,e,n){var s;t.exports=(s=n(1823),n(8341),n(916),n(4369),n(8822),function(){var t=s,e=t.lib.StreamCipher,n=[],i=[],r=[],o=t.algo.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],s=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)a.call(this);for(i=0;i<8;i++)s[i]^=n[i+4&7];if(e){var r=e.words,o=r[0],l=r[1],c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),h=c>>>16|4294901760&u,d=u<<16|65535&c;for(s[0]^=c,s[1]^=h,s[2]^=u,s[3]^=d,s[4]^=c,s[5]^=h,s[6]^=u,s[7]^=d,i=0;i<4;i++)a.call(this)}},_doProcessBlock:function(t,e){var s=this._X;a.call(this),n[0]=s[0]^s[5]>>>16^s[3]<<16,n[1]=s[2]^s[7]>>>16^s[5]<<16,n[2]=s[4]^s[1]>>>16^s[7]<<16,n[3]=s[6]^s[3]>>>16^s[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),t[e+i]^=n[i]},blockSize:4,ivSize:2});function a(){for(var t=this._X,e=this._C,n=0;n<8;n++)i[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<i[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<i[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<i[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<i[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<i[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<i[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<i[6]>>>0?1:0)|0,this._b=e[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var s=t[n]+e[n],o=65535&s,a=s>>>16;r[n]=((o*o>>>17)+o*a>>>15)+a*a^((4294901760&s)*s|0)+((65535&s)*s|0)}t[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,t[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,t[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,t[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,t[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,t[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,t[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,t[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}t.RabbitLegacy=e._createHelper(o)}(),s.RabbitLegacy)},7076:function(t,e,n){var s;t.exports=(s=n(1823),n(8341),n(916),n(4369),n(8822),function(){var t=s,e=t.lib.StreamCipher,n=[],i=[],r=[],o=t.algo.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var s=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,n=0;n<4;n++)a.call(this);for(n=0;n<8;n++)i[n]^=s[n+4&7];if(e){var r=e.words,o=r[0],l=r[1],c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),h=c>>>16|4294901760&u,d=u<<16|65535&c;for(i[0]^=c,i[1]^=h,i[2]^=u,i[3]^=d,i[4]^=c,i[5]^=h,i[6]^=u,i[7]^=d,n=0;n<4;n++)a.call(this)}},_doProcessBlock:function(t,e){var s=this._X;a.call(this),n[0]=s[0]^s[5]>>>16^s[3]<<16,n[1]=s[2]^s[7]>>>16^s[5]<<16,n[2]=s[4]^s[1]>>>16^s[7]<<16,n[3]=s[6]^s[3]>>>16^s[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),t[e+i]^=n[i]},blockSize:4,ivSize:2});function a(){for(var t=this._X,e=this._C,n=0;n<8;n++)i[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<i[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<i[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<i[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<i[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<i[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<i[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<i[6]>>>0?1:0)|0,this._b=e[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var s=t[n]+e[n],o=65535&s,a=s>>>16;r[n]=((o*o>>>17)+o*a>>>15)+a*a^((4294901760&s)*s|0)+((65535&s)*s|0)}t[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,t[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,t[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,t[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,t[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,t[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,t[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,t[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}t.Rabbit=e._createHelper(o)}(),s.Rabbit)},1093:function(t,e,n){var s;t.exports=(s=n(1823),n(8341),n(916),n(4369),n(8822),function(){var t=s,e=t.lib.StreamCipher,n=t.algo,i=n.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,s=this._S=[],i=0;i<256;i++)s[i]=i;i=0;for(var r=0;i<256;i++){var o=i%n,a=s[i];s[i]=s[r=(r+s[i]+(e[o>>>2]>>>24-o%4*8&255))%256],s[r]=a}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=r.call(this)},keySize:8,ivSize:0});function r(){for(var t=this._S,e=this._i,n=this._j,s=0,i=0;i<4;i++){var r=t[e=(e+1)%256];t[e]=t[n=(n+t[e])%256],t[n]=r,s|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,s}t.RC4=e._createHelper(i);var o=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)r.call(this)}});t.RC4Drop=e._createHelper(o)}(),s.RC4)},5508:function(t,e,n){var s;t.exports=(s=n(1823),function(t){var e=s,n=e.lib,i=n.WordArray,r=n.Hasher,o=e.algo,a=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=i.create([0,1518500249,1859775393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,2053994217,0]),p=o.RIPEMD160=r.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var s=e+n,i=t[s];t[s]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var r,o,p,b,w,S,T,C,x,E,k,A=this._hash.words,I=h.words,O=d.words,P=a.words,D=l.words,L=c.words,N=u.words;for(S=r=A[0],T=o=A[1],C=p=A[2],x=b=A[3],E=w=A[4],n=0;n<80;n+=1)k=r+t[e+P[n]]|0,k+=n<16?f(o,p,b)+I[0]:n<32?g(o,p,b)+I[1]:n<48?m(o,p,b)+I[2]:n<64?y(o,p,b)+I[3]:v(o,p,b)+I[4],k=(k=_(k|=0,L[n]))+w|0,r=w,w=b,b=_(p,10),p=o,o=k,k=S+t[e+D[n]]|0,k+=n<16?v(T,C,x)+O[0]:n<32?y(T,C,x)+O[1]:n<48?m(T,C,x)+O[2]:n<64?g(T,C,x)+O[3]:f(T,C,x)+O[4],k=(k=_(k|=0,N[n]))+E|0,S=E,E=x,x=_(C,10),C=T,T=k;k=A[1]+p+x|0,A[1]=A[2]+b+E|0,A[2]=A[3]+w+S|0,A[3]=A[4]+r+T|0,A[4]=A[0]+o+C|0,A[0]=k},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,s=8*t.sigBytes;e[s>>>5]|=128<<24-s%32,e[14+(s+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,r=i.words,o=0;o<5;o++){var a=r[o];r[o]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});function f(t,e,n){return t^e^n}function g(t,e,n){return t&e|~t&n}function m(t,e,n){return(t|~e)^n}function y(t,e,n){return t&n|e&~n}function v(t,e,n){return t^(e|~n)}function _(t,e){return t<<e|t>>>32-e}e.RIPEMD160=r._createHelper(p),e.HmacRIPEMD160=r._createHmacHelper(p)}(Math),s.RIPEMD160)},6496:function(t,e,n){var s,i,r,o,a,l,c;t.exports=(c=n(1823),r=(i=(s=c).lib).WordArray,a=[],l=s.algo.SHA1=(o=i.Hasher).extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,s=n[0],i=n[1],r=n[2],o=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var h=(s<<5|s>>>27)+l+a[c];h+=c<20?1518500249+(i&r|~i&o):c<40?1859775393+(i^r^o):c<60?(i&r|i&o|r&o)-1894007588:(i^r^o)-899497514,l=o,o=r,r=i<<30|i>>>2,i=s,s=h}n[0]=n[0]+s|0,n[1]=n[1]+i|0,n[2]=n[2]+r|0,n[3]=n[3]+o|0,n[4]=n[4]+l|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,s=8*t.sigBytes;return e[s>>>5]|=128<<24-s%32,e[14+(s+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(s+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}}),s.SHA1=o._createHelper(l),s.HmacSHA1=o._createHmacHelper(l),c.SHA1)},6538:function(t,e,n){var s,i,r,o,a,l;t.exports=(l=n(1823),n(6946),i=(s=l).lib.WordArray,a=(r=s.algo).SHA224=(o=r.SHA256).extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=o._doFinalize.call(this);return t.sigBytes-=4,t}}),s.SHA224=o._createHelper(a),s.HmacSHA224=o._createHmacHelper(a),l.SHA224)},6946:function(t,e,n){var s;t.exports=(s=n(1823),function(t){var e=s,n=e.lib,i=n.WordArray,r=n.Hasher,o=e.algo,a=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),s=2;s<=n;s++)if(!(e%s))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var s=2,i=0;i<64;)e(s)&&(i<8&&(a[i]=n(t.pow(s,.5))),l[i]=n(t.pow(s,1/3)),i++),s++}();var c=[],u=o.SHA256=r.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,s=n[0],i=n[1],r=n[2],o=n[3],a=n[4],u=n[5],h=n[6],d=n[7],p=0;p<64;p++){if(p<16)c[p]=0|t[e+p];else{var f=c[p-15],g=c[p-2];c[p]=((f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+c[p-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+c[p-16]}var m=s&i^s&r^i&r,y=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&h)+l[p]+c[p];d=h,h=u,u=a,a=o+y|0,o=r,r=i,i=s,s=y+(((s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22))+m)|0}n[0]=n[0]+s|0,n[1]=n[1]+i|0,n[2]=n[2]+r|0,n[3]=n[3]+o|0,n[4]=n[4]+a|0,n[5]=n[5]+u|0,n[6]=n[6]+h|0,n[7]=n[7]+d|0},_doFinalize:function(){var e=this._data,n=e.words,s=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(s/4294967296),n[15+(i+64>>>9<<4)]=s,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=r._createHelper(u),e.HmacSHA256=r._createHmacHelper(u)}(Math),s.SHA256)},2633:function(t,e,n){var s;t.exports=(s=n(1823),n(4615),function(t){var e=s,n=e.lib,i=n.WordArray,r=n.Hasher,o=e.x64.Word,a=e.algo,l=[],c=[],u=[];!function(){for(var t=1,e=0,n=0;n<24;n++){l[t+5*e]=(n+1)*(n+2)/2%64;var s=(2*t+3*e)%5;t=e%5,e=s}for(t=0;t<5;t++)for(e=0;e<5;e++)c[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,r=0;r<24;r++){for(var a=0,h=0,d=0;d<7;d++){if(1&i){var p=(1<<d)-1;p<32?h^=1<<p:a^=1<<p-32}128&i?i=i<<1^113:i<<=1}u[r]=o.create(a,h)}}();var h=[];!function(){for(var t=0;t<25;t++)h[t]=o.create()}();var d=a.SHA3=r.extend({cfg:r.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,s=this.blockSize/2,i=0;i<s;i++){var r=t[e+2*i],o=t[e+2*i+1];r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),(P=n[i]).high^=o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),P.low^=r}for(var a=0;a<24;a++){for(var d=0;d<5;d++){for(var p=0,f=0,g=0;g<5;g++)p^=(P=n[d+5*g]).high,f^=P.low;var m=h[d];m.high=p,m.low=f}for(d=0;d<5;d++){var y=h[(d+4)%5],v=h[(d+1)%5],_=v.high,b=v.low;for(p=y.high^(_<<1|b>>>31),f=y.low^(b<<1|_>>>31),g=0;g<5;g++)(P=n[d+5*g]).high^=p,P.low^=f}for(var w=1;w<25;w++){var S=(P=n[w]).high,T=P.low,C=l[w];C<32?(p=S<<C|T>>>32-C,f=T<<C|S>>>32-C):(p=T<<C-32|S>>>64-C,f=S<<C-32|T>>>64-C);var x=h[c[w]];x.high=p,x.low=f}var E=h[0],k=n[0];for(E.high=k.high,E.low=k.low,d=0;d<5;d++)for(g=0;g<5;g++){var A=h[w=d+5*g],I=h[(d+1)%5+5*g],O=h[(d+2)%5+5*g];(P=n[w]).high=A.high^~I.high&O.high,P.low=A.low^~I.low&O.low}var P,D=u[a];(P=n[0]).high^=D.high,P.low^=D.low}},_doFinalize:function(){var e=this._data,n=e.words,s=8*e.sigBytes,r=32*this.blockSize;n[s>>>5]|=1<<24-s%32,n[(t.ceil((s+1)/r)*r>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var o=this._state,a=this.cfg.outputLength/8,l=a/8,c=[],u=0;u<l;u++){var h=o[u],d=h.high,p=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),c.push(p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8)),c.push(d)}return new i.init(c,a)},clone:function(){for(var t=r.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});e.SHA3=r._createHelper(d),e.HmacSHA3=r._createHmacHelper(d)}(Math),s.SHA3)},7098:function(t,e,n){var s,i,r,o,a,l,c,u;t.exports=(u=n(1823),n(4615),n(1206),r=(i=(s=u).x64).Word,o=i.WordArray,c=(a=s.algo).SHA384=(l=a.SHA512).extend({_doReset:function(){this._hash=new o.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var t=l._doFinalize.call(this);return t.sigBytes-=16,t}}),s.SHA384=l._createHelper(c),s.HmacSHA384=l._createHmacHelper(c),u.SHA384)},1206:function(t,e,n){var s;t.exports=(s=n(1823),n(4615),function(){var t=s,e=t.lib.Hasher,n=t.x64,i=n.Word,r=n.WordArray,o=t.algo;function a(){return i.create.apply(i,arguments)}var l=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],c=[];!function(){for(var t=0;t<80;t++)c[t]=a()}();var u=o.SHA512=e.extend({_doReset:function(){this._hash=new r.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,s=n[0],i=n[1],r=n[2],o=n[3],a=n[4],u=n[5],h=n[6],d=n[7],p=s.high,f=s.low,g=i.high,m=i.low,y=r.high,v=r.low,_=o.high,b=o.low,w=a.high,S=a.low,T=u.high,C=u.low,x=h.high,E=h.low,k=d.high,A=d.low,I=p,O=f,P=g,D=m,L=y,N=v,M=_,R=b,F=w,B=S,j=T,V=C,z=x,H=E,U=k,Z=A,q=0;q<80;q++){var G,Y,$=c[q];if(q<16)Y=$.high=0|t[e+2*q],G=$.low=0|t[e+2*q+1];else{var W=c[q-15],Q=W.high,J=W.low,K=(J>>>1|Q<<31)^(J>>>8|Q<<24)^(J>>>7|Q<<25),X=c[q-2],tt=X.high,et=X.low,nt=(et>>>19|tt<<13)^(et<<3|tt>>>29)^(et>>>6|tt<<26),st=c[q-7],it=c[q-16],rt=it.low;$.high=Y=(Y=(Y=((Q>>>1|J<<31)^(Q>>>8|J<<24)^Q>>>7)+st.high+((G=K+st.low)>>>0<K>>>0?1:0))+((tt>>>19|et<<13)^(tt<<3|et>>>29)^tt>>>6)+((G+=nt)>>>0<nt>>>0?1:0))+it.high+((G+=rt)>>>0<rt>>>0?1:0),$.low=G}var ot,at=F&j^~F&z,lt=B&V^~B&H,ct=I&P^I&L^P&L,ut=(O>>>28|I<<4)^(O<<30|I>>>2)^(O<<25|I>>>7),ht=l[q],dt=ht.low,pt=U+((F>>>14|B<<18)^(F>>>18|B<<14)^(F<<23|B>>>9))+((ot=Z+((B>>>14|F<<18)^(B>>>18|F<<14)^(B<<23|F>>>9)))>>>0<Z>>>0?1:0),ft=ut+(O&D^O&N^D&N);U=z,Z=H,z=j,H=V,j=F,V=B,F=M+(pt=(pt=(pt=pt+at+((ot+=lt)>>>0<lt>>>0?1:0))+ht.high+((ot+=dt)>>>0<dt>>>0?1:0))+Y+((ot+=G)>>>0<G>>>0?1:0))+((B=R+ot|0)>>>0<R>>>0?1:0)|0,M=L,R=N,L=P,N=D,P=I,D=O,I=pt+(((I>>>28|O<<4)^(I<<30|O>>>2)^(I<<25|O>>>7))+ct+(ft>>>0<ut>>>0?1:0))+((O=ot+ft|0)>>>0<ot>>>0?1:0)|0}f=s.low=f+O,s.high=p+I+(f>>>0<O>>>0?1:0),m=i.low=m+D,i.high=g+P+(m>>>0<D>>>0?1:0),v=r.low=v+N,r.high=y+L+(v>>>0<N>>>0?1:0),b=o.low=b+R,o.high=_+M+(b>>>0<R>>>0?1:0),S=a.low=S+B,a.high=w+F+(S>>>0<B>>>0?1:0),C=u.low=C+V,u.high=T+j+(C>>>0<V>>>0?1:0),E=h.low=E+H,h.high=x+z+(E>>>0<H>>>0?1:0),A=d.low=A+Z,d.high=k+U+(A>>>0<Z>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,s=8*t.sigBytes;return e[s>>>5]|=128<<24-s%32,e[30+(s+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(s+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(u),t.HmacSHA512=e._createHmacHelper(u)}(),s.SHA512)},4994:function(t,e,n){var s;t.exports=(s=n(1823),n(8341),n(916),n(4369),n(8822),function(){var t=s,e=t.lib,n=e.WordArray,i=e.BlockCipher,r=t.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=r.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var s=o[n]-1;e[n]=t[s>>>5]>>>31-s%32&1}for(var i=this._subKeys=[],r=0;r<16;r++){var c=i[r]=[],u=l[r];for(n=0;n<24;n++)c[n/6|0]|=e[(a[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=e[28+(a[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=i[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],d.call(this,4,252645135),d.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),d.call(this,1,1431655765);for(var s=0;s<16;s++){for(var i=n[s],r=this._lBlock,o=this._rBlock,a=0,l=0;l<8;l++)a|=c[l][((o^i[l])&u[l])>>>0];this._lBlock=o,this._rBlock=r^a}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function p(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}t.DES=i._createHelper(h);var f=r.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),s=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(n.create(e)),this._des2=h.createEncryptor(n.create(s)),this._des3=h.createEncryptor(n.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(f)}(),s.TripleDES)},4615:function(t,e,n){var s,i,r,o,a;t.exports=(s=n(1823),r=(i=s.lib).Base,o=i.WordArray,(a=s.x64={}).Word=r.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=r.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],s=0;s<e;s++){var i=t[s];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var t=r.clone.call(this),e=t.words=this.words.slice(0),n=e.length,s=0;s<n;s++)e[s]=e[s].clone();return t}}),s)},2533:(t,e,n)=>{"use strict";n.d(e,{JX:()=>E,LS:()=>S,_s:()=>v});var s=n(3018),i=n(8583);function r(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"a",11),s.NdJ("keyup.enter",function(){return s.CHM(n),s.oxw(3),s.MAs(1).previous()})("click",function(){return s.CHM(n),s.oxw(3),s.MAs(1).previous()}),s._uU(1),s.TgZ(2,"span",12),s._uU(3),s.qZA(),s.qZA()}if(2&t){var i=s.oxw(3);s.uIk("aria-label",i.previousLabel+" "+i.screenReaderPageLabel),s.xp6(1),s.hij(" ",i.previousLabel," "),s.xp6(2),s.Oqu(i.screenReaderPageLabel)}}function o(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.TgZ(2,"span",12),s._uU(3),s.qZA(),s.qZA()),2&t){var n=s.oxw(3);s.xp6(1),s.hij(" ",n.previousLabel," "),s.xp6(2),s.Oqu(n.screenReaderPageLabel)}}function a(t,e){if(1&t&&(s.TgZ(0,"li",8),s.YNc(1,r,4,3,"a",9),s.YNc(2,o,4,2,"span",10),s.qZA()),2&t){s.oxw(2);var n=s.MAs(1);s.ekj("disabled",n.isFirstPage()),s.xp6(1),s.Q6J("ngIf",1<n.getCurrent()),s.xp6(1),s.Q6J("ngIf",n.isFirstPage())}}function l(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"a",11),s.NdJ("keyup.enter",function(){s.CHM(n);var t=s.oxw().$implicit;return s.oxw(2),s.MAs(1).setCurrent(t.value)})("click",function(){s.CHM(n);var t=s.oxw().$implicit;return s.oxw(2),s.MAs(1).setCurrent(t.value)}),s.TgZ(1,"span",12),s._uU(2),s.qZA(),s.TgZ(3,"span"),s._uU(4),s.ALo(5,"number"),s.qZA(),s.qZA()}if(2&t){var i=s.oxw().$implicit,r=s.oxw(2);s.xp6(2),s.hij("",r.screenReaderPageLabel," "),s.xp6(2),s.Oqu("..."===i.label?i.label:s.xi3(5,2,i.label,""))}}function c(t,e){if(1&t&&(s.ynx(0),s.TgZ(1,"span",12),s._uU(2),s.qZA(),s.TgZ(3,"span"),s._uU(4),s.ALo(5,"number"),s.qZA(),s.BQk()),2&t){var n=s.oxw().$implicit,i=s.oxw(2);s.xp6(2),s.hij("",i.screenReaderCurrentLabel," "),s.xp6(2),s.Oqu("..."===n.label?n.label:s.xi3(5,2,n.label,""))}}function u(t,e){if(1&t&&(s.TgZ(0,"li"),s.YNc(1,l,6,5,"a",9),s.YNc(2,c,6,5,"ng-container",10),s.qZA()),2&t){var n=e.$implicit;s.oxw(2);var i=s.MAs(1);s.ekj("current",i.getCurrent()===n.value)("ellipsis","..."===n.label),s.xp6(1),s.Q6J("ngIf",i.getCurrent()!==n.value),s.xp6(1),s.Q6J("ngIf",i.getCurrent()===n.value)}}function h(t,e){if(1&t){var n=s.EpF();s.TgZ(0,"a",11),s.NdJ("keyup.enter",function(){return s.CHM(n),s.oxw(3),s.MAs(1).next()})("click",function(){return s.CHM(n),s.oxw(3),s.MAs(1).next()}),s._uU(1),s.TgZ(2,"span",12),s._uU(3),s.qZA(),s.qZA()}if(2&t){var i=s.oxw(3);s.uIk("aria-label",i.nextLabel+" "+i.screenReaderPageLabel),s.xp6(1),s.hij(" ",i.nextLabel," "),s.xp6(2),s.Oqu(i.screenReaderPageLabel)}}function d(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.TgZ(2,"span",12),s._uU(3),s.qZA(),s.qZA()),2&t){var n=s.oxw(3);s.xp6(1),s.hij(" ",n.nextLabel," "),s.xp6(2),s.Oqu(n.screenReaderPageLabel)}}function p(t,e){if(1&t&&(s.TgZ(0,"li",13),s.YNc(1,h,4,3,"a",9),s.YNc(2,d,4,2,"span",10),s.qZA()),2&t){s.oxw(2);var n=s.MAs(1);s.ekj("disabled",n.isLastPage()),s.xp6(1),s.Q6J("ngIf",!n.isLastPage()),s.xp6(1),s.Q6J("ngIf",n.isLastPage())}}function f(t,e){if(1&t&&(s.TgZ(0,"ul",3),s.YNc(1,a,3,4,"li",4),s.TgZ(2,"li",5),s._uU(3),s.qZA(),s.YNc(4,u,3,6,"li",6),s.YNc(5,p,3,4,"li",7),s.qZA()),2&t){var n=s.oxw(),i=s.MAs(1);s.ekj("responsive",n.responsive),s.uIk("aria-label",n.screenReaderPaginationLabel),s.xp6(1),s.Q6J("ngIf",n.directionLinks),s.xp6(2),s.AsE(" ",i.getCurrent()," / ",i.getLastPage()," "),s.xp6(1),s.Q6J("ngForOf",i.pages)("ngForTrackBy",n.trackByIndex),s.xp6(1),s.Q6J("ngIf",n.directionLinks)}}var g=function(){function t(){this.change=new s.vpe,this.instances={},this.DEFAULT_ID="DEFAULT_PAGINATION_ID"}return t.prototype.defaultId=function(){return this.DEFAULT_ID},t.prototype.register=function(t){return null==t.id&&(t.id=this.DEFAULT_ID),this.instances[t.id]?this.updateInstance(t):(this.instances[t.id]=t,!0)},t.prototype.updateInstance=function(t){var e=!1;for(var n in this.instances[t.id])t[n]!==this.instances[t.id][n]&&(this.instances[t.id][n]=t[n],e=!0);return e},t.prototype.getCurrentPage=function(t){if(this.instances[t])return this.instances[t].currentPage},t.prototype.setCurrentPage=function(t,e){if(this.instances[t]){var n=this.instances[t];e<=Math.ceil(n.totalItems/n.itemsPerPage)&&1<=e&&(this.instances[t].currentPage=e,this.change.emit(t))}},t.prototype.setTotalItems=function(t,e){this.instances[t]&&0<=e&&(this.instances[t].totalItems=e,this.change.emit(t))},t.prototype.setItemsPerPage=function(t,e){this.instances[t]&&(this.instances[t].itemsPerPage=e,this.change.emit(t))},t.prototype.getInstance=function(t){return void 0===t&&(t=this.DEFAULT_ID),this.instances[t]?this.clone(this.instances[t]):{}},t.prototype.clone=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),m=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},y=Number.MAX_SAFE_INTEGER,v=function(){function t(t){this.service=t,this.state={}}return t.prototype.transform=function(t,e){if(!(t instanceof Array)){var n=e.id||this.service.defaultId();return this.state[n]?this.state[n].slice:t}var s,i,r=e.totalItems&&e.totalItems!==t.length,o=this.createInstance(t,e),a=o.id,l=o.itemsPerPage,c=this.service.register(o);if(!r&&t instanceof Array){if(this.stateIsIdentical(a,t,s=(o.currentPage-1)*(l=+l||y),i=s+l))return this.state[a].slice;var u=t.slice(s,i);return this.saveState(a,t,u,s,i),this.service.change.emit(a),u}return c&&this.service.change.emit(a),this.saveState(a,t,t,s,i),t},t.prototype.createInstance=function(t,e){return this.checkConfig(e),{id:null!=e.id?e.id:this.service.defaultId(),itemsPerPage:+e.itemsPerPage||0,currentPage:+e.currentPage||1,totalItems:+e.totalItems||t.length}},t.prototype.checkConfig=function(t){var e=["itemsPerPage","currentPage"].filter(function(e){return!(e in t)});if(0<e.length)throw new Error("PaginatePipe: Argument is missing the following required properties: "+e.join(", "))},t.prototype.saveState=function(t,e,n,s,i){this.state[t]={collection:e,size:e.length,slice:n,start:s,end:i}},t.prototype.stateIsIdentical=function(t,e,n,s){var i=this.state[t];return!!i&&!(i.size!==e.length||i.start!==n||i.end!==s)&&i.slice.every(function(t,s){return t===e[n+s]})},(t=function(t,e,n,s){var i,r=arguments.length,o=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,s);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(r<3?i(o):r>3?i(e,n,o):i(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o}([m("design:paramtypes",[g])],t)).\u0275fac=function(e){return new(e||t)(s.Y36(g,16))},t.\u0275pipe=s.Yjl({name:"paginate",type:t,pure:!1}),t}(),_=function(t,e,n,s){var i,r=arguments.length,o=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,s);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(r<3?i(o):r>3?i(e,n,o):i(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o},b=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};function w(t){return!!t&&"false"!==t}var S=function(){function t(){this.maxSize=7,this.previousLabel="Previous",this.nextLabel="Next",this.screenReaderPaginationLabel="Pagination",this.screenReaderPageLabel="page",this.screenReaderCurrentLabel="You're on page",this.pageChange=new s.vpe,this.pageBoundsCorrection=new s.vpe,this._directionLinks=!0,this._autoHide=!1,this._responsive=!1}return Object.defineProperty(t.prototype,"directionLinks",{get:function(){return this._directionLinks},set:function(t){this._directionLinks=w(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoHide",{get:function(){return this._autoHide},set:function(t){this._autoHide=w(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"responsive",{get:function(){return this._responsive},set:function(t){this._responsive=w(t)},enumerable:!0,configurable:!0}),t.prototype.trackByIndex=function(t){return t},_([(0,s.IIB)(),b("design:type",String)],t.prototype,"id",void 0),_([(0,s.IIB)(),b("design:type",Number)],t.prototype,"maxSize",void 0),_([(0,s.IIB)(),b("design:type",Boolean),b("design:paramtypes",[Boolean])],t.prototype,"directionLinks",null),_([(0,s.IIB)(),b("design:type",Boolean),b("design:paramtypes",[Boolean])],t.prototype,"autoHide",null),_([(0,s.IIB)(),b("design:type",Boolean),b("design:paramtypes",[Boolean])],t.prototype,"responsive",null),_([(0,s.IIB)(),b("design:type",String)],t.prototype,"previousLabel",void 0),_([(0,s.IIB)(),b("design:type",String)],t.prototype,"nextLabel",void 0),_([(0,s.IIB)(),b("design:type",String)],t.prototype,"screenReaderPaginationLabel",void 0),_([(0,s.IIB)(),b("design:type",String)],t.prototype,"screenReaderPageLabel",void 0),_([(0,s.IIB)(),b("design:type",String)],t.prototype,"screenReaderCurrentLabel",void 0),_([(0,s.r_U)(),b("design:type",s.vpe)],t.prototype,"pageChange",void 0),_([(0,s.r_U)(),b("design:type",s.vpe)],t.prototype,"pageBoundsCorrection",void 0),t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["pagination-controls"]],inputs:{maxSize:"maxSize",previousLabel:"previousLabel",nextLabel:"nextLabel",screenReaderPaginationLabel:"screenReaderPaginationLabel",screenReaderPageLabel:"screenReaderPageLabel",screenReaderCurrentLabel:"screenReaderCurrentLabel",directionLinks:"directionLinks",autoHide:"autoHide",responsive:"responsive",id:"id"},outputs:{pageChange:"pageChange",pageBoundsCorrection:"pageBoundsCorrection"},decls:3,vars:3,consts:[[3,"id","maxSize","pageChange","pageBoundsCorrection"],["p","paginationApi"],["class","ngx-pagination",3,"responsive",4,"ngIf"],[1,"ngx-pagination"],["class","pagination-previous",3,"disabled",4,"ngIf"],[1,"small-screen"],[3,"current","ellipsis",4,"ngFor","ngForOf","ngForTrackBy"],["class","pagination-next",3,"disabled",4,"ngIf"],[1,"pagination-previous"],["tabindex","0",3,"keyup.enter","click",4,"ngIf"],[4,"ngIf"],["tabindex","0",3,"keyup.enter","click"],[1,"show-for-sr"],[1,"pagination-next"]],template:function(t,e){if(1&t&&(s.TgZ(0,"pagination-template",0,1),s.NdJ("pageChange",function(t){return e.pageChange.emit(t)})("pageBoundsCorrection",function(t){return e.pageBoundsCorrection.emit(t)}),s.YNc(2,f,6,9,"ul",2),s.qZA()),2&t){var n=s.MAs(1);s.Q6J("id",e.id)("maxSize",e.maxSize),s.xp6(2),s.Q6J("ngIf",!(e.autoHide&&n.pages.length<=1))}},directives:function(){return[x,i.O5,i.sg]},pipes:function(){return[i.JJ]},styles:["\n.ngx-pagination {\n  margin-left: 0;\n  margin-bottom: 1rem; }\n  .ngx-pagination::before, .ngx-pagination::after {\n    content: ' ';\n    display: table; }\n  .ngx-pagination::after {\n    clear: both; }\n  .ngx-pagination li {\n    -moz-user-select: none;\n    -webkit-user-select: none;\n    -ms-user-select: none;\n    margin-right: 0.0625rem;\n    border-radius: 0; }\n  .ngx-pagination li {\n    display: inline-block; }\n  .ngx-pagination a,\n  .ngx-pagination button {\n    color: #0a0a0a; \n    display: block;\n    padding: 0.1875rem 0.625rem;\n    border-radius: 0; }\n    .ngx-pagination a:hover,\n    .ngx-pagination button:hover {\n      background: #e6e6e6; }\n  .ngx-pagination .current {\n    padding: 0.1875rem 0.625rem;\n    background: #2199e8;\n    color: #fefefe;\n    cursor: default; }\n  .ngx-pagination .disabled {\n    padding: 0.1875rem 0.625rem;\n    color: #cacaca;\n    cursor: default; } \n    .ngx-pagination .disabled:hover {\n      background: transparent; }\n  .ngx-pagination a, .ngx-pagination button {\n    cursor: pointer; }\n\n.ngx-pagination .pagination-previous a::before,\n.ngx-pagination .pagination-previous.disabled::before { \n  content: '\xab';\n  display: inline-block;\n  margin-right: 0.5rem; }\n\n.ngx-pagination .pagination-next a::after,\n.ngx-pagination .pagination-next.disabled::after {\n  content: '\xbb';\n  display: inline-block;\n  margin-left: 0.5rem; }\n\n.ngx-pagination .show-for-sr {\n  position: absolute !important;\n  width: 1px;\n  height: 1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0); }\n.ngx-pagination .small-screen {\n  display: none; }\n@media screen and (max-width: 601px) {\n  .ngx-pagination.responsive .small-screen {\n    display: inline-block; } \n  .ngx-pagination.responsive li:not(.small-screen):not(.pagination-previous):not(.pagination-next) {\n    display: none; }\n}\n  "],encapsulation:2,changeDetection:0}),t}(),T=function(t,e,n,s){var i,r=arguments.length,o=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,s);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(r<3?i(o):r>3?i(e,n,o):i(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o},C=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},x=function(){function t(t,e){var n=this;this.service=t,this.changeDetectorRef=e,this.maxSize=7,this.pageChange=new s.vpe,this.pageBoundsCorrection=new s.vpe,this.pages=[],this.changeSub=this.service.change.subscribe(function(t){n.id===t&&(n.updatePageLinks(),n.changeDetectorRef.markForCheck(),n.changeDetectorRef.detectChanges())})}return t.prototype.ngOnInit=function(){void 0===this.id&&(this.id=this.service.defaultId()),this.updatePageLinks()},t.prototype.ngOnChanges=function(t){this.updatePageLinks()},t.prototype.ngOnDestroy=function(){this.changeSub.unsubscribe()},t.prototype.previous=function(){this.checkValidId(),this.setCurrent(this.getCurrent()-1)},t.prototype.next=function(){this.checkValidId(),this.setCurrent(this.getCurrent()+1)},t.prototype.isFirstPage=function(){return 1===this.getCurrent()},t.prototype.isLastPage=function(){return this.getLastPage()===this.getCurrent()},t.prototype.setCurrent=function(t){this.pageChange.emit(t)},t.prototype.getCurrent=function(){return this.service.getCurrentPage(this.id)},t.prototype.getLastPage=function(){var t=this.service.getInstance(this.id);return t.totalItems<1?1:Math.ceil(t.totalItems/t.itemsPerPage)},t.prototype.getTotalItems=function(){return this.service.getInstance(this.id).totalItems},t.prototype.checkValidId=function(){null==this.service.getInstance(this.id).id&&console.warn('PaginationControlsDirective: the specified id "'+this.id+'" does not match any registered PaginationInstance')},t.prototype.updatePageLinks=function(){var t=this,e=this.service.getInstance(this.id),n=this.outOfBoundCorrection(e);n!==e.currentPage?setTimeout(function(){t.pageBoundsCorrection.emit(n),t.pages=t.createPageArray(e.currentPage,e.itemsPerPage,e.totalItems,t.maxSize)}):this.pages=this.createPageArray(e.currentPage,e.itemsPerPage,e.totalItems,this.maxSize)},t.prototype.outOfBoundCorrection=function(t){var e=Math.ceil(t.totalItems/t.itemsPerPage);return e<t.currentPage&&0<e?e:t.currentPage<1?1:t.currentPage},t.prototype.createPageArray=function(t,e,n,s){s=+s;for(var i=[],r=Math.max(Math.ceil(n/e),1),o=Math.ceil(s/2),a=t<=o,l=r-o<t,c=!a&&!l,u=s<r,h=1;h<=r&&h<=s;){var d=this.calculatePageNumber(h,t,s,r);i.push({label:u&&(2===h&&(c||l)||h===s-1&&(c||a))?"...":d,value:d}),h++}return i},t.prototype.calculatePageNumber=function(t,e,n,s){var i=Math.ceil(n/2);return t===n?s:1===t?t:n<s?s-i<e?s-n+t:i<e?e-i+t:t:t},T([(0,s.IIB)(),C("design:type",String)],t.prototype,"id",void 0),T([(0,s.IIB)(),C("design:type",Number)],t.prototype,"maxSize",void 0),T([(0,s.r_U)(),C("design:type",s.vpe)],t.prototype,"pageChange",void 0),T([(0,s.r_U)(),C("design:type",s.vpe)],t.prototype,"pageBoundsCorrection",void 0),(t=T([C("design:paramtypes",[g,s.sBO])],t)).\u0275fac=function(e){return new(e||t)(s.Y36(g),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["pagination-template"],["","pagination-template",""]],inputs:{maxSize:"maxSize",id:"id"},outputs:{pageChange:"pageChange",pageBoundsCorrection:"pageBoundsCorrection"},exportAs:["paginationApi"],features:[s.TTD]}),t}(),E=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[g],imports:[[i.ez]]}),t}()},1796:(t,e,n)=>{"use strict";n.d(e,{pv:()=>d,cF:()=>p});var s=n(8583),i=n(3018);function r(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){return i.CHM(t),i.oxw().toggleZoom()}),i.qZA()}if(2&t){const t=i.oxw();i.ekj("pz-zoom-button-out",t.isZoomedIn)}}const o=["*"],a={transitionDuration:200,doubleTap:!0,doubleTapScale:2,limitZoom:"original image size",autoZoomOut:!1,zoomControlScale:1,minPanScale:1.0001,minScale:0,listeners:"mouse and touch",wheel:!0,wheelZoomFactor:.2,draggableImage:!1},l={"transition-duration":"transitionDuration",transitionDurationBackwardCompatibility:"transitionDuration","double-tap":"doubleTap",doubleTapBackwardCompatibility:"doubleTap","double-tap-scale":"doubleTapScale",doubleTapScaleBackwardCompatibility:"doubleTapScale","auto-zoom-out":"autoZoomOut",autoZoomOutBackwardCompatibility:"autoZoomOut","limit-zoom":"limitZoom",limitZoomBackwardCompatibility:"limitZoom"};class c{constructor(t){this.eventType=void 0,this.handlers={},this.startX=0,this.startY=0,this.lastTap=0,this.doubleTapMinTimeout=300,this.tapMinTimeout=200,this.touchstartTime=0,this.i=0,this.isMousedown=!1,this._touchListeners={touchstart:"handleTouchstart",touchmove:"handleTouchmove",touchend:"handleTouchend"},this._mouseListeners={mousedown:"handleMousedown",mousemove:"handleMousemove",mouseup:"handleMouseup",wheel:"handleWheel"},this._otherListeners={resize:"handleResize"},this.handleTouchstart=t=>{this.elementPosition=this.getElementPosition(),this.touchstartTime=(new Date).getTime(),void 0===this.eventType&&this.getTouchstartPosition(t),this.runHandler("touchstart",t)},this.handleTouchmove=t=>{this.detectPan(t.touches)&&this.runHandler("pan",t),this.detectPinch(t)&&this.runHandler("pinch",t)},this.handleTouchend=t=>{const e=t.touches;this.detectDoubleTap()&&this.runHandler("double-tap",t),this.detectTap(),this.runHandler("touchend",t),this.eventType="touchend",e&&0===e.length&&(this.eventType=void 0,this.i=0)},this.handleMousedown=t=>{this.isMousedown=!0,this.elementPosition=this.getElementPosition(),this.touchstartTime=(new Date).getTime(),void 0===this.eventType&&this.getMousedownPosition(t),this.runHandler("mousedown",t)},this.handleMousemove=t=>{if(this.isMousedown){switch(this.runHandler("pan",t),this.detectLinearSwipe(t)){case"horizontal-swipe":t.swipeType="horizontal-swipe",this.runHandler("horizontal-swipe",t);break;case"vertical-swipe":t.swipeType="vertical-swipe",this.runHandler("vertical-swipe",t)}(this.detectLinearSwipe(t)||"horizontal-swipe"===this.eventType||"vertical-swipe"===this.eventType)&&this.handleLinearSwipe(t)}},this.handleMouseup=t=>{this.detectTap(),this.isMousedown=!1,this.runHandler("mouseup",t),this.eventType=void 0,this.i=0},this.handleWheel=t=>{this.runHandler("wheel",t)},this.handleResize=t=>{this.runHandler("resize",t)},this.properties=t,this.element=this.properties.element,this.elementPosition=this.getElementPosition(),this.toggleEventListeners("addEventListener")}get touchListeners(){return this.properties.touchListeners?this.properties.touchListeners:this._touchListeners}get mouseListeners(){return this.properties.mouseListeners?this.properties.mouseListeners:this._mouseListeners}get otherListeners(){return this.properties.otherListeners?this.properties.otherListeners:this._otherListeners}destroy(){this.toggleEventListeners("removeEventListener")}toggleEventListeners(t){let e;for(var n in e="mouse and touch"===this.properties.listeners?Object.assign(this.touchListeners,this.mouseListeners):this.detectTouchScreen()?this.touchListeners:this.mouseListeners,this.properties.resize&&(e=Object.assign(e,this.otherListeners)),e){const s=e[n];"resize"===n?("addEventListener"===t&&window.addEventListener(n,this[s],!1),"removeEventListener"===t&&window.removeEventListener(n,this[s],!1)):"mouseup"===n||"mousemove"===n?("addEventListener"===t&&document.addEventListener(n,this[s],!1),"removeEventListener"===t&&document.removeEventListener(n,this[s],!1)):("addEventListener"===t&&this.element.addEventListener(n,this[s],!1),"removeEventListener"===t&&this.element.removeEventListener(n,this[s],!1))}}addEventListeners(t){window.addEventListener(t,this[this._mouseListeners[t]],!1)}removeEventListeners(t){window.removeEventListener(t,this[this._mouseListeners[t]],!1)}handleLinearSwipe(t){this.i++,this.i>3&&(this.eventType=this.getLinearSwipeType(t)),"horizontal-swipe"===this.eventType&&this.runHandler("horizontal-swipe",t),"vertical-swipe"===this.eventType&&this.runHandler("vertical-swipe",t)}runHandler(t,e){this.handlers[t]&&this.handlers[t](e)}detectPan(t){return 1===t.length&&!this.eventType||"pan"===this.eventType}detectDoubleTap(){if(null!=this.eventType)return;const t=(new Date).getTime(),e=t-this.lastTap;if(clearTimeout(this.doubleTapTimeout),e<this.doubleTapMinTimeout&&e>0)return!0;this.doubleTapTimeout=setTimeout(()=>{clearTimeout(this.doubleTapTimeout)},this.doubleTapMinTimeout),this.lastTap=t}detectTap(){if(null!=this.eventType)return;const t=(new Date).getTime()-this.touchstartTime;t>0&&this.runHandler(t<this.tapMinTimeout?"tap":"longtap",{})}detectPinch(t){return 2===t.touches.length&&void 0===this.eventType||"pinch"===this.eventType}detectLinearSwipe(t){const e=t.touches;if(e){if(1===e.length&&!this.eventType||"horizontal-swipe"===this.eventType||"vertical-swipe"===this.eventType)return this.getLinearSwipeType(t)}else if(!this.eventType||"horizontal-swipe"===this.eventType||"vertical-swipe"===this.eventType)return this.getLinearSwipeType(t)}getLinearSwipeType(t){if("horizontal-swipe"!==this.eventType&&"vertical-swipe"!==this.eventType){const e=Math.abs(this.moveLeft(0,t)-this.startX);return 3*Math.abs(this.moveTop(0,t)-this.startY)>e?"vertical-swipe":"horizontal-swipe"}return this.eventType}getElementPosition(){return this.element.getBoundingClientRect()}getTouchstartPosition(t){this.startX=t.touches[0].clientX-this.elementPosition.left,this.startY=t.touches[0].clientY-this.elementPosition.top}getMousedownPosition(t){this.startX=t.clientX-this.elementPosition.left,this.startY=t.clientY-this.elementPosition.top}moveLeft(t,e){const n=e.touches;return n?n[t].clientX-this.elementPosition.left:e.clientX-this.elementPosition.left}moveTop(t,e){const n=e.touches;return n?n[t].clientY-this.elementPosition.top:e.clientY-this.elementPosition.top}detectTouchScreen(){var t,e=" -webkit- -moz- -o- -ms- ".split(" ");return"ontouchstart"in window||(t=["(",e.join("touch-enabled),("),"heartz",")"].join(""),window.matchMedia(t).matches)}on(t,e){t&&(this.handlers[t]=e)}}class u{constructor(t){this.properties=a,this.i=0,this.scale=1,this.initialScale=1,this.startX=0,this.startY=0,this.moveX=0,this.moveY=0,this.initialMoveX=0,this.initialMoveY=0,this.moveXC=0,this.moveYC=0,this.lastTap=0,this.draggingMode=!1,this.distance=0,this.doubleTapTimeout=0,this.initialDistance=0,this.events={},this.defaultMaxScale=3,this.handleTouchstart=t=>{this.touches.addEventListeners("mousemove","handleMousemove"),this.getElementPosition(),void 0===this.eventType&&this.getTouchstartPosition(t)},this.handleTouchend=t=>{if("touchend"===t.type){this.i=0,this.draggingMode=!1;const e=t.touches;this.scale<1&&(this.scale=1),this.properties.autoZoomOut&&"pinch"===this.eventType&&(this.scale=1),("pinch"===this.eventType||"pan"===this.eventType&&this.scale>this.minPanScale)&&this.alignImage(),"pinch"!==this.eventType&&"pan"!==this.eventType&&"horizontal-swipe"!==this.eventType&&"vertical-swipe"!==this.eventType||this.updateInitialValues(),this.eventType="touchend",e&&0===e.length&&(this.eventType=void 0)}"mouseup"===t.type&&(this.draggingMode=!1,this.updateInitialValues(),this.eventType=void 0),this.touches.removeEventListeners("mousemove","handleMousemove")},this.handlePan=t=>{if(this.scale<this.minPanScale||this.properties.disablePan)return;t.preventDefault();const{clientX:e,clientY:n}=this.getClientPosition(t);this.eventType||(this.startX=e-this.elementPosition.left,this.startY=n-this.elementPosition.top),this.eventType="pan",this.moveX=this.initialMoveX+(this.moveLeft(t,0)-this.startX),this.moveY=this.initialMoveY+(this.moveTop(t,0)-this.startY),this.properties.limitPan&&(this.limitPanY(),this.limitPanX()),"mousemove"===t.type&&this.scale>this.minPanScale&&this.centeringImage(),this.transformElement(0)},this.handleDoubleTap=t=>{this.toggleZoom(t)},this.handlePinch=t=>{if(t.preventDefault(),void 0===this.eventType||"pinch"===this.eventType){const e=t.touches;if(!this.eventType){this.initialDistance=this.getDistance(e);const n=this.moveLeft(t,0),s=this.moveLeft(t,1),i=this.moveTop(t,0),r=this.moveTop(t,1);this.moveXC=(n+s)/2-this.initialMoveX,this.moveYC=(i+r)/2-this.initialMoveY}this.eventType="pinch",this.distance=this.getDistance(e),this.scale=this.initialScale*(this.distance/this.initialDistance),this.moveX=this.initialMoveX-(this.distance/this.initialDistance*this.moveXC-this.moveXC),this.moveY=this.initialMoveY-(this.distance/this.initialDistance*this.moveYC-this.moveYC),this.handleLimitZoom(),this.properties.limitPan&&(this.limitPanY(),this.limitPanX()),this.transformElement(0)}},this.handleWheel=t=>{t.preventDefault();let e=this.properties.wheelZoomFactor||0,n=this.initialScale+(t.deltaY<0?e:-e);n<1+e?n=1:n<this.maxScale&&n>this.maxScale-e&&(n=this.maxScale),n<1||n>this.maxScale||n!==this.scale&&(this.getElementPosition(),this.scale=n,this.setZoom({scale:n,center:[t.clientX-this.elementPosition.left-this.initialMoveX,t.clientY-this.elementPosition.top-this.initialMoveY]}))},this.handleResize=t=>{this.setAutoHeight()},this.element=t.element,this.element&&(this.elementTarget=this.element.querySelector("*").tagName,this.parentElement=this.element.parentElement,this.properties=Object.assign({},a,t),this.detectLimitZoom(),this.touches=new c({element:t.element,listeners:t.listeners,resize:t.autoHeight,mouseListeners:{mousedown:"handleMousedown",mouseup:"handleMouseup",wheel:"handleWheel"}}),this.setBasicStyles(),this.touches.on("touchstart",this.handleTouchstart),this.touches.on("touchend",this.handleTouchend),this.touches.on("mousedown",this.handleTouchstart),this.touches.on("mouseup",this.handleTouchend),this.touches.on("pan",this.handlePan),this.touches.on("mousemove",this.handlePan),this.touches.on("pinch",this.handlePinch),this.properties.wheel&&this.touches.on("wheel",this.handleWheel),this.properties.doubleTap&&this.touches.on("double-tap",this.handleDoubleTap),this.properties.autoHeight&&this.touches.on("resize",this.handleResize))}get minPanScale(){return this.getPropertiesValue("minPanScale")}get fullImage(){return this.properties.fullImage}handleLimitZoom(){const t=this.maxScale,e=this.properties.minScale||0;if(this.scale>t||this.scale<=e){const n=this.getImageWidth(),s=this.getImageHeight(),i=this.moveX/(n*this.scale-n),r=this.moveY/(s*this.scale-s);this.scale>t&&(this.scale=t),this.scale<=e&&(this.scale=e);const o=s*this.scale;this.moveX=-Math.abs(i*(n*this.scale-n)),this.moveY=-Math.abs(-r*(o-s))}}moveLeft(t,e=0){return this.getClientPosition(t,e).clientX-this.elementPosition.left}moveTop(t,e=0){return this.getClientPosition(t,e).clientY-this.elementPosition.top}centeringImage(){const t=this.element.getElementsByTagName(this.elementTarget)[0],e=this.moveX,n=this.moveY;return this.moveY>0&&(this.moveY=0),this.moveX>0&&(this.moveX=0),t&&(this.limitPanY(),this.limitPanX()),t&&this.scale<1&&this.moveX<this.element.offsetWidth*(1-this.scale)&&(this.moveX=this.element.offsetWidth*(1-this.scale)),e!==this.moveX||n!==this.moveY}limitPanY(){const t=this.getImageHeight(),e=t*this.scale,n=this.parentElement.offsetHeight,s=this.element.offsetHeight;if(e<n)this.moveY=(n-s*this.scale)/2;else{const i=(t-s)*this.scale/2;this.moveY>i?this.moveY=i:e+Math.abs(i)-n+this.moveY<0&&(this.moveY=-(e+Math.abs(i)-n))}}limitPanX(){const t=this.getImageWidth(),e=t*this.scale,n=this.parentElement.offsetWidth,s=this.element.offsetWidth;if(e<n)this.moveX=(n-s*this.scale)/2;else{const i=(t-s)*this.scale/2;this.moveX>i?this.moveX=i:e+Math.abs(i)-n+this.moveX<0&&(this.moveX=-(t*this.scale+Math.abs(i)-n))}}setBasicStyles(){this.element.style.display="flex",this.element.style.alignItems="center",this.element.style.justifyContent="center",this.element.style.transformOrigin="0 0",this.setImageSize(),this.setDraggableImage()}removeBasicStyles(){this.element.style.display="",this.element.style.alignItems="",this.element.style.justifyContent="",this.element.style.transformOrigin="",this.removeImageSize(),this.removeDraggableImage()}setDraggableImage(){const t=this.getImageElement();t&&(t.draggable=this.properties.draggableImage)}removeDraggableImage(){const t=this.getImageElement();t&&(t.draggable=!0)}setImageSize(){const t=this.element.getElementsByTagName(this.elementTarget);t.length&&(t[0].style.maxWidth="100%",t[0].style.maxHeight="100%",this.setAutoHeight())}setAutoHeight(){const t=this.element.getElementsByTagName(this.elementTarget);if(!this.properties.autoHeight||!t.length)return;const e=t[0].getAttribute("width"),n=t[0].getAttribute("height");t[0].style.maxHeight=this.parentElement.offsetWidth/(e/n)+"px"}removeImageSize(){const t=this.element.getElementsByTagName(this.elementTarget);t.length&&(t[0].style.maxWidth="",t[0].style.maxHeight="")}getElementPosition(){this.elementPosition=this.element.parentElement.getBoundingClientRect()}getTouchstartPosition(t){const{clientX:e,clientY:n}=this.getClientPosition(t);this.startX=e-this.elementPosition.left,this.startY=n-this.elementPosition.top}getClientPosition(t,e=0){let n,s;return"touchstart"!==t.type&&"touchmove"!==t.type||(n=t.touches[e].clientX,s=t.touches[e].clientY),"mousedown"!==t.type&&"mousemove"!==t.type||(n=t.clientX,s=t.clientY),{clientX:n,clientY:s}}resetScale(){this.scale=1,this.moveX=0,this.moveY=0,this.updateInitialValues(),this.transformElement(this.properties.transitionDuration)}updateInitialValues(){this.initialScale=this.scale,this.initialMoveX=this.moveX,this.initialMoveY=this.moveY}getDistance(t){return Math.sqrt(Math.pow(t[0].pageX-t[1].pageX,2)+Math.pow(t[0].pageY-t[1].pageY,2))}getImageHeight(){return this.element.getElementsByTagName(this.elementTarget)[0].offsetHeight}getImageWidth(){return this.element.getElementsByTagName(this.elementTarget)[0].offsetWidth}transformElement(t){this.element.style.transition="all "+t+"ms",this.element.style.transform="matrix("+Number(this.scale)+", 0, 0, "+Number(this.scale)+", "+Number(this.moveX)+", "+Number(this.moveY)+")"}isTouchScreen(){const t=" -webkit- -moz- -o- -ms- ".split(" ");if("ontouchstart"in window)return!0;const e=["(",t.join("touch-enabled),("),"heartz",")"].join("");return this.getMatchMedia(e)}getMatchMedia(t){return window.matchMedia(t).matches}isDragging(){if(this.properties.disablePan)return!1;const t=this.getImageHeight(),e=this.getImageWidth();return this.scale>1?t*this.scale>this.parentElement.offsetHeight||e*this.scale>this.parentElement.offsetWidth:1===this.scale?t>this.parentElement.offsetHeight||e>this.parentElement.offsetWidth:void 0}detectLimitZoom(){this.maxScale=this.defaultMaxScale,"original image size"===this.properties.limitZoom&&"IMG"===this.elementTarget&&this.pollLimitZoomForOriginalImage()}pollLimitZoomForOriginalImage(){let t=setInterval(()=>{let e=this.getMaxScaleForOriginalImage();"number"==typeof e&&(this.maxScale=e,clearInterval(t))},10)}getMaxScaleForOriginalImage(){let t,e=this.element.getElementsByTagName("img")[0];return e.naturalWidth&&e.offsetWidth&&(t=e.naturalWidth/e.offsetWidth),t}getImageElement(){const t=this.element.getElementsByTagName(this.elementTarget);if(t.length)return t[0]}toggleZoom(t=!1){if(1===this.initialScale){if(t&&t.changedTouches){if(void 0===this.properties.doubleTapScale)return;const e=t.changedTouches;this.scale=this.initialScale*this.properties.doubleTapScale,this.moveX=this.initialMoveX-(e[0].clientX-this.elementPosition.left)*(this.properties.doubleTapScale-1),this.moveY=this.initialMoveY-(e[0].clientY-this.elementPosition.top)*(this.properties.doubleTapScale-1)}else this.scale=this.initialScale*((this.properties.zoomControlScale||0)+1),this.moveX=this.initialMoveX-this.element.offsetWidth*(this.scale-1)/2,this.moveY=this.initialMoveY-this.element.offsetHeight*(this.scale-1)/2;this.centeringImage(),this.updateInitialValues(),this.transformElement(this.properties.transitionDuration)}else this.resetScale()}setZoom(t){let e,n;this.scale=t.scale;let s=this.element.offsetWidth,i=s*this.scale/(s*this.initialScale);t.center?(e=t.center[0],n=t.center[1]):(e=s/2-this.initialMoveX,n=this.element.offsetHeight/2-this.initialMoveY),this.moveX=this.initialMoveX-(i*e-e),this.moveY=this.initialMoveY-(i*n-n),this.centeringImage(),this.updateInitialValues(),this.transformElement(this.properties.transitionDuration)}alignImage(){this.centeringImage()&&(this.updateInitialValues(),this.transformElement(this.properties.transitionDuration))}destroy(){this.removeBasicStyles(),this.touches.destroy()}getPropertiesValue(t){return this.properties&&this.properties[t]?this.properties[t]:a[t]}}const h={overflow:"hidden",disableZoomControl:"auto",backgroundColor:"rgba(0,0,0,0.85)"};let d=(()=>{class t{constructor(t){this.elementRef=t,this.defaultComponentProperties=this.getDefaultComponentProperties(),this.applyPropertiesDefault(this.defaultComponentProperties,{})}set properties(t){t&&(this._properties=t)}get properties(){return this._properties}set transitionDurationBackwardCompatibility(t){t&&(this._transitionDuration=t)}set transitionDuration(t){t&&(this._transitionDuration=t)}get transitionDuration(){return this._transitionDuration}set doubleTapBackwardCompatibility(t){t&&(this._doubleTap=t)}set doubleTap(t){t&&(this._doubleTap=t)}get doubleTap(){return this._doubleTap}set doubleTapScaleBackwardCompatibility(t){t&&(this._doubleTapScale=t)}set doubleTapScale(t){t&&(this._doubleTapScale=t)}get doubleTapScale(){return this._doubleTapScale}set autoZoomOutBackwardCompatibility(t){t&&(this._autoZoomOut=t)}set autoZoomOut(t){t&&(this._autoZoomOut=t)}get autoZoomOut(){return this._autoZoomOut}set limitZoomBackwardCompatibility(t){t&&(this._limitZoom=t)}set limitZoom(t){t&&(this._limitZoom=t)}get limitZoom(){return this._limitZoom}get hostOverflow(){return this.properties.overflow}get hostBackgroundColor(){return this.properties.backgroundColor}get isTouchScreen(){var t,e=" -webkit- -moz- -o- -ms- ".split(" ");return"ontouchstart"in window||(t=["(",e.join("touch-enabled),("),"heartz",")"].join(""),window.matchMedia(t).matches)}get isDragging(){return this.pinchZoom?this.pinchZoom.isDragging():void 0}get isDisabled(){return this.properties.disabled}get scale(){return this.pinchZoom.scale}get isZoomedIn(){return this.scale>1}get scaleLevel(){return Math.round(this.scale/this._zoomControlScale)}get maxScale(){return this.pinchZoom.maxScale}get isZoomLimitReached(){return this.scale>=this.maxScale}get _zoomControlScale(){return this.getPropertiesValue("zoomControlScale")}ngOnInit(){this.initPinchZoom(),this.detectLimitZoom()}ngOnChanges(t){let e=this.getProperties(t);e=this.renameProperties(e),this.applyPropertiesDefault(this.defaultComponentProperties,e)}ngOnDestroy(){this.destroy()}initPinchZoom(){this.properties.disabled||(this.properties.element=this.elementRef.nativeElement.querySelector(".pinch-zoom-content"),this.pinchZoom=new u(this.properties))}getProperties(t){let e={};for(var n in t)"properties"!==n&&(e[n]=t[n].currentValue),"properties"===n&&(e=t[n].currentValue);return e}renameProperties(t){for(var e in t)l[e]&&(t[l[e]]=t[e],delete t[e]);return t}applyPropertiesDefault(t,e){this.properties=Object.assign({},t,e)}toggleZoom(){this.pinchZoom.toggleZoom()}isControl(){return!(this.isDisabled||"disable"===this.properties.disableZoomControl||this.isTouchScreen&&"auto"===this.properties.disableZoomControl)}detectLimitZoom(){this.pinchZoom&&this.pinchZoom.detectLimitZoom()}destroy(){this.pinchZoom.destroy()}getPropertiesValue(t){return this.properties&&this.properties[t]?this.properties[t]:this.defaultComponentProperties[t]}getDefaultComponentProperties(){return Object.assign(Object.assign({},a),h)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq))},t.\u0275cmp=i.Xpm({type:t,selectors:[["pinch-zoom"],["","pinch-zoom",""]],hostVars:4,hostBindings:function(t,e){2&t&&i.Udp("overflow",e.hostOverflow)("background-color",e.hostBackgroundColor)},inputs:{properties:"properties",transitionDurationBackwardCompatibility:["transition-duration","transitionDurationBackwardCompatibility"],transitionDuration:"transitionDuration",doubleTapBackwardCompatibility:["double-tap","doubleTapBackwardCompatibility"],doubleTap:"doubleTap",doubleTapScaleBackwardCompatibility:["double-tap-scale","doubleTapScaleBackwardCompatibility"],doubleTapScale:"doubleTapScale",autoZoomOutBackwardCompatibility:["auto-zoom-out","autoZoomOutBackwardCompatibility"],autoZoomOut:"autoZoomOut",limitZoomBackwardCompatibility:["limit-zoom","limitZoomBackwardCompatibility"],limitZoom:"limitZoom",disabled:"disabled",disablePan:"disablePan",overflow:"overflow",zoomControlScale:"zoomControlScale",disableZoomControl:"disableZoomControl",backgroundColor:"backgroundColor",limitPan:"limitPan",minPanScale:"minPanScale",minScale:"minScale",listeners:"listeners",wheel:"wheel",autoHeight:"autoHeight",wheelZoomFactor:"wheelZoomFactor",draggableImage:"draggableImage"},exportAs:["pinchZoom"],features:[i.TTD],ngContentSelectors:o,decls:3,vars:3,consts:[[1,"pinch-zoom-content"],["class","pz-zoom-button pz-zoom-control-position-bottom",3,"pz-zoom-button-out","click",4,"ngIf"],[1,"pz-zoom-button","pz-zoom-control-position-bottom",3,"click"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"div",0),i.Hsn(1),i.qZA(),i.YNc(2,r,1,2,"div",1)),2&t&&(i.ekj("pz-dragging",e.isDragging),i.xp6(2),i.Q6J("ngIf",e.isControl()))},directives:[s.O5],styles:["[_nghost-%COMP%]{display:block;overflow:hidden;position:relative}.pinch-zoom-content[_ngcontent-%COMP%]{height:inherit}.pz-dragging[_ngcontent-%COMP%]{cursor:all-scroll}.pz-zoom-button[_ngcontent-%COMP%]{-webkit-user-select:none;background-color:rgba(0,0,0,.8);background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgc3R5bGU9IiI+PHJlY3QgaWQ9ImJhY2tncm91bmRyZWN0IiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4PSIwIiB5PSIwIiBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiLz48ZyBjbGFzcz0iY3VycmVudExheWVyIiBzdHlsZT0iIj48dGl0bGU+TGF5ZXIgMTwvdGl0bGU+PHBhdGggZD0iTTE1LjUgMTRoLS43OWwtLjI4LS4yN0MxNS40MSAxMi41OSAxNiAxMS4xMSAxNiA5LjUgMTYgNS45MSAxMy4wOSAzIDkuNSAzUzMgNS45MSAzIDkuNSA1LjkxIDE2IDkuNSAxNmMxLjYxIDAgMy4wOS0uNTkgNC4yMy0xLjU3bC4yNy4yOHYuNzlsNSA0Ljk5TDIwLjQ5IDE5bC00Ljk5LTV6bS02IDBDNy4wMSAxNCA1IDExLjk5IDUgOS41UzcuMDEgNSA5LjUgNSAxNCA3LjAxIDE0IDkuNSAxMS45OSAxNCA5LjUgMTR6IiBpZD0ic3ZnXzEiIGNsYXNzPSIiIGZpbGw9IiNmZmZmZmYiIGZpbGwtb3BhY2l0eT0iMSIvPjxwYXRoIGQ9Ik0xMiAxMGgtMnYySDl2LTJIN1Y5aDJWN2gxdjJoMnYxeiIgaWQ9InN2Z18zIiBjbGFzcz0iIiBmaWxsPSIjZmZmZmZmIiBmaWxsLW9wYWNpdHk9IjEiLz48L2c+PC9zdmc+),url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHJlY3QgaWQ9ImJhY2tncm91bmRyZWN0IiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4PSIwIiB5PSIwIiBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiLz48ZyBjbGFzcz0iY3VycmVudExheWVyIiBzdHlsZT0iIj48dGl0bGU+TGF5ZXIgMTwvdGl0bGU+PHBhdGggZD0iTTE1LjUgMTRoLS43OWwtLjI4LS4yN0MxNS40MSAxMi41OSAxNiAxMS4xMSAxNiA5LjUgMTYgNS45MSAxMy4wOSAzIDkuNSAzUzMgNS45MSAzIDkuNSA1LjkxIDE2IDkuNSAxNmMxLjYxIDAgMy4wOS0uNTkgNC4yMy0xLjU3bC4yNy4yOHYuNzlsNSA0Ljk5TDIwLjQ5IDE5bC00Ljk5LTV6bS02IDBDNy4wMSAxNCA1IDExLjk5IDUgOS41UzcuMDEgNSA5LjUgNSAxNCA3LjAxIDE0IDkuNSAxMS45OSAxNCA5LjUgMTR6TTcgOWg1djFIN3oiIGlkPSJzdmdfMiIgY2xhc3M9IiIgZmlsbD0iI2ZmZmZmZiIgZmlsbC1vcGFjaXR5PSIxIi8+PC9nPjwvc3ZnPg==);background-position:50%,-1000px;background-repeat:no-repeat,no-repeat;background-size:40px;border-radius:4px;color:#fff;cursor:pointer;height:56px;opacity:.5;position:absolute;transition:opacity .1s;user-select:none;width:56px;z-index:1000}.pz-zoom-button-out[_ngcontent-%COMP%]{background-position:-1000px,50%}.pz-zoom-button[_ngcontent-%COMP%]:hover{opacity:.7}.pz-zoom-button.pz-zoom-control-position-right[_ngcontent-%COMP%]{margin-top:-28px;right:16px;top:50%}.pz-zoom-button.pz-zoom-control-position-right-bottom[_ngcontent-%COMP%]{bottom:32px;right:16px}.pz-zoom-button.pz-zoom-control-position-bottom[_ngcontent-%COMP%]{bottom:16px;left:50%;margin-left:-28px}.pz-zoom-control[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.8);border-radius:4px;overflow:hidden;position:absolute}.pz-zoom-control.pz-zoom-control-position-right[_ngcontent-%COMP%]{margin-top:-48px;right:16px;top:50%}.pz-zoom-control.pz-zoom-control-position-right-bottom[_ngcontent-%COMP%]{bottom:32px;right:16px}.pz-zoom-control.pz-zoom-control-position-bottom[_ngcontent-%COMP%]{bottom:16px;left:50%;margin-left:-48px}.pz-zoom-in[_ngcontent-%COMP%], .pz-zoom-out[_ngcontent-%COMP%]{background-position:50%;background-repeat:no-repeat;cursor:pointer;height:48px;opacity:1;width:48px}.pz-zoom-in[_ngcontent-%COMP%]:hover, .pz-zoom-out[_ngcontent-%COMP%]:hover{background-color:hsla(0,0%,100%,.2)}.pz-zoom-control-position-bottom[_ngcontent-%COMP%]   .pz-zoom-in[_ngcontent-%COMP%], .pz-zoom-control-position-bottom[_ngcontent-%COMP%]   .pz-zoom-out[_ngcontent-%COMP%]{float:right}.pz-disabled[_ngcontent-%COMP%]{cursor:default;opacity:.5}.pz-disabled[_ngcontent-%COMP%]:hover{background-color:hsla(0,0%,100%,0)}.pz-zoom-in[_ngcontent-%COMP%]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgc3R5bGU9IiI+PHJlY3QgaWQ9ImJhY2tncm91bmRyZWN0IiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4PSIwIiB5PSIwIiBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiLz48ZyBjbGFzcz0iY3VycmVudExheWVyIiBzdHlsZT0iIj48dGl0bGU+TGF5ZXIgMTwvdGl0bGU+PHBhdGggZD0iTTE5IDEzaC02djZoLTJ2LTZINXYtMmg2VjVoMnY2aDZ2MnoiIGlkPSJzdmdfMSIgY2xhc3M9IiIgc3Ryb2tlPSJub25lIiBmaWxsPSIjZmZmZmZmIiBmaWxsLW9wYWNpdHk9IjEiLz48cGF0aCBkPSJNLTE1LjgzNjczNDQyMDQ2MTY1Myw0NC41MzU0MDkzMDY3MTAxOCBoNTguMjA0MDgwODI3NTkzMDkgdi02LjU3NjIyNjcyMzM2OTIyMTUgSC0xNS44MzY3MzQ0MjA0NjE2NTMgeiIgZmlsbD0ibm9uZSIgaWQ9InN2Z18yIiBjbGFzcz0iIiBzdHJva2U9Im5vbmUiLz48L2c+PC9zdmc+)}.pz-zoom-out[_ngcontent-%COMP%]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHJlY3QgaWQ9ImJhY2tncm91bmRyZWN0IiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4PSIwIiB5PSIwIiBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiLz48ZyBjbGFzcz0iY3VycmVudExheWVyIiBzdHlsZT0iIj48dGl0bGU+TGF5ZXIgMTwvdGl0bGU+PHBhdGggZD0iTTE5IDEzSDV2LTJoMTR2MnoiIGlkPSJzdmdfMSIgY2xhc3M9IiIgZmlsbD0iI2ZmZmZmZiIgZmlsbC1vcGFjaXR5PSIxIi8+PC9nPjwvc3ZnPg==)}"]}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[],imports:[[s.ez]]}),t})()},9344:(t,e,n)=>{"use strict";n.d(e,{Rh:()=>N,_W:()=>P});var s=n(3018),i=n(7238),r=n(9765),o=n(9075),a=n(8583);const l=["toast-component",""];function c(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",5),s.NdJ("click",function(){return s.CHM(t),s.oxw().remove()}),s.TgZ(1,"span",6),s._uU(2,"\xd7"),s.qZA(),s.qZA()}}function u(t,e){if(1&t&&(s.ynx(0),s._uU(1),s.BQk()),2&t){const t=s.oxw(2);s.xp6(1),s.hij("[",t.duplicatesCount+1,"]")}}function h(t,e){if(1&t&&(s.TgZ(0,"div"),s._uU(1),s.YNc(2,u,2,1,"ng-container",4),s.qZA()),2&t){const t=s.oxw();s.Tol(t.options.titleClass),s.uIk("aria-label",t.title),s.xp6(1),s.hij(" ",t.title," "),s.xp6(1),s.Q6J("ngIf",t.duplicatesCount)}}function d(t,e){if(1&t&&s._UZ(0,"div",7),2&t){const t=s.oxw();s.Tol(t.options.messageClass),s.Q6J("innerHTML",t.message,s.oJD)}}function p(t,e){if(1&t&&(s.TgZ(0,"div",8),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.Tol(t.options.messageClass),s.uIk("aria-label",t.message),s.xp6(1),s.hij(" ",t.message," ")}}function f(t,e){if(1&t&&(s.TgZ(0,"div"),s._UZ(1,"div",9),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Udp("width",t.width+"%")}}function g(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",5),s.NdJ("click",function(){return s.CHM(t),s.oxw().remove()}),s.TgZ(1,"span",6),s._uU(2,"\xd7"),s.qZA(),s.qZA()}}function m(t,e){if(1&t&&(s.ynx(0),s._uU(1),s.BQk()),2&t){const t=s.oxw(2);s.xp6(1),s.hij("[",t.duplicatesCount+1,"]")}}function y(t,e){if(1&t&&(s.TgZ(0,"div"),s._uU(1),s.YNc(2,m,2,1,"ng-container",4),s.qZA()),2&t){const t=s.oxw();s.Tol(t.options.titleClass),s.uIk("aria-label",t.title),s.xp6(1),s.hij(" ",t.title," "),s.xp6(1),s.Q6J("ngIf",t.duplicatesCount)}}function v(t,e){if(1&t&&s._UZ(0,"div",7),2&t){const t=s.oxw();s.Tol(t.options.messageClass),s.Q6J("innerHTML",t.message,s.oJD)}}function _(t,e){if(1&t&&(s.TgZ(0,"div",8),s._uU(1),s.qZA()),2&t){const t=s.oxw();s.Tol(t.options.messageClass),s.uIk("aria-label",t.message),s.xp6(1),s.hij(" ",t.message," ")}}function b(t,e){if(1&t&&(s.TgZ(0,"div"),s._UZ(1,"div",9),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Udp("width",t.width+"%")}}class w{constructor(t,e,n,s,i,o){this.toastId=t,this.config=e,this.message=n,this.title=s,this.toastType=i,this.toastRef=o,this._onTap=new r.xQ,this._onAction=new r.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(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const S={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"},T=new s.OlP("ToastConfig");class C{constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class x extends class{attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}{constructor(t,e,n){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=n}attachComponentPortal(t,e){const n=this._componentFactoryResolver.resolveComponentFactory(t.component);let s;return s=n.create(t.injector),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.detachView(s.hostView),s.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(s),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(s)),s}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let E=(()=>{class t{constructor(t){this._document=t}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.createElement("div");t.classList.add("overlay-container"),this._document.body.appendChild(t),this._containerElement=t}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})();class k{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let A=(()=>{class t{constructor(t,e,n,s){this._overlayContainer=t,this._componentFactoryResolver=e,this._appRef=n,this._document=s,this._paneElements=new Map}create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){const n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(t){return new x(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new k(this._createPortalHost(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(E),s.LFG(s._Vd),s.LFG(s.z2F),s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(E),s.LFG(s._Vd),s.LFG(s.z2F),s.LFG(a.K0))},token:t,providedIn:"root"}),t})();class I{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new r.xQ,this._activate=new r.xQ,this._manualClose=new r.xQ,this._resetTimeout=new r.xQ,this._countDuplicate=new r.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(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class O{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,n){return t===w?this._toastPackage:this._parentInjector.get(t,e,n)}}let P=(()=>{class t{constructor(t,e,n,s,i){this.overlay=e,this._injector=n,this.sanitizer=s,this.ngZone=i,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},t.default.iconClasses),t.config.iconClasses))}show(t,e,n={},s=""){return this._preBuildNotification(s,t,e,this.applyConfig(n))}success(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,e,this.applyConfig(n))}error(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,e,this.applyConfig(n))}info(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,e,this.applyConfig(n))}warning(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,e,this.applyConfig(n))}clear(t){for(const e of this.toasts)if(void 0!==t){if(e.toastId===t)return void e.toastRef.manualClose()}else e.toastRef.manualClose()}remove(t){const e=this._findToast(t);if(!e)return!1;if(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length)return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const t=this.toasts[this.currentlyActive].toastRef;t.isInactive()||(this.currentlyActive=this.currentlyActive+1,t.activate())}return!0}findDuplicate(t="",e="",n,s){const{includeTitleDuplicates:i}=this.toastrConfig;for(const r of this.toasts){const o=i&&r.title===t;if((!i||o)&&r.message===e)return r.toastRef.onDuplicate(n,s),r}return null}applyConfig(t={}){return Object.assign(Object.assign({},this.toastrConfig),t)}_findToast(t){for(let e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null}_preBuildNotification(t,e,n,s){return s.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,e,n,s)):this._buildNotification(t,e,n,s)}_buildNotification(t,e,n,i){if(!i.toastComponent)throw new Error("toastComponent required");const r=this.findDuplicate(n,e,this.toastrConfig.resetTimeoutOnDuplicate&&i.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&n||e)&&this.toastrConfig.preventDuplicates&&null!==r)return r;this.previousToastMessage=e;let o=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(o=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const a=this.overlay.create(i.positionClass,this.overlayContainer);this.index=this.index+1;let l=e;e&&i.enableHtml&&(l=this.sanitizer.sanitize(s.q3G.HTML,e));const c=new I(a),u=new w(this.index,i,l,n,t,c),h=new O(u,this._injector),d=new C(i.toastComponent,h),p=a.attach(d,this.toastrConfig.newestOnTop);c.componentInstance=p.instance;const f={toastId:this.index,title:n||"",message:e||"",toastRef:c,onShown:c.afterActivate(),onHidden:c.afterClosed(),onTap:u.onTap(),onAction:u.onAction(),portal:p};return o||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{f.toastRef.activate()})),this.toasts.push(f),f}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(T),s.LFG(A),s.LFG(s.zs3),s.LFG(o.H7),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(T),s.LFG(A),s.LFG(s.gxx),s.LFG(o.H7),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})(),D=(()=>{class t{constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.ngZone=n,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(t=>{this.duplicatesCount=t})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},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 t=(new Date).getTime();this.width=(this.hideTime-t)/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=Object.assign(Object.assign({},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=Object.assign(Object.assign({},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&&(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(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(P),s.Y36(w),s.Y36(s.R0b))},t.\u0275cmp=s.Xpm({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.tapToast()})("mouseenter",function(){return e.stickAround()})("mouseleave",function(){return e.delayedHideToast()}),2&t&&(s.d8E("@flyInOut",e.state),s.Tol(e.toastClasses),s.Udp("display",e.displayStyle))},attrs:l,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(s.YNc(0,c,3,0,"button",0),s.YNc(1,h,3,5,"div",1),s.YNc(2,d,1,3,"div",2),s.YNc(3,p,2,4,"div",3),s.YNc(4,f,2,2,"div",4)),2&t&&(s.Q6J("ngIf",e.options.closeButton),s.xp6(1),s.Q6J("ngIf",e.title),s.xp6(1),s.Q6J("ngIf",e.message&&e.options.enableHtml),s.xp6(1),s.Q6J("ngIf",e.message&&!e.options.enableHtml),s.xp6(1),s.Q6J("ngIf",e.options.progressBar))},directives:[a.O5],encapsulation:2,data:{animation:[(0,i.X$)("flyInOut",[(0,i.SB)("inactive",(0,i.oB)({opacity:0})),(0,i.SB)("active",(0,i.oB)({opacity:1})),(0,i.SB)("removed",(0,i.oB)({opacity:0})),(0,i.eR)("inactive => active",(0,i.jt)("{{ easeTime }}ms {{ easing }}")),(0,i.eR)("active => removed",(0,i.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),t})();const L=Object.assign(Object.assign({},S),{toastComponent:D});let N=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:T,useValue:{default:L,config:e}}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[a.ez]]}),t})(),M=(()=>{class t{constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.appRef=n,this.width=-1,this.toastClasses="",this.state="inactive",this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(t=>{this.duplicatesCount=t})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/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="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(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&&(this.timeout=setTimeout(()=>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.intervalId=setInterval(()=>this.updateProgress(),10)))}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(P),s.Y36(w),s.Y36(s.z2F))},t.\u0275cmp=s.Xpm({type:t,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.tapToast()})("mouseenter",function(){return e.stickAround()})("mouseleave",function(){return e.delayedHideToast()}),2&t&&(s.Tol(e.toastClasses),s.Udp("display",e.displayStyle))},attrs:l,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","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"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(s.YNc(0,g,3,0,"button",0),s.YNc(1,y,3,5,"div",1),s.YNc(2,v,1,3,"div",2),s.YNc(3,_,2,4,"div",3),s.YNc(4,b,2,2,"div",4)),2&t&&(s.Q6J("ngIf",e.options.closeButton),s.xp6(1),s.Q6J("ngIf",e.title),s.xp6(1),s.Q6J("ngIf",e.message&&e.options.enableHtml),s.xp6(1),s.Q6J("ngIf",e.message&&!e.options.enableHtml),s.xp6(1),s.Q6J("ngIf",e.options.progressBar))},directives:[a.O5],encapsulation:2}),t})();Object.assign(Object.assign({},S),{toastComponent:M})},6215:(t,e,n)=>{"use strict";n.d(e,{X:()=>r});var s=n(9765),i=n(7971);class r extends s.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.N;return this._value}next(t){super.next(this._value=t)}}},7574:(t,e,n)=>{"use strict";n.d(e,{y:()=>c});var s=n(7393),i=n(9181),r=n(6490),o=n(6554),a=n(4487),l=n(2494);let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof s.L)return t;if(t[i.b])return t[i.b]()}return t||e||n?new s.L(t,e,n):new s.L(r.c)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||l.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof s.L?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let s;s=this.subscribe(e=>{try{t(e)}catch(i){n(i),s&&s.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.L](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=l.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},6490:(t,e,n)=>{"use strict";n.d(e,{c:()=>r});var s=n(2494),i=n(4449);const r={closed:!0,next(t){},error(t){if(s.v.useDeprecatedSynchronousErrorHandling)throw t;(0,i.z)(t)},complete(){}}},9765:(t,e,n)=>{"use strict";n.d(e,{Yc:()=>c,xQ:()=>u});var s=n(7574),i=n(7393),r=n(5319),o=n(7971),a=n(8858),l=n(9181);class c extends i.L{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends s.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.b](){return new c(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.N;if(!this.isStopped){const{observers:e}=this,n=e.length,s=e.slice();for(let i=0;i<n;i++)s[i].next(t)}}error(t){if(this.closed)throw new o.N;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,s=e.slice();for(let i=0;i<n;i++)s[i].error(t);this.observers.length=0}complete(){if(this.closed)throw new o.N;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let s=0;s<e;s++)n[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new o.N;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new o.N;return this.hasError?(t.error(this.thrownError),r.w.EMPTY):this.isStopped?(t.complete(),r.w.EMPTY):(this.observers.push(t),new a.W(this,t))}asObservable(){const t=new s.y;return t.source=this,t}}return t.create=(t,e)=>new h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):r.w.EMPTY}}},8858:(t,e,n)=>{"use strict";n.d(e,{W:()=>i});var s=n(5319);class i extends s.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},7393:(t,e,n)=>{"use strict";n.d(e,{L:()=>c});var s=n(9105),i=n(6490),r=n(5319),o=n(9181),a=n(2494),l=n(4449);class c extends r.w{constructor(t,e,n){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(!t){this.destination=i.c;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.b](){return this}static create(t,e,n){const s=new c(t,e,n);return s.syncErrorThrowable=!1,s}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends c{constructor(t,e,n,r){let o;super(),this._parentSubscriber=t;let a=this;(0,s.m)(e)?o=e:e&&(o=e.next,n=e.error,r=e.complete,e!==i.c&&(a=Object.create(e),(0,s.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.v;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,l.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,l.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw n;(0,l.z)(n)}}__tryOrSetError(t,e,n){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(s){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):((0,l.z)(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},5319:(t,e,n)=>{"use strict";n.d(e,{w:()=>a});var s=n(9796),i=n(1555),r=n(9105);const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class a{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:l,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof a)e.remove(this);else if(null!==e)for(let s=0;s<e.length;++s)e[s].remove(this);if((0,r.m)(l)){n&&(this._unsubscribe=void 0);try{l.call(this)}catch(h){t=h instanceof o?c(h.errors):[h]}}if((0,s.k)(u)){let e=-1,n=u.length;for(;++e<n;){const n=u[e];if((0,i.K)(n))try{n.unsubscribe()}catch(h){t=t||[],h instanceof o?t=t.concat(c(h.errors)):t.push(h)}}}if(t)throw new o(t)}add(t){let e=t;if(!t)return a.EMPTY;switch(typeof t){case"function":e=new a(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof a)){const t=e;e=new a,e._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:n}=e;if(null===n)e._parentOrParents=this;else if(n instanceof a){if(n===this)return e;e._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return e;n.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[e]:s.push(e),e}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var l;function c(t){return t.reduce((t,e)=>t.concat(e instanceof o?e.errors:e),[])}a.EMPTY=((l=new a).closed=!0,l)},2494:(t,e,n)=>{"use strict";n.d(e,{v:()=>i});let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}}},5345:(t,e,n)=>{"use strict";n.d(e,{IY:()=>o,Ds:()=>a,ft:()=>l});var s=n(7393),i=n(7574),r=n(7444);class o extends s.L{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends s.L{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function l(t,e){if(e.closed)return;if(t instanceof i.y)return t.subscribe(e);let n;try{n=(0,r.s)(t)(e)}catch(s){e.error(s)}return n}},2441:(t,e,n)=>{"use strict";n.d(e,{c:()=>a,N:()=>l});var s=n(9765),i=n(7574),r=n(5319),o=n(1307);class a extends i.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new r.w,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed&&(this._connection=null,t=r.w.EMPTY)),t}refCount(){return(0,o.x)()(this)}}const l=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class c extends s.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},739:(t,e,n)=>{"use strict";n.d(e,{aj:()=>p});var s=n(4869),i=n(9796),r=n(7393);class o extends r.L{notifyNext(t,e,n,s,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class a extends r.L{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var l=n(7444),c=n(7574);function u(t,e,n,s,i=new a(t,n,s)){if(!i.closed)return e instanceof c.y?e.subscribe(i):(0,l.s)(e)(i)}var h=n(6693);const d={};function p(...t){let e,n;return(0,s.K)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,i.k)(t[0])&&(t=t[0]),(0,h.n)(t,n).lift(new f(e))}class f{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new g(t,this.resultSelector))}}class g extends o{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(d),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++)this.add(u(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const s=this.values,i=this.toRespond?s[n]===d?--this.toRespond:this.toRespond:0;s[n]=e,0===i&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},8071:(t,e,n)=>{"use strict";n.d(e,{z:()=>r});var s=n(5917),i=n(3282);function r(...t){return(0,i.J)(1)((0,s.of)(...t))}},9193:(t,e,n)=>{"use strict";n.d(e,{E:()=>i,c:()=>r});var s=n(7574);const i=new s.y(t=>t.complete());function r(t){return t?function(t){return new s.y(e=>t.schedule(()=>e.complete()))}(t):i}},4402:(t,e,n)=>{"use strict";n.d(e,{D:()=>h});var s=n(7574),i=n(7444),r=n(5319),o=n(6554),a=n(4087),l=n(377),c=n(4072),u=n(9489);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.L]}(t))return function(t,e){return new s.y(n=>{const s=new r.w;return s.add(e.schedule(()=>{const i=t[o.L]();s.add(i.subscribe({next(t){s.add(e.schedule(()=>n.next(t)))},error(t){s.add(e.schedule(()=>n.error(t)))},complete(){s.add(e.schedule(()=>n.complete()))}}))})),s})}(t,e);if((0,c.t)(t))return function(t,e){return new s.y(n=>{const s=new r.w;return s.add(e.schedule(()=>t.then(t=>{s.add(e.schedule(()=>{n.next(t),s.add(e.schedule(()=>n.complete()))}))},t=>{s.add(e.schedule(()=>n.error(t)))}))),s})}(t,e);if((0,u.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[l.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new s.y(n=>{const s=new r.w;let i;return s.add(()=>{i&&"function"==typeof i.return&&i.return()}),s.add(e.schedule(()=>{i=t[l.hZ](),s.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=i.next();t=n.value,e=n.done}catch(s){return void n.error(s)}e?n.complete():(n.next(t),this.schedule())}))})),s})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof s.y?t:new s.y((0,i.s)(t))}},6693:(t,e,n)=>{"use strict";n.d(e,{n:()=>o});var s=n(7574),i=n(5015),r=n(4087);function o(t,e){return e?(0,r.r)(t,e):new s.y((0,i.V)(t))}},6682:(t,e,n)=>{"use strict";n.d(e,{T:()=>a});var s=n(7574),i=n(4869),r=n(3282),o=n(6693);function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return(0,i.K)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof s.y?t[0]:(0,r.J)(e)((0,o.n)(t,n))}},5917:(t,e,n)=>{"use strict";n.d(e,{of:()=>o});var s=n(4869),i=n(6693),r=n(4087);function o(...t){let e=t[t.length-1];return(0,s.K)(e)?(t.pop(),(0,r.r)(t,e)):(0,i.n)(t)}},205:(t,e,n)=>{"use strict";n.d(e,{_:()=>i});var s=n(7574);function i(t,e){return new s.y(e?n=>e.schedule(r,0,{error:t,subscriber:n}):e=>e.error(t))}function r({error:t,subscriber:e}){e.error(t)}},8634:(t,e,n)=>{"use strict";n.d(e,{H:()=>l});var s=n(7574),i=n(3637),r=n(9796);function o(t){return!(0,r.k)(t)&&t-parseFloat(t)+1>=0}var a=n(4869);function l(t=0,e,n){let r=-1;return o(e)?r=Number(e)<1?1:Number(e):(0,a.K)(e)&&(n=e),(0,a.K)(n)||(n=i.P),new s.y(e=>{const s=o(t)?t:+t-n.now();return n.schedule(c,s,{index:0,period:r,subscriber:e})})}function c(t){const{index:e,period:n,subscriber:s}=t;if(s.next(e),!s.closed){if(-1===n)return s.complete();t.index=e+1,this.schedule(t,n)}}},5304:(t,e,n)=>{"use strict";n.d(e,{K:()=>i});var s=n(5345);function i(t){return function(e){const n=new r(t),s=e.lift(n);return n.caught=s}}class r{constructor(t){this.selector=t}call(t,e){return e.subscribe(new o(t,this.selector,this.caught))}}class o extends s.Ds{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new s.IY(this);this.add(i);const r=(0,s.ft)(n,i);r!==i&&this.add(r)}}}},4612:(t,e,n)=>{"use strict";n.d(e,{b:()=>i});var s=n(9773);function i(t,e){return(0,s.zg)(t,e,1)}},4395:(t,e,n)=>{"use strict";n.d(e,{b:()=>r});var s=n(7393),i=n(3637);function r(t,e=i.P){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends s.L{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},5435:(t,e,n)=>{"use strict";n.d(e,{h:()=>i});var s=n(7393);function i(t,e){return function(n){return n.lift(new r(t,e))}}class r{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends s.L{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},8939:(t,e,n)=>{"use strict";n.d(e,{x:()=>r});var s=n(7393),i=n(5319);function r(t){return e=>e.lift(new o(t))}class o{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends s.L{constructor(t,e){super(t),this.add(new i.w(e))}}},8002:(t,e,n)=>{"use strict";n.d(e,{U:()=>i});var s=n(7393);function i(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new r(t,e))}}class r{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends s.L{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},3282:(t,e,n)=>{"use strict";n.d(e,{J:()=>r});var s=n(9773),i=n(4487);function r(t=Number.POSITIVE_INFINITY){return(0,s.zg)(i.y,t)}},9773:(t,e,n)=>{"use strict";n.d(e,{zg:()=>o});var s=n(8002),i=n(4402),r=n(5345);function o(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(o((n,r)=>(0,i.D)(t(n,r)).pipe((0,s.U)((t,s)=>e(n,t,r,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends r.Ds{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(e)}_innerSub(t){const e=new r.IY(this),n=this.destination;n.add(e);const s=(0,r.ft)(t,e);s!==e&&n.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1307:(t,e,n)=>{"use strict";n.d(e,{x:()=>i});var s=n(7393);function i(){return function(t){return t.lift(new r(t))}}class r{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const s=new o(t,n),i=e.subscribe(s);return s.closed||(s.connection=n.connect()),i}}class o extends s.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,s=t._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}},9761:(t,e,n)=>{"use strict";n.d(e,{O:()=>r});var s=n(8071),i=n(4869);function r(...t){const e=t[t.length-1];return(0,i.K)(e)?(t.pop(),n=>(0,s.z)(t,n,e)):e=>(0,s.z)(t,e)}},3190:(t,e,n)=>{"use strict";n.d(e,{w:()=>o});var s=n(8002),i=n(4402),r=n(5345);function o(t,e){return"function"==typeof e?n=>n.pipe(o((n,r)=>(0,i.D)(t(n,r)).pipe((0,s.U)((t,s)=>e(n,t,r,s))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends r.Ds{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(s){return void this.destination.error(s)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new r.IY(this),s=this.destination;s.add(n),this.innerSubscription=(0,r.ft)(t,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},5257:(t,e,n)=>{"use strict";n.d(e,{q:()=>o});var s=n(7393),i=n(7108),r=n(9193);function o(t){return e=>0===t?(0,r.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new i.W}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends s.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},3342:(t,e,n)=>{"use strict";n.d(e,{b:()=>o});var s=n(7393);function i(){}var r=n(9105);function o(t,e,n){return function(s){return s.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends s.L{constructor(t,e,n,s){super(t),this._tapNext=i,this._tapError=i,this._tapComplete=i,this._tapError=n||i,this._tapComplete=s||i,(0,r.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||i,this._tapError=e.error||i,this._tapComplete=e.complete||i)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},4087:(t,e,n)=>{"use strict";n.d(e,{r:()=>r});var s=n(7574),i=n(5319);function r(t,e){return new s.y(n=>{const s=new i.w;let r=0;return s.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||s.add(this.schedule())):n.complete()})),s})}},6465:(t,e,n)=>{"use strict";n.d(e,{o:()=>r});var s=n(5319);class i extends s.w{constructor(t,e){super()}schedule(t,e=0){return this}}class r extends i{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,s=!1;try{this.work(t)}catch(i){s=!0,n=!!i&&i||new Error(i)}if(s)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},6102:(t,e,n)=>{"use strict";n.d(e,{v:()=>i});let s=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class i extends s{constructor(t,e=s.now){super(t,()=>i.delegate&&i.delegate!==this?i.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return i.delegate&&i.delegate!==this?i.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},3637:(t,e,n)=>{"use strict";n.d(e,{P:()=>i});var s=n(6465);const i=new(n(6102).v)(s.o)},377:(t,e,n)=>{"use strict";n.d(e,{hZ:()=>s});const s="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:(t,e,n)=>{"use strict";n.d(e,{L:()=>s});const s="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:(t,e,n)=>{"use strict";n.d(e,{b:()=>s});const s="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:(t,e,n)=>{"use strict";n.d(e,{W:()=>s});const s=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},7971:(t,e,n)=>{"use strict";n.d(e,{N:()=>s});const s=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4449:(t,e,n)=>{"use strict";function s(t){setTimeout(()=>{throw t},0)}n.d(e,{z:()=>s})},4487:(t,e,n)=>{"use strict";function s(t){return t}n.d(e,{y:()=>s})},9796:(t,e,n)=>{"use strict";n.d(e,{k:()=>s});const s=Array.isArray||(t=>t&&"number"==typeof t.length)},9489:(t,e,n)=>{"use strict";n.d(e,{z:()=>s});const s=t=>t&&"number"==typeof t.length&&"function"!=typeof t},9105:(t,e,n)=>{"use strict";function s(t){return"function"==typeof t}n.d(e,{m:()=>s})},1555:(t,e,n)=>{"use strict";function s(t){return null!==t&&"object"==typeof t}n.d(e,{K:()=>s})},4072:(t,e,n)=>{"use strict";function s(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{t:()=>s})},4869:(t,e,n)=>{"use strict";function s(t){return t&&"function"==typeof t.schedule}n.d(e,{K:()=>s})},7444:(t,e,n)=>{"use strict";n.d(e,{s:()=>u});var s=n(5015),i=n(4449),r=n(377),o=n(6554),a=n(9489),l=n(4072),c=n(1555);const u=t=>{if(t&&"function"==typeof t[o.L])return u=t,t=>{const e=u[o.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,a.z)(t))return(0,s.V)(t);if((0,l.t)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,i.z),t);if(t&&"function"==typeof t[r.hZ])return e=t,t=>{const n=e[r.hZ]();for(;;){let e;try{e=n.next()}catch(s){return t.error(s),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=(0,c.K)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,u}},5015:(t,e,n)=>{"use strict";n.d(e,{V:()=>s});const s=t=>e=>{for(let n=0,s=t.length;n<s&&!e.closed;n++)e.next(t[n]);e.complete()}},263:(t,e,n)=>{"use strict";n.d(e,{e:()=>d});var s=n(2340),i=n(3190),r=n(8002),o=n(3999),a=n(2527),l=n(3018),c=n(1841),u=n(9763),h=n(9344);let d=(()=>{class t{constructor(t,e,n){this.http=t,this.router=e,this.toastr=n,this.encryptSecretKey="*Am_paro_Secure_Key$"}login(t){return this.http.post(`${s.N.IMALI_API_AUTH}`,t).pipe((0,i.w)(e=>(this.setToken(e),this.getUser(t))),(0,r.U)(()=>!!this.userAndTokenExists()))}get isAdmin(){return"admin"===this.user.profile}get isEmployee(){return"employee"===this.user.profile}get isCallCenter(){return"callcenter"===this.user.profile}get isAdminOrEmployee(){return this.isAdmin||this.isEmployee}get isAdminOrCallcenter(){return this.isAdmin||this.isCallCenter}get isEmployeeOrCallcenter(){return this.isEmployee||this.isCallCenter}get isAdminOrEmployeeOrCallcenter(){return this.isEmployee||this.isCallCenter||this.isAdmin}resetUserPassword(t){return this.http.post(`${s.N.IMALI_API}/admin/change-password `,t).pipe((0,i.w)(()=>this.getUser()),(0,r.U)(t=>(localStorage.setItem("user",this.encryptData(o.n.copyJsonData(t))),localStorage.removeItem("resetKey"),!0)))}setToken(t){return t.expires_in=new Date((new Date).getTime()+1e3*parseInt(t.expires_in)),localStorage.setItem("token",this.encryptData(t)),t}getUser(t){return this.http.get(`${s.N.IMALI_API}/admin/account`).pipe((0,r.U)(e=>(localStorage.setItem("user",this.encryptData(o.n.copyJsonData(e))),0==e.session_status&&localStorage.setItem("resetKey",this.encryptData(t.password)),0===e.status&&(this.toastr.info("","A sua conta encontra-se temporariamente inactiva."),localStorage.clear()),e)))}logout(){localStorage.clear(),this.router.navigate(["/login"])}get token(){let t=null;try{t=this.decryptData(localStorage.getItem("token"))}catch(e){return null}return t}get user(){let t=null;try{t=this.decryptData(localStorage.getItem("user"))}catch(e){return null}return t}isTokenExpired(){return!!this.token&&Date.now()>=new Date(this.token.expires_in).getTime()}userAndTokenExists(){return!!this.token&&!!this.user}encryptData(t){try{return a.AES.encrypt(JSON.stringify(t),this.encryptSecretKey).toString()}catch(e){}}decryptData(t){if(!t)return null;try{const e=a.AES.decrypt(t,this.encryptSecretKey);return e.toString()?JSON.parse(e.toString(a.enc.Utf8)):t}catch(e){localStorage.clear(),this.toastr.error("Ocorreu um erro ao tentar efectuar o Login!")}}}return t.\u0275fac=function(e){return new(e||t)(l.LFG(c.eN),l.LFG(u.F0),l.LFG(h._W))},t.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},5133:(t,e,n)=>{"use strict";n.d(e,{g:()=>o});var s=n(6215),i=n(6980),r=n(3018);let o=(()=>{class t{constructor(){this._messages=new s.X(null)}notify(t,e,n){this._messages.next(new i.v(t,e,n)),setTimeout(()=>{this._messages.next(new i.v("",[""],!1))},6e3)}get messages(){return this._messages.asObservable()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},42:(t,e,n)=>{"use strict";n.d(e,{r:()=>u});var s=n(3018),i=n(8583);function r(t,e){if(1&t&&s._UZ(0,"i"),2&t){const t=s.oxw(2);s.Tol(null==t.button?null:t.button.icon)}}function o(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&t){const t=s.oxw(2);s.xp6(1),s.Oqu(null==t.button||null==t.button.name?null:t.button.name.toUpperCase())}}function a(t,e){1&t&&(s.TgZ(0,"span"),s._UZ(1,"i",4),s._uU(2," AGUARDE... "),s.qZA())}const l=function(t){return{"btn-block":t}};function c(t,e){if(1&t&&(s.TgZ(0,"button",1),s.YNc(1,r,1,2,"i",2),s._uU(2,"\xa0 "),s.YNc(3,o,2,1,"span",3),s.YNc(4,a,3,0,"span",3),s.qZA()),2&t){const t=s.oxw();s.MT6("btn mr-1 ",null==t.button?null:t.button.color," ",null==t.button?null:t.button.size,""),s.Q6J("disabled",null==t.button?null:t.button.isDisabled)("type",null==t.button?null:t.button.type)("ngClass",s.VKq(10,l,null==t.button?null:t.button.isBlock)),s.xp6(1),s.Q6J("ngIf",!(null!=t.button&&t.button.isLoading)),s.xp6(2),s.Q6J("ngIf",!(null!=t.button&&t.button.isLoading)),s.xp6(1),s.Q6J("ngIf",null==t.button?null:t.button.isLoading)}}let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-button"]],inputs:{button:"button"},decls:1,vars:1,consts:[[3,"disabled","type","class","ngClass",4,"ngIf"],[3,"disabled","type","ngClass"],[3,"class",4,"ngIf"],[4,"ngIf"],[1,"fas","fa-circle-notch"]],template:function(t,e){1&t&&s.YNc(0,c,5,12,"button",0),2&t&&s.Q6J("ngIf",!!e.button)},directives:[i.O5,i.mk],encapsulation:2}),t})()},228:(t,e,n)=>{"use strict";n.d(e,{a:()=>c});var s=n(665),i=n(3018),r=n(8583);function o(t,e){1&t&&(i.TgZ(0,"span",4),i._UZ(1,"i",5),i._uU(2," Ok"),i.qZA())}function a(t,e){if(1&t&&(i.TgZ(0,"span",6),i._UZ(1,"i",7),i._uU(2),i.qZA()),2&t){const t=i.oxw();i.xp6(2),i.hij(" ",t.errorMessage,"")}}const l=["*"];let c=(()=>{class t{ngAfterContentInit(){if(this.input=this.model||this.control,void 0===this.input)throw new Error("Esse component precisa ser usado com uma diretiva ngModel")}hasSuccess(){return this.input.valid&&(this.input.dirty||this.input.touched)}hasError(){return this.input.invalid&&(this.input.dirty||this.input.touched)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["ng-input"]],contentQueries:function(t,e,n){if(1&t&&(i.Suo(n,s.On,5),i.Suo(n,s.u,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.model=t.first),i.iGM(t=i.CRH())&&(e.control=t.first)}},inputs:{label:"label",forLabel:"forLabel",errorMessage:"errorMessage"},ngContentSelectors:l,decls:6,vars:4,consts:[[1,"form-group"],[1,"col-form-label",3,"for"],["class","text-success",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"text-success"],[1,"fa","fa-check"],[1,"text-danger"],[1,"far","fa-times-circle"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"label",1),i._uU(2),i.qZA(),i.Hsn(3),i.YNc(4,o,3,0,"span",2),i.YNc(5,a,3,1,"span",3),i.qZA()),2&t&&(i.xp6(1),i.Q6J("for",e.forLabel),i.xp6(1),i.Oqu(e.label),i.xp6(2),i.Q6J("ngIf",e.hasSuccess()),i.xp6(1),i.Q6J("ngIf",e.hasError()))},directives:[r.O5],encapsulation:2}),t})()},4250:(t,e,n)=>{"use strict";n.d(e,{q:()=>p});var s=n(6980),i=n(3018),r=n(5133),o=n(8583);function a(t,e){1&t&&(i.TgZ(0,"span"),i._UZ(1,"i",5),i._uU(2," Alerta "),i.qZA())}function l(t,e){1&t&&(i.TgZ(0,"span"),i._UZ(1,"i",6),i._uU(2," Alerta "),i.qZA())}function c(t,e){1&t&&(i.TgZ(0,"span"),i._UZ(1,"i",7),i._uU(2," Alerta "),i.qZA())}function u(t,e){1&t&&(i.TgZ(0,"span"),i._UZ(1,"i",8),i._uU(2," Alerta "),i.qZA())}function h(t,e){if(1&t&&(i.TgZ(0,"p"),i._UZ(1,"i",9),i._uU(2),i.qZA()),2&t){const t=e.$implicit;i.xp6(2),i.hij("\xa0 ",t," ")}}function d(t,e){if(1&t&&(i.TgZ(0,"div",1),i.TgZ(1,"button",2),i._uU(2,"\xd7"),i.qZA(),i.TgZ(3,"h4"),i.YNc(4,a,3,0,"span",3),i.YNc(5,l,3,0,"span",3),i.YNc(6,c,3,0,"span",3),i.YNc(7,u,3,0,"span",3),i.qZA(),i.YNc(8,h,3,1,"p",4),i.qZA()),2&t){const t=i.oxw();i.Gre("alert alert-",null==t.message?null:t.message.type," alert-dismissible"),i.xp6(4),i.Q6J("ngIf","danger"==(null==t.message?null:t.message.type)),i.xp6(1),i.Q6J("ngIf","info"==(null==t.message?null:t.message.type)),i.xp6(1),i.Q6J("ngIf","warning"==(null==t.message?null:t.message.type)),i.xp6(1),i.Q6J("ngIf","success"==(null==t.message?null:t.message.type)),i.xp6(1),i.Q6J("ngForOf",t.message.messages)}}let p=(()=>{class t{constructor(t){this.notificationServ=t,this.message=new s.v("",[""],!1)}ngOnInit(){this.notificationServ.messages.subscribe(t=>{this.message=t})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.g))},t.\u0275cmp=i.Xpm({type:t,selectors:[["ng-message"]],decls:1,vars:1,consts:[["role","alert","style","border-radius: 0px;",3,"class",4,"ngIf"],["role","alert",2,"border-radius","0px"],["type","button","data-dismiss","alert","aria-hidden","true",1,"close"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"icon","fa","fa-ban"],[1,"icon","fa","fa-info"],[1,"icon","fa","fa-warning"],[1,"icon","fa","fa-check"],[1,"fas","fa-check"]],template:function(t,e){1&t&&i.YNc(0,d,9,8,"div",0),2&t&&i.Q6J("ngIf",null==e.message?null:e.message.showAlert)},directives:[o.O5,o.sg],encapsulation:2}),t})()},6980:(t,e,n)=>{"use strict";n.d(e,{v:()=>s});class s{constructor(t,e,n=!1){this.type=t,this.messages=e,this.showAlert=n}}},7618:(t,e,n)=>{"use strict";n.d(e,{a:()=>o});var s=n(3018),i=n(263),r=n(9763);let o=(()=>{class t{constructor(t,e){this.authServ=t,this.router=e}canActivateChild(t,e){return!(!this.authServ.userAndTokenExists()||this.authServ.isTokenExpired())||(this.router.navigate(["/"],{queryParams:t.queryParams}),!1)}canActivate(t,e){return!(!this.authServ.userAndTokenExists()||this.authServ.isTokenExpired())||(this.router.navigate(["/"],{queryParams:t.queryParams}),!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.e),s.LFG(r.F0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},8006:(t,e,n)=>{"use strict";n.d(e,{g:()=>s});class s{}},3999:(t,e,n)=>{"use strict";n.d(e,{n:()=>i});var s=n(8006);class i extends s.g{static copyJsonData(t){return Object.assign(new i,t)}}},5566:(t,e,n)=>{"use strict";n.d(e,{m:()=>w});var s=n(8583),i=n(665),r=n(9344),o=n(9763);function a(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var l=n(9988),c=n(1841),u=n(3342),h=n(8939),d=n(3018);let p=(()=>{let t=class{constructor(t){this.loader=t}intercept(t,e){if(t.headers.has("ignoreLoadingBar"))return e.handle(t.clone({headers:t.headers.delete("ignoreLoadingBar")}));let n=!1;const s=this.loader.useRef("http");return e.handle(t).pipe((0,u.b)(()=>{n||(s.start(),n=!0)}),(0,h.x)(()=>n&&s.complete()))}};return t.\u0275fac=function(e){return new(e||t)(d.LFG(l.dL))},t.\u0275prov=d.Yz7({token:t,factory:function(e){return t.\u0275fac(e)}}),t=function(t,e,n,s){var i,r=arguments.length,o=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,s);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(r<3?i(o):r>3?i(e,n,o):i(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o}([a("design:paramtypes",[l.dL])],t),t})(),f=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({providers:[{provide:c.TP,useClass:p,multi:!0}],imports:[[c.JF,l.sS],c.JF,l.sS]}),t})();function g(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}let m=(()=>{let t=class{constructor(t,e){const n=e.useRef("router");t.events.subscribe(e=>{const s=this.getCurrentNavigationState(t);s&&s.ignoreLoadingBar||(e instanceof o.OD&&n.start(),(e instanceof o.Q3||e instanceof o.m2||e instanceof o.gk)&&n.complete())})}getCurrentNavigationState(t){const e=t.getCurrentNavigation&&t.getCurrentNavigation();return e&&e.extras?e.extras.state:{}}};return t.\u0275fac=function(e){return new(e||t)(d.LFG(o.F0),d.LFG(l.dL))},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[o.Bz,l.sS],o.Bz,l.sS]}),t=function(t,e,n,s){var i,r=arguments.length,o=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,s);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(r<3?i(o):r>3?i(e,n,o):i(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o}([g("design:paramtypes",[o.F0,l.dL])],t),t})();var y=n(1796),v=n(2533),_=n(3917),b=n(7680);let w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[s.ez,i.u5,o.Bz,i.UX,v.JX,_.A0,r.Rh.forRoot(),f,m,y.cF,b.Tm,l.sS],s.ez,i.u5,i.UX,r.Rh,_.A0,b.Tm,f,m,y.cF,l.sS,v.JX]}),t})()},2340:(t,e,n)=>{"use strict";n.d(e,{N:()=>s});const s={production:!1,IMALI_API:"https://paytek-africa.com/imaliapitest/public/api",IMALI_API_AUTH:"https://paytek-africa.com/imaliapitest/public/api/admin/login"}},5266:(t,e,n)=>{"use strict";var s=n(9075),i=n(3018),r=n(8583),o=n(7238);function a(){return"undefined"!=typeof window&&void 0!==window.document}function l(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function c(t){switch(t.length){case 0:return new o.ZN;case 1:return t[0];default:return new o.ZE(t)}}function u(t,e,n,s,i={},r={}){const a=[],l=[];let c=-1,u=null;if(s.forEach(t=>{const n=t.offset,s=n==c,h=s&&u||{};Object.keys(t).forEach(n=>{let s=n,l=t[n];if("offset"!==n)switch(s=e.normalizePropertyName(s,a),l){case o.k1:l=i[n];break;case o.l3:l=r[n];break;default:l=e.normalizeStyleValue(n,s,l,a)}h[s]=l}),s||l.push(h),u=h,c=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function h(t,e,n,s){switch(e){case"start":t.onStart(()=>s(n&&d(n,"start",t)));break;case"done":t.onDone(()=>s(n&&d(n,"done",t)));break;case"destroy":t.onDestroy(()=>s(n&&d(n,"destroy",t)))}}function d(t,e,n){const s=n.totalTime,i=p(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==s?t.totalTime:s,!!n.disabled),r=t._data;return null!=r&&(i._data=r),i}function p(t,e,n,s,i="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:s,phaseName:i,totalTime:r,disabled:!!o}}function f(t,e,n){let s;return t instanceof Map?(s=t.get(e),s||t.set(e,s=n)):(s=t[e],s||(s=t[e]=n)),s}function g(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let m=(t,e)=>!1,y=(t,e)=>!1,v=(t,e,n)=>[];const _=l();(_||"undefined"!=typeof Element)&&(m=a()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),y=(()=>{if(_||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):y}})(),v=(t,e,n)=>{let s=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t<n.length;t++)s.push(n[t])}else{const n=t.querySelector(e);n&&s.push(n)}return s});let b=null,w=!1;function S(t){b||(b=("undefined"!=typeof document?document.body:null)||{},w=!!b.style&&"WebkitAppearance"in b.style);let e=!0;return b.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in b.style,!e&&w)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in b.style),e}const T=y,C=m,x=v;function E(t){const e={};return Object.keys(t).forEach(n=>{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[s]=t[n]}),e}let k=(()=>{class t{validateStyleProperty(t){return S(t)}matchesElement(t,e){return T(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return x(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,s,i,r=[],a){return new o.ZN(n,s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class A{}A.NOOP=new k;const I="ng-enter",O="ng-leave",P="ng-trigger",D=".ng-trigger",L="ng-animating",N=".ng-animating";function M(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:R(parseFloat(e[1]),e[2])}function R(t,e){switch(e){case"s":return 1e3*t;default:return t}}function F(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let s,i=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};s=R(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(i=R(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else s=t;if(!n){let n=!1,r=e.length;s<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:s,delay:i,easing:r}}(t,e,n)}function B(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function j(t,e,n={}){if(e)for(let s in t)n[s]=t[s];else B(t,n);return n}function V(t,e,n){return n?e+":"+n+";":""}function z(t){let e="";for(let n=0;n<t.style.length;n++){const s=t.style.item(n);e+=V(0,s,t.style.getPropertyValue(s))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=V(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function H(t,e,n){t.style&&(Object.keys(e).forEach(s=>{const i=Q(s);n&&!n.hasOwnProperty(s)&&(n[s]=t.style[i]),t.style[i]=e[s]}),l()&&z(t))}function U(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Q(e);t.style[n]=""}),l()&&z(t))}function Z(t){return Array.isArray(t)?1==t.length?t[0]:(0,o.vP)(t):t}const q=new RegExp("{{\\s*(.+?)\\s*}}","g");function G(t){let e=[];if("string"==typeof t){let n;for(;n=q.exec(t);)e.push(n[1]);q.lastIndex=0}return e}function Y(t,e,n){const s=t.toString(),i=s.replace(q,(t,s)=>{let i=e[s];return e.hasOwnProperty(s)||(n.push(`Please provide a value for the animation param ${s}`),i=""),i.toString()});return i==s?t:i}function $(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const W=/-+([a-z0-9])/g;function Q(t){return t.replace(W,(...t)=>t[1].toUpperCase())}function J(t,e){return 0===t||0===e}function K(t,e,n){const s=Object.keys(n);if(s.length&&e.length){let r=e[0],o=[];if(s.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var i=1;i<e.length;i++){let n=e[i];o.forEach(function(e){n[e]=tt(t,e)})}}return e}function X(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error(`Unable to resolve animation metadata node #${e.type}`)}}function tt(t,e){return window.getComputedStyle(t)[e]}const et="*";function nt(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const s=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof s)return void e.push(s);t=s}const s=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const i=s[1],r=s[2],o=s[3];e.push(rt(i,o)),"<"!=r[0]||i==et&&o==et||e.push(rt(o,i))}(t,n,e)):n.push(t),n}const st=new Set(["true","1"]),it=new Set(["false","0"]);function rt(t,e){const n=st.has(t)||it.has(t),s=st.has(e)||it.has(e);return(i,r)=>{let o=t==et||t==i,a=e==et||e==r;return!o&&n&&"boolean"==typeof i&&(o=i?st.has(t):it.has(t)),!a&&s&&"boolean"==typeof r&&(a=r?st.has(e):it.has(e)),o&&a}}const ot=new RegExp("s*:selfs*,?","g");function at(t,e,n){return new lt(t).build(e,n)}class lt{constructor(t){this._driver=t}build(t,e){const n=new ct(e);return this._resetContextStyleTimingState(n),X(this,Z(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,s=e.depCount=0;const i=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,s=n.name;s.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,i.push(this.visitState(n,e))}),n.name=s}else if(1==t.type){const i=this.visitTransition(t,e);n+=i.queryCount,s+=i.depCount,r.push(i)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:i,transitions:r,queryCount:n,depCount:s,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),s=t.options&&t.options.params||null;if(n.containsDynamicStyles){const i=new Set,r=s||{};if(n.styles.forEach(t=>{if(ut(t)){const e=t;Object.keys(e).forEach(t=>{G(e[t]).forEach(t=>{r.hasOwnProperty(t)||i.add(t)})})}}),i.size){const n=$(i.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:s?{params:s}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=X(this,Z(t.animation),e);return{type:1,matchers:nt(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:ht(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>X(this,t,e)),options:ht(t.options)}}visitGroup(t,e){const n=e.currentTime;let s=0;const i=t.steps.map(t=>{e.currentTime=n;const i=X(this,t,e);return s=Math.max(s,e.currentTime),i});return e.currentTime=s,{type:3,steps:i,options:ht(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return dt(F(t,e).duration,0,"");const s=t;if(s.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=dt(0,0,"");return t.dynamic=!0,t.strValue=s,t}return n=n||F(s,e),dt(n.duration,n.delay,n.easing)}(t.timings,e.errors);let s;e.currentAnimateTimings=n;let i=t.styles?t.styles:(0,o.oB)({});if(5==i.type)s=this.visitKeyframes(i,e);else{let i=t.styles,r=!1;if(!i){r=!0;const t={};n.easing&&(t.easing=n.easing),i=(0,o.oB)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(i,e);a.isEmptyStep=r,s=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==o.l3?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let s=!1,i=null;return n.forEach(t=>{if(ut(t)){const e=t,n=e.easing;if(n&&(i=n,delete e.easing),!s)for(let t in e)if(e[t].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let s=e.currentTime,i=e.currentTime;n&&i>0&&(i-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(i!=s&&i>=o.startTime&&s<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${s}ms"`),a=!1),i=o.startTime),a&&(r[n]={startTime:i,endTime:s}),e.options&&function(t,e,n){const s=e.params||{},i=G(t);i.length&&i.forEach(t=>{s.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let s=0;const i=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(ut(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(ut(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(s++,c=n.offset=l),o=o||c<0||c>1,r=r||c<a,a=c,i.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let u=0;s>0&&s<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(u=1/(c-1));const h=c-1,d=e.currentTime,p=e.currentAnimateTimings,f=p.duration;return l.forEach((t,s)=>{const r=u>0?s==h?1:u*s:i[s],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:X(this,Z(t.animation),e),options:ht(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ht(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ht(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,s=t.options||{};e.queryCount++,e.currentQuery=t;const[i,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(ot,"")),[t=t.replace(/@\*/g,D).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,N),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+i:i,f(e.collectedStyles,e.currentQuerySelector,{});const o=X(this,Z(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:s.limit||0,optional:!!s.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:ht(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:F(t.timings,e.errors,!0);return{type:12,animation:X(this,Z(t.animation),e),timings:n,options:null}}}class ct{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ut(t){return!Array.isArray(t)&&"object"==typeof t}function ht(t){var e;return t?(t=B(t)).params&&(t.params=(e=t.params)?B(e):null):t={},t}function dt(t,e,n){return{duration:t,delay:e,easing:n}}function pt(t,e,n,s,i,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}class ft{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const gt=new RegExp(":enter","g"),mt=new RegExp(":leave","g");function yt(t,e,n,s,i,r={},o={},a,l,c=[]){return(new vt).buildKeyframes(t,e,n,s,i,r,o,a,l,c)}class vt{buildKeyframes(t,e,n,s,i,r,o,a,l,c=[]){l=l||new ft;const u=new bt(t,e,l,s,i,c,[]);u.options=a,u.currentTimeline.setStyles([r],null,u.errors,a),X(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[pt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const s=e.createSubContext(t.options),i=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,s,s.options);i!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let s=e.currentTimeline.currentTime;const i=null!=n.duration?M(n.duration):null,r=null!=n.delay?M(n.delay):null;return 0!==i&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,i,r);s=Math.max(s,n.duration+n.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),X(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let s=e;const i=t.options;if(i&&(i.params||i.delay)&&(s=e.createSubContext(i),s.transformIntoNewTimeline(),null!=i.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=_t);const t=M(i.delay);s.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>X(this,t,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let s=e.currentTimeline.currentTime;const i=t.options&&t.options.delay?M(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);i&&o.delayNextStep(i),X(this,r,o),s=Math.max(s,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(s),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return F(e.params?Y(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),s=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),s.snapshotCurrentStyles());const i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,s=e.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const i=s&&s.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,s=e.currentTimeline.duration,i=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*i),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(s+i),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,s=t.options||{},i=s.delay?M(s.delay):0;i&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=_t);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,s)=>{e.currentQueryIndex=s;const o=e.createSubContext(t.options,n);i&&o.delayNextStep(i),n===e.element&&(a=o.currentTimeline),X(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,s=e.currentTimeline,i=t.timings,r=Math.abs(i.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;X(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const _t={};class bt{constructor(t,e,n,s,i,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=i,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=_t,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new wt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let s=this.options;null!=n.duration&&(s.duration=M(n.duration)),null!=n.delay&&(s.delay=M(n.delay));const i=n.params;if(i){let t=s.params;t||(t=this.options.params={}),Object.keys(i).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=Y(i[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const s=e||this.element,i=new bt(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=_t,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const s={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new St(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,s,t.stretchStartingKeyframe);return this.timelines.push(i),s}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,s,i,r){let o=[];if(s&&o.push(this.element),t.length>0){t=(t=t.replace(gt,"."+this._enterClassName)).replace(mt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return i||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class wt{constructor(t,e,n,s){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new wt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||o.l3,this._currentKeyframe[t]=o.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,s){e&&(this._previousKeyframe.easing=e);const i=s&&s.params||{},r=function(t,e){const n={};let s;return t.forEach(t=>{"*"===t?(s=s||Object.keys(e),s.forEach(t=>{n[t]=o.l3})):j(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=Y(r[t],i,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:o.l3),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],s=t._styleSummary[e];(!n||s.time>n.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((i,r)=>{const a=j(i,!0);Object.keys(a).forEach(n=>{const s=a[n];s==o.k1?t.add(n):s==o.l3&&e.add(n)}),n||(a.offset=r/this.duration),s.push(a)});const i=t.size?$(t.values()):[],r=e.size?$(e.values()):[];if(n){const t=s[0],e=B(t);t.offset=0,e.offset=1,s=[t,e]}return pt(this.element,s,i,r,this.duration,this.startTime,this.easing,!1)}}class St extends wt{constructor(t,e,n,s,i,r,o=!1){super(t,e,r.delay),this.keyframes=n,this.preStyleProps=s,this.postStyleProps=i,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const i=[],r=n+e,o=e/r,a=j(t[0],!1);a.offset=0,i.push(a);const l=j(t[0],!1);l.offset=Tt(o),i.push(l);const c=t.length-1;for(let s=1;s<=c;s++){let o=j(t[s],!1);o.offset=Tt((e+o.offset*n)/r),i.push(o)}n=r,e=0,s="",t=i}return pt(this.element,t,this.preStyleProps,this.postStyleProps,n,e,s,!0)}}function Tt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Ct{}class xt extends Ct{normalizePropertyName(t,e){return Q(t)}normalizeStyleValue(t,e,n,s){let i="";const r=n.toString().trim();if(Et[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&s.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+i}}const Et=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function kt(t,e,n,s,i,r,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const At={};class It{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,s){return function(t,e,n,s,i){return t.some(t=>t(e,n,s,i))}(this.ast.matchers,t,e,n,s)}buildStyles(t,e,n){const s=this._stateStyles["*"],i=this._stateStyles[t],r=s?s.buildStyles(e,n):{};return i?i.buildStyles(e,n):r}build(t,e,n,s,i,r,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||At,d=this.buildStyles(n,o&&o.params||At,u),p=a&&a.params||At,g=this.buildStyles(s,p,u),m=new Set,y=new Map,v=new Map,_="void"===s,b={params:Object.assign(Object.assign({},h),p)},w=c?[]:yt(t,e,this.ast.animation,i,r,d,g,b,l,u);let S=0;if(w.forEach(t=>{S=Math.max(t.duration+t.delay,S)}),u.length)return kt(e,this._triggerName,n,s,_,d,g,[],[],y,v,S,u);w.forEach(t=>{const n=t.element,s=f(y,n,{});t.preStyleProps.forEach(t=>s[t]=!0);const i=f(v,n,{});t.postStyleProps.forEach(t=>i[t]=!0),n!==e&&m.add(n)});const T=$(m.values());return kt(e,this._triggerName,n,s,_,d,g,w,T,y,v,S)}}class Ot{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},s=B(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(s[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const i=t;Object.keys(i).forEach(t=>{let r=i[t];r.length>1&&(r=Y(r,s,e));const o=this.normalizer.normalizePropertyName(t,e);r=this.normalizer.normalizeStyleValue(t,o,r,e),n[o]=r})}}),n}}class Pt{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Ot(t.style,t.options&&t.options.params||{},n)}),Dt(this.states,"true","1"),Dt(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new It(t,e,this.states))}),this.fallbackTransition=new It(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,s){return this.transitionFactories.find(i=>i.match(t,e,n,s))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Dt(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Lt=new ft;class Nt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],s=at(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=s}_buildPlayer(t,e,n){const s=t.element,i=u(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(s,i,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const s=[],i=this._animations[t];let r;const a=new Map;if(i?(r=yt(this._driver,e,i,I,O,{},{},n,Lt,s),r.forEach(t=>{const e=f(a,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),r=[]),s.length)throw new Error(`Unable to create the animation due to the following errors: ${s.join("\n")}`);a.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,o.l3)})});const l=c(r.map(t=>{const e=a.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,s){const i=p(e,"","","");return h(this._getPlayer(t),n,i,s),()=>{}}command(t,e,n,s){if("register"==n)return void this.register(t,s[0]);if("create"==n)return void this.create(t,e,s[0]||{});const i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(t)}}}const Mt="ng-animate-queued",Rt="ng-animate-disabled",Ft=".ng-animate-disabled",Bt=[],jt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Vt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class zt{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(s=n?t.value:t)?s:null,n){const e=B(t);delete e.value,this.options=e}else this.options={};var s;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const Ht="void",Ut=new zt(Ht);class Zt{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Jt(e,this._hostClassName)}listen(t,e,n,s){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(i=n)&&"done"!=i)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var i;const r=f(this._elementListeners,t,[]),o={name:e,phase:n,callback:s};r.push(o);const a=f(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Jt(t,P),Jt(t,"ng-trigger-"+e),a[e]=Ut),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,s=!0){const i=this._getTrigger(e),r=new Gt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Jt(t,P),Jt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new zt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Ut),l.value!==Ht&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),s=Object.keys(e);if(n.length!=s.length)return!1;for(let i=0;i<n.length;i++){const s=n[i];if(!e.hasOwnProperty(s)||t[s]!==e[s])return!1}return!0}(a.params,l.params)){const e=[],n=i.matchStyles(a.value,a.params,e),s=i.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{U(t,n),H(t,s)})}return}const c=f(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=i.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!s)return;u=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:r,isFallbackTransition:h}),h||(Jt(t,Mt),r.onStart(()=>{Kt(t,Mt)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,D,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,s){const i=this._engine.statesByElement.get(t);if(i){const r=[];if(Object.keys(i).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,Ht,s);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&c(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const s=new Set;e.forEach(e=>{const i=e.name;if(s.has(i))return;s.add(i);const r=this._triggers[i].fallbackTransition,o=n[i]||Ut,a=new zt(Ht),l=new Gt(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let s=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)s=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(t),s)n.markElementAsRemoved(this.id,t,!1,e);else{const s=t.__ng_removed;s&&s!==jt||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Jt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const i=n.element,r=this._elementListeners.get(i);r&&r.forEach(e=>{if(e.name==n.triggerName){const s=p(i,n.triggerName,n.fromState.value,n.toState.value);s._data=t,h(n.player,e.phase,s,e.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,s=e.transition.ast.depCount;return 0==n||0==s?n-s:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class qt{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new Zt(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let s=!1;for(let i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),s=!0;break}s||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let s=this._namespaceLookup[t];s&&s.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let s=0;s<t.length;s++){const i=n[t[s]].namespaceId;if(i){const t=this._fetchNamespace(i);t&&e.add(t)}}}return e}trigger(t,e,n,s){if(Yt(e)){const i=this._fetchNamespace(t);if(i)return i.trigger(e,n,s),!0}return!1}insertNode(t,e,n,s){if(!Yt(e))return;const i=e.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,n)}s&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Jt(t,Rt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Kt(t,Rt))}removeNode(t,e,n,s){if(Yt(e)){const i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,s):this.markElementAsRemoved(t,e,!1,s),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(t,e,n,s){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,s,i){return Yt(e)?this._fetchNamespace(t).listen(e,n,s,i):()=>{}}_buildInstruction(t,e,n,s,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,s,t.fromState.options,t.toState.options,e,i)}destroyInnerAnimations(t){let e=this.driver.query(t,D,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,N,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return c(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=jt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Ft)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Ft,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Jt(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?c(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new ft,s=[],i=new Map,r=[],a=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)h.add(e[n])});const d=this.bodyNode,p=Array.from(this.statesByElement.keys()),g=Qt(p,this.collectedEnterElements),m=new Map;let y=0;g.forEach((t,e)=>{const n=I+y++;m.set(e,n),t.forEach(t=>Jt(t,n))});const v=[],_=new Set,b=new Set;for(let o=0;o<this.collectedLeaveElements.length;o++){const t=this.collectedLeaveElements[o],e=t.__ng_removed;e&&e.setForRemoval&&(v.push(t),_.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>_.add(t)):b.add(t))}const w=new Map,S=Qt(p,Array.from(_));S.forEach((t,e)=>{const n=O+y++;w.set(e,n),t.forEach(t=>Jt(t,n))}),t.push(()=>{g.forEach((t,e)=>{const n=m.get(e);t.forEach(t=>Kt(t,n))}),S.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Kt(t,n))}),v.forEach(t=>{this.processLeaveNode(t)})});const T=[],C=[];for(let o=this._namespaceList.length-1;o>=0;o--)this._namespaceList[o].drainQueuedTransitions(e).forEach(t=>{const e=t.player,i=t.element;if(T.push(e),this.collectedEnterElements.length){const t=i.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const o=!d||!this.driver.containsElement(d,i),c=w.get(i),h=m.get(i),p=this._buildInstruction(t,n,h,c,o);if(p.errors&&p.errors.length)C.push(p);else{if(o)return e.onStart(()=>U(i,p.fromStyles)),e.onDestroy(()=>H(i,p.toStyles)),void s.push(e);if(t.isFallbackTransition)return e.onStart(()=>U(i,p.fromStyles)),e.onDestroy(()=>H(i,p.toStyles)),void s.push(e);p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(i,p.timelines),r.push({instruction:p,player:e,element:i}),p.queriedElements.forEach(t=>f(a,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=l.get(e);t||l.set(e,t=new Set),n.forEach(e=>t.add(e))}}),p.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let s=u.get(e);s||u.set(e,s=new Set),n.forEach(t=>s.add(t))})}});if(C.length){const t=[];C.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),T.forEach(t=>t.destroy()),this.reportError(t)}const x=new Map,E=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,x))}),s.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{f(x,e,[]).push(t),t.destroy()})});const k=v.filter(t=>ee(t,l,u)),A=new Map;Wt(A,this.driver,b,u,o.l3).forEach(t=>{ee(t,l,u)&&k.push(t)});const P=new Map;g.forEach((t,e)=>{Wt(P,this.driver,new Set(t),l,o.k1)}),k.forEach(t=>{const e=A.get(t),n=P.get(t);A.set(t,Object.assign(Object.assign({},e),n))});const D=[],L=[],M={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(h.has(e))return r.onDestroy(()=>H(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void s.push(r);let t=M;if(E.size>1){let n=e;const s=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}s.push(n)}s.forEach(e=>E.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,x,i,P,A);if(r.setRealPlayer(n),t===M)D.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=c(e)),s.push(r)}}else U(e,o.fromStyles),r.onDestroy(()=>H(e,o.toStyles)),L.push(r),h.has(e)&&s.push(r)}),L.forEach(t=>{const e=i.get(t.element);if(e&&e.length){const n=c(e);t.setRealPlayer(n)}}),s.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let o=0;o<v.length;o++){const t=v[o],e=t.__ng_removed;if(Kt(t,O),e&&e.hasAnimation)continue;let n=[];if(a.size){let e=a.get(t);e&&e.length&&n.push(...e);let s=this.driver.query(t,N,!0);for(let t=0;t<s.length;t++){let e=a.get(s[t]);e&&e.length&&n.push(...e)}}const s=n.filter(t=>!t.destroyed);s.length?Xt(this,t,s):this.processLeaveNode(t)}return v.length=0,D.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),D}elementContainsData(t,e){let n=!1;const s=e.__ng_removed;return s&&s.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,s,i){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!i||i==Ht;e.forEach(e=>{e.queued||(t||e.triggerName==s)&&r.push(e)})}}return(n||s)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||s&&s!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const s=e.element,i=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==s,l=f(n,t,[]);this._getPreviousPlayers(t,a,i,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}U(s,e.fromStyles)}_buildAnimation(t,e,n,s,i,r){const a=e.triggerName,l=e.element,h=[],d=new Set,p=new Set,g=e.timelines.map(e=>{const c=e.element;d.add(c);const f=c.__ng_removed;if(f&&f.removedBeforeQueried)return new o.ZN(e.duration,e.delay);const g=c!==l,m=function(t){const e=[];return te(t,e),e}((n.get(c)||Bt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===c),y=i.get(c),v=r.get(c),_=u(0,this._normalizer,0,e.keyframes,y,v),b=this._buildPlayer(e,_,m);if(e.subTimeline&&s&&p.add(c),g){const e=new Gt(t,a,c);e.setRealPlayer(b),h.push(e)}return b});h.forEach(t=>{f(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let s;if(t instanceof Map){if(s=t.get(e),s){if(s.length){const t=s.indexOf(n);s.splice(t,1)}0==s.length&&t.delete(e)}}else if(s=t[e],s){if(s.length){const t=s.indexOf(n);s.splice(t,1)}0==s.length&&delete t[e]}return s}(this.playersByQueriedElement,t.element,t))}),d.forEach(t=>Jt(t,L));const m=c(g);return m.onDestroy(()=>{d.forEach(t=>Kt(t,L)),H(l,e.toStyles)}),p.forEach(t=>{f(s,t,[]).push(m)}),m}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new o.ZN(t.duration,t.delay)}}class Gt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new o.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>h(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){f(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Yt(t){return t&&1===t.nodeType}function $t(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Wt(t,e,n,s,i){const r=[];n.forEach(t=>r.push($t(t)));const o=[];s.forEach((n,s)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(s,t,i);n&&0!=n.length||(s.__ng_removed=Vt,o.push(s))}),t.set(s,r)});let a=0;return n.forEach(t=>$t(t,r[a++])),o}function Qt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const s=new Set(e),i=new Map;function r(t){if(!t)return 1;let e=i.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:s.has(o)?1:r(o),i.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}function Jt(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Kt(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Xt(t,e,n){c(n).onDone(()=>t.processLeaveNode(e))}function te(t,e){for(let n=0;n<t.length;n++){const s=t[n];s instanceof o.ZE?te(s.players,e):e.push(s)}}function ee(t,e,n){const s=n.get(t);if(!s)return!1;let i=e.get(t);return i?s.forEach(t=>i.add(t)):e.set(t,s),n.delete(t),!0}class ne{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new qt(t,e,n),this._timelineEngine=new Nt(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,s,i){const r=t+"-"+s;let o=this._triggerCache[r];if(!o){const t=[],e=at(this._driver,i,t);if(t.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e,n){return new Pt(t,e,n)}(s,e,this._normalizer),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,s,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,s){this._transitionEngine.insertNode(t,e,n,s)}onRemove(t,e,n,s){this._transitionEngine.removeNode(t,e,s||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,s){if("@"==n.charAt(0)){const[t,i]=g(n);this._timelineEngine.command(t,e,i,s)}else this._transitionEngine.trigger(t,e,n,s)}listen(t,e,n,s,i){if("@"==n.charAt(0)){const[t,s]=g(n);return this._timelineEngine.listen(t,e,s,i)}return this._transitionEngine.listen(t,e,n,s,i)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function se(t,e){let n=null,s=null;return Array.isArray(e)&&e.length?(n=re(e[0]),e.length>1&&(s=re(e[e.length-1]))):e&&(n=re(e)),n||s?new ie(t,n,s):null}class ie{constructor(t,e,n){this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;let s=ie.initialStylesByElement.get(t);s||ie.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&H(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(H(this._element,this._initialStyles),this._endStyles&&(H(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ie.initialStylesByElement.delete(this._element),this._startStyles&&(U(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(U(this._element,this._endStyles),this._endStyles=null),H(this._element,this._initialStyles),this._state=3)}}function re(t){let e=null;const n=Object.keys(t);for(let s=0;s<n.length;s++){const i=n[s];oe(i)&&(e=e||{},e[i]=t[i])}return e}function oe(t){return"display"===t||"position"===t}ie.initialStylesByElement=new WeakMap;const ae="animation",le="animationend";class ce{constructor(t,e,n,s,i,r,o){this._element=t,this._name=e,this._duration=n,this._delay=s,this._easing=i,this._fillMode=r,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=ge(t,"").trim();n.length&&(function(t,e){let n=0;for(let s=0;s<t.length;s++)","===t.charAt(s)&&n++}(n),e=`${n}, ${e}`),fe(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),pe(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){ue(this._element,this._name,"paused")}resume(){ue(this._element,this._name,"running")}setPosition(t){const e=he(this._element,this._name);this._position=t*this._duration,fe(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),pe(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=ge(t,"").split(","),s=de(n,e);s>=0&&(n.splice(s,1),fe(t,"",n.join(",")))}(this._element,this._name))}}function ue(t,e,n){fe(t,"PlayState",n,he(t,e))}function he(t,e){const n=ge(t,"");return n.indexOf(",")>0?de(n.split(","),e):de([n],e)}function de(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function pe(t,e,n){n?t.removeEventListener(le,e):t.addEventListener(le,e)}function fe(t,e,n,s){const i=ae+e;if(null!=s){const e=t.style[i];if(e.length){const t=e.split(",");t[s]=n,n=t.join(",")}}t.style[i]=n}function ge(t,e){return t.style[ae+e]||""}class me{constructor(t,e,n,s,i,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=s,this._delay=i,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=s+i,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ce(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:tt(this.element,n))})}this.currentSnapshot=t}}class ye extends o.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=E(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class ve{constructor(){this._count=0}validateStyleProperty(t){return S(t)}matchesElement(t,e){return T(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return x(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>E(t));let s=`@keyframes ${e} {\n`,i="";n.forEach(t=>{i=" ";const e=parseFloat(t.offset);s+=`${i}${100*e}% {\n`,i+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(s+=`${i}animation-timing-function: ${n};\n`));default:return void(s+=`${i}${e}: ${n};\n`)}}),s+=`${i}}\n`}),s+="}\n";const r=document.createElement("style");return r.textContent=s,r}animate(t,e,n,s,i,r=[],o){const a=r.filter(t=>t instanceof me),l={};J(n,s)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=K(t,e,l));if(0==n)return new ye(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);(function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(h);const d=se(t,e),p=new me(t,e,u,n,s,i,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class _e{constructor(t,e,n,s){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:tt(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class be{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(we().toString()),this._cssKeyframesDriver=new ve}validateStyleProperty(t){return S(t)}matchesElement(t,e){return T(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return x(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,s,i,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,s,i,r);const a={duration:n,delay:s,fill:0==s?"both":"forwards"};i&&(a.easing=i);const l={},c=r.filter(t=>t instanceof _e);J(n,s)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=se(t,e=K(t,e=e.map(t=>j(t,!1)),l));return new _e(t,e,a,u)}}function we(){return a()&&Element.prototype.animate||{}}let Se=(()=>{class t extends o._j{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?(0,o.vP)(t):t;return xe(this._renderer,null,e,"register",[n]),new Te(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(r.K0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Te extends o.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Ce(this._id,t,e||{},this._renderer)}}class Ce{constructor(t,e,n,s){this.id=t,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return xe(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function xe(t,e,n,s,i){return t.setProperty(e,`@@${n}:${s}`,i)}const Ee="@",ke="@.disabled";let Ae=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Ie("",n,this.engine),this._rendererCache.set(n,t)),t}const s=e.id,i=e.id+"-"+this._currentId;this._currentId++,this.engine.register(i,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(s,i,t,e.name,e)};return e.data.animation.forEach(r),new Oe(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}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.LFG(i.FYo),i.LFG(ne),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Ie{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,s=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,s)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,s){this.delegate.setAttribute(t,e,n,s)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,s){this.delegate.setStyle(t,e,n,s)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==Ee&&e==ke?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Oe extends Ie{constructor(t,e,n,s){super(e,n,s),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Ee?"."==e.charAt(1)&&e==ke?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==Ee){const s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let i=e.substr(1),r="";return i.charAt(0)!=Ee&&([i,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(i)),this.engine.listen(this.namespaceId,s,i,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Pe=(()=>{class t extends ne{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(r.K0),i.LFG(A),i.LFG(Ct))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const De=new i.OlP("AnimationModuleType"),Le=[{provide:o._j,useClass:Se},{provide:Ct,useFactory:function(){return new xt}},{provide:ne,useClass:Pe},{provide:i.FYo,useFactory:function(t,e,n){return new Ae(t,e,n)},deps:[s.se,ne,i.R0b]}],Ne=[{provide:A,useFactory:function(){return"function"==typeof we()?new be:new ve}},{provide:De,useValue:"BrowserAnimations"},...Le],Me=[{provide:A,useClass:k},{provide:De,useValue:"NoopAnimations"},...Le];let Re=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Me:Ne}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:Ne,imports:[s.b2]}),t})();var Fe=n(9763),Be=n(665),je=n(5319),Ve=n(9344),ze=n(5133),He=n(263),Ue=n(4250),Ze=n(228),qe=n(42);const Ge=function(){return{maxWidth:"400px",width:"100%"}};let Ye=(()=>{class t{constructor(t,e,n,s,i,r){this.formBuilder=t,this.aroute=e,this.router=n,this.toastr=s,this.notifyServ=i,this.auth=r,this.isButtonLoading=!1,this.isThereUrlParams=!1,this.loginSubscription=new je.w}ngOnDestroy(){this.loginSubscription&&this.loginSubscription.unsubscribe()}ngOnInit(){this.loginForm=this.formBuilder.group({email:this.formBuilder.control("",[Be.kI.required,Be.kI.email]),password:this.formBuilder.control("",[Be.kI.required,Be.kI.minLength(6)])})}onLogin(t){this.isButtonLoading=!0,this.loginSubscription.add(this.auth.login(t).subscribe(t=>{var e;if(!t)return void(this.isButtonLoading=!1);this.isButtonLoading=!1,this.loginForm.reset();const n=null===(e=this.aroute.parent)||void 0===e?void 0:e.snapshot.queryParams.url;this.auth.isAdmin?n?this.router.navigate([n]):this.router.navigate(["/admin"],{queryParams:{boas_vindas:"bemvindo"}}):this.auth.isEmployeeOrCallcenter&&this.router.navigate(["/admin/accounts"])},t=>{console.log(t),t&&t.isTrusted&&this.notifyServ.notify("info",["Verifique se o seu dispositivo esta conectado a internet ou o endpoint foi trocado!"],!0),t&&t.error&&"invalid_grant"===t.error&&this.notifyServ.notify("danger",["Email ou Senha inv\xe1lidos!"],!0),this.isButtonLoading=!1,this.loginForm.reset()}))}get loginButton(){return{type:"submit",name:"login",icon:"fas fa-sign-in-alt",color:"btn btn-success",isLoading:this.isButtonLoading,isDisabled:this.isButtonLoading||this.loginForm.invalid,isBlock:!0}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Be.qu),i.Y36(Fe.gz),i.Y36(Fe.F0),i.Y36(Ve._W),i.Y36(ze.g),i.Y36(He.e))},t.\u0275cmp=i.Xpm({type:t,selectors:[["ng-login"]],decls:25,vars:4,consts:[[3,"formGroup","ngSubmit"],[1,"login-page"],[1,"card","card-outline","card-success",3,"ngStyle"],[2,"position","absolute","top","-125px"],[1,"card-header","text-center","bg-light"],["id","loginLogo","src","assets/logo/logo-default.png","alt","Imali Logo"],[1,"card-body"],["errorMessage","Email inv\xe1lido"],[1,"input-group"],["type","email","formControlName","email","placeholder","Email",1,"form-control"],[1,"input-group-append"],[1,"input-group-text"],[1,"fas","fa-envelope"],["errorMessage","Senha inv\xe1lida"],["type","password","autocomplete","off","formControlName","password","placeholder","Senha",1,"form-control"],[1,"fas","fa-lock"],[1,"row"],[1,"col-12","mt-3"],[3,"button"],[1,"text-primary","text-center","mt-3"],["data-toggle","tooltip","title","Contacte o Administrador do Sistema [ (258) 849231169 ]",1,"fa","fa-info-circle"]],template:function(t,e){1&t&&(i.TgZ(0,"form",0),i.NdJ("ngSubmit",function(){return e.onLogin(e.loginForm.value)}),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i._UZ(3,"ng-message",3),i.TgZ(4,"div",4),i._UZ(5,"img",5),i.qZA(),i.TgZ(6,"div",6),i.TgZ(7,"ng-input",7),i.TgZ(8,"div",8),i._UZ(9,"input",9),i.TgZ(10,"div",10),i.TgZ(11,"div",11),i._UZ(12,"span",12),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(13,"ng-input",13),i.TgZ(14,"div",8),i._UZ(15,"input",14),i.TgZ(16,"div",10),i.TgZ(17,"div",11),i._UZ(18,"span",15),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(19,"div",16),i.TgZ(20,"div",17),i._UZ(21,"ng-button",18),i.TgZ(22,"p",19),i._uU(23," Esqueceu a sua senha? "),i._UZ(24,"i",20),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.Q6J("formGroup",e.loginForm),i.xp6(2),i.Q6J("ngStyle",i.DdM(3,Ge)),i.xp6(19),i.Q6J("button",e.loginButton))},directives:[Be._Y,Be.JL,Be.sg,r.PC,Ue.q,Ze.a,Be.Fj,Be.JJ,Be.u,qe.r],styles:["#loginLogo[_ngcontent-%COMP%]{position:absolute;top:-120%;transform:translateX(-50%);border:3px solid #4bb543;border-radius:100%;object-fit:cover;width:60px;height:60px}.card-header[_ngcontent-%COMP%]{background-color:#fff!important;border:none!important}"]}),t})();const $e=function(t){return{minWidth:t}};let We=(()=>{class t{constructor(t,e,n,s,i){this.formBuilder=t,this.aroute=e,this.router=n,this.notifyServ=s,this.auth=i,this.isButtonLoading=!1,this.isThereUrlParams=!1,this.setupPasswordSubscription=new je.w,this.setupPasswordForm=new Be.cw({})}ngOnDestroy(){this.setupPasswordSubscription&&this.setupPasswordSubscription.unsubscribe()}ngOnInit(){this.setupPasswordForm=this.formBuilder.group({current_password:this.formBuilder.control(this.auth.decryptData(localStorage.getItem("resetKey")),[Be.kI.required]),new_password:this.formBuilder.control("",[Be.kI.required]),new_password_confirmation:this.formBuilder.control("",[Be.kI.required,Be.kI.minLength(6)])})}get currentPassword(){return this.setupPasswordForm.get("current_password")}get newPassword(){return this.setupPasswordForm.get("new_password")}get confirmPassword(){return this.setupPasswordForm.get("new_password_confirmation")}onSetupPassword(t){this.isButtonLoading=!0,this.setupPasswordSubscription.add(this.auth.resetUserPassword(t).subscribe(t=>{var e;if(!t)return void(this.isButtonLoading=!1);this.isButtonLoading=!1,this.setupPasswordForm.reset();const n=null===(e=this.aroute.parent)||void 0===e?void 0:e.snapshot.queryParams.url;this.auth.isAdmin?n?this.router.navigate([n]):this.router.navigate(["/admin"],{queryParams:{boas_vindas:"bemvindo"}}):this.auth.isEmployeeOrCallcenter&&this.router.navigate(["/admin/accounts"])},t=>{t&&t.isTrusted&&this.notifyServ.notify("info",["Verifique se o seu dispositivo esta conectado a internet\n ou o endpoint foi trocado!"],!0),this.isButtonLoading=!1,this.setupPasswordForm.reset()}))}get setupPasswordButton(){return{type:"submit",name:"redefinir",icon:"fas fa-sign-in-alt",color:"btn btn-success",isLoading:this.isButtonLoading,isDisabled:this.isButtonLoading||this.setupPasswordForm.invalid,isBlock:!0}}get outButton(){return{type:"button",name:"sair",icon:"fas fa-sign-out-alt",color:"btn btn-light text-primary",isBlock:!0}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Be.qu),i.Y36(Fe.gz),i.Y36(Fe.F0),i.Y36(ze.g),i.Y36(He.e))},t.\u0275cmp=i.Xpm({type:t,selectors:[["ng-setup-password"]],inputs:{currentPasswordInput:"currentPasswordInput"},decls:24,vars:6,consts:[[3,"formGroup","ngSubmit"],[1,"login-page"],[1,"card","card-outline","card-success",3,"ngStyle"],[1,"card-header","text-center","bg-light"],["src","assets/logo/logo-default.png","alt","Imali Logo",2,"width","50px"],[1,"card-body"],["errorMessage","Campo obrigat\xf3rio"],[1,"input-group"],["type","password","formControlName","new_password","placeholder","Nova Senha",1,"form-control"],[1,"input-group-append"],[1,"input-group-text"],[1,"fas","fa-key"],["type","password","autocomplete","off","formControlName","new_password_confirmation","placeholder","Confirmar Nova Senha ",1,"form-control"],[1,"row"],[1,"col-12","mt-3"],[3,"button"],[3,"button","click"]],template:function(t,e){1&t&&(i.TgZ(0,"form",0),i.NdJ("ngSubmit",function(){return e.onSetupPassword(e.setupPasswordForm.value)}),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i._UZ(3,"ng-message"),i.TgZ(4,"div",3),i._UZ(5,"img",4),i.qZA(),i.TgZ(6,"div",5),i.TgZ(7,"ng-input",6),i.TgZ(8,"div",7),i._UZ(9,"input",8),i.TgZ(10,"div",9),i.TgZ(11,"div",10),i._UZ(12,"span",11),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(13,"ng-input",6),i.TgZ(14,"div",7),i._UZ(15,"input",12),i.TgZ(16,"div",9),i.TgZ(17,"div",10),i._UZ(18,"span",11),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(19,"div",13),i.TgZ(20,"div",14),i._UZ(21,"ng-button",15),i.qZA(),i.TgZ(22,"div",14),i.TgZ(23,"ng-button",16),i.NdJ("click",function(){return e.auth.logout()}),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.Q6J("formGroup",e.setupPasswordForm),i.xp6(2),i.Q6J("ngStyle",i.VKq(4,$e,100/3+"%")),i.xp6(19),i.Q6J("button",e.setupPasswordButton),i.xp6(2),i.Q6J("button",e.outButton))},directives:[Be._Y,Be.JL,Be.sg,r.PC,Ue.q,Ze.a,Be.Fj,Be.JJ,Be.u,qe.r],encapsulation:2}),t})();var Qe=n(7618);const Je=[{path:"admin",loadChildren:()=>n.e(550).then(n.bind(n,7550)).then(t=>t.AdminModule)},{path:"login",component:Ye,canActivate:[(()=>{class t{constructor(t,e){this.authServ=t,this.router=e}canActivate(t,e){return!(this.authServ.userAndTokenExists()&&!this.authServ.isTokenExpired()&&(this.router.navigate(["/admin"],{queryParams:t.queryParams}),1))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(He.e),i.LFG(Fe.F0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()]},{path:"setup-password",component:We,canActivate:[Qe.a,(()=>{class t{constructor(t,e){this.authServ=t,this.router=e}canActivate(t,e){return 1!=this.authServ.user.session_status||(this.router.navigate(["/admin"],{queryParams:t.queryParams}),!1)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(He.e),i.LFG(Fe.F0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()]},{path:"**",redirectTo:"/login",pathMatch:"full"}];let Ke=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Fe.Bz.forRoot(Je)],Fe.Bz]}),t})(),Xe=(()=>{class t{constructor(){this.title="newImaliDash"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(t,e){1&t&&i._UZ(0,"router-outlet")},directives:[Fe.lC],encapsulation:2}),t})();var tn=n(205),en=n(5304);let nn=(()=>{class t{intercept(t,e){return e.handle(t).pipe((0,en.K)(t=>(0,tn._)(t)))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();var sn=n(1841),rn=n(5566),on=n(2340);let an=(()=>{class t{constructor(t){this._authServ=t}intercept(t,e){const n=t.url.split("/"),s=on.N.IMALI_API.split("/");if(this._authServ.token&&s[2]==n[2]){const n=t.clone({setHeaders:{Authorization:`Bearer ${this._authServ.token.access_token}`}});return e.handle(n)}return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(He.e))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();var ln=n(3190);let cn=(()=>{class t{constructor(t,e){this.injector=t,this._authServ=e}intercept(t,e){return e.handle(t).pipe((0,en.K)(n=>{const s="object"!=typeof n.error?JSON.parse(n.error||"{}"):n.error;if(401==n.status&&"Unauthenticated."==s.message){let n=this._authServ.token;return this.injector.get(sn.eN).post(`${on.N.IMALI_API}/refresh`,{refresh_token:n.refreshToken}).pipe((0,ln.w)(n=>{setTimeout(()=>{},3750);const s=t.clone({setHeaders:{Authorization:`Bearer ${this._authServ.token.access_token}`}});return e.handle(s)}))}return(0,tn._)(s)}))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.zs3),i.LFG(He.e))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();var un=n(2482);(0,r.qS)(n.n(un)(),"pt-MZ");let hn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[He.e,{provide:i.soG,useValue:"pt-MZ"},{provide:sn.TP,useClass:an,multi:!0},{provide:sn.TP,useClass:cn,multi:!0},{provide:sn.TP,useClass:nn,multi:!0}],imports:[[Fe.Bz,sn.JF,rn.m]]}),t})(),dn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t,bootstrap:[Xe]}),t.\u0275inj=i.cJS({providers:[{provide:r.S$,useClass:r.Do}],imports:[[s.b2,Re,hn,Ke]]}),t})();on.N.production&&(0,i.G48)(),s.q6().bootstrapModule(dn).catch(t=>console.error(t))},7680:(t,e,n)=>{"use strict";n.d(e,{i3:()=>u,Tm:()=>h,BF:()=>c});var s=n(3018),i=n(8583);const r=["video"],o=["canvas"];function a(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){return s.CHM(t),s.oxw().rotateVideoInput(!0)}),s.qZA()}}class l{constructor(t,e,n){this._mimeType=null,this._imageAsBase64=null,this._imageAsDataUrl=null,this._imageData=null,this._mimeType=e,this._imageAsDataUrl=t,this._imageData=n}static getDataFromDataUrl(t,e){return t.replace(`data:${e};base64,`,"")}get imageAsBase64(){return this._imageAsBase64?this._imageAsBase64:this._imageAsBase64=l.getDataFromDataUrl(this._imageAsDataUrl,this._mimeType)}get imageAsDataUrl(){return this._imageAsDataUrl}get imageData(){return this._imageData}}class c{static getAvailableVideoInputs(){return navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices?new Promise((t,e)=>{navigator.mediaDevices.enumerateDevices().then(e=>{t(e.filter(t=>"videoinput"===t.kind))}).catch(t=>{e(t.message||t)})}):Promise.reject("enumerateDevices() not supported.")}}let u=(()=>{class t{constructor(){this.width=640,this.height=480,this.videoOptions=t.DEFAULT_VIDEO_OPTIONS,this.allowCameraSwitch=!0,this.captureImageData=!1,this.imageType=t.DEFAULT_IMAGE_TYPE,this.imageQuality=t.DEFAULT_IMAGE_QUALITY,this.imageCapture=new s.vpe,this.initError=new s.vpe,this.imageClick=new s.vpe,this.cameraSwitched=new s.vpe,this.availableVideoInputs=[],this.videoInitialized=!1,this.activeVideoInputIndex=-1,this.mediaStream=null,this.activeVideoSettings=null}set trigger(t){this.triggerSubscription&&this.triggerSubscription.unsubscribe(),this.triggerSubscription=t.subscribe(()=>{this.takeSnapshot()})}set switchCamera(t){this.switchCameraSubscription&&this.switchCameraSubscription.unsubscribe(),this.switchCameraSubscription=t.subscribe(t=>{"string"==typeof t?this.switchToVideoInput(t):this.rotateVideoInput(!1!==t)})}static getMediaConstraintsForDevice(t,e){const n=e||this.DEFAULT_VIDEO_OPTIONS;return t&&(n.deviceId={exact:t}),n}static getDeviceIdFromMediaStreamTrack(e){if(e.getSettings&&e.getSettings()&&e.getSettings().deviceId)return e.getSettings().deviceId;if(e.getConstraints&&e.getConstraints()&&e.getConstraints().deviceId){const n=e.getConstraints().deviceId;return t.getValueFromConstrainDOMString(n)}}static getFacingModeFromMediaStreamTrack(e){if(e){if(e.getSettings&&e.getSettings()&&e.getSettings().facingMode)return e.getSettings().facingMode;if(e.getConstraints&&e.getConstraints()&&e.getConstraints().facingMode){const n=e.getConstraints().facingMode;return t.getValueFromConstrainDOMString(n)}}}static isUserFacing(e){const n=t.getFacingModeFromMediaStreamTrack(e);return!!n&&"user"===n.toLowerCase()}static getValueFromConstrainDOMString(t){if(t){if(t instanceof String)return String(t);if(Array.isArray(t)&&Array(t).length>0)return String(t[0]);if("object"==typeof t){if(t.exact)return String(t.exact);if(t.ideal)return String(t.ideal)}}return null}ngAfterViewInit(){this.detectAvailableDevices().then(()=>{this.switchToVideoInput(null)}).catch(t=>{this.initError.next({message:t}),this.switchToVideoInput(null)})}ngOnDestroy(){this.stopMediaTracks(),this.unsubscribeFromSubscriptions()}takeSnapshot(){const e=this.nativeVideoElement,n={width:this.width,height:this.height};e.videoWidth&&(n.width=e.videoWidth,n.height=e.videoHeight);const s=this.canvas.nativeElement;s.width=n.width,s.height=n.height;const i=s.getContext("2d");i.drawImage(e,0,0);const r=this.imageType?this.imageType:t.DEFAULT_IMAGE_TYPE,o=s.toDataURL(r,this.imageQuality?this.imageQuality:t.DEFAULT_IMAGE_QUALITY);let a=null;this.captureImageData&&(a=i.getImageData(0,0,s.width,s.height)),this.imageCapture.next(new l(o,r,a))}rotateVideoInput(t){this.availableVideoInputs&&this.availableVideoInputs.length>1&&this.switchToVideoInput(this.availableVideoInputs[(this.activeVideoInputIndex+(t?1:this.availableVideoInputs.length-1))%this.availableVideoInputs.length].deviceId)}switchToVideoInput(t){this.videoInitialized=!1,this.stopMediaTracks(),this.initWebcam(t,this.videoOptions)}videoResize(){}get videoWidth(){const t=this.getVideoAspectRatio();return Math.min(this.width,this.height*t)}get videoHeight(){const t=this.getVideoAspectRatio();return Math.min(this.height,this.width/t)}get videoStyleClasses(){let t="";return this.isMirrorImage()&&(t+="mirrored "),t.trim()}get nativeVideoElement(){return this.video.nativeElement}getVideoAspectRatio(){const t=this.nativeVideoElement;return t.videoWidth&&t.videoWidth>0&&t.videoHeight&&t.videoHeight>0?t.videoWidth/t.videoHeight:this.width/this.height}initWebcam(e,n){const s=this.nativeVideoElement;if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia){const i=t.getMediaConstraintsForDevice(e,n);navigator.mediaDevices.getUserMedia({video:i}).then(e=>{this.mediaStream=e,s.srcObject=e,s.play(),this.activeVideoSettings=e.getVideoTracks()[0].getSettings();const n=t.getDeviceIdFromMediaStreamTrack(e.getVideoTracks()[0]);this.cameraSwitched.next(n),this.detectAvailableDevices().then(()=>{this.activeVideoInputIndex=n?this.availableVideoInputs.findIndex(t=>t.deviceId===n):-1,this.videoInitialized=!0}).catch(()=>{this.activeVideoInputIndex=-1,this.videoInitialized=!0})}).catch(t=>{this.initError.next({message:t.message,mediaStreamError:t})})}else this.initError.next({message:"Cannot read UserMedia from MediaDevices."})}getActiveVideoTrack(){return this.mediaStream?this.mediaStream.getVideoTracks()[0]:null}isMirrorImage(){if(!this.getActiveVideoTrack())return!1;{let t="auto";switch(this.mirrorImage&&("string"==typeof this.mirrorImage?t=String(this.mirrorImage).toLowerCase():this.mirrorImage.x&&(t=this.mirrorImage.x.toLowerCase())),t){case"always":return!0;case"never":return!1}}return t.isUserFacing(this.getActiveVideoTrack())}stopMediaTracks(){this.mediaStream&&this.mediaStream.getTracks&&(this.nativeVideoElement.pause(),this.mediaStream.getTracks().forEach(t=>t.stop()))}unsubscribeFromSubscriptions(){this.triggerSubscription&&this.triggerSubscription.unsubscribe(),this.switchCameraSubscription&&this.switchCameraSubscription.unsubscribe()}detectAvailableDevices(){return new Promise((t,e)=>{c.getAvailableVideoInputs().then(e=>{this.availableVideoInputs=e,t(e)}).catch(t=>{this.availableVideoInputs=[],e(t)})})}}return t.DEFAULT_VIDEO_OPTIONS={facingMode:"environment"},t.DEFAULT_IMAGE_TYPE="image/jpeg",t.DEFAULT_IMAGE_QUALITY=.92,t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["webcam"]],viewQuery:function(t,e){if(1&t&&(s.Gf(r,7),s.Gf(o,7)),2&t){let t;s.iGM(t=s.CRH())&&(e.video=t.first),s.iGM(t=s.CRH())&&(e.canvas=t.first)}},inputs:{width:"width",height:"height",videoOptions:"videoOptions",allowCameraSwitch:"allowCameraSwitch",mirrorImage:"mirrorImage",captureImageData:"captureImageData",imageType:"imageType",imageQuality:"imageQuality",trigger:"trigger",switchCamera:"switchCamera"},outputs:{imageCapture:"imageCapture",initError:"initError",imageClick:"imageClick",cameraSwitched:"cameraSwitched"},decls:6,vars:7,consts:[[1,"webcam-wrapper",3,"click"],["autoplay","","muted","","playsinline","",3,"width","height","resize"],["video",""],["class","camera-switch",3,"click",4,"ngIf"],[3,"width","height"],["canvas",""],[1,"camera-switch",3,"click"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.NdJ("click",function(){return e.imageClick.next()}),s.TgZ(1,"video",1,2),s.NdJ("resize",function(){return e.videoResize()}),s.qZA(),s.YNc(3,a,1,0,"div",3),s._UZ(4,"canvas",4,5),s.qZA()),2&t&&(s.xp6(1),s.Tol(e.videoStyleClasses),s.Q6J("width",e.videoWidth)("height",e.videoHeight),s.xp6(2),s.Q6J("ngIf",e.allowCameraSwitch&&e.availableVideoInputs.length>1&&e.videoInitialized),s.xp6(1),s.Q6J("width",e.width)("height",e.height))},directives:[i.O5],styles:[".webcam-wrapper[_ngcontent-%COMP%]{display:inline-block;position:relative;line-height:0}.webcam-wrapper[_ngcontent-%COMP%]   video.mirrored[_ngcontent-%COMP%]{transform:scaleX(-1)}.webcam-wrapper[_ngcontent-%COMP%]   canvas[_ngcontent-%COMP%]{display:none}.webcam-wrapper[_ngcontent-%COMP%]   .camera-switch[_ngcontent-%COMP%]{background-color:#0000001a;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAE9UlEQVR42u2aT2hdRRTGf+cRQqghSqihdBFDkRISK2KDfzDWxHaRQHEhaINKqa1gKQhd6EZLN+IidCH+Q0oWIkVRC21BQxXRitVaSbKoJSGtYGoK2tQ/tU1jY5v0c5F54Xl7b/KSO/PyEt+3e5f75p7zzZwzZ74zUEIJJfyfYaEGllQGVAGZlENdBy6Z2cSiYFTSKkkfS/pH/nBF0kFJdUW9AiRVASeAukD8DgNrzOySrwEzng18KaDzALXuG8W3AiStAvqBisBRNg40mtlPxbYCOgvgPO4bncWW+JpVeDQXRQhIygDfA00F5r0XuNfMrgclQFI98DDQCNQA5ZFXqoCWBVp8XwHRHeEqcN7loy/NbHBesyqpQ1KfFj/6nC+ZvFaApFrgPaCZpYVvgCfNbDiRAElNwGFg+RIt/X8H2s2s9wYCJDUAR4HqJX7++RN40MwGpgmQVAH0AQ2BPz4AHHPl8nBOAqtyFWQjsA6oL4Ada81sPDv7uwImod8kvSJp9RyS8O2SXnb/DYVd2Y9VSroQ4ANXJO2WVJmixqh0kzMWwL4LkiqRtDnA4D1zmfE8j9g9AezcnAHaPcfXdbfdnPZ2Yps6+DwAvO/Z1naTdApY7Xng48BDZnY1MpMVQBuw3iXc5Tnb0wBwBPjUzP6eoezuArZ6svM0geJLkvZEYnl3nkntoqROSbckSW2Suj3ZOIangc7GPJuUtNGdFIfmMeavktoSSKiW9LMPw30Q8JqkekmjCbOZRhuclLQjgYSNxUBAj6RyZ9ATgUJpUtJTCSR8vpAEXHAyWK5BXYFIGHOlepSAloUk4NEYgyoknQhEwhFJ0e8h6VSaQeerCb5uZgdi9utxYBNwOUD93hIVXswM4INCi6K9wAszFC2DwLOBDjHbYp59karIUnRdzYy/3ClqVklaUhfwTICj7K25OqA7a4wWagVsm4Me/xzwg2cCqqONFzO7DPxSCAJi436GUBgHHguQD2oTlJ55oSzP9ybccsttSJw1szdjFOSnI/8dTCGZHwcORp4Nx7y3B1iZ8/sm4MW8/Euxg5wIsS/HaAp3zeP4/G7obRDXI4jiTIA22H7Xdc7X+S3A5lC7QBQ357aq3VAjCeSkwUfAJrfvz+R8A9ADLAtZB+TinpjC5JMA+//jwPZZnF8G7J+L8z4IWB/zbG+gIujVWfLBW/NStVMmqaG4POJRsIjix7h8IGnLQuoBbQki5sVAJHyYm7YkNaRRtXwQ8G1cHpX0iKRrgUjYno17Sf0LrQhJUkdCeHWkVITGJI0k1QeS3ikGSUzOyJUJJNznYneuOCnpTldcxa2kP3xJYqOeSDjqZG8ShJLnE8TTuMS6Iyu1BW7djZqkfo9N0QOuYJmYQddfB7RG+gLTNzqAY9FrL+5/nwEbvDdJJe3zzOrhNP3AWRqmk55t3ZcBuj3b2gb0Sbrbo/NNzk7fFzu7s/E5EiC+rrmeQU0Kx2skvRFoOx2ZzlmSdgbsw49JetvtBpk8nM64d/cGbNtJ0s7cGyJlwHeEv+t3nqnLSgPAUOSGyG3AHUxdzqoJbEcvcL+ZTeTeEapzJKxgaeOcc/7Mf06D7kFrguS0VDAMtGadv+E47DT9tcChJej8ISfpD+abgTe45uOkFi8mnQ+JBVQ+d4VXuOptjavcyot8pq86mfwk8LWZnaOEEkoooYQSSojDv8AhQNeGfe0jAAAAAElFTkSuQmCC);background-repeat:no-repeat;border-radius:5px;position:absolute;right:13px;top:10px;height:48px;width:48px;background-size:80%;cursor:pointer;background-position:center;transition:background-color .2s ease}.webcam-wrapper[_ngcontent-%COMP%]   .camera-switch[_ngcontent-%COMP%]:hover{background-color:#0000002e}"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ez]]}),t})()},2480:()=>{}},t=>{"use strict";t(t.s=5266)}]);